rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
public boolean accessWrite(CmsUser currentUser, CmsProject currentProject, CmsResource resource) throws CmsException { // check, if this is the onlineproject if(onlineProject(currentUser, currentProject).equals(currentProject)){ // the online-project is not writeable! return(false); } // check the access to the project if( ! accessProject(currentUser, currentProject, currentProject.getId()) ) { // no access to the project! return(false); } // check if the resource belongs to the current project if(resource.getProjectId() != currentProject.getId()) { return false; } // check, if the resource is locked by the current user // TODO: Find a way to get this work again!!!!! /*if(resource.isLockedBy() != currentUser.getId()) { // resource is not locked by the current user, no writing allowed return(false); }*/ // check the rights vor the current resource if( ! ( accessOther(currentUser, currentProject, resource, C_ACCESS_PUBLIC_WRITE) || accessOwner(currentUser, currentProject, resource, C_ACCESS_OWNER_WRITE) || accessGroup(currentUser, currentProject, resource, C_ACCESS_GROUP_WRITE) ) ) { // no write access to this resource! return false; } // read the parent folder if(resource.getParent() != null) { resource = readFolder(currentUser,currentProject, resource.getParent()); } else { // no parent folder! return true; } // check the rights and if the resource is not locked do { if( accessOther(currentUser, currentProject, resource, C_ACCESS_PUBLIC_WRITE) || accessOwner(currentUser, currentProject, resource, C_ACCESS_OWNER_WRITE) || accessGroup(currentUser, currentProject, resource, C_ACCESS_GROUP_WRITE) ) { // is the resource locked? if( resource.isLocked() && (resource.isLockedBy() != currentUser.getId() ) ) { // resource locked by anopther user, no creation allowed return(false); } // read next resource if(resource.getParent() != null) { resource = readFolder(currentUser,currentProject, resource.getParent()); } } else { // last check was negative return(false); } } while(resource.getParent() != null); // all checks are done positive return(true); } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/849628ac81c242285ae7c82e00c3135b9d214fc2/CmsResourceBroker.java/clean/src/com/opencms/file/genericSql/CmsResourceBroker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
2006,
3067,
12,
4747,
1299,
13970,
16,
2149,
4109,
783,
4109,
16,
6862,
9506,
282,
7630,
1058,
13,
1216,
11228,
288,
202,
565,
202,
202,
759,
866,
16,
309,
333,
353,
326... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
2006,
3067,
12,
4747,
1299,
13970,
16,
2149,
4109,
783,
4109,
16,
6862,
9506,
282,
7630,
1058,
13,
1216,
11228,
288,
202,
565,
202,
202,
759,
866,
16,
309,
333,
353,
326... | ||
} | private void parseODADataSourceExtensionID( Attributes attrs, boolean extensionNameRequired ) { String extensionID = getAttrib( attrs, DesignSchemaConstants.EXTENSION_ID_ATTRIB ); if ( StringUtil.isBlank( extensionID ) ) { if ( !extensionNameRequired ) return; SemanticError e = new SemanticError( element, SemanticError.DESIGN_EXCEPTION_MISSING_EXTENSION ); RecoverableError.dealMissingInvalidExtension( handler, e ); return; } if ( handler.versionNumber < VersionUtil.VERSION_3_0_0 ) { if ( OBSOLETE_FLAT_FILE_ID.equalsIgnoreCase( extensionID ) ) extensionID = NEW_FLAT_FILE_ID; } setProperty( IOdaExtendableElementModel.EXTENSION_ID_PROP, extensionID ); // get the provider to check whether this is a valid oda extension provider = ( (OdaDataSource) element ).getProvider( ); if ( provider == null ) return; if ( provider instanceof OdaDummyProvider ) { SemanticError e = new SemanticError( element, new String[]{extensionID}, SemanticError.DESIGN_EXCEPTION_EXTENSION_NOT_FOUND ); RecoverableError.dealMissingInvalidExtension( handler, e ); isValidExtensionId = false; } else if ( provider instanceof OdaExtensibilityProvider ) { // After version 3.2.7 , add convert fuction. if ( extensionID != null ) { String newExtensionID = ( (OdaExtensibilityProvider) provider ) .convertDataSourceExtensionID( extensionID ); if ( !extensionID.equals( newExtensionID ) ) { setProperty( IOdaExtendableElementModel.EXTENSION_ID_PROP, newExtensionID ); } } } } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/b7cf16118dbf8403e875e1824d65359fbf5295a8/OdaDataSourceState.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/parser/OdaDataSourceState.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1109,
1212,
37,
8597,
3625,
734,
12,
9055,
3422,
16,
1082,
202,
6494,
2710,
461,
3705,
262,
202,
95,
202,
202,
780,
2710,
734,
273,
336,
12399,
12,
3422,
16,
9506,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1109,
1212,
37,
8597,
3625,
734,
12,
9055,
3422,
16,
1082,
202,
6494,
2710,
461,
3705,
262,
202,
95,
202,
202,
780,
2710,
734,
273,
336,
12399,
12,
3422,
16,
9506,
202,
... | |
doMove( content, fromSlotID, to, toSlotID, -1 ); | assert newPos >= 0; doMove( content, fromSlotID, to, toSlotID, newPos ); | public void move( DesignElement content, int fromSlotID, DesignElement to, int toSlotID ) throws ContentException { doMove( content, fromSlotID, to, toSlotID, -1 ); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/2bfc7417532bd0d08c9d2601eaf52710abfab8a9/ContentCommand.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/command/ContentCommand.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3635,
12,
29703,
1046,
913,
16,
509,
628,
8764,
734,
16,
29703,
1046,
358,
16,
1082,
202,
474,
358,
8764,
734,
262,
1216,
3697,
503,
202,
95,
202,
202,
2896,
7607,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3635,
12,
29703,
1046,
913,
16,
509,
628,
8764,
734,
16,
29703,
1046,
358,
16,
1082,
202,
474,
358,
8764,
734,
262,
1216,
3697,
503,
202,
95,
202,
202,
2896,
7607,
12,
... |
switchDataTable( cmbDataSet.getText( ) ); | switchDataTable( ); | protected void init( ) { // Create data set list String currentDataSet = getDataServiceProvider( ).getBoundDataSet( ); if ( currentDataSet != null ) { cmbDataSet.setItems( getDataServiceProvider( ).getAllDataSets( ) ); cmbDataSet.setText( currentDataSet ); useReportDataSet( false ); switchDataTable( cmbDataSet.getText( ) ); } else { useReportDataSet( true ); String reportDataSet = getDataServiceProvider( ).getReportDataSet( ); if ( reportDataSet != null ) { switchDataTable( reportDataSet ); } } btnFilters.setEnabled( hasDataSet( ) && getDataServiceProvider( ).isInvokingSupported( ) ); btnParameters.setEnabled( hasDataSet( ) && getDataServiceProvider( ).isInvokingSupported( ) ); btnBinding.setEnabled( hasDataSet( ) && getDataServiceProvider( ).isInvokingSupported( ) ); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/9fbfd6a517aa5975a7ba902dd7ddddfe08a751d5/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,
1117,
918,
1208,
12,
262,
202,
95,
202,
202,
759,
1788,
501,
444,
666,
202,
202,
780,
783,
13676,
273,
4303,
16300,
12,
262,
18,
588,
3499,
13676,
12,
11272,
202,
202,
430,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1208,
12,
262,
202,
95,
202,
202,
759,
1788,
501,
444,
666,
202,
202,
780,
783,
13676,
273,
4303,
16300,
12,
262,
18,
588,
3499,
13676,
12,
11272,
202,
202,
430,
261,
... |
_t = __t2318; | _t = __t2324; | public final void systemhelpstate(AST _t) throws RecognitionException { AST systemhelpstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t2314 = _t; AST tmp2171_AST_in = (AST)_t; match(_t,SYSTEMHELP); _t = _t.getFirstChild(); expression(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case WINDOWNAME: { AST __t2316 = _t; AST tmp2172_AST_in = (AST)_t; match(_t,WINDOWNAME); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2316; _t = _t.getNextSibling(); break; } case ALTERNATEKEY: case COMMAND: case CONTENTS: case CONTEXT: case CONTEXTPOPUP: case FINDER: case FORCEFILE: case HELP: case HELPTOPIC: case KEY: case MULTIPLEKEY: case PARTIALKEY: case POSITION: case QUIT: case SETCONTENTS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ALTERNATEKEY: { AST __t2318 = _t; AST tmp2173_AST_in = (AST)_t; match(_t,ALTERNATEKEY); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2318; _t = _t.getNextSibling(); break; } case CONTEXT: { AST __t2319 = _t; AST tmp2174_AST_in = (AST)_t; match(_t,CONTEXT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2319; _t = _t.getNextSibling(); break; } case CONTENTS: { AST tmp2175_AST_in = (AST)_t; match(_t,CONTENTS); _t = _t.getNextSibling(); break; } case SETCONTENTS: { AST __t2320 = _t; AST tmp2176_AST_in = (AST)_t; match(_t,SETCONTENTS); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2320; _t = _t.getNextSibling(); break; } case FINDER: { AST tmp2177_AST_in = (AST)_t; match(_t,FINDER); _t = _t.getNextSibling(); break; } case CONTEXTPOPUP: { AST __t2321 = _t; AST tmp2178_AST_in = (AST)_t; match(_t,CONTEXTPOPUP); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2321; _t = _t.getNextSibling(); break; } case HELPTOPIC: { AST __t2322 = _t; AST tmp2179_AST_in = (AST)_t; match(_t,HELPTOPIC); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2322; _t = _t.getNextSibling(); break; } case KEY: { AST __t2323 = _t; AST tmp2180_AST_in = (AST)_t; match(_t,KEY); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2323; _t = _t.getNextSibling(); break; } case PARTIALKEY: { AST __t2324 = _t; AST tmp2181_AST_in = (AST)_t; match(_t,PARTIALKEY); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; if ((_tokenSet_3.member(_t.getType()))) { expression(_t); _t = _retTree; } else if ((_t.getType()==3)) { } else { throw new NoViableAltException(_t); } } _t = __t2324; _t = _t.getNextSibling(); break; } case MULTIPLEKEY: { AST __t2326 = _t; AST tmp2182_AST_in = (AST)_t; match(_t,MULTIPLEKEY); _t = _t.getFirstChild(); expression(_t); _t = _retTree; AST tmp2183_AST_in = (AST)_t; match(_t,TEXT); _t = _t.getNextSibling(); expression(_t); _t = _retTree; _t = __t2326; _t = _t.getNextSibling(); break; } case COMMAND: { AST __t2327 = _t; AST tmp2184_AST_in = (AST)_t; match(_t,COMMAND); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2327; _t = _t.getNextSibling(); break; } case POSITION: { AST __t2328 = _t; AST tmp2185_AST_in = (AST)_t; match(_t,POSITION); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case MAXIMIZE: { AST tmp2186_AST_in = (AST)_t; match(_t,MAXIMIZE); _t = _t.getNextSibling(); break; } case X: { AST tmp2187_AST_in = (AST)_t; match(_t,X); _t = _t.getNextSibling(); expression(_t); _t = _retTree; AST tmp2188_AST_in = (AST)_t; match(_t,Y); _t = _t.getNextSibling(); expression(_t); _t = _retTree; AST tmp2189_AST_in = (AST)_t; match(_t,WIDTH); _t = _t.getNextSibling(); expression(_t); _t = _retTree; AST tmp2190_AST_in = (AST)_t; match(_t,HEIGHT); _t = _t.getNextSibling(); expression(_t); _t = _retTree; break; } default: { throw new NoViableAltException(_t); } } } _t = __t2328; _t = _t.getNextSibling(); break; } case FORCEFILE: { AST tmp2191_AST_in = (AST)_t; match(_t,FORCEFILE); _t = _t.getNextSibling(); break; } case HELP: { AST tmp2192_AST_in = (AST)_t; match(_t,HELP); _t = _t.getNextSibling(); break; } case QUIT: { AST tmp2193_AST_in = (AST)_t; match(_t,QUIT); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t2314; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
2619,
5201,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
2619,
5201,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
2619,
5201,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
2619,
5201,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
29... |
asm.emitLAddr(JTOC, VM_Entrypoints.sysTOCField.getOffset(), S1); asm.emitLAddr(KLUDGE_TI_REG, VM_Entrypoints.sysVirtualProcessorYieldIPField.getOffset(), S1); | asm.emitLAddr(JTOC, VM_Entrypoints.sysTOCField.getOffsetAsInt(), S1); asm.emitLAddr(KLUDGE_TI_REG, VM_Entrypoints.sysVirtualProcessorYieldIPField.getOffsetAsInt(), S1); | public static void generateGlueCodeForJNIMethod(VM_Assembler asm, VM_Method mth) { int offset; boolean usesVarargs; int varargAmount = 0; String mthName = mth.getName().toString(); if ((mthName.startsWith("Call") && mthName.endsWith("Method")) || mthName.equals("NewObject")) usesVarargs = true; else usesVarargs = false; //-#if RVM_WITH_MACH_O_ABI // Find extra amount of space that needs to be added to the frame //to hold copies of the vararg values. This calculation is //overkill since some of these values will be in registers and //already stored. But then either 3 or 4 of the parameters don't //show up in the signature anyway (JNIEnvironment, class, method //id, instance object). if (usesVarargs) { VM_TypeReference[] argTypes = mth.getParameterTypes(); int argCount = argTypes.length; for (int i=0; i<argCount; i++) { if (argTypes[i].isLongType() || argTypes[i].isDoubleType()) varargAmount += 2 * BYTES_IN_ADDRESS; else varargAmount += BYTES_IN_ADDRESS; } } //-#endif int glueFrameSize = JNI_GLUE_FRAME_SIZE + varargAmount; asm.emitSTAddrU(FP,-glueFrameSize,FP); // buy the glue frame // we may need to save CR in the previous frame also if CR will be used // CR is to be saved at FP+4 in the previous frame // Here we check if this is a JNI function that takes the vararg in the ... style // This includes CallStatic<type>Method, Call<type>Method, CallNonVirtual<type>Method // For these calls, the vararg starts at the 4th or 5th argument (GPR 6 or 7) // So, we save the GPR 6-10 and FPR 1-3 in a volatile register save area // in the glue stack frame so that the JNI function can later repackage the arguments // based on the parameter types of target method to be invoked. // (For long argument lists, the additional arguments, have been saved in // the spill area of the OS caller, and will be retrieved from there.) // // If we are compiling such a JNI Function, then emit the code to store // GPR 4-10 and FPR 1-6 into the volatile save area. if (usesVarargs) { //-#if RVM_WITH_POWEROPEN_ABI offset = STACKFRAME_HEADER_SIZE + 3*BYTES_IN_STACKSLOT; // skip over slots for GPR 3-5 for (int i = 6; i <= 10; i++ ) { asm.emitSTAddr(i, offset, FP); offset+=BYTES_IN_ADDRESS; } // store FPRs 1-3 in first 3 slots of volatile FPR save area for (int i = 1; i <= 3; i++) { asm.emitSTFD (i, offset, FP); offset+=BYTES_IN_DOUBLE; } //-#elif RVM_WITH_SVR4_ABI // save all parameter registers offset = STACKFRAME_HEADER_SIZE + 0; for (int i=FIRST_OS_PARAMETER_GPR; i<=LAST_OS_PARAMETER_GPR; i++) { asm.emitSTAddr(i, offset, FP); offset += BYTES_IN_ADDRESS; } for (int i =FIRST_OS_PARAMETER_FPR; i<=LAST_OS_PARAMETER_FPR; i++) { asm.emitSTFD(i, offset, FP); offset += BYTES_IN_DOUBLE; } //-#elif RVM_WITH_MACH_O_ABI // save all gpr parameter registers offset = STACKFRAME_HEADER_SIZE + 0; for (int i=FIRST_OS_PARAMETER_GPR; i<=LAST_OS_PARAMETER_GPR; i++) { asm.emitSTAddr(i, offset, FP); offset += BYTES_IN_ADDRESS; } //-#endif } else { //-#if RVM_WITH_SVR4_ABI || RVM_WITH_MACH_O_ABI // adjust register contents (following SVR4 ABI) for normal JNI functions // especially dealing with long, spills // number of parameters of normal JNI functions should fix in // r3 - r12, f1 - f15, + 24 words, convertParametersFromSVR4ToJava(asm, mth); //-#endif } // Save AIX non-volatile GPRs that will not be saved and restored by RVM. // offset = STACKFRAME_HEADER_SIZE + JNI_GLUE_SAVED_VOL_SIZE; // skip 20 word volatile reg save area for (int i = FIRST_RVM_RESERVED_NV_GPR; i <=LAST_RVM_RESERVED_NV_GPR; i++) { asm.emitSTAddr(i, offset, FP); offset += BYTES_IN_ADDRESS; } // set the method ID for the glue frame // and save the return address in the previous frame // asm.emitLVAL(S0, INVISIBLE_METHOD_ID); asm.emitMFLR(REGISTER_ZERO); asm.emitSTW (S0, STACKFRAME_METHOD_ID_OFFSET, FP); asm.emitSTAddr(REGISTER_ZERO, glueFrameSize + STACKFRAME_NEXT_INSTRUCTION_OFFSET, FP); // Attempt to change the vpStatus of the current Processor to IN_JAVA // // on entry T0 = JNIEnv* which is an interior pointer to this thread's VM_JNIEnvironment. // We first adjust this in place to be a pointer to a VM_JNIEnvironment and then use // it to acquire PROCESSOR_REGISTER (and JTOC on OSX/Linux). // // AIX non volatile gprs 13-16 have been saved & are available (also gprs 11-13 can be used). // S0=13, S1=14, TI=15, PROCESSOR_REGISTER=16 are available (&have labels) for changing state. // we leave the passed arguments untouched, unless we are blocked and have to call sysVirtualProcessorYield // Map from JNIEnv* to VM_JNIEnvironment. // Must do this outside the loop as we need to do it exactly once. asm.emitADDI (T0, -VM_Entrypoints.JNIExternalFunctionsField.getOffset(), T0); int retryLoop = asm.getMachineCodeIndex(); // acquire Jikes RVM PROCESSOR_REGISTER (and JTOC OSX/Linux only). asm.emitLAddr(PROCESSOR_REGISTER, VM_Entrypoints.JNIEnvSavedPRField.getOffset(), T0); //-#if RVM_WITH_SVR4_ABI || RVM_WITH_MACH_O_ABI // on AIX JTOC is part of AIX Linkage triplet and this already set by our caller. // Thus, we only need this load on non-AIX platforms asm.emitLAddr(JTOC, VM_Entrypoints.JNIEnvSavedJTOCField.getOffset(), T0); //-#endif asm.emitLVAL (S1, VM_Entrypoints.vpStatusField.getOffset()); asm.emitLWARX (S0, S1, PROCESSOR_REGISTER); // get status for processor asm.emitCMPI (S0, VM_Processor.BLOCKED_IN_NATIVE); // check if GC in progress, blocked in native mode VM_ForwardReference frBlocked = asm.emitForwardBC(EQ); asm.emitLVAL (S0, VM_Processor.IN_JAVA); // S0 <- new state value asm.emitSTWCXr(S0, S1, PROCESSOR_REGISTER); // attempt to change state to IN_JAVA asm.emitBC (NE, retryLoop); // br if failure -retry lwarx by jumping to label0 VM_ForwardReference frInJava = asm.emitForwardB(); // branch around code to call sysYield // branch to here if blocked in native, call sysVirtualProcessorYield (pthread yield) // must save volatile gprs & fprs before the call and restore after // frBlocked.resolve(asm); offset = STACKFRAME_HEADER_SIZE; // save volatile GPRS 3-10 for (int i = FIRST_OS_PARAMETER_GPR; i <= LAST_OS_PARAMETER_GPR; i++) { asm.emitSTAddr(i, offset, FP); offset+=BYTES_IN_ADDRESS; } // save volatile FPRS 1-6 for (int i = FIRST_OS_PARAMETER_FPR; i <= LAST_OS_VARARG_PARAMETER_FPR; i++) { asm.emitSTFD (i, offset, FP); offset+=BYTES_IN_DOUBLE; } asm.emitLAddr(S1, VM_Entrypoints.the_boot_recordField.getOffset(), JTOC); // get boot record address asm.emitMR (PROCESSOR_REGISTER, JTOC); // save JTOC so we can restore below asm.emitLAddr(JTOC, VM_Entrypoints.sysTOCField.getOffset(), S1); // load TOC for syscalls from bootrecord asm.emitLAddr(KLUDGE_TI_REG, VM_Entrypoints.sysVirtualProcessorYieldIPField.getOffset(), S1); // load addr of function asm.emitMTLR (KLUDGE_TI_REG); asm.emitBCLRL(); // call sysVirtualProcessorYield in sys.C asm.emitMR (JTOC, PROCESSOR_REGISTER); // restore JTOC // restore the saved volatile GPRs 3-10 and FPRs 1-6 offset = STACKFRAME_HEADER_SIZE; // restore volatile GPRS 3-10 for (int i = FIRST_OS_PARAMETER_GPR; i <= LAST_OS_PARAMETER_GPR; i++) { asm.emitLAddr (i, offset, FP); offset+=BYTES_IN_ADDRESS; } // restore volatile FPRS 1-6 for (int i = FIRST_OS_PARAMETER_FPR; i <= LAST_OS_VARARG_PARAMETER_FPR; i++) { asm.emitLFD (i, offset, FP); offset+=BYTES_IN_DOUBLE; } asm.emitB (retryLoop); // br back to label0 to try lwarx again // NOW_IN_JAVA: // JTOC, and PR are all as Jikes RVM expects them; // params are where the Jikes RVM calling conventions expects them. // frInJava.resolve(asm); // get pointer to top java frame from JNIEnv, compute offset from current // frame pointer (offset to avoid more interior pointers) and save offset // in this glue frame // asm.emitLAddr (S0, VM_Entrypoints.JNITopJavaFPField.getOffset(), T0); // get addr of top java frame from JNIEnv asm.emitSUBFC (S0, FP, S0); // S0 <- offset from current FP // AIX -4, LINUX - 8 asm.emitSTW(S0, glueFrameSize + JNI_GLUE_OFFSET_TO_PREV_JFRAME, FP); // store offset at end of glue frame // BRANCH TO THE PROLOG FOR THE JNI FUNCTION VM_ForwardReference frNormalPrologue = asm.emitForwardBL(); // relative branch and link past the following epilog, to the normal prolog of the method // the normal epilog of the method will return to the epilog here to pop the glue stack frame // RETURN TO HERE FROM EPILOG OF JNI FUNCTION // CAUTION: START OF EPILOG OF GLUE CODE // The section of code from here to "END OF EPILOG OF GLUE CODE" is nestled between // the glue code prolog and the real body of the JNI method. // T0 & T1 (R3 & R4) or F1 contain the return value from the function - DO NOT USE // assume: JTOC and PROCESSOR_REG are valid, and all RVM non-volatile // GPRs and FPRs have been restored. Our processor state will be IN_JAVA. // establish T2 -> current thread's VM_JNIEnvironment, from activeThread field // of current processor asm.emitLAddr(T2, VM_Entrypoints.activeThreadField.getOffset(), PROCESSOR_REGISTER); // T2 <- activeThread of PR asm.emitLAddr(T2, VM_Entrypoints.jniEnvField.getOffset(), T2); // T2 <- JNIEnvironment // before returning to C, set pointer to top java frame in JNIEnv, using offset // saved in this glue frame during transition from C to Java. GC will use this saved // frame pointer if it is necessary to do GC with a processors active thread // stuck (and blocked) in native C, ie. GC starts scanning the threads stack at that frame. // AIX -4, LINUX -8 asm.emitLInt (T3, glueFrameSize + JNI_GLUE_OFFSET_TO_PREV_JFRAME, FP); // load offset from FP to top java frame asm.emitADD (T3, FP, T3); // T3 <- address of top java frame asm.emitSTAddr(T3, VM_Entrypoints.JNITopJavaFPField.getOffset(), T2); // store TopJavaFP back into JNIEnv // check to see if this frame address is the sentinel since there // may be no further Java frame below asm.emitCMPAddrI(T3, VM_Constants.STACKFRAME_SENTINEL_FP.toInt()); VM_ForwardReference fr4 = asm.emitForwardBC(EQ); asm.emitLAddr(S0, 0, T3); // get fp for caller of prev J to C transition frame fr4.resolve(asm); // store current PR into VM_JNIEnvironment; we may have switched PRs while in Java mode. asm.emitSTAddr(PROCESSOR_REGISTER, VM_Entrypoints.JNIEnvSavedPRField.getOffset(), T2); // change the state of the VP to IN_NATIVE. // asm.emitLVAL (S0, VM_Processor.IN_NATIVE); asm.emitSTW (S0, VM_Entrypoints.vpStatusField.getOffset(), PROCESSOR_REGISTER); // Restore those AIX nonvolatile registers saved in the prolog above // Here we only save & restore ONLY those registers not restored by RVM // offset = STACKFRAME_HEADER_SIZE + JNI_GLUE_SAVED_VOL_SIZE; // skip 20 word volatile reg save area for (int i = FIRST_RVM_RESERVED_NV_GPR; i <=LAST_RVM_RESERVED_NV_GPR; i++) { asm.emitLAddr (i, offset, FP); // 4 instructions offset += BYTES_IN_ADDRESS; } // pop frame asm.emitADDI(FP, glueFrameSize, FP); // load return address & return to caller // T0 & T1 (or F1) should still contain the return value // asm.emitLAddr(T2, STACKFRAME_NEXT_INSTRUCTION_OFFSET, FP); asm.emitMTLR(T2); asm.emitBCLR (); // branch always, through link register // END OF EPILOG OF GLUE CODE; rest of method generated by VM_Compiler from bytecodes of method in VM_JNIFunctions frNormalPrologue.resolve(asm); } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/3a9aeeb7f964774e6adc285d6526603ac1570e14/VM_JNICompiler.java/buggy/rvm/src/vm/arch/powerPC/jni/VM_JNICompiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2103,
21308,
344,
1085,
1290,
46,
50,
45,
1305,
12,
7397,
67,
1463,
5747,
749,
20415,
16,
8251,
67,
1305,
312,
451,
13,
288,
565,
509,
1384,
31,
565,
1250,
4692,
27232,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
918,
2103,
21308,
344,
1085,
1290,
46,
50,
45,
1305,
12,
7397,
67,
1463,
5747,
749,
20415,
16,
8251,
67,
1305,
312,
451,
13,
288,
565,
509,
1384,
31,
565,
1250,
4692,
27232,
... |
super(position); | super(position, NodeTypes.ITERNODE); | public IterNode(ISourcePosition position, Node varNode, Node bodyNode, Node iterNode) { super(position); this.varNode = varNode; this.bodyNode = bodyNode; this.iterNode = iterNode; } | 48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/6e15491217631472c05c6928672f9c7064a978b3/IterNode.java/clean/src/org/jruby/ast/IterNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3016,
907,
12,
45,
1830,
2555,
1754,
16,
2029,
569,
907,
16,
2029,
1417,
907,
16,
2029,
1400,
907,
13,
288,
3639,
2240,
12,
3276,
16,
2029,
2016,
18,
11844,
8744,
1769,
3639,
333,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3016,
907,
12,
45,
1830,
2555,
1754,
16,
2029,
569,
907,
16,
2029,
1417,
907,
16,
2029,
1400,
907,
13,
288,
3639,
2240,
12,
3276,
16,
2029,
2016,
18,
11844,
8744,
1769,
3639,
333,... |
pn.setListenOnly(Fields.stringToBool(isListenOnlyString, true)); | pn.setListenOnly(Fields.stringToBool(isListenOnlyString, false)); | public void run(FCPConnectionHandler handler, Node node) throws MessageInvalidException { String nodeIdentifier = fs.get("NodeIdentifier"); PeerNode pn = node.getPeerNode(nodeIdentifier); if(pn == null) { ProtocolErrorMessage msg = new ProtocolErrorMessage(ProtocolErrorMessage.NO_SUCH_NODE_IDENTIFIER, false, null, nodeIdentifier); handler.outputHandler.queue(msg); return; } String isDisabledString = fs.get("IsDisabled"); if(isDisabledString != null) { if(!isDisabledString.equals("")) { if(Fields.stringToBool(isDisabledString, false)) { pn.disablePeer(); } else { pn.enablePeer(); } } else { ProtocolErrorMessage msg = new ProtocolErrorMessage(ProtocolErrorMessage.MESSAGE_PARSE_ERROR, false, "IsDisabled had no value", nodeIdentifier); handler.outputHandler.queue(msg); return; } } String isListenOnlyString = fs.get("IsListenOnly"); if(isListenOnlyString != null) { if(!isListenOnlyString.equals("")) { pn.setListenOnly(Fields.stringToBool(isListenOnlyString, true)); } else { ProtocolErrorMessage msg = new ProtocolErrorMessage(ProtocolErrorMessage.MESSAGE_PARSE_ERROR, false, "IsListenOnly had no value", nodeIdentifier); handler.outputHandler.queue(msg); return; } } handler.outputHandler.queue(new Peer(pn, true, true)); } | 46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/1122b87f9086af3408bb30fab201bf680e659cd9/ModifyPeer.java/clean/src/freenet/node/fcp/ModifyPeer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
12,
42,
4258,
1952,
1503,
1838,
16,
2029,
756,
13,
1216,
2350,
1941,
503,
288,
202,
202,
780,
756,
3004,
273,
2662,
18,
588,
2932,
907,
3004,
8863,
202,
202,
6813,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
12,
42,
4258,
1952,
1503,
1838,
16,
2029,
756,
13,
1216,
2350,
1941,
503,
288,
202,
202,
780,
756,
3004,
273,
2662,
18,
588,
2932,
907,
3004,
8863,
202,
202,
6813,
... |
arch = vm.getArch().getName(); | final VmArchitecture arch = vm.getArch(); | public static void insertSystemProperties(Properties res) { final String arch; final Vm vm = Vm.getVm(); arch = vm.getArch().getName(); // Java properties res.put("java.version", "1.1.0"); res.put("java.vendor", "JNode.org"); res.put("java.vendor.url", "http://jnode.org"); res.put("java.home", "/"); res.put("java.vm.specification.version", "1.4"); res.put("java.vm.specification.vendor", "JNode.org"); res.put("java.vm.specification.name", "jnode"); res.put("java.vm.version", vm.getVersion()); res.put("java.vm.vendor", "JNode.org"); res.put("java.vm.name", "JNode"); res.put("java.class.version", "1.1"); res.put("java.class.path", ""); res.put("java.library.path", ""); res.put("java.io.tmpdir", "/tmp"); res.put("java.compiler", "Internal"); res.put("java.ext.dirs", ""); res.put("os.name", "JNode"); res.put("os.arch", arch); res.put("os.version", vm.getVersion()); res.put("file.separator", "/"); res.put("path.separator", ":"); res.put("line.separator", "\n"); res.put("user.name", "System"); res.put("user.home", "/"); res.put("user.dir", "/"); // Log4j properties res.put("log4j.defaultInitOverride", "true"); // GNU properties res.put("gnu.java.io.encoding_scheme_alias.US-ASCII", "ISO8859-1"); res.put("gnu.java.io.encoding_scheme_alias.UTF-16LE", "UTF16LE"); res.put("gnu.java.io.encoding_scheme_alias.UTF-16BE", "UTF16BE"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e32ed4d0b771e0ed9b5a8daf23f7ad9df5afb15/VmSystem.java/buggy/core/src/core/org/jnode/vm/VmSystem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2243,
3163,
2297,
12,
2297,
400,
13,
288,
202,
202,
6385,
514,
6637,
31,
202,
202,
6385,
776,
81,
4268,
273,
776,
81,
18,
588,
22143,
5621,
202,
202,
991,
273,
426... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2243,
3163,
2297,
12,
2297,
400,
13,
288,
202,
202,
6385,
514,
6637,
31,
202,
202,
6385,
776,
81,
4268,
273,
776,
81,
18,
588,
22143,
5621,
202,
202,
991,
273,
426... |
return ""; | return string + ": {}"; | public String toString() { if (list == null) { return ""; } StringBuffer b = new StringBuffer(); for (int i = 0; i < list.size(); i++) { b.append(list.get(i)); } return b.toString(); } | 45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/b1293eda8454686e846e2a9837b348e2983bb423/ListNode.java/buggy/src/org/jruby/ast/ListNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
1435,
288,
377,
202,
430,
261,
1098,
422,
446,
13,
288,
377,
202,
202,
2463,
533,
397,
6398,
3728,
31,
377,
202,
97,
377,
202,
780,
1892,
324,
273,
394,
6674,
5621,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
1435,
288,
377,
202,
430,
261,
1098,
422,
446,
13,
288,
377,
202,
202,
2463,
533,
397,
6398,
3728,
31,
377,
202,
97,
377,
202,
780,
1892,
324,
273,
394,
6674,
5621,
3... |
if (!element.toString().startsWith("[")) { | try { | private static void addDisk(Object element, DefaultMutableTreeNode root, DataFactory df, String identifier) { IJ.showStatus("Retrieving " + identifier + " attributes."); if (element == null) return; OMEXMLNode xml = null; if (!element.toString().startsWith("[")) { xml = (OMEXMLNode) element; } String[] tempAttrs = null; String[] tempValues = null; try { tempAttrs = xml.getAttributeNames(); tempValues = xml.getAttributeValues(); } catch (NullPointerException n) { } // NodeList is a list of child DOM elements NodeList tempChilds = null; Object[] childs = null; String[] names = null; try { tempChilds = xml.getDOMElement().getChildNodes(); childs = new Object[tempChilds.getLength()]; } catch (NullPointerException n) { } try { for (int i=0; i<tempChilds.getLength(); i++) { String tmp = tempChilds.item(i).toString(); String id = tmp.substring(1, tmp.indexOf(" ")); String tmpId = tmp; if (tmp.indexOf(">") >= 0) tmpId = tmp.substring(1, tmp.indexOf(">")); if (tmpId.length() < id.length()) id = tmpId; if (!id.endsWith("Node")) { id = id + "Node"; } if (!id.startsWith("Attribute") && !id.startsWith("CustomAttributes") && !id.startsWith("Dataset") && !id.startsWith("Feature") && !id.startsWith("Image") && !id.equals("OMENode") && !id.startsWith("Project")) { if (id.indexOf(":") != -1) { id = id.substring(0, id.indexOf(":")); } id = "org.openmicroscopy.xml.st." + id + "Node"; } else { if (id.indexOf(":") != -1) { id = id.substring(0, id.indexOf(":")) + "Node"; } id = "org.openmicroscopy.xml." + id; } // construct a new node using this class Class toConstruct = Class.forName(id.trim()); Constructor construct = toConstruct.getDeclaredConstructor(new Class[] {Element.class}); childs[i] = construct.newInstance(new Object[] {(Element) tempChilds.item(i)}); } names = new String[childs.length]; for (int i=0; i<childs.length; i++) { String tmp = childs[i].toString(); names[i] = tmp.substring(tmp.lastIndexOf(".")+1, tmp.lastIndexOf("@")); } } catch (Throwable t) { } if (df != null && tempAttrs != null) { Criteria criteria = makeAttributeFields(tempAttrs); criteria.addWantedField("id"); criteria.addFilter("id", (new Integer( ((ImageGroup) element).getID())).toString()); element = df.retrieve(identifier, criteria); } DefaultMutableTreeNode node = new DefaultMutableTreeNode(new XMLObject( identifier, XMLObject.ELEMENT)); root.add(node); if (tempAttrs != null && tempValues != null) { for (int i=0; i<tempValues.length; i++) { node.add(new DefaultMutableTreeNode(new XMLObject(tempAttrs[i], tempValues[i], XMLObject.ATTRIBUTE))); } } if (tempChilds != null) { for (int i=0; i<childs.length; i++) { String newName = (names == null) ? null : names[i]; addDisk(childs[i], node, df, newName); } } } | 11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/a9f08f4144d9b190b40353d537c4cdbd539859c8/MetaPanel.java/clean/loci/plugins/ome/MetaPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
918,
527,
6247,
12,
921,
930,
16,
2989,
19536,
12513,
1365,
16,
565,
1910,
1733,
3013,
16,
514,
2756,
13,
288,
565,
467,
46,
18,
4500,
1482,
2932,
3848,
6282,
315,
397,
2756,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
918,
527,
6247,
12,
921,
930,
16,
2989,
19536,
12513,
1365,
16,
565,
1910,
1733,
3013,
16,
514,
2756,
13,
288,
565,
467,
46,
18,
4500,
1482,
2932,
3848,
6282,
315,
397,
2756,... |
return errorStream != null ? errorStream : System.err; } | return new PrintStream(((RubyIO) ruby.getGlobalVar("$stderr")).getOutStream()); } | public PrintStream getErrorStream() { return errorStream != null ? errorStream : System.err; } | 47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
21677,
7926,
1228,
1435,
288,
202,
202,
2463,
555,
1228,
480,
446,
692,
555,
1228,
294,
2332,
18,
370,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
21677,
7926,
1228,
1435,
288,
202,
202,
2463,
555,
1228,
480,
446,
692,
555,
1228,
294,
2332,
18,
370,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if (type_group_desc[i].equalsIgnoreCase(desc)) return i; | if (typeGroupCode[i].equalsIgnoreCase(desc)) return i; | public static final int getType(String desc) { for (int i=0;i<type_group_desc.length;i++) { if (type_group_desc[i].equalsIgnoreCase(desc)) return i; } for (int i=0;i<typeGroupLongDesc.length;i++) { if (typeGroupLongDesc[i].equalsIgnoreCase(desc)) return i; } return 0; } | 58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/69bdb7125ae9d2696e6120a9766a01ea6f4581ea/GroupByMeta.java/buggy/kettle/src/be/ibridge/kettle/trans/step/groupby/GroupByMeta.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
727,
509,
3130,
12,
780,
3044,
13,
202,
95,
202,
202,
1884,
261,
474,
277,
33,
20,
31,
77,
32,
723,
67,
1655,
67,
5569,
18,
2469,
31,
77,
27245,
202,
202,
95,
1082,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
509,
3130,
12,
780,
3044,
13,
202,
95,
202,
202,
1884,
261,
474,
277,
33,
20,
31,
77,
32,
723,
67,
1655,
67,
5569,
18,
2469,
31,
77,
27245,
202,
202,
95,
1082,
... |
control.setFocus(); | public void setFocus() { annotationList.setFocus(); control.setFocus(); } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/2f311d8850e77319e2a33e47aad4903e7b75e5cd/DetailsView.java/buggy/eclipsePlugin/src/de/tobject/findbugs/view/DetailsView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
31480,
1435,
288,
202,
202,
11495,
682,
18,
542,
9233,
5621,
202,
202,
7098,
18,
542,
9233,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
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,
31480,
1435,
288,
202,
202,
11495,
682,
18,
542,
9233,
5621,
202,
202,
7098,
18,
542,
9233,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
} if ( nodeUri == null ) { nodeUri = ""; | public boolean matches(Object node, ContextSupport contextSupport) { Navigator nav = contextSupport.getNavigator(); String nodeUri = null; String nodeName = null; if ( nav.isDocument( node ) ) { if ( matchesAnyName ) { return true; } return false; } else if ( nav.isNamespace( node ) ) { if ( matchesAnyName ) { return true; } return false; } else if ( nav.isElement( node ) ) { nodeUri = nav.getElementNamespaceUri( node ); nodeName = nav.getElementName( node ); } else if ( nav.isAttribute( node ) ) { nodeUri = nav.getAttributeNamespaceUri( node ); nodeName = nav.getAttributeName( node ); } else { return false; } if ( nodeUri == null ) { nodeUri = ""; } if ( matchesAnyNamespace ) { return matchesAnyName || getLocalName().equals( nodeName ); } else { String myPrefix = getPrefix(); String myUri = null; if ( myPrefix != null && myPrefix.length() > 0 ) { myUri = nav.translateNamespacePrefixToUri( myPrefix, node ); } if ( myUri == null ) { myUri = contextSupport.translateNamespacePrefixToUri( myPrefix ); } if ( matchesNamespaceURIs( myUri, nodeUri ) ) { boolean result = matchesAnyName || getLocalName().equals( nodeName ); return result; } } return false; /* return ( testUri.equals( nodeUri ) && getLocalName().equals( nodeName ) ); */ } | 5646 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5646/c3baaa751c94b11a609b2927776d9a5b66c176cf/DefaultNameStep.java/clean/src/java/main/org/jaxen/expr/DefaultNameStep.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1885,
12,
921,
756,
16,
21821,
1772,
6289,
819,
6289,
13,
565,
288,
3639,
423,
13061,
8775,
225,
273,
819,
6289,
18,
588,
22817,
5621,
3639,
514,
756,
3006,
225,
273,
446,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1885,
12,
921,
756,
16,
21821,
1772,
6289,
819,
6289,
13,
565,
288,
3639,
423,
13061,
8775,
225,
273,
819,
6289,
18,
588,
22817,
5621,
3639,
514,
756,
3006,
225,
273,
446,
3... | |
Driver.debug("supportsMinimumSQLGrammar TRUE"); | if (Driver.logDebug) Driver.debug("supportsMinimumSQLGrammar TRUE"); | public boolean supportsMinimumSQLGrammar() throws SQLException { Driver.debug("supportsMinimumSQLGrammar TRUE"); return true; } | 45497 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45497/b465f5307f9f5506beb1edbcc0fb56eed7c29c12/DatabaseMetaData.java/clean/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
6146,
13042,
3997,
18576,
1435,
1216,
6483,
202,
95,
202,
202,
4668,
18,
4148,
2932,
28064,
13042,
3997,
18576,
5383,
8863,
202,
202,
2463,
638,
31,
202,
97,
2,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
6146,
13042,
3997,
18576,
1435,
1216,
6483,
202,
95,
202,
202,
4668,
18,
4148,
2932,
28064,
13042,
3997,
18576,
5383,
8863,
202,
202,
2463,
638,
31,
202,
97,
2,
-100,
-100... |
if (seek(file) == false) | if (seek(byteBuffer) == false) | public void read(RandomAccessFile file) throws TagException, IOException { int size; ID3v22Frame next; if (seek(file) == false) { throw new TagNotFoundException("ID3v2.20 tag not found"); } logger.info("Reading tag from file"); //Read the flags byte flags = file.readByte(); unsynchronization = (flags & MASK_V22_UNSYNCHRONIZATION) != 0; compression = (flags & MASK_V22_COMPRESSION) != 0; //@todo if unsynchronization bit set what do we do //@todo if compression bit set should we ignore // Read the size byte[] buffer = new byte[FIELD_TAG_SIZE_LENGTH]; file.read(buffer, 0, FIELD_TAG_SIZE_LENGTH); size = byteArrayToSize(buffer); long filePointer = file.getFilePointer(); readFrames(file, filePointer, size); } | 40452 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/40452/8e6062659057068b4b85fb7b41c567e179db6f7c/ID3v22Tag.java/buggy/src/org/jaudiotagger/tag/id3/ID3v22Tag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
855,
12,
8529,
26933,
585,
13,
3639,
1216,
4034,
503,
16,
1860,
565,
288,
3639,
509,
963,
31,
3639,
1599,
23,
90,
3787,
3219,
1024,
31,
3639,
309,
261,
16508,
12,
7229,
1892,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
855,
12,
8529,
26933,
585,
13,
3639,
1216,
4034,
503,
16,
1860,
565,
288,
3639,
509,
963,
31,
3639,
1599,
23,
90,
3787,
3219,
1024,
31,
3639,
309,
261,
16508,
12,
7229,
1892,... |
ok = true; | if (bf == null || !bf.isInternal()) { ok = true; } else { log.info("Attempt to upload file format marked as internal system use only"); } | private void processChooseFile(Context context, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException, AuthorizeException { File temp = null; FileUploadRequest wrapper = null; SubmissionInfo subInfo = null; boolean ok = false; String buttonPressed = null; BitstreamFormat bf = null; Bitstream b = null; /* * To distinguish between an IOException caused by a problem with the * file upload and one caused by displaying a JSP, we do all the upload * handling in a try/catch block */ try { // Wrap multipart request to get the submission info wrapper = new FileUploadRequest(request); subInfo = getSubmissionInfo(context, wrapper); buttonPressed = UIUtil.getSubmitButton(wrapper, "submit_next"); if ((subInfo != null) && buttonPressed.equals("submit_next")) { // Create the bitstream Item item = subInfo.submission.getItem(); temp = wrapper.getFile("file"); if (temp != null && temp.length() > 0) { // Read the temp file into a bitstream InputStream is = new BufferedInputStream( new FileInputStream(temp)); // do we already have a bundle? Bundle[] bundles = item.getBundles("ORIGINAL"); if (bundles.length < 1) { // set bundle's name to ORIGINAL b = item.createSingleBitstream(is, "ORIGINAL"); } else { // we have a bundle already, just add bitstream b = bundles[0].createBitstream(is); } // Strip all but the last filename. It would be nice // to know which OS the file came from. String noPath = wrapper.getFilesystemName("file"); while (noPath.indexOf('/') > -1) { noPath = noPath.substring(noPath.indexOf('/') + 1); } while (noPath.indexOf('\\') > -1) { noPath = noPath.substring(noPath.indexOf('\\') + 1); } b.setName(noPath); b.setSource(wrapper.getFilesystemName("file")); b.setDescription(wrapper.getParameter("description")); // Identify the format bf = FormatIdentifier.guessFormat(context, b); b.setFormat(bf); // Update to DB b.update(); item.update(); ok = true; } } } catch (IOException ie) { // Problem with uploading log.warn(LogManager.getHeader(context, "upload_error", ""), ie); } if (subInfo == null) { // In any event, if we don't have the submission info, the request // was malformed log.warn(LogManager.getHeader(context, "integrity_error", UIUtil .getRequestLogInfo(request))); } else if (buttonPressed.equals("submit_cancel")) { doCancellation(request, response, subInfo, SubmitServlet.CHOOSE_FILE, SubmitServlet.UPLOAD_FILES); } else if (buttonPressed.equals("submit_prev")) { // Slightly tricky; if the user clicks on "previous," // and they haven't uploaded any files yet, the previous // screen is the edit metadata 2 page. If there are // upload files, we go back to the file list page, // without uploading the file they've specified. if (subInfo.submission.getItem().getBundles("ORIGINAL").length > 0) { // Have files, go to list showUploadFileList(request, response, subInfo, false, false); } else { // No files, go back to last edit metadata page Collection c = subInfo.submission.getCollection(); int lastPage = EDIT_METADATA_1 + inputsReader.getNumberInputPages( c.getHandle() ) - 1; doStep(context, request, response, subInfo, lastPage); } } else if (buttonPressed.equals("submit_next")) { // "Next" pressed - the actual upload was handled above. if (ok) { // Uploaded etc. OK if (bf != null) { // Format was identified showUploadFileList(request, response, subInfo, true, false); } else { // Format couldn't be identified showGetFileFormat(context, request, response, subInfo, b); } context.complete(); } else { // If we get here, there was a problem uploading, but we // still know which submission we're dealing with showProgressAwareJSP(request, response, subInfo, "/submit/upload-error.jsp"); } } else { doStepJump(context, wrapper, response, subInfo); } // Remove temp file if it's still around if (temp != null) { temp.delete(); } } | 25205 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25205/c0ade494ab0cc847eff4752b2792868e5744497c/SubmitServlet.java/buggy/dspace/src/org/dspace/app/webui/servlet/SubmitServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
24529,
812,
12,
1042,
819,
16,
9984,
590,
16,
5411,
12446,
766,
13,
1216,
16517,
16,
1860,
16,
5411,
6483,
16,
23859,
503,
565,
288,
3639,
1387,
1906,
273,
446,
31,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
24529,
812,
12,
1042,
819,
16,
9984,
590,
16,
5411,
12446,
766,
13,
1216,
16517,
16,
1860,
16,
5411,
6483,
16,
23859,
503,
565,
288,
3639,
1387,
1906,
273,
446,
31,
363... |
line = line.replaceFirst("[bool]", "").trim(); | line = line.replaceFirst("\\[bool\\]", "").trim(); | private static Vector parseResponse(String response) { Vector parameters = new Vector(); BufferedReader reader = new BufferedReader(new StringReader(response)); while (true) { String line = null; try { line = reader.readLine(); } catch (IOException e) { } if (line == null) break; line = line.trim(); final int STRING = 0; final int BOOL = 1; int type = STRING; if (line.startsWith("[bool]")) { type = BOOL; line = line.replaceFirst("[bool]", "").trim(); } int pos = line.indexOf(' '); String key; String value; if (pos > 0) { key = line.substring(0, pos).trim(); value = line.substring(pos + 1).trim(); } else { key = line; value = ""; } if (type == BOOL) parameters.add(new BoolParameter(key, value)); else parameters.add(new StringParameter(key, value)); } return parameters; } | 51310 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51310/c81eb52620dbc6d5da6c13d8c0f5b328834f8bbe/ParameterDialog.java/clean/src/gui/ParameterDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
5589,
28880,
12,
780,
766,
13,
565,
288,
3639,
5589,
1472,
273,
394,
5589,
5621,
3639,
10633,
2949,
273,
5411,
394,
10633,
12,
2704,
26227,
12,
2740,
10019,
3639,
1323,
261,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
5589,
28880,
12,
780,
766,
13,
565,
288,
3639,
5589,
1472,
273,
394,
5589,
5621,
3639,
10633,
2949,
273,
5411,
394,
10633,
12,
2704,
26227,
12,
2740,
10019,
3639,
1323,
261,
37... |
public ActionForward editEvaluationMethod(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws FenixActionException, FenixFilterException { HttpSession session = request.getSession(false); Integer objectCode = getObjectCode(request); Integer evaluationMethodCode = getParameter(request, "evaluationMethodCode"); DynaActionForm evaluationForm = (DynaActionForm) form; InfoEvaluationMethod infoEvaluationMethod = new InfoEvaluationMethod(); infoEvaluationMethod.setIdInternal(evaluationMethodCode); infoEvaluationMethod.setEvaluationElements((String) evaluationForm.get("evaluationElements")); infoEvaluationMethod .setEvaluationElementsEn((String) evaluationForm.get("evaluationElementsEn")); Object args[] = { objectCode, evaluationMethodCode, infoEvaluationMethod }; UserView userView = (UserView) session.getAttribute(SessionConstants.U_VIEW); try { ServiceManagerServiceFactory.executeService(userView, "EditEvaluation", args); } catch (FenixServiceException e) { throw new FenixActionException(e); } return viewEvaluationMethod(mapping, form, request, response); // BEFORE // HttpSession session = request.getSession(false); // Integer objectCode = getObjectCode(request); // String curricularCourseCodeString = // request.getParameter("curricularCourseCode"); // Integer curricularCourseCode = new // Integer(curricularCourseCodeString); // // DynaActionForm evaluationForm = (DynaActionForm) form; // // InfoCurriculum infoCurriculumNew = new InfoCurriculum(); // infoCurriculumNew.setIdInternal(curricularCourseCode); // infoCurriculumNew.setEvaluationElements((String) // evaluationForm.get("evaluationElements")); // infoCurriculumNew.setEvaluationElementsEn((String) // evaluationForm.get("evaluationElementsEn")); // // Object args[] = { objectCode, curricularCourseCode, // infoCurriculumNew }; // // UserView userView = (UserView) // session.getAttribute(SessionConstants.U_VIEW); // GestorServicos serviceManager = GestorServicos.manager(); // try { // ServiceManagerServiceFactory.executeService(userView, // "EditEvaluation", args); // // } catch (FenixServiceException e) { // throw new FenixActionException(e); // } // return viewEvaluationMethod(mapping, form, request, response); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/f1790994e90150a41f878ae3110bab38ce01b720/TeacherAdministrationViewerDispatchAction.java/clean/src/net/sourceforge/fenixedu/presentationTier/Action/teacher/TeacherAdministrationViewerDispatchAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
3874,
13468,
1305,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
5411,
9984,
590,
16,
12446,
766,
13,
1216,
478,
275,
697,
1803,
503,
16,
5411,
478,
275,
697,
1586,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
3874,
13468,
1305,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
5411,
9984,
590,
16,
12446,
766,
13,
1216,
478,
275,
697,
1803,
503,
16,
5411,
478,
275,
697,
1586,
5... | ||
Messages.ERR_GENERIC_SQL_1, CmsDbSqlException.getErrorQuery(stmt)), e); | Messages.ERR_GENERIC_SQL_1, CmsDbSqlException.getErrorQuery(stmt)), e); | public List readProjectsForUser(CmsDbContext dbc, CmsUser user) throws CmsDataAccessException { List projects = new ArrayList(); ResultSet res = null; PreparedStatement stmt = null; Connection conn = null; try { // create the statement conn = m_sqlManager.getConnection(dbc); stmt = m_sqlManager.getPreparedStatement(conn, "C_PROJECTS_READ_BYUSER"); stmt.setString(1, user.getId().toString()); res = stmt.executeQuery(); while (res.next()) { projects.add(new CmsProject(res, m_sqlManager)); } } catch (SQLException e) { throw new CmsDbSqlException(Messages.get().container( Messages.ERR_GENERIC_SQL_1, CmsDbSqlException.getErrorQuery(stmt)), e); } finally { m_sqlManager.closeAll(dbc, conn, stmt, res); } return (projects); } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/546c122e43ad901e06bfec1c2164259c3ce08c8b/CmsProjectDriver.java/clean/src/org/opencms/db/generic/CmsProjectDriver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
855,
15298,
19894,
12,
4747,
4331,
1042,
9881,
16,
25492,
729,
13,
1216,
2149,
751,
9773,
288,
3639,
987,
10137,
273,
394,
2407,
5621,
3639,
10842,
400,
273,
446,
31,
3639,
169... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
987,
855,
15298,
19894,
12,
4747,
4331,
1042,
9881,
16,
25492,
729,
13,
1216,
2149,
751,
9773,
288,
3639,
987,
10137,
273,
394,
2407,
5621,
3639,
10842,
400,
273,
446,
31,
3639,
169... |
public org.quickfix.field.CPRegType getCPRegType() throws FieldNotFound { org.quickfix.field.CPRegType value = new org.quickfix.field.CPRegType(); | public quickfix.field.CPRegType getCPRegType() throws FieldNotFound { quickfix.field.CPRegType value = new quickfix.field.CPRegType(); | public org.quickfix.field.CPRegType getCPRegType() throws FieldNotFound { org.quickfix.field.CPRegType value = new org.quickfix.field.CPRegType(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/News.java/clean/src/java/src/quickfix/fix44/News.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
4258,
1617,
559,
1927,
52,
1617,
559,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
4258,
1617,
559,
460,
273,
394,
235... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2358,
18,
19525,
904,
18,
1518,
18,
4258,
1617,
559,
1927,
52,
1617,
559,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
4258,
1617,
559,
460,
273,
394,
235... |
System.err.println("annotation is\n"+contents); | XSAnnotationImpl traverseAnnotationDecl(Element annotationDecl, Object[] parentAttrs, boolean isGlobal, XSDocumentInfo schemaDoc) { // General Attribute Checking Object[] attrValues = fAttrChecker.checkAttributes(annotationDecl, isGlobal, schemaDoc); fAttrChecker.returnAttrArray(attrValues, schemaDoc); String contents = null; for (Element child = DOMUtil.getFirstChildElement(annotationDecl); child != null; child = DOMUtil.getNextSiblingElement(child)) { String name = DOMUtil.getLocalName(child); // the only valid children of "annotation" are // "appinfo" and "documentation" if (!((name.equals(SchemaSymbols.ELT_APPINFO)) || (name.equals(SchemaSymbols.ELT_DOCUMENTATION)))) { reportSchemaError("src-annotation", new Object[]{name}, child); } else { // the annotation, as we currently know it, is a Text child Node textContent = child.getFirstChild(); if(textContent != null && textContent.getNodeType() == Node.TEXT_NODE) { contents = ((Text)textContent).getData(); } } // General Attribute Checking // There is no difference between global or local appinfo/documentation, // so we assume it's always global. attrValues = fAttrChecker.checkAttributes(child, true, schemaDoc); fAttrChecker.returnAttrArray(attrValues, schemaDoc); } // if contents was null, must have been some kind of error; // nothing to contribute to PSVI if (contents == null) return null; // find the grammar; fSchemaHandler must be known! SchemaGrammar grammar = fSchemaHandler.getGrammar(schemaDoc.fTargetNamespace); // fish out local attributes passed from parent Vector annotationLocalAttrs = (Vector)parentAttrs[XSAttributeChecker.ATTIDX_NONSCHEMA]; // optimize for case where there are no local attributes if(annotationLocalAttrs != null && !annotationLocalAttrs.isEmpty()) { StringBuffer localStrBuffer = new StringBuffer(64); localStrBuffer.append(" "); // Vector should contain rawname value pairs int i=0; while(i<annotationLocalAttrs.size()) { localStrBuffer.append((String)annotationLocalAttrs.elementAt(i++)) .append("=\""); String value = (String)annotationLocalAttrs.elementAt(i++); // search for pesky "s and >s within attr value: value = processAttValue(value); localStrBuffer.append(value) .append("\""); } localStrBuffer.append(" "); // and now splice it into place; immediately after the annotation token, for simplicity's sake StringBuffer contentBuffer = new StringBuffer(contents.length() + localStrBuffer.length()); int annotationTokenEnd = contents.indexOf(SchemaSymbols.ELT_ANNOTATION); // annotation must occur somewhere or we're in big trouble... if(annotationTokenEnd == -1) return null; annotationTokenEnd += SchemaSymbols.ELT_ANNOTATION.length(); contentBuffer.append(contents.substring(0,annotationTokenEnd)); contentBuffer.append(localStrBuffer.toString()); contentBuffer.append(contents.substring(annotationTokenEnd, contents.length())); System.err.println("annotation is\n"+contentBuffer); return new XSAnnotationImpl(contentBuffer.toString(), grammar); } else { System.err.println("annotation is\n"+contents); return new XSAnnotationImpl(contents, grammar); } } | 1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/45df967b59b57aec594a52214c5b3597ce08606a/XSDAbstractTraverser.java/clean/src/org/apache/xerces/impl/xs/traversers/XSDAbstractTraverser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1139,
55,
3257,
2828,
10080,
3257,
3456,
12,
1046,
3204,
3456,
16,
1033,
8526,
982,
8262,
16,
27573,
1250,
353,
5160,
16,
1139,
55,
2519,
966,
1963,
1759,
13,
288,
3639,
368,
9544,
3601,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1139,
55,
3257,
2828,
10080,
3257,
3456,
12,
1046,
3204,
3456,
16,
1033,
8526,
982,
8262,
16,
27573,
1250,
353,
5160,
16,
1139,
55,
2519,
966,
1963,
1759,
13,
288,
3639,
368,
9544,
3601,
... | |
public LocaleManager(IPerson person, String acceptLanguage) { this(person); this.browserLocales = parseLocales(acceptLanguage); | public LocaleManager(IPerson person) { this.person = person; jvmLocale = Locale.getDefault(); if (localeAware) { portalLocales = loadPortalLocales(); try { userLocales = LocaleStoreFactory.getLocaleStoreImpl().getUserLocales(person); } catch (Exception e) { log.error("Error populating userLocals", e); } } | public LocaleManager(IPerson person, String acceptLanguage) { this(person); this.browserLocales = parseLocales(acceptLanguage); } | 1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/08043273fa4afdbfed41d8831e4a2873036a8a54/LocaleManager.java/buggy/source/org/jasig/portal/i18n/LocaleManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6458,
1318,
12,
2579,
3565,
6175,
16,
514,
16623,
13,
288,
3639,
333,
12,
12479,
1769,
3639,
333,
18,
11213,
13310,
273,
1109,
13310,
12,
9436,
3779,
1769,
565,
289,
2,
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,
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,
6458,
1318,
12,
2579,
3565,
6175,
16,
514,
16623,
13,
288,
3639,
333,
12,
12479,
1769,
3639,
333,
18,
11213,
13310,
273,
1109,
13310,
12,
9436,
3779,
1769,
565,
289,
2,
-100,
-100,
... |
if (Context.useJSObject && jsObjectClass != null && | else if (Context.useJSObject && jsObjectClass != null && | public static int getConversionWeight(Object fromObj, Class to) { int fromCode = NativeJavaObject.getJSTypeCode(fromObj); int result = CONVERSION_NONE; switch (fromCode) { case JSTYPE_UNDEFINED: if (to == ScriptRuntime.StringClass || to == ScriptRuntime.ObjectClass) { result = 1; } break; case JSTYPE_NULL: if (!to.isPrimitive()) { result = 1; } break; case JSTYPE_BOOLEAN: // "boolean" is #1 if (to == Boolean.TYPE) { result = 1; } else if (to == ScriptRuntime.BooleanClass) { result = 2; } else if (to == ScriptRuntime.ObjectClass) { result = 3; } else if (to == ScriptRuntime.StringClass) { result = 4; } break; case JSTYPE_NUMBER: if (to.isPrimitive()) { if (to == Double.TYPE) { result = 1; } else if (to == Boolean.TYPE) { result = CONVERSION_NONE; } else { result = 1 + NativeJavaObject.getSizeRank(to); } } else { if (to == ScriptRuntime.StringClass) { // native numbers are #1-8 result = 9; } else if (to == ScriptRuntime.ObjectClass) { result = 10; } else if (ScriptRuntime.NumberClass.isAssignableFrom(to)) { // "double" is #1 result = 2; } } break; case JSTYPE_STRING: if (to == ScriptRuntime.StringClass) { result = 1; } else if (to == ScriptRuntime.ObjectClass) { result = 2; } else if (to.isPrimitive()) { if (to == Character.TYPE) { result = 3; } else { result = 4; } } break; case JSTYPE_JAVA_CLASS: if (to == ScriptRuntime.ClassClass) { result = 1; } if (Context.useJSObject && jsObjectClass != null && jsObjectClass.isAssignableFrom(to)) { result = 2; } else if (to == ScriptRuntime.ObjectClass) { result = 3; } else if (to == ScriptRuntime.StringClass) { result = 4; } break; case JSTYPE_JAVA_OBJECT: case JSTYPE_JAVA_ARRAY: if (to == ScriptRuntime.StringClass) { result = 2; } else if (to.isPrimitive()) { result = (fromCode == JSTYPE_JAVA_ARRAY) ? CONVERSION_NONTRIVIAL : 2 + NativeJavaObject.getSizeRank(to); } else { Object javaObj = fromObj; if (javaObj instanceof NativeJavaObject) { javaObj = ((NativeJavaObject)javaObj).unwrap(); } if (to.isInstance(javaObj)) { result = CONVERSION_NONTRIVIAL; } } break; case JSTYPE_OBJECT: // Other objects takes #1-#3 spots if (Context.useJSObject && jsObjectClass != null && jsObjectClass.isAssignableFrom(to)) { result = 1; } else if (to == ScriptRuntime.ObjectClass) { result = 2; } else if (to == ScriptRuntime.StringClass) { result = 3; } else if (to.isPrimitive()) { result = 3 + NativeJavaObject.getSizeRank(to); } break; } return result; } | 11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/a66a71b8d7fdff3115a1305db27d683777b6080b/NativeJavaObject.java/clean/js/rhino/org/mozilla/javascript/NativeJavaObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
509,
336,
6814,
6544,
12,
921,
628,
2675,
16,
1659,
358,
13,
288,
3639,
509,
628,
1085,
273,
16717,
5852,
921,
18,
588,
6479,
15460,
12,
2080,
2675,
1769,
3639,
509,
563,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
509,
336,
6814,
6544,
12,
921,
628,
2675,
16,
1659,
358,
13,
288,
3639,
509,
628,
1085,
273,
16717,
5852,
921,
18,
588,
6479,
15460,
12,
2080,
2675,
1769,
3639,
509,
563,
273... |
{ progressNotifier = new ProgressNotifier(this, imageName); UIUtilities.centerAndShow(progressNotifier); } | { progressNotifier = new ProgressNotifier(this, imageName); UIUtilities.centerAndShow(progressNotifier); } | void showProgressNotifier(String imageName) { progressNotifier = new ProgressNotifier(this, imageName); UIUtilities.centerAndShow(progressNotifier); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a81a5a58f8e54d006d057455465766c8d3d72998/ViewerCtrl.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/ViewerCtrl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
2405,
5491,
14889,
12,
780,
29842,
13,
202,
95,
202,
202,
8298,
14889,
273,
394,
10980,
14889,
12,
2211,
16,
29842,
1769,
202,
202,
5370,
11864,
18,
5693,
1876,
5706,
12,
8298,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
2405,
5491,
14889,
12,
780,
29842,
13,
202,
95,
202,
202,
8298,
14889,
273,
394,
10980,
14889,
12,
2211,
16,
29842,
1769,
202,
202,
5370,
11864,
18,
5693,
1876,
5706,
12,
8298,... |
assertTrue(sec.allowUpdate(obj)); | assertTrue(sec.allowUpdate(obj,obj.getDetails())); | public <T extends IObject> T updateObject(T obj) { assertTrue(sec.allowUpdate(obj)); return null; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1fa4aa1df076354d9e858cfea9c54d59ae47d22a/SecuritySystemTest.java/buggy/components/server/test/ome/server/utests/sec/SecuritySystemTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
411,
56,
3231,
467,
921,
34,
399,
1089,
921,
12,
56,
1081,
13,
288,
9506,
202,
11231,
5510,
12,
3321,
18,
5965,
1891,
12,
2603,
10019,
9506,
202,
2463,
446,
31,
1082,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
411,
56,
3231,
467,
921,
34,
399,
1089,
921,
12,
56,
1081,
13,
288,
9506,
202,
11231,
5510,
12,
3321,
18,
5965,
1891,
12,
2603,
10019,
9506,
202,
2463,
446,
31,
1082,
202,
... |
public void put (String name, Object value) { ObjectStreamField field = currentObjectStreamClass.getField (name); if (field == null) throw new IllegalArgumentException (); if (value != null && ! field.getType ().isAssignableFrom (value.getClass ())) throw new IllegalArgumentException (); objs[field.getOffset ()] = value; } | public void put(String name, float value) { ObjectStreamField field = getField(name); | public PutField putFields() throws IOException { if (currentPutField == null) { currentPutField = new PutField () { private byte[] prim_field_data = new byte[currentObjectStreamClass.primFieldSize]; private Object[] objs = new Object[currentObjectStreamClass.objectFieldCount]; public void put (String name, boolean value) { ObjectStreamField field = currentObjectStreamClass.getField (name); checkType (field, 'Z'); prim_field_data[field.getOffset ()] = (byte)(value ? 1 : 0); } public void put (String name, byte value) { ObjectStreamField field = currentObjectStreamClass.getField (name); checkType (field, 'B'); prim_field_data[field.getOffset ()] = value; } public void put (String name, char value) { ObjectStreamField field = currentObjectStreamClass.getField (name); checkType (field, 'C'); int off = field.getOffset (); prim_field_data[off++] = (byte)(value >>> 8); prim_field_data[off] = (byte)value; } public void put (String name, double value) { ObjectStreamField field = currentObjectStreamClass.getField (name); checkType (field, 'D'); int off = field.getOffset (); long l_value = Double.doubleToLongBits (value); prim_field_data[off++] = (byte)(l_value >>> 52); prim_field_data[off++] = (byte)(l_value >>> 48); prim_field_data[off++] = (byte)(l_value >>> 40); prim_field_data[off++] = (byte)(l_value >>> 32); prim_field_data[off++] = (byte)(l_value >>> 24); prim_field_data[off++] = (byte)(l_value >>> 16); prim_field_data[off++] = (byte)(l_value >>> 8); prim_field_data[off] = (byte)l_value; } public void put (String name, float value) { ObjectStreamField field = currentObjectStreamClass.getField (name); checkType (field, 'F'); int off = field.getOffset (); int i_value = Float.floatToIntBits (value); prim_field_data[off++] = (byte)(i_value >>> 24); prim_field_data[off++] = (byte)(i_value >>> 16); prim_field_data[off++] = (byte)(i_value >>> 8); prim_field_data[off] = (byte)i_value; } public void put (String name, int value) { ObjectStreamField field = currentObjectStreamClass.getField (name); checkType (field, 'I'); int off = field.getOffset (); prim_field_data[off++] = (byte)(value >>> 24); prim_field_data[off++] = (byte)(value >>> 16); prim_field_data[off++] = (byte)(value >>> 8); prim_field_data[off] = (byte)value; } public void put (String name, long value) { ObjectStreamField field = currentObjectStreamClass.getField (name); checkType (field, 'J'); int off = field.getOffset (); prim_field_data[off++] = (byte)(value >>> 52); prim_field_data[off++] = (byte)(value >>> 48); prim_field_data[off++] = (byte)(value >>> 40); prim_field_data[off++] = (byte)(value >>> 32); prim_field_data[off++] = (byte)(value >>> 24); prim_field_data[off++] = (byte)(value >>> 16); prim_field_data[off++] = (byte)(value >>> 8); prim_field_data[off] = (byte)value; } public void put (String name, short value) { ObjectStreamField field = currentObjectStreamClass.getField (name); checkType (field, 'S'); int off = field.getOffset (); prim_field_data[off++] = (byte)(value >>> 8); prim_field_data[off] = (byte)value; } public void put (String name, Object value) { ObjectStreamField field = currentObjectStreamClass.getField (name); if (field == null) throw new IllegalArgumentException (); if (value != null && ! field.getType ().isAssignableFrom (value.getClass ())) throw new IllegalArgumentException (); objs[field.getOffset ()] = value; } public void write (ObjectOutput out) throws IOException { // Apparently Block data is not used with PutField as per // empirical evidence against JDK 1.2. Also see Mauve test // java.io.ObjectInputOutput.Test.GetPutField. boolean oldmode = setBlockDataMode (false); out.write (prim_field_data); for (int i = 0; i < objs.length; ++ i) out.writeObject (objs[i]); setBlockDataMode (oldmode); } private void checkType (ObjectStreamField field, char type) throws IllegalArgumentException { if (TypeSignature.getEncodingOfClass(field.getType ()).charAt(0) != type) throw new IllegalArgumentException (); } }; } return currentPutField; } | 25352 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25352/aa9a1e51dfe3c217d861f0795af77c53a43ecefb/ObjectOutputStream.java/clean/libjava/java/io/ObjectOutputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4399,
974,
1378,
2314,
1435,
1216,
1860,
225,
288,
565,
309,
261,
2972,
6426,
974,
422,
446,
13,
1377,
288,
202,
2972,
6426,
974,
273,
394,
4399,
974,
1832,
202,
225,
288,
202,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4399,
974,
1378,
2314,
1435,
1216,
1860,
225,
288,
565,
309,
261,
2972,
6426,
974,
422,
446,
13,
1377,
288,
202,
2972,
6426,
974,
273,
394,
4399,
974,
1832,
202,
225,
288,
202,
56... |
public org.quickfix.field.LegSymbolSfx getLegSymbolSfx() throws FieldNotFound { org.quickfix.field.LegSymbolSfx value = new org.quickfix.field.LegSymbolSfx(); | public quickfix.field.LegSymbolSfx getLegSymbolSfx() throws FieldNotFound { quickfix.field.LegSymbolSfx value = new quickfix.field.LegSymbolSfx(); | public org.quickfix.field.LegSymbolSfx getLegSymbolSfx() throws FieldNotFound { org.quickfix.field.LegSymbolSfx value = new org.quickfix.field.LegSymbolSfx(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteStatusRequest.java/clean/src/java/src/quickfix/fix44/QuoteStatusRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
5335,
55,
19595,
336,
8329,
5335,
55,
19595,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
5335,
55,
19595,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
5335,
55,
19595,
336,
8329,
5335,
55,
19595,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
5335,
55,
19595,
... |
descriptionText.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { markDirty(); } }); } | descriptionText.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { markDirty(); } }); } | private void createDescriptionArea(Composite parent) { Label label = new Label(parent, SWT.NONE); label.setText(MarkerMessages.propertiesDialog_description_text); descriptionText = new Text(parent, (SWT.SINGLE | SWT.BORDER)); GridData gridData = new GridData(GridData.FILL_HORIZONTAL); gridData.widthHint = convertHorizontalDLUsToPixels(400); descriptionText.setLayoutData(gridData); descriptionText.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { markDirty(); } }); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5dfab9acd886f09a1ca9341cff1d740dc40e3c35/DialogMarkerProperties.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogMarkerProperties.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
3291,
5484,
12,
9400,
982,
13,
288,
3639,
5287,
1433,
273,
394,
5287,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
3639,
1433,
18,
542,
1528,
12,
7078,
5058,
18,
4738,
6353,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
3291,
5484,
12,
9400,
982,
13,
288,
3639,
5287,
1433,
273,
394,
5287,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
3639,
1433,
18,
542,
1528,
12,
7078,
5058,
18,
4738,
6353,... |
}.execute(); | }.execute().throwException(); | public void testCompletion(final String[] filesBefore, final String fileAfter) { new WriteCommandAction(myProjectFixture.getProject()) { protected void run(final Result result) throws Throwable { configureByFiles(filesBefore); new CodeCompletionHandler().invoke(getProject(), myEditor, myFile); checkResultByFile(fileAfter, false); } }.execute(); } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/917627441266ff23997bbf899055ce83e23a6f09/CodeInsightTestFixtureImpl.java/buggy/source/com/intellij/testFramework/fixtures/impl/CodeInsightTestFixtureImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
11238,
12,
6385,
514,
8526,
1390,
4649,
16,
727,
514,
585,
4436,
13,
288,
565,
394,
2598,
2189,
1803,
12,
4811,
4109,
26392,
18,
588,
4109,
10756,
288,
1377,
4750,
918,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
11238,
12,
6385,
514,
8526,
1390,
4649,
16,
727,
514,
585,
4436,
13,
288,
565,
394,
2598,
2189,
1803,
12,
4811,
4109,
26392,
18,
588,
4109,
10756,
288,
1377,
4750,
918,
... |
parameterizedMethods[i] = delegateMethods[i].parameterizedWith(parameters,this); | parameterizedMethods[i] = delegateMethods[i].parameterizedWith(parameters,this,isRawType()); | public ResolvedMember[] getDeclaredMethods() { if (parameterizedMethods != null) return parameterizedMethods; if (isParameterizedType() || isRawType()) { ResolvedMember[] delegateMethods = delegate.getDeclaredMethods(); UnresolvedType[] parameters = getTypesForMemberParameterization(); parameterizedMethods = new ResolvedMember[delegateMethods.length]; for (int i = 0; i < delegateMethods.length; i++) { parameterizedMethods[i] = delegateMethods[i].parameterizedWith(parameters,this); } return parameterizedMethods; } else { return delegate.getDeclaredMethods(); } } | 53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/65e1b7ce15ceae73abf8cb928e2091d0087334a0/ReferenceType.java/buggy/weaver/src/org/aspectj/weaver/ReferenceType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
22776,
4419,
8526,
11959,
4712,
1435,
288,
202,
202,
430,
261,
6775,
1235,
4712,
480,
446,
13,
327,
17629,
4712,
31,
202,
202,
430,
261,
291,
1662,
13091,
1435,
747,
353,
4809,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22776,
4419,
8526,
11959,
4712,
1435,
288,
202,
202,
430,
261,
6775,
1235,
4712,
480,
446,
13,
327,
17629,
4712,
31,
202,
202,
430,
261,
291,
1662,
13091,
1435,
747,
353,
4809,
... |
reader = new DADMLReader(superdb); ((DADMLReader)reader).setQuery(type, index); Molecule m = (Molecule)reader.read((ChemObject)new Molecule()); | DADMLReader reader = new DADMLReader(superdb); reader.setQuery(type, index); Molecule m = (Molecule)reader.read(new Molecule()); | public DADMLTest(String superdb, String type, String index) { logger = new LoggingTool(this); LoggingTool.configureLog4j(); try { ChemObjectReader reader; logger.info("SuperDB: ", superdb); logger.info("index type: ", type); logger.info("index: ", index); reader = new DADMLReader(superdb); ((DADMLReader)reader).setQuery(type, index); Molecule m = (Molecule)reader.read((ChemObject)new Molecule()); MoleculeViewer2D mv = new MoleculeViewer2D(m); mv.display(); AtomicTable at = new AtomicTable(m); at.display(); } catch(Exception exc) { logger.error(exc.toString()); } } | 45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/8c263499fdf227138858bf3ef02348ca2e3b8933/DADMLTest.java/clean/src/org/openscience/cdk/test/internet/DADMLTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
463,
1880,
1495,
4709,
12,
780,
2240,
1966,
16,
514,
618,
16,
514,
770,
13,
288,
1377,
1194,
273,
394,
10253,
6364,
12,
2211,
1769,
1377,
10253,
6364,
18,
14895,
1343,
24,
78,
562... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
463,
1880,
1495,
4709,
12,
780,
2240,
1966,
16,
514,
618,
16,
514,
770,
13,
288,
1377,
1194,
273,
394,
10253,
6364,
12,
2211,
1769,
1377,
10253,
6364,
18,
14895,
1343,
24,
78,
562... |
if(transformer.isSourceTypeSupported(returnPayload.getClass())) { | if (transformer.isSourceTypeSupported(returnPayload.getClass())) { | protected UMOMessage applyResponseTransformer(UMOMessage returnMessage) throws TransformerException { UMOTransformer transformer = endpoint.getResponseTransformer(); if(transformer==null) transformer = component.getDescriptor().getResponseTransformer(); if(transformer==null) return returnMessage; if((returnMessage==null)) { if(transformer.isAcceptNull()) { returnMessage = new MuleMessage(new NullPayload(), RequestContext.getProperties()); } else { return null; } } Object returnPayload = returnMessage.getPayload(); if(transformer.isSourceTypeSupported(returnPayload.getClass())) { Object result = transformer.transform(returnPayload); if(result instanceof UMOMessage) { returnMessage = (UMOMessage)result; } else { returnMessage = new MuleMessage(result, returnMessage.getProperties()); } } else { if(logger.isDebugEnabled()) { logger.debug("Response transformer: " + transformer + " doesn't support the result payload: " + returnMessage.getPayload().getClass()); } } return returnMessage; } | 2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/d3ae8e5c87ba5be6a093aa5d0494fe8254df9e52/AbstractMessageReceiver.java/buggy/src/java/org/mule/providers/AbstractMessageReceiver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
587,
5980,
1079,
2230,
1064,
8319,
12,
2799,
51,
1079,
327,
1079,
13,
1216,
21684,
288,
3639,
587,
5980,
8319,
8360,
273,
2494,
18,
588,
1064,
8319,
5621,
3639,
309,
12,
21523,
631,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
587,
5980,
1079,
2230,
1064,
8319,
12,
2799,
51,
1079,
327,
1079,
13,
1216,
21684,
288,
3639,
587,
5980,
8319,
8360,
273,
2494,
18,
588,
1064,
8319,
5621,
3639,
309,
12,
21523,
631,... |
public boolean isSet(org.quickfix.field.UnderlyingSecurityAltID field) | public boolean isSet(quickfix.field.UnderlyingSecurityAltID field) | public boolean isSet(org.quickfix.field.UnderlyingSecurityAltID field) { return isSetField(field); } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/SecurityListRequest.java/clean/src/java/src/quickfix/fix44/SecurityListRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
13532,
12,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
10655,
734,
652,
13,
225,
288,
327,
13532,
974,
12,
1518,
1769,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
13532,
12,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
10655,
734,
652,
13,
225,
288,
327,
13532,
974,
12,
1518,
1769,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
public FactoryConfigurationError(Exception e) { super(); this.exception = e; } | public FactoryConfigurationError() { super(); this.exception = null; } | public FactoryConfigurationError(Exception e) { super(); this.exception = e; } | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/71b81e173cf0d28231f3c055e29844754af0b7bd/FactoryConfigurationError.java/buggy/src/javax/xml/parsers/FactoryConfigurationError.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
7822,
1750,
668,
12,
503,
425,
13,
288,
3639,
2240,
5621,
3639,
333,
18,
4064,
273,
425,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
7822,
1750,
668,
12,
503,
425,
13,
288,
3639,
2240,
5621,
3639,
333,
18,
4064,
273,
425,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
public org.quickfix.field.LegStrikeCurrency getLegStrikeCurrency() throws FieldNotFound { org.quickfix.field.LegStrikeCurrency value = new org.quickfix.field.LegStrikeCurrency(); | public quickfix.field.LegStrikeCurrency getLegStrikeCurrency() throws FieldNotFound { quickfix.field.LegStrikeCurrency value = new quickfix.field.LegStrikeCurrency(); | public org.quickfix.field.LegStrikeCurrency getLegStrikeCurrency() throws FieldNotFound { org.quickfix.field.LegStrikeCurrency value = new org.quickfix.field.LegStrikeCurrency(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/RequestForPositionsAck.java/clean/src/java/src/quickfix/fix44/RequestForPositionsAck.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
1585,
2547,
7623,
336,
8329,
1585,
2547,
7623,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
1585,
2547,
7623... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
1585,
2547,
7623,
336,
8329,
1585,
2547,
7623,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
1585,
2547,
7623... |
} | TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new CommentNode(); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/CommentNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/CommentNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
5035,
907,
3236,
12,
24656,
13820,
13,
225,
288,
565,
5035,
907,
325,
273,
394,
9821,
907,
5621,
565,
309,
261,
5906,
480,
446,
13,
225,
288,
3639,
325,
18,
5906,
273,
2325,
18,
14056,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5035,
907,
3236,
12,
24656,
13820,
13,
225,
288,
565,
5035,
907,
325,
273,
394,
9821,
907,
5621,
565,
309,
261,
5906,
480,
446,
13,
225,
288,
3639,
325,
18,
5906,
273,
2325,
18,
14056,
... | |
public ProgressData( int per, String descrip, boolean finished, String forwardingURL ) { this(per,descrip,finished); this.forwardingURL = forwardingURL; | public ProgressData( int per, String descrip, boolean finished ) { percent = per; description = descrip; done = finished; | public ProgressData( int per, String descrip, boolean finished, String forwardingURL ) { this(per,descrip,finished); this.forwardingURL = forwardingURL; } | 4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/1f2b82679ab6ad1f8f98a5ad040856f512c7231e/ProgressData.java/buggy/gemma-util/src/main/java/ubic/gemma/util/progress/ProgressData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10980,
751,
12,
509,
1534,
16,
514,
302,
1052,
84,
16,
1250,
6708,
16,
514,
20635,
1785,
262,
288,
3639,
333,
12,
457,
16,
72,
1052,
84,
16,
13527,
1769,
3639,
333,
18,
11565,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10980,
751,
12,
509,
1534,
16,
514,
302,
1052,
84,
16,
1250,
6708,
16,
514,
20635,
1785,
262,
288,
3639,
333,
12,
457,
16,
72,
1052,
84,
16,
13527,
1769,
3639,
333,
18,
11565,
3... |
public static final String getPropertyName( String cssPropertyName ) { if ( cssPropertyName == null ) return null; String name = cssPropertyName.toLowerCase( ); if ( CssPropertyConstants.ATTR_FONT_FAMILY.equals( name ) ) return IStyleModel.FONT_FAMILY_PROP; if ( CssPropertyConstants.ATTR_FONT_SIZE.equals( name ) ) return IStyleModel.FONT_SIZE_PROP; if ( CssPropertyConstants.ATTR_FONT_STYLE.equals( name ) ) return IStyleModel.FONT_STYLE_PROP; if ( CssPropertyConstants.ATTR_FONT_VARIANT.equals( name ) ) return IStyleModel.FONT_VARIANT_PROP; if ( CssPropertyConstants.ATTR_FONT_WEIGTH.equals( name ) ) return IStyleModel.FONT_WEIGHT_PROP; if ( CssPropertyConstants.ATTR_TEXT_ALIGN.equals( name ) ) return IStyleModel.TEXT_ALIGN_PROP; if ( CssPropertyConstants.ATTR_TEXT_INDENT.equals( name ) ) return IStyleModel.TEXT_INDENT_PROP; if ( CssPropertyConstants.ATTR_LETTER_SPACING.equals( name ) ) return IStyleModel.LETTER_SPACING_PROP; if ( CssPropertyConstants.ATTR_WORD_SPACING.equals( name ) ) return IStyleModel.WORD_SPACING_PROP; if ( CssPropertyConstants.ATTR_TEXT_TRANSFORM.equals( name ) ) return IStyleModel.TEXT_TRANSFORM_PROP; if ( CssPropertyConstants.ATTR_WHITE_SPACE.equals( name ) ) return IStyleModel.WHITE_SPACE_PROP; if ( CssPropertyConstants.ATTR_MARGIN_TOP.equals( name ) ) return IStyleModel.MARGIN_TOP_PROP; if ( CssPropertyConstants.ATTR_MARGIN_RIGHT.equals( name ) ) return IStyleModel.MARGIN_RIGHT_PROP; if ( CssPropertyConstants.ATTR_MARGIN_BOTTOM.equals( name ) ) return IStyleModel.MARGIN_BOTTOM_PROP; if ( CssPropertyConstants.ATTR_MARGIN_LEFT.equals( name ) ) return IStyleModel.MARGIN_LEFT_PROP; if ( CssPropertyConstants.ATTR_PADDING_TOP.equals( name ) ) return IStyleModel.PADDING_TOP_PROP; if ( CssPropertyConstants.ATTR_PADDING_RIGHT.equals( name ) ) return IStyleModel.PADDING_RIGHT_PROP; if ( CssPropertyConstants.ATTR_PADDING_BOTTOM.equals( name ) ) return IStyleModel.PADDING_BOTTOM_PROP; if ( CssPropertyConstants.ATTR_PADDING_LEFT.equals( name ) ) return IStyleModel.PADDING_LEFT_PROP; if ( CssPropertyConstants.ATTR_COLOR.equals( name ) ) return IStyleModel.COLOR_PROP; if ( CssPropertyConstants.ATTR_BACKGROUND_COLOR.equals( name ) ) return IStyleModel.BACKGROUND_COLOR_PROP; if ( CssPropertyConstants.ATTR_BACKGROUND_IMAGE.equals( name ) ) return IStyleModel.BACKGROUND_IMAGE_PROP; if ( CssPropertyConstants.ATTR_BACKGROUND_REPEAT.equals( name ) ) return IStyleModel.BACKGROUND_REPEAT_PROP; if ( CssPropertyConstants.ATTR_BACKGROUND_ATTACHEMNT.equals( name ) ) return IStyleModel.BACKGROUND_ATTACHMENT_PROP; if ( CssPropertyConstants.ATTR_ORPHANS.equals( name ) ) return IStyleModel.ORPHANS_PROP; if ( CssPropertyConstants.ATTR_WIDOWS.equals( name ) ) return IStyleModel.WIDOWS_PROP; if ( CssPropertyConstants.ATTR_DISPLAY.equals( name ) ) return IStyleModel.DISPLAY_PROP; if ( CssPropertyConstants.ATTR_PAGE_BREAK_BEFORE.equals( name ) ) return IStyleModel.PAGE_BREAK_BEFORE_PROP; if ( CssPropertyConstants.ATTR_PAGE_BREAK_AFTER.equals( name ) ) return IStyleModel.PAGE_BREAK_AFTER_PROP; if ( CssPropertyConstants.ATTR_PAGE_BREAK_INSIDE.equals( name ) ) return IStyleModel.PAGE_BREAK_INSIDE_PROP; if ( CssPropertyConstants.ATTR_VERTICAL_ALIGN.equals( name ) ) return IStyleModel.VERTICAL_ALIGN_PROP; if ( CssPropertyConstants.ATTR_LINE_HEIGHT.equals( name ) ) return IStyleModel.LINE_HEIGHT_PROP; if ( CssPropertyConstants.ATTR_BORDER_BOTTOM_COLOR.equals( name ) ) return IStyleModel.BORDER_BOTTOM_COLOR_PROP; if ( CssPropertyConstants.ATTR_BORDER_BOTTOM_STYLE.equals( name ) ) return IStyleModel.BORDER_BOTTOM_STYLE_PROP; if ( CssPropertyConstants.ATTR_BORDER_BOTTOM_WIDTH.equals( name ) ) return IStyleModel.BORDER_BOTTOM_WIDTH_PROP; if ( CssPropertyConstants.ATTR_BORDER_LEFT_COLOR.equals( name ) ) return IStyleModel.BORDER_LEFT_COLOR_PROP; if ( CssPropertyConstants.ATTR_BORDER_LEFT_STYLE.equals( name ) ) return IStyleModel.BORDER_LEFT_STYLE_PROP; if ( CssPropertyConstants.ATTR_BORDER_LEFT_WIDTH.equals( name ) ) return IStyleModel.BORDER_LEFT_WIDTH_PROP; if ( CssPropertyConstants.ATTR_BORDER_RIGHT_COLOR.equals( name ) ) return IStyleModel.BORDER_RIGHT_COLOR_PROP; if ( CssPropertyConstants.ATTR_BORDER_RIGHT_STYLE.equals( name ) ) return IStyleModel.BORDER_RIGHT_STYLE_PROP; if ( CssPropertyConstants.ATTR_BORDER_RIGHT_WIDTH.equals( name ) ) return IStyleModel.BORDER_RIGHT_WIDTH_PROP; if ( CssPropertyConstants.ATTR_BORDER_TOP_COLOR.equals( name ) ) return IStyleModel.BORDER_TOP_COLOR_PROP; if ( CssPropertyConstants.ATTR_BORDER_TOP_STYLE.equals( name ) ) return IStyleModel.BORDER_TOP_STYLE_PROP; if ( CssPropertyConstants.ATTR_BORDER_TOP_WIDTH.equals( name ) ) return IStyleModel.BORDER_TOP_WIDTH_PROP; return null; } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/e9642c0515de5486d51361ae53a7ec1d3830834a/CssPropertyUtil.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/util/CssPropertyUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
727,
514,
27190,
12,
514,
3747,
13073,
262,
202,
95,
202,
202,
430,
261,
3747,
13073,
422,
446,
262,
1082,
202,
2463,
446,
31,
202,
202,
780,
508,
273,
3747,
13073,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
727,
514,
27190,
12,
514,
3747,
13073,
262,
202,
95,
202,
202,
430,
261,
3747,
13073,
422,
446,
262,
1082,
202,
2463,
446,
31,
202,
202,
780,
508,
273,
3747,
13073,
18,
... | ||
compoundEdit.addEdit(ins); | compoundEdit.undos.add(ins); | public void contentInserted(int offset, int length, String text, boolean clearDirty) { Edit toMerge = null; if(compoundEdit != null) { int size = compoundEdit.getSize(); if(size != 0) toMerge = (Edit)compoundEdit.undos.elementAt(size - 1); } else { if(undoPos != 0) toMerge = (Edit)undos.elementAt(undoPos - 1); } if(!clearDirty && toMerge instanceof Insert) { Insert ins = (Insert)toMerge; if(ins.offset == offset) { ins.str = text.concat(ins.str); ins.length += length; return; } else if(ins.offset + ins.length == offset) { ins.str = ins.str.concat(text); ins.length += length; return; } } Insert ins = new Insert(offset,length,text,clearDirty); if(clearDirty) { if(clearDirtyEdit != null) clearDirtyEdit.clearDirty = false; clearDirtyEdit = ins; } if(compoundEdit != null) compoundEdit.addEdit(ins); else addEdit(ins); } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/9c96f31f160f26f4f03fe5dd8f26377bc097a37c/UndoManager.java/buggy/org/gjt/sp/jedit/buffer/UndoManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
913,
27329,
12,
474,
1384,
16,
509,
769,
16,
514,
977,
16,
1250,
2424,
10785,
13,
202,
95,
202,
202,
4666,
358,
6786,
273,
446,
31,
202,
202,
430,
12,
22585,
4666,
480,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
913,
27329,
12,
474,
1384,
16,
509,
769,
16,
514,
977,
16,
1250,
2424,
10785,
13,
202,
95,
202,
202,
4666,
358,
6786,
273,
446,
31,
202,
202,
430,
12,
22585,
4666,
480,... |
fAddGetterSetter= new AddGetterSetterAction(editor); | fAddGetterSetter= new AddGetterSetterAction(editor); fAddGetterSetter.setActionDefinitionId(IJavaEditorActionDefinitionIds.CREATE_GETTER_SETTER); fAddGetterSetter.editorStateChanged(); editor.setAction("AddGetterSetter", fAddGetterSetter); | public GenerateActionGroup(CompilationUnitEditor editor, String groupName) { fSite= editor.getSite(); fEditorIsOwner= true; fGroupName= groupName; ISelectionProvider provider= fSite.getSelectionProvider(); ISelection selection= provider.getSelection(); fAddImport= new AddImportOnSelectionAction(editor); fAddImport.setActionDefinitionId(IJavaEditorActionDefinitionIds.ADD_IMPORT); fAddImport.update(); editor.setAction("AddImport", fAddImport); //$NON-NLS-1$ fOrganizeImports= new OrganizeImportsAction(editor); fOrganizeImports.setActionDefinitionId(IJavaEditorActionDefinitionIds.ORGANIZE_IMPORTS); fOrganizeImports.editorStateChanged(); editor.setAction("OrganizeImports", fOrganizeImports); //$NON-NLS-1$ fOverrideMethods= new OverrideMethodsAction(editor); fOverrideMethods.setActionDefinitionId(IJavaEditorActionDefinitionIds.OVERRIDE_METHODS); fOverrideMethods.editorStateChanged(); editor.setAction("OverrideMethods", fOverrideMethods); //$NON-NLS-1$ fAddGetterSetter= new AddGetterSetterAction(editor); fAddUnimplementedConstructors= new AddUnimplementedConstructorsAction(editor); fAddUnimplementedConstructors.setActionDefinitionId(IJavaEditorActionDefinitionIds.ADD_UNIMPLEMENTED_CONTRUCTORS); fAddUnimplementedConstructors.editorStateChanged(); editor.setAction("AddUnimplementedConstructors", fAddUnimplementedConstructors); //$NON-NLS-1$ fAddJavaDocStub= new AddJavaDocStubAction(editor); fAddJavaDocStub.editorStateChanged(); fSurroundWithTryCatch= new SurroundWithTryCatchAction(editor); fSurroundWithTryCatch.setActionDefinitionId(IJavaEditorActionDefinitionIds.SURROUND_WITH_TRY_CATCH); fSurroundWithTryCatch.update(selection); provider.addSelectionChangedListener(fSurroundWithTryCatch); editor.setAction("SurroundWithTryCatch", fSurroundWithTryCatch); //$NON-NLS-1$ fExternalizeStrings= new ExternalizeStringsAction(editor); fExternalizeStrings.setActionDefinitionId(IJavaEditorActionDefinitionIds.EXTERNALIZE_STRINGS); fExternalizeStrings.editorStateChanged(); editor.setAction("ExternalizeStrings", fExternalizeStrings); //$NON-NLS-1$ fConvertToWindows= new ConvertLineDelimitersAction(editor, "\r\n"); //$NON-NLS-1$ fConvertToWindows.setActionDefinitionId(IJavaEditorActionDefinitionIds.CONVERT_LINE_DELIMITERS_TO_WINDOWS); editor.setAction("ConvertLineDelimitersToWindows", fConvertToWindows); //$NON-NLS-1$ fConvertToUNIX= new ConvertLineDelimitersAction(editor, "\n"); //$NON-NLS-1$ fConvertToUNIX.setActionDefinitionId(IJavaEditorActionDefinitionIds.CONVERT_LINE_DELIMITERS_TO_UNIX); editor.setAction("ConvertLineDelimitersToUNIX", fConvertToUNIX); //$NON-NLS-1$ fConvertToMac= new ConvertLineDelimitersAction(editor, "\r"); //$NON-NLS-1$ fConvertToMac.setActionDefinitionId(IJavaEditorActionDefinitionIds.CONVERT_LINE_DELIMITERS_TO_MAC); editor.setAction("ConvertLineDelimitersToMac", fConvertToMac); //$NON-NLS-1$ } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/6b03c57aa598d2685029fc15a528b708a5160137/GenerateActionGroup.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/GenerateActionGroup.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6654,
1803,
1114,
12,
19184,
2802,
6946,
4858,
16,
514,
11619,
13,
288,
202,
202,
74,
4956,
33,
4858,
18,
588,
4956,
5621,
202,
202,
74,
6946,
2520,
5541,
33,
638,
31,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6654,
1803,
1114,
12,
19184,
2802,
6946,
4858,
16,
514,
11619,
13,
288,
202,
202,
74,
4956,
33,
4858,
18,
588,
4956,
5621,
202,
202,
74,
6946,
2520,
5541,
33,
638,
31,
202,
... |
this.data = data; } | this.data = data; } | public ListData(Object[] data) { this.data = data; } | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/d2d4f44da9f511edc3e25fe84cced5cae93b74f6/ListDV.java/clean/src/org/apache/xerces/impl/dv/xs/ListDV.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
751,
12,
921,
8526,
501,
13,
288,
3639,
333,
18,
892,
273,
501,
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,
... | [
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
751,
12,
921,
8526,
501,
13,
288,
3639,
333,
18,
892,
273,
501,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
public Transport doCompositeConnect(URI location) throws Exception { URI brokerURI; String host; Map options; CompositeData data = URISupport.parseComposite(location); if( data.getComponents().length==1 && "broker".equals(data.getComponents()[0].getScheme()) ) { brokerURI = data.getComponents()[0]; CompositeData brokerData = URISupport.parseComposite(brokerURI); host = (String)brokerData.getParameters().get("brokerName"); if( host == null ) host = "localhost"; if( brokerData.getPath()!=null ) host = data.getPath(); options = data.getParameters(); location = new URI("vm://"+host); } else { // If using the less complex vm://localhost?broker.persistent=true form try { host = location.getHost(); options = URISupport.parseParamters(location); String config = (String) options.remove("brokerConfig"); if( config != null ) { brokerURI = new URI(config); } else { Map brokerOptions = IntrospectionSupport.extractProperties(options, "broker."); brokerURI = new URI("broker://()/"+host+"?"+URISupport.createQueryString(brokerOptions)); } } catch (URISyntaxException e1) { throw IOExceptionSupport.create(e1); } location = new URI("vm://"+host); } VMTransportServer server = (VMTransportServer) servers.get(host); //validate the broker is still active if( !validateBroker(host) || server == null ) { BrokerService broker = BrokerRegistry.getInstance().lookup(host); if (broker == null) { try { if( brokerFactoryHandler !=null ) { broker = brokerFactoryHandler.createBroker(brokerURI); } else { broker = BrokerFactory.createBroker(brokerURI); } broker.start(); } catch (URISyntaxException e) { throw IOExceptionSupport.create(e); } brokers.put(host, broker); } server = (VMTransportServer) servers.get(host); if (server == null) { server = (VMTransportServer) bind(location, true); TransportConnector connector = new TransportConnector(broker.getBroker(), server); connector.start(); connectors.put(host, connector); } }else { } VMTransport vmtransport = server.connect(); IntrospectionSupport.setProperties(vmtransport, options); Transport transport = vmtransport; if (vmtransport.isMarshal()) { HashMap optionsCopy = new HashMap(options); transport = new MarshallingTransportFilter(transport, createWireFormat(options), createWireFormat(optionsCopy)); } if( !options.isEmpty() ) { throw new IllegalArgumentException("Invalid connect parameters: "+options); } return transport; } | 11783 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11783/5a429d90bbfeb27d012127cc5d03f67b0ef7ed98/VMTransportFactory.java/buggy/activemq-core/src/main/java/org/apache/activemq/transport/vm/VMTransportFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6568,
2896,
9400,
5215,
12,
3098,
3562,
13,
15069,
503,
95,
3098,
21722,
3098,
31,
780,
2564,
31,
863,
2116,
31,
9400,
5139,
361,
396,
33,
3098,
6289,
18,
2670,
9400,
12,
3562,
1769,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6568,
2896,
9400,
5215,
12,
3098,
3562,
13,
15069,
503,
95,
3098,
21722,
3098,
31,
780,
2564,
31,
863,
2116,
31,
9400,
5139,
361,
396,
33,
3098,
6289,
18,
2670,
9400,
12,
3562,
1769,
4... | ||
String key = (String)index.get(new Integer(id)); index.remove(new Integer(id)); cache.remove(key); | if (max_objects > 0) { String key = (String)index.get(new Integer(id)); index.remove(new Integer(id)); cache.remove(key); } | public void remove(int id) { String key = (String)index.get(new Integer(id)); index.remove(new Integer(id)); cache.remove(key); } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/f2e34ed570a252dc2d2b732c2c600f40c1eb8075/CmsCache.java/clean/src/com/opencms/file/CmsCache.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
225,
918,
1206,
12,
474,
612,
13,
202,
95,
202,
225,
514,
498,
273,
261,
780,
13,
1615,
18,
588,
12,
2704,
2144,
12,
350,
10019,
202,
225,
770,
18,
4479,
12,
2704,
2144,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
225,
918,
1206,
12,
474,
612,
13,
202,
95,
202,
225,
514,
498,
273,
261,
780,
13,
1615,
18,
588,
12,
2704,
2144,
12,
350,
10019,
202,
225,
770,
18,
4479,
12,
2704,
2144,
1... |
private void viewBugDetailsItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_viewBugDetailsItemActionPerformed String view = getView(); if (view.equals("BugTree")) { checkBugDetailsVisibility(); } }//GEN-LAST:event_viewBugDetailsItemActionPerformed | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/20d4fcba199a7f0794ac868634a88239a9a6a294/FindBugsFrame.java/clean/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1476,
19865,
3790,
1180,
19449,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
759,
16652,
17,
15354,
30,
2575,
67,
1945,
19865,
3790,
1180,
19449,
3639,
514,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1476,
19865,
3790,
1180,
19449,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
759,
16652,
17,
15354,
30,
2575,
67,
1945,
19865,
3790,
1180,
19449,
3639,
514,... | ||
Object returnValue = super.invokeMethod(target, methodName, arguments, callback); | this.returnValue = super.invokeMethod(target, methodName, arguments, callback); | public Object beforeInvoke(Object target, String methodName, Object[] arguments) { InvocationCallback callback = new InvocationCallback(); Object returnValue = super.invokeMethod(target, methodName, arguments, callback); // if the method was invoked as dynamic // don't invoke true target if (callback.isInvoked()) { doInvoke = false; return returnValue; } else { doInvoke = true; return null; } } | 52280 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52280/aac2ac692981606177dc53266f1e3b37add4e357/AbstractDynamicMethodsInterceptor.java/clean/src/persistence/org/codehaus/groovy/grails/metaclass/AbstractDynamicMethodsInterceptor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
1865,
10969,
12,
921,
1018,
16,
514,
4918,
16,
1082,
202,
921,
8526,
1775,
13,
288,
202,
202,
9267,
2428,
1348,
273,
394,
11298,
2428,
5621,
202,
202,
921,
7750,
273,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
1865,
10969,
12,
921,
1018,
16,
514,
4918,
16,
1082,
202,
921,
8526,
1775,
13,
288,
202,
202,
9267,
2428,
1348,
273,
394,
11298,
2428,
5621,
202,
202,
921,
7750,
273,
22... |
submitButton = toolkit.createButton(buttonComposite, LABEL_CREATE, SWT.NONE); GridData submitButtonData = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); submitButton.setLayoutData(submitButtonData); submitButton.addListener(SWT.Selection, new Listener() { public void handleEvent(Event e) { submitBug(); } }); submitButton.addListener(SWT.FocusIn, new GenericListener()); | super.addActionButtons(buttonComposite); | protected void addActionButtons(Composite buttonComposite) { FormToolkit toolkit = new FormToolkit(buttonComposite.getDisplay()); searchDuplicatesButton = toolkit.createButton(buttonComposite, LABEL_SEARCH_DUPS, SWT.NONE); GridData searchDuplicatesButtonData = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); searchDuplicatesButton.setLayoutData(searchDuplicatesButtonData); searchDuplicatesButton.addListener(SWT.Selection, new Listener() { public void handleEvent(Event e) { searchForDuplicates(); } }); submitButton = toolkit.createButton(buttonComposite, LABEL_CREATE, SWT.NONE); GridData submitButtonData = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); submitButton.setLayoutData(submitButtonData); submitButton.addListener(SWT.Selection, new Listener() { public void handleEvent(Event e) { submitBug(); } }); submitButton.addListener(SWT.FocusIn, new GenericListener()); } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/4e7172a75633ba13686435c39b49c339dd5b9e32/NewBugEditor.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/NewBugEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
14745,
14388,
12,
9400,
3568,
9400,
13,
288,
202,
202,
1204,
6364,
8691,
5226,
8691,
273,
394,
2748,
6364,
8691,
12,
5391,
9400,
18,
588,
4236,
10663,
202,
202,
3072,
2389... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14745,
14388,
12,
9400,
3568,
9400,
13,
288,
202,
202,
1204,
6364,
8691,
5226,
8691,
273,
394,
2748,
6364,
8691,
12,
5391,
9400,
18,
588,
4236,
10663,
202,
202,
3072,
2389... |
SmilesGenerator sg = new SmilesGenerator(); | public void testBug791091() { SmilesGenerator sg = new SmilesGenerator(); String smiles = ""; Molecule molecule = new Molecule(); molecule.addAtom(new Atom("C")); molecule.addAtom(new Atom("C")); molecule.addAtom(new Atom("C")); molecule.addAtom(new Atom("C")); molecule.addAtom(new Atom("N")); molecule.addBond(0, 1, 1.0); molecule.addBond(1, 2, 1.0); molecule.addBond(2, 4, 1.0); molecule.addBond(4, 0, 1.0); molecule.addBond(4, 3, 1.0); fixCarbonHCount(molecule); try { smiles = sg.createSMILES(molecule); } catch (Exception exc) { System.out.println(exc); if (!standAlone) { fail(); } } if (standAlone) { System.err.println("SMILES: " + smiles); } assertEquals("N1(C)CCC1", smiles); } | 1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/99fe3519d35ad1fd276844ab16fa237c545a01fc/SmilesGeneratorTest.java/buggy/src/org/openscience/cdk/test/smiles/SmilesGeneratorTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
19865,
7235,
2163,
12416,
1435,
202,
95,
202,
202,
9552,
1449,
3908,
11150,
273,
394,
9425,
1449,
3908,
5621,
202,
202,
780,
3029,
1449,
273,
1408,
31,
202,
202,
2966... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
19865,
7235,
2163,
12416,
1435,
202,
95,
202,
202,
9552,
1449,
3908,
11150,
273,
394,
9425,
1449,
3908,
5621,
202,
202,
780,
3029,
1449,
273,
1408,
31,
202,
202,
2966... | |
(new NodeTransformer(compilerEnv)).transform(tree); | new NodeTransformer().transform(tree); | public Object compile(Scriptable scope, CompilerEnvirons compilerEnv, ScriptOrFnNode tree, String encodedSource, boolean returnFunction, Object staticSecurityDomain) { this.compilerEnv = compilerEnv; (new NodeTransformer(compilerEnv)).transform(tree); if (Token.printTrees) { System.out.println(tree.toStringTree(tree)); } if (returnFunction) { tree = tree.getFunctionNode(0); } Context cx = Context.getContext(); SecurityController sc = cx.getSecurityController(); Object dynamicDomain; if (sc != null) { dynamicDomain = sc.getDynamicSecurityDomain(staticSecurityDomain); } else { if (staticSecurityDomain != null) { throw new IllegalArgumentException(); } dynamicDomain = null; } scriptOrFn = tree; itsData = new InterpreterData(sc, dynamicDomain, compilerEnv.getLanguageVersion(), scriptOrFn.getSourceName(), encodedSource); itsData.topLevel = true; if (returnFunction) { generateFunctionICode(); return createFunction(cx, scope, itsData, false); } else { itsData.itsFromEvalCode = compilerEnv.isFromEval(); generateICodeFromTree(scriptOrFn); return new InterpretedScript(itsData); } } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/d65a74793ce3fab46a10f0a143ed326996c78192/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
4074,
12,
3651,
429,
2146,
16,
12900,
12972,
28248,
87,
5274,
3491,
16,
12900,
7739,
1162,
5372,
907,
2151,
16,
12900,
514,
3749,
1830,
16,
12900,
1250,
327,
2083,
16,
12900,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
4074,
12,
3651,
429,
2146,
16,
12900,
12972,
28248,
87,
5274,
3491,
16,
12900,
7739,
1162,
5372,
907,
2151,
16,
12900,
514,
3749,
1830,
16,
12900,
1250,
327,
2083,
16,
12900,
... |
return NLS.bind(CommonNavigatorMessages.Navigator_statusLineMultiSelect, new Object[]{new Integer(aSize)}); | return NLS.bind( CommonNavigatorMessages.Navigator_statusLineMultiSelect, new Object[] { new Integer(aSize) }); | protected final String getDefaultStatusBarMessage(int aSize) { return NLS.bind(CommonNavigatorMessages.Navigator_statusLineMultiSelect, new Object[]{new Integer(aSize)}); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/c93d807ed962723d90daba76fc2003e2c1801cbc/NavigatorContentServiceDescriptionProvider.java/clean/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/NavigatorContentServiceDescriptionProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
514,
4829,
1482,
5190,
1079,
12,
474,
279,
1225,
13,
288,
202,
202,
2463,
29117,
18,
4376,
12,
6517,
22817,
5058,
18,
22817,
67,
2327,
1670,
5002,
3391,
16,
394,
1033,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
514,
4829,
1482,
5190,
1079,
12,
474,
279,
1225,
13,
288,
202,
202,
2463,
29117,
18,
4376,
12,
6517,
22817,
5058,
18,
22817,
67,
2327,
1670,
5002,
3391,
16,
394,
1033,
6... |
String[] names= new String[]{}; String[][] signatures= new String[][]{}; | public void test103() throws Exception{ String[] names= new String[]{}; String[][] signatures= new String[][]{};// Disabled test: Convert to new type constraints infrastructure// validatePassingTest("C", new String[]{"A", "B", "C"}, "I", true, names, signatures, null); } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/b7c3f3480ba721ada9a3fc3b41916599bd22ee95/ExtractInterfaceTests.java/buggy/org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/ExtractInterfaceTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
23494,
1435,
1216,
1185,
95,
202,
202,
780,
8526,
1257,
33,
394,
514,
8526,
2916,
31,
202,
202,
780,
63,
6362,
65,
14862,
33,
394,
514,
63,
6362,
65,
2916,
31,
75... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
23494,
1435,
1216,
1185,
95,
202,
202,
780,
8526,
1257,
33,
394,
514,
8526,
2916,
31,
202,
202,
780,
63,
6362,
65,
14862,
33,
394,
514,
63,
6362,
65,
2916,
31,
75... | |
} | return null; | public static IScope getContainingScope( IASTNode node ){ if( node == null ) return null; while( node != null ){ if( node instanceof IASTDeclaration ){ IASTNode parent = node.getParent(); if( parent instanceof IASTTranslationUnit ){ return ((IASTTranslationUnit)parent).getScope(); } else if( parent instanceof IASTDeclarationStatement ){ return getContainingScope( (IASTStatement) parent ); } else if( parent instanceof IASTForStatement ){ return ((IASTForStatement)parent).getScope(); } else if( parent instanceof IASTCompositeTypeSpecifier ){ return ((IASTCompositeTypeSpecifier)parent).getScope(); } else if( parent instanceof ICASTKnRFunctionDeclarator ){ parent = ((IASTDeclarator)parent).getParent(); if ( parent instanceof IASTFunctionDefinition ) { return ((IASTCompoundStatement)((IASTFunctionDefinition)parent).getBody()).getScope(); } } } else if( node instanceof IASTStatement ) return getContainingScope( (IASTStatement) node ); else if( node instanceof IASTParameterDeclaration ){ IASTNode parent = node.getParent(); if( parent instanceof IASTStandardFunctionDeclarator ){ parent = ((IASTDeclarator)parent).getParent(); if ( parent instanceof IASTFunctionDefinition ) { return ((IASTCompoundStatement)((IASTFunctionDefinition)parent).getBody()).getScope(); } } } else if( node instanceof IASTEnumerator ){ //put the enumerators in the same scope as the enumeration node = node.getParent(); } node = node.getParent(); } return null; } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/dd8c9f0af7f091058203506cbd0fd9295cd527e0/CVisitor.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/CVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
467,
3876,
336,
24344,
3876,
12,
467,
9053,
907,
756,
262,
95,
202,
565,
309,
12,
756,
422,
446,
262,
1082,
202,
2463,
446,
31,
202,
202,
17523,
12,
756,
480,
446,
262,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
3876,
336,
24344,
3876,
12,
467,
9053,
907,
756,
262,
95,
202,
565,
309,
12,
756,
422,
446,
262,
1082,
202,
2463,
446,
31,
202,
202,
17523,
12,
756,
480,
446,
262,... |
while (ptr < buffer.length()) { | while (ptr < bufferLen) { | public String nextToken() { StringBuffer retval = new StringBuffer(); while (ptr < buffer.length()) { if (buffer.charAt(ptr) == '\n') { retval.append(buffer.charAt(ptr)); ptr++; break; } else { retval.append(buffer.charAt(ptr)); ptr++; } } return retval.toString(); } | 3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/68c0ca844a7d5fe4a7744cbf9898184966ce0680/StringTokenizer.java/buggy/src/gov/nist/core/StringTokenizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
9617,
1435,
288,
202,
202,
780,
1892,
5221,
273,
394,
6674,
5621,
202,
202,
17523,
261,
6723,
411,
1613,
18,
2469,
10756,
288,
1082,
202,
430,
261,
4106,
18,
3001,
861,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9617,
1435,
288,
202,
202,
780,
1892,
5221,
273,
394,
6674,
5621,
202,
202,
17523,
261,
6723,
411,
1613,
18,
2469,
10756,
288,
1082,
202,
430,
261,
4106,
18,
3001,
861,
1... |
closeHandlers(holder); | closeHandlersClient(holder); | private boolean callProtocolHandlers(ContextHolder holder, Direction direction, RequestOrResponse type, boolean responseExpected) { if (direction == Direction.OUTBOUND) { int i = 0; try { while (i<soapHandlers.size()) { if (soapHandlers.get(i). handleMessage(holder.getSMC()) == false) { if (responseExpected) { // reverse and call handle message/response holder.getSMC().put(MessageContext.MESSAGE_OUTBOUND_PROPERTY,false); if (i>0) { callProtocolHandleMessage(holder, i-1, 0); } callLogicalHandleMessage(holder, logicalHandlers.size()-1, 0); } if (type == RequestOrResponse.RESPONSE) { closeHandlers(holder); } else { closeProtocolHandlers(holder, i, 0); closeLogicalHandlers(holder, logicalHandlers.size()-1 , 0); } return false; } i++; } } catch (RuntimeException re) { logger.log(Level.FINER, "exception in handler chain", re); if (responseExpected && re instanceof ProtocolException) { insertFaultMessage(holder, (ProtocolException) re); // reverse direction and handle fault holder.getSMC().put(MessageContext.MESSAGE_OUTBOUND_PROPERTY,false); try { if (i == 0 || // still on first handler callProtocolHandleFault(holder, i-1, 0)) { callLogicalHandleFault(holder, logicalHandlers.size()-1, 0); } } catch (ProtocolException re1) { addIgnoreFaultProperty(holder); re = re1; } catch (RuntimeException re2) { re = re2; } } if (type == RequestOrResponse.RESPONSE) { closeHandlers(holder); } else { closeProtocolHandlers(holder, i, 0); closeLogicalHandlers(holder, logicalHandlers.size()-1, 0); } throw re; } } else { // inbound case, H(x) -> H(x-1) -> ... H(1) -> H(0) int i = soapHandlers.size()-1; try { while (i >= 0) { if (soapHandlers.get(i). handleMessage(holder.getSMC()) == false) { // reverse and call handle message/response holder.getSMC().put(MessageContext.MESSAGE_OUTBOUND_PROPERTY,true); if (responseExpected && i != soapHandlers.size()-1) { callProtocolHandleMessage(holder, i+1, soapHandlers.size()-1); } if (type == RequestOrResponse.RESPONSE) { closeHandlers(holder); } else { closeProtocolHandlers(holder, soapHandlers.size()-1, i); } return false; } i--; } } catch (RuntimeException re) { logger.log(Level.FINER, "exception in handler chain", re); if (responseExpected && re instanceof ProtocolException) { insertFaultMessage(holder, (ProtocolException) re); // reverse direction and handle fault holder.getSMC().put(MessageContext.MESSAGE_OUTBOUND_PROPERTY,true); try { if (i < soapHandlers.size()-1) { callProtocolHandleFault(holder, i+1, soapHandlers.size()-1); } } catch (ProtocolException re1) { addIgnoreFaultProperty(holder); re = re1; } catch (RuntimeException re2) { re = re2; } } if (type == RequestOrResponse.RESPONSE) { closeHandlers(holder); } else { closeProtocolHandlers(holder, soapHandlers.size()-1, i); } throw re; } } return true; } | 9667 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9667/6509ab3fb8bbe54639b360dda964b0533675e731/HandlerChainCaller.java/buggy/jaxws-ri/rt/src/com/sun/xml/ws/handler/HandlerChainCaller.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
745,
5752,
6919,
12,
1042,
6064,
10438,
16,
3639,
15280,
4068,
16,
1567,
1162,
1064,
618,
16,
1250,
766,
6861,
13,
288,
3639,
309,
261,
9855,
422,
15280,
18,
5069,
19318,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
745,
5752,
6919,
12,
1042,
6064,
10438,
16,
3639,
15280,
4068,
16,
1567,
1162,
1064,
618,
16,
1250,
766,
6861,
13,
288,
3639,
309,
261,
9855,
422,
15280,
18,
5069,
19318,
13,
... |
domain = null; | public void streamClosed() { if (parentSession != null) { parentSession.streamClosed(this); } // end of if (parentSession != null) parentSession = null; authState = Authorization.NOT_AUTHORIZED; resource = null; sessionId = null; domain = null; repository = null; } | 21045 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/21045/e01cbb1cbd667c6029bf9f423eca6e1e4337c4f7/XMPPResourceConnection.java/clean/src/tigase/xmpp/XMPPResourceConnection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1407,
7395,
1435,
288,
202,
202,
430,
261,
2938,
2157,
480,
446,
13,
288,
1082,
202,
2938,
2157,
18,
3256,
7395,
12,
2211,
1769,
202,
202,
97,
368,
679,
434,
309,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1407,
7395,
1435,
288,
202,
202,
430,
261,
2938,
2157,
480,
446,
13,
288,
1082,
202,
2938,
2157,
18,
3256,
7395,
12,
2211,
1769,
202,
202,
97,
368,
679,
434,
309,
261,
... | |
System.err.println("Node doesn't exist"); | protected void normalizeTree(Set tree) { if (tree.isEmpty()) { return; } int change = getMaxRankMove(tree, true); Iterator iterator = tree.iterator(); while (iterator.hasNext()) { Object node = iterator.next(); setTreeSet(node, tree); try { shiftRank(node, change, tree); } catch (NullPointerException e) { // Node no longer exists, ignore // System.err.println("Node doesn't exist"); } } } | 7616 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7616/9ab6a5347672fd6ae9c2f6608ddd3e068b6c0db9/GraphSpanningTree.java/buggy/trunk/taverna1.0/src/org/embl/ebi/escience/scuflui/graph/GraphSpanningTree.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
3163,
18,
370,
18,
8222,
2932,
907,
3302,
1404,
1005,
8863,
918,
3163,
18,
370,
18,
8222,
2932,
907,
3302,
1404,
1005,
8863,
3883,
2471,
12,
694,
3163,
18,
370,
18,
8222,
293... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3163,
18,
370,
18,
8222,
2932,
907,
3302,
1404,
1005,
8863,
918,
3163,
18,
370,
18,
8222,
2932,
907,
3302,
1404,
1005,
8863,
3883,
2471,
12,
694,
3163,
18,
370,
18,
8222,
293... | |
for (Iterator<Comment> it = getRepositoryTaskData().getComments().iterator(); it.hasNext();) { final Comment comment = it.next(); | for (Iterator<TaskComment> it = getRepositoryTaskData().getComments().iterator(); it.hasNext();) { final TaskComment taskComment = it.next(); | protected void createCommentLayout(Composite composite, final ScrolledForm form) { Section section = toolkit.createSection(composite, ExpandableComposite.TITLE_BAR | Section.TWISTIE); section.setText(LABEL_SECTION_COMMENTS); section.setExpanded(true); section.setLayout(new GridLayout()); section.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); section.addExpansionListener(new IExpansionListener() { public void expansionStateChanging(ExpansionEvent e) { form.reflow(true); } public void expansionStateChanged(ExpansionEvent e) { form.reflow(true); } }); ImageHyperlink hyperlink = toolkit.createImageHyperlink(section, SWT.NONE); hyperlink.setBackgroundMode(SWT.INHERIT_NONE); hyperlink.setBackground(section.getTitleBarBackground()); hyperlink.setImage(TaskListImages.getImage(TaskListImages.EXPAND_ALL)); hyperlink.addHyperlinkListener(new HyperlinkAdapter() { public void linkActivated(HyperlinkEvent e) { revealAllComments(); } }); section.setTextClient(hyperlink); // Additional (read-only) Comments Area Composite addCommentsComposite = toolkit.createComposite(section); section.setClient(addCommentsComposite); GridLayout addCommentsLayout = new GridLayout(); addCommentsLayout.numColumns = 1; addCommentsComposite.setLayout(addCommentsLayout); // addCommentsComposite.setBackground(background); GridDataFactory.fillDefaults().grab(true, false).applyTo(addCommentsComposite); // End Additional (read-only) Comments Area // Date lastSynced = new Date(); // if(this.getEditorInput() instanceof ExistingBugEditorInput) { // ExistingBugEditorInput input = // (ExistingBugEditorInput)this.getEditorInput(); // lastSynced = input.getRepositoryTask().getLastSynchronized(); // } StyledText styledText = null; for (Iterator<Comment> it = getRepositoryTaskData().getComments().iterator(); it.hasNext();) { final Comment comment = it.next(); // skip comment 0 as it is the description if (comment.getNumber() == 0) continue; ExpandableComposite expandableComposite = toolkit.createExpandableComposite(addCommentsComposite, ExpandableComposite.TREE_NODE); // if (comment.getCreated().after(lastSynced)) { if (!it.hasNext()) { expandableComposite.setExpanded(true); } expandableComposite.setText(comment.getNumber() + ": " + comment.getAuthorName() + ", " + comment.getCreated()); expandableComposite.addExpansionListener(new ExpansionAdapter() { public void expansionStateChanged(ExpansionEvent e) { form.reflow(true); } }); expandableComposite.setLayout(new GridLayout()); expandableComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); Composite ecComposite = toolkit.createComposite(expandableComposite); GridLayout ecLayout = new GridLayout(); ecLayout.marginHeight = 0; ecLayout.marginBottom = 10; ecLayout.marginLeft = 10; ecComposite.setLayout(ecLayout); ecComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); expandableComposite.setClient(ecComposite); // toolkit.paintBordersFor(expandableComposite); // TODO: Attachments are no longer 'attached' to Comments // if (comment.hasAttachment()) { // // Link attachmentLink = new Link(ecComposite, SWT.NONE); // // String attachmentHeader; // // if (!comment.isObsolete()) { // attachmentHeader = " Attached: " + // comment.getAttachmentDescription() + " [<a>view</a>]"; // } else { // attachmentHeader = " Deprecated: " + // comment.getAttachmentDescription(); // } // // String result = MessageFormat.format(attachmentHeader, new // // String[] { node // // .getLabelText() }); // // attachmentLink.addSelectionListener(new SelectionAdapter() { // /* // * (non-Javadoc) // * // * @see // org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent) // */ // public void widgetSelected(SelectionEvent e) { // String address = repository.getUrl() + "/attachment.cgi?id=" + // comment.getAttachmentId() // + "&action=view"; // TaskUiUtil.openUrl(address, address, address); // // } // }); // // attachmentLink.setText(attachmentHeader); // // } TextViewer viewer = addRepositoryText(repository, ecComposite, comment.getText()); styledText = viewer.getTextWidget(); GridDataFactory.fillDefaults().hint(DESCRIPTION_WIDTH, SWT.DEFAULT).applyTo(styledText); // code for outline commentStyleText.add(styledText); texts.add(textsindex, styledText); textHash.put(comment, styledText); textsindex++; } Section sectionAdditionalComments = toolkit.createSection(composite, ExpandableComposite.TITLE_BAR | Section.TWISTIE); sectionAdditionalComments.setText(LABEL_SECTION_NEW_COMMENT); sectionAdditionalComments.setExpanded(true); sectionAdditionalComments.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); sectionAdditionalComments.addExpansionListener(new IExpansionListener() { public void expansionStateChanging(ExpansionEvent e) { form.reflow(true); } public void expansionStateChanged(ExpansionEvent e) { form.reflow(true); } }); Composite newCommentsComposite = toolkit.createComposite(sectionAdditionalComments); newCommentsComposite.setLayout(new GridLayout()); newCommentsComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); addCommentsText = toolkit.createText(newCommentsComposite, getRepositoryTaskData().getNewComment(), SWT.MULTI | SWT.V_SCROLL | SWT.WRAP); IThemeManager themeManager = getSite().getWorkbenchWindow().getWorkbench().getThemeManager(); Font newCommnetFont = themeManager.getCurrentTheme().getFontRegistry().get( TaskListColorsAndFonts.TASK_EDITOR_FONT); addCommentsText.setFont(newCommnetFont); toolkit.paintBordersFor(newCommentsComposite); GridData addCommentsTextData = new GridData(GridData.FILL_HORIZONTAL); addCommentsTextData.widthHint = DESCRIPTION_WIDTH; addCommentsTextData.heightHint = DESCRIPTION_HEIGHT; addCommentsTextData.grabExcessHorizontalSpace = true; addCommentsText.setLayoutData(addCommentsTextData); addCommentsText.addListener(SWT.KeyUp, new Listener() { public void handleEvent(Event event) { String sel = addCommentsText.getText(); if (!(getRepositoryTaskData().getNewComment().equals(sel))) { getRepositoryTaskData().setNewComment(sel); changeDirtyStatus(true); } validateInput(); } }); addCommentsText.addListener(SWT.FocusIn, new NewCommentListener()); addCommentsTextBox = addCommentsText; sectionAdditionalComments.setClient(newCommentsComposite); // TODO: move into ExistingBugEditor commands section // // if they aren't already on the cc list create an add self check box // // RepositoryTaskAttribute owner = // getReport().getAttribute(RepositoryTaskAttribute.USER_ASSIGNED); // // // Don't add addselfcc check box if the user is the bug owner // if (owner != null && // owner.getValue().indexOf(repository.getUserName()) != -1) { // return; // } // // Don't add addselfcc if already there // RepositoryTaskAttribute ccAttribute = // getReport().getAttribute(RepositoryTaskAttribute.USER_CC); // if (ccAttribute != null && // ccAttribute.getValues().contains(repository.getUserName())) { // return; // } // RepositoryTaskAttribute addselfcc = // getReport().getAttribute(BugzillaReportElement.ADDSELFCC.getKeyString()); // if (addselfcc == null) { // // addselfcc = // // // BugzillaRepositoryUtil.makeNewAttribute(BugzillaReportElement.ADDSELFCC); // getReport().setAttributeValue(BugzillaReportElement.ADDSELFCC.getKeyString(), // "0"); // } else { // addselfcc.setValue("0"); // } // // final Button addSelfButton = // toolkit.createButton(newCommentsComposite, "Add " + // repository.getUserName() // + " to CC list", SWT.CHECK); // // addSelfButton.addSelectionListener(new SelectionAdapter() { // // @Override // public void widgetSelected(SelectionEvent e) { // if (addSelfButton.getSelection()) { // getReport().setAttributeValue(BugzillaReportElement.ADDSELFCC.getKeyString(), // "1"); // // connector.getAttributeFactory().setAttributeValue(getReport(), // // BugzillaReportElement.ADDSELFCC.getKeyString(), "1"); // } else { // getReport().setAttributeValue(BugzillaReportElement.ADDSELFCC.getKeyString(), // "0"); // } // } // }); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/bb57294d5136ab3c4d634a89c7815c55a6e0145f/AbstractRepositoryTaskEditor.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/editors/AbstractRepositoryTaskEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
752,
4469,
3744,
12,
9400,
9635,
16,
727,
2850,
25054,
1204,
646,
13,
288,
202,
202,
5285,
2442,
273,
5226,
8691,
18,
2640,
5285,
12,
27676,
16,
16429,
429,
9400,
18,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
4469,
3744,
12,
9400,
9635,
16,
727,
2850,
25054,
1204,
646,
13,
288,
202,
202,
5285,
2442,
273,
5226,
8691,
18,
2640,
5285,
12,
27676,
16,
16429,
429,
9400,
18,
14... |
if(relatedClassType.getName().equals(getFullName())){ property.setOneToMany(true); property.setBidirectional(true); } | private void establishRelationshipForSet(DefaultGrailsDomainClassProperty property) { // is it a relationship Class relatedClassType = getRelatedClassType( property.getName() ); if(relatedClassType != null) { // set the referenced type in the property property.setReferencedPropertyType(relatedClassType); // if the related class is the same as this class // its a circular one-to-many if(relatedClassType.getName().equals(getFullName())){ property.setOneToMany(true); property.setBidirectional(true); } // if the related type is a domain class // then figure out what kind of relationship it is else if(GrailsClassUtils.isDomainClass( relatedClassType )) { // check the relationship defined in the referenced type // if it is also a Set/domain class etc. Map relatedClassRelationships = GrailsDomainConfigurationUtil.getAssociationMap(relatedClassType); Class relatedClassPropertyType = null; // if the related type has a relationships map it may be a many-to-many // figure out if there is a many-to-many relationship defined if( relatedClassRelationships != null && !relatedClassRelationships.isEmpty() ) { String relatedClassPropertyName = null; // retrieve the relationship property for(Iterator i = relatedClassRelationships.keySet().iterator();i.hasNext();) { String currentKey = (String)i.next(); Class currentClass = (Class) relatedClassRelationships.get( currentKey ); if(currentClass.getName().equals( getClazz().getName() )) { relatedClassPropertyName = currentKey; break; } } // if there is one defined get the type if(relatedClassPropertyName != null) { relatedClassPropertyType = GrailsClassUtils.getProperyType( relatedClassType, relatedClassPropertyName); } } // otherwise figure out if there is a one-to-many relationship by retrieving any properties that are of the related type // if there is more than one property then (for the moment) ignore the relationship if(relatedClassPropertyType == null) { PropertyDescriptor[] descriptors = GrailsClassUtils.getPropertiesOfType(relatedClassType, getClazz()); if(descriptors.length == 1) { relatedClassPropertyType = descriptors[0].getPropertyType(); } } establishRelationshipForSetToType(property,relatedClassPropertyType); // if its a many-to-many figure out the owning side of the relationship if(property.isManyToMany()) { establishOwnerOfManyToMany(property, relatedClassType); } } // otherwise set it to not persistent as you can't persist // relationships to non-domain classes else { property.setPersistant(false); } } else { // no relationship defined for set. // set not persistent property.setPersistant(false); } } | 26970 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/26970/fe351f9f0f376d45dd59d502c6d56321bf14f907/DefaultGrailsDomainClass.java/clean/src/commons/org/codehaus/groovy/grails/commons/DefaultGrailsDomainClass.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
18312,
8180,
1290,
694,
12,
1868,
14571,
14573,
3748,
797,
1396,
1272,
13,
288,
3639,
368,
353,
518,
279,
5232,
3639,
1659,
3746,
18328,
273,
21531,
18328,
12,
1272,
18,
17994,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18312,
8180,
1290,
694,
12,
1868,
14571,
14573,
3748,
797,
1396,
1272,
13,
288,
3639,
368,
353,
518,
279,
5232,
3639,
1659,
3746,
18328,
273,
21531,
18328,
12,
1272,
18,
17994,
... | |
Object previousURI = prefixesToURIs.put(prefix, uri); | Object previousURI = (prefix.length() == 0 && seenEmptyStringMapping) ? uri : prefixesToURIs.put(prefix, uri); if (prefix.length() == 0 && uri == null) { seenEmptyStringMapping = true; } | public void addPrefix(String prefix, String uri) { if (!"xml".equals(prefix) && !"xmlns".equals(prefix)) { uri = (uri.length() == 0) ? null : uri; Object previousURI = prefixesToURIs.put(prefix, uri); namespaceSupport.declarePrefix(prefix, uri); if (previousURI != null) { int index = 1; while (prefixesToURIs.containsKey(prefix + "_" + index)) { ++index; } prefixesToURIs.put(prefix + "_" + index, previousURI); } } } | 11224 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11224/0a14600de64a5ab74c34451ab3c3c1398b1c8894/XMLHelperImpl.java/clean/plugins/org.eclipse.emf.ecore.xmi/src/org/eclipse/emf/ecore/xmi/impl/XMLHelperImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
527,
2244,
12,
780,
1633,
16,
514,
2003,
13,
282,
288,
565,
309,
261,
4442,
2902,
9654,
14963,
12,
3239,
13,
597,
29054,
16741,
9654,
14963,
12,
3239,
3719,
565,
288,
1377,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
527,
2244,
12,
780,
1633,
16,
514,
2003,
13,
282,
288,
565,
309,
261,
4442,
2902,
9654,
14963,
12,
3239,
13,
597,
29054,
16741,
9654,
14963,
12,
3239,
3719,
565,
288,
1377,
2... |
switch (this.encoding) | switch (this.encoding) { case ENCODING_EXTERNAL: case ENCODING_UTF_8: inputEncoding = "UTF-8"; break; case ENCODING_ISO_8859_1: inputEncoding = "ISO-8859-1"; break; case ENCODING_UCS_2_12: inputEncoding = "UTF-16BE"; break; case ENCODING_UCS_2_21: inputEncoding = "UTF-16LE"; break; } require("version"); parseEq(); checkLegalVersion(version = readLiteral(flags)); if (!version.equals("1.0")) { if (version.equals("1.1")) | private String parseXMLDecl (boolean ignoreEncoding) throws SAXException, IOException { String version; String encodingName = null; String standalone = null; int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; String inputEncoding = null; switch (this.encoding) { case ENCODING_EXTERNAL: case ENCODING_UTF_8: inputEncoding = "UTF-8"; break; case ENCODING_ISO_8859_1: inputEncoding = "ISO-8859-1"; break; case ENCODING_UCS_2_12: inputEncoding = "UTF-16BE"; break; case ENCODING_UCS_2_21: inputEncoding = "UTF-16LE"; break; } // Read the version. require ("version"); parseEq (); checkLegalVersion (version = readLiteral (flags)); if (!version.equals ("1.0")){ if(version.equals ("1.1")){ handler.warn ("expected XML version 1.0, not: " + version); xmlVersion = XML_11; }else { error("illegal XML version", version, "1.0 or 1.1"); } } else xmlVersion = XML_10; // Try reading an encoding declaration. boolean white = tryWhitespace (); if (tryRead ("encoding")) { if (!white) error ("whitespace required before 'encoding='"); parseEq (); encodingName = readLiteral (flags); if (!ignoreEncoding) setupDecoding (encodingName); } // Try reading a standalone declaration if (encodingName != null) white = tryWhitespace (); if (tryRead ("standalone")) { if (!white) error ("whitespace required before 'standalone='"); parseEq (); standalone = readLiteral (flags); if ("yes".equals (standalone)) docIsStandalone = true; else if (!"no".equals (standalone)) error ("standalone flag must be 'yes' or 'no'"); } skipWhitespace (); require ("?>"); if (inputEncoding == null) { inputEncoding = encodingName; } handler.xmlDecl(version, encodingName, "yes".equals(standalone), inputEncoding); return encodingName; } | 1043 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1043/7fb7568e63c3fe14af521de4699cb37898923ca7/XmlParser.java/clean/libjava/gnu/xml/aelfred2/XmlParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
1109,
4201,
3456,
261,
6494,
2305,
4705,
13,
565,
1216,
14366,
16,
1860,
565,
288,
202,
780,
202,
1589,
31,
202,
780,
202,
5999,
461,
273,
446,
31,
202,
780,
202,
10145,
1245... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
1109,
4201,
3456,
261,
6494,
2305,
4705,
13,
565,
1216,
14366,
16,
1860,
565,
288,
202,
780,
202,
1589,
31,
202,
780,
202,
5999,
461,
273,
446,
31,
202,
780,
202,
10145,
1245... |
Account account = Provisioning.getInstance().getAccountByName(address); | Account account = Provisioning.getInstance().get(AccountBy.NAME, address); | public static Account getAccount(String userName) throws ServiceException { String address = getAddress(userName); Account account = Provisioning.getInstance().getAccountByName(address); if (account == null) { throw new IllegalArgumentException("Could not find account for '" + address + "'"); } return account; } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/0ee2b6e1f68cd07e42780d9098bdde2e9d6d3bd7/TestUtil.java/buggy/ZimbraServer/src/java/com/zimbra/qa/unittest/TestUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
6590,
23393,
12,
780,
12065,
13,
565,
1216,
16489,
288,
3639,
514,
1758,
273,
14808,
12,
1355,
461,
1769,
3639,
6590,
2236,
273,
26423,
18,
588,
1442,
7675,
588,
12,
3032,
858,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6590,
23393,
12,
780,
12065,
13,
565,
1216,
16489,
288,
3639,
514,
1758,
273,
14808,
12,
1355,
461,
1769,
3639,
6590,
2236,
273,
26423,
18,
588,
1442,
7675,
588,
12,
3032,
858,... |
dialog.setStatus(finalReason); | public void setBlocked(IStatus reason) { //The UI operation has been blocked. Open a progress dialog //to report the situation and give the user an opportunity to cancel. final IStatus finalReason = reason; dialog = new BlockedJobsDialog(null, EventLoopProgressMonitor.this); dialog.setBlockOnOpen(false); dialog.setStatus(finalReason); WorkbenchJob dialogJob = new WorkbenchJob(WorkbenchMessages.getString("EventLoopProgressMonitor.OpenDialogJobName")){ //$NON-NLS-1$ /* (non-Javadoc) * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus runInUIThread(IProgressMonitor monitor) { if(dialog == null) return Status.CANCEL_STATUS; dialog.open(); return Status.OK_STATUS; } }; //Wait 3 second to prevent too many dialogs. dialogJob.setSystem(true); dialogJob.schedule(3000); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/e6af75d1024403d1ef1e4ec4c9024c6f7fac26a7/EventLoopProgressMonitor.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/EventLoopProgressMonitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
23722,
12,
45,
1482,
3971,
13,
288,
9506,
202,
759,
1986,
6484,
1674,
711,
2118,
14547,
18,
225,
3502,
279,
4007,
6176,
202,
202,
759,
869,
2605,
326,
20886,
471,
84... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
23722,
12,
45,
1482,
3971,
13,
288,
9506,
202,
759,
1986,
6484,
1674,
711,
2118,
14547,
18,
225,
3502,
279,
4007,
6176,
202,
202,
759,
869,
2605,
326,
20886,
471,
84... | |
pn.sendAsync(reject); | try { pn.sendAsync(reject); } catch (NotConnectedException e1) { Logger.minor(this, "Lost connection rejecting SwapRequest (locked) from "+pn); } | public boolean handleSwapRequest(Message m) { PeerNode pn = (PeerNode)m.getSource(); long uid = m.getLong(DMT.UID); Long luid = new Long(uid); long oid = uid+1; // We have two separate IDs so we can deal with two visits // separately. This is because we want it to be as random // as possible. // This means we can and should check for the same ID being // sent twice. RecentlyForwardedItem item = (RecentlyForwardedItem) recentlyForwardedIDs.get(luid); if(item != null) { Logger.minor(this, "Rejecting - same ID as previous request"); // Reject Message reject = DMT.createFNPSwapRejected(uid); pn.sendAsync(reject); swapsRejectedRecognizedID++; return true; } if(pn.shouldRejectSwapRequest()) { Logger.minor(this, "Advised to reject SwapRequest by PeerNode - rate limit"); // Reject Message reject = DMT.createFNPSwapRejected(uid); pn.sendAsync(reject); swapsRejectedRateLimit++; return true; } Logger.minor(this, "SwapRequest from "+pn+" - uid="+uid); int htl = m.getInt(DMT.HTL)-1; // Either forward it or handle it if(htl == 0) { Logger.minor(this, "Accepting?... "+uid); // Accept - handle locally if(!lock()) { Logger.minor(this, "Can't obtain lock on "+uid); // Reject Message reject = DMT.createFNPSwapRejected(uid); pn.sendAsync(reject); swapsRejectedAlreadyLocked++; return true; } try { // Locked, do it IncomingSwapRequestHandler isrh = new IncomingSwapRequestHandler(m, pn); Logger.minor(this, "Handling... "+uid); Thread t = new Thread(isrh, "Incoming swap request handler for port "+node.portNumber); t.setDaemon(true); t.start(); return true; } catch (Error e) { unlock(); throw e; } catch (RuntimeException e) { unlock(); throw e; } } else { m.set(DMT.HTL, htl); m.set(DMT.UID, oid); Logger.minor(this, "Forwarding... "+uid); while(true) { try { // Forward PeerNode randomPeer = node.peers.getRandomPeer(pn); if(randomPeer == null) { Logger.minor(this, "Late reject "+uid); Message reject = DMT.createFNPSwapRejected(uid); pn.sendAsync(reject); swapsRejectedNowhereToGo++; return true; } Logger.minor(this, "Forwarding "+uid+" to "+randomPeer); addForwardedItem(uid, oid, pn, randomPeer); node.usm.send(randomPeer, m); return true; } catch (NotConnectedException e) { // Try again } } } } | 52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/db3bc8d8624526da4116ed2c6e8583678d958aa9/LocationManager.java/clean/src/freenet/node/LocationManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1640,
12521,
691,
12,
1079,
312,
13,
288,
3639,
10669,
907,
11059,
273,
261,
6813,
907,
13,
81,
18,
588,
1830,
5621,
3639,
1525,
4555,
273,
312,
18,
588,
3708,
12,
40,
6152,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1640,
12521,
691,
12,
1079,
312,
13,
288,
3639,
10669,
907,
11059,
273,
261,
6813,
907,
13,
81,
18,
588,
1830,
5621,
3639,
1525,
4555,
273,
312,
18,
588,
3708,
12,
40,
6152,... |
String hrefUrl = getHref(); if (handler.importStackContains(hrefUrl)) { throw new org.xml.sax.SAXException( XSLMessages.createMessage( getStylesheetInclErr(), new Object[]{ hrefUrl })); } handler.pushImportURL(hrefUrl); int savedStylesheetType = handler.getStylesheetType(); handler.setStylesheetType(this.getStylesheetType()); handler.pushNewNamespaceSupport(); | public void startElement( StylesheetHandler handler, String uri, String localName, String rawName, Attributes attributes) throws org.xml.sax.SAXException { setPropertiesFromAttributes(handler, rawName, attributes, this); String hrefUrl = getHref(); if (handler.importStackContains(hrefUrl)) { throw new org.xml.sax.SAXException( XSLMessages.createMessage( getStylesheetInclErr(), new Object[]{ hrefUrl })); //"(StylesheetHandler) "+hrefUrl+" is directly or indirectly importing itself!"); } handler.pushImportURL(hrefUrl); int savedStylesheetType = handler.getStylesheetType(); handler.setStylesheetType(this.getStylesheetType()); handler.pushNewNamespaceSupport(); try { parse(handler, uri, localName, rawName, attributes); } finally { handler.setStylesheetType(savedStylesheetType); handler.popImportURL(); handler.popNamespaceSupport(); } } | 2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/ff34dc56b8ded0e7e5a0d7759ea10488295fac96/ProcessorInclude.java/clean/src/org/apache/xalan/processor/ProcessorInclude.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
13591,
12,
1850,
29483,
2963,
1503,
1838,
16,
514,
2003,
16,
514,
11927,
16,
514,
1831,
461,
16,
9055,
1677,
13,
5411,
1216,
2358,
18,
2902,
18,
87,
651,
18,
55,
2501,
503,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
13591,
12,
1850,
29483,
2963,
1503,
1838,
16,
514,
2003,
16,
514,
11927,
16,
514,
1831,
461,
16,
9055,
1677,
13,
5411,
1216,
2358,
18,
2902,
18,
87,
651,
18,
55,
2501,
503,
... | |
_writer.write(GT_CR); | else { _writer.write(GT_CR); } | private void closeStartTag(boolean content) throws SAXException { try { // Take special care when outputting empty tags in HTML documents. if (!content) { if (_outputType == TextOutput.HTML) { // HTML: output empty element as <tag> or <tag></tag> if (!_emptyElements.containsKey(_element.toLowerCase())){ _writer.write(GT_LT_SL); _writer.write(_element); } _writer.write(GT_CR); } else { // XML: output empty element as <tag/> _writer.write(SL_GT); } } else { _writer.write('>'); } _startTagOpen = false; } catch (IOException e) { throw new SAXException(e); } } | 46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/bc6f2655872cf459278fe9a276086471dcf2e0c3/DefaultSAXOutputHandler.java/buggy/src/org/apache/xalan/xsltc/runtime/DefaultSAXOutputHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1746,
30512,
12,
6494,
913,
13,
1216,
14366,
288,
3639,
775,
288,
5411,
368,
17129,
4582,
7671,
1347,
876,
1787,
1008,
2342,
316,
3982,
7429,
18,
5411,
309,
16051,
1745,
13,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1746,
30512,
12,
6494,
913,
13,
1216,
14366,
288,
3639,
775,
288,
5411,
368,
17129,
4582,
7671,
1347,
876,
1787,
1008,
2342,
316,
3982,
7429,
18,
5411,
309,
16051,
1745,
13,
28... |
public boolean isCallerSideMethod(final String className, | public boolean isCallerSideMethod(final ClassMetaData classMetaData, | public boolean isCallerSideMethod(final String className, final MethodMetaData methodMetaData) { if (className == null) throw new IllegalArgumentException("class name can not be null"); if (methodMetaData == null) throw new IllegalArgumentException("method meta-data can not be null"); for (Iterator it = m_aspectMap.values().iterator(); it.hasNext();) { AspectDefinition aspectDef = (AspectDefinition)it.next(); if (aspectDef.isAbstract()) { continue; } List weavingRules = aspectDef.getAdviceWeavingRules(); for (Iterator it2 = weavingRules.iterator(); it2.hasNext();) { AdviceWeavingRule weavingRule = (AdviceWeavingRule)it2.next(); if (weavingRule.matchCallerSidePointcut(className, methodMetaData)) { return true; } } } return false; } | 7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/a4954bc086440ee1724b840d06c4279c27d6d1c7/AspectWerkzDefinition.java/buggy/aspectwerkz/src/main/org/codehaus/aspectwerkz/definition/AspectWerkzDefinition.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
11095,
8895,
1305,
12,
6385,
1659,
6998,
667,
6998,
16,
4766,
1377,
727,
2985,
6998,
707,
6998,
13,
288,
3639,
309,
261,
12434,
422,
446,
13,
604,
394,
2754,
2932,
1106,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
11095,
8895,
1305,
12,
6385,
1659,
6998,
667,
6998,
16,
4766,
1377,
727,
2985,
6998,
707,
6998,
13,
288,
3639,
309,
261,
12434,
422,
446,
13,
604,
394,
2754,
2932,
1106,
... |
container.setLayout( WidgetUtil.createGridLayout( 5 ) ); | container.setLayout( WidgetUtil.createGridLayout( 5 ,15) ); | public void buildUI( Composite parent ) { super.buildUI( parent ); container.setLayout( WidgetUtil.createGridLayout( 5 ) ); // Defines providers. IDescriptorProvider beforeProvider = new ComboPropertyDescriptorProvider( StyleHandle.PAGE_BREAK_BEFORE_PROP, ReportDesignConstants.STYLE_ELEMENT ); IDescriptorProvider masterProvider = new SimpleComboPropertyDescriptorProvider( StyleHandle.MASTER_PAGE_PROP, ReportDesignConstants.STYLE_ELEMENT ); IDescriptorProvider afterProvider = new ComboPropertyDescriptorProvider( StyleHandle.PAGE_BREAK_AFTER_PROP, ReportDesignConstants.STYLE_ELEMENT ); IDescriptorProvider insideProvider = new ComboPropertyDescriptorProvider( StyleHandle.PAGE_BREAK_INSIDE_PROP, ReportDesignConstants.STYLE_ELEMENT ); // Defines sections. ComboSection beforeSection = new ComboSection( beforeProvider.getDisplayName( ), container, true ); ComboSection insideSection = new ComboSection( insideProvider.getDisplayName( ), container, true ); masterSection = new SimpleComboSection( masterProvider.getDisplayName( ), container, true ); ComboSection afterSection = new ComboSection( afterProvider.getDisplayName( ), container, true ); sepSection = new SeperatorSection(container,SWT.HORIZONTAL); beforeSection.setProvider( beforeProvider ); masterSection.setProvider( masterProvider ); afterSection.setProvider( afterProvider ); insideSection.setProvider( insideProvider ); // Sets widths. beforeSection.setWidth( 200 ); masterSection.setWidth( 200 ); afterSection.setWidth( 200 ); insideSection.setWidth( 200 ); // Sets layout num. beforeSection.setLayoutNum( 2 ); afterSection.setLayoutNum( 3 ); // Sets fill grid num. masterSection.setGridPlaceholder( 3, true ); afterSection.setGridPlaceholder( 1, true ); insideSection.setGridPlaceholder( 3, true ); // Adds sections into container page. addSection( PageSectionId.SECION_PAGE_BREAK_BEFORE, beforeSection ); //$NON-NLS-1$ addSection( PageSectionId.SECION_PAGE_BREAK_AFTER, afterSection ); //$NON-NLS-1$ addSection( PageSectionId.SECION_PAGE_BREAK_INSIDE, insideSection ); //$NON-NLS-1$ addSection( PageSectionId.SECION_SEPERATOR, sepSection ); //$NON-NLS-1$ addSection( PageSectionId.SECION_MASTER_PAGE, masterSection ); //$NON-NLS-1$ createSections( ); layoutSections( ); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/b1c54a82f7e0fded60b986c55329f90d6daefd16/SectionPage.java/buggy/UI/org.eclipse.birt.report.designer.ui.views/src/org/eclipse/birt/report/designer/internal/ui/views/attributes/page/SectionPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1361,
5370,
12,
14728,
982,
225,
262,
202,
95,
202,
202,
9565,
18,
3510,
5370,
12,
982,
11272,
202,
202,
3782,
18,
542,
3744,
12,
11103,
1304,
18,
2640,
6313,
3744,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1361,
5370,
12,
14728,
982,
225,
262,
202,
95,
202,
202,
9565,
18,
3510,
5370,
12,
982,
11272,
202,
202,
3782,
18,
542,
3744,
12,
11103,
1304,
18,
2640,
6313,
3744,
12,
... |
Client.session.utilisateur(e, u); | if(Client.fsm.editerUtilisateur()) { Client.session.utilisateur(e, u); } | void editerUtilisateur(Edition e, Utilisateur u) { Client.session.utilisateur(e, u); } | 57791 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57791/da6099451ef8e9920f1e5873d636a7860d1228f1/HI.java/clean/src/client/HI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1675,
2165,
1304,
24954,
12,
41,
1460,
425,
16,
3564,
24954,
582,
13,
288,
3639,
309,
12,
1227,
18,
2556,
81,
18,
329,
2165,
1304,
24954,
10756,
288,
2445,
18,
3184,
18,
1367,
2495... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1675,
2165,
1304,
24954,
12,
41,
1460,
425,
16,
3564,
24954,
582,
13,
288,
3639,
309,
12,
1227,
18,
2556,
81,
18,
329,
2165,
1304,
24954,
10756,
288,
2445,
18,
3184,
18,
1367,
2495... |
public void startPoll(CachedUrlSet cus, PollTally state, boolean isReplayPoll) { | public void startPoll(CachedUrlSet cus, PollTally state, boolean isReplayPoll) { | public void startPoll(CachedUrlSet cus, PollTally state, boolean isReplayPoll) { NodeState nodeState = getNodeState(cus); PollSpec spec = state.getPollSpec(); int status = isReplayPoll ? PollState.REPAIRING : PollState.RUNNING; PollState pollState = new PollState(state.getType(), spec.getLwrBound(), spec.getUprBound(), status, state.getStartTime(), Deadline.in(state.getDuration()), state.isMyPoll()); ( (NodeStateImpl) nodeState).addPollState(pollState); } | 8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/8d493a11db22a4db627941f321123ea8a926d0df/NodeManagerImpl.java/clean/src/org/lockss/state/NodeManagerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
787,
19085,
12,
9839,
1489,
694,
27964,
16,
19160,
56,
1230,
919,
16,
1250,
353,
26481,
19085,
13,
288,
565,
2029,
1119,
756,
1119,
273,
5973,
1119,
12,
71,
407,
1769,
565,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
787,
19085,
12,
9839,
1489,
694,
27964,
16,
19160,
56,
1230,
919,
16,
1250,
353,
26481,
19085,
13,
288,
565,
2029,
1119,
756,
1119,
273,
5973,
1119,
12,
71,
407,
1769,
565,
1... |
return hasLineNumbers; } | return hasLineNumbers; } | public boolean hasLineNumbers() { return hasLineNumbers; } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/4748a5a9b76f3dd763ee6bc7755c932a711bd6a6/LineNumberMap.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ba/LineNumberMap.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
711,
1670,
10072,
1435,
288,
202,
2463,
711,
1670,
10072,
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,
... | [
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
711,
1670,
10072,
1435,
288,
202,
2463,
711,
1670,
10072,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
BSFEngine engine = null; | BSFEngine engine; | public void execute(Map transientVars, Map args, PropertySet ps) throws WorkflowException { String language = (String) args.get(AbstractWorkflow.BSF_LANGUAGE); String source = (String) args.get(AbstractWorkflow.BSF_SOURCE); int row = TextUtils.parseInt((String) args.get(AbstractWorkflow.BSF_ROW)); int col = TextUtils.parseInt((String) args.get(AbstractWorkflow.BSF_COL)); String script = (String) args.get(AbstractWorkflow.BSF_SCRIPT); WorkflowContext context = (WorkflowContext) transientVars.get("context"); WorkflowEntry entry = (WorkflowEntry) transientVars.get("entry"); BSFManager mgr = new BSFManager(); ClassLoader loader = Thread.currentThread().getContextClassLoader(); if (loader != null) { mgr.setClassLoader(loader); } mgr.registerBean("entry", entry); mgr.registerBean("context", context); mgr.registerBean("transientVars", transientVars); mgr.registerBean("propertySet", ps); BSFEngine engine = null; try { engine = mgr.loadScriptingEngine(language); } catch (BSFException e) { String message = "Could not load scripting engine for BSF language: " + language; throw new WorkflowException(message, e); } try { engine.eval(source, row, col, script); } catch (BSFException e) { String message = "BSF script/function could not run"; throw new WorkflowException(message, e); } } | 7621 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7621/f5fa083c1b3902dfe51a2092ad2e5a5f58d99107/BSFFunctionProvider.java/clean/src/java/com/opensymphony/workflow/util/bsf/BSFFunctionProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
12,
863,
12315,
5555,
16,
1635,
833,
16,
4276,
694,
4250,
13,
1216,
11363,
503,
288,
3639,
514,
2653,
273,
261,
780,
13,
833,
18,
588,
12,
7469,
8484,
18,
12692,
42,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1836,
12,
863,
12315,
5555,
16,
1635,
833,
16,
4276,
694,
4250,
13,
1216,
11363,
503,
288,
3639,
514,
2653,
273,
261,
780,
13,
833,
18,
588,
12,
7469,
8484,
18,
12692,
42,
... |
tableModel.prevPage(); | tableSorter.prevPage(); | public void prevPage() { if (tableModel != null) { //FIXME: try { tableModel.prevPage(); } catch (RemoteException ex) { ex.printStackTrace(); } catch (DBLayerException ex) { ex.printStackTrace(); } setChanged(); notifyObservers("PAGE_CHANGED"); } } | 57211 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57211/79474780ff5293efcaffed00518796cfdb817aad/AppCore.java/buggy/trunk/src/net/sf/plantlore/client/AppCore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2807,
1964,
1435,
288,
3639,
309,
261,
2121,
1488,
480,
446,
13,
3639,
288,
5411,
368,
25810,
30,
5411,
775,
288,
7734,
1014,
24952,
18,
10001,
1964,
5621,
5411,
289,
1044,
261... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2807,
1964,
1435,
288,
3639,
309,
261,
2121,
1488,
480,
446,
13,
3639,
288,
5411,
368,
25810,
30,
5411,
775,
288,
7734,
1014,
24952,
18,
10001,
1964,
5621,
5411,
289,
1044,
261... |
if ( expandDbObjectsTree && item != null && item.length > 0 ) | if ( expandDbObjectsTree && item != null && item.length > 0 ) | protected void populateTableList( String schemaName ,TreeItem schemaTreeItem ) { if ( schemaTreeItem != null ) { removeTreeItem( schemaTreeItem ); } String namePattern = null; String[] tableType = null; cachedSearchTxt = searchTxt.getText( ); namePattern = SQLUtility.getTailoredSearchText( searchTxt.getText( ) ); String dbtype = getSelectedDbType( ); cachedDbType = dbtype; if ( dbtype != null ) { if ( DbType.TABLE_STRING.equalsIgnoreCase( dbtype ) || DbType.VIEW_STRING.equalsIgnoreCase( dbtype ) ) { tableType = new String[]{ dbtype }; } } String catalogName = metaDataProvider.getCatalog(); ArrayList tableList = new ArrayList(); ResultSet tablesRs = null; ArrayList procedureRs = null; if (schemaName != null && schemaName.trim().length() > 0) { // For each schema Get the List of Tables { if( metaDataProvider.isProcedureSupported() ) procedureRs = metaDataProvider.getAllProcedure( catalogName, schemaName, namePattern ); if( !DbType.PROCEDURE_STRING.equalsIgnoreCase(dbtype)) tablesRs = metaDataProvider.getAlltables(catalogName,schemaName,namePattern,tableType); tableList = new ArrayList(); try { // Create the schema Node Image image = tableImage; if ( tablesRs != null ) { int numberOfTable; Preferences preferences = JdbcPlugin.getDefault( ).getPluginPreferences( ); if ( preferences.contains( DateSetPreferencePage.USER_MAX_NUM_OF_TABLE_EACH_SCHEMA ) ) { numberOfTable = preferences.getInt( DateSetPreferencePage.USER_MAX_NUM_OF_TABLE_EACH_SCHEMA ); } else { numberOfTable = DateSetPreferencePage.DEFAULT_MAX_NUM_OF_TABLE_EACH_SCHEMA; preferences.setValue( DateSetPreferencePage.USER_MAX_NUM_OF_TABLE_EACH_SCHEMA, numberOfTable ); } int count = 0; while ( tablesRs.next( ) && count < numberOfTable) { // tablesRs.getString("TABLE_NAME") must be called // before // tablesRs.getString("TABLE_TYPE"). This is because // once using JDBC-ODBC-SQLSERVER // the index of "TABLE_NAME" is higher than that of // "TABLE_TYPE".And when connection // is built using JDBC-ODBC-SQLSERVER the // ResultSet.getString() method, if being called // use a low index, then called using a high index, // will result in an exception. String tableName = tablesRs.getString( "TABLE_NAME" ); String type = tablesRs.getString( "TABLE_TYPE" ); if ( type.equalsIgnoreCase( "SYSTEM TABLE" ) ) continue; int dbType = DbObject.TABLE_TYPE; if ( type.equalsIgnoreCase( "TABLE" ) ) { image = tableImage; dbType = DbObject.TABLE_TYPE; } else if ( type.equalsIgnoreCase( "VIEW" ) ) { image = viewImage; dbType = DbObject.VIEW_TYPE; } DbObject dbObject = new DbObject( getTableNameWithSchema( schemaName, tableName ), tableName, dbType, image ); tableList.add( dbObject ); count ++; } } if ( needToCreateProcedureNode( dbtype, procedureRs )) { String fullyQualifiedTableName = "STORED PROCEDURES"; if ( schemaName != null && schemaName.trim( ).length( ) > 0 ) { fullyQualifiedTableName = schemaName + "." + "STORED PROCEDURES"; } DbObject dbObject = new DbObject( fullyQualifiedTableName,"STORED PROCEDURES", DbObject.PROCEDURE_TYPE, tableImage); tableList.add( dbObject ); } if ( schemaTreeItem != null ) { TreeItem item[] = Utility.createTreeItems( schemaTreeItem, tableList, SWT.NONE, null ); //expand table TreeItem if ( expandDbObjectsTree && item != null && item.length > 0 ) { availableDbObjectsTree.showItem( item[0] ); } } } catch(SQLException e) { e.printStackTrace(); } } } } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/cb59eec61fac3f70118834d4b7418d08c64f26a0/SQLDataSetEditorPage.java/buggy/data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/editors/SQLDataSetEditorPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
6490,
1388,
682,
12,
514,
21960,
269,
2471,
1180,
1963,
2471,
1180,
262,
202,
95,
202,
202,
430,
261,
1963,
2471,
1180,
480,
446,
262,
202,
202,
95,
1082,
202,
4479,
247... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6490,
1388,
682,
12,
514,
21960,
269,
2471,
1180,
1963,
2471,
1180,
262,
202,
95,
202,
202,
430,
261,
1963,
2471,
1180,
480,
446,
262,
202,
202,
95,
1082,
202,
4479,
247... |
InputStream in = null; | try { InputStream propStream = new BufferedInputStream( new FileInputStream( configFile ) ); props.load( propStream ); propStream.close(); } catch ( IOException e ) { throw (IOException) new IOException( "File " + configFile + "exists " + "but is unreadable" ) .initCause( e ); } String rmiPort = props.getProperty( PlasticHubListener .PLASTIC_RMI_PORT_KEY ); /* Examine it to see if it describes a living or dead hub. */ | public ServerSet( File configFile ) throws IOException, RemoteException { configFile_ = configFile; serverIdValue_ = this.toString(); /* Check if the config file already exists. */ if ( configFile != null && configFile.exists() ) { Properties props = new Properties(); InputStream in = null; boolean badFile = false; try { in = new FileInputStream( configFile ); props.load( in ); String rmiPort = props.getProperty( PlasticHubListener .PLASTIC_RMI_PORT_KEY ); if ( rmiPort != null ) { try { new Client( "localhost", Integer.parseInt( rmiPort ) ); } catch ( NumberFormatException e ) { badFile = true; } catch ( Exception e ) { logger_.warning( "Moribund " + configFile + " - deleting" ); configFile_.delete(); } } else { badFile = true; } } finally { if ( in != null ) { in.close(); } } if ( configFile.exists() ) { String msg = badFile ? "File " + configFile + " exists but hub doesn't seem " + "to be running - delete it?" : "Hub described at " + configFile + " is already running"; throw new IOException( msg ); } } /* Start an RMI server on a suitable port. */ int rmiPort = Server.DEFAULT_PORT - 1; Server rmiServer = null; RemoteException rmiBindError = null; for ( int i = 0; i < 20 && rmiServer == null; i++ ) { rmiPort++; try { rmiServer = new Server( rmiPort ); } catch ( RemoteException e ) { rmiBindError = e; } } if ( rmiServer == null ) { throw rmiBindError; } rmiPort_ = rmiPort; rmiServer_ = rmiServer; /* Start an XML-RPC server on a suitable port. */ int xrPort = 2112 - 1; WebServer xrServer = null; RuntimeException xrBindError = null; for ( int i = 0; i < 20 && xrServer == null; i++ ) { xrPort++; try { xrServer = new WebServer( xrPort ); xrServer.start(); } catch ( RuntimeException e ) { xrBindError = e; } } if ( xrServer == null ) { throw xrBindError; } xmlrpcServer_ = xrServer; xmlrpcUrl_ = new URL( "http://" + InetAddress.getLocalHost().getHostName() + ":" + xrPort + "/" ); /* Write the config file if requested to. */ if ( configFile != null ) { storeConfig( configFile ); } /* Arrange to delete the config file on shutdown. */ Runtime.getRuntime().addShutdownHook( new Thread() { public void run() { ServerSet.this.stop(); } } ); } | 48494 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48494/0b9dbcdcdc38f33b95459eaf5877ff33cf3f3510/ServerSet.java/buggy/plastic/src/main/uk/ac/starlink/plastic/ServerSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3224,
694,
12,
1387,
12247,
262,
1216,
1860,
16,
18361,
288,
3639,
12247,
67,
273,
12247,
31,
3639,
28638,
620,
67,
273,
333,
18,
10492,
5621,
3639,
1748,
2073,
309,
326,
642,
585,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3224,
694,
12,
1387,
12247,
262,
1216,
1860,
16,
18361,
288,
3639,
12247,
67,
273,
12247,
31,
3639,
28638,
620,
67,
273,
333,
18,
10492,
5621,
3639,
1748,
2073,
309,
326,
642,
585,
... |
customNTDefs.store(customNodeTypesResource.getOutputStream(), nsReg); | out = customNodeTypesResource.getOutputStream(); customNTDefs.store(out, nsReg); | public synchronized void unregisterNodeType(QName name) throws NoSuchNodeTypeException, RepositoryException { if (!registeredNTDefs.containsKey(name)) { throw new NoSuchNodeTypeException(name.toString()); } if (builtInNTDefs.contains(name)) { throw new RepositoryException(name.toString() + ": can't unregister built-in node type."); } /** * todo check if this node type (or any node type that has dependencies * on this node type) is currently referenced by nodes in the repository. * * this is absolutely necessary in order to guarantee integrity of * repository content. * * throw exception until this is can be done (using search) */ boolean isReferenced = true; if (isReferenced) { throw new RepositoryException("not yet implemented"); } NodeTypeDef ntd = (NodeTypeDef) registeredNTDefs.get(name); registeredNTDefs.remove(name); // remove effective node type from aggregates cache entCache.remove(new QName[]{name}); // remove poperty & child node definitions PropDef[] pda = ntd.getPropertyDefs(); for (int i = 0; i < pda.length; i++) { PropDefId id = new PropDefId(pda[i]); propDefs.remove(id); } ChildNodeDef[] nda = ntd.getChildNodeDefs(); for (int i = 0; i < nda.length; i++) { NodeDefId id = new NodeDefId(nda[i]); nodeDefs.remove(id); } // persist removal of node type definition customNTDefs.remove(name); try { customNTDefs.store(customNodeTypesResource.getOutputStream(), nsReg); } catch (IOException ioe) { String error = "internal error: failed to write custom node type definition to " + customNodeTypesResource.getPath(); log.error(error, ioe); throw new RepositoryException(error, ioe); } catch (FileSystemException fse) { String error = "internal error: failed to write custom node type definition to " + customNodeTypesResource.getPath(); log.error(error, fse); throw new RepositoryException(error, fse); } // @todo remove also any node types & aggregates which have dependencies on this node type // notify listeners notifyUnregistered(name); } | 48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/8925e66cb3bda21854a46b800ad11cdca5716e78/NodeTypeRegistry.java/clean/src/java/org/apache/jackrabbit/core/nodetype/NodeTypeRegistry.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
10232,
15101,
12,
13688,
508,
13,
5411,
1216,
5823,
907,
14144,
16,
13367,
288,
3639,
309,
16051,
14327,
1784,
14554,
18,
12298,
653,
12,
529,
3719,
288,
5411,
604,
394,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10232,
15101,
12,
13688,
508,
13,
5411,
1216,
5823,
907,
14144,
16,
13367,
288,
3639,
309,
16051,
14327,
1784,
14554,
18,
12298,
653,
12,
529,
3719,
288,
5411,
604,
394,
... |
throw new ParserSymbolTableException( ParserSymbolTableException.r_Ambiguous ); | if( cls.getTypeInfo().isForwardDeclaration() && cls.getTypeSymbol() == decl ){ cls = (IContainerSymbol) decl; } else if( decl.getTypeInfo().isForwardDeclaration() && decl.getTypeSymbol() == cls ){ } else { throw new ParserSymbolTableException( ParserSymbolTableException.r_Ambiguous ); } | static private ISymbol ResolveAmbiguities( LookupData data ) throws ParserSymbolTableException{ ISymbol decl = null; ISymbol obj = null; IContainerSymbol cls = null; if( data.foundItems == null ){ return null; } int size = data.foundItems.size(); Iterator iter = data.foundItems.iterator(); boolean needDecl = true; if( size == 0){ return null; } else if (size == 1) { decl = (ISymbol) iter.next(); //if it is a function we need to check its parameters if( !decl.isType( TypeInfo.t_function ) ){ data.foundItems.clear(); return decl; } needDecl = false; } LinkedList functionList = null; for( int i = size; i > 0; i-- ){ //if we if( needDecl ){ decl = (ISymbol) iter.next(); } else { needDecl = true; } if( decl.isType( TypeInfo.t_function ) ){ if( functionList == null){ functionList = new LinkedList(); } functionList.add( decl ); } else { //if this is a class-name, other stuff hides it if( decl.isType( TypeInfo.t_class, TypeInfo.t_enumeration ) ){ if( cls == null ) { cls = (IContainerSymbol) decl; } else { throw new ParserSymbolTableException( ParserSymbolTableException.r_Ambiguous ); } } else { //an object, can only have one of these if( obj == null ){ obj = decl; } else { throw new ParserSymbolTableException( ParserSymbolTableException.r_Ambiguous ); } } } decl = null; } data.foundItems.clear(); int numFunctions = ( functionList == null ) ? 0 : functionList.size(); boolean ambiguous = false; if( cls != null ){ //the class is only hidden by other stuff if they are from the same scope if( obj != null && cls.getContainingSymbol() != obj.getContainingSymbol()){ ambiguous = true; } if( functionList != null ){ Iterator fnIter = functionList.iterator(); IParameterizedSymbol fn = null; for( int i = numFunctions; i > 0; i-- ){ fn = (IParameterizedSymbol) fnIter.next(); if( cls.getContainingSymbol()!= fn.getContainingSymbol()){ ambiguous = true; break; } } } } if( obj != null && !ambiguous ){ if( numFunctions > 0 ){ ambiguous = true; } else { return obj; } } else if( numFunctions > 0 ) { if( data.parameters == null ){ //we have no parameter information, if we only have one function, return //that, otherwise we can't decide between them if( numFunctions == 1){ return (ISymbol) functionList.getFirst(); } else { data.foundItems.addAll( functionList ); return null; } } else { return ResolveFunction( data, functionList ); } } if( ambiguous ){ throw new ParserSymbolTableException( ParserSymbolTableException.r_Ambiguous ); } else { return cls; } } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/87e177ade2808f11880bc590985f061763470df8/ParserSymbolTable.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/pst/ParserSymbolTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
3238,
4437,
3284,
9910,
30706,
8810,
1961,
12,
8834,
751,
501,
262,
1216,
6783,
5335,
1388,
503,
95,
202,
202,
5127,
3284,
3496,
273,
446,
31,
202,
202,
5127,
3284,
1081,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
3238,
4437,
3284,
9910,
30706,
8810,
1961,
12,
8834,
751,
501,
262,
1216,
6783,
5335,
1388,
503,
95,
202,
202,
5127,
3284,
3496,
273,
446,
31,
202,
202,
5127,
3284,
1081,
202,
... |
table.addKeyListener( new KeyAdapter( ) { | if ( modifier instanceof ITableAreaModifier ) { table.addKeyListener( new KeyAdapter( ) { | private void createTableViewer( int tableStyle ) { Table table = new Table( this, tableStyle | SWT.FULL_SELECTION | SWT.BORDER ); table.setLayoutData( new GridData( GridData.FILL_BOTH ) ); tableViewer = new TableViewer( table ); table.addKeyListener( new KeyAdapter( ) { /** * @see org.eclipse.swt.events.KeyAdapter#keyReleased(org.eclipse.swt.events.KeyEvent) */ public void keyReleased( KeyEvent e ) { if ( e.keyCode == SWT.DEL && e.stateMask == 0 && !getSelection( ).isEmpty( ) && modifier.removeItem( getSelection( ).toArray( ) ) ) { tableViewer.refresh( ); updateButtons( ); } } } ); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/9def0d3f4770404bae8ad9c41d93b5cca9b94576/TableArea.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/swt/custom/TableArea.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
19565,
18415,
12,
509,
1014,
2885,
262,
202,
95,
202,
202,
1388,
1014,
273,
394,
3555,
12,
333,
16,
1014,
2885,
9506,
202,
96,
348,
8588,
18,
18111,
67,
1090,
15445,
950... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19565,
18415,
12,
509,
1014,
2885,
262,
202,
95,
202,
202,
1388,
1014,
273,
394,
3555,
12,
333,
16,
1014,
2885,
9506,
202,
96,
348,
8588,
18,
18111,
67,
1090,
15445,
950... |
SwingUtilities.invokeLater(new Runnable() { public void run() { new SchedaView(view, true, (JasperPrint) value) .setVisible(true); } }); | new SchedaView(view, true, (JasperPrint) value) .setVisible(true); | public void actionPerformed(ActionEvent actionEvent) { try { if (model.getTableModel().getSelection().values().size() < 1) { JOptionPane.showMessageDialog(view, L10n.getString("Message.CheckAnOccurrence"), L10n.getString("Message.CheckAnOccurrenceTitle"), JOptionPane.INFORMATION_MESSAGE); return; } final JasperReport schedaReport; InputStream schedaIs = this.getClass().getClassLoader().getResourceAsStream( "net/sf/plantlore/client/resources/SchedaA6.jasper"); try { ObjectInputStream schedaOis = new ObjectInputStream( schedaIs); schedaReport = (JasperReport) schedaOis.readObject(); } catch (FileNotFoundException ex) { logger.error("Problem loading jasper report resource: " + ex); JOptionPane.showMessageDialog(view, L10n .getString("Error.InternalProblem") + "\n" + ex.getMessage(), L10n .getString("Error.InternalProblemTitle"), JOptionPane.INFORMATION_MESSAGE); return; } catch (IOException ex) { logger.error("Problem loading jasper report resource: " + ex); JOptionPane.showMessageDialog(view, L10n .getString("Error.InternalProblem") + ex.getMessage(), L10n .getString("Error.InternalProblemTitle"), JOptionPane.INFORMATION_MESSAGE); return; } catch (ClassNotFoundException ex) { logger.error("Problem loading jasper report resource: " + ex); JOptionPane.showMessageDialog(view, L10n .getString("Error.InternalProblem") + ex.getMessage(), L10n .getString("Error.InternalProblemTitle"), JOptionPane.INFORMATION_MESSAGE); return; } prefs = Preferences.userNodeForPackage(AppCoreCtrl.class); String h1 = prefs.get("HEADER_ONE", "Set the first header in settings, please."); String h2 = prefs.get("HEADER_TWO", "Set the second header in settings, please."); final HashMap params = new HashMap(); params.put("HEADER_ONE", h1); params.put("HEADER_TWO", h2); Task task = new Task() { JasperPrint jasperPrint; public Object task() throws JRException { jasperPrint = JasperFillManager.fillReport( schedaReport, params, new JasperDataSource(model.getDatabase(), model .getTableModel().getSelection())); fireStopped(jasperPrint); return jasperPrint; } }; ProgressBar pb = new ProgressBar(task, view, true) { public void exceptionHandler(final Exception ex) { logger.error("Error while filling jasper report in SchedaAction: "+ ex); ex.printStackTrace(); SwingUtilities.invokeLater(new Runnable() { public void run() { JOptionPane.showMessageDialog(view.getParent(), L10n.getString("Print.Message.BrokenReport") + "\n" + ex.getMessage(), L10n.getString("Print.Message.BrokenReport"), JOptionPane.WARNING_MESSAGE); } }); getTask().stop(); } public void afterStopped(final Object value) { SwingUtilities.invokeLater(new Runnable() { public void run() { new SchedaView(view, true, (JasperPrint) value) .setVisible(true); } }); } }; task.start(); } catch (Exception ex) { logger.error("Broken report: " + ex); JOptionPane.showMessageDialog(view, L10n .getString("Print.Message.BrokenReport") + "\n" + ex.getMessage(), L10n .getString("Print.Message.BrokenReport"), JOptionPane.WARNING_MESSAGE); ex.printStackTrace(); } } | 57211 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57211/abc9578bcfdca31e80420b2aaa8f8aba4dd53fa6/AppCoreCtrl.java/buggy/trunk/src/net/sf/plantlore/client/AppCoreCtrl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
26100,
12,
1803,
1133,
1301,
1133,
13,
288,
1082,
202,
698,
288,
9506,
202,
430,
261,
2284,
18,
588,
1388,
1488,
7675,
588,
6233,
7675,
2372,
7675,
1467,
1435,
411,
404,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26100,
12,
1803,
1133,
1301,
1133,
13,
288,
1082,
202,
698,
288,
9506,
202,
430,
261,
2284,
18,
588,
1388,
1488,
7675,
588,
6233,
7675,
2372,
7675,
1467,
1435,
411,
404,
... |
org.exist.xquery.parser.XQueryAST tmp407_AST = null; tmp407_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp407_AST); | org.exist.xquery.parser.XQueryAST tmp331_AST = null; tmp331_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp331_AST); | public final String reservedKeywords() throws RecognitionException, TokenStreamException { String name; returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST reservedKeywords_AST = null; name= null; switch ( LA(1)) { case LITERAL_element: { org.exist.xquery.parser.XQueryAST tmp376_AST = null; tmp376_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp376_AST); match(LITERAL_element); if ( inputState.guessing==0 ) { name = "element"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_to: { org.exist.xquery.parser.XQueryAST tmp377_AST = null; tmp377_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp377_AST); match(LITERAL_to); if ( inputState.guessing==0 ) { name = "to"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_div: { org.exist.xquery.parser.XQueryAST tmp378_AST = null; tmp378_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp378_AST); match(LITERAL_div); if ( inputState.guessing==0 ) { name= "div"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_mod: { org.exist.xquery.parser.XQueryAST tmp379_AST = null; tmp379_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp379_AST); match(LITERAL_mod); if ( inputState.guessing==0 ) { name= "mod"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_text: { org.exist.xquery.parser.XQueryAST tmp380_AST = null; tmp380_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp380_AST); match(LITERAL_text); if ( inputState.guessing==0 ) { name= "text"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_node: { org.exist.xquery.parser.XQueryAST tmp381_AST = null; tmp381_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp381_AST); match(LITERAL_node); if ( inputState.guessing==0 ) { name= "node"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_or: { org.exist.xquery.parser.XQueryAST tmp382_AST = null; tmp382_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp382_AST); match(LITERAL_or); if ( inputState.guessing==0 ) { name= "or"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_and: { org.exist.xquery.parser.XQueryAST tmp383_AST = null; tmp383_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp383_AST); match(LITERAL_and); if ( inputState.guessing==0 ) { name= "and"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_child: { org.exist.xquery.parser.XQueryAST tmp384_AST = null; tmp384_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp384_AST); match(LITERAL_child); if ( inputState.guessing==0 ) { name= "child"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_parent: { org.exist.xquery.parser.XQueryAST tmp385_AST = null; tmp385_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp385_AST); match(LITERAL_parent); if ( inputState.guessing==0 ) { name= "parent"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_self: { org.exist.xquery.parser.XQueryAST tmp386_AST = null; tmp386_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp386_AST); match(LITERAL_self); if ( inputState.guessing==0 ) { name= "self"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_attribute: { org.exist.xquery.parser.XQueryAST tmp387_AST = null; tmp387_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp387_AST); match(LITERAL_attribute); if ( inputState.guessing==0 ) { name= "attribute"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_comment: { org.exist.xquery.parser.XQueryAST tmp388_AST = null; tmp388_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp388_AST); match(LITERAL_comment); if ( inputState.guessing==0 ) { name= "comment"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_document: { org.exist.xquery.parser.XQueryAST tmp389_AST = null; tmp389_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp389_AST); match(LITERAL_document); if ( inputState.guessing==0 ) { name= "document"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 127: { org.exist.xquery.parser.XQueryAST tmp390_AST = null; tmp390_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp390_AST); match(127); if ( inputState.guessing==0 ) { name= "document-node"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_collection: { org.exist.xquery.parser.XQueryAST tmp391_AST = null; tmp391_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp391_AST); match(LITERAL_collection); if ( inputState.guessing==0 ) { name= "collection"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_ancestor: { org.exist.xquery.parser.XQueryAST tmp392_AST = null; tmp392_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp392_AST); match(LITERAL_ancestor); if ( inputState.guessing==0 ) { name= "ancestor"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_descendant: { org.exist.xquery.parser.XQueryAST tmp393_AST = null; tmp393_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp393_AST); match(LITERAL_descendant); if ( inputState.guessing==0 ) { name= "descendant"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 139: { org.exist.xquery.parser.XQueryAST tmp394_AST = null; tmp394_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp394_AST); match(139); if ( inputState.guessing==0 ) { name= "descendant-or-self"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 144: { org.exist.xquery.parser.XQueryAST tmp395_AST = null; tmp395_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp395_AST); match(144); if ( inputState.guessing==0 ) { name= "ancestor-or-self"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 145: { org.exist.xquery.parser.XQueryAST tmp396_AST = null; tmp396_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp396_AST); match(145); if ( inputState.guessing==0 ) { name= "preceding-sibling"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 140: { org.exist.xquery.parser.XQueryAST tmp397_AST = null; tmp397_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp397_AST); match(140); if ( inputState.guessing==0 ) { name= "following-sibling"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_following: { org.exist.xquery.parser.XQueryAST tmp398_AST = null; tmp398_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp398_AST); match(LITERAL_following); if ( inputState.guessing==0 ) { name = "following"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_preceding: { org.exist.xquery.parser.XQueryAST tmp399_AST = null; tmp399_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp399_AST); match(LITERAL_preceding); if ( inputState.guessing==0 ) { name = "preceding"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_item: { org.exist.xquery.parser.XQueryAST tmp400_AST = null; tmp400_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp400_AST); match(LITERAL_item); if ( inputState.guessing==0 ) { name= "item"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_empty: { org.exist.xquery.parser.XQueryAST tmp401_AST = null; tmp401_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp401_AST); match(LITERAL_empty); if ( inputState.guessing==0 ) { name= "empty"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case VERSION: { org.exist.xquery.parser.XQueryAST tmp402_AST = null; tmp402_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp402_AST); match(VERSION); if ( inputState.guessing==0 ) { name= "version"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case XQUERY: { org.exist.xquery.parser.XQueryAST tmp403_AST = null; tmp403_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp403_AST); match(XQUERY); if ( inputState.guessing==0 ) { name= "xquery"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_variable: { org.exist.xquery.parser.XQueryAST tmp404_AST = null; tmp404_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp404_AST); match(LITERAL_variable); if ( inputState.guessing==0 ) { name= "variable"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_namespace: { org.exist.xquery.parser.XQueryAST tmp405_AST = null; tmp405_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp405_AST); match(LITERAL_namespace); if ( inputState.guessing==0 ) { name= "namespace"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_if: { org.exist.xquery.parser.XQueryAST tmp406_AST = null; tmp406_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp406_AST); match(LITERAL_if); if ( inputState.guessing==0 ) { name= "if"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_then: { org.exist.xquery.parser.XQueryAST tmp407_AST = null; tmp407_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp407_AST); match(LITERAL_then); if ( inputState.guessing==0 ) { name= "then"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_else: { org.exist.xquery.parser.XQueryAST tmp408_AST = null; tmp408_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp408_AST); match(LITERAL_else); if ( inputState.guessing==0 ) { name= "else"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_for: { org.exist.xquery.parser.XQueryAST tmp409_AST = null; tmp409_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp409_AST); match(LITERAL_for); if ( inputState.guessing==0 ) { name= "for"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_let: { org.exist.xquery.parser.XQueryAST tmp410_AST = null; tmp410_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp410_AST); match(LITERAL_let); if ( inputState.guessing==0 ) { name= "let"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_default: { org.exist.xquery.parser.XQueryAST tmp411_AST = null; tmp411_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp411_AST); match(LITERAL_default); if ( inputState.guessing==0 ) { name= "default"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_function: { org.exist.xquery.parser.XQueryAST tmp412_AST = null; tmp412_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp412_AST); match(LITERAL_function); if ( inputState.guessing==0 ) { name= "function"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_as: { org.exist.xquery.parser.XQueryAST tmp413_AST = null; tmp413_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp413_AST); match(LITERAL_as); if ( inputState.guessing==0 ) { name = "as"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_union: { org.exist.xquery.parser.XQueryAST tmp414_AST = null; tmp414_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp414_AST); match(LITERAL_union); if ( inputState.guessing==0 ) { name = "union"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_intersect: { org.exist.xquery.parser.XQueryAST tmp415_AST = null; tmp415_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp415_AST); match(LITERAL_intersect); if ( inputState.guessing==0 ) { name = "intersect"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_except: { org.exist.xquery.parser.XQueryAST tmp416_AST = null; tmp416_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp416_AST); match(LITERAL_except); if ( inputState.guessing==0 ) { name = "except"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_order: { org.exist.xquery.parser.XQueryAST tmp417_AST = null; tmp417_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp417_AST); match(LITERAL_order); if ( inputState.guessing==0 ) { name = "order"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_by: { org.exist.xquery.parser.XQueryAST tmp418_AST = null; tmp418_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp418_AST); match(LITERAL_by); if ( inputState.guessing==0 ) { name = "by"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_some: { org.exist.xquery.parser.XQueryAST tmp419_AST = null; tmp419_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp419_AST); match(LITERAL_some); if ( inputState.guessing==0 ) { name = "some"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_every: { org.exist.xquery.parser.XQueryAST tmp420_AST = null; tmp420_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp420_AST); match(LITERAL_every); if ( inputState.guessing==0 ) { name = "every"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_is: { org.exist.xquery.parser.XQueryAST tmp421_AST = null; tmp421_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp421_AST); match(LITERAL_is); if ( inputState.guessing==0 ) { name = "is"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_isnot: { org.exist.xquery.parser.XQueryAST tmp422_AST = null; tmp422_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp422_AST); match(LITERAL_isnot); if ( inputState.guessing==0 ) { name = "isnot"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_module: { org.exist.xquery.parser.XQueryAST tmp423_AST = null; tmp423_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp423_AST); match(LITERAL_module); if ( inputState.guessing==0 ) { name = "module"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_import: { org.exist.xquery.parser.XQueryAST tmp424_AST = null; tmp424_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp424_AST); match(LITERAL_import); if ( inputState.guessing==0 ) { name = "import"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_at: { org.exist.xquery.parser.XQueryAST tmp425_AST = null; tmp425_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp425_AST); match(LITERAL_at); if ( inputState.guessing==0 ) { name = "at"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_cast: { org.exist.xquery.parser.XQueryAST tmp426_AST = null; tmp426_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp426_AST); match(LITERAL_cast); if ( inputState.guessing==0 ) { name = "cast"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_return: { org.exist.xquery.parser.XQueryAST tmp427_AST = null; tmp427_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp427_AST); match(LITERAL_return); if ( inputState.guessing==0 ) { name = "return"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_instance: { org.exist.xquery.parser.XQueryAST tmp428_AST = null; tmp428_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp428_AST); match(LITERAL_instance); if ( inputState.guessing==0 ) { name = "instance"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_of: { org.exist.xquery.parser.XQueryAST tmp429_AST = null; tmp429_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp429_AST); match(LITERAL_of); if ( inputState.guessing==0 ) { name = "of"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_declare: { org.exist.xquery.parser.XQueryAST tmp430_AST = null; tmp430_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp430_AST); match(LITERAL_declare); if ( inputState.guessing==0 ) { name = "declare"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_collation: { org.exist.xquery.parser.XQueryAST tmp431_AST = null; tmp431_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp431_AST); match(LITERAL_collation); if ( inputState.guessing==0 ) { name = "collation"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } returnAST = reservedKeywords_AST; return name; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/06537933dfbae14c444eb15b44247b312b5f47d7/XQueryParser.java/buggy/src/org/exist/xquery/parser/XQueryParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
514,
225,
8735,
14149,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
202,
202,
780,
508,
31,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
225,
8735,
14149,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
202,
202,
780,
508,
31,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,... |
Result result = runQuery( "with member [Measures].[Accumulated Sales] as 'Sum(YTD(),[Measures].[Store Sales])'" + nl + "select" + nl + " {[Measures].[Store Sales],[Measures].[Accumulated Sales]} on columns," + nl + " {Descendants([Time].[1997],[Time].[Month])} on rows" + nl + "from Sales"); | runQueryCheckResult(sampleQueries[7]); | public void testSample7() { Result result = runQuery( "with member [Measures].[Accumulated Sales] as 'Sum(YTD(),[Measures].[Store Sales])'" + nl + "select" + nl + " {[Measures].[Store Sales],[Measures].[Accumulated Sales]} on columns," + nl + " {Descendants([Time].[1997],[Time].[Month])} on rows" + nl + "from Sales"); } | 4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/7509e0f25235fd2cb529aabfa3408833d5f3a58b/FoodMartTestCase.java/buggy/src/main/mondrian/test/FoodMartTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
8504,
27,
1435,
288,
202,
202,
1253,
563,
273,
1086,
1138,
12,
9506,
202,
6,
1918,
3140,
306,
23177,
1823,
8009,
63,
8973,
5283,
690,
25996,
65,
487,
296,
3495,
12,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
8504,
27,
1435,
288,
202,
202,
1253,
563,
273,
1086,
1138,
12,
9506,
202,
6,
1918,
3140,
306,
23177,
1823,
8009,
63,
8973,
5283,
690,
25996,
65,
487,
296,
3495,
12,... |
} else if (e.getType() == PipelineEvent.INSERT) { int addedRow = e.getRow(); layoutTask(addedRow); for (int i = addedRow + 1; i < model.getTaskCount(); i++) { TaskPanel task = (TaskPanel) taskDisplayList.get(i); task.setTaskIndex(i); } addItemsToTaskComboBox(); TaskPanel addedTask = (TaskPanel) taskDisplayList.get(addedRow); Rectangle rect = addedTask.getBounds(); JViewport jvp = scrollPane.getViewport(); Rectangle rectSpn = jvp.getViewRect(); if (!rectSpn.contains(rect)) { Point p = new Point(0, rect.y); jvp.setViewPosition(p); } | scrollTo(movedTask); | public void pipelineChanged(PipelineEvent e) { if (e.getType() == PipelineEvent.DELETE) { int deletedRow = e.getRow(); TaskPanel deletedTask = (TaskPanel) taskDisplayList .remove(deletedRow); tasksPanel.remove(deletedTask); tasksLayout.removeRow(deletedRow + 1); for (int i = deletedRow; i < model.getTaskCount(); i++) { TaskPanel task = (TaskPanel) taskDisplayList.get(i); task.setTaskIndex(i); } addItemsToTaskComboBox(); } else if (e.getType() == PipelineEvent.INSERT) { int addedRow = e.getRow(); layoutTask(addedRow); for (int i = addedRow + 1; i < model.getTaskCount(); i++) { TaskPanel task = (TaskPanel) taskDisplayList.get(i); task.setTaskIndex(i); } addItemsToTaskComboBox(); TaskPanel addedTask = (TaskPanel) taskDisplayList.get(addedRow); Rectangle rect = addedTask.getBounds(); JViewport jvp = scrollPane.getViewport(); Rectangle rectSpn = jvp.getViewRect(); if (!rectSpn.contains(rect)) { Point p = new Point(0, rect.y); jvp.setViewPosition(p); } } else { layoutTasks(); } tasksPanel.invalidate(); tasksPanel.validate(); System.out.println(this.taskDisplayList); } | 57344 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57344/b463d727cb26ba83f550f6fea3373e25edbe21ce/PipelineEditor.java/clean/clients/JavaGE/src/org/genepattern/gpge/ui/tasks/pipeline/PipelineEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
5873,
5033,
12,
8798,
1133,
425,
13,
288,
9506,
202,
430,
261,
73,
18,
588,
559,
1435,
422,
13671,
1133,
18,
6460,
13,
288,
1082,
202,
474,
4282,
1999,
273,
425,
18,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5873,
5033,
12,
8798,
1133,
425,
13,
288,
9506,
202,
430,
261,
73,
18,
588,
559,
1435,
422,
13671,
1133,
18,
6460,
13,
288,
1082,
202,
474,
4282,
1999,
273,
425,
18,
58... |
VM.assert(size <= GC_MAX_SMALL_SIZE); VM.assert(VM_Processor.getCurrentProcessor().backingSLHeap == this); | VM._assert(size <= GC_MAX_SMALL_SIZE); VM._assert(VM_Processor.getCurrentProcessor().backingSLHeap == this); | protected VM_Address allocateZeroedMemory(int size) throws VM_PragmaUninterruptible { if (VM.VerifyAssertions) { VM.assert(size <= GC_MAX_SMALL_SIZE); VM.assert(VM_Processor.getCurrentProcessor().backingSLHeap == this); } return allocateFastPath(size); } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/f852e312fd5d6396bdeff809dda7a5e06d3d3bed/VM_SegregatedListHeap.java/buggy/rvm/src/vm/memoryManagers/watson/common/heaps/VM_SegregatedListHeap.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
8251,
67,
1887,
10101,
7170,
329,
6031,
12,
474,
963,
13,
1216,
8251,
67,
2050,
9454,
984,
31847,
1523,
288,
565,
309,
261,
7397,
18,
8097,
8213,
1115,
13,
288,
1377,
8251,
18,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
8251,
67,
1887,
10101,
7170,
329,
6031,
12,
474,
963,
13,
1216,
8251,
67,
2050,
9454,
984,
31847,
1523,
288,
565,
309,
261,
7397,
18,
8097,
8213,
1115,
13,
288,
1377,
8251,
18,
11... |
private void store(long index, IRubyObject value) { | private IRubyObject store(long index, IRubyObject value) { | private void store(long index, IRubyObject value) { modify(); if (index < 0) { index += getLength(); if (index < 0) { throw getRuntime().newIndexError("index " + (index - getLength()) + " out of array"); } } autoExpand(index + 1); list.set((int) index, value); } | 46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/803c66ee682936beecc8a43fe2cfc90fe5645b22/RubyArray.java/clean/src/org/jruby/RubyArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
15908,
10340,
921,
1707,
12,
5748,
770,
16,
15908,
10340,
921,
460,
13,
288,
3639,
5612,
5621,
3639,
309,
261,
1615,
411,
374,
13,
288,
5411,
770,
1011,
9888,
5621,
5411,
309,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
15908,
10340,
921,
1707,
12,
5748,
770,
16,
15908,
10340,
921,
460,
13,
288,
3639,
5612,
5621,
3639,
309,
261,
1615,
411,
374,
13,
288,
5411,
770,
1011,
9888,
5621,
5411,
309,
261,
... |
public PostCompilerSetting getSetting() { return (PostCompilerSetting) this.extensionSetting; | public PreCompilerSetting getSetting() { return (PreCompilerSetting) this.extensionSetting; | public PostCompilerSetting getSetting() { return (PostCompilerSetting) this.extensionSetting; } | 9804 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9804/1ee4a149e0c86595e88d0d025db1c86a8ca2527b/PreCompiler.java/clean/enough-polish-build/source/src/de/enough/polish/precompile/PreCompiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5616,
9213,
5568,
20569,
1435,
288,
202,
202,
2463,
261,
3349,
9213,
5568,
13,
333,
18,
6447,
5568,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5616,
9213,
5568,
20569,
1435,
288,
202,
202,
2463,
261,
3349,
9213,
5568,
13,
333,
18,
6447,
5568,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
assertEquals(loadedModel.getModelName(), "aLoadedModel"); | assertEquals(loadedModel.getModelName(), "cdkLMModel1"); | public void testModelLoadSave() throws QSARModelException { double[][] x = getXData(); double[] y = getYData(); LinearRegressionModel lrm = new LinearRegressionModel(x, y); lrm.build(); lrm.saveModel(lrm.getModelName(), "lmtest.Rda"); LinearRegressionModel loadedModel = new LinearRegressionModel(); loadedModel.loadModel("lmtest.Rda", "aLoadedModel"); assertEquals(loadedModel.getModelName(), "aLoadedModel"); assertNotNull(loadedModel.getModel()); double[] coeff = loadedModel.getCoefficients(); assertTrue(coeff != null); assertEquals(coeff[0], 0.5079196, .000001); assertEquals(coeff[1], 0.0017640, .000001); assertEquals(coeff[2], 0.0038752, .000001); assertEquals(coeff[3], -0.00228948, .000001); /* Test predictions */ Double[][] newx = { {new Double(9.81536768251), new Double(3.82849269659), new Double(7.22212024421)}, {new Double(0.197449829806), new Double(0.324130354642), new Double(2.8329420321)}, {new Double(0.548460836141), new Double(7.28037586863), new Double(8.13728493983)}, {new Double(1.76049278788), new Double(6.41731766803), new Double(5.53986167864)}, {new Double(3.4541825491), new Double(9.78038580407), new Double(3.58954097059)} }; loadedModel.setParameters("newdata", newx); loadedModel.setParameters("interval", "confidence"); loadedModel.predict(); RList predList = loadedModel.getModelPredict(); double[] preds = predList.at("fit").asDoubleArray(); assertTrue(preds != null); assertEquals(preds[0], 0.5235362, 0.0000001); assertEquals(preds[1], 0.5030381, 0.0000001); assertEquals(preds[2], 0.5184706, 0.0000001); assertEquals(preds[3], 0.5232108, 0.0000001); assertEquals(preds[4], 0.5436967, 0.0000001); assertEquals(predList.at("df").asInt(), 96, 0.1); } | 45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/f86f33319129d67eb5b6609f3c4a56de3a056ea0/LinearRegressionModelTest.java/buggy/src/org/openscience/cdk/test/qsar/model/R2/LinearRegressionModelTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1488,
2563,
4755,
1435,
1216,
2238,
55,
985,
1488,
503,
288,
3639,
1645,
63,
6362,
65,
619,
273,
6538,
751,
5621,
3639,
1645,
8526,
677,
273,
10448,
751,
5621,
3639,
1392... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1488,
2563,
4755,
1435,
1216,
2238,
55,
985,
1488,
503,
288,
3639,
1645,
63,
6362,
65,
619,
273,
6538,
751,
5621,
3639,
1645,
8526,
677,
273,
10448,
751,
5621,
3639,
1392... |
List<AntProperty> properties = new ArrayList<AntProperty>(); | final List<AntProperty> properties = new ArrayList<AntProperty>(); | public AntProperty[] getParams() { if (myParams == null) { List<AntProperty> properties = new ArrayList<AntProperty>(); for (AntElement element : getChildren()) { if (element instanceof AntProperty) { properties.add((AntProperty)element); } } myParams = properties.toArray(new AntProperty[properties.size()]); } return myParams; } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/8db64e6f6295a85b1ed9bb2320343787f08b11ba/AntCallImpl.java/clean/plugins/ant/src/com/intellij/lang/ant/psi/impl/AntCallImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
18830,
1396,
8526,
13281,
1435,
288,
565,
309,
261,
4811,
1370,
422,
446,
13,
288,
1377,
727,
987,
32,
14925,
1396,
34,
1790,
273,
394,
2407,
32,
14925,
1396,
34,
5621,
1377,
364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
18830,
1396,
8526,
13281,
1435,
288,
565,
309,
261,
4811,
1370,
422,
446,
13,
288,
1377,
727,
987,
32,
14925,
1396,
34,
1790,
273,
394,
2407,
32,
14925,
1396,
34,
5621,
1377,
364,
... |
private AutoUnboxingVisitor(BaseInspection inspection, InspectionManager inspectionManager, boolean isOnTheFly) { | private AutoUnboxingVisitor(BaseInspection inspection, InspectionManager inspectionManager, boolean isOnTheFly){ | private AutoUnboxingVisitor(BaseInspection inspection, InspectionManager inspectionManager, boolean isOnTheFly) { super(inspection, inspectionManager, isOnTheFly); } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/e8f88fb4a3a61a65ed3157c65fd40dce00c8b17b/AutoUnboxingInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/jdk/AutoUnboxingInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
8064,
984,
2147,
310,
7413,
12,
2171,
14985,
2763,
7017,
16,
22085,
7017,
1318,
2763,
7017,
1318,
16,
1250,
28181,
1986,
42,
715,
15329,
5411,
2240,
12,
2679,
7017,
16,
2763,
7017,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
8064,
984,
2147,
310,
7413,
12,
2171,
14985,
2763,
7017,
16,
22085,
7017,
1318,
2763,
7017,
1318,
16,
1250,
28181,
1986,
42,
715,
15329,
5411,
2240,
12,
2679,
7017,
16,
2763,
7017,
... |
public MessageConsumer createConsumer(Session session, Destination destination) throws JMSException | public MessageConsumer createConsumer(Session session, Destination destination, boolean topic) throws JMSException | public MessageConsumer createConsumer(Session session, Destination destination) throws JMSException { return createConsumer(session, destination, null, false, null); } | 28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/2da07b2e68f6a70ecd7a3eef319a983cbe6e6067/Jms11Support.java/clean/providers/jms/src/java/org/mule/providers/jms/Jms11Support.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2350,
5869,
752,
5869,
12,
2157,
1339,
16,
10691,
2929,
16,
1250,
3958,
13,
1216,
20343,
565,
288,
3639,
327,
752,
5869,
12,
3184,
16,
2929,
16,
446,
16,
629,
16,
446,
1769,
565,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2350,
5869,
752,
5869,
12,
2157,
1339,
16,
10691,
2929,
16,
1250,
3958,
13,
1216,
20343,
565,
288,
3639,
327,
752,
5869,
12,
3184,
16,
2929,
16,
446,
16,
629,
16,
446,
1769,
565,
... |
} catch (NonExistingServiceException e) { if (e.getMessage().equals("noCurricularCourse")) { errors.add("chosenCurricularCourse", new ActionError( "error.coordinator.chosenCurricularCourse")); saveErrors(request, errors); } else if (e.getMessage().equals("noExecutionYear")) { errors.add("chosenExecutionYear", new ActionError( "error.coordinator.chosenExecutionYear", executionYear)); saveErrors(request, errors); } else { throw new NonExistingActionException(e); } } catch (FenixServiceException e) { if (e.getMessage().equals("nullCurricularCourse")) { errors.add("nullCode", new ActionError("error.coordinator.noCurricularCourse")); saveErrors(request, errors); } else if (e.getMessage().equals("nullExecutionYearName")) { errors.add("nullName", new ActionError("error.coordinator.noExecutionYear")); saveErrors(request, errors); } else { throw new FenixActionException(e); } } if (infoCurriculum == null) { errors.add("noCurriculum", new ActionError("error.coordinator.noCurriculumInExecutionYear", executionYear)); saveErrors(request, errors); } if (!errors.isEmpty()) { return mapping.findForward("degreeCurricularPlanManagementExecutionYears"); } request.setAttribute("infoCurriculum", infoCurriculum); request.setAttribute("canEdit", "false"); | } catch (NonExistingServiceException e) { if (e.getMessage().equals("noCurricularCourse")) { errors.add("chosenCurricularCourse", new ActionError( "error.coordinator.chosenCurricularCourse")); saveErrors(request, errors); } else if (e.getMessage().equals("noExecutionYear")) { errors.add("chosenExecutionYear", new ActionError( "error.coordinator.chosenExecutionYear", executionYear)); saveErrors(request, errors); } else { throw new NonExistingActionException(e); } } catch (FenixServiceException e) { if (e.getMessage().equals("nullCurricularCourse")) { errors.add("nullCode", new ActionError("error.coordinator.noCurricularCourse")); saveErrors(request, errors); } else if (e.getMessage().equals("nullExecutionYearName")) { errors.add("nullName", new ActionError("error.coordinator.noExecutionYear")); saveErrors(request, errors); } else { throw new FenixActionException(e); } } if (infoCurriculum == null) { errors.add("noCurriculum", new ActionError("error.coordinator.noCurriculumInExecutionYear", executionYear)); saveErrors(request, errors); } if (!errors.isEmpty()) { return mapping.findForward("degreeCurricularPlanManagementExecutionYears"); } request.setAttribute("infoCurriculum", infoCurriculum); request.setAttribute("canEdit", "false"); | public ActionForward viewCurricularCourseInformationHistory(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws FenixActionException, FenixFilterException { HttpSession session = request.getSession(false); IUserView userView = getUserView(request); Integer infoCurricularCourseCode = getAndSetIntegerToRequest("infoCurricularCourseCode", request); String executionYear = getAndSetStringToRequest("executionYear", request); getAndSetIntegerToRequest("degreeCurricularPlanID", request); getAndSetStringToRequest("infoCurricularCourseName", request); InfoCurriculum infoCurriculum = null; ActionErrors errors = new ActionErrors(); Object[] args = { null, infoCurricularCourseCode, executionYear }; try { infoCurriculum = (InfoCurriculum) ServiceUtils.executeService(userView, "ReadCurriculumHistoryByCurricularCourseCodeAndExecutionYearName", args); } catch (NonExistingServiceException e) { if (e.getMessage().equals("noCurricularCourse")) { errors.add("chosenCurricularCourse", new ActionError( "error.coordinator.chosenCurricularCourse")); saveErrors(request, errors); } else if (e.getMessage().equals("noExecutionYear")) { errors.add("chosenExecutionYear", new ActionError( "error.coordinator.chosenExecutionYear", executionYear)); saveErrors(request, errors); } else { throw new NonExistingActionException(e); } } catch (FenixServiceException e) { if (e.getMessage().equals("nullCurricularCourse")) { errors.add("nullCode", new ActionError("error.coordinator.noCurricularCourse")); saveErrors(request, errors); } else if (e.getMessage().equals("nullExecutionYearName")) { errors.add("nullName", new ActionError("error.coordinator.noExecutionYear")); saveErrors(request, errors); } else { throw new FenixActionException(e); } } if (infoCurriculum == null) { errors.add("noCurriculum", new ActionError("error.coordinator.noCurriculumInExecutionYear", executionYear)); saveErrors(request, errors); } if (!errors.isEmpty()) { return mapping.findForward("degreeCurricularPlanManagementExecutionYears"); } request.setAttribute("infoCurriculum", infoCurriculum); request.setAttribute("canEdit", "false"); return mapping.findForward("viewCurricularCourseInformation"); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/c5a62c2f5472dc0e8aecc07bdde634af957d104c/DegreeCurricularPlanManagementDispatchAction.java/buggy/src/net/sourceforge/fenixedu/presentationTier/Action/coordinator/DegreeCurricularPlanManagementDispatchAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
1476,
2408,
1512,
2490,
39,
3117,
5369,
5623,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
5411,
9984,
590,
16,
12446,
766,
13,
1216,
478,
275,
697,
1803,
503,
16,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
1476,
2408,
1512,
2490,
39,
3117,
5369,
5623,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
5411,
9984,
590,
16,
12446,
766,
13,
1216,
478,
275,
697,
1803,
503,
16,
4... |
reportError("msg.trail.backslash", "", state); | reportError("msg.trail.backslash", ""); | parseTerm(CompilerState state) { char[] src = state.cpbegin; char c = src[state.cp++]; int nDigits = 2; int parenBaseCount = state.parenCount; int num, tmp; RENode term; int termStart; int ocp = state.cp; switch (c) { /* assertions and atoms */ case '^': state.result = new RENode(REOP_BOL); state.progLength++; return true; case '$': state.result = new RENode(REOP_EOL); state.progLength++; return true; case '\\': if (state.cp < state.cpend) { c = src[state.cp++]; switch (c) { /* assertion escapes */ case 'b' : state.result = new RENode(REOP_WBDRY); state.progLength++; return true; case 'B': state.result = new RENode(REOP_WNONBDRY); state.progLength++; return true; /* Decimal escape */ case '0':/* * Under 'strict' ECMA 3, we interpret \0 as NUL and don't accept octal. * However, (XXX and since Rhino doesn't have a 'strict' mode) we'll just * behave the old way for compatibility reasons. * (see http://bugzilla.mozilla.org/show_bug.cgi?id=141078) * */ /* octal escape */ num = 0; while (state.cp < state.cpend) { c = src[state.cp]; if ((c >= '0') && (c <= '7')) { state.cp++; tmp = 8 * num + (c - '0'); if (tmp > 0377) break; num = tmp; } else break; } c = (char)(num); doFlat(state, c); break; case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': termStart = state.cp - 1; num = getDecimalValue(c, state); /* * n > 9 and > count of parentheses, * then treat as octal instead. */ if ((num > 9) && (num > state.parenCount)) { state.cp = termStart; num = 0; while (state.cp < state.cpend) { c = src[state.cp]; if ((c >= '0') && (c <= '7')) { state.cp++; tmp = 8 * num + (c - '0'); if (tmp > 0377) break; num = tmp; } else break; } c = (char)(num); doFlat(state, c); break; } /* otherwise, it's a back-reference */ state.result = new RENode(REOP_BACKREF); state.result.parenIndex = num - 1; state.progLength += 3; break; /* Control escape */ case 'f': c = 0xC; doFlat(state, c); break; case 'n': c = 0xA; doFlat(state, c); break; case 'r': c = 0xD; doFlat(state, c); break; case 't': c = 0x9; doFlat(state, c); break; case 'v': c = 0xB; doFlat(state, c); break; /* Control letter */ case 'c': if (((state.cp + 1) < state.cpend) && Character.isLetter(src[state.cp + 1])) c = (char)(src[state.cp++] & 0x1F); else { /* back off to accepting the original '\' as a literal */ --state.cp; c = '\\'; } doFlat(state, c); break; /* UnicodeEscapeSequence */ case 'u': nDigits += 2; // fall thru... /* HexEscapeSequence */ case 'x': { int n = 0; int i; for (i = 0; (i < nDigits) && (state.cp < state.cpend); i++) { int digit; c = src[state.cp++]; if (!isHex(c)) { /* * back off to accepting the original * 'u' or 'x' as a literal */ state.cp -= (i + 2); n = src[state.cp++]; break; } n = (n << 4) | unHex(c); } c = (char)(n); } doFlat(state, c); break; /* Character class escapes */ case 'd': state.result = new RENode(REOP_DIGIT); state.progLength++; break; case 'D': state.result = new RENode(REOP_NONDIGIT); state.progLength++; break; case 's': state.result = new RENode(REOP_SPACE); state.progLength++; break; case 'S': state.result = new RENode(REOP_NONSPACE); state.progLength++; break; case 'w': state.result = new RENode(REOP_ALNUM); state.progLength++; break; case 'W': state.result = new RENode(REOP_NONALNUM); state.progLength++; break; /* IdentityEscape */ default: state.result = new RENode(REOP_FLAT); state.result.chr = c; state.result.length = 1; state.result.flatIndex = state.cp - 1; state.progLength += 3; break; } break; } else { /* a trailing '\' is an error */ reportError("msg.trail.backslash", "", state); return false; } case '(': { RENode result = null; termStart = state.cp; if ((state.cp < state.cpend) && (src[state.cp] == '?') && ( (src[state.cp + 1] == '=') || (src[state.cp + 1] == '!') || (src[state.cp + 1] == ':') )) { ++state.cp; switch (src[state.cp++]) { case '=': result = new RENode(REOP_ASSERT); /* ASSERT, <next>, ... ASSERTTEST */ state.progLength += 4; break; case '!': result = new RENode(REOP_ASSERT_NOT); /* ASSERTNOT, <next>, ... ASSERTNOTTEST */ state.progLength += 4; break; } } else { result = new RENode(REOP_LPAREN); /* LPAREN, <index>, ... RPAREN, <index> */ state.progLength += 6; result.parenIndex = state.parenCount++; } if (!parseDisjunction(state)) return false; if ((state.cp == state.cpend) || (src[state.cp] != ')')) { reportError("msg.unterm.paren", "", state); return false; } else ++state.cp; if (result != null) { result.kid = state.result; state.result = result; } break; } case '[': state.result = new RENode(REOP_CLASS); termStart = state.cp; state.result.startIndex = termStart; while (true) { if (state.cp == state.cpend) { reportError("msg.unterm.class", "", state); return false; } if (src[state.cp] == '\\') state.cp++; else { if (src[state.cp] == ']') { state.result.kidlen = state.cp - termStart; break; } } state.cp++; } state.result.index = state.classCount++; /* * Call calculateBitmapSize now as we want any errors it finds * to be reported during the parse phase, not at execution. */ if (!calculateBitmapSize(state, state.result, src, termStart, state.cp++)) return false; state.progLength += 3; /* CLASS, <index> */ break; case '.': state.result = new RENode(REOP_DOT); state.progLength++; break; case '*': case '+': case '}': case '?': reportError("msg.bad.quant", String.valueOf(src[state.cp - 1]), state); return false; default: state.result = new RENode(REOP_FLAT); state.result.chr = c; state.result.length = 1; state.result.flatIndex = state.cp - 1; state.progLength += 3; break; } term = state.result; boolean hasQ = false; if (state.cp < state.cpend) { switch (src[state.cp]) { case '+': state.result = new RENode(REOP_QUANT); state.result.min = 1; state.result.max = -1; /* <PLUS>, <parencount>, <parenindex>, <next> ... <ENDCHILD> */ state.progLength += 8; hasQ = true; break; case '*': state.result = new RENode(REOP_QUANT); state.result.min = 0; state.result.max = -1; /* <STAR>, <parencount>, <parenindex>, <next> ... <ENDCHILD> */ state.progLength += 8; hasQ = true; break; case '?': state.result = new RENode(REOP_QUANT); state.result.min = 0; state.result.max = 1; /* <OPT>, <parencount>, <parenindex>, <next> ... <ENDCHILD> */ state.progLength += 8; hasQ = true; break; case '{': { int min = 0; int max = -1; int errIndex = state.cp++; state.result = new RENode(REOP_QUANT); c = src[state.cp]; if (isDigit(c)) { ++state.cp; min = getDecimalValue(c, state); c = src[state.cp]; } else { reportError("msg.bad.quant", String.valueOf(src[state.cp]), state); return false; } if ((min >> 16) != 0) { reportError("msg.overlarge.max", String.valueOf(src[state.cp]), state); return false; } if (c == ',') { c = src[++state.cp]; if (isDigit(c)) { ++state.cp; max = getDecimalValue(c, state); c = src[state.cp]; if ((max >> 16) != 0) { reportError("msg.overlarge.max", String.valueOf(src[state.cp]), state); return false; } if (min > max) { reportError("msg.max.lt.min", String.valueOf(src[state.cp]), state); return false; } } if (max == 0) { reportError("msg.zero.quant", String.valueOf(src[state.cp]), state); return false; } } else { max = min; if (max == 0) { reportError("msg.zero.quant", String.valueOf(src[state.cp]), state); return false; } } state.result.min = min; state.result.max = max; /* QUANT, <min>, <max>, <parencount>, <parenindex>, <next> ... <ENDCHILD> */ state.progLength += 12; if (c == '}') { hasQ = true; break; } else { reportError("msg.unterm.quant", String.valueOf(src[state.cp]), state); return false; } } } } if (!hasQ) return true; ++state.cp; state.result.kid = term; state.result.parenIndex = parenBaseCount; state.result.parenCount = state.parenCount - parenBaseCount; if ((state.cp < state.cpend) && (src[state.cp] == '?')) { ++state.cp; state.result.greedy = false; } else state.result.greedy = true; return true; } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/10f7bc1e8d7b13b30c167a7687ada1d9a0c79b5e/NativeRegExp.java/buggy/js/rhino/src/org/mozilla/javascript/regexp/NativeRegExp.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1109,
4065,
12,
9213,
1119,
919,
13,
565,
288,
3639,
1149,
8526,
1705,
273,
919,
18,
4057,
10086,
31,
3639,
1149,
276,
273,
1705,
63,
2019,
18,
4057,
9904,
15533,
3639,
509,
290,
9537,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1109,
4065,
12,
9213,
1119,
919,
13,
565,
288,
3639,
1149,
8526,
1705,
273,
919,
18,
4057,
10086,
31,
3639,
1149,
276,
273,
1705,
63,
2019,
18,
4057,
9904,
15533,
3639,
509,
290,
9537,
... |
public RequestSenseData requestSense() throws SCSIException, | public SenseData requestSense() throws SCSIException, | public RequestSenseData requestSense() throws SCSIException, TimeoutException, InterruptedException { final byte[] data = new byte[ 256]; final CDB cdb = new CDBRequestSense(data.length); api.executeCommand(cdb, data, 0, 5000); return new RequestSenseData(data); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/af3e25629c7bca20276f004befd3b45af9fa6102/SCSITest.java/clean/fs/src/test/org/jnode/test/fs/SCSITest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
348,
3558,
751,
590,
29713,
1435,
1216,
8795,
2320,
503,
16,
5411,
23334,
16,
7558,
288,
3639,
727,
1160,
8526,
501,
273,
394,
1160,
63,
8303,
15533,
3639,
727,
385,
2290,
276,
1966... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
348,
3558,
751,
590,
29713,
1435,
1216,
8795,
2320,
503,
16,
5411,
23334,
16,
7558,
288,
3639,
727,
1160,
8526,
501,
273,
394,
1160,
63,
8303,
15533,
3639,
727,
385,
2290,
276,
1966... |
System.out.println ("-->atkText_get_text: " + start_offset + "," + end_offset); | if (DEBUG) System.out.println ("-->atkText_get_text: " + start_offset + "," + end_offset); | int atkText_get_text (int atkObject, int start_offset, int end_offset) { System.out.println ("-->atkText_get_text: " + start_offset + "," + end_offset); int parentResult = 0; if (OS.g_type_is_a (parentType, ATK_TEXT_TYPE)) { int superType = OS.g_type_interface_peek_parent (OS.ATK_TEXT_GET_IFACE (atkObject)); AtkTextIface textIface = new AtkTextIface (); OS.memmove (textIface, superType); if (textIface.get_text != 0) { parentResult = OS.call (textIface.get_text, atkObject, start_offset, end_offset); } } AccessibleObject object = getAccessibleObject (atkObject); if (object != null) { int result = object.atkText_get_text (start_offset, end_offset); if (result != AccessibleObject.NO_ANSWER) return result; } return parentResult; } | 12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/1fba1047c47b152366f4b2d823cbf695aad8436a/AccessibleType.java/buggy/bundles/org.eclipse.swt/Eclipse SWT Accessibility/gtk/org/eclipse/swt/accessibility/AccessibleType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
474,
622,
79,
1528,
67,
588,
67,
955,
261,
474,
622,
79,
921,
16,
509,
787,
67,
3348,
16,
509,
679,
67,
3348,
13,
288,
202,
202,
3163,
18,
659,
18,
8222,
7566,
413,
34,
25815,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
474,
622,
79,
1528,
67,
588,
67,
955,
261,
474,
622,
79,
921,
16,
509,
787,
67,
3348,
16,
509,
679,
67,
3348,
13,
288,
202,
202,
3163,
18,
659,
18,
8222,
7566,
413,
34,
25815,
... |
if(Mouse.getEventButtonState()) { | if(Mouse.getEventButton() != -1 && Mouse.getEventButtonState()) { | private void readBufferedMouse() { // iterate all events, use the last button down while(Mouse.next()) { if(Mouse.getEventButtonState()) { lastButton = Mouse.getEventButton(); } } updateState(); } | 5076 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5076/db332762f584f9dbaee0227613924a413843950d/MouseTest.java/buggy/src/java/org/lwjgl/test/input/MouseTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
855,
17947,
9186,
1435,
288,
565,
368,
7401,
777,
2641,
16,
999,
326,
1142,
3568,
2588,
565,
1323,
12,
9186,
18,
4285,
10756,
288,
1377,
309,
12,
9186,
18,
588,
1133,
3616,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
855,
17947,
9186,
1435,
288,
565,
368,
7401,
777,
2641,
16,
999,
326,
1142,
3568,
2588,
565,
1323,
12,
9186,
18,
4285,
10756,
288,
1377,
309,
12,
9186,
18,
588,
1133,
3616,
1... |
protected int convertHeightInCharsToPixels(int chars) { return convertVerticalDLUsToPixels(chars * 8); | public static int convertHeightInCharsToPixels(FontMetrics fontMetrics, int chars) { return fontMetrics.getHeight() * chars; | protected int convertHeightInCharsToPixels(int chars) { return convertVerticalDLUsToPixels(chars * 8);} | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/d9f7a617ed98e778f2d85eb7cd8f6aa746530e2c/Dialog.java/buggy/bundles/org.eclipse.ui/Eclipse JFace/org/eclipse/jface/dialogs/Dialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
509,
1765,
2686,
382,
7803,
774,
18079,
12,
474,
5230,
13,
288,
202,
2463,
1765,
15704,
8914,
3477,
774,
18079,
12,
7549,
380,
1725,
1769,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
509,
1765,
2686,
382,
7803,
774,
18079,
12,
474,
5230,
13,
288,
202,
2463,
1765,
15704,
8914,
3477,
774,
18079,
12,
7549,
380,
1725,
1769,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
final String implementationURL ) { m_extensionName = extensionName; m_specificationVendor = specificationVendor; | final String implementationURL) { this.extensionName = extensionName; this.specificationVendor = specificationVendor; | public Extension( final String extensionName, final String specificationVersion, final String specificationVendor, final String implementationVersion, final String implementationVendor, final String implementationVendorId, final String implementationURL ) { m_extensionName = extensionName; m_specificationVendor = specificationVendor; if( null != specificationVersion ) { try { m_specificationVersion = new DeweyDecimal( specificationVersion ); } catch( final NumberFormatException nfe ) { final String error = "Bad specification version format '" + specificationVersion + "' in '" + extensionName + "'. (Reason: " + nfe + ")"; throw new IllegalArgumentException( error ); } } m_implementationURL = implementationURL; m_implementationVendor = implementationVendor; m_implementationVendorID = implementationVendorId; if( null != implementationVersion ) { try { m_implementationVersion = new DeweyDecimal( implementationVersion ); } catch( final NumberFormatException nfe ) { final String error = "Bad implementation version format '" + implementationVersion + "' in '" + extensionName + "'. (Reason: " + nfe + ")"; throw new IllegalArgumentException( error ); } } if( null == m_extensionName ) { throw new NullPointerException( "extensionName property is null" ); } } | 17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/dcbaa15ab6c7d08e5bfb0c8a5531095913ab875e/Extension.java/clean/src/main/org/apache/tools/ant/taskdefs/optional/extension/Extension.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10021,
12,
727,
514,
2710,
461,
16,
8227,
727,
514,
7490,
1444,
16,
8227,
727,
514,
7490,
14786,
16,
8227,
727,
514,
4471,
1444,
16,
8227,
727,
514,
4471,
14786,
16,
8227,
727,
51... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10021,
12,
727,
514,
2710,
461,
16,
8227,
727,
514,
7490,
1444,
16,
8227,
727,
514,
7490,
14786,
16,
8227,
727,
514,
4471,
1444,
16,
8227,
727,
514,
4471,
14786,
16,
8227,
727,
51... |
ResultSet rs = conn.ExecSQL(sb.toString()); | ResultSet rs = conn.ExecSQL(null, sb.toString()); | public Object fetch(int oid) throws SQLException { try { Object obj = ourClass.newInstance(); // NB: we use java.lang.reflect here to prevent confusion with // the org.postgresql.Field java.lang.reflect.Field f[] = ourClass.getDeclaredFields(); boolean hasOID=false; int oidFIELD=-1; StringBuffer sb = new StringBuffer("select"); char sep=' '; for(int i=0;i<f.length;i++) { String n = f[i].getName(); if(n.equals("oid")) { hasOID=true; oidFIELD=i; } sb.append(sep); sb.append(n); sep=','; } sb.append(" from "); sb.append(tableName); sb.append(" where oid="); sb.append(oid); DriverManager.println("store: "+sb.toString()); ResultSet rs = conn.ExecSQL(sb.toString()); if(rs!=null) { if(rs.next()) { for(int i=0;i<f.length;i++) { f[i].set(obj,rs.getObject(i+1)); } } rs.close(); } else throw new PSQLException("postgresql.unexpected"); return obj; } catch(IllegalAccessException iae) { throw new SQLException(iae.toString()); } catch(InstantiationException ie) { throw new SQLException(ie.toString()); } } | 46409 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46409/5383b5d8ed6da5c90bcbdb63401b7d1d75db563d/Serialize.java/buggy/src/interfaces/jdbc/org/postgresql/util/Serialize.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
2158,
12,
474,
7764,
13,
1216,
6483,
225,
288,
565,
775,
288,
1377,
1033,
1081,
273,
3134,
797,
18,
2704,
1442,
5621,
5411,
368,
20096,
30,
732,
999,
2252,
18,
4936,
18,
173... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
2158,
12,
474,
7764,
13,
1216,
6483,
225,
288,
565,
775,
288,
1377,
1033,
1081,
273,
3134,
797,
18,
2704,
1442,
5621,
5411,
368,
20096,
30,
732,
999,
2252,
18,
4936,
18,
173... |
Logger.warning(this, "getPath() : destinationDir == null"); | public String getPath() { if(destinationDir != null) return destinationDir + File.separator + filename; Logger.warning(this, "getPath() : destinationDir == null"); return null; } | 47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/074225bedc141cfdf7bd6cadd32a8820b50f16e9/FCPClientGet.java/buggy/src/thaw/fcp/FCPClientGet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
4339,
1435,
288,
202,
202,
430,
12,
10590,
1621,
480,
446,
13,
1082,
202,
2463,
2929,
1621,
397,
1387,
18,
11287,
397,
1544,
31,
9506,
202,
3328,
18,
8551,
12,
2211,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
514,
4339,
1435,
288,
202,
202,
430,
12,
10590,
1621,
480,
446,
13,
1082,
202,
2463,
2929,
1621,
397,
1387,
18,
11287,
397,
1544,
31,
9506,
202,
3328,
18,
8551,
12,
2211,
16,
... | |
public void run() { int lineNr = 0; String line = null; while (!m_stopThread) { try { lineNr = m_lineReader.getLineNumber(); line = m_lineReader.readLine(); } catch (IOException e) { messages.addElement(e.toString()); m_stopThread = true; } if (line != null) { messages.addElement(lineNr + ":\t" + line); } else { try { Thread.sleep(100); } catch (InterruptedException e1) { m_stopThread = true; } } } try { m_pipedIn.close(); } catch (IOException e) { e.printStackTrace(); } } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/55d19245237b3960088284d63408f9ccd59b7f87/CmsSetupLoggingThread.java/buggy/src/org/opencms/setup/CmsSetupLoggingThread.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
2681,
1435,
95,
474,
1369,
18726,
33,
20,
31,
780,
1369,
33,
2011,
31,
17523,
12,
5,
81,
67,
5681,
3830,
15329,
698,
95,
1369,
18726,
33,
81,
67,
1369,
2514,
18,
588,
31063,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
2681,
1435,
95,
474,
1369,
18726,
33,
20,
31,
780,
1369,
33,
2011,
31,
17523,
12,
5,
81,
67,
5681,
3830,
15329,
698,
95,
1369,
18726,
33,
81,
67,
1369,
2514,
18,
588,
31063,
56... | ||
if (temp == null) { break; } if (temp.indexOf("=") != -1) { temp = MessageBodyParser .unMime(temp, false); } else if (temp.indexOf("MIME") != -1 || temp.indexOf( "mime") != -1) { temp = in.readLine(); temp = in.readLine(); if (temp.startsWith("--" + boundary)) { for (;;) { temp = in.readLine(); if(temp == null) break; else if(temp.equals("")) break; } } } else if (temp.startsWith("--" + boundary) && !temp.substring(14, 15). equals("-") && !temp.substring(14,15). equals(" ")) { break; } else if (temp.equals(".")) { break; } } break; } } | public static void getMailForReply(String whichBox, int whichmail, JTextArea jtarea) { String temp = null, boundary = null; boolean wait = true; try { BufferedReader in = new BufferedReader( new InputStreamReader( new FileInputStream(whichBox))); int i = 0; for (;;) { temp = in.readLine(); if (temp == null) { break; } else if (temp.equals(".")) { i++; } else if (temp.startsWith("From: ") && i == whichmail) { wait = false; } else if (temp.equals("") && i == whichmail && !wait) { for (;;) { jtarea.append(">" + temp + "\n"); temp = in.readLine(); if (temp == null) { break; } if (temp.indexOf("=") != -1) { temp = MessageBodyParser .unMime(temp, false); } else if (temp.indexOf("MIME") != -1 || temp.indexOf( "mime") != -1) { temp = in.readLine(); temp = in.readLine(); if (temp.startsWith("--" + boundary)) { for (;;) { temp = in.readLine(); if(temp == null) break; else if(temp.equals("")) break; } } } else if (temp.startsWith("--" + boundary) && !temp.substring(14, 15). equals("-") && !temp.substring(14,15). equals(" ")) { break; } else if (temp.equals(".")) { break; } } break; } } in.close(); } catch (IOException ioe) { System.out.println(ioe); } } | 3248 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3248/c309d11ff2a137ecffec677cdfe68e356932cfa8/Mailbox.java/buggy/mail/Mailbox.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
31991,
1290,
7817,
12,
780,
1492,
3514,
16,
509,
1492,
4408,
16,
6862,
1082,
202,
46,
1528,
5484,
525,
88,
5036,
13,
288,
202,
202,
780,
225,
1906,
273,
446,
16,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
31991,
1290,
7817,
12,
780,
1492,
3514,
16,
509,
1492,
4408,
16,
6862,
1082,
202,
46,
1528,
5484,
525,
88,
5036,
13,
288,
202,
202,
780,
225,
1906,
273,
446,
16,
7... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.