rem
stringlengths 1
53.3k
| add
stringlengths 0
80.5k
| context
stringlengths 6
326k
| meta
stringlengths 141
403
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
if ( bCancel == Window.CANCEL )
|
if ( bCancel == Window.OK && cmbDataSet.getItem( 0 ).equals( BLANK_DATASET ) )
|
public void widgetSelected( SelectionEvent e ) { if ( e.getSource( ).equals( btnUseReportData ) ) { // Skip when selection is false if ( !btnUseReportData.getSelection( ) ) { return; } try { switchDataSet( null ); } catch ( ChartException e1 ) { ChartWizard.displayException( e1 ); } cmbDataSet.setEnabled( false ); btnNewData.setEnabled( false ); btnFilters.setEnabled( hasDataSet( ) && getDataServiceProvider( ).isInvokingSupported( ) ); btnParameters.setEnabled( hasDataSet( ) && getDataServiceProvider( ).isInvokingSupported( ) ); btnBinding.setEnabled( hasDataSet( ) && getDataServiceProvider( ).isInvokingSupported( ) ); } else if ( e.getSource( ).equals( btnUseDataSet ) ) { // Skip when selection is false if ( !btnUseDataSet.getSelection( ) ) { return; } if ( cmbDataSet.getText( ).length( ) == 0 ) { cmbDataSet.setItems( getDataServiceProvider( ).getAllDataSets( ) ); cmbDataSet.select( 0 ); } if ( cmbDataSet.getText( ).length( ) != 0 ) { try { int bCancel = switchDataSet( cmbDataSet.getText( ) ); if ( bCancel == Window.CANCEL ) { btnUseReportData.setSelection( true ); btnUseDataSet.setSelection( false ); return; } } catch ( ChartException e1 ) { ChartWizard.displayException( e1 ); } } cmbDataSet.setEnabled( true ); btnNewData.setEnabled( getDataServiceProvider( ).isInvokingSupported( ) ); btnFilters.setEnabled( hasDataSet( ) && getDataServiceProvider( ).isInvokingSupported( ) ); btnParameters.setEnabled( hasDataSet( ) && getDataServiceProvider( ).isInvokingSupported( ) ); btnBinding.setEnabled( hasDataSet( ) && getDataServiceProvider( ).isInvokingSupported( ) ); } else if ( e.getSource( ).equals( cmbDataSet ) ) { try { ColorPalette.getInstance( ).restore( ); int bCancel = switchDataSet( cmbDataSet.getText( ) ); if ( bCancel == Window.CANCEL ) { String[] datasetNames = cmbDataSet.getItems( ); for ( int i = 0; i < datasetNames.length; i++ ) { if ( datasetNames[i].equals( getDataServiceProvider( ).getBoundDataSet( ) ) ) { cmbDataSet.select( i ); return; } } } } catch ( ChartException e1 ) { ChartWizard.displayException( e1 ); } } else if ( e.getSource( ).equals( btnNewData ) ) { // Bring up the dialog to create a dataset int result = getDataServiceProvider( ).invoke( IDataServiceProvider.COMMAND_NEW_DATASET ); if ( result == Window.CANCEL ) { return; } String[] sAllDS = getDataServiceProvider( ).getAllDataSets( ); if ( sAllDS.length == cmbDataSet.getItemCount( ) ) { return; } else { String currentDataSet = cmbDataSet.getText( ); cmbDataSet.setItems( sAllDS ); cmbDataSet.setText( currentDataSet ); } } else if ( e.getSource( ).equals( btnFilters ) ) { if ( getDataServiceProvider( ).invoke( IDataServiceProvider.COMMAND_EDIT_FILTER ) == Window.OK ) { refreshTablePreview( ); doLivePreview( ); } } else if ( e.getSource( ).equals( btnParameters ) ) { if ( getDataServiceProvider( ).invoke( IDataServiceProvider.COMMAND_EDIT_PARAMETER ) == Window.OK ) { refreshTablePreview( ); doLivePreview( ); } } else if ( e.getSource( ).equals( btnBinding ) ) { if ( getDataServiceProvider( ).invoke( IDataServiceProvider.COMMAND_EDIT_BINDING ) == Window.OK ) { refreshTablePreview( ); doLivePreview( ); } } else if ( e.getSource( ) instanceof MenuItem ) { MenuItem item = (MenuItem) e.getSource( ); IAction action = (IAction) item.getData( ); action.setChecked( !action.isChecked( ) ); action.run( ); } }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/8005353d33409f5164b0bfcc523207bf2c5c497b/TaskSelectData.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/TaskSelectData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3604,
7416,
12,
12977,
1133,
425,
262,
202,
95,
202,
202,
430,
261,
425,
18,
588,
1830,
12,
262,
18,
14963,
12,
10638,
3727,
4820,
751,
262,
262,
202,
202,
95,
1082,
202,
759,
6611,
1347,
4421,
353,
629,
1082,
202,
430,
261,
401,
11898,
3727,
4820,
751,
18,
588,
6233,
12,
262,
262,
1082,
202,
95,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
698,
1082,
202,
95,
9506,
202,
9610,
13676,
12,
446,
11272,
1082,
202,
97,
1082,
202,
14683,
261,
14804,
503,
425,
21,
262,
1082,
202,
95,
9506,
202,
7984,
27130,
18,
5417,
503,
12,
425,
21,
11272,
1082,
202,
97,
1082,
202,
71,
1627,
13676,
18,
542,
1526,
12,
629,
11272,
1082,
202,
11898,
1908,
751,
18,
542,
1526,
12,
629,
11272,
1082,
202,
11898,
5422,
18,
542,
1526,
12,
711,
13676,
12,
262,
6862,
202,
10,
10,
4303,
16300,
12,
262,
18,
291,
11354,
310,
7223,
12,
262,
11272,
1082,
202,
11898,
2402,
18,
542,
1526,
12,
711,
13676,
12,
262,
6862,
202,
10,
10,
4303,
16300,
12,
262,
18,
291,
11354,
310,
7223,
12,
262,
11272,
1082,
202,
11898,
5250,
18,
542,
1526,
12,
711,
13676,
12,
262,
6862,
202,
10,
10,
4303,
16300,
12,
262,
18,
291,
11354,
310,
7223,
12,
262,
11272,
202,
202,
97,
202,
202,
12107,
309,
261,
425,
18,
588,
1830,
12,
262,
18,
14963,
12,
10638,
3727,
13676,
262,
262,
202,
202,
95,
1082,
202,
759,
6611,
1347,
4421,
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,
3604,
7416,
12,
12977,
1133,
425,
262,
202,
95,
202,
202,
430,
261,
425,
18,
588,
1830,
12,
262,
18,
14963,
12,
10638,
3727,
4820,
751,
262,
262,
202,
202,
95,
1082,
202,
759,
6611,
1347,
4421,
353,
629,
1082,
202,
430,
261,
401,
11898,
3727,
4820,
751,
18,
588,
6233,
12,
262,
262,
1082,
202,
95,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
698,
1082,
202,
95,
9506,
202,
9610,
13676,
12,
446,
11272,
1082,
202,
97,
1082,
202,
14683,
261,
14804,
503,
425,
21,
262,
1082,
202,
95,
9506,
202,
7984,
27130,
18,
5417,
503,
12,
425,
21,
11272,
1082,
202,
97,
1082,
202,
71,
1627,
13676,
18,
542,
1526,
12,
2
] |
tryStackTop--;
|
public static Object interpret(InterpreterData theData) throws JavaScriptException { Object lhs; Object[] stack = new Object[theData.itsMaxStack]; int stackTop = -1; byte[] iCode = theData.itsICode; int pc = 0; int iCodeLength = theData.itsICodeTop; Object[] local = null; // used for newtemp/usetemp etc. if (theData.itsMaxLocals > 0) local = new Object[theData.itsMaxLocals]; Object[] vars = null; final Scriptable undefined = Undefined.instance; int i = theData.itsVariableTable.size(); if (i > 0) { vars = new Object[i]; for (i = 0; i < theData.itsVariableTable.getParameterCount(); i++) { if (i >= theData.itsInArgs.length) vars[i] = undefined; else vars[i] = theData.itsInArgs[i]; } for ( ; i < vars.length; i++) vars[i] = undefined; } Context cx = theData.itsCX; Scriptable scope = theData.itsScope; if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs; int count; int slot; String name = null; Object[] outArgs; int lIntValue; long lLongValue; int rIntValue; int[] catchStack = null; int[] finallyStack = null; Scriptable[] scopeStack = null; int tryStackTop = 0; if (theData.itsMaxTryDepth > 0) { catchStack = new int[theData.itsMaxTryDepth]; finallyStack = new int[theData.itsMaxTryDepth]; scopeStack = new Scriptable[theData.itsMaxTryDepth]; } /* Save the security domain. Must restore upon normal exit. * If we exit the interpreter loop by throwing an exception, * set cx.interpreterSecurityDomain to null, and require the * catching function to restore it. */ Object savedSecurityDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; Object result = undefined; while (pc < iCodeLength) { try { switch ((int)(iCode[pc] & 0xff)) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : i = getTarget(iCode, pc + 1); if (i == pc) i = 0; catchStack[tryStackTop] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; finallyStack[tryStackTop] = i; scopeStack[tryStackTop++] = scope; pc += 4; break; case TokenStream.GE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LEB(rhs, lhs); break; case TokenStream.LE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LEB(lhs, rhs); break; case TokenStream.GT : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LTB(rhs, lhs); break; case TokenStream.LT : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LTB(lhs, rhs); break; case TokenStream.IN : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Boolean(ScriptRuntime.in(lhs, rhs)); break; case TokenStream.INSTANCEOF : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Boolean( ScriptRuntime.instanceOf(scope, lhs, rhs)); break; case TokenStream.EQ : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.eqB(rhs, lhs); break; case TokenStream.NE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.neB(lhs, rhs); break; case TokenStream.SHEQ : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.seqB(lhs, rhs); break; case TokenStream.SHNE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.sneB(lhs, rhs); break; case TokenStream.IFNE : if (!ScriptRuntime.toBoolean(stack[stackTop--])) { pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : if (ScriptRuntime.toBoolean(stack[stackTop--])) { pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : stack[++stackTop] = new Integer(pc + 3); pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[++pc] & 0xFF); pc = ((Integer)local[slot]).intValue(); continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop--]; break; case TokenStream.RETURN : result = stack[stackTop--]; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(~rIntValue); break; case TokenStream.BITAND : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue & rIntValue); break; case TokenStream.BITOR : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue | rIntValue); break; case TokenStream.BITXOR : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue ^ rIntValue); break; case TokenStream.LSH : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue << rIntValue); break; case TokenStream.RSH : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue >> rIntValue); break; case TokenStream.URSH : rIntValue = (ScriptRuntime.toInt32(stack[stackTop--]) & 0x1F); lLongValue = ScriptRuntime.toUint32(stack[stackTop]); stack[stackTop] = new Double(lLongValue >>> rIntValue); break; case TokenStream.ADD : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.add(lhs, rhs); break; case TokenStream.SUB : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) - ScriptRuntime.toNumber(rhs)); break; case TokenStream.NEG : rhs = stack[stackTop]; stack[stackTop] = new Double(-ScriptRuntime.toNumber(rhs)); break; case TokenStream.POS : rhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(rhs)); break; case TokenStream.MUL : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) * ScriptRuntime.toNumber(rhs)); break; case TokenStream.DIV : rhs = stack[stackTop--]; lhs = stack[stackTop]; // Detect the divide by zero or let Java do it ? stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) / ScriptRuntime.toNumber(rhs)); break; case TokenStream.MOD : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) % ScriptRuntime.toNumber(rhs)); break; case TokenStream.BINDNAME : stack[++stackTop] = ScriptRuntime.bind(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.GETBASE : stack[++stackTop] = ScriptRuntime.getBase(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop--]; lhs = stack[stackTop]; // what about class cast exception here ? stack[stackTop] = ScriptRuntime.setName((Scriptable)lhs, rhs, scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop--]; name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : id = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getElem(lhs, id, scope); break; case TokenStream.SETELEM : rhs = stack[stackTop--]; id = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setElem(lhs, id, rhs, scope); break; case TokenStream.PROPINC : name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : lhs = stack[stackTop]; slot = (iCode[++pc] & 0xFF); local[slot] = lhs; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = local[slot]; break; case TokenStream.CALLSPECIAL : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); name = getString(theData.itsStringTable, iCode, pc + 3); count = (iCode[pc + 5] << 8) | (iCode[pc + 6] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) outArgs[i] = stack[stackTop--]; rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, theData.itsThisObj, scope, name, i); pc += 6; break; case TokenStream.CALL : count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) outArgs[i] = stack[stackTop--]; rhs = stack[stackTop--]; lhs = stack[stackTop]; if (lhs == undefined) { lhs = getString(theData.itsStringTable, iCode, pc + 1); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, scope); pc += 4; break; case TokenStream.NEW : count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) outArgs[i] = stack[stackTop--]; lhs = stack[stackTop]; if (lhs == undefined) { lhs = getString(theData.itsStringTable, iCode, pc + 1); } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = getString(theData.itsStringTable, iCode, pc + 1); stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = getString(theData.itsStringTable, iCode, pc + 1); pc += 2; break; case TokenStream.NUMBER : stack[++stackTop] = getNumber(theData.itsNumberTable, iCode, pc + 1); pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETVAR : lhs = stack[stackTop]; slot = (iCode[++pc] & 0xFF); vars[slot] = lhs; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = vars[slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = vars[slot]; vars[slot] = ScriptRuntime.postIncrement(vars[slot]); break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = vars[slot]; vars[slot] = ScriptRuntime.postDecrement(vars[slot]); break; case TokenStream.ZERO : stack[++stackTop] = zero; break; case TokenStream.ONE : stack[++stackTop] = one; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = theData.itsThisObj; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : cx.interpreterSecurityDomain = null; throw new JavaScriptException(stack[stackTop--]); case TokenStream.JTHROW : cx.interpreterSecurityDomain = null; lhs = stack[stackTop--]; if (lhs instanceof JavaScriptException) throw (JavaScriptException)lhs; else throw (RuntimeException)lhs; case TokenStream.ENTERWITH : lhs = stack[stackTop--]; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop--]; local[slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = ScriptRuntime.nextEnum((Enumeration)local[slot]); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); if (theData.itsNestedFunctions[i] instanceof InterpretedFunction) { stack[++stackTop] = new InterpretedFunction( (InterpretedFunction) (theData.itsNestedFunctions[i]), scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); } else stack[++stackTop] = ScriptRuntime.createFunctionObject(scope, theData.itsNestedFunctions[i].getClass(), cx); pc += 2; break; case TokenStream.OBJECT : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case TokenStream.LINE : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); cx.interpreterLine = i; pc += 2; break; case TokenStream.SOURCEFILE : cx.interpreterSourceFile = theData.itsSourceFile; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (EcmaError ee) { // an offical ECMA error object, // handle as if it were a JavaScriptException stackTop = 0; cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { pc = catchStack[tryStackTop - 1]; scope = scopeStack[tryStackTop - 1]; if (pc == 0) { pc = finallyStack[tryStackTop - 1]; if (pc == 0) throw ee; stack[0] = ee.getErrorObject(); tryStackTop--; } else stack[0] = ee.getErrorObject(); } else throw ee; // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } catch (JavaScriptException jsx) { stackTop = 0; cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { pc = catchStack[tryStackTop - 1]; scope = scopeStack[tryStackTop - 1]; if (pc == 0) { pc = finallyStack[tryStackTop - 1]; if (pc == 0) throw jsx; stack[0] = jsx; tryStackTop--; } else stack[0] = ScriptRuntime.unwrapJavaScriptException(jsx); } else throw jsx; // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } catch (RuntimeException jx) { cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { stackTop = 0; stack[0] = jx; pc = finallyStack[tryStackTop - 1]; scope = scopeStack[tryStackTop - 1]; if (pc == 0) throw jx; tryStackTop--; } else throw jx; // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } } cx.interpreterSecurityDomain = savedSecurityDomain; return result; }
|
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/be8d0da3f81b333dc48b04cbbc76d20e79773420/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
30010,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
1033,
8499,
31,
3639,
1033,
8526,
2110,
273,
394,
1033,
63,
5787,
751,
18,
1282,
2747,
2624,
15533,
3639,
509,
2110,
3401,
273,
300,
21,
31,
3639,
1160,
8526,
277,
1085,
273,
326,
751,
18,
1282,
45,
1085,
31,
7734,
509,
6125,
273,
374,
31,
3639,
509,
277,
1085,
1782,
273,
326,
751,
18,
1282,
45,
1085,
3401,
31,
7734,
1033,
8526,
1191,
273,
446,
31,
3639,
368,
1399,
364,
394,
5814,
19,
407,
278,
30752,
5527,
18,
3639,
309,
261,
5787,
751,
18,
1282,
2747,
1333,
1031,
405,
374,
13,
5411,
1191,
273,
394,
1033,
63,
5787,
751,
18,
1282,
2747,
1333,
1031,
15533,
18701,
1033,
8526,
4153,
273,
446,
31,
3639,
727,
22780,
3109,
273,
22243,
18,
1336,
31,
3639,
509,
277,
273,
326,
751,
18,
1282,
3092,
1388,
18,
1467,
5621,
3639,
309,
261,
77,
405,
374,
13,
288,
5411,
4153,
273,
394,
1033,
63,
77,
15533,
5411,
364,
261,
77,
273,
374,
31,
277,
411,
326,
751,
18,
1282,
3092,
1388,
18,
588,
1662,
1380,
5621,
277,
27245,
288,
7734,
309,
261,
77,
1545,
326,
751,
18,
1282,
382,
2615,
18,
2469,
13,
10792,
4153,
63,
77,
65,
273,
3109,
31,
7734,
469,
4766,
565,
4153,
63,
77,
65,
273,
326,
751,
18,
1282,
382,
2615,
63,
77,
15533,
7734,
289,
5411,
364,
261,
274,
277,
411,
4153,
18,
2469,
31,
277,
27245,
7734,
4153,
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,
1033,
10634,
12,
30010,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
1033,
8499,
31,
3639,
1033,
8526,
2110,
273,
394,
1033,
63,
5787,
751,
18,
1282,
2747,
2624,
15533,
3639,
509,
2110,
3401,
273,
300,
21,
31,
3639,
1160,
8526,
277,
1085,
273,
326,
751,
18,
1282,
45,
1085,
31,
7734,
509,
6125,
273,
374,
31,
3639,
509,
277,
1085,
1782,
273,
326,
751,
18,
1282,
45,
1085,
3401,
31,
7734,
1033,
8526,
1191,
273,
446,
31,
3639,
368,
1399,
364,
394,
5814,
19,
407,
278,
30752,
5527,
18,
3639,
309,
261,
5787,
751,
18,
1282,
2747,
1333,
1031,
405,
374,
13,
5411,
1191,
273,
394,
1033,
63,
5787,
751,
18,
1282,
2
] |
|
try { setTitle((String) evalAttr("title", getTitleExpr(), String.class)); } catch (NullAttributeException ex) { }
|
if ((string = EvalHelper.evalString("tabindex", getTabindexExpr(), this, pageContext)) != null) setTabindex(string);
|
private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAlt((String) evalAttr("alt", getAltExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAltKey((String) evalAttr("altKey", getAltKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { } try { setName((String) evalAttr("name", getNameExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnblur((String) evalAttr("onblur", getOnblurExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnchange((String) evalAttr("onchange", getOnchangeExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnclick((String) evalAttr("onclick", getOnclickExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOndblclick((String) evalAttr("ondblclick", getOndblclickExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnfocus((String) evalAttr("onfocus", getOnfocusExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydownExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypressExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyupExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedownExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemoveExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseoutExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseoverExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseupExpr(), String.class)); } catch (NullAttributeException ex) { } try { setProperty((String) evalAttr("property", getPropertyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyle((String) evalAttr("style", getStyleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleClass((String) evalAttr("styleClass", getStyleClassExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleId((String) evalAttr("styleId", getStyleIdExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTabindex((String) evalAttr("tabindex", getTabindexExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitle((String) evalAttr("title", getTitleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitleKey((String) evalAttr("titleKey", getTitleKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setValue((String) evalAttr("value", getValueExpr(), String.class)); } catch (NullAttributeException ex) { } }
|
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/022bd23c954cf673e53731849d562b3c295473f1/ELMultiboxTag.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELMultiboxTag.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
4742,
9334,
4766,
6647,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
12443,
780,
13,
5302,
3843,
2932,
2390,
3113,
336,
10655,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
653,
12443,
780,
13,
5302,
3843,
2932,
2390,
653,
3113,
336,
10655,
653,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
8853,
12443,
12,
5507,
13,
5302,
3843,
2932,
9278,
3113,
336,
8853,
4742,
9334,
4766,
5411,
3411,
18,
1106,
13,
2934,
13491,
16708,
10663,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
6788,
12443,
780,
13,
5302,
3843,
2932,
529,
3113,
1723,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
22131,
27065,
12443,
780,
13,
5302,
3843,
2932,
265,
27065,
3113,
30070,
27065,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
22131,
3427,
12443,
780,
13,
5302,
3843,
2932,
265,
3427,
3113,
30070,
3427,
4742,
9334,
4766,
1850,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
4742,
9334,
4766,
6647,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
12443,
780,
13,
5302,
3843,
2932,
2390,
3113,
336,
10655,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
653,
12443,
780,
13,
5302,
3843,
2932,
2390,
653,
3113,
336,
10655,
653,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
2
] |
writePluginFile( w, goalPrefix, mojoDescriptors, project );
|
writeProjectFile( w, pluginDescriptor );
|
public void execute( String destinationDirectory, Set mojoDescriptors, MavenProject project, String goalPrefix ) throws IOException { FileWriter writer = null; PrettyPrintXMLWriter w; try { writer = new FileWriter( new File( destinationDirectory, "plugin.jelly" ) ); w = new PrettyPrintXMLWriter( writer ); writePluginFile( w, goalPrefix, mojoDescriptors, project ); writer.flush(); } finally { IOUtil.close( writer ); } // ---------------------------------------------------------------------- // project.xml // ---------------------------------------------------------------------- writer = null; try { writer = new FileWriter( new File( destinationDirectory, "project.xml" ) ); w = new PrettyPrintXMLWriter( writer ); writeProjectFile( w, project ); writer.flush(); } finally { IOUtil.close( writer ); } }
|
48791 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48791/5877385df1e5b2dff3e57131c8fac869556c3b8c/JellyHarnessGenerator.java/clean/maven-plugin-tools/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/generator/jelly/JellyHarnessGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
12,
514,
2929,
2853,
16,
1000,
312,
10007,
12705,
16,
17176,
4109,
1984,
16,
514,
17683,
2244,
262,
3639,
1216,
1860,
565,
288,
3639,
24639,
2633,
273,
446,
31,
3639,
22328,
5108,
4201,
2289,
341,
31,
3639,
775,
3639,
288,
5411,
2633,
273,
394,
24639,
12,
394,
1387,
12,
2929,
2853,
16,
315,
4094,
18,
78,
292,
715,
6,
262,
11272,
5411,
341,
273,
394,
22328,
5108,
4201,
2289,
12,
2633,
11272,
5411,
1045,
4109,
812,
12,
341,
16,
1909,
3187,
11272,
5411,
2633,
18,
11330,
5621,
3639,
289,
3639,
3095,
3639,
288,
5411,
1665,
1304,
18,
4412,
12,
2633,
11272,
3639,
289,
3639,
368,
8879,
13465,
3639,
368,
1984,
18,
2902,
3639,
368,
8879,
13465,
3639,
2633,
273,
446,
31,
3639,
775,
3639,
288,
5411,
2633,
273,
394,
24639,
12,
394,
1387,
12,
2929,
2853,
16,
315,
4406,
18,
2902,
6,
262,
11272,
5411,
341,
273,
394,
22328,
5108,
4201,
2289,
12,
2633,
11272,
5411,
1045,
4109,
812,
12,
341,
16,
1984,
11272,
5411,
2633,
18,
11330,
5621,
3639,
289,
3639,
3095,
3639,
288,
5411,
1665,
1304,
18,
4412,
12,
2633,
11272,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
12,
514,
2929,
2853,
16,
1000,
312,
10007,
12705,
16,
17176,
4109,
1984,
16,
514,
17683,
2244,
262,
3639,
1216,
1860,
565,
288,
3639,
24639,
2633,
273,
446,
31,
3639,
22328,
5108,
4201,
2289,
341,
31,
3639,
775,
3639,
288,
5411,
2633,
273,
394,
24639,
12,
394,
1387,
12,
2929,
2853,
16,
315,
4094,
18,
78,
292,
715,
6,
262,
11272,
5411,
341,
273,
394,
22328,
5108,
4201,
2289,
12,
2633,
11272,
5411,
1045,
4109,
812,
12,
341,
16,
1909,
3187,
11272,
5411,
2633,
18,
11330,
5621,
3639,
289,
3639,
3095,
3639,
288,
5411,
1665,
1304,
18,
4412,
12,
2633,
11272,
3639,
289,
3639,
368,
8879,
13465,
3639,
368,
1984,
18,
2902,
3639,
368,
8879,
2
] |
public DeclarativeInvokerDescr from_source() throws RecognitionException { DeclarativeInvokerDescr ds = null; Token var=null; Token field=null; Token method=null; Token functionName=null; String arg = null; String args = null; ds = null; try { // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:712:3: ( (var= ID '.' field= ID arg= square_chunk ) | (var= ID '.' method= ID args= paren_chunk ) | (functionName= ID args= paren_chunk ) | (var= ID '.' field= ID ) ) int alt23=4; int LA23_0 = input.LA(1); if ( (LA23_0==ID) ) { int LA23_1 = input.LA(2); if ( (LA23_1==31) ) { int LA23_2 = input.LA(3); if ( (LA23_2==ID) ) { switch ( input.LA(4) ) { case ID: case RHS: case RIGHT_PAREN: case 27: case 36: case 54: case 55: case 69: case 70: case 71: case 72: case 73: alt23=4; break; case LEFT_PAREN: int LA23_6 = input.LA(5); if ( (LA23_6==RIGHT_PAREN) ) { alt23=2; } else if ( (LA23_6==ID||LA23_6==LEFT_PAREN||(LA23_6>=71 && LA23_6<=73)) ) { alt23=4; } else { NoViableAltException nvae = new NoViableAltException("707:1: from_source returns [DeclarativeInvokerDescr ds] : ( (var= ID '.' field= ID arg= square_chunk ) | (var= ID '.' method= ID args= paren_chunk ) | (functionName= ID args= paren_chunk ) | (var= ID '.' field= ID ) );", 23, 6, input); throw nvae; } break; case LEFT_SQUARE: alt23=1; break; default: NoViableAltException nvae = new NoViableAltException("707:1: from_source returns [DeclarativeInvokerDescr ds] : ( (var= ID '.' field= ID arg= square_chunk ) | (var= ID '.' method= ID args= paren_chunk ) | (functionName= ID args= paren_chunk ) | (var= ID '.' field= ID ) );", 23, 4, input); throw nvae; } } else { NoViableAltException nvae = new NoViableAltException("707:1: from_source returns [DeclarativeInvokerDescr ds] : ( (var= ID '.' field= ID arg= square_chunk ) | (var= ID '.' method= ID args= paren_chunk ) | (functionName= ID args= paren_chunk ) | (var= ID '.' field= ID ) );", 23, 2, input); throw nvae; } } else if ( (LA23_1==LEFT_PAREN) ) { alt23=3; } else { NoViableAltException nvae = new NoViableAltException("707:1: from_source returns [DeclarativeInvokerDescr ds] : ( (var= ID '.' field= ID arg= square_chunk ) | (var= ID '.' method= ID args= paren_chunk ) | (functionName= ID args= paren_chunk ) | (var= ID '.' field= ID ) );", 23, 1, input); throw nvae; } } else { NoViableAltException nvae = new NoViableAltException("707:1: from_source returns [DeclarativeInvokerDescr ds] : ( (var= ID '.' field= ID arg= square_chunk ) | (var= ID '.' method= ID args= paren_chunk ) | (functionName= ID args= paren_chunk ) | (var= ID '.' field= ID ) );", 23, 0, input); throw nvae; } switch (alt23) { case 1 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:712:3: (var= ID '.' field= ID arg= square_chunk ) { // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:712:3: (var= ID '.' field= ID arg= square_chunk ) // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:712:4: var= ID '.' field= ID arg= square_chunk { var=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_from_source1332); match(input,31,FOLLOW_31_in_from_source1334); field=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_from_source1338); pushFollow(FOLLOW_square_chunk_in_from_source1343); arg=square_chunk(); _fsp--; FieldAccessDescr fa; fa = new FieldAccessDescr(var.getText(), field.getText(), arg); fa.setLocation( offset(var.getLine()), var.getCharPositionInLine() ); ds = fa; } } break; case 2 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:722:3: (var= ID '.' method= ID args= paren_chunk ) { // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:722:3: (var= ID '.' method= ID args= paren_chunk ) // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:722:4: var= ID '.' method= ID args= paren_chunk { var=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_from_source1369); match(input,31,FOLLOW_31_in_from_source1371); method=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_from_source1375); pushFollow(FOLLOW_paren_chunk_in_from_source1379); args=paren_chunk(); _fsp--; MethodAccessDescr ma = new MethodAccessDescr(var.getText(), method.getText()); ma.setLocation( offset(var.getLine()), var.getCharPositionInLine() ); ma.setArguments(args); ds = ma; } } break; case 3 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:731:3: (functionName= ID args= paren_chunk ) { // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:731:3: (functionName= ID args= paren_chunk ) // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:731:4: functionName= ID args= paren_chunk { functionName=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_from_source1400); pushFollow(FOLLOW_paren_chunk_in_from_source1404); args=paren_chunk(); _fsp--; FunctionCallDescr fc = new FunctionCallDescr(functionName.getText()); fc.setLocation( offset(functionName.getLine()), functionName.getCharPositionInLine() ); fc.setArguments(args); ds = fc; } } break; case 4 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:741:3: (var= ID '.' field= ID ) { // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:741:3: (var= ID '.' field= ID ) // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:741:4: var= ID '.' field= ID { var=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_from_source1427); match(input,31,FOLLOW_31_in_from_source1429); field=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_from_source1433); FieldAccessDescr fa; fa = new FieldAccessDescr(var.getText(), field.getText()); fa.setLocation( offset(var.getLine()), var.getCharPositionInLine() ); ds = fa; } } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return ds; }
|
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/c3437c2488c314384990c4282a547e0f92ca02c2/DRLParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/DRLParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3416,
7901,
1535,
24455,
16198,
628,
67,
3168,
1435,
1216,
9539,
288,
6647,
3416,
7901,
1535,
24455,
16198,
3780,
273,
446,
31,
3639,
3155,
569,
33,
2011,
31,
3639,
3155,
652,
33,
2011,
31,
3639,
3155,
707,
33,
2011,
31,
3639,
3155,
14117,
33,
2011,
31,
3639,
514,
1501,
273,
446,
31,
3639,
514,
833,
273,
446,
31,
1171,
202,
202,
2377,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
463,
31027,
5206,
1695,
10649,
8464,
7482,
1695,
26133,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
1695,
4683,
1695,
3341,
1695,
12215,
1695,
4936,
1695,
16483,
18,
75,
30,
27,
2138,
30,
23,
30,
261,
261,
1401,
33,
1599,
2611,
652,
33,
1599,
1501,
33,
8576,
67,
6551,
262,
571,
261,
1401,
33,
1599,
2611,
707,
33,
1599,
833,
33,
22146,
67,
6551,
262,
571,
261,
915,
461,
33,
1599,
833,
33,
22146,
67,
6551,
262,
571,
261,
1401,
33,
1599,
2611,
652,
33,
1599,
262,
262,
5411,
509,
3770,
4366,
33,
24,
31,
5411,
509,
2928,
4366,
67,
20,
273,
810,
18,
2534,
12,
21,
1769,
5411,
309,
261,
261,
2534,
4366,
67,
20,
631,
734,
13,
262,
288,
7734,
509,
2928,
4366,
67,
21,
273,
810,
18,
2534,
12,
22,
1769,
7734,
309,
261,
261,
2534,
4366,
67,
21,
631,
6938,
13,
262,
288,
10792,
509,
2928,
4366,
67,
22,
273,
810,
18,
2534,
12,
23,
1769,
10792,
309,
261,
261,
2534,
4366,
67,
22,
631,
734,
13,
262,
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,
377,
1071,
3416,
7901,
1535,
24455,
16198,
628,
67,
3168,
1435,
1216,
9539,
288,
6647,
3416,
7901,
1535,
24455,
16198,
3780,
273,
446,
31,
3639,
3155,
569,
33,
2011,
31,
3639,
3155,
652,
33,
2011,
31,
3639,
3155,
707,
33,
2011,
31,
3639,
3155,
14117,
33,
2011,
31,
3639,
514,
1501,
273,
446,
31,
3639,
514,
833,
273,
446,
31,
1171,
202,
202,
2377,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
463,
31027,
5206,
1695,
10649,
8464,
7482,
1695,
26133,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
1695,
4683,
1695,
3341,
1695,
12215,
1695,
4936,
1695,
16483,
18,
75,
30,
27,
2138,
30,
23,
30,
261,
261,
1401,
33,
1599,
2611,
652,
33,
1599,
1501,
2
] |
||
_t = __t155;
|
_t = __t164;
|
public final Expression pathExpr(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { Expression step; org.exist.xquery.parser.XQueryAST pathExpr_AST_in = (_t == ASTNULL) ? null : (org.exist.xquery.parser.XQueryAST)_t; org.exist.xquery.parser.XQueryAST qn = null; org.exist.xquery.parser.XQueryAST nc1 = null; org.exist.xquery.parser.XQueryAST nc = null; org.exist.xquery.parser.XQueryAST n = null; org.exist.xquery.parser.XQueryAST qn2 = null; org.exist.xquery.parser.XQueryAST qn3 = null; org.exist.xquery.parser.XQueryAST attr = null; org.exist.xquery.parser.XQueryAST nc2 = null; org.exist.xquery.parser.XQueryAST nc3 = null; Expression rightStep= null; step= null; int axis= Constants.CHILD_AXIS; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case WILDCARD: case PREFIX_WILDCARD: case ATTRIBUTE_TEST: case NCNAME: case LITERAL_element: case LITERAL_preceding: case LITERAL_following: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 165: case 166: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 178: case 179: case LITERAL_parent: case LITERAL_ancestor: case 182: case 183: { { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_preceding: case LITERAL_following: case LITERAL_attribute: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 178: case 179: case LITERAL_parent: case LITERAL_ancestor: case 182: case 183: { axis=forwardAxis(_t); _t = _retTree; break; } case QNAME: case WILDCARD: case PREFIX_WILDCARD: case ATTRIBUTE_TEST: case NCNAME: case LITERAL_element: case LITERAL_text: case LITERAL_node: case LITERAL_comment: case 165: case 166: { break; } default: { throw new NoViableAltException(_t); } } } NodeTest test; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: { qn = (org.exist.xquery.parser.XQueryAST)_t; match(_t,QNAME); _t = _t.getNextSibling(); QName qname= QName.parse(staticContext, qn.getText()); test= new NameTest(Type.ELEMENT, qname); if (axis == Constants.ATTRIBUTE_AXIS) test.setType(Type.ATTRIBUTE); break; } case PREFIX_WILDCARD: { AST __t138 = _t; org.exist.xquery.parser.XQueryAST tmp79_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,PREFIX_WILDCARD); _t = _t.getFirstChild(); nc1 = (org.exist.xquery.parser.XQueryAST)_t; match(_t,NCNAME); _t = _t.getNextSibling(); _t = __t138; _t = _t.getNextSibling(); QName qname= new QName(nc1.getText(), null, null); qname.setNamespaceURI(null); test= new NameTest(Type.ELEMENT, qname); if (axis == Constants.ATTRIBUTE_AXIS) test.setType(Type.ATTRIBUTE); break; } case NCNAME: { AST __t139 = _t; nc = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,NCNAME); _t = _t.getFirstChild(); org.exist.xquery.parser.XQueryAST tmp80_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,WILDCARD); _t = _t.getNextSibling(); _t = __t139; _t = _t.getNextSibling(); String namespaceURI= staticContext.getURIForPrefix(nc.getText()); QName qname= new QName(null, namespaceURI, nc.getText()); test= new NameTest(Type.ELEMENT, qname); if (axis == Constants.ATTRIBUTE_AXIS) test.setType(Type.ATTRIBUTE); break; } case WILDCARD: { org.exist.xquery.parser.XQueryAST tmp81_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,WILDCARD); _t = _t.getNextSibling(); if (axis == Constants.ATTRIBUTE_AXIS) test= new TypeTest(Type.ATTRIBUTE); else test= new TypeTest(Type.ELEMENT); break; } case LITERAL_node: { n = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_node); _t = _t.getNextSibling(); if (axis == Constants.ATTRIBUTE_AXIS) { // throw new XPathException(n, "Cannot test for node() on the attribute axis"); test= new TypeTest(Type.ATTRIBUTE); } else { test= new AnyNodeTest(); } break; } case LITERAL_text: { org.exist.xquery.parser.XQueryAST tmp82_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_text); _t = _t.getNextSibling(); if (axis == Constants.ATTRIBUTE_AXIS) throw new XPathException(n, "Cannot test for text() on the attribute axis"); test= new TypeTest(Type.TEXT); break; } case LITERAL_element: { AST __t140 = _t; org.exist.xquery.parser.XQueryAST tmp83_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_element); _t = _t.getFirstChild(); if (axis == Constants.ATTRIBUTE_AXIS) throw new XPathException(n, "Cannot test for element() on the attribute axis"); test= new TypeTest(Type.ELEMENT); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: { qn2 = (org.exist.xquery.parser.XQueryAST)_t; match(_t,QNAME); _t = _t.getNextSibling(); QName qname= QName.parse(staticContext, qn2.getText()); test= new NameTest(Type.ELEMENT, qname); break; } case WILDCARD: { org.exist.xquery.parser.XQueryAST tmp84_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,WILDCARD); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t140; _t = _t.getNextSibling(); break; } case ATTRIBUTE_TEST: { AST __t142 = _t; org.exist.xquery.parser.XQueryAST tmp85_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,ATTRIBUTE_TEST); _t = _t.getFirstChild(); test= new TypeTest(Type.ATTRIBUTE); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: { qn3 = (org.exist.xquery.parser.XQueryAST)_t; match(_t,QNAME); _t = _t.getNextSibling(); QName qname= QName.parse(staticContext, qn3.getText()); test= new NameTest(Type.ATTRIBUTE, qname); axis= Constants.ATTRIBUTE_AXIS; break; } case WILDCARD: { org.exist.xquery.parser.XQueryAST tmp86_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,WILDCARD); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t142; _t = _t.getNextSibling(); break; } case LITERAL_comment: { org.exist.xquery.parser.XQueryAST tmp87_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_comment); _t = _t.getNextSibling(); if (axis == Constants.ATTRIBUTE_AXIS) throw new XPathException(n, "Cannot test for comment() on the attribute axis"); test= new TypeTest(Type.COMMENT); break; } case 165: { org.exist.xquery.parser.XQueryAST tmp88_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,165); _t = _t.getNextSibling(); if (axis == Constants.ATTRIBUTE_AXIS) throw new XPathException(n, "Cannot test for processing-instruction() on the attribute axis"); test= new TypeTest(Type.PROCESSING_INSTRUCTION); break; } case 166: { org.exist.xquery.parser.XQueryAST tmp89_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,166); _t = _t.getNextSibling(); test= new TypeTest(Type.DOCUMENT); break; } default: { throw new NoViableAltException(_t); } } } step= new LocationStep(context, axis, test); path.add(step); { _loop145: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==PREDICATE)) { predicate(_t,(LocationStep) step); _t = _retTree; } else { break _loop145; } } while (true); } break; } case AT: { org.exist.xquery.parser.XQueryAST tmp90_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,AT); _t = _t.getNextSibling(); QName qname= null; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: { attr = (org.exist.xquery.parser.XQueryAST)_t; match(_t,QNAME); _t = _t.getNextSibling(); qname= QName.parse(staticContext, attr.getText(), null); break; } case WILDCARD: { org.exist.xquery.parser.XQueryAST tmp91_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,WILDCARD); _t = _t.getNextSibling(); break; } case PREFIX_WILDCARD: { AST __t147 = _t; org.exist.xquery.parser.XQueryAST tmp92_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,PREFIX_WILDCARD); _t = _t.getFirstChild(); nc2 = (org.exist.xquery.parser.XQueryAST)_t; match(_t,NCNAME); _t = _t.getNextSibling(); _t = __t147; _t = _t.getNextSibling(); qname= new QName(nc2.getText(), null, null); break; } case NCNAME: { AST __t148 = _t; nc3 = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,NCNAME); _t = _t.getFirstChild(); org.exist.xquery.parser.XQueryAST tmp93_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,WILDCARD); _t = _t.getNextSibling(); _t = __t148; _t = _t.getNextSibling(); String namespaceURI= staticContext.getURIForPrefix(nc3.getText()); if (namespaceURI == null) throw new EXistException("No namespace defined for prefix " + nc3.getText()); qname= new QName(null, namespaceURI, null); break; } default: { throw new NoViableAltException(_t); } } } NodeTest test= qname == null ? new TypeTest(Type.ATTRIBUTE) : new NameTest(Type.ATTRIBUTE, qname); step= new LocationStep(context, Constants.ATTRIBUTE_AXIS, test); path.add(step); { _loop150: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==PREDICATE)) { predicate(_t,(LocationStep) step); _t = _retTree; } else { break _loop150; } } while (true); } break; } case SELF: { org.exist.xquery.parser.XQueryAST tmp94_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,SELF); _t = _t.getNextSibling(); step= new LocationStep(context, Constants.SELF_AXIS, new TypeTest(Type.NODE)); path.add(step); { _loop152: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==PREDICATE)) { predicate(_t,(LocationStep) step); _t = _retTree; } else { break _loop152; } } while (true); } break; } case PARENT: { org.exist.xquery.parser.XQueryAST tmp95_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,PARENT); _t = _t.getNextSibling(); step= new LocationStep(context, Constants.PARENT_AXIS, new TypeTest(Type.NODE)); path.add(step); { _loop154: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==PREDICATE)) { predicate(_t,(LocationStep) step); _t = _retTree; } else { break _loop154; } } while (true); } break; } case SLASH: { AST __t155 = _t; org.exist.xquery.parser.XQueryAST tmp96_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,SLASH); _t = _t.getFirstChild(); step=expr(_t,path); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case COMP_DOC_CONSTRUCTOR: case PRAGMA: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case COMMA: case LCURLY: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_typeswitch: case LITERAL_update: case LITERAL_preceding: case LITERAL_following: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_treat: case LITERAL_castable: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 165: case 166: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 178: case 179: case LITERAL_parent: case LITERAL_ancestor: case 182: case 183: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_CDATA: { rightStep=expr(_t,path); _t = _retTree; if (rightStep instanceof LocationStep) { if(((LocationStep) rightStep).getAxis() == Constants.UNKNOWN_AXIS) ((LocationStep) rightStep).setAxis(Constants.CHILD_AXIS); } else { rightStep.setPrimaryAxis(Constants.CHILD_AXIS); if(rightStep instanceof VariableReference) { rightStep = new SimpleStep(context, Constants.CHILD_AXIS, rightStep); path.replaceLastExpression(rightStep); } } break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t155; _t = _t.getNextSibling(); if (step instanceof LocationStep && ((LocationStep) step).getAxis() == Constants.UNKNOWN_AXIS) ((LocationStep) step).setAxis(Constants.CHILD_AXIS); break; } case DSLASH: { AST __t157 = _t; org.exist.xquery.parser.XQueryAST tmp97_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,DSLASH); _t = _t.getFirstChild(); step=expr(_t,path); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case COMP_DOC_CONSTRUCTOR: case PRAGMA: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case COMMA: case LCURLY: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_typeswitch: case LITERAL_update: case LITERAL_preceding: case LITERAL_following: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_treat: case LITERAL_castable: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 165: case 166: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 178: case 179: case LITERAL_parent: case LITERAL_ancestor: case 182: case 183: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_CDATA: { rightStep=expr(_t,path); _t = _retTree; if (rightStep instanceof LocationStep) { LocationStep rs= (LocationStep) rightStep; if (rs.getAxis() == Constants.ATTRIBUTE_AXIS) rs.setAxis(Constants.DESCENDANT_ATTRIBUTE_AXIS); else rs.setAxis(Constants.DESCENDANT_SELF_AXIS); } else { rightStep.setPrimaryAxis(Constants.DESCENDANT_SELF_AXIS); if(rightStep instanceof VariableReference) { rightStep = new SimpleStep(context, Constants.DESCENDANT_SELF_AXIS, rightStep); path.replaceLastExpression(rightStep); } } break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t157; _t = _t.getNextSibling(); if (step instanceof LocationStep && ((LocationStep) step).getAxis() == Constants.UNKNOWN_AXIS) ((LocationStep) step).setAxis(Constants.DESCENDANT_SELF_AXIS); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; return step; }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/44415d5ab271629cb9c572bd44ec8cedcc36aaca/XQueryTreeParser.java/buggy/src/org/exist/xquery/parser/XQueryTreeParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
5371,
225,
589,
4742,
12,
9053,
389,
88,
16,
202,
202,
743,
4742,
589,
202,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
16,
14124,
503,
288,
202,
202,
2300,
2235,
31,
9506,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
589,
4742,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
13,
67,
88,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
31054,
273,
446,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
8194,
21,
273,
446,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
8194,
273,
446,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
290,
273,
446,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
31054,
22,
273,
446,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
31054,
23,
273,
446,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
1604,
273,
446,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
8194,
22,
273,
446,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
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,
5371,
225,
589,
4742,
12,
9053,
389,
88,
16,
202,
202,
743,
4742,
589,
202,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
16,
14124,
503,
288,
202,
202,
2300,
2235,
31,
9506,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
589,
4742,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
13,
67,
88,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
31054,
273,
446,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
8194,
2
] |
String nullFlag = r.getString(6); String typname = r.getString(10);
|
tuple[0] = null; tuple[1] = rs.getBytes("nspname"); tuple[2] = rs.getBytes("relname"); tuple[3] = rs.getBytes("attname"); tuple[4] = Integer.toString(connection.getSQLType(typeOid)).getBytes(); String pgType = connection.getPGType(typeOid); tuple[5] = pgType.getBytes();
|
public java.sql.ResultSet getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException { Vector v = new Vector(); // The new ResultSet tuple stuff Field f[] = new Field[18]; // The field descriptors for the new ResultSet f[0] = new Field(connection, "TABLE_CAT", iVarcharOid, NAME_SIZE); f[1] = new Field(connection, "TABLE_SCHEM", iVarcharOid, NAME_SIZE); f[2] = new Field(connection, "TABLE_NAME", iVarcharOid, NAME_SIZE); f[3] = new Field(connection, "COLUMN_NAME", iVarcharOid, NAME_SIZE); f[4] = new Field(connection, "DATA_TYPE", iInt2Oid, 2); f[5] = new Field(connection, "TYPE_NAME", iVarcharOid, NAME_SIZE); f[6] = new Field(connection, "COLUMN_SIZE", iInt4Oid, 4); f[7] = new Field(connection, "BUFFER_LENGTH", iVarcharOid, NAME_SIZE); f[8] = new Field(connection, "DECIMAL_DIGITS", iInt4Oid, 4); f[9] = new Field(connection, "NUM_PREC_RADIX", iInt4Oid, 4); f[10] = new Field(connection, "NULLABLE", iInt4Oid, 4); f[11] = new Field(connection, "REMARKS", iVarcharOid, NAME_SIZE); f[12] = new Field(connection, "COLUMN_DEF", iVarcharOid, NAME_SIZE); f[13] = new Field(connection, "SQL_DATA_TYPE", iInt4Oid, 4); f[14] = new Field(connection, "SQL_DATETIME_SUB", iInt4Oid, 4); f[15] = new Field(connection, "CHAR_OCTET_LENGTH", iVarcharOid, NAME_SIZE); f[16] = new Field(connection, "ORDINAL_POSITION", iInt4Oid, 4); f[17] = new Field(connection, "IS_NULLABLE", iVarcharOid, NAME_SIZE); StringBuffer sql = new StringBuffer(512); /* Build a >= 7.1 SQL statement to list all columns */ sql.append("select " + (connection.haveMinimumServerVersion("7.2") ? "a.attrelid, " : "a.oid, ") + " c.relname, " + " a.attname, " + " a.atttypid, " + " a.attnum, " + " a.attnotnull, " + " a.attlen, " + " a.atttypmod, " + " d.adsrc, " + " t.typname, " + /* Use the new col_description in 7.2 or an additional outer join in 7.1 */ (connection.haveMinimumServerVersion("7.2") ? "col_description(a.attrelid, a.attnum) " : "e.description ") + "from" + " (" + " (pg_class c inner join pg_attribute a on" + " (" + " a.attrelid=c.oid"); if ((tableNamePattern != null) && ! tableNamePattern.equals("%")) { sql.append(" and c.relname like \'" + tableNamePattern.toLowerCase() + "\'"); } if ((columnNamePattern != null) && ! columnNamePattern.equals("%")) { sql.append(" and a.attname like \'" + columnNamePattern.toLowerCase() + "\'"); } sql.append( " and a.attnum > 0" + " )" + " ) inner join pg_type t on" + " (" + " t.oid = a.atttypid" + " )" + " )" + " left outer join pg_attrdef d on" + " (" + " c.oid = d.adrelid" + " and a.attnum = d.adnum" + " ) "); if (!connection.haveMinimumServerVersion("7.2")) { /* Only for 7.1 */ sql.append( " left outer join pg_description e on" + " (" + " e.objoid = a.oid" + " ) "); } sql.append("order by" + " c.relname, a.attnum"); java.sql.ResultSet r = connection.ExecSQL(sql.toString()); while (r.next()) { byte[][] tuple = new byte[18][0]; String nullFlag = r.getString(6); String typname = r.getString(10); tuple[0] = null; // Catalog name, not supported tuple[1] = null; // Schema name, not supported tuple[2] = r.getBytes(2); // Table name tuple[3] = r.getBytes(3); // Column name tuple[4] = Integer.toString(connection.getSQLType(typname)).getBytes(); // Data type tuple[5] = typname.getBytes(); // Type name // Column size // Looking at the psql source, // I think the length of a varchar as specified when the table was created // should be extracted from atttypmod which contains this length + sizeof(int32) if (typname.equals("bpchar") || typname.equals("varchar")) { int atttypmod = r.getInt(8); tuple[6] = Integer.toString(atttypmod != -1 ? atttypmod - VARHDRSZ : 0).getBytes(); } else { tuple[6] = r.getBytes(7); } tuple[7] = null; // Buffer length // Decimal digits = scale // From the source (see e.g. backend/utils/adt/format_type.c, // function numeric()) the scale and precision can be calculated // from the typmod value. if (typname.equals("numeric") || typname.equals("decimal")) { int attypmod = r.getInt(8) - VARHDRSZ; tuple[8] = Integer.toString(attypmod & 0xffff).getBytes(); tuple[9] = Integer.toString( ( attypmod >> 16 ) & 0xffff ).getBytes(); } else { tuple[8] = "0".getBytes(); tuple[9] = "10".getBytes(); // Num Prec Radix - assume decimal } tuple[10] = Integer.toString(nullFlag.equals("f") ? java.sql.DatabaseMetaData.columnNullable : java.sql.DatabaseMetaData.columnNoNulls).getBytes(); // Nullable tuple[11] = r.getBytes(11); // Description (if any) tuple[12] = r.getBytes(9); // Column default tuple[13] = null; // sql data type (unused) tuple[14] = null; // sql datetime sub (unused) tuple[15] = tuple[6]; // char octet length tuple[16] = r.getBytes(5); // ordinal position tuple[17] = (nullFlag.equals("f") ? "YES" : "NO").getBytes(); // Is nullable v.addElement(tuple); } r.close(); return connection.getResultSet(null, f, v, "OK", 1); }
|
45534 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45534/7c553901d7ab010ad1cb5bf44f9ca2fdae83909a/AbstractJdbc1DatabaseMetaData.java/clean/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2252,
18,
4669,
18,
13198,
14226,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
4775,
3234,
16,
514,
7578,
3234,
13,
1216,
6483,
202,
95,
202,
202,
5018,
331,
273,
394,
5589,
5621,
202,
202,
759,
1021,
394,
10842,
3193,
10769,
202,
202,
974,
284,
8526,
273,
394,
2286,
63,
2643,
15533,
202,
202,
759,
1021,
652,
14215,
364,
326,
394,
10842,
202,
202,
74,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
14130,
3113,
277,
58,
22483,
19105,
16,
6048,
67,
4574,
1769,
202,
202,
74,
63,
21,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
55,
10390,
3113,
277,
58,
22483,
19105,
16,
6048,
67,
4574,
1769,
202,
202,
74,
63,
22,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
6048,
67,
4574,
1769,
202,
202,
74,
63,
23,
65,
273,
394,
2286,
12,
4071,
16,
315,
11009,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
6048,
67,
4574,
1769,
202,
202,
74,
63,
24,
65,
273,
394,
2286,
12,
4071,
16,
315,
4883,
67,
2399,
3113,
277,
1702,
22,
19105,
16,
576,
1769,
202,
202,
74,
63,
25,
65,
273,
394,
2286,
12,
4071,
16,
315,
2399,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
6048,
67,
4574,
1769,
202,
202,
74,
63,
26,
65,
273,
394,
2286,
12,
4071,
16,
315,
11009,
67,
4574,
3113,
277,
1702,
24,
19105,
16,
1059,
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,
2252,
18,
4669,
18,
13198,
14226,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
4775,
3234,
16,
514,
7578,
3234,
13,
1216,
6483,
202,
95,
202,
202,
5018,
331,
273,
394,
5589,
5621,
202,
202,
759,
1021,
394,
10842,
3193,
10769,
202,
202,
974,
284,
8526,
273,
394,
2286,
63,
2643,
15533,
202,
202,
759,
1021,
652,
14215,
364,
326,
394,
10842,
202,
202,
74,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
14130,
3113,
277,
58,
22483,
19105,
16,
6048,
67,
4574,
1769,
202,
202,
74,
63,
21,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
55,
10390,
3113,
277,
58,
22483,
19105,
16,
6048,
67,
4574,
1769,
2
] |
Map nodesWithImplementors = new HashMap(m_remoteNodesWithImplementors); nodesWithImplementors.put(m_messenger.getLocalNode(),localNodesWithImplementors ); UnifiedInitMessage init = new UnifiedInitMessage(created, nodesWithImplementors);
|
public void messageReceived(Serializable msg, INode from) { if(msg instanceof UnifiedInitRequest) { List localNodesWithImplementors = new ArrayList(); EndPointCreated[] created = new EndPointCreated[m_localEndPoints.keySet().size()]; Iterator names = m_localEndPoints.keySet().iterator(); int i = 0; while(names.hasNext()) { String name = (String) names.next(); EndPoint endPoint = (EndPoint) m_localEndPoints.get(name); if(endPoint.hasImplementors()) { localNodesWithImplementors.add(endPoint.getName()); } created[i] = new EndPointCreated( RemoteMethodCall.classesToString(endPoint.getClasses()), name, endPoint.isSingleThreaded()); i++; } Map nodesWithImplementors = new HashMap(m_remoteNodesWithImplementors); nodesWithImplementors.put(m_messenger.getLocalNode(),localNodesWithImplementors ); UnifiedInitMessage init = new UnifiedInitMessage(created, nodesWithImplementors); m_messenger.send(init, from); } }
|
8339 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8339/ca34366b9a3865cf25362f630569c84db100c969/UnifiedMessenger.java/clean/src/games/strategy/engine/message/UnifiedMessenger.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
883,
8872,
12,
21682,
1234,
16,
21176,
628,
13,
3639,
288,
4766,
565,
309,
12,
3576,
1276,
1351,
939,
2570,
691,
13,
5411,
288,
7734,
987,
1191,
3205,
1190,
5726,
1383,
273,
394,
2407,
5621,
7734,
4403,
2148,
6119,
8526,
2522,
273,
394,
4403,
2148,
6119,
63,
81,
67,
3729,
1638,
5636,
18,
856,
694,
7675,
1467,
1435,
15533,
7734,
4498,
1257,
273,
312,
67,
3729,
1638,
5636,
18,
856,
694,
7675,
9838,
5621,
7734,
509,
277,
273,
374,
31,
7734,
1323,
12,
1973,
18,
5332,
2134,
10756,
7734,
288,
10792,
514,
508,
273,
261,
780,
13,
1257,
18,
4285,
5621,
10792,
4403,
2148,
19849,
273,
261,
27185,
13,
312,
67,
3729,
1638,
5636,
18,
588,
12,
529,
1769,
4766,
3639,
309,
12,
409,
2148,
18,
5332,
5726,
1383,
10756,
10792,
288,
13491,
1191,
3205,
1190,
5726,
1383,
18,
1289,
12,
409,
2148,
18,
17994,
10663,
10792,
289,
4766,
3639,
2522,
63,
77,
65,
273,
394,
4403,
2148,
6119,
12,
4766,
4202,
6304,
12592,
18,
4701,
5808,
12,
409,
2148,
18,
588,
4818,
1435,
3631,
4766,
3639,
508,
16,
4766,
4202,
19849,
18,
291,
5281,
1315,
20528,
10663,
10792,
277,
9904,
31,
7734,
289,
27573,
1635,
2199,
1190,
5726,
1383,
273,
394,
4317,
12,
81,
67,
7222,
3205,
1190,
5726,
1383,
1769,
7734,
2199,
1190,
5726,
1383,
18,
458,
12,
81,
67,
81,
18912,
18,
588,
2042,
907,
9334,
3729,
3205,
1190,
5726,
1383,
11272,
27573,
1351,
939,
2570,
1079,
1208,
273,
394,
1351,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
883,
8872,
12,
21682,
1234,
16,
21176,
628,
13,
3639,
288,
4766,
565,
309,
12,
3576,
1276,
1351,
939,
2570,
691,
13,
5411,
288,
7734,
987,
1191,
3205,
1190,
5726,
1383,
273,
394,
2407,
5621,
7734,
4403,
2148,
6119,
8526,
2522,
273,
394,
4403,
2148,
6119,
63,
81,
67,
3729,
1638,
5636,
18,
856,
694,
7675,
1467,
1435,
15533,
7734,
4498,
1257,
273,
312,
67,
3729,
1638,
5636,
18,
856,
694,
7675,
9838,
5621,
7734,
509,
277,
273,
374,
31,
7734,
1323,
12,
1973,
18,
5332,
2134,
10756,
7734,
288,
10792,
514,
508,
273,
261,
780,
13,
1257,
18,
4285,
5621,
10792,
4403,
2148,
19849,
273,
261,
27185,
13,
312,
67,
3729,
1638,
5636,
18,
588,
2
] |
|
receivedPacket();
|
receivedPacket(unverified);
|
public synchronized boolean completedHandshake(long thisBootID, byte[] data, int offset, int length, BlockCipher encCipher, byte[] encKey, Peer replyTo, boolean unverified) { long now = System.currentTimeMillis(); completedHandshake = true; handshakeCount = 0; arkFetcher.stop(); bogusNoderef = false; try { // First, the new noderef processNewNoderef(data, offset, length); } catch (FSParseException e1) { bogusNoderef = true; Logger.error(this, "Failed to parse new noderef for "+this+": "+e1, e1); // Treat as invalid version } if(reverseInvalidVersion()) { try { node.setNewestPeerLastGoodVersion(Version.getArbitraryBuildNumber(lastGoodVersion)); } catch (NumberFormatException e) { // ignore } Logger.normal(this, "Not connecting to "+this+" - reverse invalid version "+Version.getVersionString()+" for peer's lastGoodversion: "+lastGoodVersion); verifiedIncompatibleNewerVersion = true; isConnected = false; setPeerNodeStatus(now); node.peers.disconnected(this); return false; } else { verifiedIncompatibleNewerVersion = false; setPeerNodeStatus(now); } if(invalidVersion()) { Logger.normal(this, "Not connecting to "+this+" - invalid version "+version); verifiedIncompatibleOlderVersion = true; isConnected = false; setPeerNodeStatus(now); node.peers.disconnected(this); return false; } else { verifiedIncompatibleOlderVersion = false; setPeerNodeStatus(now); } KeyTracker newTracker = new KeyTracker(this, encCipher, encKey); changedIP(replyTo); if(thisBootID != this.bootID) { connectedTime = System.currentTimeMillis(); Logger.minor(this, "Changed boot ID from "+bootID+" to "+thisBootID+" for "+getPeer()); isConnected = false; // Will be reset below setPeerNodeStatus(now); if(previousTracker != null) { KeyTracker old = previousTracker; previousTracker = null; old.completelyDeprecated(newTracker); } previousTracker = null; if(currentTracker != null) { KeyTracker old = currentTracker; currentTracker = null; old.completelyDeprecated(newTracker); } this.bootID = thisBootID; node.lm.lostOrRestartedNode(this); } // else it's a rekey if(unverified) { unverifiedTracker = newTracker; ctx = null; Logger.minor(this, "sentHandshake() being called for unverifiedTracker: "+getPeer()); sentHandshake(); } else { previousTracker = currentTracker; currentTracker = newTracker; unverifiedTracker = null; if(previousTracker != null) previousTracker.deprecated(); isConnected = true; neverConnected = false; peerAddedTime = 0; // don't store anymore setPeerNodeStatus(now); ctx = null; } if(!isConnected) node.peers.disconnected(this); Logger.normal(this, "Completed handshake with "+this+" on "+replyTo+" - current: "+currentTracker+" old: "+previousTracker+" unverified: "+unverifiedTracker+" bootID: "+thisBootID+" myName: "+myName); try { receivedPacket(); } catch (NotConnectedException e) { Logger.error(this, "Disconnected in completedHandshake with "+this); return true; // i suppose } if(isConnected) node.peers.addConnectedPeer(this); sentInitialMessages = false; return true; }
|
50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/526001d229fbb8984520830276cc81c59ed6b3a1/PeerNode.java/buggy/src/freenet/node/PeerNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
1250,
5951,
14545,
12,
5748,
333,
15817,
734,
16,
1160,
8526,
501,
16,
509,
1384,
16,
509,
769,
16,
3914,
13896,
2446,
13896,
16,
1160,
8526,
2446,
653,
16,
10669,
30934,
16,
1250,
640,
19685,
13,
288,
1377,
1525,
2037,
273,
2332,
18,
2972,
28512,
5621,
377,
202,
13615,
14545,
273,
638,
31,
377,
202,
2349,
7478,
1380,
273,
374,
31,
377,
202,
1313,
16855,
18,
5681,
5621,
3639,
324,
28774,
50,
369,
822,
74,
273,
629,
31,
3639,
775,
288,
5411,
368,
5783,
16,
326,
394,
14003,
822,
74,
5411,
1207,
1908,
50,
369,
822,
74,
12,
892,
16,
1384,
16,
769,
1769,
3639,
289,
1044,
261,
4931,
13047,
425,
21,
13,
288,
5411,
324,
28774,
50,
369,
822,
74,
273,
638,
31,
5411,
4242,
18,
1636,
12,
2211,
16,
315,
2925,
358,
1109,
394,
14003,
822,
74,
364,
13773,
2211,
15,
6877,
13773,
73,
21,
16,
425,
21,
1769,
5411,
368,
26564,
487,
2057,
1177,
3639,
289,
3639,
309,
12,
9845,
1941,
1444,
10756,
288,
5411,
775,
288,
7734,
756,
18,
542,
1908,
395,
6813,
3024,
18195,
1444,
12,
1444,
18,
588,
686,
3682,
3345,
3116,
1854,
12,
2722,
18195,
1444,
10019,
5411,
289,
1044,
261,
1854,
9291,
425,
13,
288,
7734,
368,
2305,
5411,
289,
5411,
4242,
18,
6130,
12,
2211,
16,
315,
1248,
14244,
358,
13773,
2211,
9078,
300,
4219,
2057,
1177,
13773,
1444,
18,
588,
1444,
780,
1435,
9078,
364,
4261,
1807,
1142,
18195,
1589,
30,
13773,
2722,
18195,
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,
3852,
1250,
5951,
14545,
12,
5748,
333,
15817,
734,
16,
1160,
8526,
501,
16,
509,
1384,
16,
509,
769,
16,
3914,
13896,
2446,
13896,
16,
1160,
8526,
2446,
653,
16,
10669,
30934,
16,
1250,
640,
19685,
13,
288,
1377,
1525,
2037,
273,
2332,
18,
2972,
28512,
5621,
377,
202,
13615,
14545,
273,
638,
31,
377,
202,
2349,
7478,
1380,
273,
374,
31,
377,
202,
1313,
16855,
18,
5681,
5621,
3639,
324,
28774,
50,
369,
822,
74,
273,
629,
31,
3639,
775,
288,
5411,
368,
5783,
16,
326,
394,
14003,
822,
74,
5411,
1207,
1908,
50,
369,
822,
74,
12,
892,
16,
1384,
16,
769,
1769,
3639,
289,
1044,
261,
4931,
13047,
425,
21,
13,
288,
5411,
324,
2
] |
( super.getThemeStylesheetUserPreferences( person,
|
( /*super.*/_getThemeStylesheetUserPreferences( person,
|
DistributedUserPreferences getDistributedTSUP( IPerson person, int profileId, int stylesheetId ) throws Exception { return new DistributedUserPreferences ( super.getThemeStylesheetUserPreferences( person, profileId, stylesheetId ) ); }
|
24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/4e545eb46d580aa407353bbe4e72269737056e22/RDBMDistributedLayoutStore.java/clean/source/org/jasig/portal/layout/dlm/RDBMDistributedLayoutStore.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
27877,
1299,
12377,
336,
1669,
11050,
8047,
3079,
12,
2971,
3565,
6175,
16,
4766,
10402,
509,
25903,
16,
4766,
10402,
509,
13820,
548,
262,
3639,
1216,
1185,
565,
288,
3639,
327,
394,
27877,
1299,
12377,
5411,
261,
1748,
9565,
4509,
18510,
588,
8335,
24656,
1299,
12377,
12,
6175,
16,
4766,
15604,
25903,
16,
4766,
15604,
13820,
548,
262,
11272,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
27877,
1299,
12377,
336,
1669,
11050,
8047,
3079,
12,
2971,
3565,
6175,
16,
4766,
10402,
509,
25903,
16,
4766,
10402,
509,
13820,
548,
262,
3639,
1216,
1185,
565,
288,
3639,
327,
394,
27877,
1299,
12377,
5411,
261,
1748,
9565,
4509,
18510,
588,
8335,
24656,
1299,
12377,
12,
6175,
16,
4766,
15604,
25903,
16,
4766,
15604,
13820,
548,
262,
11272,
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
] |
return ((BaseFunction)fun).decompile(this, indent, 0);
|
return ((BaseFunction)fun).decompile(indent, 0);
|
public final String decompileFunction(Function fun, int indent) { if (fun instanceof BaseFunction) return ((BaseFunction)fun).decompile(this, indent, 0); else return "function " + fun.getClassName() + "() {\n\t[native code]\n}\n"; }
|
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/f4ff06f911a8e5be2e3bc270a9d7fa7fd39f1ced/Context.java/clean/js/rhino/src/org/mozilla/javascript/Context.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
514,
443,
11100,
2083,
12,
2083,
9831,
16,
509,
3504,
13,
565,
288,
3639,
309,
261,
12125,
1276,
3360,
2083,
13,
5411,
327,
14015,
2171,
2083,
13,
12125,
2934,
323,
11100,
12,
9355,
16,
374,
1769,
3639,
469,
5411,
327,
315,
915,
315,
397,
9831,
18,
588,
3834,
1435,
397,
10402,
25605,
18890,
82,
64,
88,
63,
13635,
981,
13944,
82,
6280,
82,
14432,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
727,
514,
443,
11100,
2083,
12,
2083,
9831,
16,
509,
3504,
13,
565,
288,
3639,
309,
261,
12125,
1276,
3360,
2083,
13,
5411,
327,
14015,
2171,
2083,
13,
12125,
2934,
323,
11100,
12,
9355,
16,
374,
1769,
3639,
469,
5411,
327,
315,
915,
315,
397,
9831,
18,
588,
3834,
1435,
397,
10402,
25605,
18890,
82,
64,
88,
63,
13635,
981,
13944,
82,
6280,
82,
14432,
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
] |
MNode3D vt = r.getNearVertex(new MNode3D(xyz, -1));
|
MNode3D vt = r.getNearVertex(new MNode3D(xyz, 0));
|
public void run() { double [] xyz = view.getLastClick(); if (null != xyz) { MNode3D vt = r.getNearVertex(new MNode3D(xyz, -1)); r.remove(vt); view.removeAllBranchGroup(); display(view, r); } }
|
46701 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46701/55712c16feb59b359f13fef1e0c46a7eb7dc3b27/OctreeTestRemove.java/clean/amibe/src/org/jcae/mesh/amibe/util/tests/OctreeTestRemove.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
1086,
1435,
9506,
202,
95,
6862,
202,
9056,
5378,
14779,
273,
1476,
18,
588,
3024,
6563,
5621,
6862,
202,
430,
261,
2011,
480,
14779,
13,
6862,
202,
95,
25083,
202,
49,
907,
23,
40,
7966,
273,
436,
18,
588,
24686,
6475,
12,
2704,
490,
907,
23,
40,
12,
17177,
16,
300,
21,
10019,
25083,
202,
86,
18,
4479,
12,
11734,
1769,
25083,
202,
1945,
18,
4479,
1595,
7108,
1114,
5621,
25083,
202,
5417,
12,
1945,
16,
436,
1769,
6862,
202,
97,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
1086,
1435,
9506,
202,
95,
6862,
202,
9056,
5378,
14779,
273,
1476,
18,
588,
3024,
6563,
5621,
6862,
202,
430,
261,
2011,
480,
14779,
13,
6862,
202,
95,
25083,
202,
49,
907,
23,
40,
7966,
273,
436,
18,
588,
24686,
6475,
12,
2704,
490,
907,
23,
40,
12,
17177,
16,
300,
21,
10019,
25083,
202,
86,
18,
4479,
12,
11734,
1769,
25083,
202,
1945,
18,
4479,
1595,
7108,
1114,
5621,
25083,
202,
5417,
12,
1945,
16,
436,
1769,
6862,
202,
97,
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
] |
.append(" value=\"").append(id).append("\" id=\"").append(idAttr).append( "\"/>");
|
.append((isEnabled() ? "" : " disabled=\"disabled\"")).append(" value=\"") .append(id).append("\" id=\"").append(idAttr).append("\"/>");
|
protected final void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { // Iterate through choices final List<T> choices = getChoices(); // Buffer to hold generated body final AppendingStringBuffer buffer = new AppendingStringBuffer(70 * (choices.size() + 1)); // Value of this choice final String selected = getValue(); // Loop through choices for (int index = 0; index < choices.size(); index++) { // Get next choice final T choice = choices.get(index); Object displayValue = getChoiceRenderer().getDisplayValue(choice); Class objectClass = displayValue == null ? null : displayValue.getClass(); // Get label for choice final String label = getConverter(objectClass).convertToString(displayValue, getLocale()); // If there is a display value for the choice, then we know that the // choice is automatic in some way. If label is /null/ then we know // that the choice is a manually created checkbox tag at some random // location in the page markup! if (label != null) { // Append option suffix buffer.append(getPrefix()); String id = getChoiceRenderer().getIdValue(choice, index); final String idAttr = getInputName() + "_" + id; // Add checkbox element buffer.append("<input name=\"").append(getInputName()).append("\"").append( " type=\"checkbox\"").append( (isSelected(choice, index, selected) ? " checked=\"checked\"" : "")) .append(" value=\"").append(id).append("\" id=\"").append(idAttr).append( "\"/>"); // Add label for checkbox String display = label; if (localizeDisplayValues()) { display = getLocalizer().getString(label, this, label); } CharSequence escaped = Strings.escapeMarkup(display, false, true); buffer.append("<label for=\""); buffer.append(idAttr); buffer.append("\">").append(escaped).append("</label>"); // Append option suffix buffer.append(getSuffix()); } } // Replace body replaceComponentTagBody(markupStream, openTag, buffer); }
|
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/ccd7880fd18602c6712a6cc4a0eff9385da81e42/CheckBoxMultipleChoice.java/clean/wicket/src/java/wicket/markup/html/form/CheckBoxMultipleChoice.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
918,
603,
1841,
1805,
2250,
12,
6385,
26420,
1228,
9813,
1228,
16,
1082,
202,
6385,
5435,
1805,
28059,
13,
202,
95,
202,
202,
759,
11436,
3059,
7246,
202,
202,
6385,
987,
32,
56,
34,
7246,
273,
336,
17442,
5621,
202,
202,
759,
3525,
358,
6887,
4374,
1417,
202,
202,
6385,
6181,
310,
780,
1892,
1613,
273,
394,
6181,
310,
780,
1892,
12,
7301,
380,
261,
11937,
18,
1467,
1435,
397,
404,
10019,
202,
202,
759,
1445,
434,
333,
6023,
202,
202,
6385,
514,
3170,
273,
2366,
5621,
202,
202,
759,
9720,
3059,
7246,
202,
202,
1884,
261,
474,
770,
273,
374,
31,
770,
411,
7246,
18,
1467,
5621,
770,
27245,
202,
202,
95,
1082,
202,
759,
968,
1024,
6023,
1082,
202,
6385,
399,
6023,
273,
7246,
18,
588,
12,
1615,
1769,
1082,
202,
921,
2562,
620,
273,
336,
10538,
6747,
7675,
588,
4236,
620,
12,
11569,
1769,
1082,
202,
797,
23992,
273,
2562,
620,
422,
446,
692,
446,
294,
2562,
620,
18,
588,
797,
5621,
1082,
202,
759,
968,
1433,
364,
6023,
1082,
202,
6385,
514,
1433,
273,
31173,
12,
1612,
797,
2934,
6283,
5808,
12,
5417,
620,
16,
6862,
202,
588,
3916,
10663,
1082,
202,
759,
971,
1915,
353,
279,
2562,
460,
364,
326,
6023,
16,
1508,
732,
5055,
716,
326,
1082,
202,
759,
6023,
353,
5859,
316,
2690,
4031,
18,
971,
1433,
353,
342,
2011,
19,
1508,
732,
5055,
1082,
202,
759,
716,
326,
6023,
353,
279,
10036,
2522,
11832,
1047,
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,
727,
918,
603,
1841,
1805,
2250,
12,
6385,
26420,
1228,
9813,
1228,
16,
1082,
202,
6385,
5435,
1805,
28059,
13,
202,
95,
202,
202,
759,
11436,
3059,
7246,
202,
202,
6385,
987,
32,
56,
34,
7246,
273,
336,
17442,
5621,
202,
202,
759,
3525,
358,
6887,
4374,
1417,
202,
202,
6385,
6181,
310,
780,
1892,
1613,
273,
394,
6181,
310,
780,
1892,
12,
7301,
380,
261,
11937,
18,
1467,
1435,
397,
404,
10019,
202,
202,
759,
1445,
434,
333,
6023,
202,
202,
6385,
514,
3170,
273,
2366,
5621,
202,
202,
759,
9720,
3059,
7246,
202,
202,
1884,
261,
474,
770,
273,
374,
31,
770,
411,
7246,
18,
1467,
5621,
770,
27245,
202,
202,
95,
1082,
202,
2
] |
n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH));
|
n.putIntProp(Node.ISNUMBER_PROP, Node.BOTH);
|
int rewriteForNumberVariables(Node n) { switch (n.getType()) { case TokenStream.POP : { Node child = n.getFirstChild(); int type = rewriteForNumberVariables(child); if (type == TypeEvent.NumberType) n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); return TypeEvent.NoType; } case TokenStream.NUMBER : n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); return TypeEvent.NumberType; case TokenStream.GETVAR : { OptLocalVariable theVar = (OptLocalVariable)(n.getProp(Node.VARIABLE_PROP)); if (theVar != null) { if (inDirectCallFunction && theVar.isParameter()) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); return TypeEvent.NumberType; } else if (theVar.isNumber()) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); return TypeEvent.NumberType; } } return TypeEvent.NoType; } case TokenStream.INC : case TokenStream.DEC : { Node child = n.getFirstChild(); // will be a GETVAR or GETPROP if (child.getType() == TokenStream.GETVAR) { OptLocalVariable theVar = (OptLocalVariable)(child.getProp(Node.VARIABLE_PROP)); if ((theVar != null) && theVar.isNumber()) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); markDCPNumberContext(child); return TypeEvent.NumberType; } else return TypeEvent.NoType; } else return TypeEvent.NoType; } case TokenStream.SETVAR : { Node lChild = n.getFirstChild(); Node rChild = lChild.getNextSibling(); int rType = rewriteForNumberVariables(rChild); OptLocalVariable theVar = (OptLocalVariable)(n.getProp(Node.VARIABLE_PROP)); if (inDirectCallFunction && theVar.isParameter()) { if (rType == TypeEvent.NumberType) { if (!convertParameter(rChild)) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); return TypeEvent.NumberType; } markDCPNumberContext(rChild); return TypeEvent.NoType; } else return rType; } else { if ((theVar != null) && theVar.isNumber()) { if (rType != TypeEvent.NumberType) { n.removeChild(rChild); Node newRChild = new Node(TokenStream.CONVERT, rChild); newRChild.putProp(Node.TYPE_PROP, Double.class); n.addChildToBack(newRChild); } n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); markDCPNumberContext(rChild); return TypeEvent.NumberType; } else { if (rType == TypeEvent.NumberType) { if (!convertParameter(rChild)) { n.removeChild(rChild); Node newRChild = new Node(TokenStream.CONVERT, rChild); newRChild.putProp(Node.TYPE_PROP, Object.class); n.addChildToBack(newRChild); } } return TypeEvent.NoType; } } } case TokenStream.RELOP : { Node lChild = n.getFirstChild(); Node rChild = lChild.getNextSibling(); int lType = rewriteForNumberVariables(lChild); int rType = rewriteForNumberVariables(rChild); markDCPNumberContext(lChild); markDCPNumberContext(rChild); if ((n.getInt() == TokenStream.INSTANCEOF) || (n.getInt() == TokenStream.IN)) { if (lType == TypeEvent.NumberType) { if (!convertParameter(lChild)) { n.removeChild(lChild); Node nuChild = new Node(TokenStream.CONVERT, lChild); nuChild.putProp(Node.TYPE_PROP, Object.class); n.addChildToFront(nuChild); } } if (rType == TypeEvent.NumberType) { if (!convertParameter(rChild)) { n.removeChild(rChild); Node nuChild = new Node(TokenStream.CONVERT, rChild); nuChild.putProp(Node.TYPE_PROP, Object.class); n.addChildToBack(nuChild); } } } else { if (convertParameter(lChild)) { if (convertParameter(rChild)) { return TypeEvent.NoType; } else { if (rType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.RIGHT)); } } } else { if (convertParameter(rChild)) { if (lType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.LEFT)); } } else { if (lType == TypeEvent.NumberType) { if (rType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); } else { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.LEFT)); } } else { if (rType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.RIGHT)); } } } } } // we actually build a boolean value return TypeEvent.NoType; } case TokenStream.ADD : { Node lChild = n.getFirstChild(); Node rChild = lChild.getNextSibling(); int lType = rewriteForNumberVariables(lChild); int rType = rewriteForNumberVariables(rChild); if (convertParameter(lChild)) { if (convertParameter(rChild)) { return TypeEvent.NoType; } else { if (rType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP,new Integer(Node.RIGHT)); } } } else { if (convertParameter(rChild)) { if (lType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP,new Integer(Node.LEFT)); } } else { if (lType == TypeEvent.NumberType) { if (rType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP,new Integer(Node.BOTH)); return TypeEvent.NumberType; } else { n.putProp(Node.ISNUMBER_PROP,new Integer(Node.LEFT)); } } else { if (rType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP,new Integer(Node.RIGHT)); } } } } return TypeEvent.NoType; } case TokenStream.BITXOR : case TokenStream.BITOR : case TokenStream.BITAND : case TokenStream.RSH : case TokenStream.LSH : case TokenStream.SUB : case TokenStream.MUL : case TokenStream.DIV : case TokenStream.MOD : { Node lChild = n.getFirstChild(); Node rChild = lChild.getNextSibling(); int lType = rewriteForNumberVariables(lChild); int rType = rewriteForNumberVariables(rChild); markDCPNumberContext(lChild); markDCPNumberContext(rChild); if (lType == TypeEvent.NumberType) { if (rType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); return TypeEvent.NumberType; } else { if (!convertParameter(rChild)) { n.removeChild(rChild); Node newRChild = new Node(TokenStream.CONVERT, rChild); newRChild.putProp(Node.TYPE_PROP, Double.class); n.addChildToBack(newRChild); n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); } return TypeEvent.NumberType; } } else { if (rType == TypeEvent.NumberType) { if (!convertParameter(lChild)) { n.removeChild(lChild); Node newLChild = new Node(TokenStream.CONVERT, lChild); newLChild.putProp(Node.TYPE_PROP, Double.class); n.addChildToFront(newLChild); n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); } return TypeEvent.NumberType; } else { if (!convertParameter(lChild)) { n.removeChild(lChild); Node newLChild = new Node(TokenStream.CONVERT, lChild); newLChild.putProp(Node.TYPE_PROP, Double.class); n.addChildToFront(newLChild); } if (!convertParameter(rChild)) { n.removeChild(rChild); Node newRChild = new Node(TokenStream.CONVERT, rChild); newRChild.putProp(Node.TYPE_PROP, Double.class); n.addChildToBack(newRChild); } n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); return TypeEvent.NumberType; } } } case TokenStream.SETELEM : { Node arrayBase = n.getFirstChild(); Node arrayIndex = arrayBase.getNextSibling(); Node rValue = arrayIndex.getNextSibling(); int baseType = rewriteForNumberVariables(arrayBase); if (baseType == TypeEvent.NumberType) {// can never happen ??? if (!convertParameter(arrayBase)) { n.removeChild(arrayBase); Node nuChild = new Node(TokenStream.CONVERT, arrayBase); nuChild.putProp(Node.TYPE_PROP, Object.class); n.addChildToFront(nuChild); } } int indexType = rewriteForNumberVariables(arrayIndex); if (indexType == TypeEvent.NumberType) { // setting the ISNUMBER_PROP signals the codegen // to use the scriptRuntime.setElem that takes // a double index n.putProp(Node.ISNUMBER_PROP, new Integer(Node.LEFT)); markDCPNumberContext(arrayIndex); } int rValueType = rewriteForNumberVariables(rValue); if (rValueType == TypeEvent.NumberType) { if (!convertParameter(rValue)) { n.removeChild(rValue); Node nuChild = new Node(TokenStream.CONVERT, rValue); nuChild.putProp(Node.TYPE_PROP, Object.class); n.addChildToBack(nuChild); } } return TypeEvent.NoType; } case TokenStream.GETELEM : { Node arrayBase = n.getFirstChild(); Node arrayIndex = arrayBase.getNextSibling(); int baseType = rewriteForNumberVariables(arrayBase); if (baseType == TypeEvent.NumberType) {// can never happen ??? if (!convertParameter(arrayBase)) { n.removeChild(arrayBase); Node nuChild = new Node(TokenStream.CONVERT, arrayBase); nuChild.putProp(Node.TYPE_PROP, Object.class); n.addChildToFront(nuChild); } } int indexType = rewriteForNumberVariables(arrayIndex); if (indexType == TypeEvent.NumberType) { // setting the ISNUMBER_PROP signals the codegen // to use the scriptRuntime.getElem that takes // a double index n.putProp(Node.ISNUMBER_PROP, new Integer(Node.RIGHT)); markDCPNumberContext(arrayIndex); } return TypeEvent.NoType; } case TokenStream.CALL : { FunctionNode target = (FunctionNode)n.getProp(Node.DIRECTCALL_PROP); if (target != null) {/* we leave each child as a Number if it can be. The codegen will handle moving the pairs of parameters.*/ Node child = n.getFirstChild(); // the function rewriteForNumberVariables(child); child = child.getNextSibling(); // the 'this' object rewriteForNumberVariables(child); child = child.getNextSibling(); // the first arg while (child != null) { int type = rewriteForNumberVariables(child); if (type == TypeEvent.NumberType) { markDCPNumberContext(child); } child = child.getNextSibling(); } return TypeEvent.NoType; } // else fall thru... } default : { Node child = n.getFirstChild(); while (child != null) { Node nextChild = child.getNextSibling(); int type = rewriteForNumberVariables(child); if (type == TypeEvent.NumberType) { if (!convertParameter(child)) { n.removeChild(child); Node nuChild = new Node(TokenStream.CONVERT, child); nuChild.putProp(Node.TYPE_PROP, Object.class); if (nextChild == null) n.addChildToBack(nuChild); else n.addChildBefore(nuChild, nextChild); } } child = nextChild; } return TypeEvent.NoType; } } }
|
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/7f850f6162d49fce5f2a418eb4b32ba1cf9d58bf/Optimizer.java/clean/src/org/mozilla/javascript/optimizer/Optimizer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
509,
10738,
1290,
1854,
6158,
12,
907,
290,
13,
565,
288,
3639,
1620,
261,
82,
18,
588,
559,
10756,
288,
5411,
648,
3155,
1228,
18,
30374,
294,
288,
10792,
2029,
1151,
273,
290,
18,
588,
3759,
1763,
5621,
10792,
509,
618,
273,
10738,
1290,
1854,
6158,
12,
3624,
1769,
10792,
309,
261,
723,
422,
1412,
1133,
18,
1854,
559,
13,
13491,
290,
18,
458,
1702,
4658,
12,
907,
18,
5127,
9931,
67,
15811,
16,
2029,
18,
38,
18307,
1769,
5397,
327,
1412,
1133,
18,
2279,
559,
31,
7734,
289,
5411,
648,
3155,
1228,
18,
9931,
294,
7734,
290,
18,
458,
1702,
4658,
12,
907,
18,
5127,
9931,
67,
15811,
16,
2029,
18,
38,
18307,
1769,
7734,
327,
1412,
1133,
18,
1854,
559,
31,
5411,
648,
3155,
1228,
18,
3264,
7716,
294,
288,
10792,
12056,
2042,
3092,
326,
1537,
7682,
273,
261,
6179,
2042,
3092,
21433,
82,
18,
588,
4658,
12,
907,
18,
16444,
67,
15811,
10019,
10792,
309,
261,
5787,
1537,
480,
446,
13,
288,
13491,
309,
261,
267,
5368,
1477,
2083,
597,
326,
1537,
18,
291,
1662,
10756,
288,
18701,
290,
18,
458,
1702,
4658,
12,
907,
18,
5127,
9931,
67,
15811,
16,
2029,
18,
38,
18307,
1769,
18701,
327,
1412,
1133,
18,
1854,
559,
31,
13491,
289,
13491,
469,
18701,
309,
261,
5787,
1537,
18,
291,
1854,
10756,
288,
27573,
290,
18,
458,
1702,
4658,
12,
907,
18,
5127,
9931,
67,
15811,
16,
2029,
18,
38,
18307,
1769,
27573,
327,
1412,
1133,
18,
1854,
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,
509,
10738,
1290,
1854,
6158,
12,
907,
290,
13,
565,
288,
3639,
1620,
261,
82,
18,
588,
559,
10756,
288,
5411,
648,
3155,
1228,
18,
30374,
294,
288,
10792,
2029,
1151,
273,
290,
18,
588,
3759,
1763,
5621,
10792,
509,
618,
273,
10738,
1290,
1854,
6158,
12,
3624,
1769,
10792,
309,
261,
723,
422,
1412,
1133,
18,
1854,
559,
13,
13491,
290,
18,
458,
1702,
4658,
12,
907,
18,
5127,
9931,
67,
15811,
16,
2029,
18,
38,
18307,
1769,
5397,
327,
1412,
1133,
18,
2279,
559,
31,
7734,
289,
5411,
648,
3155,
1228,
18,
9931,
294,
7734,
290,
18,
458,
1702,
4658,
12,
907,
18,
5127,
9931,
67,
15811,
16,
2029,
18,
38,
18307,
1769,
7734,
327,
1412,
2
] |
bindingHandle.setAggregrateOn( ( (GroupHandle) DEUtil.getGroups( inputElement )
|
bindingHandle.setAggregateOn( ( (GroupHandle) DEUtil.getGroups( inputElement )
|
public void modify( Object element, String property, Object value ) { if ( element instanceof Item ) { element = ( (Item) element ).getData( ); } try { if ( COLUMN_NAME.equals( property ) ) { String newName = UIUtil.convertToModelString( (String) value, true ); if ( element == dummyChoice ) { if ( newName == null ) { return; } // ComputedColumn column = // StructureFactory.createComputedColumn( ); // column.setName( newName ); // column.setExpression( "" ); //$NON-NLS-1$ // addBinding( column ); } else { ComputedColumnHandle columnHandle = (ComputedColumnHandle) element; boolean selectedNameChanged = false; if ( columnHandle.getName( ) != null && columnHandle.getName( ) .equals( selectedColumnName ) ) { selectedNameChanged = true; } if ( highLightName != null && highLightName.equals( ( (ComputedColumnHandle) element ).getName( ) ) && !highLightName.equals( newName ) ) { bindingTable.getTable( ) .getItem( bindingTable.getTable( ) .getSelectionIndex( ) ) .setForeground( 1, Display.getDefault( ) .getSystemColor( SWT.COLOR_LIST_FOREGROUND ) ); } if ( !( columnHandle.getName( ) != null && columnHandle.getName( ) .equals( newName ) ) ) ( (ComputedColumnHandle) element ).setName( newName ); if ( selectedNameChanged ) { selectedColumnName = newName; } } } else { ComputedColumnHandle bindingHandle = ( (ComputedColumnHandle) element ); if ( COLUMN_DATATYPE.equals( property ) ) { bindingHandle.setDataType( dataTypes[( (Integer) value ).intValue( )].getName( ) ); } else if ( COLUMN_EXPRESSION.equals( property ) ) { if ( !( bindingHandle.getExpression( ) != null && bindingHandle.getExpression( ) .equals( (String) value ) ) ) { bindingHandle.setExpression( (String) value ); String groupType = DEUtil.getGroupControlType( inputElement ); if ( ExpressionUtil.hasAggregation( bindingHandle.getExpression( ) ) ) { if ( groupType.equals( DEUtil.TYPE_GROUP_GROUP ) ) bindingHandle.setAggregrateOn( ( (GroupHandle) DEUtil.getGroups( inputElement ) .get( 0 ) ).getName( ) ); else if ( groupType.equals( DEUtil.TYPE_GROUP_LISTING ) ) bindingHandle.setAggregrateOn( null ); } if ( !ExpressionUtil.hasAggregation( bindingHandle.getExpression( ) ) || groupType.equals( DEUtil.TYPE_GROUP_NONE ) ) { bindingHandle.setAggregrateOn( null ); } } } else if ( COLUMN_AGGREGATEON.equals( property ) ) { if ( ( (Integer) value ).intValue( ) == 0 ) bindingHandle.setAggregrateOn( null ); else bindingHandle.setAggregrateOn( groups[( (Integer) value ).intValue( )] ); } } } catch ( SemanticException e ) { ExceptionHandler.handle( e ); } refreshBindingTable( ); }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/25925f18944f0667bd8c9a5e0179d4a86fc250ba/ColumnBindingDialog.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ColumnBindingDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
5612,
12,
1033,
930,
16,
514,
1272,
16,
1033,
460,
262,
202,
202,
95,
1082,
202,
430,
261,
930,
1276,
4342,
262,
1082,
202,
95,
9506,
202,
2956,
273,
261,
261,
1180,
13,
930,
262,
18,
588,
751,
12,
11272,
1082,
202,
97,
1082,
202,
698,
1082,
202,
95,
9506,
202,
430,
261,
13473,
67,
1985,
18,
14963,
12,
1272,
262,
262,
9506,
202,
95,
6862,
202,
780,
13253,
273,
6484,
1304,
18,
6283,
774,
1488,
780,
12,
261,
780,
13,
460,
16,
6862,
1082,
202,
3767,
11272,
6862,
202,
430,
261,
930,
422,
9609,
10538,
262,
6862,
202,
95,
25083,
202,
430,
261,
13253,
422,
446,
262,
25083,
202,
95,
6862,
1082,
202,
2463,
31,
25083,
202,
97,
25083,
202,
759,
14169,
329,
1494,
1057,
273,
25083,
202,
759,
13348,
1733,
18,
2640,
17934,
1494,
12,
11272,
25083,
202,
759,
1057,
18,
542,
461,
12,
13253,
11272,
25083,
202,
759,
1057,
18,
542,
2300,
12,
1408,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
25083,
202,
759,
527,
5250,
12,
1057,
11272,
6862,
202,
97,
6862,
202,
12107,
6862,
202,
95,
25083,
202,
17934,
1494,
3259,
1057,
3259,
273,
261,
17934,
1494,
3259,
13,
930,
31,
25083,
202,
6494,
3170,
461,
5033,
273,
629,
31,
25083,
202,
430,
261,
1057,
3259,
18,
17994,
12,
262,
480,
446,
6862,
9506,
202,
10,
10,
1057,
3259,
18,
17994,
12,
262,
6862,
25083,
202,
18,
14963,
12,
3170,
8516,
262,
262,
25083,
202,
95,
6862,
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,
918,
5612,
12,
1033,
930,
16,
514,
1272,
16,
1033,
460,
262,
202,
202,
95,
1082,
202,
430,
261,
930,
1276,
4342,
262,
1082,
202,
95,
9506,
202,
2956,
273,
261,
261,
1180,
13,
930,
262,
18,
588,
751,
12,
11272,
1082,
202,
97,
1082,
202,
698,
1082,
202,
95,
9506,
202,
430,
261,
13473,
67,
1985,
18,
14963,
12,
1272,
262,
262,
9506,
202,
95,
6862,
202,
780,
13253,
273,
6484,
1304,
18,
6283,
774,
1488,
780,
12,
261,
780,
13,
460,
16,
6862,
1082,
202,
3767,
11272,
6862,
202,
430,
261,
930,
422,
9609,
10538,
262,
6862,
202,
95,
25083,
202,
430,
261,
13253,
422,
446,
262,
25083,
202,
95,
6862,
1082,
202,
2463,
2
] |
return new FilterIterator<ChildInfo>(_children.iterator(), new MemberOfFunction<ChildInfo>() { public boolean isMember(ChildInfo childInfo) { return !childInfo.completed; } }); }
|
return new FilterIterator<ChildInfo>(_children.iterator(), new MemberOfFunction<ChildInfo>() { public boolean isMember(ChildInfo childInfo) { return !childInfo.completed; } }); }
|
private Iterator<ChildInfo> active() { return new FilterIterator<ChildInfo>(_children.iterator(), new MemberOfFunction<ChildInfo>() { public boolean isMember(ChildInfo childInfo) { return !childInfo.completed; } }); }
|
45373 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45373/5a424b5c30fb33ea6a31f42e354ed700333c104e/FLOW.java/buggy/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/FLOW.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
4498,
32,
1763,
966,
34,
2695,
1435,
288,
565,
327,
394,
4008,
3198,
32,
1763,
966,
34,
24899,
5906,
18,
9838,
9334,
394,
8596,
951,
2083,
32,
1763,
966,
34,
1435,
288,
1377,
1071,
1250,
353,
4419,
12,
1763,
966,
1151,
966,
13,
288,
3639,
327,
401,
3624,
966,
18,
13615,
31,
1377,
289,
565,
15549,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
4498,
32,
1763,
966,
34,
2695,
1435,
288,
565,
327,
394,
4008,
3198,
32,
1763,
966,
34,
24899,
5906,
18,
9838,
9334,
394,
8596,
951,
2083,
32,
1763,
966,
34,
1435,
288,
1377,
1071,
1250,
353,
4419,
12,
1763,
966,
1151,
966,
13,
288,
3639,
327,
401,
3624,
966,
18,
13615,
31,
1377,
289,
565,
15549,
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
] |
"\"ant.bat\"",
|
"ant.bat",
|
public void testGetCommandLineArgs_BatchFile() { String[] resultBatchFile = { "cmd.exe", "/C", "\"ant.bat\"", "-listener", "org.apache.tools.ant.XmlLogger", "-DXmlLogger.file=log.xml", "-Dlabel=200.1.23", "-buildfile", "buildfile", "target" }; builder.setAntScript("ant.bat"); assertTrue( Arrays.equals( resultBatchFile, builder.getCommandLineArgs(properties, false, true, true))); }
|
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/5544c0f91d3f8d4bbb7550387bd32f8585aac8c4/AntBuilderTest.java/buggy/main/test/net/sourceforge/cruisecontrol/builders/AntBuilderTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
967,
21391,
2615,
67,
4497,
812,
1435,
288,
3639,
514,
8526,
563,
4497,
812,
273,
5411,
288,
7734,
315,
4172,
18,
14880,
3113,
7734,
2206,
39,
3113,
7734,
315,
970,
18,
28260,
3113,
7734,
3701,
12757,
3113,
7734,
315,
3341,
18,
19211,
18,
6642,
18,
970,
18,
4432,
3328,
3113,
7734,
3701,
40,
4432,
3328,
18,
768,
33,
1330,
18,
2902,
3113,
7734,
3701,
40,
1925,
33,
6976,
18,
21,
18,
4366,
3113,
7734,
3701,
3510,
768,
3113,
7734,
315,
3510,
768,
3113,
7734,
315,
3299,
6,
289,
31,
3639,
2089,
18,
542,
14925,
3651,
2932,
970,
18,
28260,
8863,
3639,
1815,
5510,
12,
5411,
5647,
18,
14963,
12,
7734,
563,
4497,
812,
16,
7734,
2089,
18,
588,
21391,
2615,
12,
4738,
16,
629,
16,
638,
16,
638,
3719,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
967,
21391,
2615,
67,
4497,
812,
1435,
288,
3639,
514,
8526,
563,
4497,
812,
273,
5411,
288,
7734,
315,
4172,
18,
14880,
3113,
7734,
2206,
39,
3113,
7734,
315,
970,
18,
28260,
3113,
7734,
3701,
12757,
3113,
7734,
315,
3341,
18,
19211,
18,
6642,
18,
970,
18,
4432,
3328,
3113,
7734,
3701,
40,
4432,
3328,
18,
768,
33,
1330,
18,
2902,
3113,
7734,
3701,
40,
1925,
33,
6976,
18,
21,
18,
4366,
3113,
7734,
3701,
3510,
768,
3113,
7734,
315,
3510,
768,
3113,
7734,
315,
3299,
6,
289,
31,
3639,
2089,
18,
542,
14925,
3651,
2932,
970,
18,
28260,
8863,
3639,
1815,
5510,
12,
5411,
5647,
18,
14963,
12,
7734,
563,
4497,
812,
16,
7734,
2
] |
if(imageURL.indexOf("?")>0)
|
if ( imageURL.indexOf( "?" ) > 0 )
|
protected String handleImage(IImage image, Object context, String prefix, boolean needMap) { String mapID = null; if(needMap) { mapID = getImageMapID(image); if(map.containsKey(mapID)) { return (String)map.get(mapID); } } String ret = null; if (context != null && (context instanceof HTMLRenderContext)) { HTMLRenderContext myContext = (HTMLRenderContext) context; String imageURL = myContext.getBaseImageURL(); String imageDir = myContext.getImageDirectory(); if(imageURL==null || imageURL.length()==0 || imageDir==null || imageDir.length()==0) { log.log(Level.SEVERE, "imageURL or ImageDIR is not set!"); //$NON-NLS-1$ return null; } String fileName; File file; synchronized (HTMLCompleteImageHandler.class) { String extension = image.getExtension(); if(extension!=null && extension.length()>0) { fileName = createUniqueFileName(imageDir, prefix, extension); //$NON-NLS-1$ } else { fileName = createUniqueFileName(imageDir, prefix); } file = new File(imageDir, fileName); //$NON-NLS-1$ try { image.writeImage(file); } catch (IOException e) { log.log(Level.SEVERE,e.getMessage(),e); } } //servlet mode if(imageURL.indexOf("?")>0) //$NON-NLS-1$ { ret = imageURL + fileName; } else if(imageURL.endsWith("/")) //$NON-NLS-1$ { ret = imageURL + fileName; } else { ret = imageURL + "/" + fileName; //$NON-NLS-1$ } if(needMap) { map.put(mapID, ret); } } return ret; }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/1d8d582eae226915b0af0dada3168441cc0fb0a2/HTMLServerImageHandler.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/HTMLServerImageHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
514,
1640,
2040,
12,
45,
2040,
1316,
16,
1033,
819,
16,
514,
1633,
16,
1250,
1608,
863,
13,
202,
95,
202,
202,
780,
852,
734,
273,
446,
31,
202,
202,
430,
12,
14891,
863,
13,
202,
202,
95,
1082,
202,
1458,
734,
273,
10567,
863,
734,
12,
2730,
1769,
1082,
202,
430,
12,
1458,
18,
12298,
653,
12,
1458,
734,
3719,
1082,
202,
95,
9506,
202,
2463,
261,
780,
13,
1458,
18,
588,
12,
1458,
734,
1769,
1082,
202,
97,
202,
202,
97,
202,
202,
780,
325,
273,
446,
31,
202,
202,
430,
261,
2472,
480,
446,
9506,
202,
10,
10,
261,
2472,
1276,
3982,
3420,
1042,
3719,
202,
202,
95,
1082,
202,
4870,
3420,
1042,
3399,
1042,
273,
261,
4870,
3420,
1042,
13,
819,
31,
1082,
202,
780,
1316,
1785,
273,
3399,
1042,
18,
588,
2171,
2040,
1785,
5621,
1082,
202,
780,
1316,
1621,
273,
3399,
1042,
18,
588,
2040,
2853,
5621,
1082,
202,
430,
12,
2730,
1785,
631,
2011,
747,
1316,
1785,
18,
2469,
1435,
631,
20,
6862,
202,
20081,
1316,
1621,
631,
2011,
747,
1316,
1621,
18,
2469,
1435,
631,
20,
13,
1082,
202,
95,
9506,
202,
1330,
18,
1330,
12,
2355,
18,
1090,
2204,
41,
16,
315,
2730,
1785,
578,
3421,
4537,
353,
486,
444,
4442,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
2463,
446,
31,
1082,
202,
97,
25083,
202,
780,
3968,
31,
1875,
202,
812,
585,
31,
1082,
202,
22043,
261,
4870,
6322,
2040,
1503,
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,
514,
1640,
2040,
12,
45,
2040,
1316,
16,
1033,
819,
16,
514,
1633,
16,
1250,
1608,
863,
13,
202,
95,
202,
202,
780,
852,
734,
273,
446,
31,
202,
202,
430,
12,
14891,
863,
13,
202,
202,
95,
1082,
202,
1458,
734,
273,
10567,
863,
734,
12,
2730,
1769,
1082,
202,
430,
12,
1458,
18,
12298,
653,
12,
1458,
734,
3719,
1082,
202,
95,
9506,
202,
2463,
261,
780,
13,
1458,
18,
588,
12,
1458,
734,
1769,
1082,
202,
97,
202,
202,
97,
202,
202,
780,
325,
273,
446,
31,
202,
202,
430,
261,
2472,
480,
446,
9506,
202,
10,
10,
261,
2472,
1276,
3982,
3420,
1042,
3719,
202,
202,
95,
1082,
202,
4870,
3420,
1042,
2
] |
listViewer = new CheckboxTableViewer(composite, SWT.BORDER, false);
|
listViewer = CheckboxTableViewer.newCheckList(composite, SWT.BORDER);
|
protected Control createDialogArea(Composite parent) { // page group Composite composite = (Composite)super.createDialogArea(parent); createMessageArea(composite); listViewer = new CheckboxTableViewer(composite, SWT.BORDER, false); GridData data = new GridData(GridData.FILL_BOTH); data.heightHint = SIZING_SELECTION_WIDGET_HEIGHT; data.widthHint = SIZING_SELECTION_WIDGET_WIDTH; listViewer.getTable().setLayoutData(data); listViewer.setLabelProvider(labelProvider); listViewer.setContentProvider(contentProvider); addSelectionButtons(composite); initializeViewer(); // initialize page if (getInitialSelections() != null && !getInitialSelections().isEmpty()) checkInitialSelections(); return composite;}
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/066dd33f77ec55af8f456ae345af47104a994e62/ListSelectionDialog.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/dialogs/ListSelectionDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
8888,
752,
6353,
5484,
12,
9400,
982,
13,
288,
202,
759,
1363,
1041,
202,
9400,
9635,
273,
261,
9400,
13,
9565,
18,
2640,
6353,
5484,
12,
2938,
1769,
202,
2640,
1079,
5484,
12,
27676,
1769,
202,
1098,
18415,
273,
394,
29213,
1388,
18415,
12,
27676,
16,
348,
8588,
18,
38,
7954,
16,
629,
1769,
202,
6313,
751,
501,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
1769,
202,
892,
18,
4210,
7002,
273,
5705,
62,
1360,
67,
1090,
15445,
67,
59,
734,
3264,
67,
14595,
31,
202,
892,
18,
2819,
7002,
273,
5705,
62,
1360,
67,
1090,
15445,
67,
59,
734,
3264,
67,
10023,
31,
202,
1098,
18415,
18,
588,
1388,
7675,
542,
3744,
751,
12,
892,
1769,
202,
1098,
18415,
18,
542,
2224,
2249,
12,
1925,
2249,
1769,
202,
1098,
18415,
18,
542,
1350,
2249,
12,
1745,
2249,
1769,
202,
1289,
6233,
14388,
12,
27676,
1769,
202,
11160,
18415,
5621,
202,
759,
4046,
1363,
202,
430,
261,
588,
4435,
29913,
1435,
480,
446,
597,
401,
588,
4435,
29913,
7675,
291,
1921,
10756,
202,
202,
1893,
4435,
29913,
5621,
202,
202,
2463,
9635,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
8888,
752,
6353,
5484,
12,
9400,
982,
13,
288,
202,
759,
1363,
1041,
202,
9400,
9635,
273,
261,
9400,
13,
9565,
18,
2640,
6353,
5484,
12,
2938,
1769,
202,
2640,
1079,
5484,
12,
27676,
1769,
202,
1098,
18415,
273,
394,
29213,
1388,
18415,
12,
27676,
16,
348,
8588,
18,
38,
7954,
16,
629,
1769,
202,
6313,
751,
501,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
1769,
202,
892,
18,
4210,
7002,
273,
5705,
62,
1360,
67,
1090,
15445,
67,
59,
734,
3264,
67,
14595,
31,
202,
892,
18,
2819,
7002,
273,
5705,
62,
1360,
67,
1090,
15445,
67,
59,
734,
3264,
67,
10023,
31,
202,
1098,
18415,
18,
588,
1388,
7675,
542,
3744,
2
] |
reportSchemaError(code, new Object[] { eName });
|
String cName = fIdentityConstraint.getIdentityConstraintName(); reportSchemaError(code, new Object[] { eName, cName });
|
public void endValueScope() { if (fValuesCount == 0) { if (fIdentityConstraint.getCategory() == IdentityConstraint.IC_KEY) { String code = "AbsentKeyValue"; String eName = fIdentityConstraint.getElementName(); reportSchemaError(code, new Object[] { eName }); } return; } // Validation Rule: Identity-constraint Satisfied // 4.2 If the {identity-constraint category} is key, then all of the following must be true: // 4.2.1 The target node set and the qualified node set are equal, that is, every member of the // target node set is also a member of the qualified node set and vice versa. // // If the IDC is a key check whether we have all the fields. if (fValuesCount != fFieldCount) { if (fIdentityConstraint.getCategory() == IdentityConstraint.IC_KEY) { String code = "KeyNotEnoughValues"; UniqueOrKey key = (UniqueOrKey) fIdentityConstraint; String ename = fIdentityConstraint.getElementName(); String kname = key.getIdentityConstraintName(); reportSchemaError(code, new Object[] { ename, kname }); } return; } } // endValueScope()
|
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/35f514240c8ff8975ea6cc1625d5a37b07d62517/XMLSchemaValidator.java/buggy/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
30684,
3876,
1435,
288,
5411,
309,
261,
74,
1972,
1380,
422,
374,
13,
288,
7734,
309,
261,
74,
4334,
5806,
18,
588,
4457,
1435,
422,
7808,
5806,
18,
2871,
67,
3297,
13,
288,
10792,
514,
981,
273,
315,
14009,
13841,
14432,
10792,
514,
425,
461,
273,
284,
4334,
5806,
18,
21336,
461,
5621,
10792,
514,
276,
461,
273,
284,
4334,
5806,
18,
588,
4334,
5806,
461,
5621,
2605,
3078,
668,
12,
710,
16,
394,
1033,
8526,
288,
425,
461,
16,
276,
461,
15549,
7734,
289,
7734,
327,
31,
5411,
289,
5411,
368,
5684,
6781,
30,
7808,
17,
13364,
25793,
21501,
5411,
368,
1059,
18,
22,
971,
326,
288,
10781,
17,
13364,
3150,
97,
353,
498,
16,
1508,
777,
434,
326,
3751,
1297,
506,
638,
30,
5411,
368,
1059,
18,
22,
18,
21,
1021,
1018,
756,
444,
471,
326,
9348,
756,
444,
854,
3959,
16,
716,
353,
16,
3614,
3140,
434,
326,
2398,
368,
1018,
756,
444,
353,
2546,
279,
3140,
434,
326,
9348,
756,
444,
471,
31842,
14690,
69,
18,
5411,
368,
5411,
368,
971,
326,
1599,
39,
353,
279,
498,
866,
2856,
732,
1240,
777,
326,
1466,
18,
5411,
309,
261,
74,
1972,
1380,
480,
284,
974,
1380,
13,
288,
7734,
309,
261,
74,
4334,
5806,
18,
588,
4457,
1435,
422,
7808,
5806,
18,
2871,
67,
3297,
13,
288,
10792,
514,
981,
273,
315,
653,
1248,
664,
4966,
1972,
14432,
10792,
14584,
1162,
653,
498,
273,
261,
6303,
1162,
653,
13,
284,
4334,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
30684,
3876,
1435,
288,
5411,
309,
261,
74,
1972,
1380,
422,
374,
13,
288,
7734,
309,
261,
74,
4334,
5806,
18,
588,
4457,
1435,
422,
7808,
5806,
18,
2871,
67,
3297,
13,
288,
10792,
514,
981,
273,
315,
14009,
13841,
14432,
10792,
514,
425,
461,
273,
284,
4334,
5806,
18,
21336,
461,
5621,
10792,
514,
276,
461,
273,
284,
4334,
5806,
18,
588,
4334,
5806,
461,
5621,
2605,
3078,
668,
12,
710,
16,
394,
1033,
8526,
288,
425,
461,
16,
276,
461,
15549,
7734,
289,
7734,
327,
31,
5411,
289,
5411,
368,
5684,
6781,
30,
7808,
17,
13364,
25793,
21501,
5411,
368,
1059,
18,
22,
971,
326,
288,
10781,
17,
13364,
3150,
97,
353,
498,
16,
2
] |
fLibraryPart = new PartAdapter(new String[]{
|
fLibraryPart = new PartAdapter(new String[] {
|
private void createLeftSection(Composite parent, FormToolkit toolkit) { Composite container = toolkit.createComposite(parent); GridLayout layout = new GridLayout(); layout.marginHeight = layout.marginWidth = 2; layout.numColumns = 2; container.setLayout(layout); GridData gd = new GridData(GridData.FILL_BOTH); gd.widthHint = 100; container.setLayoutData(gd); fLibraryPart = new PartAdapter(new String[]{ PDEUIMessages.BuildEditor_RuntimeInfoSection_addLibrary, null, PDEUIMessages.ManifestEditor_LibrarySection_up, PDEUIMessages.ManifestEditor_LibrarySection_down}); fLibraryPart.createControl(container, SWT.FULL_SELECTION, 2, toolkit); fLibraryViewer = (TableViewer) fLibraryPart.getViewer(); fLibraryViewer.setContentProvider(new LibraryContentProvider()); fLibraryViewer.setLabelProvider(new LibraryLabelProvider()); fLibraryPart.setButtonEnabled(2, false); fLibraryPart.setButtonEnabled(3, false); fLibraryViewer.setInput(getBuildModel()); toolkit.paintBordersFor(container); MenuManager menuMgr = new MenuManager("#PopupMenu"); //$NON-NLS-1$ menuMgr.setRemoveAllWhenShown(true); menuMgr.addMenuListener(new IMenuListener() { public void menuAboutToShow(IMenuManager manager) { fillLibraryContextMenu(manager); } }); fLibraryViewer.getControl().setMenu(menuMgr.createContextMenu(fLibraryViewer.getControl())); }
|
8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/4fd02c79db415ececbd7efac8f41f52ff0ceaec1/RuntimeInfoSection.java/buggy/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/build/RuntimeInfoSection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
3910,
5285,
12,
9400,
982,
16,
2748,
6364,
8691,
5226,
8691,
13,
288,
202,
202,
9400,
1478,
273,
5226,
8691,
18,
2640,
9400,
12,
2938,
1769,
202,
202,
6313,
3744,
3511,
273,
394,
7145,
3744,
5621,
202,
202,
6741,
18,
10107,
2686,
273,
3511,
18,
10107,
2384,
273,
576,
31,
202,
202,
6741,
18,
2107,
3380,
273,
576,
31,
202,
202,
3782,
18,
542,
3744,
12,
6741,
1769,
202,
202,
6313,
751,
15551,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
1769,
202,
202,
19016,
18,
2819,
7002,
273,
2130,
31,
202,
202,
3782,
18,
542,
3744,
751,
12,
19016,
1769,
9506,
202,
74,
9313,
1988,
273,
394,
6393,
4216,
12,
2704,
514,
63,
7073,
9506,
202,
52,
1639,
57,
3445,
1753,
18,
3116,
6946,
67,
5576,
966,
5285,
67,
1289,
9313,
16,
446,
16,
9506,
202,
52,
1639,
57,
3445,
1753,
18,
9121,
6946,
67,
9313,
5285,
67,
416,
16,
9506,
202,
52,
1639,
57,
3445,
1753,
18,
9121,
6946,
67,
9313,
5285,
67,
2378,
22938,
202,
202,
74,
9313,
1988,
18,
2640,
3367,
12,
3782,
16,
348,
8588,
18,
18111,
67,
1090,
15445,
16,
576,
16,
5226,
8691,
1769,
202,
202,
74,
9313,
18415,
273,
261,
1388,
18415,
13,
284,
9313,
1988,
18,
588,
18415,
5621,
202,
202,
74,
9313,
18415,
18,
542,
1350,
2249,
12,
2704,
18694,
1350,
2249,
10663,
202,
202,
74,
9313,
18415,
18,
542,
2224,
2249,
12,
2704,
18694,
2224,
2249,
10663,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
3910,
5285,
12,
9400,
982,
16,
2748,
6364,
8691,
5226,
8691,
13,
288,
202,
202,
9400,
1478,
273,
5226,
8691,
18,
2640,
9400,
12,
2938,
1769,
202,
202,
6313,
3744,
3511,
273,
394,
7145,
3744,
5621,
202,
202,
6741,
18,
10107,
2686,
273,
3511,
18,
10107,
2384,
273,
576,
31,
202,
202,
6741,
18,
2107,
3380,
273,
576,
31,
202,
202,
3782,
18,
542,
3744,
12,
6741,
1769,
202,
202,
6313,
751,
15551,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
1769,
202,
202,
19016,
18,
2819,
7002,
273,
2130,
31,
202,
202,
3782,
18,
542,
3744,
751,
12,
19016,
1769,
9506,
202,
74,
9313,
1988,
273,
394,
6393,
4216,
2
] |
ICDISession session;
|
public void testGetBreak() throws CoreException, MIException, IOException, CDIException { ICDISession session; ICDIBreakpointManager breaks; ICDILocation location; ICDIBreakpoint[] breakpoints; ICDILocationBreakpoint curbreak; session=CDebugHelper.createSession("main"); assertNotNull(session); breaks=session.getBreakpointManager(); assertNotNull(breaks); /********************************************************************** * Make sure initially we don't have any breakpoints **********************************************************************/ breakpoints=breaks.getBreakpoints(); assertNotNull(breakpoints); assertTrue(breakpoints.length==0); /********************************************************************** * Make sure if we create a simple breakpoint, that we can get it back * from the system *********************************************************************/ /* Create a break point on a generic function */ location=breaks.createLocation("../main.c", "func1", 0); assertNotNull(location); breaks.setLocationBreakpoint(0, location, null, null); breakpoints=breaks.getBreakpoints(); assertNotNull(breakpoints); assertTrue(breakpoints.length==1); if (breakpoints[0] instanceof ICDILocationBreakpoint) { curbreak=(ICDILocationBreakpoint) breakpoints[0]; } else curbreak=null; assertNotNull(curbreak); assertTrue(curbreak.getLocation().equals(location)); /********************************************************************** * Make sure if we create multiple break points that we can still * get them all back from the system, **********************************************************************/ /* Create another break point on main */ location=breaks.createLocation("../main.c", "main", 0); assertNotNull(location); breaks.setLocationBreakpoint(0, location, null, null); breakpoints=breaks.getBreakpoints(); assertNotNull(breakpoints); assertTrue(breakpoints.length==2); if (breakpoints[1] instanceof ICDILocationBreakpoint) { curbreak=(ICDILocationBreakpoint) breakpoints[1]; } else curbreak=null; assertNotNull(curbreak); /* Make sure the location still looks like we expect it to.. . */ assertTrue(curbreak.getLocation().equals(location)); breaks.deleteAllBreakpoints(); /* clean up the session */ session.terminate(); }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/04b6ea96dee7751df27b0a1f581fb0e222499073/BreakpointTests.java/buggy/debug/org.eclipse.cdt.debug.ui.tests/core/org/eclipse/cdt/debug/core/tests/BreakpointTests.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
967,
7634,
1435,
1216,
30015,
16,
20806,
503,
16,
1860,
16,
385,
2565,
503,
288,
9079,
26899,
2565,
20552,
1318,
16217,
31,
3639,
26899,
2565,
2735,
2117,
31,
3639,
26899,
2565,
20552,
8526,
23416,
31,
3639,
26899,
2565,
2735,
20552,
662,
8820,
31,
3639,
1339,
33,
39,
2829,
2276,
18,
2640,
2157,
2932,
5254,
8863,
3639,
25395,
12,
3184,
1769,
3639,
16217,
33,
3184,
18,
588,
20552,
1318,
5621,
3639,
25395,
12,
29292,
1769,
7734,
342,
11125,
11345,
540,
380,
225,
4344,
3071,
22458,
732,
2727,
1404,
1240,
1281,
23416,
1850,
19756,
1007,
5549,
3639,
23416,
33,
29292,
18,
588,
7634,
4139,
5621,
3639,
25395,
12,
8820,
4139,
1769,
3639,
1815,
5510,
12,
8820,
4139,
18,
2469,
631,
20,
1769,
5411,
342,
11125,
11345,
540,
380,
4344,
3071,
309,
732,
752,
279,
4143,
18820,
16,
716,
732,
848,
336,
518,
1473,
540,
380,
628,
326,
2619,
540,
19756,
1007,
19,
6647,
1748,
1788,
279,
898,
1634,
603,
279,
5210,
445,
1195,
5411,
2117,
33,
29292,
18,
2640,
2735,
2932,
6216,
5254,
18,
71,
3113,
315,
644,
21,
3113,
374,
1769,
3639,
25395,
12,
3562,
1769,
3639,
16217,
18,
542,
2735,
20552,
12,
20,
16,
2117,
16,
446,
16,
446,
1769,
7734,
23416,
33,
29292,
18,
588,
7634,
4139,
5621,
3639,
25395,
12,
8820,
4139,
1769,
3639,
1815,
5510,
12,
8820,
4139,
18,
2469,
631,
21,
1769,
3639,
309,
261,
8820,
4139,
63,
20,
65,
1276,
26899,
2565,
2735,
20552,
13,
288,
5411,
662,
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,
967,
7634,
1435,
1216,
30015,
16,
20806,
503,
16,
1860,
16,
385,
2565,
503,
288,
9079,
26899,
2565,
20552,
1318,
16217,
31,
3639,
26899,
2565,
2735,
2117,
31,
3639,
26899,
2565,
20552,
8526,
23416,
31,
3639,
26899,
2565,
2735,
20552,
662,
8820,
31,
3639,
1339,
33,
39,
2829,
2276,
18,
2640,
2157,
2932,
5254,
8863,
3639,
25395,
12,
3184,
1769,
3639,
16217,
33,
3184,
18,
588,
20552,
1318,
5621,
3639,
25395,
12,
29292,
1769,
7734,
342,
11125,
11345,
540,
380,
225,
4344,
3071,
22458,
732,
2727,
1404,
1240,
1281,
23416,
1850,
19756,
1007,
5549,
3639,
23416,
33,
29292,
18,
588,
7634,
4139,
5621,
3639,
25395,
12,
8820,
4139,
1769,
3639,
1815,
5510,
12,
8820,
4139,
2
] |
|
public long getLastModified(File f) {
|
long getLastModified(File f) {
|
public long getLastModified(File f) { return f.lastModified(); }
|
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/ece2785811888611fd2661ac554bf6ba880d46ea/SecuritySupport.java/buggy/src/org/apache/xml/utils/SecuritySupport.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1525,
27068,
12,
812,
284,
13,
288,
3639,
327,
284,
18,
2722,
4575,
5621,
565,
289,
377,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1525,
27068,
12,
812,
284,
13,
288,
3639,
327,
284,
18,
2722,
4575,
5621,
565,
289,
377,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 afunRegister; }
|
return afunRegister; }
|
public AFunRegister getAFunRegister() { return afunRegister; }
|
3664 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3664/dfc73e34bff6e386ff1bb2959e83fe3849358bb0/APIGenerator.java/buggy/apigen/src/apigen/gen/c/APIGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10888,
318,
3996,
4506,
22783,
3996,
1435,
288,
3639,
327,
10073,
318,
3996,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10888,
318,
3996,
4506,
22783,
3996,
1435,
288,
3639,
327,
10073,
318,
3996,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void testGetXmlProperty() { // test non-leaf element Object property = conf.getXmlProperty("clear"); assertNull(property); // test non-existent element property = conf.getXmlProperty("e"); assertNull(property); // test non-existent element property = conf.getXmlProperty("element3[@n]"); assertNull(property); // test single element property = conf.getXmlProperty("element"); assertNotNull(property); assertTrue(property instanceof String); assertEquals("value", property); // test single attribute property = conf.getXmlProperty("element3[@name]"); assertNotNull(property); assertTrue(property instanceof String); assertEquals("foo", property); // test non-text/cdata element property = conf.getXmlProperty("test.comment"); assertNull(property); // test cdata element property = conf.getXmlProperty("test.cdata"); assertNotNull(property); assertTrue(property instanceof String); assertEquals("<cdata value>", property); // test multiple sibling elements property = conf.getXmlProperty("list.sublist.item"); assertNotNull(property); assertTrue(property instanceof List); List list = (List)property; assertEquals(2, list.size()); assertEquals("five", list.get(0)); assertEquals("six", list.get(1)); // test multiple, disjoined elements property = conf.getXmlProperty("list.item"); assertNotNull(property); assertTrue(property instanceof List); list = (List)property; assertEquals(4, list.size()); assertEquals("one", list.get(0)); assertEquals("two", list.get(1)); assertEquals("three", list.get(2)); assertEquals("four", list.get(3)); // test multiple, disjoined attributes property = conf.getXmlProperty("list.item[@name]"); assertNotNull(property); assertTrue(property instanceof List); list = (List)property; assertEquals(2, list.size()); assertEquals("one", list.get(0)); assertEquals("three", list.get(1)); }
|
56523 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56523/0f21978d9740a84f9c095b8e1c4322e3a99cc6ce/TestXMLConfiguration.java/buggy/src/test/org/apache/commons/configuration/TestXMLConfiguration.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
967,
4432,
1396,
1435,
288,
3639,
368,
1842,
1661,
17,
12070,
930,
3639,
1033,
1272,
273,
2195,
18,
588,
4432,
1396,
2932,
8507,
8863,
3639,
1815,
2041,
12,
4468,
1769,
7734,
368,
1842,
1661,
17,
19041,
930,
3639,
1272,
273,
2195,
18,
588,
4432,
1396,
2932,
73,
8863,
3639,
1815,
2041,
12,
4468,
1769,
3639,
368,
1842,
1661,
17,
19041,
930,
3639,
1272,
273,
2195,
18,
588,
4432,
1396,
2932,
2956,
23,
14782,
82,
4279,
1769,
3639,
1815,
2041,
12,
4468,
1769,
7734,
368,
1842,
2202,
930,
3639,
1272,
273,
2195,
18,
588,
4432,
1396,
2932,
2956,
8863,
3639,
25395,
12,
4468,
1769,
3639,
1815,
5510,
12,
4468,
1276,
514,
1769,
3639,
1815,
8867,
2932,
1132,
3113,
1272,
1769,
7734,
368,
1842,
2202,
1566,
3639,
1272,
273,
2195,
18,
588,
4432,
1396,
2932,
2956,
23,
14782,
529,
4279,
1769,
3639,
25395,
12,
4468,
1769,
3639,
1815,
5510,
12,
4468,
1276,
514,
1769,
3639,
1815,
8867,
2932,
11351,
3113,
1272,
1769,
7734,
368,
1842,
1661,
17,
955,
19,
71,
892,
930,
3639,
1272,
273,
2195,
18,
588,
4432,
1396,
2932,
3813,
18,
3469,
8863,
3639,
1815,
2041,
12,
4468,
1769,
7734,
368,
1842,
20712,
930,
3639,
1272,
273,
2195,
18,
588,
4432,
1396,
2932,
3813,
18,
71,
892,
8863,
3639,
25395,
12,
4468,
1769,
3639,
1815,
5510,
12,
4468,
1276,
514,
1769,
3639,
1815,
8867,
2932,
32,
71,
892,
460,
2984,
16,
1272,
1769,
7734,
368,
1842,
3229,
10841,
2186,
3639,
1272,
273,
2195,
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,
967,
4432,
1396,
1435,
288,
3639,
368,
1842,
1661,
17,
12070,
930,
3639,
1033,
1272,
273,
2195,
18,
588,
4432,
1396,
2932,
8507,
8863,
3639,
1815,
2041,
12,
4468,
1769,
7734,
368,
1842,
1661,
17,
19041,
930,
3639,
1272,
273,
2195,
18,
588,
4432,
1396,
2932,
73,
8863,
3639,
1815,
2041,
12,
4468,
1769,
3639,
368,
1842,
1661,
17,
19041,
930,
3639,
1272,
273,
2195,
18,
588,
4432,
1396,
2932,
2956,
23,
14782,
82,
4279,
1769,
3639,
1815,
2041,
12,
4468,
1769,
7734,
368,
1842,
2202,
930,
3639,
1272,
273,
2195,
18,
588,
4432,
1396,
2932,
2956,
8863,
3639,
25395,
12,
4468,
1769,
3639,
1815,
5510,
12,
4468,
1276,
514,
1769,
3639,
1815,
8867,
2932,
2
] |
||
} else if (sound == Direction.indicators[Direction.backwardOf[m_Tank.getFacingInt()]]) {
|
} else if (sound == Direction.backwardOf[m_Tank.getFacingInt()]) {
|
void write() { java.awt.Point location = m_Tank.getLocation(); TankSoarCell cell = m_World.getCell(location); String energyRecharger = cell.isEnergyRecharger() ? kYes : kNo; String healthRecharger = cell.isHealthRecharger() ? kYes : kNo; if (m_Reset) { m_EnergyRechargerWME = CreateStringWME(m_InputLink, kEnergyRechargerID, energyRecharger); m_HealthRechargerWME = CreateStringWME(m_InputLink, kHealthRechargerID, healthRecharger); m_xWME = CreateIntWME(m_InputLink, kXID, location.x); m_yWME = CreateIntWME(m_InputLink, kYID, location.y); } else { if (m_Tank.recentlyMoved()) { Update(m_EnergyRechargerWME, energyRecharger); Update(m_HealthRechargerWME, healthRecharger); Update(m_xWME, location.x); Update(m_yWME, location.y); } } int currentEnergy = m_Tank.getEnergy(); int currentHealth = m_Tank.getHealth(); if (m_Reset) { m_EnergyWME = CreateIntWME(m_InputLink, kEnergyID, currentEnergy); m_HealthWME = CreateIntWME(m_InputLink, kHealthID, currentHealth); } else { if (m_EnergyWME.GetValue() != currentEnergy) { Update(m_EnergyWME, currentEnergy); } if (m_HealthWME.GetValue() != currentHealth) { Update(m_HealthWME, currentHealth); } } String shieldStatus = m_Tank.getShieldStatus() ? kOn : kOff; if (m_Reset) { m_ShieldStatusWME = CreateStringWME(m_InputLink, kShieldStatusID, shieldStatus); } else { if (!m_ShieldStatusWME.GetValue().equalsIgnoreCase(shieldStatus)) { Update(m_ShieldStatusWME, shieldStatus); } } String facing = Direction.stringOf[m_Tank.getFacingInt()]; if (m_Reset) { m_DirectionWME = CreateStringWME(m_InputLink, kDirectionID, facing); } else { if (!m_DirectionWME.GetValue().equalsIgnoreCase(facing)) { Update(m_DirectionWME, facing); } } int blocked = m_World.getBlockedByLocation(m_Tank); String blockedForward = ((blocked & Direction.indicators[m_Tank.getFacingInt()]) > 0) ? kYes : kNo; String blockedBackward = ((blocked & Direction.indicators[Direction.backwardOf[m_Tank.getFacingInt()]]) > 0) ? kYes : kNo; String blockedLeft = ((blocked & Direction.indicators[Direction.leftOf[m_Tank.getFacingInt()]]) > 0) ? kYes : kNo; String blockedRight = ((blocked & Direction.indicators[Direction.rightOf[m_Tank.getFacingInt()]]) > 0) ? kYes : kNo; if (m_Reset) { m_BlockedWME = m_Agent.CreateIdWME(m_InputLink, kBlockedID); m_BlockedForwardWME = CreateStringWME(m_BlockedWME, kForwardID, blockedForward); m_BlockedBackwardWME = CreateStringWME(m_BlockedWME, kBackwardID, blockedBackward); m_BlockedLeftWME = CreateStringWME(m_BlockedWME, kLeftID, blockedLeft); m_BlockedRightWME = CreateStringWME(m_BlockedWME, kRightID, blockedRight); } else { if (m_Tank.recentlyMovedOrRotated() || !m_BlockedForwardWME.GetValue().equalsIgnoreCase(blockedForward)) { Update(m_BlockedForwardWME, blockedForward); } if (m_Tank.recentlyMovedOrRotated() || !m_BlockedBackwardWME.GetValue().equalsIgnoreCase(blockedBackward)) { Update(m_BlockedBackwardWME, blockedBackward); } if (m_Tank.recentlyMovedOrRotated() || !m_BlockedLeftWME.GetValue().equalsIgnoreCase(blockedLeft)) { Update(m_BlockedLeftWME, blockedLeft); } if (m_Tank.recentlyMovedOrRotated() || !m_BlockedRightWME.GetValue().equalsIgnoreCase(blockedRight)) { Update(m_BlockedRightWME, blockedRight); } } int incoming = m_World.getIncomingByLocation(location); String incomingForward = ((incoming & Direction.indicators[m_Tank.getFacingInt()]) > 0) ? kYes : kNo; String incomingBackward = ((incoming & Direction.indicators[Direction.backwardOf[m_Tank.getFacingInt()]]) > 0) ? kYes : kNo; String incomingLeft = ((incoming & Direction.indicators[Direction.leftOf[m_Tank.getFacingInt()]]) > 0) ? kYes : kNo; String incomingRight = ((incoming & Direction.indicators[Direction.rightOf[m_Tank.getFacingInt()]]) > 0) ? kYes : kNo; if (m_Reset) { m_IncomingWME = m_Agent.CreateIdWME(m_InputLink, kIncomingID); m_IncomingBackwardWME = CreateStringWME(m_IncomingWME, kBackwardID, incomingForward); m_IncomingForwardWME = CreateStringWME(m_IncomingWME, kForwardID, incomingBackward); m_IncomingLeftWME = CreateStringWME(m_IncomingWME, kLeftID, incomingLeft); m_IncomingRightWME = CreateStringWME(m_IncomingWME, kRightID, incomingRight); } else { if (!m_IncomingForwardWME.GetValue().equalsIgnoreCase(incomingForward)) { Update(m_IncomingForwardWME, incomingForward); } if (!m_IncomingBackwardWME.GetValue().equalsIgnoreCase(incomingBackward)) { Update(m_IncomingBackwardWME, incomingBackward); } if (!m_IncomingLeftWME.GetValue().equalsIgnoreCase(incomingLeft)) { Update(m_IncomingLeftWME, incomingLeft); } if (!m_IncomingRightWME.GetValue().equalsIgnoreCase(incomingRight)) { Update(m_IncomingRightWME, incomingRight); } } // Smell Tank closestTank = m_World.getStinkyTankNear(m_Tank); String closestTankColor = (closestTank == null) ? kNone : closestTank.getColor(); int distance = (closestTank == null) ? 0 : m_World.getManhattanDistanceTo(location, closestTank.getLocation()); m_Tank.setSmell(distance, distance == 0 ? null : closestTankColor); if (m_Reset) { m_SmellWME = m_Agent.CreateIdWME(m_InputLink, kSmellID); m_SmellColorWME = CreateStringWME(m_SmellWME, kColorID, closestTankColor); if (closestTank == null) { m_SmellDistanceWME = null; m_SmellDistanceStringWME = CreateStringWME(m_SmellWME, kDistanceID, kNone); } else { m_SmellDistanceWME = CreateIntWME(m_SmellWME, kDistanceID, distance); m_SmellDistanceStringWME = null; } } else { if (!m_SmellColorWME.GetValue().equalsIgnoreCase(closestTankColor)) { Update(m_SmellColorWME, closestTankColor); } if (closestTank == null) { if (m_SmellDistanceWME != null) { DestroyWME(m_SmellDistanceWME); m_SmellDistanceWME = null; } if (m_SmellDistanceStringWME == null) { m_SmellDistanceStringWME = CreateStringWME(m_SmellWME, kDistanceID, kNone); } } else { if (m_SmellDistanceWME == null) { m_SmellDistanceWME = CreateIntWME(m_SmellWME, kDistanceID, distance); } else { if (m_SmellDistanceWME.GetValue() != distance) { Update(m_SmellDistanceWME, distance); } } if (m_SmellDistanceStringWME != null) { DestroyWME(m_SmellDistanceStringWME); m_SmellDistanceStringWME = null; } } } // Sound // if the closest tank is greater than 7 away, there is no // possibility of hearing anything int sound = 0; if ((closestTank != null) && m_World.getManhattanDistanceTo(closestTank.getLocation(), m_Tank.getLocation()) <= TankSoarWorld.kMaxSmellDistance) { sound = m_World.getSoundNear(m_Tank); } String soundString; if (sound == m_Tank.getFacingInt()) { soundString = kForwardID; } else if (sound == Direction.indicators[Direction.backwardOf[m_Tank.getFacingInt()]]) { soundString = kBackwardID; } else if (sound == Direction.indicators[Direction.leftOf[m_Tank.getFacingInt()]]) { soundString = kLeftID; } else if (sound == Direction.indicators[Direction.rightOf[m_Tank.getFacingInt()]]) { soundString = kRightID; } else { if (sound > 0) { logger.warning(m_Tank.getName() + ": sound reported as more than one direction."); } soundString = kSilentID; } if (m_Reset) { m_SoundWME = CreateStringWME(m_InputLink, kSoundID, soundString); } else { if (!m_SoundWME.GetValue().equalsIgnoreCase(soundString)) { Update(m_SoundWME, soundString); } } // Missiles int missiles = m_Tank.getMissiles(); if (m_Reset) { m_MissilesWME = CreateIntWME(m_InputLink, kMissilesID, missiles); } else { if (m_MissilesWME.GetValue() != missiles) { Update(m_MissilesWME, missiles); } } // Color if (m_Reset) { m_MyColorWME = CreateStringWME(m_InputLink, kMyColorID, m_Tank.getColor()); } int worldCount = m_World.getWorldCount(); if (m_Reset) { m_ClockWME = CreateIntWME(m_InputLink, kClockID, worldCount); } else { Update(m_ClockWME, worldCount); } // Resurrect if (m_Reset) { m_ResurrectFrame = worldCount; m_ResurrectWME = CreateStringWME(m_InputLink, kResurrectID, kYes); } else { if (worldCount != m_ResurrectFrame) { if (!m_ResurrectWME.GetValue().equalsIgnoreCase(kNo)) { Update(m_ResurrectWME, kNo); } } } // Radar String radarStatus = m_Tank.getRadarStatus() ? kOn : kOff; if (m_Reset) { m_RadarStatusWME = CreateStringWME(m_InputLink, kRadarStatusID, radarStatus); if (m_Tank.getRadarStatus()) { m_RadarWME = m_Agent.CreateIdWME(m_InputLink, kRadarID); generateNewRadar(); } else { m_RadarWME = null; } m_RadarDistanceWME = CreateIntWME(m_InputLink, kRadarDistanceID, m_Tank.getRadarDistance()); m_RadarSettingWME = CreateIntWME(m_InputLink, kRadarSettingID, m_Tank.getRadarSetting()); } else { if (!m_RadarStatusWME.GetValue().equalsIgnoreCase(radarStatus)) { Update(m_RadarStatusWME, radarStatus); } if (m_Tank.getRadarStatus()) { if (m_RadarWME == null) { m_RadarWME = m_Agent.CreateIdWME(m_InputLink, kRadarID); generateNewRadar(); } else { updateRadar(); } } else { if (m_RadarWME != null) { DestroyWME(m_RadarWME); m_RadarWME = null; clearRadar(); } } if (m_RadarDistanceWME.GetValue() != m_Tank.getRadarDistance()) { Update(m_RadarDistanceWME, m_Tank.getRadarDistance()); } if (m_RadarSettingWME.GetValue() != m_Tank.getRadarSetting()) { Update(m_RadarSettingWME, m_Tank.getRadarSetting()); } } // Random float random = Simulation.random.nextFloat(); if (m_Reset) { m_RandomWME = CreateFloatWME(m_InputLink, kRandomID, random); } else { Update(m_RandomWME, random); } // RWaves int rwaves = m_Tank.getRWaves(); String rwavesForward = (rwaves & m_Tank.getFacingInt()) > 0 ? kYes : kNo; String rwavesBackward = (rwaves & Direction.indicators[Direction.backwardOf[m_Tank.getFacingInt()]]) > 0 ? kYes : kNo;; String rwavesLeft = (rwaves & Direction.indicators[Direction.leftOf[m_Tank.getFacingInt()]]) > 0 ? kYes : kNo; String rwavesRight = (rwaves & Direction.indicators[Direction.rightOf[m_Tank.getFacingInt()]]) > 0 ? kYes : kNo; if (m_Reset) { m_RWavesWME = m_Agent.CreateIdWME(m_InputLink, kRWavesID); m_RWavesForwardWME = CreateStringWME(m_RWavesWME, kForwardID, rwavesBackward); m_RWavesBackwardWME = CreateStringWME(m_RWavesWME, kBackwardID, rwavesForward); m_RWavesLeftWME = CreateStringWME(m_RWavesWME, kLeftID, rwavesLeft); m_RWavesRightWME = CreateStringWME(m_RWavesWME, kRightID, rwavesRight); } else { if (!m_RWavesForwardWME.GetValue().equalsIgnoreCase(rwavesForward)) { Update(m_RWavesForwardWME, rwavesForward); } if (!m_RWavesBackwardWME.GetValue().equalsIgnoreCase(rwavesBackward)) { Update(m_RWavesBackwardWME, rwavesBackward); } if (!m_RWavesLeftWME.GetValue().equalsIgnoreCase(rwavesLeft)) { Update(m_RWavesLeftWME, rwavesLeft); } if (!m_RWavesRightWME.GetValue().equalsIgnoreCase(rwavesRight)) { Update(m_RWavesRightWME, rwavesRight); } } m_Reset = false; m_Agent.Commit(); }
|
47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/dd6d9d8477063ddbe3c87a9a6a0b61ca78a16482/InputLinkManager.java/buggy/SoarSuite/Environments/JavaTankSoar/source/tanksoar/InputLinkManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
1045,
1435,
288,
202,
202,
6290,
18,
2219,
88,
18,
2148,
2117,
273,
312,
67,
56,
2304,
18,
588,
2735,
5621,
202,
202,
56,
2304,
10225,
297,
4020,
2484,
273,
312,
67,
18071,
18,
588,
4020,
12,
3562,
1769,
9506,
202,
780,
12929,
426,
3001,
693,
273,
2484,
18,
291,
664,
31920,
426,
3001,
693,
1435,
692,
417,
22352,
294,
417,
2279,
31,
202,
202,
780,
8437,
426,
3001,
693,
273,
2484,
18,
291,
7802,
426,
3001,
693,
1435,
692,
417,
22352,
294,
417,
2279,
31,
202,
202,
430,
261,
81,
67,
7013,
13,
288,
1082,
202,
81,
67,
664,
31920,
426,
3001,
693,
59,
958,
273,
1788,
780,
59,
958,
12,
81,
67,
1210,
2098,
16,
417,
664,
31920,
426,
3001,
693,
734,
16,
12929,
426,
3001,
693,
1769,
1082,
202,
81,
67,
7802,
426,
3001,
693,
59,
958,
273,
1788,
780,
59,
958,
12,
81,
67,
1210,
2098,
16,
417,
7802,
426,
3001,
693,
734,
16,
8437,
426,
3001,
693,
1769,
1082,
202,
81,
67,
92,
59,
958,
273,
1788,
1702,
59,
958,
12,
81,
67,
1210,
2098,
16,
417,
60,
734,
16,
2117,
18,
92,
1769,
1082,
202,
81,
67,
93,
59,
958,
273,
1788,
1702,
59,
958,
12,
81,
67,
1210,
2098,
16,
417,
61,
734,
16,
2117,
18,
93,
1769,
6862,
202,
97,
469,
288,
1082,
202,
430,
261,
81,
67,
56,
2304,
18,
20872,
715,
25317,
10756,
288,
9506,
202,
1891,
12,
81,
67,
664,
31920,
426,
3001,
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,
6459,
1045,
1435,
288,
202,
202,
6290,
18,
2219,
88,
18,
2148,
2117,
273,
312,
67,
56,
2304,
18,
588,
2735,
5621,
202,
202,
56,
2304,
10225,
297,
4020,
2484,
273,
312,
67,
18071,
18,
588,
4020,
12,
3562,
1769,
9506,
202,
780,
12929,
426,
3001,
693,
273,
2484,
18,
291,
664,
31920,
426,
3001,
693,
1435,
692,
417,
22352,
294,
417,
2279,
31,
202,
202,
780,
8437,
426,
3001,
693,
273,
2484,
18,
291,
7802,
426,
3001,
693,
1435,
692,
417,
22352,
294,
417,
2279,
31,
202,
202,
430,
261,
81,
67,
7013,
13,
288,
1082,
202,
81,
67,
664,
31920,
426,
3001,
693,
59,
958,
273,
1788,
780,
59,
958,
12,
81,
67,
1210,
2098,
2
] |
if (index < sv.size() && rightType(type, sv)) { return (SpecsSet)sv.elementAt(index);
|
if (rightType(type, sv)) { for (int j=0; j<sv.getNumSpecsSets(); j++) { SpecsSet temp = (SpecsSet)sv.elementAt(j); if (name.equalsIgnoreCase(temp.getName())) return temp; }
|
public SpecsSet getSpecsSet(int index, Class type){ if (type!=null && specsVectors!=null ) { for (int i=0; i<specsVectors.size(); i++) { SpecsSetVector sv = (SpecsSetVector)specsVectors.elementAt(i); if (index < sv.size() && rightType(type, sv)) { return (SpecsSet)sv.elementAt(index); } } } return null; }
|
57538 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57538/88e3c75ba71c7c3e23478b1c3ff126ef3c6fe3ab/AssociableWithSpecs.java/buggy/branches/Mesquite1.x/Mesquite Project/Source/mesquite/lib/AssociableWithSpecs.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
202,
482,
4185,
87,
694,
20189,
87,
694,
12,
474,
770,
16,
1659,
618,
15329,
565,
202,
202,
430,
261,
723,
5,
33,
2011,
597,
10607,
21680,
5,
33,
2011,
262,
288,
202,
21114,
202,
1884,
261,
474,
277,
33,
20,
31,
277,
32,
15115,
21680,
18,
1467,
5621,
277,
27245,
288,
202,
26924,
202,
15999,
694,
5018,
5893,
273,
261,
15999,
694,
5018,
13,
15115,
21680,
18,
2956,
861,
12,
77,
1769,
202,
26924,
202,
430,
261,
1615,
411,
5893,
18,
1467,
1435,
597,
2145,
559,
12,
723,
16,
5893,
3719,
288,
9506,
21114,
202,
2463,
261,
15999,
694,
13,
5751,
18,
2956,
861,
12,
1615,
1769,
202,
26924,
202,
97,
202,
21114,
202,
97,
21114,
202,
97,
21114,
202,
2463,
446,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
202,
482,
4185,
87,
694,
20189,
87,
694,
12,
474,
770,
16,
1659,
618,
15329,
565,
202,
202,
430,
261,
723,
5,
33,
2011,
597,
10607,
21680,
5,
33,
2011,
262,
288,
202,
21114,
202,
1884,
261,
474,
277,
33,
20,
31,
277,
32,
15115,
21680,
18,
1467,
5621,
277,
27245,
288,
202,
26924,
202,
15999,
694,
5018,
5893,
273,
261,
15999,
694,
5018,
13,
15115,
21680,
18,
2956,
861,
12,
77,
1769,
202,
26924,
202,
430,
261,
1615,
411,
5893,
18,
1467,
1435,
597,
2145,
559,
12,
723,
16,
5893,
3719,
288,
9506,
21114,
202,
2463,
261,
15999,
694,
13,
5751,
18,
2956,
861,
12,
1615,
1769,
202,
26924,
202,
97,
202,
21114,
202,
97,
21114,
202,
2
] |
} catch (UnexpectedInputException uiex)
|
} catch (UnexpectedInputException uiex )
|
private final void renderMarkerLines(OneAxis[] oaxa, Bounds boPlotClientArea) throws RenderingException { Axis ax; EList el; int iLineCount, iAxisCount = oaxa.length; MarkerLine ml; LineRenderEvent lre; DataElement deValue; AutoScale asc; double dCoordinate = 0; int iOrientation, iCompare = IConstants.EQUAL; final IDeviceRenderer idr = getDevice(); final ScriptHandler sh = getModel().getScriptHandler(); final Location loStart = LocationImpl.create(0, 0); final Location loEnd = LocationImpl.create(0, 0); Anchor anc; Orientation or; TextRenderEvent tre = null; Label la = null; double dOriginalAngle = 0; final boolean bTransposed = ((ChartWithAxes) getModel()).isTransposed(); final PlotWith2DAxes pw2da = (PlotWith2DAxes) getComputations(); final Bounds boText = BoundsImpl.create(0, 0, 0, 0); for (int i = 0; i < iAxisCount; i++) { ax = oaxa[i].getModelAxis(); iOrientation = ax.getOrientation().getValue(); if (bTransposed) // TOGGLE ORIENTATION { iOrientation = (iOrientation == Orientation.HORIZONTAL) ? Orientation.VERTICAL : Orientation.HORIZONTAL; } asc = oaxa[i].getScale(); el = ax.getMarkerLines(); iLineCount = el.size(); for (int j = 0; j < iLineCount; j++) { ml = (MarkerLine) el.get(j); ScriptHandler.callFunction(sh, ScriptHandler.BEFORE_DRAW_MARKER_LINE, ax, ml); deValue = (DataElement) ml.getValue(); if (deValue == null) { throw new RenderingException( "Unable to plot a render line for a null value as defined in marker line " + ml); } // UPDATE THE LABEL CONTENT ASSOCIATED WITH THE MARKER LINE la = ml.getLabel(); try { la.getCaption().setValue( ValueFormatter.format(deValue, ml.getFormatSpecifier(), oaxa[i].getLocale(), null)); } catch (DataFormatException dfex ) { throw new RenderingException(dfex); } // COMPUTE THE LOCATION try { dCoordinate = PlotWith2DAxes.getLocation(asc, deValue); } catch (Exception ex ) { DefaultLoggerImpl.instance().log(ILogger.WARNING, "Could not locate value " + deValue + " contained in marker line " + ml); continue; // TRY NEXT MARKER RANGE } lre = (LineRenderEvent) ((EventObjectCache) idr).getEventObject(ml, LineRenderEvent.class); if (iOrientation == Orientation.HORIZONTAL) { // RESTRICT RIGHT EDGE if (dCoordinate > boPlotClientArea.getLeft() + boPlotClientArea.getWidth()) { dCoordinate = boPlotClientArea.getLeft() + boPlotClientArea.getWidth(); } // RESTRICT LEFT EDGE if (dCoordinate < boPlotClientArea.getLeft()) { dCoordinate = boPlotClientArea.getLeft(); } // SETUP THE TWO POINTS loStart.set(dCoordinate, boPlotClientArea.getTop()); loEnd.set(dCoordinate, boPlotClientArea.getTop() + boPlotClientArea.getHeight()); } else { // RESTRICT TOP EDGE if (dCoordinate < boPlotClientArea.getTop()) { dCoordinate = boPlotClientArea.getTop(); } // RESTRICT BOTTOM EDGE if (dCoordinate > boPlotClientArea.getTop() + boPlotClientArea.getHeight()) { dCoordinate = boPlotClientArea.getTop() + boPlotClientArea.getHeight(); } // SETUP THE TWO POINTS loStart.set(boPlotClientArea.getLeft(), dCoordinate); loEnd.set(boPlotClientArea.getLeft() + boPlotClientArea.getWidth(), dCoordinate); } // ADJUST FOR 2D PLOTS AS NEEDED if (pw2da.getDimension() == IConstants.TWO_5_D) { if (iOrientation == Orientation.HORIZONTAL) { loStart.translate(0, pw2da.getSeriesThickness()); loEnd.translate(0, pw2da.getSeriesThickness()); } else { loStart.translate(-pw2da.getSeriesThickness(), 0); loEnd.translate(-pw2da.getSeriesThickness(), 0); } } // DRAW THE MARKER LINE lre.setStart(loStart); lre.setEnd(loEnd); lre.setLineAttributes(ml.getLineAttributes()); idr.drawLine(lre); // DRAW THE MARKER LINE LABEL AT THE APPROPRIATE LOCATION if (la.isVisible()) { // DETERMINE THE LABEL ANCHOR (TRANSPOSE IF NEEDED) anc = ml.getLabelAnchor(); if (bTransposed) { or = ax.getOrientation() == Orientation.HORIZONTAL_LITERAL ? Orientation.VERTICAL_LITERAL : Orientation.HORIZONTAL_LITERAL; la = ml.getLabel(); dOriginalAngle = la.getCaption().getFont().getRotation(); try { la.getCaption().getFont().setRotation(PlotWith2DAxes.getTransposedAngle(dOriginalAngle)); anc = PlotWith2DAxes.transposedAnchor(or, anc); } catch (UnexpectedInputException uiex ) { throw new RenderingException(uiex); } } BoundingBox bb = null; try { bb = Methods.computeBox(idr.getDisplayServer(), IConstants.LEFT, la, 0, 0); } catch (UnexpectedInputException uiex) { throw new RenderingException(uiex); } boText.set(0, 0, bb.getWidth(), bb.getHeight()); if (iOrientation == Orientation.VERTICAL) { if (anc != null) { switch (anc.getValue()) { case Anchor.NORTH: case Anchor.NORTH_EAST: case Anchor.NORTH_WEST: boText.setTop(loStart.getY() - boText.getHeight()); break; case Anchor.SOUTH: case Anchor.SOUTH_EAST: case Anchor.SOUTH_WEST: boText.setTop(loStart.getY()); break; default: boText.setTop(loStart.getY() + (loEnd.getY() - loStart.getY() - boText.getHeight()) / 2); break; } switch (anc.getValue()) { case Anchor.NORTH_EAST: case Anchor.SOUTH_EAST: case Anchor.EAST: boText.setLeft(loEnd.getX() - boText.getWidth()); break; case Anchor.NORTH_WEST: case Anchor.SOUTH_WEST: case Anchor.WEST: boText.setLeft(loStart.getX()); break; default: boText.setLeft(loStart.getX() + (loEnd.getX() - loStart.getX() - boText.getWidth()) / 2); break; } } else // CENTER ANCHORED { boText.setLeft(loStart.getX() + (loEnd.getX() - loStart.getX() - boText.getWidth()) / 2); boText.setTop(loStart.getY() + (loEnd.getY() - loStart.getY() - boText.getHeight()) / 2); } } else { if (anc != null) { switch (anc.getValue()) { case Anchor.NORTH: case Anchor.NORTH_EAST: case Anchor.NORTH_WEST: boText.setTop(loStart.getY()); break; case Anchor.SOUTH: case Anchor.SOUTH_EAST: case Anchor.SOUTH_WEST: boText.setTop(loEnd.getY() - boText.getHeight()); break; default: boText.setTop(loStart.getY() + (loEnd.getY() - loStart.getY() - boText.getHeight()) / 2); break; } switch (anc.getValue()) { case Anchor.NORTH_EAST: case Anchor.SOUTH_EAST: case Anchor.EAST: boText.setLeft(loStart.getX()); break; case Anchor.NORTH_WEST: case Anchor.SOUTH_WEST: case Anchor.WEST: boText.setLeft(loEnd.getX() - boText.getWidth()); break; default: boText.setLeft(loStart.getX() + (loEnd.getX() - loStart.getX() - boText.getWidth()) / 2); break; } } else // CENTER ANCHORED { boText.setLeft(loStart.getX() + (loEnd.getX() - loStart.getX() - boText.getWidth()) / 2); boText.setTop(loStart.getY() + (loEnd.getY() - loStart.getY() - boText.getHeight()) / 2); } } // NOW THAT WE COMPUTED THE BOUNDS, RENDER THE ACTUAL TEXT tre = (TextRenderEvent) ((EventObjectCache) idr).getEventObject(ml, TextRenderEvent.class); tre.setBlockBounds(boText); tre.setBlockAlignment(null); tre.setLabel(la); tre.setAction(TextRenderEvent.RENDER_TEXT_IN_BLOCK); idr.drawText(tre); if (bTransposed) // RESTORE FONT ANGLE IF TRANSPOSED { la.getCaption().getFont().setRotation(dOriginalAngle); } } ScriptHandler.callFunction(sh, ScriptHandler.AFTER_DRAW_MARKER_LINE, ax, ml); } } }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/AxesRenderer.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/AxesRenderer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
727,
918,
1743,
7078,
5763,
12,
3335,
6558,
8526,
320,
651,
69,
16,
20382,
800,
11532,
1227,
5484,
13,
1216,
18018,
503,
565,
288,
3639,
15509,
1740,
31,
3639,
17021,
415,
31,
3639,
509,
277,
1670,
1380,
16,
277,
6558,
1380,
273,
320,
651,
69,
18,
2469,
31,
3639,
14742,
1670,
12931,
31,
3639,
5377,
3420,
1133,
328,
266,
31,
3639,
1910,
1046,
443,
620,
31,
3639,
8064,
5587,
6972,
31,
3639,
1645,
302,
13503,
273,
374,
31,
3639,
509,
277,
14097,
16,
277,
8583,
273,
467,
2918,
18,
12853,
31,
3639,
727,
467,
3654,
6747,
612,
86,
273,
19512,
5621,
3639,
727,
7739,
1503,
699,
273,
7454,
7675,
588,
3651,
1503,
5621,
3639,
727,
7050,
437,
1685,
273,
7050,
2828,
18,
2640,
12,
20,
16,
374,
1769,
3639,
727,
7050,
437,
1638,
273,
7050,
2828,
18,
2640,
12,
20,
16,
374,
1769,
3639,
27285,
392,
71,
31,
3639,
531,
12556,
578,
31,
3639,
3867,
3420,
1133,
9787,
273,
446,
31,
3639,
5287,
7125,
273,
446,
31,
3639,
1645,
302,
8176,
8467,
273,
374,
31,
3639,
727,
1250,
324,
1429,
7423,
273,
14015,
7984,
1190,
26494,
13,
7454,
1435,
2934,
291,
1429,
7423,
5621,
3639,
727,
15211,
1190,
22,
9793,
92,
281,
8772,
22,
2414,
273,
261,
11532,
1190,
22,
9793,
92,
281,
13,
336,
7703,
1012,
5621,
3639,
727,
20382,
800,
1528,
273,
20382,
2828,
18,
2640,
12,
20,
16,
374,
16,
374,
16,
374,
1769,
3639,
364,
261,
474,
277,
273,
374,
31,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
727,
918,
1743,
7078,
5763,
12,
3335,
6558,
8526,
320,
651,
69,
16,
20382,
800,
11532,
1227,
5484,
13,
1216,
18018,
503,
565,
288,
3639,
15509,
1740,
31,
3639,
17021,
415,
31,
3639,
509,
277,
1670,
1380,
16,
277,
6558,
1380,
273,
320,
651,
69,
18,
2469,
31,
3639,
14742,
1670,
12931,
31,
3639,
5377,
3420,
1133,
328,
266,
31,
3639,
1910,
1046,
443,
620,
31,
3639,
8064,
5587,
6972,
31,
3639,
1645,
302,
13503,
273,
374,
31,
3639,
509,
277,
14097,
16,
277,
8583,
273,
467,
2918,
18,
12853,
31,
3639,
727,
467,
3654,
6747,
612,
86,
273,
19512,
5621,
3639,
727,
7739,
1503,
699,
273,
7454,
7675,
588,
3651,
1503,
5621,
3639,
727,
7050,
437,
2
] |
AST tmp2009_AST_in = (AST)_t;
|
AST tmp2038_AST_in = (AST)_t;
|
public final void gwidget(AST _t) throws RecognitionException { AST gwidget_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t518 = _t; AST tmp2003_AST_in = (AST)_t; match(_t,Widget_ref); _t = _t.getFirstChild(); s_widget(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case IN_KW: { AST __t520 = _t; AST tmp2004_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case MENU: { AST tmp2005_AST_in = (AST)_t; match(_t,MENU); _t = _t.getNextSibling(); break; } case FRAME: { AST tmp2006_AST_in = (AST)_t; match(_t,FRAME); _t = _t.getNextSibling(); break; } case BROWSE: { AST tmp2007_AST_in = (AST)_t; match(_t,BROWSE); _t = _t.getNextSibling(); break; } case SUBMENU: { AST tmp2008_AST_in = (AST)_t; match(_t,SUBMENU); _t = _t.getNextSibling(); break; } case BUFFER: { AST tmp2009_AST_in = (AST)_t; match(_t,BUFFER); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } AST tmp2010_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); _t = __t520; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t518; _t = _t.getNextSibling(); _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser03.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
314,
6587,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
314,
6587,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
25,
2643,
273,
389,
88,
31,
202,
202,
9053,
1853,
6976,
23,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
4609,
67,
1734,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
87,
67,
6587,
24899,
88,
1769,
202,
202,
67,
88,
273,
389,
1349,
2471,
31,
202,
202,
95,
202,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
2120,
67,
30134,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
25,
3462,
273,
389,
88,
31,
1082,
202,
9053,
1853,
6976,
24,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
706,
67,
30134,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
1082,
202,
95,
1082,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
1082,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
1082,
202,
3593,
490,
1157,
57,
30,
1082,
202,
95,
9506,
202,
9053,
1853,
6976,
25,
67,
9053,
67,
267,
273,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
314,
6587,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
314,
6587,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
25,
2643,
273,
389,
88,
31,
202,
202,
9053,
1853,
6976,
23,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
4609,
67,
1734,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
87,
67,
6587,
24899,
88,
1769,
202,
202,
67,
88,
273,
389,
1349,
2471,
31,
202,
202,
95,
202,
202,
430,
261,
67,
88,
631,
2011,
2
] |
if (dayOnly) { dateString.append(myDate.substring(0,10));
|
if (dayOnly) { dateString.append(myDate.substring(0, 10));
|
public String TO_DATE (Timestamp time, boolean dayOnly) { if (time == null) { if (dayOnly) return "TRUNC(SysDate)"; return "SysDate"; } StringBuffer dateString = new StringBuffer("TO_DATE('"); // YYYY-MM-DD HH24:MI:SS.mmmm JDBC Timestamp format String myDate = time.toString(); if (dayOnly) { dateString.append(myDate.substring(0,10)); dateString.append("','YYYY-MM-DD')"); } else { dateString.append(myDate.substring(0, myDate.indexOf("."))); // cut off miliseconds dateString.append("','YYYY-MM-DD HH24:MI:SS')"); } return dateString.toString(); } // TO_DATE
|
25591 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25591/4b7291900ca7b2684a9d46781a450e57a92af66f/DB_Fyracle.java/clean/dbPort/src/org/compiere/db/DB_Fyracle.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
8493,
67,
4594,
261,
4921,
813,
16,
1250,
2548,
3386,
13,
202,
95,
202,
202,
430,
261,
957,
422,
446,
13,
202,
202,
95,
1082,
202,
430,
261,
2881,
3386,
13,
9506,
202,
2463,
315,
4349,
21163,
12,
12712,
1626,
2225,
31,
1082,
202,
2463,
315,
12712,
1626,
14432,
202,
202,
97,
202,
202,
780,
1892,
24757,
273,
394,
6674,
2932,
4296,
67,
4594,
2668,
8863,
202,
202,
759,
225,
26699,
17,
8206,
17,
5698,
20842,
3247,
30,
7492,
30,
1260,
18,
7020,
7020,
225,
16364,
8159,
740,
202,
202,
780,
3399,
1626,
273,
813,
18,
10492,
5621,
202,
202,
430,
261,
2881,
3386,
13,
202,
202,
95,
1082,
202,
712,
780,
18,
6923,
12,
4811,
1626,
18,
28023,
12,
20,
16,
2163,
10019,
1082,
202,
712,
780,
18,
6923,
2932,
17023,
26287,
17,
8206,
17,
5698,
23291,
1769,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
712,
780,
18,
6923,
12,
4811,
1626,
18,
28023,
12,
20,
16,
3399,
1626,
18,
31806,
2932,
1199,
3719,
1769,
202,
759,
202,
5150,
3397,
312,
330,
291,
20960,
1082,
202,
712,
780,
18,
6923,
2932,
17023,
26287,
17,
8206,
17,
5698,
20842,
3247,
30,
7492,
30,
1260,
23291,
1769,
202,
202,
97,
202,
202,
2463,
24757,
18,
10492,
5621,
202,
97,
282,
368,
225,
8493,
67,
4594,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
8493,
67,
4594,
261,
4921,
813,
16,
1250,
2548,
3386,
13,
202,
95,
202,
202,
430,
261,
957,
422,
446,
13,
202,
202,
95,
1082,
202,
430,
261,
2881,
3386,
13,
9506,
202,
2463,
315,
4349,
21163,
12,
12712,
1626,
2225,
31,
1082,
202,
2463,
315,
12712,
1626,
14432,
202,
202,
97,
202,
202,
780,
1892,
24757,
273,
394,
6674,
2932,
4296,
67,
4594,
2668,
8863,
202,
202,
759,
225,
26699,
17,
8206,
17,
5698,
20842,
3247,
30,
7492,
30,
1260,
18,
7020,
7020,
225,
16364,
8159,
740,
202,
202,
780,
3399,
1626,
273,
813,
18,
10492,
5621,
202,
202,
430,
261,
2881,
3386,
13,
202,
202,
95,
1082,
202,
712,
780,
18,
6923,
12,
2
] |
String code = item.getAttributes().getNamedItem("code").getTextContent(); String isin = item.getAttributes().getNamedItem("isin").getTextContent();
|
String code = item.getAttributes().getNamedItem("code").getNodeValue(); String isin = item.getAttributes().getNamedItem("isin").getNodeValue();
|
public void createControl(Composite parent) { Composite composite = new Composite(parent, SWT.NONE); composite.setLayout(new GridLayout(2, false)); setControl(composite); table = new Table(composite, SWT.MULTI|SWT.FULL_SELECTION); table.setHeaderVisible(true); table.setLinesVisible(false); GridData gridData = new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1); gridData.heightHint = 250; table.setLayoutData(gridData); TableColumn tableColumn = new TableColumn(table, SWT.NONE); tableColumn.setText("Code"); tableColumn = new TableColumn(table, SWT.NONE); tableColumn.setText("Description"); table.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { setPageComplete(table.getSelectionCount() != 0); } }); Label label = new Label(composite, SWT.NONE); label.setText("Search"); label.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false)); search = new Text(composite, SWT.BORDER); search.setLayoutData(new GridData(120, SWT.DEFAULT)); search.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { table.setRedraw(false); table.removeAll(); for (int i = 0; i < childNodes.getLength(); i++) { Node item = childNodes.item(i); String nodeName = item.getNodeName(); if (nodeName.equalsIgnoreCase("security")) //$NON-NLS-1$ { String pattern = search.getText(); String code = item.getAttributes().getNamedItem("code").getTextContent(); String isin = item.getAttributes().getNamedItem("isin").getTextContent(); String description = item.getFirstChild().getNodeValue(); if (CorePlugin.getRepository().getSecurity(code) != null) continue; if (pattern.length() == 0 || code.indexOf(pattern) != -1 || isin.indexOf(pattern) != -1 || description.indexOf(pattern) != -1) { TableItem tableItem = new TableItem(table, SWT.NONE); tableItem.setText(0, code); tableItem.setText(1, item.getFirstChild().getNodeValue()); tableItem.setData(item); } } } table.setRedraw(true); } }); try { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); Document document = builder.parse(DirectaWorldPlugin.getDefault().openStream(new Path("data/securities.xml"))); Node firstNode = document.getFirstChild(); childNodes = firstNode.getChildNodes(); for (int i = 0; i < childNodes.getLength(); i++) { Node item = childNodes.item(i); String nodeName = item.getNodeName(); if (nodeName.equalsIgnoreCase("security")) //$NON-NLS-1$ { String code = item.getAttributes().getNamedItem("code").getTextContent(); if (CorePlugin.getRepository().getSecurity(code) != null) continue; TableItem tableItem = new TableItem(table, SWT.NONE); tableItem.setText(0, code); tableItem.setText(1, item.getFirstChild().getNodeValue()); tableItem.setData(item); } } } catch (Exception ex) { ex.printStackTrace(); } for (int i = 0; i < table.getColumnCount(); i++) table.getColumn(i).pack(); }
|
12330 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12330/066c2de8005bef90157e4e049e8e64c345b3dc18/SecurityPage.java/buggy/net.sourceforge.eclipsetrader.directaworld/src/net/sourceforge/eclipsetrader/directaworld/wizards/SecurityPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
752,
3367,
12,
9400,
982,
13,
565,
288,
3639,
14728,
9635,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
3639,
9635,
18,
542,
3744,
12,
2704,
7145,
3744,
12,
22,
16,
629,
10019,
3639,
444,
3367,
12,
27676,
1769,
3639,
1014,
273,
394,
3555,
12,
27676,
16,
348,
8588,
18,
26588,
96,
55,
8588,
18,
18111,
67,
1090,
15445,
1769,
3639,
1014,
18,
542,
1864,
6207,
12,
3767,
1769,
3639,
1014,
18,
542,
5763,
6207,
12,
5743,
1769,
3639,
7145,
751,
3068,
751,
273,
394,
7145,
751,
12,
55,
8588,
18,
29818,
16,
348,
8588,
18,
29818,
16,
638,
16,
638,
16,
576,
16,
404,
1769,
3639,
3068,
751,
18,
4210,
7002,
273,
16927,
31,
3639,
1014,
18,
542,
3744,
751,
12,
5222,
751,
1769,
3639,
3555,
1494,
1014,
1494,
273,
394,
3555,
1494,
12,
2121,
16,
348,
8588,
18,
9826,
1769,
3639,
1014,
1494,
18,
542,
1528,
2932,
1085,
8863,
3639,
1014,
1494,
273,
394,
3555,
1494,
12,
2121,
16,
348,
8588,
18,
9826,
1769,
3639,
1014,
1494,
18,
542,
1528,
2932,
3291,
8863,
3639,
1014,
18,
1289,
6233,
2223,
12,
2704,
12977,
4216,
1435,
288,
5411,
1071,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
5411,
288,
7734,
18663,
6322,
12,
2121,
18,
588,
6233,
1380,
1435,
480,
374,
1769,
5411,
289,
3639,
15549,
7734,
5287,
1433,
273,
394,
5287,
12,
27676,
16,
348,
8588,
18,
9826,
1769,
3639,
1433,
18,
542,
1528,
2932,
2979,
8863,
3639,
1433,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
752,
3367,
12,
9400,
982,
13,
565,
288,
3639,
14728,
9635,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
3639,
9635,
18,
542,
3744,
12,
2704,
7145,
3744,
12,
22,
16,
629,
10019,
3639,
444,
3367,
12,
27676,
1769,
3639,
1014,
273,
394,
3555,
12,
27676,
16,
348,
8588,
18,
26588,
96,
55,
8588,
18,
18111,
67,
1090,
15445,
1769,
3639,
1014,
18,
542,
1864,
6207,
12,
3767,
1769,
3639,
1014,
18,
542,
5763,
6207,
12,
5743,
1769,
3639,
7145,
751,
3068,
751,
273,
394,
7145,
751,
12,
55,
8588,
18,
29818,
16,
348,
8588,
18,
29818,
16,
638,
16,
638,
16,
576,
16,
404,
1769,
3639,
3068,
751,
18,
4210,
7002,
273,
2
] |
layout.marginHeight = layout.marginWidth = 0;
|
layout.marginWidth = layout.marginHeight = 0; layout.numColumns = 3;
|
protected Control createCustomArea(Composite parent) { Composite radioGroup = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(); layout.marginHeight = layout.marginWidth = 0; radioGroup.setLayout(layout); radioGroup.setLayoutData(new GridData(GridData.FILL_BOTH)); allButton = new Button(radioGroup, SWT.RADIO); allButton.setText(IDEWorkbenchMessages.getString("CleanDialog.cleanallbutton")); //$NON-NLS-1$ allButton.setSelection(true); selectedButton = new Button(radioGroup, SWT.RADIO); selectedButton.setText(IDEWorkbenchMessages.getString("CleanDialog.cleanselectedbutton")); //$NON-NLS-1$ if (selection.length == 0) selectedButton.setEnabled(false); return radioGroup; }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/a2463c1c770aa74ce3510a05878c7019c05141a5/CleanDialog.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/CleanDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8888,
752,
3802,
5484,
12,
9400,
982,
13,
288,
202,
202,
9400,
13512,
1114,
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,
10107,
2686,
273,
3511,
18,
10107,
2384,
273,
374,
31,
202,
202,
17006,
1114,
18,
542,
3744,
12,
6741,
1769,
202,
202,
17006,
1114,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
10019,
202,
202,
454,
3616,
273,
394,
12569,
12,
17006,
1114,
16,
348,
8588,
18,
28829,
4294,
1769,
202,
202,
454,
3616,
18,
542,
1528,
12,
10385,
2421,
22144,
5058,
18,
588,
780,
2932,
7605,
6353,
18,
6200,
454,
5391,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
454,
3616,
18,
542,
6233,
12,
3767,
1769,
202,
202,
8109,
3616,
273,
394,
12569,
12,
17006,
1114,
16,
348,
8588,
18,
28829,
4294,
1769,
202,
202,
8109,
3616,
18,
542,
1528,
12,
10385,
2421,
22144,
5058,
18,
588,
780,
2932,
7605,
6353,
18,
2131,
634,
292,
828,
5391,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
430,
261,
10705,
18,
2469,
422,
374,
13,
1082,
202,
8109,
3616,
18,
542,
1526,
12,
5743,
1769,
202,
202,
2463,
13512,
1114,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8888,
752,
3802,
5484,
12,
9400,
982,
13,
288,
202,
202,
9400,
13512,
1114,
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,
10107,
2686,
273,
3511,
18,
10107,
2384,
273,
374,
31,
202,
202,
17006,
1114,
18,
542,
3744,
12,
6741,
1769,
202,
202,
17006,
1114,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
10019,
202,
202,
454,
3616,
273,
394,
12569,
12,
17006,
1114,
16,
348,
8588,
18,
28829,
4294,
1769,
202,
202,
454,
3616,
18,
542,
1528,
12,
10385,
2421,
22144,
5058,
18,
588,
780,
2932,
7605,
6353,
18,
2
] |
String[] sortOrder = {"sn", "cn"}; cardSet.sort (sortOrder);
|
public Vector queryLDAP (String aServerName, int aPort, String aSearchString) { Vector retVecVec = new Vector(); //return vector of vectors.// try { //open a connection to the LDAP serverSystem.out.println ("Opening server " + aServerName); ICardSource Four11AddressBook = new LDAP_Server (aServerName); //create the query ITerm query = new TermEqual (new AC_Attribute ("sn", aSearchString)); String[] attributes = {"sn", "cn", "o", "mail", "city"}; //query the LDAP server.System.out.println ("Send query" + query); ICardSet cardSet = Four11AddressBook.getCardSet (query, attributes); //Sort the list. String[] sortOrder = {"sn", "cn"}; cardSet.sort (sortOrder); //hack. I've put the for loop in a try block to catch the exception //thrown when cardEnum.hasMoreElements() incorrectly returns true. try { //enumerate thru the cards. for (Enumeration cardEnum = cardSet.getEnumeration(); cardEnum.hasMoreElements(); ) {System.out.println ("got card"); ICard card = (ICard) cardEnum.nextElement(); //get the addres card IAttributeSet attrSet = card.getAttributeSet (); //get the attributes for this card Vector thisRow = new Vector(6); //create a simple vector to hold the attributes values for this card. String commonName = ""; String organization = ""; String mail = ""; String phone = ""; String city = ""; String nickName = ""; // enumerate thru the card attributes. for (Enumeration attEnum = attrSet.getEnumeration(); attEnum.hasMoreElements(); ) { IAttribute attr = (IAttribute) attEnum.nextElement(); String attrName = attr.getName(); if (attrName.equals ("cn")) { commonName = attr.getValue(); } else if (attrName.equals ("o")) { organization = attr.getValue(); } else if (attrName.equals ("mail")) { mail = attr.getValue(); } else if (attrName.equals ("sn")) { phone = attr.getValue(); } else if (attrName.equals ("city")) { city = attr.getValue(); } } //create this row for the table. thisRow.addElement (commonName); thisRow.addElement (mail); thisRow.addElement (organization); thisRow.addElement (phone); thisRow.addElement (city); thisRow.addElement (nickName); //add this row to the table retVecVec.addElement (thisRow); } } catch (Exception e) { }// }// catch( LDAPException e ) {// System.out.println( "Error: " + e.toString() );// }System.out.println ("Done."); return retVecVec; }
|
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/bc05a619d353c84c954f415aec254150f0fa257c/AddressBook.java/clean/grendel/addressbook/AddressBook.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5589,
843,
15496,
261,
780,
279,
28434,
16,
509,
279,
2617,
16,
514,
279,
2979,
780,
13,
288,
3639,
5589,
325,
12991,
12991,
273,
394,
5589,
5621,
282,
368,
2463,
3806,
434,
10046,
18,
759,
2868,
775,
288,
5411,
368,
3190,
279,
1459,
358,
326,
11916,
1438,
3163,
18,
659,
18,
8222,
7566,
21378,
1438,
315,
397,
279,
28434,
1769,
5411,
467,
6415,
1830,
478,
477,
2499,
31374,
273,
394,
11916,
67,
2081,
261,
69,
28434,
1769,
202,
5411,
368,
2640,
326,
843,
5411,
467,
4065,
843,
273,
394,
6820,
5812,
261,
2704,
12048,
67,
1499,
7566,
8134,
3113,
279,
2979,
780,
10019,
5411,
514,
8526,
1677,
273,
12528,
8134,
3113,
315,
10305,
3113,
315,
83,
3113,
315,
4408,
3113,
315,
14240,
6,
20451,
5411,
368,
2271,
326,
11916,
1438,
18,
3163,
18,
659,
18,
8222,
7566,
3826,
843,
6,
397,
843,
1769,
5411,
467,
6415,
694,
5270,
694,
273,
478,
477,
2499,
31374,
18,
588,
6415,
694,
261,
2271,
16,
1677,
1769,
5411,
368,
4416,
326,
666,
18,
5411,
514,
8526,
19050,
273,
12528,
8134,
3113,
315,
10305,
6,
20451,
5411,
5270,
694,
18,
3804,
261,
3804,
2448,
1769,
5411,
368,
76,
484,
18,
467,
8081,
1378,
326,
364,
2798,
316,
279,
775,
1203,
358,
1044,
326,
1520,
5411,
368,
12849,
82,
1347,
5270,
3572,
18,
5332,
7417,
3471,
1435,
25621,
1135,
638,
18,
5411,
775,
288,
7734,
368,
7924,
12600,
286,
8653,
326,
18122,
18,
7734,
364,
261,
21847,
5270,
3572,
273,
5270,
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,
5589,
843,
15496,
261,
780,
279,
28434,
16,
509,
279,
2617,
16,
514,
279,
2979,
780,
13,
288,
3639,
5589,
325,
12991,
12991,
273,
394,
5589,
5621,
282,
368,
2463,
3806,
434,
10046,
18,
759,
2868,
775,
288,
5411,
368,
3190,
279,
1459,
358,
326,
11916,
1438,
3163,
18,
659,
18,
8222,
7566,
21378,
1438,
315,
397,
279,
28434,
1769,
5411,
467,
6415,
1830,
478,
477,
2499,
31374,
273,
394,
11916,
67,
2081,
261,
69,
28434,
1769,
202,
5411,
368,
2640,
326,
843,
5411,
467,
4065,
843,
273,
394,
6820,
5812,
261,
2704,
12048,
67,
1499,
7566,
8134,
3113,
279,
2979,
780,
10019,
5411,
514,
8526,
1677,
273,
12528,
8134,
3113,
315,
10305,
3113,
315,
83,
3113,
2
] |
|
getRemote(firingPlayer, bridge).confirmEnemyCasualties(m_battleID, "Continue", stepName, hitPlayer);
|
getRemote(firingPlayer, bridge).confirmEnemyCasualties(m_battleID, "Click to continue", stepName, hitPlayer);
|
private void fire(String stepName, Collection firingUnits, Collection attackableUnits, boolean defender, boolean canReturnFire, IDelegateBridge bridge, String text) { PlayerID firingPlayer = defender ? m_defender : m_attacker; PlayerID hitPlayer = defender ? m_attacker : m_defender; DiceRoll dice = DiceRoll.rollDice(new ArrayList(firingUnits), defender, firingPlayer, bridge, m_data); int hitCount = dice.getHits(); Collection killed; Collection damaged = Collections.EMPTY_LIST; //they all die if (hitCount >= getMaxHits(attackableUnits)) { killed = attackableUnits; } else { getDisplay(bridge).showDice(m_battleID, dice, stepName, hitPlayer); CasualtyDetails message = selectCasualties(stepName, bridge, attackableUnits, !defender, text, dice); killed = message.getKilled(); damaged = message.getDamaged(); } getDisplay(bridge).casualtyNotification(stepName, dice, hitPlayer, killed, damaged, m_dependentUnits); getRemote(firingPlayer, bridge).confirmEnemyCasualties(m_battleID, "Continue", stepName, hitPlayer); if (damaged != null) markDamaged(damaged, bridge); removeCasualties(killed, canReturnFire, !defender, bridge); }
|
8909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8909/3145f57acb1e4d7dae265b6f1c6fb5ab17a2fe02/MustFightBattle.java/buggy/triplea/src/games/strategy/triplea/delegate/MustFightBattle.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4452,
12,
780,
2235,
461,
16,
2200,
30253,
7537,
16,
5411,
2200,
13843,
429,
7537,
16,
1250,
1652,
2345,
16,
5411,
1250,
848,
990,
9723,
16,
1599,
292,
4784,
13691,
10105,
16,
514,
977,
13,
565,
288,
3639,
19185,
734,
30253,
12148,
273,
1652,
2345,
692,
312,
67,
536,
2345,
294,
312,
67,
4558,
484,
264,
31,
3639,
19185,
734,
6800,
12148,
273,
1652,
2345,
692,
312,
67,
4558,
484,
264,
294,
312,
67,
536,
2345,
31,
3639,
463,
1812,
24194,
302,
1812,
273,
463,
1812,
24194,
18,
2693,
40,
1812,
12,
2704,
2407,
12,
74,
11256,
7537,
3631,
1652,
2345,
16,
7734,
30253,
12148,
16,
10105,
16,
312,
67,
892,
1769,
3639,
509,
6800,
1380,
273,
302,
1812,
18,
588,
20950,
5621,
3639,
2200,
24859,
31,
3639,
2200,
302,
301,
11349,
273,
5737,
18,
13625,
67,
7085,
31,
7734,
368,
451,
402,
777,
10387,
3639,
309,
261,
15989,
1380,
1545,
7288,
20950,
12,
4558,
484,
429,
7537,
3719,
3639,
288,
5411,
24859,
273,
13843,
429,
7537,
31,
3639,
289,
469,
3639,
288,
13491,
13854,
12,
18337,
2934,
4500,
40,
1812,
12,
81,
67,
70,
4558,
298,
734,
16,
302,
1812,
16,
2235,
461,
16,
6800,
12148,
1769,
5411,
23561,
1462,
4098,
3790,
883,
273,
2027,
39,
345,
1462,
88,
606,
12,
4119,
461,
16,
10105,
16,
10792,
13843,
429,
7537,
16,
401,
536,
2345,
16,
977,
16,
302,
1812,
1769,
5411,
24859,
273,
883,
18,
588,
47,
13148,
5621,
5411,
302,
301,
11349,
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,
4452,
12,
780,
2235,
461,
16,
2200,
30253,
7537,
16,
5411,
2200,
13843,
429,
7537,
16,
1250,
1652,
2345,
16,
5411,
1250,
848,
990,
9723,
16,
1599,
292,
4784,
13691,
10105,
16,
514,
977,
13,
565,
288,
3639,
19185,
734,
30253,
12148,
273,
1652,
2345,
692,
312,
67,
536,
2345,
294,
312,
67,
4558,
484,
264,
31,
3639,
19185,
734,
6800,
12148,
273,
1652,
2345,
692,
312,
67,
4558,
484,
264,
294,
312,
67,
536,
2345,
31,
3639,
463,
1812,
24194,
302,
1812,
273,
463,
1812,
24194,
18,
2693,
40,
1812,
12,
2704,
2407,
12,
74,
11256,
7537,
3631,
1652,
2345,
16,
7734,
30253,
12148,
16,
10105,
16,
312,
67,
892,
1769,
3639,
509,
6800,
1380,
2
] |
if(log.isInfoEnabled()) log.info(local_addr + " became client");
|
if(log.isDebugEnabled()) log.debug(local_addr + " became client");
|
public void becomeClient() { ClientGmsImpl tmp=(ClientGmsImpl)impls.get(CLIENT); if(tmp == null) { tmp=new ClientGmsImpl(this); impls.put(CLIENT, tmp); } tmp.initial_mbrs.removeAllElements(); setImpl(tmp); if(log.isInfoEnabled()) log.info(local_addr + " became client"); }
|
50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/85b7a7c351493f88f1d6a3045b9cbd0b817f95cd/GMS.java/buggy/src/org/jgroups/protocols/pbcast/GMS.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12561,
1227,
1435,
288,
3639,
2445,
43,
959,
2828,
1853,
28657,
1227,
43,
959,
2828,
13,
11299,
87,
18,
588,
12,
11935,
1769,
3639,
309,
12,
5645,
422,
446,
13,
288,
5411,
1853,
33,
2704,
2445,
43,
959,
2828,
12,
2211,
1769,
5411,
9380,
87,
18,
458,
12,
11935,
16,
1853,
1769,
3639,
289,
3639,
1853,
18,
6769,
67,
1627,
5453,
18,
4479,
1595,
3471,
5621,
3639,
444,
2828,
12,
5645,
1769,
540,
309,
12,
1330,
18,
291,
2829,
1526,
10756,
613,
18,
4148,
12,
3729,
67,
4793,
397,
315,
506,
71,
339,
1004,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12561,
1227,
1435,
288,
3639,
2445,
43,
959,
2828,
1853,
28657,
1227,
43,
959,
2828,
13,
11299,
87,
18,
588,
12,
11935,
1769,
3639,
309,
12,
5645,
422,
446,
13,
288,
5411,
1853,
33,
2704,
2445,
43,
959,
2828,
12,
2211,
1769,
5411,
9380,
87,
18,
458,
12,
11935,
16,
1853,
1769,
3639,
289,
3639,
1853,
18,
6769,
67,
1627,
5453,
18,
4479,
1595,
3471,
5621,
3639,
444,
2828,
12,
5645,
1769,
540,
309,
12,
1330,
18,
291,
2829,
1526,
10756,
613,
18,
4148,
12,
3729,
67,
4793,
397,
315,
506,
71,
339,
1004,
8863,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (!(0 <= stackTop && stackTop <= itsMaxStack)) throw new IllegalArgumentException("Bad stack index: "+stackTop); itsStackTop = (short)stackTop;
|
public final void markTableSwitchCase(int switchStart, int caseIndex, int stackTop) { if (!(0 <= stackTop && stackTop <= itsMaxStack)) throw new IllegalArgumentException("Bad stack index: "+stackTop); itsStackTop = (short)stackTop; setTableSwitchJump(switchStart, caseIndex, itsCodeBufferTop); }
|
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/22644d0e62d87924a341469f715d13055cb347cc/ClassFileWriter.java/buggy/src/org/mozilla/classfile/ClassFileWriter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
918,
2267,
1388,
10200,
2449,
12,
474,
1620,
1685,
16,
509,
648,
1016,
16,
4766,
1850,
509,
2110,
3401,
13,
565,
288,
3639,
309,
16051,
12,
20,
1648,
2110,
3401,
597,
2110,
3401,
1648,
2097,
2747,
2624,
3719,
5411,
604,
394,
2754,
2932,
6434,
2110,
770,
30,
13773,
3772,
3401,
1769,
3639,
2097,
2624,
3401,
273,
261,
6620,
13,
3772,
3401,
31,
3639,
30146,
10200,
26743,
12,
9610,
1685,
16,
648,
1016,
16,
2097,
1085,
1892,
3401,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
918,
2267,
1388,
10200,
2449,
12,
474,
1620,
1685,
16,
509,
648,
1016,
16,
4766,
1850,
509,
2110,
3401,
13,
565,
288,
3639,
309,
16051,
12,
20,
1648,
2110,
3401,
597,
2110,
3401,
1648,
2097,
2747,
2624,
3719,
5411,
604,
394,
2754,
2932,
6434,
2110,
770,
30,
13773,
3772,
3401,
1769,
3639,
2097,
2624,
3401,
273,
261,
6620,
13,
3772,
3401,
31,
3639,
30146,
10200,
26743,
12,
9610,
1685,
16,
648,
1016,
16,
2097,
1085,
1892,
3401,
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
] |
|
return lineRectangle.y;
|
return lineRectangle.y+lineRectangle.height*0.5;
|
public double getLineY(int line) { Integer lineCharacterPosition; Rectangle lineRectangle = null; try { lineCharacterPosition = (Integer)lines.get(line); lineRectangle = textPane.modelToView(lineCharacterPosition.intValue()); } catch (BadLocationException e) { return 0; } return lineRectangle.y; }
|
4430 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4430/eb41a813838c5c58e0c81bd6db522264bdba0612/Gutter.java/clean/src/org/antlr/works/editor/swing/Gutter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1645,
9851,
61,
12,
474,
980,
13,
288,
3639,
2144,
980,
7069,
2555,
31,
3639,
13264,
980,
19463,
273,
446,
31,
3639,
775,
288,
5411,
980,
7069,
2555,
273,
261,
4522,
13,
3548,
18,
588,
12,
1369,
1769,
5411,
980,
19463,
273,
977,
8485,
18,
2284,
774,
1767,
12,
1369,
7069,
2555,
18,
474,
620,
10663,
3639,
289,
1044,
261,
6434,
2735,
503,
425,
13,
288,
5411,
327,
374,
31,
3639,
289,
3639,
327,
980,
19463,
18,
93,
15,
1369,
19463,
18,
4210,
14,
20,
18,
25,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1645,
9851,
61,
12,
474,
980,
13,
288,
3639,
2144,
980,
7069,
2555,
31,
3639,
13264,
980,
19463,
273,
446,
31,
3639,
775,
288,
5411,
980,
7069,
2555,
273,
261,
4522,
13,
3548,
18,
588,
12,
1369,
1769,
5411,
980,
19463,
273,
977,
8485,
18,
2284,
774,
1767,
12,
1369,
7069,
2555,
18,
474,
620,
10663,
3639,
289,
1044,
261,
6434,
2735,
503,
425,
13,
288,
5411,
327,
374,
31,
3639,
289,
3639,
327,
980,
19463,
18,
93,
15,
1369,
19463,
18,
4210,
14,
20,
18,
25,
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
] |
if (errorstatemanager.errorstate != null) { viewrender.setMessages(errorstatemanager.errorstate.errors); viewrender
|
viewrender.setMessages(targettedMessageList); viewrender
|
public void handle(PrintOutputStream pos) { getwrapper.wrapRunnable(new Runnable() { public void run() { presmanager.scopeRestore(); if (viewparams.flowtoken != null) { presmanager.restore(viewparams.flowtoken, viewparams.endflow != null); } // this must now be AFTER restoration since the templateexpander may // access the model. Shucks!! view = viewgenerator.getView(); // even a "read" from the model may want to cause a scope to be allocated. // it will have to be the user's responsibility not to violate idempotency. presmanager.scopePreserve(); viewprocessor.setView(view); view = viewprocessor.getProcessedView(); } }).run(); if (errorstatemanager.errorstate != null) { viewrender.setMessages(errorstatemanager.errorstate.errors); viewrender .setGlobalMessageTarget(errorstatemanager.errorstate.globaltargetid); } viewrender.setView(view); viewrender.render(pos); }
|
29 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/29/9c6b7fe8217c00c0cee599ae0cdaa2d79fd33eca/RSFRenderHandler.java/buggy/rsf-core/core/src/uk/org/ponder/rsf/processor/RSFRenderHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1640,
12,
5108,
4632,
949,
13,
288,
565,
336,
8376,
18,
4113,
20013,
12,
2704,
10254,
1435,
288,
1377,
1071,
918,
1086,
1435,
288,
3639,
4075,
4181,
18,
4887,
10874,
5621,
3639,
309,
261,
1945,
2010,
18,
2426,
2316,
480,
446,
13,
288,
1850,
4075,
4181,
18,
13991,
12,
1945,
2010,
18,
2426,
2316,
16,
1476,
2010,
18,
409,
2426,
480,
446,
1769,
3639,
289,
3639,
368,
333,
1297,
2037,
506,
18651,
3127,
22226,
3241,
326,
1542,
12320,
264,
2026,
3639,
368,
2006,
326,
938,
18,
2638,
9031,
87,
8548,
3639,
1476,
273,
1476,
8812,
18,
588,
1767,
5621,
3639,
368,
5456,
279,
315,
896,
6,
628,
326,
938,
2026,
2545,
358,
4620,
279,
2146,
358,
506,
11977,
18,
3639,
368,
518,
903,
1240,
358,
506,
326,
729,
1807,
29353,
486,
358,
12471,
340,
22951,
2075,
18,
3639,
4075,
4181,
18,
4887,
12236,
6527,
5621,
3639,
1476,
8700,
18,
542,
1767,
12,
1945,
1769,
3639,
1476,
273,
1476,
8700,
18,
588,
13533,
1767,
5621,
1377,
289,
565,
289,
2934,
2681,
5621,
565,
309,
261,
1636,
2019,
4181,
18,
1636,
2019,
480,
446,
13,
288,
1377,
1476,
5902,
18,
542,
5058,
12,
1636,
2019,
4181,
18,
1636,
2019,
18,
4324,
1769,
1377,
1476,
5902,
1850,
263,
542,
5160,
1079,
2326,
12,
1636,
2019,
4181,
18,
1636,
2019,
18,
6347,
3299,
350,
1769,
565,
289,
565,
1476,
5902,
18,
542,
1767,
12,
1945,
1769,
565,
1476,
5902,
18,
5902,
12,
917,
1769,
225,
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,
282,
1071,
918,
1640,
12,
5108,
4632,
949,
13,
288,
565,
336,
8376,
18,
4113,
20013,
12,
2704,
10254,
1435,
288,
1377,
1071,
918,
1086,
1435,
288,
3639,
4075,
4181,
18,
4887,
10874,
5621,
3639,
309,
261,
1945,
2010,
18,
2426,
2316,
480,
446,
13,
288,
1850,
4075,
4181,
18,
13991,
12,
1945,
2010,
18,
2426,
2316,
16,
1476,
2010,
18,
409,
2426,
480,
446,
1769,
3639,
289,
3639,
368,
333,
1297,
2037,
506,
18651,
3127,
22226,
3241,
326,
1542,
12320,
264,
2026,
3639,
368,
2006,
326,
938,
18,
2638,
9031,
87,
8548,
3639,
1476,
273,
1476,
8812,
18,
588,
1767,
5621,
3639,
368,
5456,
279,
315,
896,
6,
628,
326,
938,
2026,
2545,
358,
4620,
279,
2146,
358,
2
] |
description = new Text(parent, SWT.SINGLE | SWT.BORDER); description.setFont(parent.getFont()); GridData data = new GridData(GridData.FILL_HORIZONTAL); data.horizontalSpan = 3; description.setLayoutData(data); description.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { DialogTaskFilter.this.markDirty(); } }); }
|
description = new Text(parent, SWT.SINGLE | SWT.BORDER); description.setFont(parent.getFont()); GridData data = new GridData(GridData.FILL_HORIZONTAL); data.horizontalSpan = 3; description.setLayoutData(data); description.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { DialogTaskFilter.this.markDirty(); } }); }
|
public DescriptionGroup(Composite parent) { descriptionLabel = new Label(parent, SWT.NONE); descriptionLabel.setFont(parent.getFont()); descriptionLabel.setText(Messages.getString("filtersDialog.descriptionLabel")); //$NON-NLS-1$ combo = new Combo(parent, SWT.READ_ONLY); combo.setFont(parent.getFont()); combo.add(contains); combo.add(doesNotContain); combo.addSelectionListener(selectionListener); // Prevent Esc and Return from closing the dialog when the combo is active. combo.addTraverseListener(new TraverseListener() { public void keyTraversed(TraverseEvent e) { if (e.detail == SWT.TRAVERSE_ESCAPE || e.detail == SWT.TRAVERSE_RETURN) { e.doit = false; } } }); description = new Text(parent, SWT.SINGLE | SWT.BORDER); description.setFont(parent.getFont()); GridData data = new GridData(GridData.FILL_HORIZONTAL); data.horizontalSpan = 3; description.setLayoutData(data); description.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { DialogTaskFilter.this.markDirty(); } }); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/1ceb585b9b16047c6c580984b0c9962c41a22ba6/DialogTaskFilter.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogTaskFilter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
6507,
1114,
12,
9400,
982,
13,
288,
5411,
2477,
2224,
273,
394,
5287,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
5411,
2477,
2224,
18,
542,
5711,
12,
2938,
18,
588,
5711,
10663,
5411,
2477,
2224,
18,
542,
1528,
12,
5058,
18,
588,
780,
2932,
6348,
6353,
18,
3384,
2224,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
5411,
16778,
273,
394,
1286,
1075,
12,
2938,
16,
348,
8588,
18,
6949,
67,
10857,
1769,
5411,
16778,
18,
542,
5711,
12,
2938,
18,
588,
5711,
10663,
5411,
16778,
18,
1289,
12,
12298,
1769,
5411,
16778,
18,
1289,
12,
20657,
1248,
22928,
1769,
5411,
16778,
18,
1289,
6233,
2223,
12,
10705,
2223,
1769,
5411,
368,
19412,
512,
1017,
471,
2000,
628,
7647,
326,
6176,
1347,
326,
16778,
353,
2695,
18,
5411,
16778,
18,
1289,
29654,
2223,
12,
2704,
2197,
2476,
2223,
1435,
288,
7734,
1071,
918,
498,
1609,
7548,
12,
29654,
1133,
425,
13,
288,
10792,
309,
261,
73,
18,
8992,
422,
348,
8588,
18,
20060,
28489,
67,
24849,
18701,
747,
425,
18,
8992,
422,
348,
8588,
18,
20060,
28489,
67,
14033,
13,
288,
13491,
425,
18,
2896,
305,
273,
629,
31,
10792,
289,
7734,
289,
5411,
15549,
5411,
2477,
273,
394,
3867,
12,
2938,
16,
348,
8588,
18,
20184,
571,
348,
8588,
18,
38,
7954,
1769,
5411,
2477,
18,
542,
5711,
12,
2938,
18,
588,
5711,
10663,
5411,
7145,
751,
501,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
44,
20344,
1769,
5411,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
6507,
1114,
12,
9400,
982,
13,
288,
5411,
2477,
2224,
273,
394,
5287,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
5411,
2477,
2224,
18,
542,
5711,
12,
2938,
18,
588,
5711,
10663,
5411,
2477,
2224,
18,
542,
1528,
12,
5058,
18,
588,
780,
2932,
6348,
6353,
18,
3384,
2224,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
5411,
16778,
273,
394,
1286,
1075,
12,
2938,
16,
348,
8588,
18,
6949,
67,
10857,
1769,
5411,
16778,
18,
542,
5711,
12,
2938,
18,
588,
5711,
10663,
5411,
16778,
18,
1289,
12,
12298,
1769,
5411,
16778,
18,
1289,
12,
20657,
1248,
22928,
1769,
5411,
16778,
18,
1289,
6233,
2223,
12,
10705,
2223,
1769,
5411,
368,
19412,
512,
1017,
2
] |
public OutputStreamWriter (OutputStream out)
|
public OutputStreamWriter (OutputStream out, String encoding_scheme) throws UnsupportedEncodingException
|
public OutputStreamWriter (OutputStream out) { this.out = out; outputBuffer = null; try { String encoding = System.getProperty("file.encoding"); Charset cs = Charset.forName(encoding); encoder = cs.newEncoder(); encodingName = EncodingHelper.getOldCanonical(cs.name()); } catch(RuntimeException e) { encoder = null; encodingName = "ISO8859_1"; } if(encoder != null) { encoder.onMalformedInput(CodingErrorAction.REPLACE); encoder.onUnmappableCharacter(CodingErrorAction.REPLACE); outputBuffer = CharBuffer.allocate(BUFFER_SIZE); } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba6c8424cfc5e0b2250088f94b5bbf356d91781a/OutputStreamWriter.java/buggy/core/src/classpath/5.0/java/io/OutputStreamWriter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
24248,
261,
4632,
596,
16,
514,
2688,
67,
9068,
13,
1216,
15367,
225,
288,
565,
333,
18,
659,
273,
596,
31,
565,
876,
1892,
273,
446,
31,
565,
775,
4202,
288,
202,
780,
2688,
273,
2332,
18,
588,
1396,
2932,
768,
18,
5999,
8863,
202,
9652,
2873,
273,
12080,
18,
1884,
461,
12,
5999,
1769,
202,
16480,
273,
2873,
18,
2704,
7204,
5621,
202,
5999,
461,
273,
225,
13400,
2276,
18,
588,
7617,
15512,
12,
2143,
18,
529,
10663,
1377,
289,
377,
1044,
12,
11949,
425,
13,
4202,
288,
202,
16480,
273,
446,
31,
225,
202,
5999,
461,
273,
315,
12609,
17258,
67,
21,
14432,
1377,
289,
565,
309,
12,
16480,
480,
446,
13,
1377,
288,
202,
16480,
18,
265,
18695,
1210,
12,
30315,
668,
1803,
18,
21726,
1769,
202,
16480,
18,
265,
984,
1458,
19586,
7069,
12,
30315,
668,
1803,
18,
21726,
1769,
202,
2844,
1892,
273,
3703,
1892,
18,
16247,
12,
11302,
67,
4574,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
24248,
261,
4632,
596,
16,
514,
2688,
67,
9068,
13,
1216,
15367,
225,
288,
565,
333,
18,
659,
273,
596,
31,
565,
876,
1892,
273,
446,
31,
565,
775,
4202,
288,
202,
780,
2688,
273,
2332,
18,
588,
1396,
2932,
768,
18,
5999,
8863,
202,
9652,
2873,
273,
12080,
18,
1884,
461,
12,
5999,
1769,
202,
16480,
273,
2873,
18,
2704,
7204,
5621,
202,
5999,
461,
273,
225,
13400,
2276,
18,
588,
7617,
15512,
12,
2143,
18,
529,
10663,
1377,
289,
377,
1044,
12,
11949,
425,
13,
4202,
288,
202,
16480,
273,
446,
31,
225,
202,
5999,
461,
273,
315,
12609,
17258,
67,
21,
14432,
1377,
289,
565,
309,
12,
16480,
480,
446,
13,
1377,
288,
202,
2
] |
ExpireInfluenceEffect effect = new ExpireInfluenceEffect();
|
ExpireInfluenceEffect effect = influence.createExpireEffect();
|
public ArrayList<Effect> tick (short tick, BangBoard board, Piece[] pieces) { ArrayList<Effect> effects = new ArrayList<Effect>(); if (influence != null && influence.isExpired(tick)) { ExpireInfluenceEffect effect = new ExpireInfluenceEffect(); effect.init(this); effects.add(effect); } if (hindrance != null) { if (hindrance.isExpired(tick)) { ExpireHindranceEffect effect = new ExpireHindranceEffect(); effect.init(this); effects.add(effect); } else { Effect effect = hindrance.tick(); if (effect != null) { effects.add(effect); } } } return effects; }
|
8059 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8059/6e9851f7054ff4e8db953104f5b506f518282841/Unit.java/clean/src/java/com/threerings/bang/game/data/piece/Unit.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2407,
32,
12477,
34,
4024,
261,
6620,
4024,
16,
605,
539,
22233,
11094,
16,
453,
8414,
8526,
10167,
13,
565,
288,
3639,
2407,
32,
12477,
34,
16605,
273,
394,
2407,
32,
12477,
34,
5621,
3639,
309,
261,
267,
2242,
23209,
480,
446,
597,
13947,
23209,
18,
291,
10556,
12,
6470,
3719,
288,
5411,
7784,
577,
27040,
23209,
12477,
5426,
273,
13947,
23209,
18,
2640,
17033,
12477,
5621,
5411,
5426,
18,
2738,
12,
2211,
1769,
5411,
16605,
18,
1289,
12,
13867,
1769,
3639,
289,
3639,
309,
261,
31748,
86,
1359,
480,
446,
13,
288,
5411,
309,
261,
31748,
86,
1359,
18,
291,
10556,
12,
6470,
3719,
288,
7734,
7784,
577,
44,
728,
86,
1359,
12477,
5426,
273,
394,
7784,
577,
44,
728,
86,
1359,
12477,
5621,
7734,
5426,
18,
2738,
12,
2211,
1769,
7734,
16605,
18,
1289,
12,
13867,
1769,
5411,
289,
469,
288,
7734,
30755,
5426,
273,
366,
728,
86,
1359,
18,
6470,
5621,
7734,
309,
261,
13867,
480,
446,
13,
288,
10792,
16605,
18,
1289,
12,
13867,
1769,
7734,
289,
5411,
289,
3639,
289,
3639,
327,
16605,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2407,
32,
12477,
34,
4024,
261,
6620,
4024,
16,
605,
539,
22233,
11094,
16,
453,
8414,
8526,
10167,
13,
565,
288,
3639,
2407,
32,
12477,
34,
16605,
273,
394,
2407,
32,
12477,
34,
5621,
3639,
309,
261,
267,
2242,
23209,
480,
446,
597,
13947,
23209,
18,
291,
10556,
12,
6470,
3719,
288,
5411,
7784,
577,
27040,
23209,
12477,
5426,
273,
13947,
23209,
18,
2640,
17033,
12477,
5621,
5411,
5426,
18,
2738,
12,
2211,
1769,
5411,
16605,
18,
1289,
12,
13867,
1769,
3639,
289,
3639,
309,
261,
31748,
86,
1359,
480,
446,
13,
288,
5411,
309,
261,
31748,
86,
1359,
18,
291,
10556,
12,
6470,
3719,
288,
7734,
7784,
577,
44,
728,
86,
1359,
12477,
5426,
273,
394,
2
] |
public void addLayoutComponent(String string, Component component) { // TODO }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/023d84234744e17ddc3d1a3787edb617c0b03ce7/OverlayLayout.java/clean/core/src/classpath/javax/javax/swing/OverlayLayout.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
527,
3744,
1841,
12,
780,
533,
16,
5435,
1794,
13,
225,
288,
565,
368,
2660,
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,
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,
282,
1071,
918,
527,
3744,
1841,
12,
780,
533,
16,
5435,
1794,
13,
225,
288,
565,
368,
2660,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
||
errorHandler.error("No output stream or file set for appender named ["+
|
errorHandler.error("No output stream or file set for the appender named ["+
|
boolean checkEntryConditions() { if(this.closed) { LogLog.warn("Not allowed to write to a closed appender."); return false; } if(this.qw == null) { errorHandler.error("No output stream or file set for appender named ["+ name+"]."); return false; } if(this.layout == null) { errorHandler.error("No layout set for appender named ["+ name+"]."); return false; } return true; }
|
45952 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45952/7e95f4ba6d755305d9f5afbb0eb0626e2680ce88/WriterAppender.java/buggy/src/java/org/apache/log4j/WriterAppender.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1250,
866,
1622,
8545,
1435,
288,
565,
309,
12,
2211,
18,
12204,
13,
288,
1377,
1827,
1343,
18,
8935,
2932,
1248,
2935,
358,
1045,
358,
279,
4375,
17405,
1199,
1769,
1377,
327,
629,
31,
565,
289,
565,
309,
12,
2211,
18,
85,
91,
422,
446,
13,
288,
1377,
17227,
18,
1636,
2932,
2279,
876,
1407,
578,
585,
444,
364,
326,
17405,
4141,
8247,
15,
1875,
202,
529,
9078,
65,
1199,
1769,
1377,
327,
629,
31,
565,
289,
3639,
309,
12,
2211,
18,
6741,
422,
446,
13,
288,
1377,
17227,
18,
1636,
2932,
2279,
3511,
444,
364,
17405,
4141,
8247,
15,
508,
9078,
65,
1199,
1769,
1377,
327,
629,
31,
565,
289,
565,
327,
638,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1250,
866,
1622,
8545,
1435,
288,
565,
309,
12,
2211,
18,
12204,
13,
288,
1377,
1827,
1343,
18,
8935,
2932,
1248,
2935,
358,
1045,
358,
279,
4375,
17405,
1199,
1769,
1377,
327,
629,
31,
565,
289,
565,
309,
12,
2211,
18,
85,
91,
422,
446,
13,
288,
1377,
17227,
18,
1636,
2932,
2279,
876,
1407,
578,
585,
444,
364,
326,
17405,
4141,
8247,
15,
1875,
202,
529,
9078,
65,
1199,
1769,
1377,
327,
629,
31,
565,
289,
3639,
309,
12,
2211,
18,
6741,
422,
446,
13,
288,
1377,
17227,
18,
1636,
2932,
2279,
3511,
444,
364,
17405,
4141,
8247,
15,
508,
9078,
65,
1199,
1769,
1377,
327,
629,
31,
565,
289,
565,
327,
638,
31,
225,
289,
2,
-100
] |
BugzillaTask task = BugzillaUiPlugin.getDefault().getBugzillaTaskListManager().getFromBugzillaTaskRegistry(hit.getHandle());
|
BugzillaTask task = BugzillaUiPlugin.getDefault().getBugzillaTaskListManager().getFromBugzillaTaskRegistry(hit.getHandleIdentifier());
|
public void addHit(IQueryHit hit) { BugzillaTask task = BugzillaUiPlugin.getDefault().getBugzillaTaskListManager().getFromBugzillaTaskRegistry(hit.getHandle()); hit.setAssociatedTask(task); hits.add(hit); }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/2f28328b2ac903cfe546d63aff1c6d7b0db812d6/BugzillaQueryCategory.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasklist/BugzillaQueryCategory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
527,
13616,
12,
45,
1138,
13616,
6800,
13,
288,
202,
202,
19865,
15990,
2174,
1562,
273,
16907,
15990,
13943,
3773,
18,
588,
1868,
7675,
588,
19865,
15990,
2174,
682,
1318,
7675,
588,
1265,
19865,
15990,
2174,
4243,
12,
15989,
18,
588,
3259,
10663,
202,
202,
15989,
18,
542,
19233,
2174,
12,
4146,
1769,
202,
202,
15173,
18,
1289,
12,
15989,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
13616,
12,
45,
1138,
13616,
6800,
13,
288,
202,
202,
19865,
15990,
2174,
1562,
273,
16907,
15990,
13943,
3773,
18,
588,
1868,
7675,
588,
19865,
15990,
2174,
682,
1318,
7675,
588,
1265,
19865,
15990,
2174,
4243,
12,
15989,
18,
588,
3259,
10663,
202,
202,
15989,
18,
542,
19233,
2174,
12,
4146,
1769,
202,
202,
15173,
18,
1289,
12,
15989,
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
] |
if (file.exists()) { if (!getOverwriteExisting()) { String msg = MessageFormat .format( PreferencesMessages .getString("WizardPreferencesExportPage1.overwrite"), new String[] { file.getAbsolutePath() }); if (!queryYesNoQuestion(msg)) return false; } file.delete(); } else if (!file.isDirectory()) { File parent = file.getParentFile(); if (parent != null) file.getParentFile().mkdirs(); } return true; }
|
if (file.exists()) { if (!getOverwriteExisting()) { String msg = MessageFormat .format( PreferencesMessages .getString("WizardPreferencesExportPage1.overwrite"), new String[] { file.getAbsolutePath() }); if (!queryYesNoQuestion(msg)) return false; } file.delete(); } else if (!file.isDirectory()) { File parent = file.getParentFile(); if (parent != null) file.getParentFile().mkdirs(); } return true; }
|
protected boolean ensureTargetIsValid(File file) { if (file.exists()) { if (!getOverwriteExisting()) { String msg = MessageFormat .format( PreferencesMessages .getString("WizardPreferencesExportPage1.overwrite"), new String[] { file.getAbsolutePath() }); // //$NON-NLS-1$ if (!queryYesNoQuestion(msg)) return false; } file.delete(); } else if (!file.isDirectory()) { File parent = file.getParentFile(); if (parent != null) file.getParentFile().mkdirs(); } return true; }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/901694a204e2e98a8a01b05f67351a3c900227dc/WizardPreferencesPage.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/preferences/WizardPreferencesPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
3387,
2326,
20536,
12,
812,
585,
13,
288,
3639,
309,
261,
768,
18,
1808,
10756,
288,
5411,
309,
16051,
588,
20832,
9895,
10756,
288,
7734,
514,
1234,
273,
17377,
13491,
263,
2139,
12,
27573,
28310,
5058,
4766,
3639,
263,
588,
780,
2932,
27130,
12377,
6144,
1964,
21,
18,
19274,
6,
3631,
394,
514,
8526,
288,
585,
18,
588,
10368,
743,
1435,
15549,
368,
4329,
3993,
17,
5106,
17,
21,
8,
7734,
309,
16051,
2271,
22352,
2279,
11665,
12,
3576,
3719,
10792,
327,
629,
31,
5411,
289,
5411,
585,
18,
3733,
5621,
3639,
289,
469,
309,
16051,
768,
18,
291,
2853,
10756,
288,
5411,
1387,
982,
273,
585,
18,
588,
3054,
812,
5621,
5411,
309,
261,
2938,
480,
446,
13,
7734,
585,
18,
588,
3054,
812,
7675,
24816,
8291,
5621,
3639,
289,
3639,
327,
638,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
3387,
2326,
20536,
12,
812,
585,
13,
288,
3639,
309,
261,
768,
18,
1808,
10756,
288,
5411,
309,
16051,
588,
20832,
9895,
10756,
288,
7734,
514,
1234,
273,
17377,
13491,
263,
2139,
12,
27573,
28310,
5058,
4766,
3639,
263,
588,
780,
2932,
27130,
12377,
6144,
1964,
21,
18,
19274,
6,
3631,
394,
514,
8526,
288,
585,
18,
588,
10368,
743,
1435,
15549,
368,
4329,
3993,
17,
5106,
17,
21,
8,
7734,
309,
16051,
2271,
22352,
2279,
11665,
12,
3576,
3719,
10792,
327,
629,
31,
5411,
289,
5411,
585,
18,
3733,
5621,
3639,
289,
469,
309,
16051,
768,
18,
291,
2853,
10756,
288,
5411,
1387,
982,
273,
585,
18,
588,
3054,
812,
5621,
5411,
309,
261,
2938,
2
] |
case 80: case 81:
|
case 84: case 85:
|
public final void expr(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { AST expr_AST_in = (AST)_t; AST varName = null; AST letVarName = null; Expression step= null; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COMMA: { AST __t161 = _t; AST tmp3_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getFirstChild(); PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); expr(_t,left); _t = _retTree; expr(_t,right); _t = _retTree; SequenceConstructor sc = new SequenceConstructor(context); sc.addExpression(left); sc.addExpression(right); path.add(sc); _t = __t161; _t = _t.getNextSibling(); break; } case LITERAL_return: { AST __t162 = _t; AST tmp4_AST_in = (AST)_t; match(_t,LITERAL_return); _t = _t.getFirstChild(); List clauses= new ArrayList(); Expression action= new PathExpr(context); PathExpr whereExpr= null; { int _cnt172=0; _loop172: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_for: { AST __t164 = _t; AST tmp5_AST_in = (AST)_t; match(_t,LITERAL_for); _t = _t.getFirstChild(); { int _cnt167=0; _loop167: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VARIABLE_BINDING)) { AST __t166 = _t; varName = _t==ASTNULL ? null :(AST)_t; match(_t,VARIABLE_BINDING); _t = _t.getFirstChild(); ForLetClause clause= new ForLetClause(); PathExpr inputSequence= new PathExpr(context); expr(_t,inputSequence); _t = _retTree; clause.varName= varName.getText(); clause.inputSequence= inputSequence; clauses.add(clause); _t = __t166; _t = _t.getNextSibling(); } else { if ( _cnt167>=1 ) { break _loop167; } else {throw new NoViableAltException(_t);} } _cnt167++; } while (true); } _t = __t164; _t = _t.getNextSibling(); break; } case LITERAL_let: { AST __t168 = _t; AST tmp6_AST_in = (AST)_t; match(_t,LITERAL_let); _t = _t.getFirstChild(); { int _cnt171=0; _loop171: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VARIABLE_BINDING)) { AST __t170 = _t; letVarName = _t==ASTNULL ? null :(AST)_t; match(_t,VARIABLE_BINDING); _t = _t.getFirstChild(); ForLetClause clause= new ForLetClause(); clause.isForClause= false; PathExpr inputSequence= new PathExpr(context); expr(_t,inputSequence); _t = _retTree; clause.varName= letVarName.getText(); clause.inputSequence= inputSequence; clauses.add(clause); _t = __t170; _t = _t.getNextSibling(); } else { if ( _cnt171>=1 ) { break _loop171; } else {throw new NoViableAltException(_t);} } _cnt171++; } while (true); } _t = __t168; _t = _t.getNextSibling(); break; } default: { if ( _cnt172>=1 ) { break _loop172; } else {throw new NoViableAltException(_t);} } } _cnt172++; } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_where: { AST tmp7_AST_in = (AST)_t; match(_t,LITERAL_where); _t = _t.getNextSibling(); whereExpr= new PathExpr(context); expr(_t,whereExpr); _t = _retTree; break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case NCNAME: case STRING_LITERAL: case EQ: case COMMA: case LITERAL_return: case LITERAL_or: case LITERAL_and: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case LITERAL_to: case PLUS: case MINUS: case STAR: case LITERAL_div: case LITERAL_mod: case UNION: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 76: case 77: case LITERAL_parent: case LITERAL_ancestor: case 80: case 81: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: case LCURLY: { break; } default: { throw new NoViableAltException(_t); } } } expr(_t,(PathExpr) action); _t = _retTree; for (int i= clauses.size() - 1; i >= 0; i--) { ForLetClause clause= (ForLetClause) clauses.get(i); BindingExpression expr; if (clause.isForClause) expr= new ForExpr(context); else expr= new LetExpr(context); expr.setVariable(clause.varName); expr.setInputSequence(clause.inputSequence); expr.setReturnExpression(action); if (whereExpr != null) { expr.setWhereExpression(whereExpr); whereExpr= null; } action= expr; } path.add(action); _t = __t162; _t = _t.getNextSibling(); break; } case LITERAL_or: { AST __t174 = _t; AST tmp8_AST_in = (AST)_t; match(_t,LITERAL_or); _t = _t.getFirstChild(); PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); expr(_t,left); _t = _retTree; expr(_t,right); _t = _retTree; _t = __t174; _t = _t.getNextSibling(); OpOr or= new OpOr(context); or.add(left); or.add(right); path.addPath(or); break; } case LITERAL_and: { AST __t175 = _t; AST tmp9_AST_in = (AST)_t; match(_t,LITERAL_and); _t = _t.getFirstChild(); PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); expr(_t,left); _t = _retTree; expr(_t,right); _t = _retTree; _t = __t175; _t = _t.getNextSibling(); OpAnd and= new OpAnd(context); and.add(left); and.add(right); path.addPath(and); break; } case PARENTHESIZED: { AST __t176 = _t; AST tmp10_AST_in = (AST)_t; match(_t,PARENTHESIZED); _t = _t.getFirstChild(); PathExpr expr= new PathExpr(context); path.addPath(expr); expr(_t,expr); _t = _retTree; _t = __t176; _t = _t.getNextSibling(); break; } case UNION: { AST __t177 = _t; AST tmp11_AST_in = (AST)_t; match(_t,UNION); _t = _t.getFirstChild(); PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); expr(_t,left); _t = _retTree; expr(_t,right); _t = _retTree; _t = __t177; _t = _t.getNextSibling(); Union union= new Union(context, left, right); path.addPath(union); break; } case ABSOLUTE_SLASH: { AST __t178 = _t; AST tmp12_AST_in = (AST)_t; match(_t,ABSOLUTE_SLASH); _t = _t.getFirstChild(); RootNode root= new RootNode(context); path.add(root); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case NCNAME: case STRING_LITERAL: case EQ: case COMMA: case LITERAL_return: case LITERAL_or: case LITERAL_and: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case LITERAL_to: case PLUS: case MINUS: case STAR: case LITERAL_div: case LITERAL_mod: case UNION: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 76: case 77: case LITERAL_parent: case LITERAL_ancestor: case 80: case 81: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: case LCURLY: { expr(_t,path); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t178; _t = _t.getNextSibling(); break; } case ABSOLUTE_DSLASH: { AST __t180 = _t; AST tmp13_AST_in = (AST)_t; match(_t,ABSOLUTE_DSLASH); _t = _t.getFirstChild(); RootNode root= new RootNode(context); path.add(root); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case VARIABLE_REF: case NCNAME: case STRING_LITERAL: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 76: case 77: case LITERAL_parent: case LITERAL_ancestor: case 80: case 81: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: { step=pathExpr(_t,path); _t = _retTree; if (step instanceof LocationStep) { LocationStep s= (LocationStep) step; if (s.getAxis() == Constants.ATTRIBUTE_AXIS) // combines descendant-or-self::node()/attribute:* s.setAxis(Constants.DESCENDANT_ATTRIBUTE_AXIS); else s.setAxis(Constants.DESCENDANT_SELF_AXIS); } break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t180; _t = _t.getNextSibling(); break; } case LITERAL_to: { AST __t182 = _t; AST tmp14_AST_in = (AST)_t; match(_t,LITERAL_to); _t = _t.getFirstChild(); PathExpr start = new PathExpr(context); PathExpr end = new PathExpr(context); List args = new ArrayList(2); args.add(start); args.add(end); expr(_t,start); _t = _retTree; expr(_t,end); _t = _retTree; RangeExpression range = new RangeExpression(context); range.setArguments(args); path.addPath(range); _t = __t182; _t = _t.getNextSibling(); break; } case EQ: case NEQ: case GT: case GTEQ: case LT: case LTEQ: { step=generalComp(_t,path); _t = _retTree; break; } case ANDEQ: case OREQ: { step=fulltextComp(_t,path); _t = _retTree; break; } case QNAME: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case VARIABLE_REF: case NCNAME: case STRING_LITERAL: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 76: case 77: case LITERAL_parent: case LITERAL_ancestor: case 80: case 81: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: { step=pathExpr(_t,path); _t = _retTree; break; } case UNARY_MINUS: case UNARY_PLUS: case PLUS: case MINUS: case STAR: case LITERAL_div: case LITERAL_mod: { step=numericExpr(_t,path); _t = _retTree; break; } case ELEMENT: case TEXT: case XML_COMMENT: case XML_PI: case LCURLY: { step=constructor(_t,path); _t = _retTree; break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/542794bb5fd4ba67897c2c2677f4f663483ba69d/XPathTreeParser2.java/clean/src/org/exist/parser/XPathTreeParser2.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
3065,
12,
9053,
389,
88,
16,
202,
202,
743,
4742,
589,
202,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
16,
14124,
503,
288,
9506,
202,
9053,
3065,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
9053,
13722,
273,
446,
31,
202,
202,
9053,
2231,
18129,
273,
446,
31,
202,
202,
2300,
2235,
33,
446,
31,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
17373,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
31899,
273,
389,
88,
31,
1082,
202,
9053,
1853,
23,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
4208,
5535,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
6862,
6862,
202,
743,
4742,
2002,
33,
394,
2666,
4742,
12,
2472,
1769,
25083,
202,
743,
4742,
2145,
33,
394,
2666,
4742,
12,
2472,
1769,
6862,
9506,
202,
8638,
24899,
88,
16,
4482,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
1082,
202,
8638,
24899,
88,
16,
4083,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
6862,
6862,
202,
4021,
6293,
888,
273,
394,
8370,
6293,
12,
2472,
1769,
25083,
202,
1017,
18,
1289,
2300,
12,
4482,
1769,
25083,
202,
1017,
18,
1289,
2300,
12,
4083,
1769,
25083,
202,
803,
18,
1289,
12,
1017,
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,
3065,
12,
9053,
389,
88,
16,
202,
202,
743,
4742,
589,
202,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
16,
14124,
503,
288,
9506,
202,
9053,
3065,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
9053,
13722,
273,
446,
31,
202,
202,
9053,
2231,
18129,
273,
446,
31,
202,
202,
2300,
2235,
33,
446,
31,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
17373,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
31899,
273,
389,
88,
31,
1082,
202,
9053,
1853,
23,
67,
9053,
2
] |
playerNameText.addFocusListener(playerNameAdapter);
|
playerNameText.setInputVerifier(playerNameInputVerify);
|
private void initComponents() { readyForRefresh = true; // Layout the stats table JScrollPane statScrollPane = new JScrollPane(); statTable = new JTableEx(); statTable.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE); statTable.setModel(statTableModel); statTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); statTable.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent evt) { statTableMouseClicked(evt); } }); setStatTableColumnPrefs(STAT_COLUMN, 40, SwingConstants.LEFT); TableColumn col = setStatTableColumnPrefs(BASE_COLUMN, 30, SwingConstants.CENTER); if (col != null) { //Using a formatted text field here to validate for integers. //FormattedCellEditor sets the focus to the component which //selects the entered data for over-writing. JFormattedTextField field = new JFormattedTextField( new RegexFormatter("\\d{1,4}|\\*")); //$NON-NLS-1$ field.setHorizontalAlignment(SwingConstants.CENTER); col.setCellEditor(new FormattedCellEditor(field)); } setStatTableColumnPrefs(RACE_COLUMN, 20, SwingConstants.CENTER); setStatTableColumnPrefs(OTHER_COLUMN, 20, SwingConstants.CENTER); setStatTableColumnPrefs(TOTAL_COLUMN, 20, SwingConstants.CENTER); setStatTableColumnPrefs(MOD_COLUMN, 20, SwingConstants.CENTER); col = statTable.getColumnModel().getColumn(INC_COLUMN); col.setCellRenderer(plusMinusRenderer); col.setMaxWidth(30); col.setMinWidth(30); col = statTable.getColumnModel().getColumn(DEC_COLUMN); col.setCellRenderer(plusMinusRenderer); col.setMaxWidth(30); col.setMinWidth(30); statScrollPane.setViewportView(statTable); GridBagLayout gridbag = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); northPanel.setLayout(gridbag); c.insets = new Insets(2, 2, 2, 2); createModels(); createTreeTables(); // Layout the first column Utility.buildConstraints(c, 0, 0, 1, 1, 0, 0); c.fill = GridBagConstraints.NONE; c.anchor = GridBagConstraints.EAST; labelName = new JLabel(PropertyFactory.getString("in_sumCharString") + ": "); //$NON-NLS-1$ //$NON-NLS-2$ gridbag.setConstraints(labelName, c); northPanel.add(labelName); Utility.buildConstraints(c, 1, 0, 1, 1, 3, 0); c.fill = GridBagConstraints.HORIZONTAL; c.anchor = GridBagConstraints.WEST; gridbag.setConstraints(pcNameText, c); northPanel.add(pcNameText); //CoreUtility.buildConstraints(c, 0, 1, 1, 1, 0, 0); //c.fill = GridBagConstraints.NONE; //c.anchor = GridBagConstraints.EAST; Utility.buildConstraints(c, 1, 1, 1, 1, 0, 0); c.fill = GridBagConstraints.NONE; c.anchor = GridBagConstraints.WEST; randName = new JButton(PropertyFactory.getString("in_sumRandomNameString")); //$NON-NLS-1$ gridbag.setConstraints(randName, c); northPanel.add(randName); Utility.setDescription(randName, PropertyFactory.getString("in_randNameTipString")); //$NON-NLS-1$ Utility.buildConstraints(c, 0, 2, 1, 1, 0, 0); c.fill = GridBagConstraints.NONE; c.anchor = GridBagConstraints.EAST; JLabel tabLabel = new JLabel(PropertyFactory.getString("in_tabString") + ": "); //$NON-NLS-1$ //$NON-NLS-2$ gridbag.setConstraints(tabLabel, c); northPanel.add(tabLabel); Utility.buildConstraints(c, 1, 2, 1, 1, 0, 0); c.fill = GridBagConstraints.HORIZONTAL; c.anchor = GridBagConstraints.WEST; gridbag.setConstraints(tabNameText, c); northPanel.add(tabNameText); tabNameText.addFocusListener(tabNameAdapter); Utility.buildConstraints(c, 0, 3, 1, 1, 0, 0); c.fill = GridBagConstraints.NONE; c.anchor = GridBagConstraints.EAST; JLabel label = new JLabel(PropertyFactory.getString("in_sumPlayerString") + ": "); //$NON-NLS-1$ //$NON-NLS-2$ gridbag.setConstraints(label, c); northPanel.add(label); Utility.buildConstraints(c, 1, 3, 1, 1, 0, 0); c.fill = GridBagConstraints.HORIZONTAL; c.anchor = GridBagConstraints.WEST; gridbag.setConstraints(playerNameText, c); northPanel.add(playerNameText); playerNameText.addFocusListener(playerNameAdapter); // Layout the second column Utility.buildConstraints(c, 3, 0, 1, 1, 0, 0); c.fill = GridBagConstraints.NONE; c.anchor = GridBagConstraints.EAST; labelAlignment = new JLabel(PropertyFactory.getString("in_alignString") + ": "); //$NON-NLS-1$ //$NON-NLS-2$ gridbag.setConstraints(labelAlignment, c); northPanel.add(labelAlignment); Utility.buildConstraints(c, 4, 0, 1, 1, 2, 0); c.fill = GridBagConstraints.HORIZONTAL; c.anchor = GridBagConstraints.WEST; gridbag.setConstraints(alignmentComboBox, c); northPanel.add(alignmentComboBox); alignmentComboBox.setModel(new DefaultComboBoxModel(populateAlignmentStrings())); Utility.buildConstraints(c, 3, 1, 1, 1, 0, 0); c.fill = GridBagConstraints.NONE; c.anchor = GridBagConstraints.EAST; labelRace = new JLabel(PropertyFactory.getString("in_raceString") + ": "); //$NON-NLS-1$ //$NON-NLS-2$ gridbag.setConstraints(labelRace, c); northPanel.add(labelRace); Utility.buildConstraints(c, 4, 1, 1, 1, 0, 0); c.fill = GridBagConstraints.HORIZONTAL; c.anchor = GridBagConstraints.WEST; gridbag.setConstraints(raceComboBox, c); northPanel.add(raceComboBox); raceComboModel = new RaceComboModel(); raceComboBox.setModel(raceComboModel); Utility.buildConstraints(c, 3, 2, 1, 1, 0, 0); c.fill = GridBagConstraints.NONE; c.anchor = GridBagConstraints.EAST; labelClass = new JLabel(PropertyFactory.getString("in_classString") + ": "); //$NON-NLS-1$ //$NON-NLS-2$ gridbag.setConstraints(labelClass, c); northPanel.add(labelClass); Utility.buildConstraints(c, 4, 2, 1, 1, 0, 0); c.fill = GridBagConstraints.HORIZONTAL; c.anchor = GridBagConstraints.WEST; gridbag.setConstraints(classComboBox, c); northPanel.add(classComboBox); ClassComboBoxRenderer renderer = new ClassComboBoxRenderer(); renderer.setPreferredSize(new Dimension(200, 17)); classComboBox.setRenderer(renderer); classComboModel = new ClassComboModel(); classComboBox.setModel(classComboModel); // Layout for the level panel Utility.buildConstraints(c, 3, 3, 1, 1, 0, 0); c.fill = GridBagConstraints.NONE; c.anchor = GridBagConstraints.EAST; label = new JLabel(PropertyFactory.getString("in_levelString") + ": "); //$NON-NLS-1$ //$NON-NLS-2$ gridbag.setConstraints(label, c); northPanel.add(label); Utility.buildConstraints(c, 4, 3, 1, 1, 0, 0); c.fill = GridBagConstraints.HORIZONTAL; c.anchor = GridBagConstraints.WEST; //label = new JLabel(PropertyFactory.getString("in_levelString") + ": "); Utility.setDescription(lvlDownButton, PropertyFactory.getString("in_levelDownButtonTooltip")); //$NON-NLS-1$ Utility.setDescription(lvlUpButton, PropertyFactory.getString("in_levelUpButtonTooltip")); //$NON-NLS-1$ Utility.setDescription(levelText, PropertyFactory.getString("in_levelTextTooltip")); //$NON-NLS-1$ //levelPanel.add(label); levelPanel.setLayout(new FlowLayout(FlowLayout.LEFT)); levelPanel.add(levelText); levelPanel.add(lvlUpButton); levelPanel.add(lvlDownButton); levelPanel.add(btnAddKit); gridbag.setConstraints(levelPanel, c); northPanel.add(levelPanel);///////////////////////// Utility.buildConstraints(c, 0, 4, 1, 1, 0, 0); lblMonsterlHD.setText(PropertyFactory.getString("in_sumMonsterHitDice")); //$NON-NLS-1$ c.anchor = GridBagConstraints.EAST; northPanel.add(lblMonsterlHD, c); Utility.buildConstraints(c, 1, 4, 1, 1, 0, 0); txtMonsterlHD.setText("0"); //$NON-NLS-1$ c.fill = GridBagConstraints.HORIZONTAL; c.anchor = GridBagConstraints.WEST; northPanel.add(txtMonsterlHD, c); Utility.buildConstraints(c, 3, 4, 1, 1, 0, 0); lblHDModify.setText(PropertyFactory.getString("in_sumHDToAddRem")); //$NON-NLS-1$ c.anchor = GridBagConstraints.EAST; northPanel.add(lblHDModify, c); pnlHD.setLayout(new FlowLayout(FlowLayout.LEFT)); pnlHD.add(txtHD); pnlHD.add(btnAddHD); pnlHD.add(btnRemoveHD); Utility.buildConstraints(c, 4, 4, 1, 1, 0, 0); c.fill = GridBagConstraints.HORIZONTAL; c.anchor = GridBagConstraints.WEST; northPanel.add(pnlHD, c); //pnlHD.add(lblHD); btnAddHD.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { addMonsterHD(1); } }); btnRemoveHD.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { addMonsterHD(-1); } }); btnAddKit.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { addKit(); } });///////////////////////// // Layout the Stats table Utility.buildConstraints(c, 0, 5, 5, 2, 0, 18); c.fill = GridBagConstraints.BOTH; c.anchor = GridBagConstraints.WEST; JPanel statPanel = new JPanel(); statPanel.setLayout(new BorderLayout()); statPanel.add(statScrollPane, BorderLayout.CENTER); poolPanel.add(poolLabel); poolText.setPreferredSize(new Dimension(60, 20)); poolPanel.add(poolText); if (Globals.getGameModeHasPointPool()) { if (poolPointLabel == null) { poolPointLabel = new JLabel(Globals.getGameModePointPoolName() + ": "); poolPanel.add(poolPointLabel); poolPointText = new JLabel(); poolPointText.setPreferredSize(new Dimension(60, 20)); poolPanel.add(poolPointText); showPointPool(); } } if (Globals.getGameModeHPFormula().length() == 0) { jButtonHP = new JButton(); jButtonHP.setText(Globals.getGameModeHPAbbrev()); jButtonHP.setAlignmentY(0.0F); jButtonHP.setHorizontalAlignment(SwingConstants.LEFT); jButtonHP.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { pcGenGUI.showHpFrame(pc); } }); poolPanel.add(jButtonHP); } else { labelHPName = new JLabel(Globals.getGameModeHPAbbrev()); poolPanel.add(labelHPName); } labelHP.setText(""); //$NON-NLS-1$ labelHP.setHorizontalAlignment(SwingConstants.TRAILING); poolPanel.add(labelHP); statPanel.add(poolPanel, BorderLayout.SOUTH); gridbag.setConstraints(statPanel, c); northPanel.add(statPanel); // Layout the to do pane todoPane.setBackground(northPanel.getBackground()); todoPane.setContentType("text/html"); //$NON-NLS-1$ StringBuffer todoText = new StringBuffer("<html><body></body></html>"); //$NON-NLS-1$ todoPane.setText(todoText.toString()); todoPane.setEditable(false); JScrollPane scroll = new JScrollPane(); scroll.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED); scroll.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED); scroll.setViewportView(todoPane); scroll.getViewport().setScrollMode(JViewport.BLIT_SCROLL_MODE); scroll.setBackground(new Color(255, 255, 255)); JPanel pane1 = new JPanel(); pane1.add(scroll); TitledBorder title1 = BorderFactory.createTitledBorder(PropertyFactory.getString("in_tipsString")); //$NON-NLS-1$ title1.setTitleJustification(TitledBorder.CENTER); pane1.setBorder(title1); pane1.setLayout(new BoxLayout(pane1, BoxLayout.Y_AXIS)); Utility.buildConstraints(c, 0, 7, 5, 1, 0, 18); c.fill = GridBagConstraints.BOTH; c.anchor = GridBagConstraints.CENTER; gridbag.setConstraints(pane1, c); northPanel.add(pane1); // Layout the info pane infoPane.setBackground(northPanel.getBackground()); infoPane.setContentType("text/html"); //$NON-NLS-1$ infoPane.setText(""); //$NON-NLS-1$ infoPane.setEditable(false); JScrollPane scrol2 = new JScrollPane(); scrol2.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED); scrol2.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED); scrol2.setViewportView(infoPane); scrol2.getViewport().setScrollMode(JViewport.BLIT_SCROLL_MODE); scrol2.setBackground(northPanel.getBackground()); Utility.setDescription(infoPane, PropertyFactory.getString("in_sumAny_requirements_you_don__t_meet_are_in_italics._137")); //$NON-NLS-1$ JPanel pane2 = new JPanel(); pane2.add(scrol2); TitledBorder title2 = BorderFactory.createTitledBorder(PropertyFactory.getString("in_infoString")); //$NON-NLS-1$ title2.setTitleJustification(TitledBorder.CENTER); pane2.setBorder(title2); pane2.setLayout(new BoxLayout(pane2, BoxLayout.X_AXIS)); Utility.buildConstraints(c, 5, 0, 1, 5, 9, 0); c.fill = GridBagConstraints.BOTH; c.anchor = GridBagConstraints.CENTER; gridbag.setConstraints(pane2, c); northPanel.add(pane2); // Layout for the Classes table col = pcClassTable.getColumnModel().getColumn(COL_PCLEVEL); col.setPreferredWidth(15); pcClassTable.setColAlign(COL_PCLEVEL, SwingConstants.CENTER); Utility.buildConstraints(c, 5, 5, 1, 1, 0, 18); c.fill = GridBagConstraints.BOTH; c.anchor = GridBagConstraints.CENTER; JScrollPane scrollPane = new JScrollPane(pcClassTable); JPanel pane3 = new JPanel(); pane3.add(scrollPane); TitledBorder title3 = BorderFactory.createTitledBorder(PropertyFactory.getString("in_classesString")); //$NON-NLS-1$ title3.setTitleJustification(TitledBorder.CENTER); pane3.setBorder(title3); pane3.setLayout(new BoxLayout(pane3, BoxLayout.X_AXIS)); gridbag.setConstraints(pane3, c); northPanel.add(pane3); // Abilities button if (!SettingsHandler.isAbilitiesShownAsATab()) { Utility.buildConstraints(c, 5, 6, 1, 1, 0, 0); c.fill = GridBagConstraints.NONE; c.anchor = GridBagConstraints.CENTER; abilitiesButton = new JButton(PropertyFactory.getString("in_specialabilities")); //$NON-NLS-1$ gridbag.setConstraints(abilitiesButton, c); northPanel.add(abilitiesButton); abilitiesFrame.getContentPane().setLayout(new BorderLayout()); abilitiesFrame.getContentPane().add(infoSpecialAbilities, BorderLayout.CENTER); JPanel cPanel = new JPanel(); cPanel.setLayout(new FlowLayout()); JButton closeButton = new JButton(PropertyFactory.getString("in_close")); //$NON-NLS-1$ closeButton.setMnemonic(PropertyFactory.getMnemonic("in_mn_close")); //$NON-NLS-1$ closeButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { abilitiesFrame.setVisible(false); PCGen_Frame1.getCharacterPane().refreshToDosAsync(); } }); cPanel.add(closeButton); abilitiesFrame.getContentPane().add(cPanel, BorderLayout.SOUTH); ClassLoader loader = getClass().getClassLoader(); Toolkit kit = Toolkit.getDefaultToolkit(); // according to the API, the following should *ALWAYS* use '/' Image img = kit.getImage(loader.getResource("pcgen/gui/resource/PcgenIcon.gif")); //$NON-NLS-1$ loader = null; abilitiesFrame.setIconImage(img); } // Layout the stats pane statPane.setBackground(northPanel.getBackground()); statPane.setContentType("text/html"); //$NON-NLS-1$ statPane.setText(""); //$NON-NLS-1$ statPane.setEditable(false); JScrollPane statsScroll = new JScrollPane(); statsScroll.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED); statsScroll.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED); statsScroll.setViewportView(statPane); statsScroll.getViewport().setScrollMode(JViewport.BLIT_SCROLL_MODE); statsScroll.setBackground(new Color(255, 255, 255)); JPanel pane4 = new JPanel(); pane4.add(statsScroll); TitledBorder title4 = BorderFactory.createTitledBorder(PropertyFactory.getString("in_statsString")); //$NON-NLS-1$ title4.setTitleJustification(TitledBorder.CENTER); pane4.setBorder(title4); pane4.setLayout(new BoxLayout(pane4, BoxLayout.Y_AXIS)); Utility.buildConstraints(c, 5, 7, 1, 1, 0, 0); c.fill = GridBagConstraints.BOTH; c.anchor = GridBagConstraints.CENTER; gridbag.setConstraints(pane4, c); northPanel.add(pane4); this.setLayout(new BorderLayout()); this.add(northPanel, BorderLayout.CENTER); addComponentListener(new ComponentAdapter() { public void componentShown(ComponentEvent evt) { formComponentShown(); } public void componentHidden(ComponentEvent evt) { formComponentHidden(); } }); addFocusListener(new FocusAdapter() { public void focusGained(FocusEvent evt) { refresh(); } }); }
|
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/82a181802361e654587abbe979f0f2cabe9a9c7c/InfoSummary.java/clean/code/src/java/pcgen/gui/tabs/InfoSummary.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1208,
7171,
1435,
202,
95,
202,
202,
1672,
1290,
8323,
273,
638,
31,
202,
202,
759,
9995,
326,
3177,
1014,
202,
202,
46,
26360,
610,
26360,
273,
394,
804,
26360,
5621,
202,
202,
5642,
1388,
273,
394,
804,
1388,
424,
5621,
202,
202,
5642,
1388,
18,
458,
1227,
1396,
2932,
30017,
4666,
1398,
9233,
19024,
3113,
3411,
18,
18724,
1769,
202,
202,
5642,
1388,
18,
542,
1488,
12,
5642,
1388,
1488,
1769,
202,
202,
5642,
1388,
18,
542,
6233,
2309,
12,
682,
6233,
1488,
18,
20184,
67,
1090,
15445,
1769,
202,
202,
5642,
1388,
18,
1289,
9186,
2223,
12,
2704,
17013,
4216,
1435,
1082,
202,
95,
9506,
202,
482,
918,
7644,
27633,
12,
9186,
1133,
6324,
13,
9506,
202,
95,
6862,
202,
5642,
1388,
9186,
27633,
12,
73,
11734,
1769,
9506,
202,
97,
1082,
202,
22938,
202,
202,
542,
5000,
1388,
1494,
1386,
2556,
12,
28549,
67,
11009,
16,
8063,
16,
26145,
2918,
18,
10066,
1769,
202,
202,
1388,
1494,
645,
273,
444,
5000,
1388,
1494,
1386,
2556,
12,
8369,
67,
11009,
16,
5196,
16,
26145,
2918,
18,
19835,
1769,
202,
202,
430,
261,
1293,
480,
446,
13,
202,
202,
95,
1082,
202,
759,
7736,
279,
4955,
977,
652,
2674,
358,
1954,
364,
12321,
18,
1082,
202,
759,
18298,
4020,
6946,
1678,
326,
7155,
358,
326,
1794,
1492,
1082,
202,
759,
4025,
87,
326,
16219,
501,
364,
1879,
17,
14345,
18,
1082,
202,
46,
18298,
16157,
652,
273,
394,
804,
18298,
16157,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1208,
7171,
1435,
202,
95,
202,
202,
1672,
1290,
8323,
273,
638,
31,
202,
202,
759,
9995,
326,
3177,
1014,
202,
202,
46,
26360,
610,
26360,
273,
394,
804,
26360,
5621,
202,
202,
5642,
1388,
273,
394,
804,
1388,
424,
5621,
202,
202,
5642,
1388,
18,
458,
1227,
1396,
2932,
30017,
4666,
1398,
9233,
19024,
3113,
3411,
18,
18724,
1769,
202,
202,
5642,
1388,
18,
542,
1488,
12,
5642,
1388,
1488,
1769,
202,
202,
5642,
1388,
18,
542,
6233,
2309,
12,
682,
6233,
1488,
18,
20184,
67,
1090,
15445,
1769,
202,
202,
5642,
1388,
18,
1289,
9186,
2223,
12,
2704,
17013,
4216,
1435,
1082,
202,
95,
9506,
202,
482,
918,
7644,
27633,
12,
9186,
1133,
2
] |
LinkedList list = new LinkedList();
|
List list = new ArrayList();
|
public void run() { synchronized (JmDNS.this) { if (state == DNSState.CANCELED) { return; } if (debug > 3) { System.out.println("JmDNS reaping cache"); } // Remove expired answers from the cache // ------------------------------------- // To prevent race conditions, we defensively copy all cache // entries into a list. LinkedList list = new LinkedList(); synchronized (cache) { for (Iterator i = cache.all() ; i.hasNext() ;) { for (DNSCache.CacheNode n = (DNSCache.CacheNode) i.next(); n != null; n = n.next()) { list.add(n.getValue()); } } } // Now, we remove them. long now = System.currentTimeMillis(); for (Iterator i = list.iterator() ; i.hasNext() ; ) { DNSRecord c = (DNSRecord) i.next(); if (c.isExpired(now)) { updateRecord(now, c); cache.remove(c); } } } }
|
2281 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2281/3fae35de8c4ce868da36396d46828869c5809036/JmDNS.java/clean/jmdns/src/javax/jmdns/JmDNS.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
5411,
3852,
261,
46,
81,
11602,
18,
2211,
13,
288,
7734,
309,
261,
2019,
422,
8858,
1119,
18,
39,
4722,
6687,
13,
288,
10792,
327,
31,
7734,
289,
7734,
309,
261,
4148,
405,
890,
13,
288,
10792,
2332,
18,
659,
18,
8222,
2932,
46,
81,
11602,
283,
24447,
1247,
8863,
7734,
289,
7734,
368,
3581,
7708,
12415,
628,
326,
1247,
7734,
368,
19134,
553,
7734,
368,
2974,
5309,
17996,
4636,
16,
732,
1652,
773,
4492,
1610,
777,
1247,
7734,
368,
3222,
1368,
279,
666,
18,
7734,
987,
666,
273,
394,
2407,
5621,
7734,
3852,
261,
2493,
13,
288,
10792,
364,
261,
3198,
277,
273,
1247,
18,
454,
1435,
274,
277,
18,
5332,
2134,
1435,
274,
13,
288,
13491,
364,
261,
11602,
1649,
18,
1649,
907,
290,
273,
261,
11602,
1649,
18,
1649,
907,
13,
277,
18,
4285,
5621,
290,
480,
446,
31,
290,
273,
290,
18,
4285,
10756,
288,
18701,
666,
18,
1289,
12,
82,
18,
24805,
10663,
13491,
289,
10792,
289,
7734,
289,
7734,
368,
4494,
16,
732,
1206,
2182,
18,
7734,
1525,
2037,
273,
2332,
18,
2972,
28512,
5621,
7734,
364,
261,
3198,
277,
273,
666,
18,
9838,
1435,
274,
277,
18,
5332,
2134,
1435,
274,
262,
288,
10792,
8858,
2115,
276,
273,
261,
11602,
2115,
13,
277,
18,
4285,
5621,
10792,
309,
261,
71,
18,
291,
10556,
12,
3338,
3719,
288,
13491,
1089,
2115,
12,
3338,
16,
276,
1769,
13491,
1247,
18,
4479,
12,
71,
1769,
10792,
289,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
5411,
3852,
261,
46,
81,
11602,
18,
2211,
13,
288,
7734,
309,
261,
2019,
422,
8858,
1119,
18,
39,
4722,
6687,
13,
288,
10792,
327,
31,
7734,
289,
7734,
309,
261,
4148,
405,
890,
13,
288,
10792,
2332,
18,
659,
18,
8222,
2932,
46,
81,
11602,
283,
24447,
1247,
8863,
7734,
289,
7734,
368,
3581,
7708,
12415,
628,
326,
1247,
7734,
368,
19134,
553,
7734,
368,
2974,
5309,
17996,
4636,
16,
732,
1652,
773,
4492,
1610,
777,
1247,
7734,
368,
3222,
1368,
279,
666,
18,
7734,
987,
666,
273,
394,
2407,
5621,
7734,
3852,
261,
2493,
13,
288,
10792,
364,
261,
3198,
277,
273,
1247,
18,
454,
1435,
274,
277,
18,
5332,
2134,
2
] |
"Error while getting the siblings for resource vfsName='" + resRootPath + "'",
|
"Error while getting the siblings for resource vfsName='" + resPath + "'",
|
private List getSiblingsList(CmsObject cms, String resRootPath) { List siblings = new ArrayList(); try { List li = cms.readSiblings(resRootPath, CmsResourceFilter.ALL); for (int i = 0, l = li.size(); i < l; i++) { String vfsName = ((CmsResource)li.get(i)).getRootPath(); siblings.add(vfsName); } } catch (CmsException e) { // ignore, nothing to do about this if (OpenCms.getLog(this).isWarnEnabled()) { OpenCms.getLog(this).warn( "Error while getting the siblings for resource vfsName='" + resRootPath + "'", e); } } return siblings; }
|
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/505e248a5535d56bf89e7d0693715ce6df4ceec9/A_CmsOnDemandStaticExportHandler.java/buggy/src/org/opencms/staticexport/A_CmsOnDemandStaticExportHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
987,
1322,
495,
11603,
682,
12,
4747,
921,
6166,
16,
514,
400,
21302,
13,
288,
3639,
987,
14692,
273,
394,
2407,
5621,
3639,
775,
288,
5411,
987,
4501,
273,
6166,
18,
896,
31555,
12,
455,
21302,
16,
21082,
18,
4685,
1769,
5411,
364,
261,
474,
277,
273,
374,
16,
328,
273,
4501,
18,
1467,
5621,
277,
411,
328,
31,
277,
27245,
288,
7734,
514,
20682,
461,
273,
14015,
4747,
1420,
13,
549,
18,
588,
12,
77,
13,
2934,
588,
21302,
5621,
7734,
14692,
18,
1289,
12,
90,
2556,
461,
1769,
5411,
289,
3639,
289,
1044,
261,
4747,
503,
425,
13,
288,
5411,
368,
2305,
16,
5083,
358,
741,
2973,
333,
5411,
309,
261,
3678,
4747,
18,
588,
1343,
12,
2211,
2934,
291,
3160,
1526,
10756,
288,
7734,
10319,
18,
588,
1343,
12,
2211,
2934,
8935,
12,
10792,
315,
668,
1323,
8742,
326,
14692,
364,
1058,
20682,
461,
13396,
397,
400,
743,
397,
2491,
3113,
10792,
425,
1769,
5411,
289,
3639,
289,
3639,
327,
14692,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
987,
1322,
495,
11603,
682,
12,
4747,
921,
6166,
16,
514,
400,
21302,
13,
288,
3639,
987,
14692,
273,
394,
2407,
5621,
3639,
775,
288,
5411,
987,
4501,
273,
6166,
18,
896,
31555,
12,
455,
21302,
16,
21082,
18,
4685,
1769,
5411,
364,
261,
474,
277,
273,
374,
16,
328,
273,
4501,
18,
1467,
5621,
277,
411,
328,
31,
277,
27245,
288,
7734,
514,
20682,
461,
273,
14015,
4747,
1420,
13,
549,
18,
588,
12,
77,
13,
2934,
588,
21302,
5621,
7734,
14692,
18,
1289,
12,
90,
2556,
461,
1769,
5411,
289,
3639,
289,
1044,
261,
4747,
503,
425,
13,
288,
5411,
368,
2305,
16,
5083,
358,
741,
2973,
333,
5411,
309,
261,
3678,
4747,
18,
588,
2
] |
attributes = new HashSet();
|
attributes = new FastStack(16);
|
public StatefulWriter(final HierarchicalStreamWriter wrapped) { super(wrapped); attributes = new HashSet(); }
|
5142 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5142/c7449c468cc1d8039490ac895c5e9387bccac4fb/StatefulWriter.java/buggy/xstream/src/java/com/thoughtworks/xstream/io/StatefulWriter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3287,
2706,
2289,
12,
6385,
28267,
29421,
5805,
13,
288,
3639,
2240,
12,
18704,
1769,
3639,
1677,
273,
394,
9545,
2624,
12,
2313,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3287,
2706,
2289,
12,
6385,
28267,
29421,
5805,
13,
288,
3639,
2240,
12,
18704,
1769,
3639,
1677,
273,
394,
9545,
2624,
12,
2313,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
protected final double computeHeight( IDisplayServer xs, Label la )
|
public static final double computeHeight( IDisplayServer xs, Label la )
|
protected final double computeHeight( IDisplayServer xs, Label la ) { final FontDefinition fd = la.getCaption( ).getFont( ); final double dAngleInRadians = ( ( -fd.getRotation( ) * Math.PI ) / 180.0 ); final double dSineTheta = Math.abs( Math.sin( dAngleInRadians ) ); final double dCosTheta = Math.abs( Math.cos( dAngleInRadians ) ); final ITextMetrics itm = xs.getTextMetrics( la ); double dH = itm.getFullWidth( ) * dSineTheta + itm.getFullHeight( ) * dCosTheta; itm.dispose( ); return dH; }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/20bb7679d106e8105100c095c900612d5a37a46d/Methods.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/Methods.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
1645,
3671,
2686,
12,
1599,
291,
1601,
2081,
9280,
16,
5287,
7125,
262,
202,
95,
202,
202,
6385,
10063,
1852,
5194,
273,
7125,
18,
588,
21158,
12,
262,
18,
588,
5711,
12,
11272,
202,
202,
6385,
1645,
302,
8467,
382,
25140,
273,
261,
261,
300,
8313,
18,
588,
14032,
12,
262,
380,
2361,
18,
1102,
262,
342,
9259,
18,
20,
11272,
202,
202,
6385,
1645,
302,
55,
558,
31189,
273,
2361,
18,
5113,
12,
2361,
18,
21861,
12,
302,
8467,
382,
25140,
262,
11272,
202,
202,
6385,
1645,
302,
39,
538,
31189,
273,
2361,
18,
5113,
12,
2361,
18,
14445,
12,
302,
8467,
382,
25140,
262,
11272,
202,
202,
6385,
467,
1528,
5653,
23907,
273,
9280,
18,
588,
1528,
5653,
12,
7125,
11272,
202,
202,
9056,
302,
44,
273,
23907,
18,
588,
5080,
2384,
12,
262,
9506,
202,
14,
302,
55,
558,
31189,
9506,
202,
15,
23907,
18,
588,
5080,
2686,
12,
262,
9506,
202,
14,
302,
39,
538,
31189,
31,
202,
202,
305,
81,
18,
2251,
4150,
12,
11272,
202,
202,
2463,
302,
44,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
1645,
3671,
2686,
12,
1599,
291,
1601,
2081,
9280,
16,
5287,
7125,
262,
202,
95,
202,
202,
6385,
10063,
1852,
5194,
273,
7125,
18,
588,
21158,
12,
262,
18,
588,
5711,
12,
11272,
202,
202,
6385,
1645,
302,
8467,
382,
25140,
273,
261,
261,
300,
8313,
18,
588,
14032,
12,
262,
380,
2361,
18,
1102,
262,
342,
9259,
18,
20,
11272,
202,
202,
6385,
1645,
302,
55,
558,
31189,
273,
2361,
18,
5113,
12,
2361,
18,
21861,
12,
302,
8467,
382,
25140,
262,
11272,
202,
202,
6385,
1645,
302,
39,
538,
31189,
273,
2361,
18,
5113,
12,
2361,
18,
14445,
12,
302,
8467,
382,
25140,
262,
11272,
202,
202,
6385,
467,
1528,
5653,
23907,
273,
2
] |
String msg = "Invalid XML Character in element " + attr.getNodeName() ; reportDOMError(msg, DOMError.SEVERITY_ERROR, null, "wf-invalid-character"); }
|
String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "wf-invalid-character-in-node-name", new Object[]{"Attribute", attr.getNodeName()}); reportDOMError(msg, DOMError.SEVERITY_ERROR, null, "wf-invalid-character-in-node-name"); }
|
protected final void namespaceFixUp (ElementImpl element, AttributeMap attributes){ if (DEBUG) { System.out.println("[ns-fixup] element:" +element.getNodeName()+ " uri: "+element.getNamespaceURI()); } // ------------------------------------ // pick up local namespace declarations // <xsl:stylesheet xmlns:xsl="http://xslt"> // <!-- add the following via DOM // body is bound to http://xslt // --> // <xsl:body xmlns:xsl="http://bound"/> // // ------------------------------------ String value, name, uri, prefix; if (attributes != null) { // Record all valid local declarations for (int k=0; k < attributes.getLength(); k++) { Attr attr = (Attr)attributes.getItem(k); //do the name check only when version of the document was changed & //application has set the value of well-formed features to true if ( ((fConfiguration.features & DOMConfigurationImpl.WELLFORMED) != 0) && fDocument.isXMLVersionChanged()){ //checkQName does checking based on the version of the document fDocument.checkQName(attr.getPrefix() , attr.getLocalName()) ; } uri = attr.getNamespaceURI(); if (uri != null && uri.equals(NamespaceContext.XMLNS_URI)) { // namespace attribute value = attr.getNodeValue(); if (value == null) { value=XMLSymbols.EMPTY_STRING; } // Check for invalid namespace declaration: if (value.equals(NamespaceContext.XMLNS_URI)) { reportDOMError("No prefix other than 'xmlns' can be bound to 'http://www.w3.org/2000/xmlns/' namespace name", DOMError.SEVERITY_ERROR, attr, null); } else { // XML 1.0 Attribute value normalization // value = normalizeAttributeValue(value, attr); prefix = attr.getPrefix(); prefix = (prefix == null || prefix.length() == 0) ? XMLSymbols.EMPTY_STRING :fSymbolTable.addSymbol(prefix); String localpart = fSymbolTable.addSymbol( attr.getLocalName()); if (prefix == XMLSymbols.PREFIX_XMLNS) { //xmlns:prefix value = fSymbolTable.addSymbol(value); if (value.length() != 0) { fNamespaceContext.declarePrefix(localpart, value); } else { // REVISIT: issue error on invalid declarations // xmlns:foo = "" } //removeDefault (attr, attributes); continue; } else { // (localpart == fXmlnsSymbol && prefix == fEmptySymbol) -- xmlns // empty prefix is always bound ("" or some string) value = fSymbolTable.addSymbol(value); fNamespaceContext.declarePrefix(XMLSymbols.EMPTY_STRING, value); //removeDefault (attr, attributes); continue; } } // end-else: valid declaration } // end-if: namespace attribute } } // --------------------------------------------------------- // Fix up namespaces for element: per DOM L3 // Need to consider the following cases: // // case 1: <xsl:stylesheet xmlns:xsl="http://xsl"> // We create another element body bound to the "http://xsl" namespace // as well as namespace attribute rebounding xsl to another namespace. // <xsl:body xmlns:xsl="http://another"> // Need to make sure that the new namespace decl value is changed to // "http://xsl" // // --------------------------------------------------------- // check if prefix/namespace is correct for current element // --------------------------------------------------------- uri = element.getNamespaceURI(); prefix = element.getPrefix(); if (uri != null) { // Element has a namespace uri = fSymbolTable.addSymbol(uri); prefix = (prefix == null || prefix.length() == 0) ? XMLSymbols.EMPTY_STRING :fSymbolTable.addSymbol(prefix); if (fNamespaceContext.getURI(prefix) == uri) { // The xmlns:prefix=namespace or xmlns="default" was declared at parent. // The binder always stores mapping of empty prefix to "". } else { // the prefix is either undeclared // or // conflict: the prefix is bound to another URI addNamespaceDecl(prefix, uri, element); fLocalNSBinder.declarePrefix(prefix, uri); fNamespaceContext.declarePrefix(prefix, uri); } } else { // Element has no namespace if (element.getLocalName() == null) { // Error: DOM Level 1 node! if (fNamespaceValidation) { reportDOMError("DOM Level 1 node: "+element.getNodeName(), DOMError.SEVERITY_FATAL_ERROR, element, null); } else { reportDOMError("DOM Level 1 node: "+element.getNodeName(), DOMError.SEVERITY_ERROR, element, null); } } else { // uri=null and no colon (DOM L2 node) uri = fNamespaceContext.getURI(XMLSymbols.EMPTY_STRING); if (uri !=null && uri.length() > 0) { // undeclare default namespace declaration (before that element // bound to non-zero length uir), but adding xmlns="" decl addNamespaceDecl (XMLSymbols.EMPTY_STRING, XMLSymbols.EMPTY_STRING, element); fLocalNSBinder.declarePrefix(XMLSymbols.EMPTY_STRING, XMLSymbols.EMPTY_STRING); fNamespaceContext.declarePrefix(XMLSymbols.EMPTY_STRING, XMLSymbols.EMPTY_STRING); } } } // ----------------------------------------- // Fix up namespaces for attributes: per DOM L3 // check if prefix/namespace is correct the attributes // ----------------------------------------- if (attributes != null) { // clone content of the attributes attributes.cloneMap(fAttributeList); for (int i = 0; i < fAttributeList.size(); i++) { Attr attr = (Attr) fAttributeList.elementAt(i); if (DEBUG) { System.out.println("==>[ns-fixup] process attribute: "+attr.getNodeName()); } // normalize attribute value attr.normalize(); value = attr.getValue(); name = attr.getNodeName(); uri = attr.getNamespaceURI(); // make sure that value is never null. if (value == null) { value=XMLSymbols.EMPTY_STRING; } if (uri != null) { // attribute has namespace !=null prefix = attr.getPrefix(); prefix = (prefix == null || prefix.length() == 0) ? XMLSymbols.EMPTY_STRING :fSymbolTable.addSymbol(prefix); /*String localpart =*/ fSymbolTable.addSymbol( attr.getLocalName()); // --------------------------------------- // skip namespace declarations // --------------------------------------- // REVISIT: can we assume that "uri" is from some symbol // table, and compare by reference? -SG if (uri != null && uri.equals(NamespaceContext.XMLNS_URI)) { continue; } //--------------------------------------- // check if value of the attribute is namespace well-formed //--------------------------------------- if ( ((fConfiguration.features & DOMConfigurationImpl.WELLFORMED) != 0)){ isAttrValueWF(attributes, (AttrImpl)attr, attr.getValue()); if (fDocument.isXMLVersionChanged()){ boolean wellformed=CoreDocumentImpl.isXMLName(attr.getNodeName() , fDocument.isXML11Version()); if (!wellformed){ if (fErrorHandler != null) { String msg = "Invalid XML Character in element " + attr.getNodeName() ; reportDOMError(msg, DOMError.SEVERITY_ERROR, null, "wf-invalid-character"); } } } } // --------------------------------------- // remove default attributes // --------------------------------------- /* if (removeDefault(attr, attributes)) { continue; } */ // XML 1.0 Attribute value normalization //value = normalizeAttributeValue(value, attr); // reset id-attributes ((AttrImpl)attr).setIdAttribute(false); uri = fSymbolTable.addSymbol(uri); // find if for this prefix a URI was already declared String declaredURI = fNamespaceContext.getURI(prefix); if (prefix == XMLSymbols.EMPTY_STRING || declaredURI != uri) { // attribute has no prefix (default namespace decl does not apply to attributes) // OR // attribute prefix is not declared // OR // conflict: attribute has a prefix that conficlicts with a binding // already active in scope name = attr.getNodeName(); // Find if any prefix for attributes namespace URI is available // in the scope String declaredPrefix = fNamespaceContext.getPrefix(uri); if (declaredPrefix !=null && declaredPrefix !=XMLSymbols.EMPTY_STRING) { // use the prefix that was found (declared previously for this URI prefix = declaredPrefix; } else { if (prefix != XMLSymbols.EMPTY_STRING && fLocalNSBinder.getURI(prefix) == null) { // the current prefix is not null and it has no in scope declaration // use this prefix } else { // find a prefix following the pattern "NS" +index (starting at 1) // make sure this prefix is not declared in the current scope. int counter = 1; prefix = fSymbolTable.addSymbol(PREFIX +counter++); while (fLocalNSBinder.getURI(prefix)!=null) { prefix = fSymbolTable.addSymbol(PREFIX +counter++); } } // add declaration for the new prefix addNamespaceDecl(prefix, uri, element); value = fSymbolTable.addSymbol(value); fLocalNSBinder.declarePrefix(prefix, value); fNamespaceContext.declarePrefix(prefix, uri); } // change prefix for this attribute attr.setPrefix(prefix); } } else { // attribute uri == null // XML 1.0 Attribute value normalization //value = normalizeAttributeValue(value, attr); // reset id-attributes ((AttrImpl)attr).setIdAttribute(false); if (attr.getLocalName() == null) { // It is an error if document has DOM L1 nodes. if (fNamespaceValidation) { reportDOMError("DOM Level 1 node: "+name, DOMError.SEVERITY_FATAL_ERROR, attr, null); } else { reportDOMError("DOM Level 1 node: "+name, DOMError.SEVERITY_ERROR, attr, null ); } } else { // uri=null and no colon // no fix up is needed: default namespace decl does not // --------------------------------------- // remove default attributes // --------------------------------------- // removeDefault(attr, attributes); } } } } // end loop for attributes }
|
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/dd58c3180e9d267ce284e97d490469abdf0966ef/DOMNormalizer.java/clean/src/org/apache/xerces/dom/DOMNormalizer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
727,
918,
1981,
8585,
1211,
261,
1046,
2828,
930,
16,
3601,
863,
1677,
15329,
3639,
309,
261,
9394,
13,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
63,
2387,
17,
904,
416,
65,
930,
2773,
397,
2956,
18,
588,
18948,
1435,
15,
1171,
9079,
315,
2003,
30,
13773,
2956,
18,
588,
3402,
3098,
10663,
3639,
289,
3639,
368,
19134,
6062,
3639,
368,
6002,
731,
1191,
1981,
12312,
3639,
368,
411,
30903,
30,
19403,
12302,
30,
30903,
1546,
2505,
2207,
92,
14414,
6441,
3639,
368,
282,
5719,
413,
527,
326,
3751,
3970,
4703,
540,
368,
1850,
1417,
353,
2489,
358,
1062,
2207,
92,
14414,
3639,
368,
565,
15431,
3639,
368,
282,
411,
30903,
30,
3432,
12302,
30,
30903,
1546,
2505,
2207,
3653,
6,
21259,
3639,
368,
3639,
368,
19134,
6062,
3639,
514,
460,
16,
508,
16,
2003,
16,
1633,
31,
3639,
309,
261,
4350,
480,
446,
13,
288,
5411,
368,
5059,
777,
923,
1191,
12312,
5411,
364,
261,
474,
417,
33,
20,
31,
417,
411,
1677,
18,
588,
1782,
5621,
417,
27245,
288,
7734,
11289,
1604,
273,
261,
3843,
13,
4350,
18,
588,
1180,
12,
79,
1769,
1171,
9079,
368,
2896,
326,
508,
866,
1338,
1347,
1177,
434,
326,
1668,
1703,
3550,
473,
7734,
368,
3685,
711,
444,
326,
460,
434,
5492,
17,
7312,
4467,
358,
638,
7734,
309,
261,
14015,
74,
1750,
18,
7139,
473,
4703,
1750,
2828,
18,
59,
21943,
7473,
25773,
13,
480,
374,
13,
597,
5397,
284,
2519,
18,
291,
4201,
1444,
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,
727,
918,
1981,
8585,
1211,
261,
1046,
2828,
930,
16,
3601,
863,
1677,
15329,
3639,
309,
261,
9394,
13,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
63,
2387,
17,
904,
416,
65,
930,
2773,
397,
2956,
18,
588,
18948,
1435,
15,
1171,
9079,
315,
2003,
30,
13773,
2956,
18,
588,
3402,
3098,
10663,
3639,
289,
3639,
368,
19134,
6062,
3639,
368,
6002,
731,
1191,
1981,
12312,
3639,
368,
411,
30903,
30,
19403,
12302,
30,
30903,
1546,
2505,
2207,
92,
14414,
6441,
3639,
368,
282,
5719,
413,
527,
326,
3751,
3970,
4703,
540,
368,
1850,
1417,
353,
2489,
358,
1062,
2207,
92,
14414,
3639,
368,
565,
15431,
3639,
368,
282,
411,
30903,
30,
3432,
12302,
30,
30903,
2
] |
if (toBuild.size() < 2) return resourceCollection;
|
if (toBuild.size() < 2) { return resourceCollection; }
|
List pruneResources(List resourceCollection) { //recursively compute project prerequisites HashSet toBuild = new HashSet(); for (Iterator it = resourceCollection.iterator(); it.hasNext();) addAllProjects((IProject) it.next(), toBuild); // Optimize... if (toBuild.size() < 2) return resourceCollection; // Try the workspace's description build order if specified String[] orderedNames = ResourcesPlugin.getWorkspace().getDescription() .getBuildOrder(); if (orderedNames != null) { List orderedProjects = new ArrayList(toBuild.size()); IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot(); for (int i = 0; i < orderedNames.length; i++) { IProject handle = root.getProject(orderedNames[i]); if (toBuild.contains(handle)) { orderedProjects.add(handle); toBuild.remove(handle); } } //Add anything not specified before we return orderedProjects.addAll(toBuild); return orderedProjects; } // Try the project prerequisite order then IProject[] projects = new IProject[toBuild.size()]; projects = (IProject[]) toBuild.toArray(projects); IWorkspace.ProjectOrder po = ResourcesPlugin.getWorkspace() .computeProjectOrder(projects); ArrayList orderedProjects = new ArrayList(); orderedProjects.addAll(Arrays.asList(po.projects)); return orderedProjects; }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/BuildAction.java/clean/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/BuildAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
987,
13293,
3805,
12,
682,
1058,
2532,
13,
288,
3639,
368,
266,
6235,
3671,
1984,
30328,
16608,
2997,
3639,
6847,
358,
3116,
273,
394,
6847,
5621,
3639,
364,
261,
3198,
518,
273,
1058,
2532,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
13,
5411,
5428,
15298,
12443,
45,
4109,
13,
518,
18,
4285,
9334,
358,
3116,
1769,
3639,
368,
12056,
10153,
2777,
3639,
309,
261,
869,
3116,
18,
1467,
1435,
411,
576,
13,
5411,
327,
1058,
2532,
31,
3639,
368,
6161,
326,
6003,
1807,
2477,
1361,
1353,
309,
1269,
3639,
514,
8526,
5901,
1557,
273,
8128,
3773,
18,
588,
8241,
7675,
588,
3291,
1435,
7734,
263,
588,
3116,
2448,
5621,
3639,
309,
261,
9885,
1557,
480,
446,
13,
288,
5411,
987,
5901,
15298,
273,
394,
2407,
12,
869,
3116,
18,
1467,
10663,
5411,
467,
8241,
2375,
1365,
273,
8128,
3773,
18,
588,
8241,
7675,
588,
2375,
5621,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
5901,
1557,
18,
2469,
31,
277,
27245,
288,
7734,
467,
4109,
1640,
273,
1365,
18,
588,
4109,
12,
9885,
1557,
63,
77,
19226,
7734,
309,
261,
869,
3116,
18,
12298,
12,
4110,
3719,
288,
10792,
5901,
15298,
18,
1289,
12,
4110,
1769,
10792,
358,
3116,
18,
4479,
12,
4110,
1769,
7734,
289,
5411,
289,
5411,
368,
986,
6967,
486,
1269,
1865,
732,
327,
5411,
5901,
15298,
18,
1289,
1595,
12,
869,
3116,
1769,
5411,
327,
5901,
15298,
31,
3639,
289,
3639,
368,
6161,
326,
1984,
30328,
16608,
1137,
1353,
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,
987,
13293,
3805,
12,
682,
1058,
2532,
13,
288,
3639,
368,
266,
6235,
3671,
1984,
30328,
16608,
2997,
3639,
6847,
358,
3116,
273,
394,
6847,
5621,
3639,
364,
261,
3198,
518,
273,
1058,
2532,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
13,
5411,
5428,
15298,
12443,
45,
4109,
13,
518,
18,
4285,
9334,
358,
3116,
1769,
3639,
368,
12056,
10153,
2777,
3639,
309,
261,
869,
3116,
18,
1467,
1435,
411,
576,
13,
5411,
327,
1058,
2532,
31,
3639,
368,
6161,
326,
6003,
1807,
2477,
1361,
1353,
309,
1269,
3639,
514,
8526,
5901,
1557,
273,
8128,
3773,
18,
588,
8241,
7675,
588,
3291,
1435,
7734,
263,
588,
3116,
2448,
5621,
3639,
309,
261,
9885,
1557,
480,
446,
13,
2
] |
if(i.compareTo(list.head()) < 0) {
|
if(i.compareTo(list.head()) <= 0) {
|
public synchronized void add(UpdatableSortedLinkedListItem i) { Logger.minor(this, "Add("+i+") on "+this); if(list.isEmpty()) { list.push(i); return; } if(i.compareTo(list.tail()) == 0) return; if(i.compareTo(list.tail()) > 0) { list.push(i); return; } if(i.compareTo(list.head()) < 0) { list.unshift(i); return; } // Search the list for a good place to put it Enumeration e = list.elements(); UpdatableSortedLinkedListItem prev = null; while(e.hasMoreElements()) { UpdatableSortedLinkedListItem cur = (UpdatableSortedLinkedListItem) e.nextElement(); if(prev != null && cur.compareTo(i) > 0 && prev.compareTo(i) < 0) { list.insertNext(prev, i); return; } Logger.minor(this, "Not matching "+cur+" "+prev); prev = cur; } throw new IllegalStateException("impossible"); }
|
50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/8707969864a8fc5c76b305d6a9b5438889fcb044/UpdatableSortedLinkedList.java/buggy/src/freenet/support/UpdatableSortedLinkedList.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
527,
12,
1211,
3404,
429,
11739,
13174,
13575,
277,
13,
288,
3639,
4242,
18,
17364,
12,
2211,
16,
315,
986,
2932,
15,
77,
15,
7923,
603,
13773,
2211,
1769,
3639,
309,
12,
1098,
18,
291,
1921,
10756,
288,
5411,
666,
18,
6206,
12,
77,
1769,
5411,
327,
31,
3639,
289,
3639,
309,
12,
77,
18,
9877,
774,
12,
1098,
18,
13101,
10756,
422,
374,
13,
327,
31,
3639,
309,
12,
77,
18,
9877,
774,
12,
1098,
18,
13101,
10756,
405,
374,
13,
288,
5411,
666,
18,
6206,
12,
77,
1769,
5411,
327,
31,
3639,
289,
3639,
309,
12,
77,
18,
9877,
774,
12,
1098,
18,
1978,
10756,
1648,
374,
13,
288,
5411,
666,
18,
13858,
12,
77,
1769,
5411,
327,
31,
3639,
289,
3639,
368,
5167,
326,
666,
364,
279,
7494,
3166,
358,
1378,
518,
3639,
13864,
425,
273,
666,
18,
6274,
5621,
3639,
1948,
3404,
429,
11739,
13174,
13575,
2807,
273,
446,
31,
3639,
1323,
12,
73,
18,
5332,
7417,
3471,
10756,
288,
5411,
1948,
3404,
429,
11739,
13174,
13575,
662,
273,
1171,
261,
1211,
3404,
429,
11739,
13174,
13575,
13,
425,
18,
4285,
1046,
5621,
5411,
309,
12,
10001,
480,
446,
597,
662,
18,
9877,
774,
12,
77,
13,
405,
374,
597,
2807,
18,
9877,
774,
12,
77,
13,
411,
374,
13,
288,
7734,
666,
18,
6387,
2134,
12,
10001,
16,
277,
1769,
7734,
327,
31,
5411,
289,
5411,
4242,
18,
17364,
12,
2211,
16,
315,
1248,
3607,
13773,
1397,
9078,
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,
3852,
918,
527,
12,
1211,
3404,
429,
11739,
13174,
13575,
277,
13,
288,
3639,
4242,
18,
17364,
12,
2211,
16,
315,
986,
2932,
15,
77,
15,
7923,
603,
13773,
2211,
1769,
3639,
309,
12,
1098,
18,
291,
1921,
10756,
288,
5411,
666,
18,
6206,
12,
77,
1769,
5411,
327,
31,
3639,
289,
3639,
309,
12,
77,
18,
9877,
774,
12,
1098,
18,
13101,
10756,
422,
374,
13,
327,
31,
3639,
309,
12,
77,
18,
9877,
774,
12,
1098,
18,
13101,
10756,
405,
374,
13,
288,
5411,
666,
18,
6206,
12,
77,
1769,
5411,
327,
31,
3639,
289,
3639,
309,
12,
77,
18,
9877,
774,
12,
1098,
18,
1978,
10756,
1648,
374,
13,
288,
5411,
666,
18,
13858,
2
] |
stringBuffer.append(TEXT_88);
|
stringBuffer.append(TEXT_93);
|
public String generate(Object argument) { StringBuffer stringBuffer = new StringBuffer(); GenNode genNode = (GenNode) ((Object[]) argument)[0];GenDiagram genDiagram = genNode.getDiagram();boolean useFlowLayout = !genNode.isListLayout(); stringBuffer.append(TEXT_1); String copyrightText = genDiagram.getEditorGen().getCopyrightText();if (copyrightText != null && copyrightText.trim().length() > 0) { stringBuffer.append(TEXT_2); stringBuffer.append(copyrightText.replaceAll("\n", "\n * ")); stringBuffer.append(TEXT_3); } stringBuffer.append(TEXT_4); stringBuffer.append(genDiagram.getEditPartsPackageName()); stringBuffer.append(TEXT_5); ImportUtil importManager = new ImportUtil(genDiagram.getEditPartsPackageName());importManager.addImport("org.eclipse.draw2d.BorderLayout");importManager.addImport("org.eclipse.draw2d.IFigure");importManager.addImport("org.eclipse.draw2d.StackLayout");importManager.addImport("org.eclipse.gef.EditPolicy");importManager.addImport("org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart");importManager.addImport("org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles");importManager.addImport("org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure");importManager.addImport("org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure");importManager.addImport("org.eclipse.gmf.runtime.notation.View");importManager.addImport("org.eclipse.emf.ecore.EAnnotation");importManager.addImport("org.eclipse.gmf.runtime.draw2d.ui.internal.figures.ImageFigureEx");importManager.markImportLocation(stringBuffer); stringBuffer.append(TEXT_6); stringBuffer.append(genNode.getEditPartClassName()); stringBuffer.append(TEXT_7); stringBuffer.append(genNode.getEditPartClassName()); stringBuffer.append(TEXT_8); boolean hasChildrenInListCompartments = false;for (Iterator compartments = genNode.getCompartments().iterator(); compartments.hasNext();) { GenCompartment compartment = (GenCompartment) compartments.next(); hasChildrenInListCompartments |= compartment.isListLayout() && !compartment.getChildNodes().isEmpty();}if (!genNode.getChildNodes().isEmpty() || hasChildrenInListCompartments) { stringBuffer.append(TEXT_9); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy")); stringBuffer.append(TEXT_10); if (hasChildrenInListCompartments) { stringBuffer.append(TEXT_11); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_12); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); stringBuffer.append(TEXT_13); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewAndElementRequest")); stringBuffer.append(TEXT_14); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.diagram.core.edithelpers.CreateElementRequestAdapter")); stringBuffer.append(TEXT_15); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewAndElementRequest")); stringBuffer.append(TEXT_16); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.emf.type.core.IElementType")); stringBuffer.append(TEXT_17); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.emf.type.core.IElementType")); stringBuffer.append(TEXT_18); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.emf.type.core.IElementType")); stringBuffer.append(TEXT_19); for (Iterator compartments = genNode.getCompartments().iterator(); compartments.hasNext();) { GenCompartment compartment = (GenCompartment) compartments.next(); if (compartment.isListLayout() && !compartment.getChildNodes().isEmpty()) { for (Iterator children = compartment.getChildNodes().iterator(); children.hasNext(); ) { GenNode child = (GenNode) children.next(); stringBuffer.append(TEXT_20); stringBuffer.append(importManager.getImportedName(genDiagram.getElementTypesQualifiedClassName())); stringBuffer.append(TEXT_21); stringBuffer.append(child.getUniqueIdentifier()); stringBuffer.append(TEXT_22); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_23); stringBuffer.append(importManager.getImportedName(genDiagram.getSemanticHintsQualifiedClassName())); stringBuffer.append(TEXT_24); stringBuffer.append(genNode.getUniqueIdentifier()); stringBuffer.append(TEXT_25); stringBuffer.append(compartment.getSemanticHintFieldName()); stringBuffer.append(TEXT_26); } } } stringBuffer.append(TEXT_27); } stringBuffer.append(TEXT_28); } stringBuffer.append(TEXT_29); stringBuffer.append(importManager.getImportedName(genNode.getItemSemanticEditPolicyQualifiedClassName())); stringBuffer.append(TEXT_30); stringBuffer.append(importManager.getImportedName(genNode.getGraphicalNodeEditPolicyQualifiedClassName())); stringBuffer.append(TEXT_31); if (!genNode.getChildNodes().isEmpty()) { stringBuffer.append(TEXT_32); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy")); stringBuffer.append(TEXT_33); } stringBuffer.append(TEXT_34); stringBuffer.append(importManager.getImportedName(genNode.getCanonicalEditPolicyQualifiedClassName())); stringBuffer.append(TEXT_35); if (useFlowLayout) { stringBuffer.append(TEXT_36); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.diagram.ui.editpolicies.XYLayoutEditPolicy")); stringBuffer.append(TEXT_37); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_38); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.diagram.ui.editpolicies.ResizableShapeEditPolicy")); stringBuffer.append(TEXT_39); } stringBuffer.append(TEXT_40); String figureQualifiedClassName = null;Viewmap viewmap = genNode.getViewmap();if (viewmap instanceof FigureViewmap) { figureQualifiedClassName = ((FigureViewmap) viewmap).getFigureQualifiedClassName(); if (figureQualifiedClassName == null || figureQualifiedClassName.trim().length() == 0) { figureQualifiedClassName = "org.eclipse.draw2d.RectangleFigure"; } stringBuffer.append(TEXT_41); stringBuffer.append(importManager.getImportedName(figureQualifiedClassName)); stringBuffer.append(TEXT_42); if (useFlowLayout) { stringBuffer.append(TEXT_43); } // use flow layout stringBuffer.append(TEXT_44); } // instanceof FigureViewmap else if (viewmap instanceof SnippetViewmap) { stringBuffer.append(TEXT_45); stringBuffer.append(((SnippetViewmap) viewmap).getBody()); stringBuffer.append(TEXT_46); } // instanceof SnippetViewmap; FIXME : obtain figure class name to generate getter else if (viewmap instanceof InnerClassViewmap) { figureQualifiedClassName = ((InnerClassViewmap) viewmap).getClassName(); stringBuffer.append(TEXT_47); stringBuffer.append(figureQualifiedClassName); stringBuffer.append(TEXT_48); stringBuffer.append(figureQualifiedClassName); stringBuffer.append(TEXT_49); stringBuffer.append(useFlowLayout ? "true" : "false"); stringBuffer.append(TEXT_50); } stringBuffer.append(TEXT_51); if (figureQualifiedClassName != null) { stringBuffer.append(TEXT_52); stringBuffer.append(figureQualifiedClassName); stringBuffer.append(TEXT_53); stringBuffer.append(figureQualifiedClassName); stringBuffer.append(TEXT_54); if (!genNode.getLabels().isEmpty()) { stringBuffer.append(TEXT_55); for (Iterator it = genNode.getLabels().iterator(); it.hasNext(); ) { GenNodeLabel genLabel = (GenNodeLabel) it.next(); String labelEditPart = importManager.getImportedName(genLabel.getEditPartQualifiedClassName()); String labelFigureClassName = null; if (genLabel.getViewmap() instanceof InnerClassViewmap) { labelFigureClassName = ((InnerClassViewmap) genLabel.getViewmap()).getClassName(); } stringBuffer.append(TEXT_56); stringBuffer.append(labelEditPart); stringBuffer.append(TEXT_57); stringBuffer.append(labelEditPart); stringBuffer.append(TEXT_58); stringBuffer.append(labelFigureClassName); stringBuffer.append(TEXT_59); } stringBuffer.append(TEXT_60); }} stringBuffer.append(TEXT_61); int width = 40;int height = 40;DefaultSizeAttributes defSizeAttrs = (DefaultSizeAttributes) genNode.getViewmap().find(DefaultSizeAttributes.class);if (defSizeAttrs != null) { width = defSizeAttrs.getWidth(); height = defSizeAttrs.getHeight();} stringBuffer.append(TEXT_62); stringBuffer.append(width); stringBuffer.append(TEXT_63); stringBuffer.append(height); stringBuffer.append(TEXT_64); stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getPlugin().getActivatorQualifiedClassName())); stringBuffer.append(TEXT_65); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Figure")); stringBuffer.append(TEXT_66); if (!useFlowLayout) { String layoutClassName = importManager.getImportedName("org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout"); stringBuffer.append(TEXT_67); stringBuffer.append(layoutClassName); stringBuffer.append(TEXT_68); stringBuffer.append(layoutClassName); stringBuffer.append(TEXT_69); } else {// Flow layout stringBuffer.append(TEXT_70); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.FreeformLayout")); stringBuffer.append(TEXT_71); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); stringBuffer.append(TEXT_72); } stringBuffer.append(TEXT_73); if (!genNode.getLabels().isEmpty()) { GenNodeLabel primaryLabel = (GenNodeLabel) genNode.getLabels().get(0); String semanticHintsClassName = importManager.getImportedName(genDiagram.getSemanticHintsQualifiedClassName()); String labelName = primaryLabel.getSemanticHintFieldName(); stringBuffer.append(TEXT_74); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_75); stringBuffer.append(semanticHintsClassName); stringBuffer.append(TEXT_76); stringBuffer.append(genNode.getUniqueIdentifier()); stringBuffer.append(TEXT_77); stringBuffer.append(labelName); stringBuffer.append(TEXT_78); }boolean hasExternalLabels = false;for (Iterator labels = genNode.getLabels().iterator(); labels.hasNext();) { GenNodeLabel label = (GenNodeLabel) labels.next(); if (label instanceof GenExternalNodeLabel) { hasExternalLabels = true; break; }}if (hasExternalLabels) { stringBuffer.append(TEXT_79); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_80); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); stringBuffer.append(TEXT_81); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_82); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); stringBuffer.append(TEXT_83); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_84); for (Iterator labels = genNode.getLabels().iterator(); labels.hasNext();) { GenNodeLabel label = (GenNodeLabel) labels.next(); if (label instanceof GenExternalNodeLabel) { stringBuffer.append(TEXT_85); stringBuffer.append(importManager.getImportedName(label.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_86); } } stringBuffer.append(TEXT_87); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramRootEditPart")); stringBuffer.append(TEXT_88); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramRootEditPart")); stringBuffer.append(TEXT_89); stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartFactoryQualifiedClassName())); stringBuffer.append(TEXT_90); }if (genNode.getViewmap() instanceof InnerClassViewmap) { stringBuffer.append(TEXT_91); stringBuffer.append(((InnerClassViewmap) genNode.getViewmap()).getClassBody()); } stringBuffer.append(TEXT_92); importManager.emitSortedImports(); stringBuffer.append(TEXT_93); return stringBuffer.toString(); }
|
7409 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7409/da864b3f258201073bcaadb599f14be265b46a36/NodeEditPartGenerator.java/clean/plugins/org.eclipse.gmf.codegen/src-templates/org/eclipse/gmf/codegen/templates/parts/NodeEditPartGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
2103,
12,
921,
1237,
13,
225,
288,
565,
6674,
533,
1892,
273,
394,
6674,
5621,
565,
10938,
907,
3157,
907,
273,
261,
7642,
907,
13,
14015,
921,
63,
5717,
1237,
25146,
20,
15533,
7642,
14058,
1940,
3157,
14058,
1940,
273,
3157,
907,
18,
588,
14058,
1940,
5621,
6494,
999,
5249,
3744,
273,
401,
4507,
907,
18,
291,
682,
3744,
5621,
565,
533,
1892,
18,
6923,
12,
5151,
67,
21,
1769,
565,
514,
22245,
1528,
273,
3157,
14058,
1940,
18,
588,
6946,
7642,
7675,
588,
2951,
4083,
1528,
5621,
430,
261,
29187,
1528,
480,
446,
597,
22245,
1528,
18,
5290,
7675,
2469,
1435,
405,
374,
13,
288,
565,
533,
1892,
18,
6923,
12,
5151,
67,
22,
1769,
565,
533,
1892,
18,
6923,
12,
29187,
1528,
18,
2079,
1595,
31458,
82,
3113,
1548,
82,
380,
9369,
1769,
565,
533,
1892,
18,
6923,
12,
5151,
67,
23,
1769,
565,
289,
565,
533,
1892,
18,
6923,
12,
5151,
67,
24,
1769,
565,
533,
1892,
18,
6923,
12,
4507,
14058,
1940,
18,
588,
4666,
4305,
18308,
10663,
565,
533,
1892,
18,
6923,
12,
5151,
67,
25,
1769,
565,
6164,
1304,
1930,
1318,
273,
394,
6164,
1304,
12,
4507,
14058,
1940,
18,
588,
4666,
4305,
18308,
10663,
5666,
1318,
18,
1289,
5010,
2932,
3341,
18,
20416,
18,
9446,
22,
72,
18,
8107,
3744,
8863,
5666,
1318,
18,
1289,
5010,
2932,
3341,
18,
20416,
18,
9446,
22,
72,
18,
5501,
15906,
8863,
5666,
1318,
18,
1289,
5010,
2932,
3341,
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,
514,
2103,
12,
921,
1237,
13,
225,
288,
565,
6674,
533,
1892,
273,
394,
6674,
5621,
565,
10938,
907,
3157,
907,
273,
261,
7642,
907,
13,
14015,
921,
63,
5717,
1237,
25146,
20,
15533,
7642,
14058,
1940,
3157,
14058,
1940,
273,
3157,
907,
18,
588,
14058,
1940,
5621,
6494,
999,
5249,
3744,
273,
401,
4507,
907,
18,
291,
682,
3744,
5621,
565,
533,
1892,
18,
6923,
12,
5151,
67,
21,
1769,
565,
514,
22245,
1528,
273,
3157,
14058,
1940,
18,
588,
6946,
7642,
7675,
588,
2951,
4083,
1528,
5621,
430,
261,
29187,
1528,
480,
446,
597,
22245,
1528,
18,
5290,
7675,
2469,
1435,
405,
374,
13,
288,
565,
533,
1892,
18,
6923,
12,
5151,
67,
22,
2
] |
Manifest.Attribute meProfile = new Manifest.Attribute( InfoSetting.MICRO_EDITION_PROFILE, midp ); manifest.addConfiguredAttribute(meProfile); String config = InfoSetting.CLDC1_0; if (!device.isCldc10()) { config = InfoSetting.CLDC1_1;
|
} String[] midletInfos = this.buildSetting.getMidletInfos( this.infoSetting.getIcon() ); for (int i = 0; i < midletInfos.length; i++) { String info = midletInfos[i]; if (useAttributesFilter) { attributesByName.put( InfoSetting.NMIDLET + (i+1), new Variable(InfoSetting.NMIDLET + (i+1), info ) ); } else { jad.addAttribute( InfoSetting.NMIDLET + (i+1), info );
|
private void jar( Device device ) { System.out.println("creating JAR for device [" + device.getIdentifier() + "]." ); File classesDir = new File( device.getClassesDir() ); //copy resources: File resourceDir = this.buildSetting.getResDir(); String resourcePath = resourceDir.getAbsolutePath() + File.separatorChar; FileFilter cssFilter = new CssFileFilter(); try { // 1. copy general resources: File[] files = resourceDir.listFiles( cssFilter ); FileUtil.copy( files, classesDir ); // 2. copy vendor resources: resourceDir = new File( resourcePath + device.getVendorName() ); if (resourceDir.exists()) { files = resourceDir.listFiles( cssFilter ); FileUtil.copy( files, classesDir ); } // 3. copy group resources: String[] groups = device.getGroupNames(); for (int i = 0; i < groups.length; i++) { String group = groups[i]; resourceDir = new File( resourcePath + group ); if (resourceDir.exists()) { files = resourceDir.listFiles( cssFilter ); FileUtil.copy( files, classesDir ); } } // 4.: copy device resources: resourceDir = new File( resourcePath + device.getVendorName() + File.separatorChar + device.getName() ); if (resourceDir.exists()) { files = resourceDir.listFiles( cssFilter ); FileUtil.copy( files, classesDir ); } } catch (IOException e) { throw new BuildException("Unable to copy resources from [" + resourceDir + "]: " + e.getMessage(), e ); } Jar jarTask = new Jar(); jarTask.setProject( this.project ); jarTask.setTaskName( getTaskName() + "-jar-" + device.getIdentifier() ); jarTask.setBasedir( classesDir ); // retrieve the name of the jar-file: HashMap infoProperties = new HashMap(); infoProperties.put( "polish.identifier", device.getIdentifier() ); infoProperties.put( "polish.name", device.getName() ); infoProperties.put( "polish.vendor", device.getVendorName() ); infoProperties.put( "polish.version", this.infoSetting.getVersion() ); String jarName = this.infoSetting.getJarName(); jarName = PropertyUtil.writeProperties(jarName, infoProperties); infoProperties.put( "polish.jarName", jarName ); File jarFile = new File( this.buildSetting.getDestDir().getAbsolutePath() + File.separatorChar + jarName ); if (!jarFile.getParentFile().exists()) { jarFile.getParentFile().mkdirs(); } device.setJarFile( jarFile ); jarTask.setDestFile( jarFile ); String test = this.polishProject.getCapability("polish.license"); if ( !this.infoSetting.getlicense().equals(test)) { throw new BuildException("Encountered invalid license."); } //create manifest: try { Manifest manifest = new Manifest(); // set MicroEdition-Profile: String midp = InfoSetting.MIDP1; if (device.isMidp2()) { midp = InfoSetting.MIDP2; } Manifest.Attribute meProfile = new Manifest.Attribute( InfoSetting.MICRO_EDITION_PROFILE, midp ); manifest.addConfiguredAttribute(meProfile); // set MicroEdition-Configuration: String config = InfoSetting.CLDC1_0; if (!device.isCldc10()) { config = InfoSetting.CLDC1_1; } Manifest.Attribute meConfiguration = new Manifest.Attribute( InfoSetting.MICRO_EDITION_CONFIGURATION, config ); manifest.addConfiguredAttribute(meConfiguration); // add info attributes: Variable[] jadAttributes = this.infoSetting.getManifestAttributes(); for (int i = 0; i < jadAttributes.length; i++) { Variable var = jadAttributes[i]; String value = PropertyUtil.writeProperties(var.getValue(), infoProperties); Manifest.Attribute attribute = new Manifest.Attribute(var.getName(), value ); manifest.addConfiguredAttribute( attribute ); } // add build properties - midlet infos: String[] midletInfos = this.buildSetting.getMidletInfos( this.infoSetting.getIcon() ); for (int i = 0; i < midletInfos.length; i++) { String info = midletInfos[i]; Manifest.Attribute attribute = new Manifest.Attribute(InfoSetting.NMIDLET + (i+1), info ); manifest.addConfiguredAttribute( attribute ); } // add user-defined attributes: Attribute[] attributes = this.buildSetting.getJadAttributes(); BooleanEvaluator evaluator = this.preprocessor.getBooleanEvaluator(); for (int i = 0; i < attributes.length; i++) { Attribute var = attributes[i]; String condition = var.getIf(); if (condition == null || evaluator.evaluate( condition, "build.xml", 0)) { String value = PropertyUtil.writeProperties(var.getValue(), infoProperties); Manifest.Attribute attribute = new Manifest.Attribute(var.getName(), value ); manifest.addConfiguredAttribute( attribute ); } } //add polish version: Manifest.Attribute polishVersion = new Manifest.Attribute("Polish-Version", VERSION ); manifest.addConfiguredAttribute( polishVersion ); jarTask.addConfiguredManifest( manifest ); } catch (ManifestException e) { e.printStackTrace(); throw new BuildException("Unable to create manifest: " + e.getMessage(), e ); } jarTask.execute(); }
|
9804 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9804/76edfdf99b685c95146d768c09ebf16d04eb5c0f/PolishTask.java/buggy/enough-polish-build/source/src/de/enough/polish/ant/PolishTask.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
7334,
12,
6077,
2346,
262,
288,
202,
202,
3163,
18,
659,
18,
8222,
2932,
23799,
24728,
364,
2346,
8247,
397,
2346,
18,
588,
3004,
1435,
397,
9850,
1199,
11272,
202,
202,
812,
3318,
1621,
273,
394,
1387,
12,
2346,
18,
588,
4818,
1621,
1435,
11272,
202,
202,
759,
3530,
2703,
30,
202,
202,
812,
1058,
1621,
273,
333,
18,
3510,
5568,
18,
588,
607,
1621,
5621,
202,
202,
780,
15467,
273,
1058,
1621,
18,
588,
10368,
743,
1435,
397,
1387,
18,
11287,
2156,
31,
4697,
202,
29837,
3747,
1586,
273,
225,
394,
19127,
29837,
5621,
202,
202,
698,
288,
1082,
202,
759,
404,
18,
1610,
7470,
2703,
30,
1082,
202,
812,
8526,
1390,
273,
1058,
1621,
18,
1098,
2697,
12,
3747,
1586,
11272,
1082,
202,
812,
1304,
18,
3530,
12,
1390,
16,
3318,
1621,
11272,
1082,
202,
759,
576,
18,
1610,
8556,
2703,
30,
1082,
202,
3146,
1621,
273,
394,
1387,
12,
15467,
397,
2346,
18,
588,
14786,
461,
1435,
11272,
1082,
202,
430,
261,
3146,
1621,
18,
1808,
10756,
288,
9506,
202,
2354,
273,
1058,
1621,
18,
1098,
2697,
12,
3747,
1586,
11272,
9506,
202,
812,
1304,
18,
3530,
12,
1390,
16,
3318,
1621,
11272,
1082,
202,
97,
1082,
202,
759,
890,
18,
1610,
1041,
2703,
30,
1082,
202,
780,
8526,
3252,
273,
2346,
18,
588,
1114,
1557,
5621,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
3252,
18,
2469,
31,
277,
27245,
288,
9506,
202,
780,
1041,
273,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
7334,
12,
6077,
2346,
262,
288,
202,
202,
3163,
18,
659,
18,
8222,
2932,
23799,
24728,
364,
2346,
8247,
397,
2346,
18,
588,
3004,
1435,
397,
9850,
1199,
11272,
202,
202,
812,
3318,
1621,
273,
394,
1387,
12,
2346,
18,
588,
4818,
1621,
1435,
11272,
202,
202,
759,
3530,
2703,
30,
202,
202,
812,
1058,
1621,
273,
333,
18,
3510,
5568,
18,
588,
607,
1621,
5621,
202,
202,
780,
15467,
273,
1058,
1621,
18,
588,
10368,
743,
1435,
397,
1387,
18,
11287,
2156,
31,
4697,
202,
29837,
3747,
1586,
273,
225,
394,
19127,
29837,
5621,
202,
202,
698,
288,
1082,
202,
759,
404,
18,
1610,
7470,
2703,
30,
1082,
202,
812,
8526,
1390,
273,
1058,
2
] |
log.info("generating " + className + " for FIX 4." + fixMinorVersion);
|
log.debug("generating " + className + " for FIX 4." + fixMinorVersion);
|
private void generateClassCodeForVersions(String className, String[] paramNames, String paramValues[]) throws ParserConfigurationException, SAXException, IOException, TransformerFactoryConfigurationError, TransformerConfigurationException, FileNotFoundException, TransformerException { for (int fixMinorVersion = 0; fixMinorVersion < 5; fixMinorVersion++) { log.info("generating " + className + " for FIX 4." + fixMinorVersion); Document document = getSpecification(fixMinorVersion); generateCodeFile(document, xformDir + "/" + className + ".xsl", paramNames, paramValues, outputBaseDir + "/quickfix/fix4" + fixMinorVersion + "/" + className + ".java"); } }
|
52526 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52526/a6452c067d0f110cc79fdbd56cbcddb3ae506f26/JavaCodeGenerator.java/clean/src/quickfix/codegen/JavaCodeGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
797,
1085,
1290,
5940,
12,
780,
2658,
16,
514,
8526,
579,
1557,
16,
5411,
514,
579,
1972,
63,
5717,
1216,
6783,
10737,
16,
14366,
16,
1860,
16,
5411,
11519,
1733,
1750,
668,
16,
11519,
10737,
16,
5411,
13707,
16,
21684,
288,
3639,
364,
261,
474,
2917,
19549,
1444,
273,
374,
31,
2917,
19549,
1444,
411,
1381,
31,
2917,
19549,
1444,
27245,
288,
5411,
613,
18,
4148,
2932,
3441,
1776,
315,
397,
2658,
397,
315,
364,
8563,
1059,
1199,
397,
2917,
19549,
1444,
1769,
5411,
4319,
1668,
273,
20189,
1480,
12,
904,
19549,
1444,
1769,
5411,
2103,
1085,
812,
12,
5457,
16,
619,
687,
1621,
397,
4016,
397,
2658,
397,
3552,
30903,
3113,
579,
1557,
16,
10792,
579,
1972,
16,
876,
2171,
1621,
397,
2206,
19525,
904,
19,
904,
24,
6,
397,
2917,
19549,
1444,
397,
4016,
18701,
397,
2658,
397,
3552,
6290,
8863,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
797,
1085,
1290,
5940,
12,
780,
2658,
16,
514,
8526,
579,
1557,
16,
5411,
514,
579,
1972,
63,
5717,
1216,
6783,
10737,
16,
14366,
16,
1860,
16,
5411,
11519,
1733,
1750,
668,
16,
11519,
10737,
16,
5411,
13707,
16,
21684,
288,
3639,
364,
261,
474,
2917,
19549,
1444,
273,
374,
31,
2917,
19549,
1444,
411,
1381,
31,
2917,
19549,
1444,
27245,
288,
5411,
613,
18,
4148,
2932,
3441,
1776,
315,
397,
2658,
397,
315,
364,
8563,
1059,
1199,
397,
2917,
19549,
1444,
1769,
5411,
4319,
1668,
273,
20189,
1480,
12,
904,
19549,
1444,
1769,
5411,
2103,
1085,
812,
12,
5457,
16,
619,
687,
1621,
397,
4016,
397,
2658,
397,
3552,
30903,
3113,
579,
1557,
16,
2
] |
throw new UnhandledException( e ) ;
|
throw new UnhandledException( e );
|
public Properties getLanguageProperties( UserDomainObject user ) { String languageIso639_2 = user.getLanguageIso639_2(); Properties languageProperties = (Properties)languagePropertiesMap.get( languageIso639_2 ) ; if (null == languageProperties) { String propertiesFilename = languageIso639_2 + ".properties"; try { languageProperties = Prefs.getProperties( propertiesFilename ); languagePropertiesMap.put( languageIso639_2, languageProperties) ; } catch ( IOException e ) { log.fatal( "Failed to read language properties from " + propertiesFilename, e ); throw new UnhandledException( e ) ; } } return languageProperties ; }
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/1b4f9a2d878ad077383741d3c606d79f9a39f52f/DefaultImcmsServices.java/clean/server/src/imcode/server/DefaultImcmsServices.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6183,
12898,
2297,
12,
2177,
3748,
921,
729,
262,
288,
3639,
514,
2653,
18516,
21607,
67,
22,
273,
729,
18,
588,
3779,
18516,
21607,
67,
22,
5621,
3639,
6183,
2653,
2297,
273,
261,
2297,
13,
4923,
2297,
863,
18,
588,
12,
2653,
18516,
21607,
67,
22,
262,
274,
3639,
309,
261,
2011,
422,
2653,
2297,
13,
288,
5411,
514,
1790,
5359,
273,
2653,
18516,
21607,
67,
22,
397,
3552,
4738,
14432,
5411,
775,
288,
7734,
2653,
2297,
273,
453,
9316,
18,
588,
2297,
12,
1790,
5359,
11272,
7734,
2653,
2297,
863,
18,
458,
12,
2653,
18516,
21607,
67,
22,
16,
2653,
2297,
13,
274,
5411,
289,
1044,
261,
1860,
425,
262,
288,
7734,
613,
18,
30709,
12,
315,
2925,
358,
855,
2653,
1790,
628,
315,
397,
1790,
5359,
16,
425,
11272,
7734,
604,
394,
1351,
14387,
503,
12,
425,
11272,
5411,
289,
3639,
289,
3639,
327,
2653,
2297,
274,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6183,
12898,
2297,
12,
2177,
3748,
921,
729,
262,
288,
3639,
514,
2653,
18516,
21607,
67,
22,
273,
729,
18,
588,
3779,
18516,
21607,
67,
22,
5621,
3639,
6183,
2653,
2297,
273,
261,
2297,
13,
4923,
2297,
863,
18,
588,
12,
2653,
18516,
21607,
67,
22,
262,
274,
3639,
309,
261,
2011,
422,
2653,
2297,
13,
288,
5411,
514,
1790,
5359,
273,
2653,
18516,
21607,
67,
22,
397,
3552,
4738,
14432,
5411,
775,
288,
7734,
2653,
2297,
273,
453,
9316,
18,
588,
2297,
12,
1790,
5359,
11272,
7734,
2653,
2297,
863,
18,
458,
12,
2653,
18516,
21607,
67,
22,
16,
2653,
2297,
13,
274,
5411,
289,
1044,
261,
1860,
425,
262,
288,
7734,
613,
18,
30709,
12,
2
] |
int end = m_length+m_start; if(0 == end)
|
if(m_length == 0)
|
public double toDouble() { int end = m_length+m_start; if(0 == end) return Double.NaN; int start = m_start; FastStringBuffer fsb = fsb(); long longResult=0; boolean isNegative=false; boolean trailingSpace=false; int[] digitsFound={0,0}; // intpart,fracpart int digitType=0; // Index to which kind of digit we're accumulating double doubleResult; // Scan past leading whitespace characters while(start< end && XMLCharacterRecognizer.isWhiteSpace( fsb.charAt(start) ) ) ++start; if (start < end && fsb.charAt(start) == '-') { isNegative=true; start++; } // parse the string from left to right converting as an integer. for (int i = start; i < end; i++) { char c = fsb.charAt(i); if(XMLCharacterRecognizer.isWhiteSpace(c)) { trailingSpace=true; break; // Trailing whitespace is ignored } else if(trailingSpace) return Double.NaN; // Nonspace after space is poorly formed switch(c) { case '.': if(digitType==0) digitType=1; else return Double.NaN; // Second period is error break; case '0': // NOT Unicode isDigit(); ASCII digits _only_ case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': longResult = longResult * 10 + (c - '0'); // Accumulate as int ++digitsFound[digitType]; // Remember scaling break; default: return Double.NaN; // Nonnumeric is error } } if(0 ==digitsFound[0]&& 0==digitsFound[1]) return Double.NaN; // Convert from scaled integer to floating point. This will come close. // There's an alternative solution involving Double.longBitsToDouble // followed by a combined renormalize/scale operation... but I honestly // think the more straightforward solution comes out to just about // the same thing. long scale=1; // AFAIK, java doesn't have an easier 10^n operation for(int i=digitsFound[1];i>0;--i) scale*=10; doubleResult=((double)longResult)/scale; if(isNegative) doubleResult *= -1; return doubleResult; }
|
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/b9460560cff8bd34c925f0d9e5876d9bcd007b2e/XStringForFSB.java/buggy/src/org/apache/xpath/objects/XStringForFSB.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1645,
358,
5265,
1435,
225,
288,
565,
509,
679,
273,
312,
67,
2469,
15,
81,
67,
1937,
31,
565,
309,
12,
20,
422,
679,
13,
1377,
327,
3698,
18,
21172,
31,
565,
509,
787,
273,
312,
67,
1937,
31,
565,
9545,
780,
1892,
2662,
70,
273,
2662,
70,
5621,
1850,
1525,
1525,
1253,
33,
20,
31,
565,
1250,
29886,
33,
5743,
31,
565,
1250,
7341,
3819,
33,
5743,
31,
565,
509,
8526,
6815,
2043,
5899,
20,
16,
20,
20451,
368,
509,
2680,
16,
22187,
2680,
565,
509,
8035,
559,
33,
20,
31,
565,
368,
3340,
358,
1492,
3846,
434,
8035,
732,
4565,
8822,
1776,
565,
1645,
1645,
1253,
31,
3639,
368,
8361,
8854,
7676,
7983,
3949,
565,
1323,
12,
1937,
32,
679,
597,
1850,
3167,
7069,
28131,
18,
291,
23108,
12,
2662,
70,
18,
3001,
861,
12,
1937,
13,
262,
1850,
262,
1377,
965,
1937,
31,
3639,
309,
261,
1937,
411,
679,
597,
2662,
70,
18,
3001,
861,
12,
1937,
13,
422,
4014,
13,
565,
288,
1377,
29886,
33,
3767,
31,
1377,
787,
9904,
31,
565,
289,
3639,
368,
1109,
326,
533,
628,
2002,
358,
2145,
14540,
487,
392,
3571,
18,
565,
364,
261,
474,
277,
273,
787,
31,
277,
411,
679,
31,
277,
27245,
565,
288,
1377,
1149,
276,
273,
2662,
70,
18,
3001,
861,
12,
77,
1769,
1377,
309,
12,
4201,
7069,
28131,
18,
291,
23108,
12,
71,
3719,
1377,
288,
9506,
202,
26453,
3819,
33,
3767,
31,
3639,
898,
31,
5375,
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,
282,
1071,
1645,
358,
5265,
1435,
225,
288,
565,
509,
679,
273,
312,
67,
2469,
15,
81,
67,
1937,
31,
565,
309,
12,
20,
422,
679,
13,
1377,
327,
3698,
18,
21172,
31,
565,
509,
787,
273,
312,
67,
1937,
31,
565,
9545,
780,
1892,
2662,
70,
273,
2662,
70,
5621,
1850,
1525,
1525,
1253,
33,
20,
31,
565,
1250,
29886,
33,
5743,
31,
565,
1250,
7341,
3819,
33,
5743,
31,
565,
509,
8526,
6815,
2043,
5899,
20,
16,
20,
20451,
368,
509,
2680,
16,
22187,
2680,
565,
509,
8035,
559,
33,
20,
31,
565,
368,
3340,
358,
1492,
3846,
434,
8035,
732,
4565,
8822,
1776,
565,
1645,
1645,
1253,
31,
3639,
368,
8361,
8854,
7676,
7983,
3949,
565,
2
] |
} for (; i < path.size(); ++i) { cycleSet.add(path.get(i));
|
} else { for (; i < path.size(); ++i) { cycleSet.add(path.get(i)); }
|
protected void encounterVertexAgain(V vertex, E edge) { super.encounterVertexAgain(vertex, edge); int i = path.indexOf(vertex); if (i > -1) { if (cycleSet == null) { // we're doing yes/no cycle detection throw new CycleDetectedException(); } for (; i < path.size(); ++i) { cycleSet.add(path.get(i)); } } }
|
47032 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47032/618193dfca3ac4de3a61698028cfd965351c74a1/CycleDetector.java/buggy/src/org/jgrapht/alg/CycleDetector.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
4750,
918,
8273,
6475,
23530,
12,
58,
5253,
16,
512,
3591,
13,
3639,
288,
5411,
2240,
18,
1331,
2096,
6475,
23530,
12,
15281,
16,
3591,
1769,
5411,
509,
277,
273,
589,
18,
31806,
12,
15281,
1769,
5411,
309,
261,
77,
405,
300,
21,
13,
288,
7734,
309,
261,
13946,
694,
422,
446,
13,
288,
10792,
368,
732,
4565,
9957,
12465,
19,
2135,
8589,
11649,
10792,
604,
394,
385,
3409,
22614,
503,
5621,
7734,
289,
7734,
364,
261,
31,
277,
411,
589,
18,
1467,
5621,
965,
77,
13,
288,
10792,
8589,
694,
18,
1289,
12,
803,
18,
588,
12,
77,
10019,
7734,
289,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4750,
918,
8273,
6475,
23530,
12,
58,
5253,
16,
512,
3591,
13,
3639,
288,
5411,
2240,
18,
1331,
2096,
6475,
23530,
12,
15281,
16,
3591,
1769,
5411,
509,
277,
273,
589,
18,
31806,
12,
15281,
1769,
5411,
309,
261,
77,
405,
300,
21,
13,
288,
7734,
309,
261,
13946,
694,
422,
446,
13,
288,
10792,
368,
732,
4565,
9957,
12465,
19,
2135,
8589,
11649,
10792,
604,
394,
385,
3409,
22614,
503,
5621,
7734,
289,
7734,
364,
261,
31,
277,
411,
589,
18,
1467,
5621,
965,
77,
13,
288,
10792,
8589,
694,
18,
1289,
12,
803,
18,
588,
12,
77,
10019,
7734,
289,
5411,
289,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
r.addDescriptionEntry(ENTRY_EXPECTED_KEY, t.ENTRY_KEY_NUMBER_OF_TEST_RESULT_ELEMENTS);
|
r.addDescriptionEntry(ENTRY_EXPECTED_KEY, SelfContainedSVGOnLoadTest.ENTRY_KEY_NUMBER_OF_TEST_RESULT_ELEMENTS);
|
public TestReport runImpl() throws Exception { SelfContainedSVGOnLoadTest t = new SelfContainedSVGOnLoadTest(svgURL); TestReport tr = t.run(); if(tr.hasPassed()){ return reportError(ERROR_UNEXPECTED_TEST_RESULT); } if(tr.getErrorCode() != expectedErrorCode){ TestReport r = reportError(ERROR_UNEXPECTED_ERROR_CODE); r.addDescriptionEntry(ENTRY_ERROR_CODE, tr.getErrorCode()); r.addDescriptionEntry(ENTRY_EXPECTED_ERROR_CODE, expectedErrorCode); return r; } // Check that there is a description entry TestReport.Entry[] desc = tr.getDescription(); int nDesc = 0, enDesc = 0; if (desc != null){ nDesc = desc.length; } if (expectedEntryCodes != null){ enDesc = expectedEntryCodes.length; } if (nDesc != enDesc){ TestReport r = reportError(ERROR_UNEXPECTED_NUMBER_OF_DESCRIPTION_ENTRIES); r.addDescriptionEntry(ENTRY_NUMBER_OF_DESCRIPTION, "" + nDesc); r.addDescriptionEntry(ENTRY_EXPECTED_NUMBER_OF_DESCRIPTION, "" + enDesc); return r; } if (nDesc > 0){ Vector veDesc = new Vector(); for(int i=0; i<nDesc; i++){ veDesc.add(expectedEntryCodes[i]); } for(int i=0; i<nDesc; i++){ String key = desc[i].getKey(); if (key == null || !veDesc.contains(key)){ TestReport r = reportError(ERROR_UNEXPECTED_DESCRIPTION_ENTRY); if (key != null){ r.addDescriptionEntry(ENTRY_KEY, key); r.addDescriptionEntry(ENTRY_EXPECTED_KEY, t.ENTRY_KEY_NUMBER_OF_TEST_RESULT_ELEMENTS); } return r; } } } return reportSuccess(); }
|
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/37794489f7dedd0c74c1b7ae67e92cf8d877b256/SelfContainedSVGOnLoadTestValidator.java/clean/test-sources/org/apache/batik/test/svg/SelfContainedSVGOnLoadTestValidator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
7766,
4820,
1086,
2828,
1435,
1216,
1185,
288,
5411,
18954,
660,
8707,
26531,
1398,
2563,
4709,
268,
1171,
273,
394,
18954,
660,
8707,
26531,
1398,
2563,
4709,
12,
11451,
1785,
1769,
5411,
7766,
4820,
433,
273,
268,
18,
2681,
5621,
13491,
309,
12,
313,
18,
5332,
22530,
10756,
95,
7734,
327,
17887,
12,
3589,
67,
2124,
27409,
67,
16961,
67,
12289,
1769,
5411,
289,
13491,
309,
12,
313,
18,
588,
12012,
1435,
480,
2665,
12012,
15329,
7734,
7766,
4820,
436,
273,
17887,
12,
3589,
67,
2124,
27409,
67,
3589,
67,
5572,
1769,
7734,
436,
18,
1289,
3291,
1622,
12,
19083,
67,
3589,
67,
5572,
16,
433,
18,
588,
12012,
10663,
7734,
436,
18,
1289,
3291,
1622,
12,
19083,
67,
27409,
67,
3589,
67,
5572,
16,
4766,
3639,
2665,
12012,
1769,
7734,
327,
436,
31,
5411,
289,
13491,
368,
2073,
716,
1915,
353,
279,
2477,
1241,
5411,
7766,
4820,
18,
1622,
8526,
3044,
273,
433,
18,
588,
3291,
5621,
5411,
509,
290,
4217,
273,
374,
16,
570,
4217,
273,
374,
31,
5411,
309,
261,
5569,
480,
446,
15329,
7734,
290,
4217,
273,
3044,
18,
2469,
31,
5411,
289,
5411,
309,
261,
3825,
1622,
6295,
480,
446,
15329,
7734,
570,
4217,
273,
2665,
1622,
6295,
18,
2469,
31,
5411,
289,
13491,
309,
261,
82,
4217,
480,
570,
4217,
15329,
7734,
7766,
4820,
436,
273,
17887,
12,
3589,
67,
2124,
27409,
67,
9931,
67,
3932,
67,
15911,
67,
2222,
2259,
3991,
1769,
27573,
436,
18,
1289,
3291,
1622,
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,
7766,
4820,
1086,
2828,
1435,
1216,
1185,
288,
5411,
18954,
660,
8707,
26531,
1398,
2563,
4709,
268,
1171,
273,
394,
18954,
660,
8707,
26531,
1398,
2563,
4709,
12,
11451,
1785,
1769,
5411,
7766,
4820,
433,
273,
268,
18,
2681,
5621,
13491,
309,
12,
313,
18,
5332,
22530,
10756,
95,
7734,
327,
17887,
12,
3589,
67,
2124,
27409,
67,
16961,
67,
12289,
1769,
5411,
289,
13491,
309,
12,
313,
18,
588,
12012,
1435,
480,
2665,
12012,
15329,
7734,
7766,
4820,
436,
273,
17887,
12,
3589,
67,
2124,
27409,
67,
3589,
67,
5572,
1769,
7734,
436,
18,
1289,
3291,
1622,
12,
19083,
67,
3589,
67,
5572,
16,
433,
18,
588,
12012,
10663,
7734,
436,
18,
1289,
3291,
1622,
12,
2
] |
if( block.contains( p ) || block.isAbove( p )){ cells.add( p.shift( rowShift, colShift ) );
|
if( block.contains( p ) || (block.isAbove( p ) && rowShift != 0) || (block.isToLeft( p ) && colShift != 0)){ Point newPoint = p.shift( rowShift, colShift ); cells.add( newPoint );
|
public List transformCell(Point p) { cells.clear(); if( block.contains( p ) || block.isAbove( p )){ cells.add( p.shift( rowShift, colShift ) ); }else{ cells.add( p ); } return cells; }
|
45923 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45923/d3d5280a524c55601c3ad9f40ee994ee87d4b44e/ShiftTransformation.java/clean/jxls-core/src/main/java/net/sf/jxls/transformation/ShiftTransformation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
2510,
4020,
12,
2148,
293,
13,
288,
3639,
5983,
18,
8507,
5621,
3639,
309,
12,
1203,
18,
12298,
12,
293,
262,
747,
1203,
18,
291,
25477,
12,
293,
8623,
95,
5411,
5983,
18,
1289,
12,
293,
18,
4012,
12,
1027,
10544,
16,
645,
10544,
262,
11272,
3639,
289,
12107,
95,
5411,
5983,
18,
1289,
12,
293,
11272,
3639,
289,
3639,
327,
5983,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
2510,
4020,
12,
2148,
293,
13,
288,
3639,
5983,
18,
8507,
5621,
3639,
309,
12,
1203,
18,
12298,
12,
293,
262,
747,
1203,
18,
291,
25477,
12,
293,
8623,
95,
5411,
5983,
18,
1289,
12,
293,
18,
4012,
12,
1027,
10544,
16,
645,
10544,
262,
11272,
3639,
289,
12107,
95,
5411,
5983,
18,
1289,
12,
293,
11272,
3639,
289,
3639,
327,
5983,
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
] |
for (int i = 0; beg < length && i < len; i++) {
|
for (int i = 0; beg < getLength() && i < len; i++) {
|
public void replace(long beg, long len, RubyObject repl) { int length = getLength(); if (len < 0) { throw new RubyIndexException(getRuby(), "Negative array length: " + len); } if (beg < 0) { beg += length; } if (beg < 0) { throw new RubyIndexException(getRuby(), "Index out of bounds: " + beg); } modify(); for (int i = 0; beg < length && i < len; i++) { list.remove((int) beg); } autoExpand(beg); if (repl instanceof RubyArray) { List repList = ((RubyArray) repl).getList(); list.ensureCapacity(length + repList.size()); list.addAll((int) beg, new ArrayList(repList)); } else if (!repl.isNil()) { list.add((int) beg, repl); } }
|
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/5882d0febb3f8ecc0652256e027730f39165ff8d/RubyArray.java/clean/org/jruby/RubyArray.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1453,
12,
5748,
16847,
16,
1525,
562,
16,
19817,
921,
6831,
13,
288,
3639,
509,
769,
273,
9888,
5621,
3639,
309,
261,
1897,
411,
374,
13,
288,
5411,
604,
394,
19817,
1016,
503,
12,
588,
54,
10340,
9334,
315,
14959,
526,
769,
30,
315,
397,
562,
1769,
3639,
289,
3639,
309,
261,
70,
1332,
411,
374,
13,
288,
5411,
16847,
1011,
769,
31,
3639,
289,
3639,
309,
261,
70,
1332,
411,
374,
13,
288,
5411,
604,
394,
19817,
1016,
503,
12,
588,
54,
10340,
9334,
315,
1016,
596,
434,
4972,
30,
315,
397,
16847,
1769,
3639,
289,
3639,
5612,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
16847,
411,
9888,
1435,
597,
277,
411,
562,
31,
277,
27245,
288,
5411,
666,
18,
4479,
12443,
474,
13,
16847,
1769,
3639,
289,
3639,
3656,
12271,
12,
70,
1332,
1769,
3639,
309,
261,
26745,
1276,
19817,
1076,
13,
288,
5411,
987,
2071,
682,
273,
14015,
54,
10340,
1076,
13,
6831,
2934,
588,
682,
5621,
5411,
666,
18,
15735,
7437,
12,
2469,
397,
2071,
682,
18,
1467,
10663,
5411,
666,
18,
1289,
1595,
12443,
474,
13,
16847,
16,
394,
2407,
12,
14462,
682,
10019,
3639,
289,
469,
309,
16051,
26745,
18,
291,
12616,
10756,
288,
5411,
666,
18,
1289,
12443,
474,
13,
16847,
16,
6831,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1453,
12,
5748,
16847,
16,
1525,
562,
16,
19817,
921,
6831,
13,
288,
3639,
509,
769,
273,
9888,
5621,
3639,
309,
261,
1897,
411,
374,
13,
288,
5411,
604,
394,
19817,
1016,
503,
12,
588,
54,
10340,
9334,
315,
14959,
526,
769,
30,
315,
397,
562,
1769,
3639,
289,
3639,
309,
261,
70,
1332,
411,
374,
13,
288,
5411,
16847,
1011,
769,
31,
3639,
289,
3639,
309,
261,
70,
1332,
411,
374,
13,
288,
5411,
604,
394,
19817,
1016,
503,
12,
588,
54,
10340,
9334,
315,
1016,
596,
434,
4972,
30,
315,
397,
16847,
1769,
3639,
289,
3639,
5612,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
16847,
411,
9888,
1435,
597,
277,
411,
562,
2
] |
if (data != null) result.add(data);
|
if (data != null) { result.add(data); }
|
private void internalCollectGrayed(List result, Widget widget) { Item[] items = getChildren(widget); for (int i = 0; i < items.length; i++) { Item item = items[i]; if (item instanceof TreeItem && ((TreeItem) item).getGrayed()) { Object data = item.getData(); if (data != null) result.add(data); } internalCollectGrayed(result, item); } }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/391f2606b4ea2c1fb5052d938ca90877ee7631f6/CheckboxTreeViewer.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/CheckboxTreeViewer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2713,
10808,
23521,
329,
12,
682,
563,
16,
11103,
3604,
13,
288,
3639,
4342,
8526,
1516,
273,
10268,
12,
6587,
1769,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1516,
18,
2469,
31,
277,
27245,
288,
5411,
4342,
761,
273,
1516,
63,
77,
15533,
5411,
309,
261,
1726,
1276,
4902,
1180,
597,
14015,
2471,
1180,
13,
761,
2934,
588,
23521,
329,
10756,
288,
7734,
1033,
501,
273,
761,
18,
588,
751,
5621,
7734,
309,
261,
892,
480,
446,
13,
10792,
563,
18,
1289,
12,
892,
1769,
5411,
289,
5411,
2713,
10808,
23521,
329,
12,
2088,
16,
761,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2713,
10808,
23521,
329,
12,
682,
563,
16,
11103,
3604,
13,
288,
3639,
4342,
8526,
1516,
273,
10268,
12,
6587,
1769,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1516,
18,
2469,
31,
277,
27245,
288,
5411,
4342,
761,
273,
1516,
63,
77,
15533,
5411,
309,
261,
1726,
1276,
4902,
1180,
597,
14015,
2471,
1180,
13,
761,
2934,
588,
23521,
329,
10756,
288,
7734,
1033,
501,
273,
761,
18,
588,
751,
5621,
7734,
309,
261,
892,
480,
446,
13,
10792,
563,
18,
1289,
12,
892,
1769,
5411,
289,
5411,
2713,
10808,
23521,
329,
12,
2088,
16,
761,
1769,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public int indexOf(Object object) {
|
public final int indexOf(Object object) {
|
public int indexOf(Object object) { for (int i = 0; i < used; i++) { final Object o = cp[ i]; if ((o != null) && (o.equals(object))) { return i; } } return -1; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/10b9028253f5fe6331eb3ee3c17eb137e07633c9/VmCP.java/buggy/core/src/core/org/jnode/vm/classmgr/VmCP.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
509,
3133,
12,
921,
733,
13,
288,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1399,
31,
277,
27245,
288,
5411,
727,
1033,
320,
273,
3283,
63,
277,
15533,
5411,
309,
14015,
83,
480,
446,
13,
597,
261,
83,
18,
14963,
12,
1612,
20349,
288,
327,
277,
31,
289,
3639,
289,
3639,
327,
300,
21,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
509,
3133,
12,
921,
733,
13,
288,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1399,
31,
277,
27245,
288,
5411,
727,
1033,
320,
273,
3283,
63,
277,
15533,
5411,
309,
14015,
83,
480,
446,
13,
597,
261,
83,
18,
14963,
12,
1612,
20349,
288,
327,
277,
31,
289,
3639,
289,
3639,
327,
300,
21,
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
] |
protected String getPixelType() throws FormatException {
|
public int getPixelType(String id) throws FormatException, IOException { if (!id.equals(currentId)) initFile(id);
|
protected String getPixelType() throws FormatException { Hashtable ifd = ifds[0]; int sample = TiffTools.getIFDIntValue(ifd, TiffTools.SAMPLE_FORMAT); String pixelType; switch (sample) { case 1: pixelType = "Uint"; break; case 2: pixelType = "int"; break; case 3: pixelType = "float"; break; // pixelType 4 is unknown but the tiff 6.0 specification (page 80) // suggests to treat these unknowns as Uint. default: pixelType = "Uint"; } if (pixelType.indexOf("int") >= 0) { // int or Uint pixelType += TiffTools.getIFDIntValue(ifd, TiffTools.BITS_PER_SAMPLE); } return pixelType; }
|
55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/f900d398818eefec3108ce2138214e42901a0aa0/BaseTiffReader.java/buggy/loci/formats/in/BaseTiffReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
1689,
3556,
559,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
309,
16051,
350,
18,
14963,
12,
2972,
548,
3719,
1208,
812,
12,
350,
1769,
565,
18559,
309,
72,
273,
309,
2377,
63,
20,
15533,
565,
509,
3296,
273,
399,
3048,
10348,
18,
588,
5501,
40,
1702,
620,
12,
430,
72,
16,
399,
3048,
10348,
18,
55,
21373,
67,
7254,
1769,
565,
514,
4957,
559,
31,
565,
1620,
261,
6358,
13,
288,
1377,
648,
404,
30,
4957,
559,
273,
315,
5487,
14432,
898,
31,
1377,
648,
576,
30,
4957,
559,
273,
315,
474,
14432,
898,
31,
1377,
648,
890,
30,
4957,
559,
273,
315,
5659,
14432,
898,
31,
1377,
368,
4957,
559,
1059,
353,
5917,
1496,
326,
268,
3048,
1666,
18,
20,
7490,
261,
2433,
8958,
13,
1377,
368,
19816,
87,
358,
10116,
4259,
5917,
87,
487,
7320,
18,
1377,
805,
30,
4957,
559,
273,
315,
5487,
14432,
565,
289,
565,
309,
261,
11743,
559,
18,
31806,
2932,
474,
7923,
1545,
374,
13,
288,
368,
509,
578,
7320,
1377,
4957,
559,
1011,
399,
3048,
10348,
18,
588,
5501,
40,
1702,
620,
12,
430,
72,
16,
399,
3048,
10348,
18,
25171,
67,
3194,
67,
55,
21373,
1769,
565,
289,
565,
327,
4957,
559,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
1689,
3556,
559,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
309,
16051,
350,
18,
14963,
12,
2972,
548,
3719,
1208,
812,
12,
350,
1769,
565,
18559,
309,
72,
273,
309,
2377,
63,
20,
15533,
565,
509,
3296,
273,
399,
3048,
10348,
18,
588,
5501,
40,
1702,
620,
12,
430,
72,
16,
399,
3048,
10348,
18,
55,
21373,
67,
7254,
1769,
565,
514,
4957,
559,
31,
565,
1620,
261,
6358,
13,
288,
1377,
648,
404,
30,
4957,
559,
273,
315,
5487,
14432,
898,
31,
1377,
648,
576,
30,
4957,
559,
273,
315,
474,
14432,
898,
31,
1377,
648,
890,
30,
4957,
559,
273,
315,
5659,
14432,
898,
31,
1377,
368,
4957,
559,
1059,
353,
2
] |
internalPostArguments.clear(); internalPostArguments.putAll(postArguments); return true; }
|
internalPostArguments.clear(); internalPostArguments.putAll(postArguments); return true; }
|
public final boolean processPost(Map postArguments) { internalPostArguments.clear(); internalPostArguments.putAll(postArguments); return true; }
|
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/c94b49d7784e4c6f8ec0f50a2412ccdbbf714f66/CheckCLDR.java/buggy/tools/java/org/unicode/cldr/test/CheckCLDR.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
727,
1250,
1207,
3349,
12,
863,
1603,
4628,
13,
288,
1082,
202,
7236,
3349,
4628,
18,
8507,
5621,
1082,
202,
7236,
3349,
4628,
18,
458,
1595,
12,
2767,
4628,
1769,
1082,
202,
2463,
638,
31,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
727,
1250,
1207,
3349,
12,
863,
1603,
4628,
13,
288,
1082,
202,
7236,
3349,
4628,
18,
8507,
5621,
1082,
202,
7236,
3349,
4628,
18,
458,
1595,
12,
2767,
4628,
1769,
1082,
202,
2463,
638,
31,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count);
|
int count = getShort(iCode, pc + 3); Object[] outArgs = getArgsArray(stack, sDbl, stackTop, count);
|
public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, NativeFunction fnOrScript, InterpreterData theData) throws JavaScriptException { if (cx.interpreterSecurityDomain != theData.securityDomain) { // If securityDomain is different, update domain in Cotext // and call self under new domain Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; try { return interpret(cx, scope, thisObj, args, fnOrScript, theData); } finally { cx.interpreterSecurityDomain = savedDomain; } } int i; Object lhs; final int maxStack = theData.itsMaxStack; final int maxVars = (fnOrScript.argNames == null) ? 0 : fnOrScript.argNames.length; final int maxLocals = theData.itsMaxLocals; final int maxTryDepth = theData.itsMaxTryDepth; final int VAR_SHFT = maxStack; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int TRY_SCOPE_SHFT = LOCAL_SHFT + maxLocals;// stack[0 <= i < VAR_SHFT]: stack data// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_SCOPE_SHFT]: used for newtemp/usetemp// stack[TRY_SCOPE_SHFT <= i]: try scopes// when 0 <= i < LOCAL_SHFT and stack[x] == DBL_MRK,// sDbl[i] gives the number value final Object DBL_MRK = Interpreter.DBL_MRK; Object[] stack = new Object[TRY_SCOPE_SHFT + maxTryDepth]; double[] sDbl = new double[TRY_SCOPE_SHFT]; int stackTop = -1; byte[] iCode = theData.itsICode; String[] strings = theData.itsStringTable; int pc = 0; int iCodeLength = theData.itsICodeTop; final Scriptable undefined = Undefined.instance; if (maxVars != 0) { int definedArgs = fnOrScript.argCount; if (definedArgs != 0) { if (definedArgs > args.length) { definedArgs = args.length; } for (i = 0; i != definedArgs; ++i) { stack[VAR_SHFT + i] = args[i]; } } for (i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } } if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs, val; double valDbl; boolean valBln; int count; int slot; String name = null; Object[] outArgs; int lIntValue; double lDbl; int rIntValue; double rDbl;// tryStack[2 * i]: starting pc of catch block// tryStack[2 * i + 1]: starting pc of finally block int[] tryStack = null; int tryStackTop = 0; InterpreterFrame frame = null; if (cx.debugger != null) { frame = new InterpreterFrame(scope, theData, fnOrScript); cx.pushFrame(frame); } Object result = undefined; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; while (pc < iCodeLength) { try { switch (iCode[pc] & 0xff) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : if (tryStackTop == 0) { tryStack = new int[maxTryDepth * 2]; } i = getTarget(iCode, pc + 1); if (i == pc) i = 0; tryStack[tryStackTop * 2] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; tryStack[tryStackTop * 2 + 1] = i; stack[TRY_SCOPE_SHFT + tryStackTop] = scope; ++tryStackTop; pc += 4; break; case TokenStream.GE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.GT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IN : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.INSTANCEOF : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.EQ : --stackTop; valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.NE : --stackTop; valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHEQ : --stackTop; valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHNE : --stackTop; valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IFNE : val = stack[stackTop]; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = (int)sDbl[LOCAL_SHFT + slot]; continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; case TokenStream.BITAND : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; case TokenStream.BITOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; case TokenStream.BITXOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; case TokenStream.LSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; case TokenStream.RSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; case TokenStream.URSH : rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; break; case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; case TokenStream.NEG : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; case TokenStream.POS : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; case TokenStream.MUL : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; case TokenStream.DIV : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; case TokenStream.MOD : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; case TokenStream.BINDNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; case TokenStream.GETBASE : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.getBase(scope, name); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; // what about class cast exception here for lhs? stack[stackTop] = ScriptRuntime.setName ((Scriptable)lhs, rhs, scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case TokenStream.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case TokenStream.PROPINC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; case TokenStream.CALLSPECIAL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int lineNum = getShort(iCode, pc + 1); name = strings[getShort(iCode, pc + 3)]; count = getShort(iCode, pc + 5); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, thisObj, scope, name, lineNum); pc += 6; instructionCount = cx.instructionCount; break; case TokenStream.CALL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined) { i = getShort(iCode, pc + 1); if (i != -1) lhs = strings[i]; } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject. getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.NEW : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined && getShort(iCode, pc + 1) != -1) { // special code for better error message for call // to undefined lhs = strings[getShort(iCode, pc + 1)]; } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = strings[getShort(iCode, pc + 1)]; pc += 2; break; case SHORTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc + 1); pc += 2; break; case INTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc + 1); pc += 4; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = theData. itsDoubleTable[getShort(iCode, pc + 1)]; pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.SETVAR : slot = (iCode[++pc] & 0xFF); stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; break; case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(result); case TokenStream.JTHROW : result = stack[stackTop]; // No need to check for DBL_MRK: result is Exception --stackTop; if (result instanceof JavaScriptException) throw (JavaScriptException)result; else throw (RuntimeException)result; case TokenStream.ENTERWITH : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime. nextEnum((Enumeration)val); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = getShort(iCode, pc + 1); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = getShort(iCode, pc + 1); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case SOURCEFILE_ICODE : cx.interpreterSourceFile = theData.itsSourceFile; break; case LINE_ICODE : case BREAKPOINT_ICODE : i = getShort(iCode, pc + 1); cx.interpreterLine = i; if (frame != null) frame.setLineNumber(i); if ((iCode[pc] & 0xff) == BREAKPOINT_ICODE || cx.inLineStepMode) { cx.getDebuggableEngine(). getDebugger().handleBreakpointHit(cx); } pc += 2; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (Throwable ex) { if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } final int SCRIPT_THROW = 0, ECMA = 1, RUNTIME = 2, OTHER = 3; int exType; Object errObj; // Object seen by catch for (;;) { if (ex instanceof JavaScriptException) { errObj = ScriptRuntime. unwrapJavaScriptException((JavaScriptException)ex); exType = SCRIPT_THROW; } else if (ex instanceof EcmaError) { // an offical ECMA error object, errObj = ((EcmaError)ex).getErrorObject(); exType = ECMA; } else if (ex instanceof WrappedException) { Object w = ((WrappedException) ex).unwrap(); if (w instanceof Throwable) { ex = (Throwable) w; continue; } errObj = ex; exType = RUNTIME; } else if (ex instanceof RuntimeException) { errObj = ex; exType = RUNTIME; } else { errObj = ex; // Error instance exType = OTHER; } break; } if (exType != OTHER && cx.debugger != null) { cx.debugger.handleExceptionThrown(cx, errObj); } boolean rethrow = true; if (exType != OTHER && tryStackTop > 0) { --tryStackTop; if (exType == SCRIPT_THROW || exType == ECMA) { // Check for catch only for // JavaScriptException and EcmaError pc = tryStack[tryStackTop * 2]; if (pc != 0) { // Has catch block rethrow = false; } } if (rethrow) { pc = tryStack[tryStackTop * 2 + 1]; if (pc != 0) { // has finally block rethrow = false; errObj = ex; } } } if (rethrow) { if (frame != null) cx.popFrame(); if (exType == SCRIPT_THROW) throw (JavaScriptException)ex; if (exType == ECMA || exType == RUNTIME) throw (RuntimeException)ex; throw (Error)ex; } // We caught an exception, // Notify instruction observer if necessary // and point pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc; // prepare stack and restore this function's security domain. scope = (Scriptable)stack[TRY_SCOPE_SHFT + tryStackTop]; stackTop = 0; stack[0] = errObj; } } if (frame != null) cx.popFrame(); if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } return result; }
|
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/052726b68e684efc593535d50a73767571084837/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
282,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
282,
16717,
2083,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
326,
751,
18,
7462,
3748,
13,
288,
6647,
368,
971,
4373,
3748,
353,
3775,
16,
1089,
2461,
316,
385,
352,
408,
6647,
368,
471,
745,
365,
3613,
394,
2461,
5411,
1033,
5198,
3748,
273,
9494,
18,
2761,
11599,
4368,
3748,
31,
5411,
9494,
18,
2761,
11599,
4368,
3748,
273,
326,
751,
18,
7462,
3748,
31,
5411,
775,
288,
7734,
327,
10634,
12,
71,
92,
16,
2146,
16,
15261,
16,
833,
16,
2295,
1162,
3651,
16,
326,
751,
1769,
5411,
289,
3095,
288,
7734,
9494,
18,
2761,
11599,
4368,
3748,
273,
5198,
3748,
31,
5411,
289,
3639,
289,
3639,
509,
277,
31,
3639,
1033,
8499,
31,
3639,
727,
509,
943,
2624,
273,
326,
751,
18,
1282,
2747,
2624,
31,
3639,
727,
509,
943,
5555,
273,
261,
4293,
1162,
3651,
18,
3175,
1557,
422,
446,
13,
18701,
692,
374,
294,
2295,
1162,
3651,
18,
3175,
1557,
18,
2469,
31,
3639,
727,
509,
943,
1333,
1031,
273,
326,
751,
18,
1282,
2747,
1333,
1031,
31,
3639,
727,
509,
943,
7833,
6148,
273,
326,
751,
18,
1282,
2747,
7833,
6148,
31,
3639,
727,
509,
8350,
67,
2664,
4464,
273,
943,
2624,
31,
3639,
727,
509,
15234,
67,
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,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
282,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
282,
16717,
2083,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
326,
751,
18,
7462,
3748,
13,
288,
6647,
368,
971,
4373,
3748,
353,
3775,
16,
1089,
2461,
316,
385,
352,
408,
6647,
368,
471,
745,
365,
3613,
394,
2461,
5411,
1033,
5198,
3748,
273,
9494,
18,
2761,
11599,
4368,
3748,
31,
5411,
9494,
18,
2761,
11599,
4368,
3748,
273,
326,
751,
18,
7462,
3748,
31,
5411,
775,
288,
7734,
327,
10634,
12,
71,
92,
16,
2
] |
if ( next_seq_id < 0 ) { return 0; }
|
if(next_seq_id < 0) { return 0; }
|
private synchronized int passUpMessages() { if ( next_seq_id < 0 ) { // don't know what to pass up so don't pass up anything return 0; } long lowest_seq_stored = queued_messages.getFirstSeq(); if ( lowest_seq_stored < 0 ) { // there are no messages stored return 0; } if ( lowest_seq_stored < next_seq_id ) { // it is bad to have messages stored that have a lower sequence id than what // we are expecting log.error( "Error: TOTAL_OLD.passUpMessages() - next expected sequence id (" + next_seq_id + ") is greater than the sequence id of a stored message (" + lowest_seq_stored + ')' ); return 0; } else if ( next_seq_id == lowest_seq_stored ) { // we can pass this first message up the Protocol Stack Message msg = queued_messages.getFirstMessage(); if ( msg == null ) { log.error( "Error: TOTAL_OLD.passUpMessages() - unexpected null Message retrieved from stored messages" ); return 0; } passUp( new Event( Event.MSG, msg ) ); // increment the next expected sequence id next_seq_id++; return (1 + passUpMessages()); } else { /* don't drop messages, it should be requesting resends // all messages stored have sequence ids greater than expected if ( queued_messages.getSize() > 10 ) { { log.error( "WARNING: TOTAL_OLD.passUpMessages() - more than 10 messages saved" ); log.error( "Dropping sequence id: " + next_seq_id ); } next_seq_id++; return passUpMessages(); } */ return 0; } }
|
49475 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49475/5ad015d9a78e1da3350d9b398b46b2f5d4508564/TOTAL_OLD.java/buggy/src/org/jgroups/protocols/TOTAL_OLD.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3852,
509,
1342,
1211,
5058,
1435,
288,
202,
430,
261,
1024,
67,
5436,
67,
350,
411,
374,
262,
288,
202,
565,
368,
2727,
1404,
5055,
4121,
358,
1342,
731,
1427,
2727,
1404,
1342,
731,
6967,
202,
565,
327,
374,
31,
202,
97,
202,
5748,
11981,
67,
5436,
67,
22601,
273,
12234,
67,
6833,
18,
588,
3759,
6926,
5621,
202,
430,
261,
11981,
67,
5436,
67,
22601,
411,
374,
262,
288,
202,
565,
368,
1915,
854,
1158,
2743,
4041,
202,
565,
327,
374,
31,
202,
97,
202,
430,
261,
11981,
67,
5436,
67,
22601,
411,
1024,
67,
5436,
67,
350,
262,
288,
202,
565,
368,
518,
353,
5570,
358,
1240,
2743,
4041,
716,
1240,
279,
2612,
3102,
612,
2353,
4121,
202,
565,
368,
282,
732,
854,
17012,
202,
565,
613,
18,
1636,
12,
315,
668,
30,
399,
19851,
67,
11846,
18,
5466,
1211,
5058,
1435,
300,
1024,
2665,
3102,
612,
7566,
397,
1024,
67,
5436,
67,
350,
397,
9369,
353,
6802,
2353,
326,
3102,
612,
434,
279,
4041,
883,
7566,
397,
11981,
67,
5436,
67,
22601,
397,
5777,
11272,
202,
565,
327,
374,
31,
202,
97,
469,
309,
261,
1024,
67,
5436,
67,
350,
422,
11981,
67,
5436,
67,
22601,
262,
288,
202,
565,
368,
732,
848,
1342,
333,
1122,
883,
731,
326,
4547,
7283,
202,
565,
2350,
1234,
273,
12234,
67,
6833,
18,
588,
3759,
1079,
5621,
202,
565,
309,
261,
1234,
422,
446,
262,
288,
202,
202,
1330,
18,
1636,
12,
315,
668,
30,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3852,
509,
1342,
1211,
5058,
1435,
288,
202,
430,
261,
1024,
67,
5436,
67,
350,
411,
374,
262,
288,
202,
565,
368,
2727,
1404,
5055,
4121,
358,
1342,
731,
1427,
2727,
1404,
1342,
731,
6967,
202,
565,
327,
374,
31,
202,
97,
202,
5748,
11981,
67,
5436,
67,
22601,
273,
12234,
67,
6833,
18,
588,
3759,
6926,
5621,
202,
430,
261,
11981,
67,
5436,
67,
22601,
411,
374,
262,
288,
202,
565,
368,
1915,
854,
1158,
2743,
4041,
202,
565,
327,
374,
31,
202,
97,
202,
430,
261,
11981,
67,
5436,
67,
22601,
411,
1024,
67,
5436,
67,
350,
262,
288,
202,
565,
368,
518,
353,
5570,
358,
1240,
2743,
4041,
716,
1240,
279,
2612,
3102,
612,
2
] |
if (array[i+1] > 0)
|
if (array[i + 1] > 0)
|
public int getNumLockedObjects() { int result = 0; for (int i = 0; i < array.length; i += 2) { if (array[i] == INVALID) break; if (array[i+1] > 0) ++result; } return result; }
|
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/4748a5a9b76f3dd763ee6bc7755c932a711bd6a6/LockSet.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/LockSet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
11187,
8966,
4710,
1435,
288,
202,
202,
474,
563,
273,
374,
31,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
526,
18,
2469,
31,
277,
1011,
576,
13,
288,
1082,
202,
430,
261,
1126,
63,
77,
65,
422,
10071,
13,
9506,
202,
8820,
31,
1082,
202,
430,
261,
1126,
63,
77,
15,
21,
65,
405,
374,
13,
9506,
202,
9904,
2088,
31,
202,
202,
97,
202,
202,
2463,
563,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
11187,
8966,
4710,
1435,
288,
202,
202,
474,
563,
273,
374,
31,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
526,
18,
2469,
31,
277,
1011,
576,
13,
288,
1082,
202,
430,
261,
1126,
63,
77,
65,
422,
10071,
13,
9506,
202,
8820,
31,
1082,
202,
430,
261,
1126,
63,
77,
15,
21,
65,
405,
374,
13,
9506,
202,
9904,
2088,
31,
202,
202,
97,
202,
202,
2463,
563,
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
] |
logger.info("Writing file to: " + file.getAbsolutePath()); FileOutputStream fos = new FileOutputStream(file, connector.isOutputAppend());
|
FileOutputStream fos = (FileOutputStream)getOutputStream(event.getEndpoint(), message);
|
public void doDispatch(UMOEvent event) throws Exception { String endpoint = event.getEndpoint().getEndpointURI().getAddress(); Object data = event.getTransformedMessage(); UMOMessage msg = event.getMessage(); String filename = msg.getStringProperty(FileConnector.PROPERTY_FILENAME, null); if (filename == null) { String outPattern = msg.getStringProperty(FileConnector.PROPERTY_OUTPUT_PATTERN, connector.getOutputPattern()); filename = generateFilename(event, outPattern); } if (filename == null) { throw new IOException("Filename is null"); } File file = Utility.createFile(endpoint + "/" + filename); byte[] buf; if (data instanceof byte[]) { buf = (byte[]) data; } else { buf = data.toString().getBytes(); } logger.info("Writing file to: " + file.getAbsolutePath()); FileOutputStream fos = new FileOutputStream(file, connector.isOutputAppend()); try { fos.write(buf); } finally { fos.close(); } }
|
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/589f59b15144184ea22999b384d5ea92ddec8bb9/FileMessageDispatcher.java/clean/providers/file/src/java/org/mule/providers/file/FileMessageDispatcher.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
5325,
12,
2799,
51,
1133,
871,
13,
1216,
1185,
288,
3639,
514,
2494,
273,
871,
18,
588,
3293,
7675,
588,
3293,
3098,
7675,
588,
1887,
5621,
3639,
1033,
501,
273,
871,
18,
588,
4059,
329,
1079,
5621,
3639,
587,
5980,
1079,
1234,
273,
871,
18,
24906,
5621,
3639,
514,
1544,
273,
1234,
18,
588,
780,
1396,
12,
812,
7487,
18,
9900,
67,
16080,
16,
446,
1769,
3639,
309,
261,
3459,
422,
446,
13,
288,
5411,
514,
596,
3234,
273,
1234,
18,
588,
780,
1396,
12,
812,
7487,
18,
9900,
67,
15527,
67,
10831,
16,
8703,
18,
588,
1447,
3234,
10663,
5411,
1544,
273,
2103,
5359,
12,
2575,
16,
596,
3234,
1769,
3639,
289,
3639,
309,
261,
3459,
422,
446,
13,
288,
5411,
604,
394,
1860,
2932,
5359,
353,
446,
8863,
3639,
289,
3639,
1387,
585,
273,
13134,
18,
2640,
812,
12,
8003,
397,
4016,
397,
1544,
1769,
3639,
1160,
8526,
1681,
31,
3639,
309,
261,
892,
1276,
1160,
63,
5717,
288,
5411,
1681,
273,
261,
7229,
63,
5717,
501,
31,
3639,
289,
469,
288,
5411,
1681,
273,
501,
18,
10492,
7675,
588,
2160,
5621,
3639,
289,
3639,
1194,
18,
1376,
2932,
18835,
585,
358,
30,
315,
397,
585,
18,
588,
10368,
743,
10663,
3639,
12942,
17615,
273,
394,
12942,
12,
768,
16,
8703,
18,
291,
1447,
5736,
10663,
3639,
775,
288,
5411,
17615,
18,
2626,
12,
4385,
1769,
3639,
289,
3095,
288,
5411,
17615,
18,
4412,
5621,
3639,
289,
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,
918,
741,
5325,
12,
2799,
51,
1133,
871,
13,
1216,
1185,
288,
3639,
514,
2494,
273,
871,
18,
588,
3293,
7675,
588,
3293,
3098,
7675,
588,
1887,
5621,
3639,
1033,
501,
273,
871,
18,
588,
4059,
329,
1079,
5621,
3639,
587,
5980,
1079,
1234,
273,
871,
18,
24906,
5621,
3639,
514,
1544,
273,
1234,
18,
588,
780,
1396,
12,
812,
7487,
18,
9900,
67,
16080,
16,
446,
1769,
3639,
309,
261,
3459,
422,
446,
13,
288,
5411,
514,
596,
3234,
273,
1234,
18,
588,
780,
1396,
12,
812,
7487,
18,
9900,
67,
15527,
67,
10831,
16,
8703,
18,
588,
1447,
3234,
10663,
5411,
1544,
273,
2103,
5359,
12,
2575,
16,
596,
3234,
1769,
3639,
289,
3639,
309,
2
] |
}
|
}
|
ServerConsumerEndpoint(String id, Channel channel, InvokerCallbackHandler callbackHandler, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal) throws InvalidSelectorException { log.debug("creating ServerConsumerDelegate[" + id + "]"); this.id = id; this.channel = channel; this.sessionEndpoint = sessionEndpoint; this.callbackHandler = callbackHandler; this.threadPool = sessionEndpoint.getConnectionEndpoint().getServerPeer().getThreadPool(); this.noLocal = noLocal; if (selector != null) { if (log.isTraceEnabled()) log.trace("creating selector:" + selector); this.messageSelector = new Selector(selector); if (log.isTraceEnabled()) log.trace("created selector"); } this.deliveries = new ArrayList(); this.started = sessionEndpoint.connectionEndpoint.started; this.channel.add(this); }
|
3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/eabc391bc69084d2ca0b175383e2960dc1a0f878/ServerConsumerEndpoint.java/clean/src/main/org/jboss/jms/server/endpoint/ServerConsumerEndpoint.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3224,
5869,
3293,
12,
780,
612,
16,
5307,
1904,
16,
540,
17602,
264,
2428,
1503,
1348,
1503,
16,
540,
3224,
2157,
3293,
1339,
3293,
16,
540,
514,
3451,
16,
1250,
1158,
2042,
13,
540,
1216,
1962,
4320,
503,
540,
288,
1377,
613,
18,
4148,
2932,
23799,
3224,
5869,
9586,
9614,
397,
612,
397,
9870,
1769,
5411,
333,
18,
350,
273,
612,
31,
5411,
333,
18,
4327,
273,
1904,
31,
5411,
333,
18,
3184,
3293,
273,
1339,
3293,
31,
5411,
333,
18,
3394,
1503,
273,
1348,
1503,
31,
5411,
333,
18,
5930,
2864,
273,
1339,
3293,
18,
588,
1952,
3293,
7675,
588,
2081,
6813,
7675,
588,
20621,
5621,
5411,
333,
18,
2135,
2042,
273,
1158,
2042,
31,
5411,
309,
261,
9663,
480,
446,
13,
1377,
288,
540,
309,
261,
1330,
18,
291,
3448,
1526,
10756,
613,
18,
5129,
2932,
23799,
3451,
2773,
397,
3451,
1769,
540,
333,
18,
2150,
4320,
273,
394,
11703,
12,
9663,
1769,
540,
309,
261,
1330,
18,
291,
3448,
1526,
10756,
613,
18,
5129,
2932,
4824,
3451,
8863,
1377,
289,
5411,
333,
18,
26672,
606,
273,
394,
2407,
5621,
5411,
333,
18,
14561,
273,
1339,
3293,
18,
4071,
3293,
18,
14561,
31,
5411,
333,
18,
4327,
18,
1289,
12,
2211,
1769,
9079,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3224,
5869,
3293,
12,
780,
612,
16,
5307,
1904,
16,
540,
17602,
264,
2428,
1503,
1348,
1503,
16,
540,
3224,
2157,
3293,
1339,
3293,
16,
540,
514,
3451,
16,
1250,
1158,
2042,
13,
540,
1216,
1962,
4320,
503,
540,
288,
1377,
613,
18,
4148,
2932,
23799,
3224,
5869,
9586,
9614,
397,
612,
397,
9870,
1769,
5411,
333,
18,
350,
273,
612,
31,
5411,
333,
18,
4327,
273,
1904,
31,
5411,
333,
18,
3184,
3293,
273,
1339,
3293,
31,
5411,
333,
18,
3394,
1503,
273,
1348,
1503,
31,
5411,
333,
18,
5930,
2864,
273,
1339,
3293,
18,
588,
1952,
3293,
7675,
588,
2081,
6813,
7675,
588,
20621,
5621,
5411,
333,
18,
2135,
2042,
273,
1158,
2042,
31,
5411,
309,
2
] |
pluginId = IRuntimeConstants.NAME;
|
pluginId = IRuntimeConstants.PI_COMMON;
|
private static void handleException(ISafeRunnable code, Throwable e) { if (!(e instanceof OperationCanceledException)) { // try to obtain the correct plug-in id for the bundle providing the safe runnable Activator activator = Activator.getDefault(); String pluginId = null; if (activator != null) pluginId = activator.getBundleId(code); if (pluginId == null) pluginId = IRuntimeConstants.NAME; String message = NLS.bind(CommonMessages.meta_pluginProblems, pluginId); IStatus status; if (e instanceof CoreException) { status = new MultiStatus(pluginId, IRuntimeConstants.PLUGIN_ERROR, message, e); ((MultiStatus) status).merge(((CoreException) e).getStatus()); } else { status = new Status(IStatus.ERROR, pluginId, IRuntimeConstants.PLUGIN_ERROR, message, e); } // Make sure user sees the exception: if the log is empty, log the exceptions on stderr if (!RuntimeLog.isEmpty()) RuntimeLog.log(status); else e.printStackTrace(); } code.handleException(e); }
|
13530 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13530/cf9cd81b1c2662ebb2dc2b038e904a4b16138c15/SafeRunner.java/clean/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/SafeRunner.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
20879,
12,
5127,
2513,
20013,
981,
16,
4206,
425,
13,
288,
202,
202,
430,
16051,
12,
73,
1276,
4189,
23163,
503,
3719,
288,
1082,
202,
759,
775,
358,
7161,
326,
3434,
15852,
17,
267,
612,
364,
326,
3440,
17721,
326,
4183,
14685,
1875,
202,
12241,
639,
5981,
639,
273,
26939,
639,
18,
588,
1868,
5621,
1082,
202,
780,
1909,
548,
273,
446,
31,
1082,
202,
430,
261,
11422,
639,
480,
446,
13,
9506,
202,
4094,
548,
273,
5981,
639,
18,
588,
3405,
548,
12,
710,
1769,
1082,
202,
430,
261,
4094,
548,
422,
446,
13,
9506,
202,
4094,
548,
273,
467,
5576,
2918,
18,
1985,
31,
1082,
202,
780,
883,
273,
29117,
18,
4376,
12,
6517,
5058,
18,
3901,
67,
4094,
626,
19122,
16,
1909,
548,
1769,
1082,
202,
45,
1482,
1267,
31,
1082,
202,
430,
261,
73,
1276,
30015,
13,
288,
9506,
202,
2327,
273,
394,
5991,
1482,
12,
4094,
548,
16,
467,
5576,
2918,
18,
19415,
67,
3589,
16,
883,
16,
425,
1769,
9506,
202,
12443,
5002,
1482,
13,
1267,
2934,
2702,
12443,
12,
25341,
13,
425,
2934,
588,
1482,
10663,
1082,
202,
97,
469,
288,
9506,
202,
2327,
273,
394,
2685,
12,
45,
1482,
18,
3589,
16,
1909,
548,
16,
467,
5576,
2918,
18,
19415,
67,
3589,
16,
883,
16,
425,
1769,
1082,
202,
97,
1082,
202,
759,
4344,
3071,
729,
29308,
326,
1520,
30,
309,
326,
613,
353,
1008,
16,
613,
326,
4798,
603,
4514,
1875,
202,
430,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
20879,
12,
5127,
2513,
20013,
981,
16,
4206,
425,
13,
288,
202,
202,
430,
16051,
12,
73,
1276,
4189,
23163,
503,
3719,
288,
1082,
202,
759,
775,
358,
7161,
326,
3434,
15852,
17,
267,
612,
364,
326,
3440,
17721,
326,
4183,
14685,
1875,
202,
12241,
639,
5981,
639,
273,
26939,
639,
18,
588,
1868,
5621,
1082,
202,
780,
1909,
548,
273,
446,
31,
1082,
202,
430,
261,
11422,
639,
480,
446,
13,
9506,
202,
4094,
548,
273,
5981,
639,
18,
588,
3405,
548,
12,
710,
1769,
1082,
202,
430,
261,
4094,
548,
422,
446,
13,
9506,
202,
4094,
548,
273,
467,
5576,
2918,
18,
1985,
31,
1082,
202,
780,
883,
273,
29117,
18,
4376,
2
] |
UDPAcceptor pa2 = new UDPAcceptor(PPORT_2,RouterService.getPort(), savedFile.getName(),pusher2,guid);
|
new UDPAcceptor(PPORT_2,RouterService.getPort(), savedFile.getName(),pusher2,guid);
|
public void testPushLocUpdatesStatus() throws Exception { LOG.info("testing that a push loc updates its status"); final int RATE=100; UDPService.instance().setReceiveSolicited(true); uploader1.setRate(RATE); uploader1.stopAfter(900000); uploader1.setInterestedInFalts(true); TestUploader pusher2 = new TestUploader("firewalled pusher"); pusher2.setRate(RATE); pusher2.stopAfter(200000); pusher2.setFirewalled(true); pusher2.setProxiesString("1.2.3.4:5,6.7.8.9:10"); pusher2.setInterestedInFalts(true); // create a set of the expected proxies and keep a ref to it PushEndpoint pe = new PushEndpoint(guid.toHexString()+";1.2.3.4:5;6.7.8.9:10"); Set expectedProxies = new IpPortSet(); expectedProxies.addAll(pe.getProxies()); PushAltLoc pushLocFWT = (PushAltLoc)AlternateLocation.create( guid.toHexString()+";5:4.3.2.1;127.0.0.1:"+PPORT_2,TestFile.hash()); pushLocFWT.updateProxies(true); assertEquals(1,pushLocFWT.getPushAddress().getProxies().size()); RemoteFileDesc openRFD = newRFDWithURN(PORT_1,100); RemoteFileDesc pushRFD2 = newRFDPush(PPORT_2,3); assertFalse(pushRFD2.supportsFWTransfer()); assertTrue(pushRFD2.needsPush()); UDPAcceptor pa2 = new UDPAcceptor(PPORT_2,RouterService.getPort(), savedFile.getName(),pusher2,guid); RemoteFileDesc [] now = {pushRFD2}; ManagedDownloader download= (ManagedDownloader)RouterService.download(now, Collections.EMPTY_LIST, null, false); Thread.sleep(2000); download.addDownload(openRFD,false); waitForComplete(); List alc = uploader1.incomingGoodAltLocs; assertEquals(1,alc.size()); PushAltLoc pushLoc = (PushAltLoc)alc.iterator().next(); assertEquals(UDPConnection.VERSION,pushLoc.supportsFWTVersion()); RemoteFileDesc readRFD = pushLoc.createRemoteFileDesc(1); assertTrue(readRFD.supportsFWTransfer()); assertEquals(expectedProxies.size(),readRFD.getPushProxies().size()); assertTrue(expectedProxies.containsAll(readRFD.getPushProxies())); }
|
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/8f09cbae9055f6d7672a5b87234eaa270bde5449/DownloadTest.java/buggy/components/gnutella-core/src/test/java/com/limegroup/gnutella/downloader/DownloadTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
7621,
1333,
5121,
1482,
1435,
1216,
1185,
288,
3639,
2018,
18,
1376,
2932,
3813,
310,
716,
279,
1817,
1515,
4533,
2097,
1267,
8863,
3639,
727,
509,
534,
1777,
33,
6625,
31,
7734,
16230,
1179,
18,
1336,
7675,
542,
11323,
55,
1415,
16261,
12,
3767,
1769,
3639,
25062,
21,
18,
542,
4727,
12,
24062,
1769,
3639,
25062,
21,
18,
5681,
4436,
12,
29,
11706,
1769,
3639,
25062,
21,
18,
542,
2465,
3149,
382,
42,
2390,
87,
12,
3767,
1769,
7734,
7766,
28161,
1817,
264,
22,
273,
394,
7766,
28161,
2932,
12179,
91,
4502,
1817,
264,
8863,
3639,
1817,
264,
22,
18,
542,
4727,
12,
24062,
1769,
3639,
1817,
264,
22,
18,
5681,
4436,
12,
22,
11706,
1769,
3639,
1817,
264,
22,
18,
542,
9723,
91,
4502,
12,
3767,
1769,
3639,
1817,
264,
22,
18,
542,
21488,
780,
2932,
21,
18,
22,
18,
23,
18,
24,
30,
25,
16,
26,
18,
27,
18,
28,
18,
29,
30,
2163,
8863,
3639,
1817,
264,
22,
18,
542,
2465,
3149,
382,
42,
2390,
87,
12,
3767,
1769,
7734,
368,
752,
279,
444,
434,
326,
2665,
13263,
471,
3455,
279,
1278,
358,
518,
3639,
8547,
3293,
2804,
273,
394,
8547,
3293,
12,
14066,
18,
869,
14866,
1435,
9078,
31,
21,
18,
22,
18,
23,
18,
24,
30,
25,
31,
26,
18,
27,
18,
28,
18,
29,
30,
2163,
8863,
7734,
1000,
2665,
21488,
273,
394,
14709,
2617,
694,
5621,
3639,
2665,
21488,
18,
1289,
1595,
12,
347,
18,
588,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
7621,
1333,
5121,
1482,
1435,
1216,
1185,
288,
3639,
2018,
18,
1376,
2932,
3813,
310,
716,
279,
1817,
1515,
4533,
2097,
1267,
8863,
3639,
727,
509,
534,
1777,
33,
6625,
31,
7734,
16230,
1179,
18,
1336,
7675,
542,
11323,
55,
1415,
16261,
12,
3767,
1769,
3639,
25062,
21,
18,
542,
4727,
12,
24062,
1769,
3639,
25062,
21,
18,
5681,
4436,
12,
29,
11706,
1769,
3639,
25062,
21,
18,
542,
2465,
3149,
382,
42,
2390,
87,
12,
3767,
1769,
7734,
7766,
28161,
1817,
264,
22,
273,
394,
7766,
28161,
2932,
12179,
91,
4502,
1817,
264,
8863,
3639,
1817,
264,
22,
18,
542,
4727,
12,
24062,
1769,
3639,
1817,
264,
22,
18,
5681,
4436,
12,
22,
11706,
2
] |
public org.quickfix.field.IOIid getIOIid() throws FieldNotFound { org.quickfix.field.IOIid value = new org.quickfix.field.IOIid();
|
public quickfix.field.IOIid getIOIid() throws FieldNotFound { quickfix.field.IOIid value = new quickfix.field.IOIid();
|
public org.quickfix.field.IOIid getIOIid() throws FieldNotFound { org.quickfix.field.IOIid value = new org.quickfix.field.IOIid(); getField(value); return value; }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderMultileg.java/buggy/src/java/src/quickfix/fix43/NewOrderMultileg.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
4294,
45,
350,
336,
4294,
45,
350,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
4294,
45,
350,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
4294,
45,
350,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
4294,
45,
350,
336,
4294,
45,
350,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
4294,
45,
350,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
4294,
45,
350,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
}
|
}
|
public String getName() { return "Rarefy Tree"; }
|
57538 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57538/88e3c75ba71c7c3e23478b1c3ff126ef3c6fe3ab/RarefyTree.java/clean/branches/Mesquite1.x/Mesquite Project/Source/mesquite/treefarm/RarefyTree/RarefyTree.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1377,
202,
1071,
514,
1723,
1435,
288,
202,
202,
2463,
315,
54,
834,
74,
93,
4902,
14432,
565,
202,
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,
1377,
202,
1071,
514,
1723,
1435,
288,
202,
202,
2463,
315,
54,
834,
74,
93,
4902,
14432,
565,
202,
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
] |
return currentSibling.next();
|
while (true) { Object result = childrenOrSelf.previous(); if (childrenOrSelf.hasPrevious()) { stack.push(childrenOrSelf); childrenOrSelf = childrenOrSelf(result); continue; } return result; }
|
public Object next() throws NoSuchElementException { if ( ! hasNext() ) { throw new NoSuchElementException(); } return currentSibling.next(); }
|
47970 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47970/4ac3d5f8a840c3c94435b5d7a3ece8882593d8b2/PrecedingAxisIterator.java/buggy/src/java/main/org/jaxen/util/PrecedingAxisIterator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1024,
1435,
1216,
23104,
565,
288,
3639,
309,
261,
401,
4564,
1435,
262,
3639,
288,
5411,
604,
394,
23104,
5621,
3639,
289,
4202,
1323,
261,
3767,
13,
288,
1033,
563,
273,
2325,
1162,
10084,
18,
11515,
5621,
309,
261,
5906,
1162,
10084,
18,
5332,
8351,
10756,
288,
225,
2110,
18,
6206,
12,
5906,
1162,
10084,
1769,
2325,
1162,
10084,
273,
2325,
1162,
10084,
12,
2088,
1769,
1324,
31,
289,
327,
563,
31,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1024,
1435,
1216,
23104,
565,
288,
3639,
309,
261,
401,
4564,
1435,
262,
3639,
288,
5411,
604,
394,
23104,
5621,
3639,
289,
4202,
1323,
261,
3767,
13,
288,
1033,
563,
273,
2325,
1162,
10084,
18,
11515,
5621,
309,
261,
5906,
1162,
10084,
18,
5332,
8351,
10756,
288,
225,
2110,
18,
6206,
12,
5906,
1162,
10084,
1769,
2325,
1162,
10084,
273,
2325,
1162,
10084,
12,
2088,
1769,
1324,
31,
289,
327,
563,
31,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return classLoader;
|
return vmClassLoader;
|
public static VM_SystemClassLoader getVMClassLoader() { return classLoader; }
|
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/220706ac8e24c4eb9124a4025dcee5f246daa751/VM_SystemClassLoader.java/buggy/rvm/src/vm/classLoader/VM_SystemClassLoader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
8251,
67,
3163,
7805,
336,
7397,
7805,
1435,
288,
377,
327,
4268,
7805,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8251,
67,
3163,
7805,
336,
7397,
7805,
1435,
288,
377,
327,
4268,
7805,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
startIndex = spanNumber.intValue() * numberOfElementsInSpan.intValue();
|
startIndex = spanNumber.intValue() * numberOfElementsInSpan.intValue();
|
public Iterator readSpanIterator(Class classToQuery, Criteria criteria, Integer numberOfElementsInSpan, Integer spanNumber) { if (numberOfElementsInSpan == null || numberOfElementsInSpan.intValue() == 0) { throw new IllegalArgumentException( "Invalid numberOfElementsInSpan!"); } PersistenceBroker pb = getCurrentPersistenceBroker(); Query query = getQuery(classToQuery, criteria); int startIndex = 1; if (spanNumber.intValue() != 0) { startIndex = spanNumber.intValue() * numberOfElementsInSpan.intValue(); } query.setStartAtIndex(startIndex); int endIndex = startIndex + numberOfElementsInSpan.intValue() - 1; query.setEndAtIndex(endIndex); Iterator iterator = pb.getIteratorByQuery(query); return iterator; }
|
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/2038bcc96ffffd1c5b7f7b2e797acaec0954d478/ObjectFenixOJB.java/clean/src/ServidorPersistente/OJB/ObjectFenixOJB.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4498,
855,
6952,
3198,
12,
797,
667,
774,
1138,
16,
8356,
3582,
16,
5411,
2144,
7922,
3471,
382,
6952,
16,
2144,
4548,
1854,
13,
565,
288,
3639,
309,
261,
2696,
951,
3471,
382,
6952,
422,
446,
7734,
747,
7922,
3471,
382,
6952,
18,
474,
620,
1435,
422,
374,
13,
288,
604,
394,
2754,
12,
7734,
315,
1941,
7922,
3471,
382,
6952,
4442,
1769,
289,
3639,
13381,
11194,
6386,
273,
5175,
13182,
11194,
5621,
3639,
2770,
843,
273,
6041,
12,
1106,
774,
1138,
16,
3582,
1769,
3639,
509,
10588,
273,
404,
31,
3639,
309,
261,
3969,
1854,
18,
474,
620,
1435,
480,
374,
13,
3639,
288,
5411,
10588,
273,
4548,
1854,
18,
474,
620,
1435,
10792,
380,
7922,
3471,
382,
6952,
18,
474,
620,
5621,
3639,
289,
3639,
843,
18,
542,
1685,
24499,
12,
1937,
1016,
1769,
3639,
509,
13818,
273,
10588,
397,
7922,
3471,
382,
6952,
18,
474,
620,
1435,
300,
404,
31,
3639,
843,
18,
542,
1638,
24499,
12,
409,
1016,
1769,
3639,
4498,
2775,
273,
6386,
18,
588,
3198,
26749,
12,
2271,
1769,
3639,
327,
2775,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4498,
855,
6952,
3198,
12,
797,
667,
774,
1138,
16,
8356,
3582,
16,
5411,
2144,
7922,
3471,
382,
6952,
16,
2144,
4548,
1854,
13,
565,
288,
3639,
309,
261,
2696,
951,
3471,
382,
6952,
422,
446,
7734,
747,
7922,
3471,
382,
6952,
18,
474,
620,
1435,
422,
374,
13,
288,
604,
394,
2754,
12,
7734,
315,
1941,
7922,
3471,
382,
6952,
4442,
1769,
289,
3639,
13381,
11194,
6386,
273,
5175,
13182,
11194,
5621,
3639,
2770,
843,
273,
6041,
12,
1106,
774,
1138,
16,
3582,
1769,
3639,
509,
10588,
273,
404,
31,
3639,
309,
261,
3969,
1854,
18,
474,
620,
1435,
480,
374,
13,
3639,
288,
5411,
10588,
273,
4548,
1854,
18,
474,
620,
1435,
10792,
380,
7922,
2
] |
private void speechStart() { insertSpeechStart(); setLastStartLowFrame(null); inSpeech = true; endLowFrames = 0; endOffsetFrame = null; numSpeechSegments++; }
|
52185 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52185/21136c102446850a55b97781c007cf4a911811a2/EnergyEndpointer.java/buggy/edu/cmu/sphinx/frontend/endpoint/EnergyEndpointer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
6459,
87,
12510,
1685,
1435,
95,
6387,
22334,
1685,
5621,
542,
3024,
1685,
10520,
3219,
12,
2011,
1769,
267,
22334,
33,
3767,
31,
409,
10520,
15162,
33,
20,
31,
409,
2335,
3219,
33,
2011,
31,
2107,
22334,
7946,
9904,
31,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3238,
6459,
87,
12510,
1685,
1435,
95,
6387,
22334,
1685,
5621,
542,
3024,
1685,
10520,
3219,
12,
2011,
1769,
267,
22334,
33,
3767,
31,
409,
10520,
15162,
33,
20,
31,
409,
2335,
3219,
33,
2011,
31,
2107,
22334,
7946,
9904,
31,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
||
CSSConstants.CSS_BORDER_LEFT_STYLE_PROPERTY);
|
CSSConstants.CSS_BORDER_LEFT_STYLE_PROPERTY );
|
public BIRTPropertyManagerFactory() { vms = new ValueManager[PerfectHash.TOTAL_KEYWORDS]; vms[StyleConstants.STYLE_TEXT_ALIGN] = new TextAlignManager(CSSConstants.CSS_TEXT_ALIGN_PROPERTY); vms[StyleConstants.STYLE_TEXT_INDENT] = new LengthManager(CSSConstants.CSS_TEXT_INDENT_PROPERTY, true, CSSValueConstants.NUMBER_0); vms[StyleConstants.STYLE_NUMBER_ALIGN] = new TextAlignManager(BIRTConstants.BIRT_NUMBER_ALIGN_PROPERTY); vms[StyleConstants.STYLE_NUMBER_FORMAT] = new RawStringManager(BIRTConstants.BIRT_NUMBER_FORMAT_PROPERTY,true, null); vms[StyleConstants.STYLE_STRING_FORMAT] = new RawStringManager(BIRTConstants.BIRT_STRING_FORMAT_PROPERTY,true, null); vms[StyleConstants.STYLE_DATE_FORMAT] = new RawStringManager(BIRTConstants.BIRT_DATE_TIME_FORMAT_PROPERTY,true, null); vms[StyleConstants.STYLE_VERTICAL_ALIGN] = new VerticalAlignManager(); vms[StyleConstants.STYLE_LINE_HEIGHT] = new LineHeightManager(); vms[StyleConstants.STYLE_BACKGROUND_REPEAT] = new BackgroundRepeatManager(); vms[StyleConstants.STYLE_BACKGROUND_ATTACHMENT] = new BackgroundAttachmentManager(); vms[StyleConstants.STYLE_CAN_SHRINK] = new BooleanManager(BIRTConstants.BIRT_CAN_SHRINK_PROPERTY, true, false); vms[StyleConstants.STYLE_TEXT_OVERLINE] = new BooleanManager(BIRTConstants.BIRT_TEXT_OVERLINE_PROPERTY, true, false); vms[StyleConstants.STYLE_TEXT_UNDERLINE] = new BooleanManager(BIRTConstants.BIRT_TEXT_UNDERLINE_PROPERTY, true, false); vms[StyleConstants.STYLE_BACKGROUND_IMAGE] = new URIManager(CSSConstants.CSS_BACKGROUND_IMAGE_PROPERTY, false, CSSValueConstants.NONE_VALUE); vms[StyleConstants.STYLE_BORDER_TOP_STYLE] = new BorderStyleManager(CSSConstants.CSS_BORDER_TOP_STYLE_PROPERTY); vms[StyleConstants.STYLE_BORDER_LEFT_STYLE] = new BorderStyleManager( CSSConstants.CSS_BORDER_LEFT_STYLE_PROPERTY); vms[StyleConstants.STYLE_BORDER_RIGHT_STYLE] = new BorderStyleManager( CSSConstants.CSS_BORDER_RIGHT_STYLE_PROPERTY); vms[StyleConstants.STYLE_BORDER_BOTTOM_STYLE] = new BorderStyleManager( CSSConstants.CSS_BORDER_BOTTOM_STYLE_PROPERTY); vms[StyleConstants.STYLE_COLOR] = new ColorManager(CSSConstants.CSS_COLOR_PROPERTY, true, CSSValueConstants.BLACK_RGB_VALUE ); vms[StyleConstants.STYLE_BORDER_TOP_WIDTH] = new BorderWidthManager(CSSConstants.CSS_BORDER_TOP_WIDTH_PROPERTY); vms[StyleConstants.STYLE_TEXT_LINETHROUGH] = new BooleanManager(BIRTConstants.BIRT_TEXT_LINETHROUGH_PROPERTY, true, false); vms[StyleConstants.STYLE_BORDER_LEFT_WIDTH] = new BorderWidthManager(CSSConstants.CSS_BORDER_LEFT_WIDTH_PROPERTY); vms[StyleConstants.STYLE_BORDER_RIGHT_WIDTH] = new BorderWidthManager(CSSConstants.CSS_BORDER_RIGHT_WIDTH_PROPERTY); vms[StyleConstants.STYLE_BORDER_BOTTOM_WIDTH] = new BorderWidthManager(CSSConstants.CSS_BORDER_BOTTOM_WIDTH_PROPERTY); vms[StyleConstants.STYLE_BACKGROUND_COLOR] = new ColorManager(CSSConstants.CSS_BACKGROUND_COLOR_PROPERTY, false, CSSValueConstants.TRANSPARENT_VALUE); vms[StyleConstants.STYLE_BORDER_TOP_COLOR] = new BorderColorManager( CSSConstants.CSS_BORDER_TOP_COLOR_PROPERTY); vms[StyleConstants.STYLE_BORDER_LEFT_COLOR] = new BorderColorManager(CSSConstants.CSS_BORDER_LEFT_COLOR_PROPERTY); vms[StyleConstants.STYLE_BORDER_RIGHT_COLOR] = new BorderColorManager(CSSConstants.CSS_BORDER_RIGHT_COLOR_PROPERTY); vms[StyleConstants.STYLE_BORDER_BOTTOM_COLOR] = new BorderColorManager(CSSConstants.CSS_BORDER_BOTTOM_COLOR_PROPERTY); vms[StyleConstants.STYLE_LETTER_SPACING] = new SpacingManager( CSSConstants.CSS_LETTER_SPACING_PROPERTY); vms[StyleConstants.STYLE_FONT_WEIGHT] = new FontWeightManager(); vms[StyleConstants.STYLE_FONT_VARIANT] = new FontVariantManager(); vms[StyleConstants.STYLE_MARGIN_LEFT] = new MarginManager(CSSConstants.CSS_MARGIN_LEFT_PROPERTY); vms[StyleConstants.STYLE_MARGIN_RIGHT] = new MarginManager(CSSConstants.CSS_MARGIN_RIGHT_PROPERTY); vms[StyleConstants.STYLE_DISPLAY] = new DisplayManager(); vms[StyleConstants.STYLE_TEXT_TRANSFORM] = new TextTransformManager(); vms[StyleConstants.STYLE_BACKGROUND_POSITION_Y] = new BackgroundPositionYManager(); vms[StyleConstants.STYLE_PADDING_LEFT] = new LengthManager( CSSConstants.CSS_PADDING_LEFT_PROPERTY, false, CSSValueConstants.NUMBER_0); vms[StyleConstants.STYLE_PADDING_RIGHT] = new LengthManager(CSSConstants.CSS_PADDING_RIGHT_PROPERTY, false, CSSValueConstants.NUMBER_0); vms[StyleConstants.STYLE_FONT_SIZE] = new FontSizeManager(); vms[StyleConstants.STYLE_FONT_STYLE] = new FontStyleManager(); vms[StyleConstants.STYLE_WHITE_SPACE] = new WhiteSpaceManager(); vms[StyleConstants.STYLE_ORPHANS] = new IntegerManager( CSSConstants.CSS_ORPHANS_PROPERTY, true, 2); //TODO: check the masterpage default value vms[StyleConstants.STYLE_MASTER_PAGE] = new RawStringManager(BIRTConstants.BIRT_MASTER_PAGE_PROPERTY, false, null); vms[StyleConstants.STYLE_WORD_SPACING] = new SpacingManager( CSSConstants.CSS_WORD_SPACING_PROPERTY); vms[StyleConstants.STYLE_BACKGROUND_POSITION_X] = new BackgroundPositionXManager(); vms[StyleConstants.STYLE_PAGE_BREAK_BEFORE] = new PageBreakBeforeAfterManager(CSSConstants.CSS_PAGE_BREAK_BEFORE_PROPERTY); vms[StyleConstants.STYLE_PAGE_BREAK_INSIDE] = new PageBreakInsideManager(); vms[StyleConstants.STYLE_SHOW_IF_BLANK] = new BooleanManager(BIRTConstants.BIRT_SHOW_IF_BLANK_PROPERTY, true, false); vms[StyleConstants.STYLE_FONT_FAMILY] = new FontFamilyManager(); vms[StyleConstants.STYLE_PAGE_BREAK_AFTER] = new PageBreakBeforeAfterManager(CSSConstants.CSS_PAGE_BREAK_AFTER_PROPERTY); vms[StyleConstants.STYLE_MARGIN_BOTTOM] = new MarginManager(CSSConstants.CSS_MARGIN_BOTTOM_PROPERTY); vms[StyleConstants.STYLE_MARGIN_TOP] = new MarginManager(CSSConstants.CSS_MARGIN_TOP_PROPERTY); vms[StyleConstants.STYLE_WIDOWS] = new IntegerManager( CSSConstants.CSS_WIDOWS_PROPERTY, true, 2); vms[StyleConstants.STYLE_PADDING_BOTTOM] = new LengthManager(CSSConstants.CSS_PADDING_BOTTOM_PROPERTY, false, CSSValueConstants.NUMBER_0); vms[StyleConstants.STYLE_PADDING_TOP] = new LengthManager( CSSConstants.CSS_PADDING_TOP_PROPERTY, false, CSSValueConstants.NUMBER_0); vms[StyleConstants.STYLE_VISIBLE_FORMAT] = new VisibleFormatManager(); }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/c9f7273acdf9d13e5d9fc425fff8c5f8996f2250/BIRTPropertyManagerFactory.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/css/engine/BIRTPropertyManagerFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
605,
7937,
56,
1396,
20012,
1435,
288,
202,
202,
31032,
273,
394,
1445,
1318,
63,
22016,
386,
2310,
18,
28624,
67,
3297,
23287,
15533,
9506,
202,
31032,
63,
2885,
2918,
18,
15066,
67,
5151,
67,
26439,
65,
273,
394,
3867,
10044,
1318,
12,
10276,
2918,
18,
10276,
67,
5151,
67,
26439,
67,
9900,
1769,
202,
202,
31032,
63,
2885,
2918,
18,
15066,
67,
5151,
67,
2356,
2222,
65,
273,
394,
11311,
1318,
12,
10276,
2918,
18,
10276,
67,
5151,
67,
2356,
2222,
67,
9900,
16,
638,
16,
6765,
620,
2918,
18,
9931,
67,
20,
1769,
202,
202,
31032,
63,
2885,
2918,
18,
15066,
67,
9931,
67,
26439,
65,
273,
394,
3867,
10044,
1318,
12,
38,
7937,
56,
2918,
18,
38,
7937,
56,
67,
9931,
67,
26439,
67,
9900,
1769,
9506,
202,
31032,
63,
2885,
2918,
18,
15066,
67,
9931,
67,
7254,
65,
273,
394,
6576,
780,
1318,
12,
38,
7937,
56,
2918,
18,
38,
7937,
56,
67,
9931,
67,
7254,
67,
9900,
16,
3767,
16,
446,
1769,
202,
202,
31032,
63,
2885,
2918,
18,
15066,
67,
5804,
67,
7254,
65,
273,
394,
6576,
780,
1318,
12,
38,
7937,
56,
2918,
18,
38,
7937,
56,
67,
5804,
67,
7254,
67,
9900,
16,
3767,
16,
446,
1769,
202,
202,
31032,
63,
2885,
2918,
18,
15066,
67,
4594,
67,
7254,
65,
273,
394,
6576,
780,
1318,
12,
38,
7937,
56,
2918,
18,
38,
7937,
56,
67,
4594,
67,
4684,
67,
7254,
67,
9900,
16,
3767,
16,
446,
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,
605,
7937,
56,
1396,
20012,
1435,
288,
202,
202,
31032,
273,
394,
1445,
1318,
63,
22016,
386,
2310,
18,
28624,
67,
3297,
23287,
15533,
9506,
202,
31032,
63,
2885,
2918,
18,
15066,
67,
5151,
67,
26439,
65,
273,
394,
3867,
10044,
1318,
12,
10276,
2918,
18,
10276,
67,
5151,
67,
26439,
67,
9900,
1769,
202,
202,
31032,
63,
2885,
2918,
18,
15066,
67,
5151,
67,
2356,
2222,
65,
273,
394,
11311,
1318,
12,
10276,
2918,
18,
10276,
67,
5151,
67,
2356,
2222,
67,
9900,
16,
638,
16,
6765,
620,
2918,
18,
9931,
67,
20,
1769,
202,
202,
31032,
63,
2885,
2918,
18,
15066,
67,
9931,
67,
26439,
65,
273,
394,
3867,
10044,
1318,
12,
38,
7937,
2
] |
public synchronized void next(Message message) throws FieldNotFound, RejectLogon, IncorrectDataFormat, IncorrectTagValue, UnsupportedMessageType, IOException, InvalidMessage { state.setConnected(true); if (!checkSessionTime()) { reset(); return; } String msgType = message.getHeader().getString(MsgType.FIELD); try { if (isStateRefreshNeeded(msgType)) { if (getStore() instanceof RefreshableMessageStore) { getLog().onEvent("Refreshing message/state store at logon"); ((RefreshableMessageStore) getStore()).refresh(); } else { getLog().onEvent( "Refresh at logon requested, but message store not capable: " + getStore().getClass().getName()); } } String beginString = message.getHeader().getString(BeginString.FIELD); if (!beginString.equals(sessionID.getBeginString())) { throw new UnsupportedVersion(); } if (dataDictionary != null) { dataDictionary.validate(message); } if (msgType.equals(MsgType.LOGON)) { nextLogon(message); } else if (msgType.equals(MsgType.HEARTBEAT)) { nextHeartBeat(message); } else if (msgType.equals(MsgType.TEST_REQUEST)) { nextTestRequest(message); } else if (msgType.equals(MsgType.SEQUENCE_RESET)) { nextSequenceReset(message); } else if (msgType.equals(MsgType.LOGOUT)) { nextLogout(message); } else if (msgType.equals(MsgType.RESEND_REQUEST)) { nextResendRequest(message); } else if (msgType.equals(MsgType.REJECT)) { nextReject(message); } else { if (!verify(message)) { return; } state.incrNextTargetMsgSeqNum(); } } catch (FieldException e) { generateReject(message, e.getSessionRejectReason(), e.getField()); } catch (FieldNotFound e) { if (sessionID.getBeginString().compareTo(FixVersions.BEGINSTRING_FIX42) >= 0 && message.isApp()) { generateBusinessReject(message, BusinessRejectReason.CONDITIONALLY_REQUIRED_FIELD_MISSING); } else { generateReject(message, SessionRejectReason.REQUIRED_TAG_MISSING, e.field); if (msgType.equals(MsgType.LOGON)) { state.logEvent("Required field missing from logon"); disconnect(); } } } catch (IncorrectTagValue e) { generateReject(message, SessionRejectReason.VALUE_IS_INCORRECT, e.field); } catch (InvalidMessage e) { state.logEvent("Skipping invalid message: " + e.getMessage()); } catch (RejectLogon e) { String rejectMessage = e.getMessage() != null ? (": " + e.getMessage()) : ""; state.getLog().onEvent("Logon rejected" + rejectMessage); generateLogout(e.getMessage()); disconnect(); } catch (UnsupportedMessageType e) { if (sessionID.getBeginString().compareTo(FixVersions.BEGINSTRING_FIX42) >= 0) { generateBusinessReject(message, BusinessRejectReason.UNSUPPORTED_MESSAGE_TYPE); } else { generateReject(message, "Unsupported message type"); } } catch (UnsupportedVersion e) { if (msgType.equals(MsgType.LOGOUT)) { nextLogout(message); } else { generateLogout("Incorrect BeginString"); state.incrNextTargetMsgSeqNum(); // 1d_InvalidLogonWrongBeginString.def appears to require // a disconnect although the C++ didn't appear to be doing it. // ??? disconnect(); } } catch (IOException e) { LogUtil.logThrowable(sessionID, "error processing message", e); } nextQueued(); if (isLoggedOn()) { next(); } }
|
52526 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52526/6d63f4139726a4666db74ba3ffa5e35c7358867a/Session.java/clean/src/quickfix/Session.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
1024,
12,
1079,
883,
13,
1216,
2286,
2768,
16,
20159,
1343,
265,
16,
5411,
657,
6746,
751,
1630,
16,
657,
6746,
1805,
620,
16,
7221,
24563,
16,
1860,
16,
5411,
1962,
1079,
288,
3639,
919,
18,
542,
8932,
12,
3767,
1769,
3639,
309,
16051,
1893,
2157,
950,
10756,
288,
5411,
2715,
5621,
5411,
327,
31,
3639,
289,
3639,
514,
1234,
559,
273,
883,
18,
588,
1864,
7675,
588,
780,
12,
3332,
559,
18,
6776,
1769,
7734,
775,
288,
5411,
309,
261,
291,
1119,
8323,
11449,
12,
3576,
559,
3719,
288,
7734,
309,
261,
588,
2257,
1435,
1276,
14179,
429,
1079,
2257,
13,
288,
10792,
9189,
7675,
265,
1133,
2932,
8323,
310,
883,
19,
2019,
1707,
622,
613,
265,
8863,
10792,
14015,
8323,
429,
1079,
2257,
13,
15818,
1435,
2934,
9144,
5621,
7734,
289,
469,
288,
10792,
9189,
7675,
265,
1133,
12,
18701,
315,
8323,
622,
613,
265,
3764,
16,
1496,
883,
1707,
486,
22863,
30,
315,
4766,
565,
397,
15818,
7675,
588,
797,
7675,
17994,
10663,
7734,
289,
5411,
289,
13491,
514,
2376,
780,
273,
883,
18,
588,
1864,
7675,
588,
780,
12,
8149,
780,
18,
6776,
1769,
5411,
309,
16051,
10086,
780,
18,
14963,
12,
17255,
18,
588,
8149,
780,
1435,
3719,
288,
7734,
604,
394,
7221,
1444,
5621,
5411,
289,
5411,
309,
261,
892,
10905,
480,
446,
13,
288,
7734,
501,
10905,
18,
5662,
12,
2150,
1769,
5411,
289,
5411,
309,
261,
3576,
559,
18,
14963,
12,
3332,
559,
18,
4842,
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,
3852,
918,
1024,
12,
1079,
883,
13,
1216,
2286,
2768,
16,
20159,
1343,
265,
16,
5411,
657,
6746,
751,
1630,
16,
657,
6746,
1805,
620,
16,
7221,
24563,
16,
1860,
16,
5411,
1962,
1079,
288,
3639,
919,
18,
542,
8932,
12,
3767,
1769,
3639,
309,
16051,
1893,
2157,
950,
10756,
288,
5411,
2715,
5621,
5411,
327,
31,
3639,
289,
3639,
514,
1234,
559,
273,
883,
18,
588,
1864,
7675,
588,
780,
12,
3332,
559,
18,
6776,
1769,
7734,
775,
288,
5411,
309,
261,
291,
1119,
8323,
11449,
12,
3576,
559,
3719,
288,
7734,
309,
261,
588,
2257,
1435,
1276,
14179,
429,
1079,
2257,
13,
288,
10792,
9189,
7675,
265,
1133,
2932,
8323,
310,
883,
19,
2019,
1707,
2
] |
||
assertEquals(cal.getTimeInMillis(), 6017546357372606464L);
|
assertEquals(6017546357372606464L, cal.getTimeInMillis());
|
public void test_getTimeInMillis() { Calendar cal = Calendar.getInstance(); int year = Integer.MIN_VALUE + 71; cal.setTimeZone(TimeZone.getTimeZone("GMT"));; cal.set(Calendar.YEAR, year + 1900); cal.set(Calendar.MONTH, Calendar.JANUARY); cal.set(Calendar.DATE, 1); cal.set(Calendar.HOUR_OF_DAY, 0); cal.set(Calendar.MINUTE, 0); cal.set(Calendar.SECOND, 0); cal.set(Calendar.MILLISECOND, 0); assertEquals(cal.getTimeInMillis(), 6017546357372606464L); }
|
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/7bcc253248f19d1be4c7a8475c3059f983134672/CalendarTest.java/clean/modules/luni/src/test/java/tests/api/java/util/CalendarTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
67,
588,
950,
16620,
1435,
288,
3639,
5542,
1443,
273,
5542,
18,
588,
1442,
5621,
3639,
509,
3286,
273,
2144,
18,
6236,
67,
4051,
397,
26465,
31,
3639,
1443,
18,
542,
16760,
12,
16760,
18,
588,
16760,
2932,
25315,
7923,
1769,
31,
3639,
1443,
18,
542,
12,
7335,
18,
15137,
16,
3286,
397,
5342,
713,
1769,
3639,
1443,
18,
542,
12,
7335,
18,
13942,
16,
5542,
18,
46,
1258,
57,
6043,
1769,
3639,
1443,
18,
542,
12,
7335,
18,
4594,
16,
404,
1769,
3639,
1443,
18,
542,
12,
7335,
18,
21372,
67,
3932,
67,
10339,
16,
374,
1769,
3639,
1443,
18,
542,
12,
7335,
18,
30090,
16,
374,
1769,
3639,
1443,
18,
542,
12,
7335,
18,
16328,
16,
374,
1769,
3639,
1443,
18,
542,
12,
7335,
18,
25437,
16328,
16,
374,
1769,
3639,
1815,
8867,
12,
26,
1611,
5877,
24,
4449,
10321,
6418,
22,
4848,
1105,
1105,
48,
16,
1443,
18,
588,
950,
16620,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
67,
588,
950,
16620,
1435,
288,
3639,
5542,
1443,
273,
5542,
18,
588,
1442,
5621,
3639,
509,
3286,
273,
2144,
18,
6236,
67,
4051,
397,
26465,
31,
3639,
1443,
18,
542,
16760,
12,
16760,
18,
588,
16760,
2932,
25315,
7923,
1769,
31,
3639,
1443,
18,
542,
12,
7335,
18,
15137,
16,
3286,
397,
5342,
713,
1769,
3639,
1443,
18,
542,
12,
7335,
18,
13942,
16,
5542,
18,
46,
1258,
57,
6043,
1769,
3639,
1443,
18,
542,
12,
7335,
18,
4594,
16,
404,
1769,
3639,
1443,
18,
542,
12,
7335,
18,
21372,
67,
3932,
67,
10339,
16,
374,
1769,
3639,
1443,
18,
542,
12,
7335,
18,
30090,
16,
374,
1769,
3639,
1443,
18,
542,
12,
7335,
2
] |
setModified(true);
|
public void setCompanyId(String companyId) { if (((companyId == null) && (_companyId != null)) || ((companyId != null) && (_companyId == null)) || ((companyId != null) && (_companyId != null) && !companyId.equals(_companyId))) { if (!XSS_ALLOW_COMPANYID) { companyId = XSSUtil.strip(companyId); } _companyId = companyId; setModified(true); } }
|
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/DLFolderModel.java/buggy/portal-ejb/src/com/liferay/portlet/documentlibrary/model/DLFolderModel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
26338,
12,
780,
14346,
13,
288,
202,
202,
430,
261,
12443,
16840,
548,
422,
446,
13,
597,
261,
67,
16840,
548,
480,
446,
3719,
747,
9506,
202,
12443,
16840,
548,
480,
446,
13,
597,
261,
67,
16840,
548,
422,
446,
3719,
747,
9506,
202,
12443,
16840,
548,
480,
446,
13,
597,
261,
67,
16840,
548,
480,
446,
13,
597,
9506,
202,
5,
16840,
548,
18,
14963,
24899,
16840,
548,
20349,
288,
1082,
202,
430,
16051,
60,
1260,
67,
13511,
67,
10057,
15409,
734,
13,
288,
9506,
202,
16840,
548,
273,
1139,
1260,
1304,
18,
6406,
12,
16840,
548,
1769,
1082,
202,
97,
1082,
202,
67,
16840,
548,
273,
14346,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
26338,
12,
780,
14346,
13,
288,
202,
202,
430,
261,
12443,
16840,
548,
422,
446,
13,
597,
261,
67,
16840,
548,
480,
446,
3719,
747,
9506,
202,
12443,
16840,
548,
480,
446,
13,
597,
261,
67,
16840,
548,
422,
446,
3719,
747,
9506,
202,
12443,
16840,
548,
480,
446,
13,
597,
261,
67,
16840,
548,
480,
446,
13,
597,
9506,
202,
5,
16840,
548,
18,
14963,
24899,
16840,
548,
20349,
288,
1082,
202,
430,
16051,
60,
1260,
67,
13511,
67,
10057,
15409,
734,
13,
288,
9506,
202,
16840,
548,
273,
1139,
1260,
1304,
18,
6406,
12,
16840,
548,
1769,
1082,
202,
97,
1082,
202,
67,
16840,
548,
273,
14346,
31,
1082,
202,
542,
4575,
2
] |
|
config.USE_UTF8 = myUseUtf8.isSelected();
|
String oldEncoding = config.ENCODING; config.ENCODING = myCharset.getSelectedItem().toString(); if (!Comparing.equal(oldEncoding, config.ENCODING)) { CvsEntriesManager.getInstance().encodingChanged(); }
|
public void saveTo(CvsApplicationLevelConfiguration config) { myPServerSettingsPanel.saveTo(config); config.USE_UTF8 = myUseUtf8.isSelected(); config.USE_GZIP = myUseGZIPCompression.isSelected(); }
|
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/3de0fd6612b01325d3a8e2dd29c980447948f32c/GlobalCvsSettingsPanel.java/clean/plugins/cvs2/source/com/intellij/cvsSupport2/config/ui/GlobalCvsSettingsPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1923,
774,
12,
39,
6904,
3208,
2355,
1750,
642,
13,
288,
565,
3399,
52,
2081,
2628,
5537,
18,
5688,
774,
12,
1425,
1769,
565,
514,
1592,
4705,
273,
642,
18,
14672,
31,
642,
18,
14672,
273,
3399,
9652,
18,
588,
7416,
1180,
7675,
10492,
5621,
309,
16051,
799,
12583,
18,
9729,
12,
1673,
4705,
16,
642,
18,
14672,
3719,
288,
385,
6904,
5400,
1318,
18,
588,
1442,
7675,
5999,
5033,
5621,
289,
565,
642,
18,
8001,
67,
43,
13951,
273,
3399,
3727,
43,
13951,
15270,
18,
291,
7416,
5621,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1923,
774,
12,
39,
6904,
3208,
2355,
1750,
642,
13,
288,
565,
3399,
52,
2081,
2628,
5537,
18,
5688,
774,
12,
1425,
1769,
565,
514,
1592,
4705,
273,
642,
18,
14672,
31,
642,
18,
14672,
273,
3399,
9652,
18,
588,
7416,
1180,
7675,
10492,
5621,
309,
16051,
799,
12583,
18,
9729,
12,
1673,
4705,
16,
642,
18,
14672,
3719,
288,
385,
6904,
5400,
1318,
18,
588,
1442,
7675,
5999,
5033,
5621,
289,
565,
642,
18,
8001,
67,
43,
13951,
273,
3399,
3727,
43,
13951,
15270,
18,
291,
7416,
5621,
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
] |
s_log.log(Level.SEVERE, "(DocType) [" + trxName + "]", e);
|
s_log.log(Level.SEVERE, "(Table) [" + trxName + "]", e);
|
public static synchronized String getDocumentNo (int C_DocType_ID, String trxName) { if (C_DocType_ID == 0) { s_log.severe ("C_DocType_ID=0"); return null; } MDocType dt = MDocType.get (Env.getCtx(), C_DocType_ID); // wrong for SERVER, but r/o if (dt != null && !dt.isDocNoControlled()) { s_log.finer("DocType_ID=" + C_DocType_ID + " Not DocNo controlled"); return null; } if (dt == null || dt.getDocNoSequence_ID() == 0) { s_log.warning ("No Sequence for DocType - " + dt); return null; } // Check AdempiereSys boolean adempiereSys = Ini.isPropertyBool(Ini.P_ADEMPIERESYS); if (CLogMgt.isLevel(LOGLEVEL)) s_log.log(LOGLEVEL, "DocType_ID=" + C_DocType_ID + " [" + trxName + "]"); //begin vpj-cd e-evolution 09/02/2005 PostgreSQL String selectSQL = null; if (DB.isPostgreSQL()) { selectSQL = "SELECT CurrentNext, CurrentNextSys, IncrementNo, Prefix, Suffix, AD_Client_ID, AD_Sequence_ID, OID " + "FROM AD_Sequence " + "WHERE AD_Sequence_ID=?" + " AND IsActive='Y' AND IsTableID='N' AND IsAutoSequence='Y' " + " FOR UPDATE OF AD_Sequence "; USE_PROCEDURE=false; } else //String selectSQL = "SELECT CurrentNext, CurrentNextSys, IncrementNo, Prefix, Suffix, AD_Client_ID, AD_Sequence_ID " selectSQL = "SELECT CurrentNext, CurrentNextSys, IncrementNo, Prefix, Suffix, AD_Client_ID, AD_Sequence_ID " //end vpj-cd e-evolution 09/02/2005 PostgreSQL + "FROM AD_Sequence " + "WHERE AD_Sequence_ID=?" + " AND IsActive='Y' AND IsTableID='N' AND IsAutoSequence='Y' "; // + " FOR UPDATE"; Connection conn = null; PreparedStatement pstmt = null; Trx trx = trxName == null ? null : Trx.get(trxName, true); // int AD_Sequence_ID = 0; int incrementNo = 0; int next = -1; String prefix = ""; String suffix = ""; try { if (trx != null) conn = trx.getConnection(); else conn = DB.getConnectionID(); // Error if (conn == null) return null; // pstmt = conn.prepareStatement(selectSQL, ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_UPDATABLE); pstmt.setInt(1, dt.getDocNoSequence_ID()); // ResultSet rs = pstmt.executeQuery(); // s_log.fine("AC=" + conn.getAutoCommit() + " -Iso=" + conn.getTransactionIsolation() // + " - Type=" + pstmt.getResultSetType() + " - Concur=" + pstmt.getResultSetConcurrency()); if (rs.next()) { incrementNo = rs.getInt(3); prefix = rs.getString(4); suffix = rs.getString(5); int AD_Client_ID = rs.getInt(6); if (adempiereSys && AD_Client_ID > 11) adempiereSys = false; AD_Sequence_ID = rs.getInt(7); if (USE_PROCEDURE) { next = nextID(conn, AD_Sequence_ID, adempiereSys); } else { if (adempiereSys) { next = rs.getInt(2); rs.updateInt(2, next + incrementNo); } else { next = rs.getInt(1); rs.updateInt(1, next + incrementNo); } rs.updateRow(); } } else { s_log.warning ("(DocType)- no record found - " + dt); next = -2; } rs.close(); pstmt.close(); pstmt = null; // Commit if (trx == null) { conn.commit(); // conn.close(); } conn = null; } catch (Exception e) { s_log.log(Level.SEVERE, "(DocType) [" + trxName + "]", e); next = -2; } // Finish try { if (pstmt != null) pstmt.close(); pstmt = null; // if (conn != null && trx == null) // conn.close(); conn = null; } catch (Exception e) { s_log.log(Level.SEVERE, "(DocType) - finish", e); pstmt = null; } // Error if (next < 0) return null; // create DocumentNo StringBuffer doc = new StringBuffer(); if (prefix != null && prefix.length() > 0) doc.append(prefix); doc.append(next); if (suffix != null && suffix.length() > 0) doc.append(suffix); String documentNo = doc.toString(); s_log.finer (documentNo + " (" + incrementNo + ")" + " - C_DocType_ID=" + C_DocType_ID + " [" + trx + "]"); return documentNo; } // getDocumentNo
|
50953 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50953/b3bb656ebb854a3da8c0a9e77d183fcca34f5efb/MSequence.java/clean/dbPort/src/org/compiere/model/MSequence.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
3852,
514,
9956,
2279,
261,
474,
385,
67,
1759,
559,
67,
734,
16,
514,
433,
92,
461,
13,
202,
95,
202,
202,
430,
261,
39,
67,
1759,
559,
67,
734,
422,
374,
13,
202,
202,
95,
1082,
202,
87,
67,
1330,
18,
307,
502,
73,
7566,
39,
67,
1759,
559,
67,
734,
33,
20,
8863,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
202,
49,
1759,
559,
3681,
273,
490,
1759,
559,
18,
588,
261,
3491,
18,
588,
6442,
9334,
385,
67,
1759,
559,
67,
734,
1769,
202,
759,
202,
21530,
364,
15061,
16,
1496,
436,
19,
83,
202,
202,
430,
261,
7510,
480,
446,
597,
401,
7510,
18,
291,
1759,
2279,
3367,
1259,
10756,
202,
202,
95,
1082,
202,
87,
67,
1330,
18,
926,
264,
2932,
1759,
559,
67,
734,
1546,
397,
385,
67,
1759,
559,
67,
734,
397,
315,
2288,
3521,
2279,
25934,
8863,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
202,
430,
261,
7510,
422,
446,
747,
3681,
18,
588,
1759,
2279,
4021,
67,
734,
1435,
422,
374,
13,
202,
202,
95,
1082,
202,
87,
67,
1330,
18,
8551,
7566,
2279,
8370,
364,
3521,
559,
300,
315,
397,
3681,
1769,
1082,
202,
2463,
446,
31,
202,
202,
97,
6862,
202,
759,
202,
1564,
432,
323,
1291,
77,
822,
12712,
202,
202,
6494,
279,
323,
1291,
77,
822,
12712,
273,
657,
77,
18,
291,
1396,
7464,
12,
22129,
18,
52,
67,
37,
1639,
49,
1102,
654,
3991,
61,
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,
3852,
514,
9956,
2279,
261,
474,
385,
67,
1759,
559,
67,
734,
16,
514,
433,
92,
461,
13,
202,
95,
202,
202,
430,
261,
39,
67,
1759,
559,
67,
734,
422,
374,
13,
202,
202,
95,
1082,
202,
87,
67,
1330,
18,
307,
502,
73,
7566,
39,
67,
1759,
559,
67,
734,
33,
20,
8863,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
202,
49,
1759,
559,
3681,
273,
490,
1759,
559,
18,
588,
261,
3491,
18,
588,
6442,
9334,
385,
67,
1759,
559,
67,
734,
1769,
202,
759,
202,
21530,
364,
15061,
16,
1496,
436,
19,
83,
202,
202,
430,
261,
7510,
480,
446,
597,
401,
7510,
18,
291,
1759,
2279,
3367,
1259,
2
] |
case 115:
|
public final Expression expr(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { Expression step; AST expr_AST_in = (AST)_t; AST t = null; AST someVarName = null; AST varName = null; AST posVar = null; AST letVarName = null; step= null; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_cast: { AST __t266 = _t; AST tmp3_AST_in = (AST)_t; match(_t,LITERAL_cast); _t = _t.getFirstChild(); PathExpr expr= new PathExpr(context); int cardinality= Cardinality.EXACTLY_ONE; step=expr(_t,expr); _t = _retTree; t = (AST)_t; match(_t,ATOMIC_TYPE); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QUESTION: { AST tmp4_AST_in = (AST)_t; match(_t,QUESTION); _t = _t.getNextSibling(); cardinality= Cardinality.ZERO_OR_ONE; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } QName qn= QName.parse(context, t.getText()); int code= Type.getType(qn); CastExpression castExpr= new CastExpression(context, expr, code, cardinality); path.add(castExpr); step = castExpr; _t = __t266; _t = _t.getNextSibling(); break; } case COMMA: { AST __t268 = _t; AST tmp5_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getFirstChild(); PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; SequenceConstructor sc= new SequenceConstructor(context); sc.addExpression(left); sc.addExpression(right); path.add(sc); step = sc; _t = __t268; _t = _t.getNextSibling(); break; } case LITERAL_if: { AST __t269 = _t; AST tmp6_AST_in = (AST)_t; match(_t,LITERAL_if); _t = _t.getFirstChild(); PathExpr testExpr= new PathExpr(context); PathExpr thenExpr= new PathExpr(context); PathExpr elseExpr= new PathExpr(context); step=expr(_t,testExpr); _t = _retTree; step=expr(_t,thenExpr); _t = _retTree; step=expr(_t,elseExpr); _t = _retTree; ConditionalExpression cond= new ConditionalExpression(context, testExpr, thenExpr, elseExpr); path.add(cond); step = cond; _t = __t269; _t = _t.getNextSibling(); break; } case LITERAL_some: { AST __t270 = _t; AST tmp7_AST_in = (AST)_t; match(_t,LITERAL_some); _t = _t.getFirstChild(); List clauses= new ArrayList(); PathExpr satisfiesExpr = new PathExpr(context); { _loop275: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VARIABLE_BINDING)) { AST __t272 = _t; someVarName = _t==ASTNULL ? null :(AST)_t; match(_t,VARIABLE_BINDING); _t = _t.getFirstChild(); ForLetClause clause= new ForLetClause(); PathExpr inputSequence = new PathExpr(context); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_as: { AST __t274 = _t; AST tmp8_AST_in = (AST)_t; match(_t,LITERAL_as); _t = _t.getFirstChild(); sequenceType(_t,clause.sequenceType); _t = _retTree; _t = __t274; _t = _t.getNextSibling(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case NCNAME: case STRING_LITERAL: case EQ: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 115: case 116: case LITERAL_parent: case LITERAL_ancestor: case 119: case 120: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: { break; } default: { throw new NoViableAltException(_t); } } } step=expr(_t,inputSequence); _t = _retTree; clause.varName= someVarName.getText(); clause.inputSequence= inputSequence; clauses.add(clause); _t = __t272; _t = _t.getNextSibling(); } else { break _loop275; } } while (true); } step=expr(_t,satisfiesExpr); _t = _retTree; Expression action = satisfiesExpr; for (int i= clauses.size() - 1; i >= 0; i--) { ForLetClause clause= (ForLetClause) clauses.get(i); BindingExpression expr = new QuantifiedExpression(context); expr.setVariable(clause.varName); expr.setSequenceType(clause.sequenceType); expr.setInputSequence(clause.inputSequence); expr.setReturnExpression(action); satisfiesExpr= null; action= expr; } path.add(action); step = action; _t = __t270; _t = _t.getNextSibling(); break; } case LITERAL_return: { AST __t276 = _t; AST tmp9_AST_in = (AST)_t; match(_t,LITERAL_return); _t = _t.getFirstChild(); List clauses= new ArrayList(); Expression action= new PathExpr(context); PathExpr whereExpr= null; List orderBy= null; { int _cnt291=0; _loop291: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_for: { AST __t278 = _t; AST tmp10_AST_in = (AST)_t; match(_t,LITERAL_for); _t = _t.getFirstChild(); { int _cnt284=0; _loop284: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VARIABLE_BINDING)) { AST __t280 = _t; varName = _t==ASTNULL ? null :(AST)_t; match(_t,VARIABLE_BINDING); _t = _t.getFirstChild(); ForLetClause clause= new ForLetClause(); PathExpr inputSequence= new PathExpr(context); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_as: { AST __t282 = _t; AST tmp11_AST_in = (AST)_t; match(_t,LITERAL_as); _t = _t.getFirstChild(); clause.sequenceType= new SequenceType(); sequenceType(_t,clause.sequenceType); _t = _retTree; _t = __t282; _t = _t.getNextSibling(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case POSITIONAL_VAR: case NCNAME: case STRING_LITERAL: case EQ: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 115: case 116: case LITERAL_parent: case LITERAL_ancestor: case 119: case 120: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case POSITIONAL_VAR: { posVar = (AST)_t; match(_t,POSITIONAL_VAR); _t = _t.getNextSibling(); clause.posVar= posVar.getText(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case NCNAME: case STRING_LITERAL: case EQ: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 115: case 116: case LITERAL_parent: case LITERAL_ancestor: case 119: case 120: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: { break; } default: { throw new NoViableAltException(_t); } } } step=expr(_t,inputSequence); _t = _retTree; clause.varName= varName.getText(); clause.inputSequence= inputSequence; clauses.add(clause); _t = __t280; _t = _t.getNextSibling(); } else { if ( _cnt284>=1 ) { break _loop284; } else {throw new NoViableAltException(_t);} } _cnt284++; } while (true); } _t = __t278; _t = _t.getNextSibling(); break; } case LITERAL_let: { AST __t285 = _t; AST tmp12_AST_in = (AST)_t; match(_t,LITERAL_let); _t = _t.getFirstChild(); { int _cnt290=0; _loop290: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VARIABLE_BINDING)) { AST __t287 = _t; letVarName = _t==ASTNULL ? null :(AST)_t; match(_t,VARIABLE_BINDING); _t = _t.getFirstChild(); ForLetClause clause= new ForLetClause(); clause.isForClause= false; PathExpr inputSequence= new PathExpr(context); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_as: { AST __t289 = _t; AST tmp13_AST_in = (AST)_t; match(_t,LITERAL_as); _t = _t.getFirstChild(); clause.sequenceType= new SequenceType(); sequenceType(_t,clause.sequenceType); _t = _retTree; _t = __t289; _t = _t.getNextSibling(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case NCNAME: case STRING_LITERAL: case EQ: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 115: case 116: case LITERAL_parent: case LITERAL_ancestor: case 119: case 120: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: { break; } default: { throw new NoViableAltException(_t); } } } step=expr(_t,inputSequence); _t = _retTree; clause.varName= letVarName.getText(); clause.inputSequence= inputSequence; clauses.add(clause); _t = __t287; _t = _t.getNextSibling(); } else { if ( _cnt290>=1 ) { break _loop290; } else {throw new NoViableAltException(_t);} } _cnt290++; } while (true); } _t = __t285; _t = _t.getNextSibling(); break; } default: { if ( _cnt291>=1 ) { break _loop291; } else {throw new NoViableAltException(_t);} } } _cnt291++; } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_where: { AST tmp14_AST_in = (AST)_t; match(_t,LITERAL_where); _t = _t.getNextSibling(); whereExpr= new PathExpr(context); step=expr(_t,whereExpr); _t = _retTree; break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case ORDER_BY: case NCNAME: case STRING_LITERAL: case EQ: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 115: case 116: case LITERAL_parent: case LITERAL_ancestor: case 119: case 120: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ORDER_BY: { AST __t294 = _t; AST tmp15_AST_in = (AST)_t; match(_t,ORDER_BY); _t = _t.getFirstChild(); orderBy= new ArrayList(3); { int _cnt300=0; _loop300: do { if (_t==null) _t=ASTNULL; if ((_tokenSet_0.member(_t.getType()))) { PathExpr orderSpecExpr= new PathExpr(context); step=expr(_t,orderSpecExpr); _t = _retTree; OrderSpec orderSpec= new OrderSpec(orderSpecExpr); int modifiers= 0; orderBy.add(orderSpec); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_ascending: case LITERAL_descending: { { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_ascending: { AST tmp16_AST_in = (AST)_t; match(_t,LITERAL_ascending); _t = _t.getNextSibling(); break; } case LITERAL_descending: { AST tmp17_AST_in = (AST)_t; match(_t,LITERAL_descending); _t = _t.getNextSibling(); modifiers= OrderSpec.DESCENDING_ORDER; orderSpec.setModifiers(modifiers); break; } default: { throw new NoViableAltException(_t); } } } break; } case 3: case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case NCNAME: case STRING_LITERAL: case EQ: case LCURLY: case COMMA: case LITERAL_empty: case STAR: case PLUS: case LITERAL_some: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 115: case 116: case LITERAL_parent: case LITERAL_ancestor: case 119: case 120: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_empty: { AST tmp18_AST_in = (AST)_t; match(_t,LITERAL_empty); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_greatest: { AST tmp19_AST_in = (AST)_t; match(_t,LITERAL_greatest); _t = _t.getNextSibling(); break; } case LITERAL_least: { AST tmp20_AST_in = (AST)_t; match(_t,LITERAL_least); _t = _t.getNextSibling(); modifiers |= OrderSpec.EMPTY_LEAST; orderSpec.setModifiers(modifiers); break; } default: { throw new NoViableAltException(_t); } } } break; } case 3: case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case NCNAME: case STRING_LITERAL: case EQ: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 115: case 116: case LITERAL_parent: case LITERAL_ancestor: case 119: case 120: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: { break; } default: { throw new NoViableAltException(_t); } } } } else { if ( _cnt300>=1 ) { break _loop300; } else {throw new NoViableAltException(_t);} } _cnt300++; } while (true); } _t = __t294; _t = _t.getNextSibling(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case NCNAME: case STRING_LITERAL: case EQ: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 115: case 116: case LITERAL_parent: case LITERAL_ancestor: case 119: case 120: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: { break; } default: { throw new NoViableAltException(_t); } } } step=expr(_t,(PathExpr) action); _t = _retTree; for (int i= clauses.size() - 1; i >= 0; i--) { ForLetClause clause= (ForLetClause) clauses.get(i); BindingExpression expr; if (clause.isForClause) expr= new ForExpr(context); else expr= new LetExpr(context); expr.setVariable(clause.varName); expr.setSequenceType(clause.sequenceType); expr.setInputSequence(clause.inputSequence); expr.setReturnExpression(action); if (clause.isForClause) ((ForExpr) expr).setPositionalVariable(clause.posVar); if (whereExpr != null) { expr.setWhereExpression(whereExpr); whereExpr= null; } if (orderBy != null) { OrderSpec orderSpecs[]= new OrderSpec[orderBy.size()]; int k= 0; for (Iterator j= orderBy.iterator(); j.hasNext(); k++) { OrderSpec orderSpec= (OrderSpec) j.next(); orderSpecs[k]= orderSpec; } expr.setOrderSpecs(orderSpecs); } action= expr; } path.add(action); step = action; _t = __t276; _t = _t.getNextSibling(); break; } case LITERAL_or: { AST __t301 = _t; AST tmp21_AST_in = (AST)_t; match(_t,LITERAL_or); _t = _t.getFirstChild(); PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t301; _t = _t.getNextSibling(); OpOr or= new OpOr(context); or.add(left); or.add(right); path.addPath(or); step = or; break; } case LITERAL_and: { AST __t302 = _t; AST tmp22_AST_in = (AST)_t; match(_t,LITERAL_and); _t = _t.getFirstChild(); PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t302; _t = _t.getNextSibling(); OpAnd and= new OpAnd(context); and.add(left); and.add(right); path.addPath(and); step = and; break; } case UNION: { AST __t303 = _t; AST tmp23_AST_in = (AST)_t; match(_t,UNION); _t = _t.getFirstChild(); PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t303; _t = _t.getNextSibling(); Union union= new Union(context, left, right); path.add(union); step = union; break; } case LITERAL_intersect: { AST __t304 = _t; AST tmp24_AST_in = (AST)_t; match(_t,LITERAL_intersect); _t = _t.getFirstChild(); PathExpr left = new PathExpr(context); PathExpr right = new PathExpr(context); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t304; _t = _t.getNextSibling(); Intersection intersect = new Intersection(context, left, right); path.add(intersect); step = intersect; break; } case LITERAL_except: { AST __t305 = _t; AST tmp25_AST_in = (AST)_t; match(_t,LITERAL_except); _t = _t.getFirstChild(); PathExpr left = new PathExpr(context); PathExpr right = new PathExpr(context); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t305; _t = _t.getNextSibling(); Except intersect = new Except(context, left, right); path.add(intersect); step = intersect; break; } case ABSOLUTE_SLASH: { AST __t306 = _t; AST tmp26_AST_in = (AST)_t; match(_t,ABSOLUTE_SLASH); _t = _t.getFirstChild(); RootNode root= new RootNode(context); path.add(root); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case NCNAME: case STRING_LITERAL: case EQ: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 115: case 116: case LITERAL_parent: case LITERAL_ancestor: case 119: case 120: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: { step=expr(_t,path); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t306; _t = _t.getNextSibling(); break; } case ABSOLUTE_DSLASH: { AST __t308 = _t; AST tmp27_AST_in = (AST)_t; match(_t,ABSOLUTE_DSLASH); _t = _t.getFirstChild(); RootNode root= new RootNode(context); path.add(root); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case NCNAME: case STRING_LITERAL: case EQ: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 115: case 116: case LITERAL_parent: case LITERAL_ancestor: case 119: case 120: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: { step=expr(_t,path); _t = _retTree; if (step instanceof LocationStep) { LocationStep s= (LocationStep) step; if (s.getAxis() == Constants.ATTRIBUTE_AXIS) // combines descendant-or-self::node()/attribute:* s.setAxis(Constants.DESCENDANT_ATTRIBUTE_AXIS); else s.setAxis(Constants.DESCENDANT_SELF_AXIS); } else step.setPrimaryAxis(Constants.DESCENDANT_SELF_AXIS); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t308; _t = _t.getNextSibling(); break; } case LITERAL_to: { AST __t310 = _t; AST tmp28_AST_in = (AST)_t; match(_t,LITERAL_to); _t = _t.getFirstChild(); PathExpr start= new PathExpr(context); PathExpr end= new PathExpr(context); List args= new ArrayList(2); args.add(start); args.add(end); step=expr(_t,start); _t = _retTree; step=expr(_t,end); _t = _retTree; RangeExpression range= new RangeExpression(context); range.setArguments(args); path.addPath(range); step = range; _t = __t310; _t = _t.getNextSibling(); break; } case EQ: case NEQ: case GT: case GTEQ: case LT: case LTEQ: { step=generalComp(_t,path); _t = _retTree; break; } case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: { step=valueComp(_t,path); _t = _retTree; break; } case ANDEQ: case OREQ: { step=fulltextComp(_t,path); _t = _retTree; break; } case PARENTHESIZED: case FUNCTION: case VARIABLE_REF: case ELEMENT: case TEXT: case STRING_LITERAL: case LCURLY: case XML_COMMENT: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: { step=primaryExpr(_t,path); _t = _retTree; break; } case QNAME: case WILDCARD: case PREFIX_WILDCARD: case NCNAME: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 115: case 116: case LITERAL_parent: case LITERAL_ancestor: case 119: case 120: { step=pathExpr(_t,path); _t = _retTree; break; } case UNARY_MINUS: case UNARY_PLUS: case STAR: case PLUS: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: { step=numericExpr(_t,path); _t = _retTree; break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; return step; }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/d31ac0d651739cc32d55579c14a0786f6bfb4200/XPathTreeParser2.java/clean/src/org/exist/parser/XPathTreeParser2.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
5371,
225,
3065,
12,
9053,
389,
88,
16,
202,
202,
743,
4742,
589,
202,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
16,
14124,
503,
288,
202,
202,
2300,
2235,
31,
9506,
202,
9053,
3065,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
9053,
268,
273,
446,
31,
202,
202,
9053,
2690,
18129,
273,
446,
31,
202,
202,
9053,
13722,
273,
446,
31,
202,
202,
9053,
949,
1537,
273,
446,
31,
202,
202,
9053,
2231,
18129,
273,
446,
31,
202,
202,
4119,
33,
446,
31,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
511,
18454,
67,
4155,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
5558,
26,
273,
389,
88,
31,
1082,
202,
9053,
1853,
23,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
23225,
67,
4155,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
6862,
6862,
202,
743,
4742,
3065,
33,
394,
2666,
4742,
12,
2472,
1769,
25083,
202,
474,
14379,
33,
14338,
9232,
18,
2294,
6526,
7076,
67,
5998,
31,
6862,
9506,
202,
4119,
33,
8638,
24899,
88,
16,
8638,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
1082,
202,
88,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
28146,
2871,
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,
5371,
225,
3065,
12,
9053,
389,
88,
16,
202,
202,
743,
4742,
589,
202,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
16,
14124,
503,
288,
202,
202,
2300,
2235,
31,
9506,
202,
9053,
3065,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
9053,
268,
273,
446,
31,
202,
202,
9053,
2690,
18129,
273,
446,
31,
202,
202,
9053,
13722,
273,
446,
31,
202,
202,
9053,
949,
1537,
273,
446,
31,
202,
202,
9053,
2231,
18129,
273,
446,
31,
202,
202,
4119,
33,
446,
31,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
2
] |
|
public EVTask(String taskListName, String hierarchyPath, DataRepository data, DashHierarchy hierarchy, Listener listener) { this(null, taskListName, hierarchyPath.substring(1), hierarchyPath, null, data, hierarchy, listener);
|
public EVTask(String rootName) { this.name = rootName; this.fullName = ""; planTime = cumPlanValue = actualTime = valueEarned = topDownPlanTime = bottomUpPlanTime = actualNodeTime = 0; planDate = dateCompleted = null; listener = null; planTimeEditable = dateCompletedEditable = planTimeUndefined = false; planTimeNull = true; data = null;
|
public EVTask(String taskListName, String hierarchyPath, DataRepository data, DashHierarchy hierarchy, Listener listener) { this(null, taskListName, hierarchyPath.substring(1), hierarchyPath, null, data, hierarchy, listener); }
|
5494 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5494/3c6568c9c4bde341d132f1ae79a6f0622d46b86e/EVTask.java/buggy/processdash/src/net/sourceforge/processdash/ev/EVTask.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
14839,
2174,
12,
780,
1562,
682,
461,
16,
514,
9360,
743,
16,
1910,
3305,
501,
16,
5375,
463,
961,
12074,
9360,
16,
10652,
2991,
13,
288,
3639,
333,
12,
2011,
16,
1562,
682,
461,
16,
9360,
743,
18,
28023,
12,
21,
3631,
9360,
743,
16,
2398,
446,
16,
501,
16,
9360,
16,
2991,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
14839,
2174,
12,
780,
1562,
682,
461,
16,
514,
9360,
743,
16,
1910,
3305,
501,
16,
5375,
463,
961,
12074,
9360,
16,
10652,
2991,
13,
288,
3639,
333,
12,
2011,
16,
1562,
682,
461,
16,
9360,
743,
18,
28023,
12,
21,
3631,
9360,
743,
16,
2398,
446,
16,
501,
16,
9360,
16,
2991,
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
] |
if ( !downloadedArtifacts.contains( dep ) )
|
if ( !downloadedArtifacts.contains( dep.getId() ) )
|
public void downloadDependencies( List files ) throws Exception { for ( Iterator j = files.iterator(); j.hasNext(); ) { Dependency dep = (Dependency) j.next(); if ( !downloadedArtifacts.contains( dep ) ) { String repositoryPath = dep.getRepositoryPath(); File destinationFile = new File( mavenRepoLocal, repositoryPath ); // The directory structure for this project may // not exists so create it if missing. File directory = destinationFile.getParentFile(); if ( directory.exists() == false ) { directory.mkdirs(); } if ( destinationFile.exists() && dep.getVersion().indexOf( SNAPSHOT_SIGNATURE ) < 0 ) { continue; } getRemoteArtifact( repositoryPath, destinationFile ); if ( !destinationFile.exists() ) { throw new Exception( "Failed to download " + dep ); } downloadedArtifacts.add( dep ); } } }
|
47050 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47050/a5c95ef10e4fb60c32ac2eed355e9f3991f7b35b/ArtifactDownloader.java/buggy/maven-mboot2/src/main/java/download/ArtifactDownloader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4224,
8053,
12,
987,
1390,
262,
3639,
1216,
1185,
565,
288,
3639,
364,
261,
4498,
525,
273,
1390,
18,
9838,
5621,
525,
18,
5332,
2134,
5621,
262,
3639,
288,
5411,
11993,
5993,
273,
261,
7787,
13,
525,
18,
4285,
5621,
5411,
309,
261,
401,
2378,
4230,
16981,
18,
12298,
12,
5993,
18,
26321,
1435,
262,
262,
5411,
288,
7734,
514,
3352,
743,
273,
5993,
18,
588,
3305,
743,
5621,
7734,
1387,
2929,
812,
273,
394,
1387,
12,
20499,
8791,
2042,
16,
3352,
743,
11272,
7734,
368,
1021,
1867,
3695,
364,
333,
1984,
2026,
7734,
368,
486,
1704,
1427,
752,
518,
309,
3315,
18,
7734,
1387,
1867,
273,
2929,
812,
18,
588,
3054,
812,
5621,
7734,
309,
261,
1867,
18,
1808,
1435,
422,
629,
262,
7734,
288,
10792,
1867,
18,
24816,
8291,
5621,
7734,
289,
7734,
309,
261,
2929,
812,
18,
1808,
1435,
597,
5993,
18,
588,
1444,
7675,
31806,
12,
14204,
31667,
67,
26587,
262,
411,
374,
262,
7734,
288,
10792,
1324,
31,
7734,
289,
7734,
14879,
7581,
12,
3352,
743,
16,
2929,
812,
11272,
7734,
309,
261,
401,
10590,
812,
18,
1808,
1435,
262,
7734,
288,
10792,
604,
394,
1185,
12,
315,
2925,
358,
4224,
315,
397,
5993,
11272,
7734,
289,
7734,
13549,
16981,
18,
1289,
12,
5993,
11272,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
918,
4224,
8053,
12,
987,
1390,
262,
3639,
1216,
1185,
565,
288,
3639,
364,
261,
4498,
525,
273,
1390,
18,
9838,
5621,
525,
18,
5332,
2134,
5621,
262,
3639,
288,
5411,
11993,
5993,
273,
261,
7787,
13,
525,
18,
4285,
5621,
5411,
309,
261,
401,
2378,
4230,
16981,
18,
12298,
12,
5993,
18,
26321,
1435,
262,
262,
5411,
288,
7734,
514,
3352,
743,
273,
5993,
18,
588,
3305,
743,
5621,
7734,
1387,
2929,
812,
273,
394,
1387,
12,
20499,
8791,
2042,
16,
3352,
743,
11272,
7734,
368,
1021,
1867,
3695,
364,
333,
1984,
2026,
7734,
368,
486,
1704,
1427,
752,
518,
309,
3315,
18,
7734,
1387,
1867,
273,
2929,
812,
18,
588,
3054,
812,
5621,
7734,
309,
2
] |
Bot bot = null; Command cmd = new Command(); try { con.send((new Command(Command.CMD_WELCOME, 0, 0, 0)).getCommandBytes()); while (bot == null) { System.out.println("Warte auf Willkommen..."); if (cmd.readCommand(con) == 0) { if (cmd.getCommand() == Command.CMD_WELCOME) { if (cmd.getSubcommand() != Command.SUB_WELCOME_REAL) { String name = getNewBotName("ctSim.model.bots.CtBotSimTcp"); bot = new CtBotSimTcp(this.world, name, new Point3d(0.5d, 0d, 0.075d), new Vector3d(1.0f, -0.5f, 0f), con); System.out.println("Virtueller Bot nimmt Verbindung auf"); } } else { System.out.print("Bot ist nicht willkommen: \n" + cmd.toString()+ "\n"+ " ==> Bot laeuft schon oder ist veraltet \n"+ "Schicke Willkommen nochmals\n"); con.send((new Command(Command.CMD_WELCOME, 0, 0, 0)).getCommandBytes()); } } else System.out.print("Fehlerhaftes Kommando gefunden: \n");
|
Bot bot = null; Command cmd = new Command(); try { con.send((new Command(Command.CMD_WELCOME, 0, 0, 0)).getCommandBytes()); while (bot == null) { lg.fine("Warte auf Willkommen ...");
|
public void addBot(Connection con) { Bot bot = null; Command cmd = new Command(); try { // Hallo sagen con.send((new Command(Command.CMD_WELCOME, 0, 0, 0)).getCommandBytes()); // TODO Timeout einfuegen!! while (bot == null) { System.out.println("Warte auf Willkommen..."); //$NON-NLS-1$ if (cmd.readCommand(con) == 0) { if (cmd.getCommand() == Command.CMD_WELCOME) { if (cmd.getSubcommand() != Command.SUB_WELCOME_REAL) { String name = getNewBotName("ctSim.model.bots.CtBotSimTcp"); bot = new CtBotSimTcp(this.world, name, new Point3d(0.5d, 0d, 0.075d), new Vector3d(1.0f, -0.5f, 0f), con); System.out.println("Virtueller Bot nimmt Verbindung auf"); //$NON-NLS-1$ } } else { System.out.print("Bot ist nicht willkommen: \n" //$NON-NLS-1$ + cmd.toString()+ "\n"+ //$NON-NLS-1$ " ==> Bot laeuft schon oder ist veraltet \n"+ //$NON-NLS-1$ "Schicke Willkommen nochmals\n"); //$NON-NLS-1$ // Hallo sagen con.send((new Command(Command.CMD_WELCOME, 0, 0, 0)).getCommandBytes()); } } else System.out.print("Fehlerhaftes Kommando gefunden: \n"); //$NON-NLS-1$ } } catch (IOException ex) { ErrorHandler.error("TCPConnection unterbrochen - Verbindung nicht moeglich: " + ex); //$NON-NLS-1$ } if (bot != null && this.world != null && this.judge.isAddAllowed()) { // TODO: addBot(bot); //this.ctSim.addBot(new BotInfo("CTest", bot, new DefBotPanel())); //$NON-NLS-1$//$NON-NLS-2$ //BotManager.addBot(new BotInfo("CTest", bot, new DefBotPanel())); } else try { con.disconnect(); } catch (Exception ex) { // Wenn jetzt noch was schief geht interessiert es uns nicht mehr } }
|
49082 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49082/f67f2ce500c0650f1156cddabad1912a044f5e91/DefaultController.java/buggy/ctSim/controller/DefaultController.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
527,
6522,
12,
1952,
356,
13,
288,
202,
202,
6522,
2512,
273,
446,
31,
202,
202,
2189,
1797,
273,
394,
3498,
5621,
202,
202,
698,
288,
1082,
202,
759,
670,
287,
383,
20908,
275,
1082,
202,
591,
18,
4661,
12443,
2704,
3498,
12,
2189,
18,
19473,
67,
59,
2247,
3865,
958,
16,
374,
16,
202,
20,
16,
374,
13,
2934,
588,
2189,
2160,
10663,
1082,
202,
759,
2660,
7804,
425,
10625,
344,
4507,
8548,
1082,
202,
17523,
261,
4819,
422,
446,
13,
288,
9506,
202,
3163,
18,
659,
18,
8222,
2932,
59,
485,
73,
279,
696,
9980,
79,
362,
27617,
7070,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
9506,
202,
430,
261,
4172,
18,
896,
2189,
12,
591,
13,
422,
374,
13,
288,
6862,
25083,
202,
430,
261,
4172,
18,
588,
2189,
1435,
422,
3498,
18,
19473,
67,
59,
2247,
3865,
958,
13,
288,
25083,
202,
430,
261,
4172,
18,
588,
1676,
3076,
1435,
480,
3498,
18,
8362,
67,
59,
2247,
3865,
958,
67,
31052,
13,
288,
6862,
1082,
202,
780,
508,
273,
12654,
6522,
461,
2932,
299,
7993,
18,
2284,
18,
4819,
87,
18,
39,
88,
6522,
7993,
27591,
8863,
6862,
1082,
202,
4819,
273,
394,
30714,
6522,
7993,
27591,
12,
2211,
18,
18179,
16,
508,
16,
6862,
6862,
202,
2704,
4686,
23,
72,
12,
20,
18,
25,
72,
16,
374,
72,
16,
374,
18,
20,
5877,
72,
3631,
6862,
6862,
202,
2704,
5589,
23,
72,
12,
21,
18,
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,
225,
202,
482,
918,
527,
6522,
12,
1952,
356,
13,
288,
202,
202,
6522,
2512,
273,
446,
31,
202,
202,
2189,
1797,
273,
394,
3498,
5621,
202,
202,
698,
288,
1082,
202,
759,
670,
287,
383,
20908,
275,
1082,
202,
591,
18,
4661,
12443,
2704,
3498,
12,
2189,
18,
19473,
67,
59,
2247,
3865,
958,
16,
374,
16,
202,
20,
16,
374,
13,
2934,
588,
2189,
2160,
10663,
1082,
202,
759,
2660,
7804,
425,
10625,
344,
4507,
8548,
1082,
202,
17523,
261,
4819,
422,
446,
13,
288,
9506,
202,
3163,
18,
659,
18,
8222,
2932,
59,
485,
73,
279,
696,
9980,
79,
362,
27617,
7070,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
9506,
202,
430,
261,
4172,
2
] |
count = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF);
|
name = getString(theData.itsStringTable, iCode, pc + 1); count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF);
|
public static Object interpret(InterpreterData theData) throws JavaScriptException { Object lhs; Object[] stack = new Object[theData.itsMaxStack]; int stackTop = -1; byte[] iCode = theData.itsICode; int pc = 0; int iCodeLength = theData.itsICodeTop; Object[] local = null; // used for newtemp/usetemp etc. if (theData.itsMaxLocals > 0) local = new Object[theData.itsMaxLocals]; Object[] vars = null; int i = theData.itsVariableTable.size(); if (i > 0) { vars = new Object[i]; for (i = 0; i < theData.itsVariableTable.getParameterCount(); i++) { if (i >= theData.itsInArgs.length) vars[i] = Undefined.instance; else vars[i] = theData.itsInArgs[i]; } for ( ; i < vars.length; i++) vars[i] = Undefined.instance; } Context cx = theData.itsCX; Scriptable scope = theData.itsScope; if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs; int count; int slot; String name = null; Object[] outArgs; int lIntValue; long lLongValue; int rIntValue; int[] catchStack = null; int[] finallyStack = null; Scriptable[] scopeStack = null; int tryStackTop = 0; if (theData.itsMaxTryDepth > 0) { catchStack = new int[theData.itsMaxTryDepth]; finallyStack = new int[theData.itsMaxTryDepth]; scopeStack = new Scriptable[theData.itsMaxTryDepth]; } /* Save the security domain. Must restore upon normal exit. * If we exit the interpreter loop by throwing an exception, * set cx.interpreterSecurityDomain to null, and require the * catching function to restore it. */ Object savedSecurityDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; Object result = Undefined.instance; while (pc < iCodeLength) { try { switch ((int)(iCode[pc] & 0xff)) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : i = getTarget(iCode, pc + 1); if (i == pc) i = 0; catchStack[tryStackTop] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; finallyStack[tryStackTop] = i; scopeStack[tryStackTop++] = scope; pc += 4; break; case TokenStream.GE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LEB(rhs, lhs); break; case TokenStream.LE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LEB(lhs, rhs); break; case TokenStream.GT : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LTB(rhs, lhs); break; case TokenStream.LT : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LTB(lhs, rhs); break; case TokenStream.IN : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Boolean(ScriptRuntime.in(lhs, rhs)); break; case TokenStream.INSTANCEOF : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Boolean(ScriptRuntime.instanceOf(lhs, rhs)); break; case TokenStream.EQ : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.eqB(rhs, lhs); break; case TokenStream.NE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.neB(lhs, rhs); break; case TokenStream.SHEQ : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.seqB(lhs, rhs); break; case TokenStream.SHNE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.sneB(lhs, rhs); break; case TokenStream.IFNE : if (!ScriptRuntime.toBoolean(stack[stackTop--])) { pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : if (ScriptRuntime.toBoolean(stack[stackTop--])) { pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : stack[++stackTop] = new Integer(pc + 3); pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[++pc] & 0xFF); pc = ((Integer)local[slot]).intValue(); continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop--]; break; case TokenStream.RETURN : result = stack[stackTop--]; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(~rIntValue); break; case TokenStream.BITAND : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue & rIntValue); break; case TokenStream.BITOR : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue | rIntValue); break; case TokenStream.BITXOR : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue ^ rIntValue); break; case TokenStream.LSH : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue << rIntValue); break; case TokenStream.RSH : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue >> rIntValue); break; case TokenStream.URSH : rIntValue = (ScriptRuntime.toInt32(stack[stackTop--]) & 0x1F); lLongValue = ScriptRuntime.toUint32(stack[stackTop]); stack[stackTop] = new Double(lLongValue >>> rIntValue); break; case TokenStream.ADD : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.add(lhs, rhs); break; case TokenStream.SUB : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) - ScriptRuntime.toNumber(rhs)); break; case TokenStream.NEG : rhs = stack[stackTop]; stack[stackTop] = new Double(-ScriptRuntime.toNumber(rhs)); break; case TokenStream.POS : rhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(rhs)); break; case TokenStream.MUL : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) * ScriptRuntime.toNumber(rhs)); break; case TokenStream.DIV : rhs = stack[stackTop--]; lhs = stack[stackTop]; // Detect the divide by zero or let Java do it ? stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) / ScriptRuntime.toNumber(rhs)); break; case TokenStream.MOD : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) % ScriptRuntime.toNumber(rhs)); break; case TokenStream.BINDNAME : stack[++stackTop] = ScriptRuntime.bind(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.GETBASE : stack[++stackTop] = ScriptRuntime.getBase(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop--]; lhs = stack[stackTop]; // what about class cast exception here ? stack[stackTop] = ScriptRuntime.setName((Scriptable)lhs, rhs, scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop--]; name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : id = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getElem(lhs, id, scope); break; case TokenStream.SETELEM : rhs = stack[stackTop--]; id = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setElem(lhs, id, rhs, scope); break; case TokenStream.PROPINC : name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : lhs = stack[stackTop]; slot = (iCode[++pc] & 0xFF); local[slot] = lhs; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = local[slot]; break; case TokenStream.CALLSPECIAL : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); name = getString(theData.itsStringTable, iCode, pc + 3); count = (iCode[pc + 5] << 8) | (iCode[pc + 6] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) outArgs[i] = stack[stackTop--]; rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, theData.itsThisObj, scope, name, i); pc += 6; break; case TokenStream.CALL : count = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) outArgs[i] = stack[stackTop--]; rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs); pc += 2; break; case TokenStream.NEW : count = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) outArgs[i] = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 2; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = getString(theData.itsStringTable, iCode, pc + 1); stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = getString(theData.itsStringTable, iCode, pc + 1); pc += 2; break; case TokenStream.NUMBER : stack[++stackTop] = getNumber(theData.itsNumberTable, iCode, pc + 1); pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETVAR : lhs = stack[stackTop]; slot = (iCode[++pc] & 0xFF); vars[slot] = lhs; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = vars[slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = vars[slot]; vars[slot] = ScriptRuntime.postIncrement(vars[slot]); break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = vars[slot]; vars[slot] = ScriptRuntime.postDecrement(vars[slot]); break; case TokenStream.ZERO : stack[++stackTop] = zero; break; case TokenStream.ONE : stack[++stackTop] = one; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = theData.itsThisObj; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : cx.interpreterSecurityDomain = null; throw new JavaScriptException(stack[stackTop--]); case TokenStream.JTHROW : cx.interpreterSecurityDomain = null; lhs = stack[stackTop--]; if (lhs instanceof JavaScriptException) throw (JavaScriptException)lhs; else throw (RuntimeException)lhs; case TokenStream.ENTERWITH : lhs = stack[stackTop--]; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop--]; local[slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = ScriptRuntime.nextEnum((Enumeration)local[slot]); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = new NativeClosure(cx, scope, theData.itsNestedFunctions[i]); pc += 2; break; case TokenStream.OBJECT : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case TokenStream.LINE : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); cx.interpreterLine = i; pc += 2; break; case TokenStream.SOURCEFILE : cx.interpreterSourceFile = theData.itsSourceFile; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (EcmaError ee) { // an offical ECMA error object, // handle as if it were a JavaScriptException stackTop = 0; cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { pc = catchStack[tryStackTop - 1]; scope = scopeStack[tryStackTop - 1]; if (pc == 0) { pc = finallyStack[tryStackTop - 1]; if (pc == 0) throw ee; stack[0] = ee.getErrorObject(); } else stack[0] = ee.getErrorObject(); } else throw ee; // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } catch (JavaScriptException jsx) { stackTop = 0; cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { pc = catchStack[tryStackTop - 1]; scope = scopeStack[tryStackTop - 1]; if (pc == 0) { pc = finallyStack[tryStackTop - 1]; if (pc == 0) throw jsx; stack[0] = jsx; } else stack[0] = ScriptRuntime.unwrapJavaScriptException(jsx); } else throw jsx; // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } /* debug only, will be going soon catch (ArrayIndexOutOfBoundsException oob) { System.out.println("OOB @ " + pc + " " + oob + " in " + theData.itsName + " " + oob.getMessage()); throw oob; } */ catch (RuntimeException jx) { cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { stackTop = 0; stack[0] = jx; pc = finallyStack[tryStackTop - 1]; scope = scopeStack[tryStackTop - 1]; if (pc == 0) throw jx; } else throw jx; // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } } cx.interpreterSecurityDomain = savedSecurityDomain; return result; }
|
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/20d55df771c4a873866009d070fb9b0f89f67ff3/Interpreter.java/buggy/js/rhino/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
30010,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
1033,
8499,
31,
3639,
1033,
8526,
2110,
273,
394,
1033,
63,
5787,
751,
18,
1282,
2747,
2624,
15533,
3639,
509,
2110,
3401,
273,
300,
21,
31,
3639,
1160,
8526,
277,
1085,
273,
326,
751,
18,
1282,
45,
1085,
31,
7734,
509,
6125,
273,
374,
31,
3639,
509,
277,
1085,
1782,
273,
326,
751,
18,
1282,
45,
1085,
3401,
31,
7734,
1033,
8526,
1191,
273,
446,
31,
3639,
368,
1399,
364,
394,
5814,
19,
407,
278,
30752,
5527,
18,
3639,
309,
261,
5787,
751,
18,
1282,
2747,
1333,
1031,
405,
374,
13,
5411,
1191,
273,
394,
1033,
63,
5787,
751,
18,
1282,
2747,
1333,
1031,
15533,
18701,
1033,
8526,
4153,
273,
446,
31,
7734,
509,
277,
273,
326,
751,
18,
1282,
3092,
1388,
18,
1467,
5621,
3639,
309,
261,
77,
405,
374,
13,
288,
5411,
4153,
273,
394,
1033,
63,
77,
15533,
5411,
364,
261,
77,
273,
374,
31,
277,
411,
326,
751,
18,
1282,
3092,
1388,
18,
588,
1662,
1380,
5621,
277,
27245,
288,
7734,
309,
261,
77,
1545,
326,
751,
18,
1282,
382,
2615,
18,
2469,
13,
10792,
4153,
63,
77,
65,
273,
22243,
18,
1336,
31,
7734,
469,
4766,
565,
4153,
63,
77,
65,
273,
326,
751,
18,
1282,
382,
2615,
63,
77,
15533,
7734,
289,
5411,
364,
261,
274,
277,
411,
4153,
18,
2469,
31,
277,
27245,
7734,
4153,
63,
77,
65,
273,
22243,
18,
1336,
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,
1033,
10634,
12,
30010,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
1033,
8499,
31,
3639,
1033,
8526,
2110,
273,
394,
1033,
63,
5787,
751,
18,
1282,
2747,
2624,
15533,
3639,
509,
2110,
3401,
273,
300,
21,
31,
3639,
1160,
8526,
277,
1085,
273,
326,
751,
18,
1282,
45,
1085,
31,
7734,
509,
6125,
273,
374,
31,
3639,
509,
277,
1085,
1782,
273,
326,
751,
18,
1282,
45,
1085,
3401,
31,
7734,
1033,
8526,
1191,
273,
446,
31,
3639,
368,
1399,
364,
394,
5814,
19,
407,
278,
30752,
5527,
18,
3639,
309,
261,
5787,
751,
18,
1282,
2747,
1333,
1031,
405,
374,
13,
5411,
1191,
273,
394,
1033,
63,
5787,
751,
18,
1282,
2
] |
public EuclideanDistance getDistanceF() {
|
public DistanceFunction getDistanceF() {
|
public EuclideanDistance getDistanceF() { return m_DistanceF; }
|
4773 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4773/fc7224a4e289f8b141d536ca4c5ada557f27f6ff/XMeans.java/buggy/weka/clusterers/XMeans.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
20335,
2083,
29452,
42,
1435,
288,
565,
327,
312,
67,
7200,
42,
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,
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,
282,
1071,
20335,
2083,
29452,
42,
1435,
288,
565,
327,
312,
67,
7200,
42,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void setYear(int year) { this.year = year; invalidate(); }
|
public void setYear(int year) { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); cal.set(Calendar.YEAR, 1900 + year); time = cal.getTimeInMillis(); }
|
public void setYear(int year) { this.year = year; invalidate(); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Date.java/clean/core/src/classpath/java/java/util/Date.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
5593,
12,
474,
3286,
13,
288,
202,
202,
2211,
18,
6874,
273,
3286,
31,
202,
202,
5387,
340,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
5593,
12,
474,
3286,
13,
288,
202,
202,
2211,
18,
6874,
273,
3286,
31,
202,
202,
5387,
340,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 Set findContainerHierarchies(@NotNull Class rootNodeType, @NotNull @Validate(Long.class) Set imageIds, Map options) {
|
public Set findContainerHierarchies( @NotNull final Class rootNodeType, @NotNull @Validate(Long.class) final Set imageIds, Map options) {
|
public Set findContainerHierarchies(@NotNull Class rootNodeType, @NotNull @Validate(Long.class) Set imageIds, Map options) { PojoOptions po = new PojoOptions(options); Query<List<IObject>> q = queryFactory.lookup( PojosFindHierarchiesQueryDefinition.class.getName(), new Parameters() .addClass(rootNodeType) .addIds(imageIds) .addOptions(po.map())); List<IObject> l = iQuery.execute(q); collectCounts(l,po); // // Destructive changes below this point. // for (IObject object : l) { iQuery.evict(object); } // TODO; this if-else statement could be removed if Transformations // did their own dispatching // TODO: logging, null checking. daos should never return null // TODO then size! if (Project.class.equals(rootNodeType)) { if (imageIds.size()==0){ return new HashSet(); } return HierarchyTransformations.invertPDI(new HashSet<IObject>(l)); } else if (CategoryGroup.class.equals(rootNodeType)){ if (imageIds.size()==0){ return new HashSet(); } return HierarchyTransformations.invertCGCI(new HashSet<IObject>(l)); } else {throw new IllegalArgumentException( // TODO refactor. move this up. "Class parameter for findContainerHierarchies() must be" + " in {Project,CategoryGroup}, not " + rootNodeType); } }
|
55636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55636/59b11883b95c926d6706e6d30b4cdb898088683c/PojosImpl.java/buggy/components/server/src/ome/logic/PojosImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1000,
1104,
2170,
44,
5148,
606,
26964,
5962,
1659,
10181,
559,
16,
2398,
632,
5962,
632,
4270,
12,
3708,
18,
1106,
13,
1000,
1316,
2673,
16,
1635,
702,
13,
288,
9506,
202,
52,
10007,
1320,
8275,
273,
394,
453,
10007,
1320,
12,
2116,
1769,
7734,
2770,
32,
682,
32,
45,
921,
9778,
1043,
273,
843,
1733,
18,
8664,
12,
7734,
453,
6311,
538,
3125,
44,
5148,
606,
1138,
1852,
18,
1106,
18,
17994,
9334,
7734,
394,
7012,
1435,
10792,
263,
1289,
797,
12,
3085,
15101,
13,
10792,
263,
1289,
2673,
12,
2730,
2673,
13,
10792,
263,
1289,
1320,
12,
1631,
18,
1458,
1435,
10019,
3639,
987,
32,
45,
921,
34,
328,
273,
277,
1138,
18,
8837,
12,
85,
1769,
3639,
3274,
9211,
12,
80,
16,
1631,
1769,
3639,
368,
3639,
368,
10597,
8813,
688,
3478,
5712,
333,
1634,
18,
3639,
368,
3639,
364,
261,
45,
921,
733,
294,
328,
13,
3639,
288,
5411,
277,
1138,
18,
73,
11946,
12,
1612,
1769,
5411,
289,
3639,
368,
2660,
31,
333,
309,
17,
12107,
3021,
3377,
506,
3723,
309,
11514,
1012,
540,
368,
5061,
3675,
4953,
3435,
310,
540,
368,
2660,
30,
2907,
16,
446,
6728,
18,
5248,
538,
1410,
5903,
327,
446,
540,
368,
2660,
1508,
963,
5,
202,
202,
430,
261,
4109,
18,
1106,
18,
14963,
12,
3085,
15101,
3719,
288,
1082,
202,
430,
261,
2730,
2673,
18,
1467,
1435,
631,
20,
15329,
9506,
202,
2463,
394,
6847,
5621,
1082,
202,
97,
2398,
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,
482,
1000,
1104,
2170,
44,
5148,
606,
26964,
5962,
1659,
10181,
559,
16,
2398,
632,
5962,
632,
4270,
12,
3708,
18,
1106,
13,
1000,
1316,
2673,
16,
1635,
702,
13,
288,
9506,
202,
52,
10007,
1320,
8275,
273,
394,
453,
10007,
1320,
12,
2116,
1769,
7734,
2770,
32,
682,
32,
45,
921,
9778,
1043,
273,
843,
1733,
18,
8664,
12,
7734,
453,
6311,
538,
3125,
44,
5148,
606,
1138,
1852,
18,
1106,
18,
17994,
9334,
7734,
394,
7012,
1435,
10792,
263,
1289,
797,
12,
3085,
15101,
13,
10792,
263,
1289,
2673,
12,
2730,
2673,
13,
10792,
263,
1289,
1320,
12,
1631,
18,
1458,
1435,
10019,
3639,
987,
32,
45,
921,
34,
328,
273,
277,
1138,
18,
8837,
2
] |
return defaultConstraints.gridy; }
|
return defaultConstraints.gridy; }
|
public int getGridY() { return defaultConstraints.gridy; }
|
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/b723a0ed6d31e14b737f03996f1e35c7db8d7236/ToolBarLayout.java/buggy/grendel/ui/ToolBarLayout.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
336,
6313,
61,
1435,
288,
202,
2463,
805,
4878,
18,
5222,
93,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
336,
6313,
61,
1435,
288,
202,
2463,
805,
4878,
18,
5222,
93,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
jj_expentries.removeAllElements(); boolean[] la1tokens = new boolean[27]; for (int i = 0; i < 27; i++) { la1tokens[i] = false;
|
jj_expentries.removeAllElements(); boolean[] la1tokens = new boolean[29]; for (int i = 0; i < 29; i++) { la1tokens[i] = false; } if (jj_kind >= 0) { la1tokens[jj_kind] = true; jj_kind = -1; } for (int i = 0; i < 6; i++) { if (jj_la1[i] == jj_gen) { for (int j = 0; j < 32; j++) { if ((jj_la1_0[i] & (1<<j)) != 0) { la1tokens[j] = true; }
|
static public ParseException generateParseException() { jj_expentries.removeAllElements(); boolean[] la1tokens = new boolean[27]; for (int i = 0; i < 27; i++) { la1tokens[i] = false; } if (jj_kind >= 0) { la1tokens[jj_kind] = true; jj_kind = -1; } for (int i = 0; i < 6; i++) { if (jj_la1[i] == jj_gen) { for (int j = 0; j < 32; j++) { if ((jj_la1_0[i] & (1 << j)) != 0) { la1tokens[j] = true; } } } } for (int i = 0; i < 27; i++) { if (la1tokens[i]) { jj_expentry = new int[1]; jj_expentry[0] = i; jj_expentries.addElement(jj_expentry); } } jj_endpos = 0; jj_rescan_token(); jj_add_error_token(0, 0); int[][] exptokseq = new int[jj_expentries.size()][]; for (int i = 0; i < jj_expentries.size(); i++) { exptokseq[i] = (int[]) jj_expentries.elementAt(i); } return new ParseException(token, exptokseq, tokenImage); }
|
7955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7955/bad00f3f09c2c02431a6ece8c42243cb1bcfaf44/AnnotationParser.java/buggy/backport175/src/main/org/codehaus/backport175/compiler/parser/ast/AnnotationParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1071,
10616,
2103,
13047,
1435,
288,
3639,
10684,
67,
338,
1907,
2007,
18,
4479,
1595,
3471,
5621,
3639,
1250,
8526,
7125,
21,
7860,
273,
394,
1250,
63,
5324,
15533,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
12732,
31,
277,
27245,
288,
5411,
7125,
21,
7860,
63,
77,
65,
273,
629,
31,
3639,
289,
3639,
309,
261,
78,
78,
67,
9224,
1545,
374,
13,
288,
5411,
7125,
21,
7860,
63,
78,
78,
67,
9224,
65,
273,
638,
31,
5411,
10684,
67,
9224,
273,
300,
21,
31,
3639,
289,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1666,
31,
277,
27245,
288,
5411,
309,
261,
78,
78,
67,
11821,
21,
63,
77,
65,
422,
10684,
67,
4507,
13,
288,
7734,
364,
261,
474,
525,
273,
374,
31,
525,
411,
3847,
31,
525,
27245,
288,
10792,
309,
14015,
78,
78,
67,
11821,
21,
67,
20,
63,
77,
65,
473,
261,
21,
2296,
525,
3719,
480,
374,
13,
288,
13491,
7125,
21,
7860,
63,
78,
65,
273,
638,
31,
10792,
289,
7734,
289,
5411,
289,
3639,
289,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
12732,
31,
277,
27245,
288,
5411,
309,
261,
11821,
21,
7860,
63,
77,
5717,
288,
7734,
10684,
67,
338,
1907,
698,
273,
394,
509,
63,
21,
15533,
7734,
10684,
67,
338,
1907,
698,
63,
20,
65,
273,
277,
31,
7734,
10684,
67,
338,
1907,
2007,
18,
1289,
1046,
12,
78,
78,
67,
338,
1907,
698,
1769,
5411,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1071,
10616,
2103,
13047,
1435,
288,
3639,
10684,
67,
338,
1907,
2007,
18,
4479,
1595,
3471,
5621,
3639,
1250,
8526,
7125,
21,
7860,
273,
394,
1250,
63,
5324,
15533,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
12732,
31,
277,
27245,
288,
5411,
7125,
21,
7860,
63,
77,
65,
273,
629,
31,
3639,
289,
3639,
309,
261,
78,
78,
67,
9224,
1545,
374,
13,
288,
5411,
7125,
21,
7860,
63,
78,
78,
67,
9224,
65,
273,
638,
31,
5411,
10684,
67,
9224,
273,
300,
21,
31,
3639,
289,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1666,
31,
277,
27245,
288,
5411,
309,
261,
78,
78,
67,
11821,
21,
63,
77,
65,
422,
2
] |
if (styleESet) result.append(style); else result.append("<unset>");
|
if (styleESet) result.append(style); else result.append("<unset>");
|
public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (style: "); if (styleESet) result.append(style); else result.append("<unset>"); result.append(", thickness: "); if (thicknessESet) result.append(thickness); else result.append("<unset>"); result.append(", visible: "); if (visibleESet) result.append(visible); else result.append("<unset>"); result.append(')'); return result.toString(); }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/LineAttributesImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/LineAttributesImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
1435,
565,
288,
3639,
309,
261,
73,
2520,
3886,
10756,
327,
2240,
18,
10492,
5621,
3639,
6674,
563,
273,
394,
6674,
12,
9565,
18,
10492,
10663,
3639,
563,
18,
6923,
2932,
261,
4060,
30,
315,
1769,
3639,
309,
261,
4060,
41,
694,
13,
563,
18,
6923,
12,
4060,
1769,
469,
563,
18,
6923,
2932,
32,
18579,
2984,
1769,
3639,
563,
18,
6923,
2932,
16,
27199,
30,
315,
1769,
3639,
309,
261,
451,
19517,
41,
694,
13,
563,
18,
6923,
12,
451,
19517,
1769,
469,
563,
18,
6923,
2932,
32,
18579,
2984,
1769,
3639,
563,
18,
6923,
2932,
16,
6021,
30,
315,
1769,
3639,
309,
261,
8613,
41,
694,
13,
563,
18,
6923,
12,
8613,
1769,
469,
563,
18,
6923,
2932,
32,
18579,
2984,
1769,
3639,
563,
18,
6923,
2668,
2506,
1769,
3639,
327,
563,
18,
10492,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
1435,
565,
288,
3639,
309,
261,
73,
2520,
3886,
10756,
327,
2240,
18,
10492,
5621,
3639,
6674,
563,
273,
394,
6674,
12,
9565,
18,
10492,
10663,
3639,
563,
18,
6923,
2932,
261,
4060,
30,
315,
1769,
3639,
309,
261,
4060,
41,
694,
13,
563,
18,
6923,
12,
4060,
1769,
469,
563,
18,
6923,
2932,
32,
18579,
2984,
1769,
3639,
563,
18,
6923,
2932,
16,
27199,
30,
315,
1769,
3639,
309,
261,
451,
19517,
41,
694,
13,
563,
18,
6923,
12,
451,
19517,
1769,
469,
563,
18,
6923,
2932,
32,
18579,
2984,
1769,
3639,
563,
18,
6923,
2932,
16,
6021,
30,
315,
1769,
3639,
309,
261,
8613,
41,
694,
13,
563,
18,
6923,
12,
8613,
1769,
2
] |
ReaderToUTF8Stream utfIn = new ReaderToUTF8Stream( reader, usableLength, truncationLength); /* JDBC is one-based, DBMS is zero-based */
|
private void setCharacterStreamInternal(int parameterIndex, Reader reader, long length) throws SQLException { // check for -ve length if (length < 0) throw newSQLException(SQLState.NEGATIVE_STREAM_LENGTH); int jdbcTypeId = getParameterJDBCType(parameterIndex); if (reader == null) { setNull(parameterIndex, jdbcTypeId); return; } /* The value stored should not exceed the maximum value that can be stored in an integer This checking needs to be done because currently derby does not support Clob sizes greater than 2G-1 */ if (length > Integer.MAX_VALUE) throw newSQLException(SQLState.LANG_OUTSIDE_RANGE_FOR_DATATYPE, preparedStatement.getParameterTypes() [parameterIndex-1].getSQLstring()); /* We cast the length from long to int. This would'nt be appropriate if the limit of 2G-1 is decided to be increased at a later stage. */ int intLength = (int)length; try { ParameterValueSet pvs = getParms(); int usableLength = intLength; int truncationLength = 0; // Currently long varchar does not allow for truncation of trailing // blanks. // For char and varchar types, current mechanism of materializing // when using streams seems fine given their max limits. // This change is fix for DERBY-352: Insert of clobs using streams // should not materialize the entire stream into memory // In case of clobs, the truncation of trailing blanks is factored // in when reading from the stream without materializing the entire // stream, and so the special casing for clob below. if (jdbcTypeId == Types.CLOB) { // Need column width to figure out if truncation is needed DataTypeDescriptor dtd[] = preparedStatement .getParameterTypes(); int colWidth = dtd[parameterIndex - 1].getMaximumWidth(); // It is possible that the length of the stream passed in is // greater than the column width, in which case the data from // the stream needs to be truncated. // usableLength is the length of the data from stream that can // be inserted which is min(colWidth,length) provided // length - colWidth has trailing blanks only // we have used intLength into which the length variable had // been cast to an int and stored if (intLength > colWidth) { usableLength = colWidth; truncationLength = intLength - usableLength; } } ReaderToUTF8Stream utfIn = new ReaderToUTF8Stream( reader, usableLength, truncationLength); /* JDBC is one-based, DBMS is zero-based */ pvs.getParameterForSet( parameterIndex - 1).setValue(utfIn, usableLength); } catch (StandardException t) { throw EmbedResultSet.noStateChangeException(t); } }
|
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/242c9bda1c1d17214c7658796d4b08809bdad2db/EmbedPreparedStatement.java/clean/java/engine/org/apache/derby/impl/jdbc/EmbedPreparedStatement.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
444,
7069,
1228,
3061,
12,
474,
25412,
16,
25083,
202,
2514,
2949,
16,
1525,
769,
13,
202,
565,
1216,
6483,
202,
95,
3639,
368,
866,
364,
300,
537,
769,
3639,
309,
261,
2469,
411,
374,
13,
6647,
604,
394,
23116,
12,
3997,
1119,
18,
5407,
22421,
67,
13693,
67,
7096,
1769,
202,
565,
509,
16579,
11731,
273,
5575,
30499,
559,
12,
6775,
1016,
1769,
3639,
309,
261,
10530,
422,
446,
13,
225,
288,
2398,
444,
2041,
12,
6775,
1016,
16,
16579,
11731,
1769,
2398,
327,
31,
3639,
289,
3639,
1748,
6647,
1021,
460,
4041,
1410,
486,
9943,
326,
4207,
460,
716,
848,
506,
5411,
4041,
316,
392,
3571,
5411,
1220,
6728,
4260,
358,
506,
2731,
2724,
4551,
4854,
1637,
1552,
486,
6647,
2865,
385,
1295,
8453,
6802,
2353,
576,
43,
17,
21,
540,
1195,
565,
202,
565,
309,
261,
2469,
405,
2144,
18,
6694,
67,
4051,
13,
9079,
604,
394,
23116,
12,
3997,
1119,
18,
10571,
67,
5069,
26498,
67,
15928,
67,
7473,
67,
11102,
789,
1738,
16,
5375,
8208,
3406,
18,
588,
1662,
2016,
1435,
5375,
306,
6775,
1016,
17,
21,
8009,
588,
3997,
1080,
10663,
3639,
1748,
5411,
1660,
4812,
326,
769,
628,
1525,
358,
509,
18,
1220,
4102,
11,
496,
506,
5505,
309,
5411,
326,
1800,
434,
576,
43,
17,
21,
353,
2109,
13898,
358,
506,
31383,
622,
279,
5137,
6009,
18,
540,
1195,
3639,
509,
509,
1782,
273,
261,
474,
13,
2469,
31,
1082,
377,
202,
565,
775,
288,
1082,
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,
444,
7069,
1228,
3061,
12,
474,
25412,
16,
25083,
202,
2514,
2949,
16,
1525,
769,
13,
202,
565,
1216,
6483,
202,
95,
3639,
368,
866,
364,
300,
537,
769,
3639,
309,
261,
2469,
411,
374,
13,
6647,
604,
394,
23116,
12,
3997,
1119,
18,
5407,
22421,
67,
13693,
67,
7096,
1769,
202,
565,
509,
16579,
11731,
273,
5575,
30499,
559,
12,
6775,
1016,
1769,
3639,
309,
261,
10530,
422,
446,
13,
225,
288,
2398,
444,
2041,
12,
6775,
1016,
16,
16579,
11731,
1769,
2398,
327,
31,
3639,
289,
3639,
1748,
6647,
1021,
460,
4041,
1410,
486,
9943,
326,
4207,
460,
716,
848,
506,
5411,
4041,
316,
392,
3571,
5411,
1220,
6728,
4260,
358,
506,
2731,
2724,
2
] |
|
_module = resolver.getDependency(_dd, _data);
|
_module = resolver.getDependency(getDependencyDescriptor(getParent()), _data);
|
public boolean loadData(String conf, boolean shouldBePublic) { boolean loaded = false; if (!isEvicted(_rootModuleConf) && (hasConfigurationsToLoad() || !isRootModuleConfLoaded()) && !hasProblem()) { markRootModuleConfLoaded(); if (_md == null) { DependencyResolver resolver = _data.getIvy().getResolver(getModuleId()); if (resolver == null) { Message.error("no resolver found for "+getModuleId()+": check your configuration"); _problem = new RuntimeException("no resolver found for "+getModuleId()+": check your configuration"); _data.getReport().addDependency(this); return false; } try { Message.debug("\tusing "+resolver+" to resolve "+getId()); _module = resolver.getDependency(_dd, _data); if (_module != null) { _data.getIvy().saveResolver(_data.getCache(), _module.getDescriptor(), resolver.getName()); if (_data.getIvy().logModuleWhenFound()) { Message.info("\tfound "+_module.getId()+" in "+_module.getResolver().getName()); } else { Message.verbose("\tfound "+_module.getId()+" in "+_module.getResolver().getName()); } if (!getId().isExactRevision()) { // IVY-56: check if revision has actually been resolved if (!_module.getId().isExactRevision()) { Message.error("impossible to resolve latest revision for "+getId()+": check your configuration and make sure revision is part of your pattern"); _problem = new RuntimeException("impossible to resolve latest revision"); _data.getReport().addDependency(this); return false; } IvyNode resolved = _data.getNode(_module.getId()); if (resolved != null) { // exact revision has already been resolved // => update it and discard this node resolved._downloaded |= _module.isDownloaded(); resolved._searched |= _module.isSearched(); resolved.markSelected(_rootModuleConf); resolved.updateDataFrom(this, _rootModuleConf); resolved.loadData(conf, shouldBePublic); if (_dd != null) { resolved.addDependencyArtifactsIncludes(_rootModuleConf, _dd.getDependencyArtifactsIncludes(getParentConf())); } _data.register(getId(), resolved); // this actually discards the node return true; } } _downloaded = _module.isDownloaded(); _searched = _module.isSearched(); } else { Message.warn("\tmodule not found: "+getId()); resolver.reportFailure(); _problem = new RuntimeException("not found"); } } catch (ParseException e) { _problem = e; } // still not resolved, report error if (_module == null) { _data.getReport().addDependency(this); return false; } else { loaded = true; if (!getId().isExactRevision()) { if (_data.getIvy().logResolvedRevision()) { Message.info("\t["+_module.getId().getRevision()+"] "+getId()); } else { Message.verbose("\t["+_module.getId().getRevision()+"] "+getId()); } } _md = _module.getDescriptor(); // if the revision was a latest one (which has now be resolved) // store also it to cache the result if (!getId().isExactRevision()) { _data.register(_module.getId(), this); } _confsToFetch.remove("*"); updateConfsToFetch(Arrays.asList(resolveSpecialConfigurations(getRequiredConfigurations(getParent(), getParentConf()), this))); } } else { loaded = true; } } if (hasProblem()) { _data.getReport().addDependency(this); return handleConfiguration(loaded, conf, shouldBePublic) && loaded; } if (!handleConfiguration(loaded, conf, shouldBePublic)) { return false; } if (_dd != null) { addDependencyArtifactsIncludes(_rootModuleConf, _dd.getDependencyArtifactsIncludes(getParentConf())); } return loaded; }
|
45724 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45724/66e597b4b19e9bf55e2caf2b1ded420fc39d830e/IvyNode.java/buggy/src/java/fr/jayasoft/ivy/IvyNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
29422,
12,
780,
2195,
16,
1250,
1410,
1919,
4782,
13,
288,
3639,
1250,
4203,
273,
629,
31,
3639,
309,
16051,
291,
29600,
329,
24899,
3085,
3120,
3976,
13,
597,
261,
5332,
9698,
26883,
1435,
747,
401,
291,
2375,
3120,
3976,
8835,
10756,
597,
401,
5332,
13719,
10756,
288,
5411,
2267,
2375,
3120,
3976,
8835,
5621,
5411,
309,
261,
67,
1264,
422,
446,
13,
288,
7734,
11993,
4301,
5039,
273,
389,
892,
18,
588,
45,
29139,
7675,
588,
4301,
12,
588,
3120,
548,
10663,
7734,
309,
261,
14122,
422,
446,
13,
288,
10792,
2350,
18,
1636,
2932,
2135,
5039,
1392,
364,
13773,
588,
3120,
548,
1435,
15,
6877,
866,
3433,
1664,
8863,
10792,
389,
18968,
273,
394,
3235,
2932,
2135,
5039,
1392,
364,
13773,
588,
3120,
548,
1435,
15,
6877,
866,
3433,
1664,
8863,
10792,
389,
892,
18,
588,
4820,
7675,
1289,
7787,
12,
2211,
1769,
10792,
327,
629,
31,
7734,
289,
7734,
775,
288,
10792,
2350,
18,
4148,
31458,
88,
9940,
13773,
14122,
9078,
358,
2245,
13773,
26321,
10663,
10792,
389,
2978,
273,
5039,
18,
588,
7787,
12,
588,
7787,
3187,
12,
588,
3054,
1435,
3631,
389,
892,
1769,
10792,
309,
261,
67,
2978,
480,
446,
13,
288,
13491,
389,
892,
18,
588,
45,
29139,
7675,
5688,
4301,
24899,
892,
18,
588,
1649,
9334,
389,
2978,
18,
588,
3187,
9334,
5039,
18,
17994,
10663,
13491,
309,
261,
67,
892,
18,
588,
45,
29139,
7675,
1330,
3120,
9434,
2043,
10756,
288,
18701,
2350,
18,
1376,
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,
29422,
12,
780,
2195,
16,
1250,
1410,
1919,
4782,
13,
288,
3639,
1250,
4203,
273,
629,
31,
3639,
309,
16051,
291,
29600,
329,
24899,
3085,
3120,
3976,
13,
597,
261,
5332,
9698,
26883,
1435,
747,
401,
291,
2375,
3120,
3976,
8835,
10756,
597,
401,
5332,
13719,
10756,
288,
5411,
2267,
2375,
3120,
3976,
8835,
5621,
5411,
309,
261,
67,
1264,
422,
446,
13,
288,
7734,
11993,
4301,
5039,
273,
389,
892,
18,
588,
45,
29139,
7675,
588,
4301,
12,
588,
3120,
548,
10663,
7734,
309,
261,
14122,
422,
446,
13,
288,
10792,
2350,
18,
1636,
2932,
2135,
5039,
1392,
364,
13773,
588,
3120,
548,
1435,
15,
6877,
866,
3433,
1664,
8863,
10792,
389,
18968,
273,
394,
2
] |
int lastMessageID = 0;
|
int lastMessageId = 0;
|
protected void processResults() { // Determine how many messages there are, and how many there // are left to go. This will cause a lot of server load for // those with lots of messages. But! This can be fixed by // testing the mail manager to see if it thinks all the new // messages have been retrieved. if ( responseText.indexOf( "There are no messages in this mailbox." ) != -1 ) { KoLmafia.updateDisplay( "Your mailbox is empty." ); return; } int lastMessageID = 0; int totalMessages = Integer.MAX_VALUE; try { Matcher matcher = MULTIPAGE_PATTERN.matcher( responseText ); if ( matcher.find() ) { lastMessageID = StaticEntity.parseInt( matcher.group(1) ); totalMessages = StaticEntity.parseInt( matcher.group(2) ); } else { matcher = SINGLEPAGE_PATTERN.matcher( responseText ); if ( matcher.find() ) { lastMessageID = StaticEntity.parseInt( matcher.group(1) ); totalMessages = lastMessageID; } } } catch ( Exception e ) { // This should not happen. Therefore, print // a stack trace for debug purposes. StaticEntity.printStackTrace( e, "Error in mail retrieval" ); return; } int nextMessageIndex = responseText.indexOf( "<td valign=top>" ); if ( nextMessageIndex == -1 ) { KoLmafia.updateDisplay( "Your mailbox is empty." ); return; } nextMessageIndex = processMessages( nextMessageIndex ); KoLmafia.updateDisplay( "Mail retrieved from page 1 of " + boxname ); }
|
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/db652071b06715a4456f702f081fbe5b47aa5a70/MailboxRequest.java/clean/src/net/sourceforge/kolmafia/MailboxRequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1207,
3447,
1435,
202,
95,
202,
202,
759,
10229,
3661,
4906,
2743,
1915,
854,
16,
471,
3661,
4906,
1915,
202,
202,
759,
854,
2002,
358,
1960,
18,
225,
1220,
903,
4620,
279,
17417,
434,
1438,
1262,
364,
202,
202,
759,
5348,
598,
328,
6968,
434,
2743,
18,
202,
12484,
5,
225,
1220,
848,
506,
5499,
635,
202,
202,
759,
7769,
326,
4791,
3301,
358,
2621,
309,
518,
15507,
87,
777,
326,
394,
202,
202,
759,
2743,
1240,
2118,
10295,
18,
202,
202,
430,
261,
23630,
18,
31806,
12,
315,
9828,
854,
1158,
2743,
316,
333,
14187,
1199,
262,
480,
300,
21,
262,
202,
202,
95,
1082,
202,
47,
83,
48,
81,
1727,
1155,
18,
2725,
4236,
12,
315,
15446,
14187,
353,
1008,
1199,
11272,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
474,
1142,
1079,
734,
273,
374,
31,
202,
202,
474,
2078,
5058,
273,
2144,
18,
6694,
67,
4051,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
6286,
4546,
273,
31385,
2833,
67,
10831,
18,
22761,
12,
23630,
11272,
1082,
202,
430,
261,
4546,
18,
4720,
1435,
262,
1082,
202,
95,
9506,
202,
2722,
1079,
734,
273,
10901,
1943,
18,
2670,
1702,
12,
4546,
18,
1655,
12,
21,
13,
11272,
9506,
202,
4963,
5058,
273,
10901,
1943,
18,
2670,
1702,
12,
4546,
18,
1655,
12,
22,
13,
11272,
1082,
202,
97,
1082,
202,
12107,
1082,
202,
95,
9506,
202,
22761,
273,
15915,
11219,
67,
10831,
18,
22761,
12,
23630,
11272,
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,
1207,
3447,
1435,
202,
95,
202,
202,
759,
10229,
3661,
4906,
2743,
1915,
854,
16,
471,
3661,
4906,
1915,
202,
202,
759,
854,
2002,
358,
1960,
18,
225,
1220,
903,
4620,
279,
17417,
434,
1438,
1262,
364,
202,
202,
759,
5348,
598,
328,
6968,
434,
2743,
18,
202,
12484,
5,
225,
1220,
848,
506,
5499,
635,
202,
202,
759,
7769,
326,
4791,
3301,
358,
2621,
309,
518,
15507,
87,
777,
326,
394,
202,
202,
759,
2743,
1240,
2118,
10295,
18,
202,
202,
430,
261,
23630,
18,
31806,
12,
315,
9828,
854,
1158,
2743,
316,
333,
14187,
1199,
262,
480,
300,
21,
262,
202,
202,
95,
1082,
202,
47,
83,
48,
81,
1727,
1155,
18,
2725,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.