rem
stringlengths 1
53.3k
| add
stringlengths 0
80.5k
| context
stringlengths 6
326k
| meta
stringlengths 141
403
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
} else if (types[arg].isReferenceType() ) {
|
} else if (types[arg].isReferenceType() ) {
|
private static void generateParameterPassingCode(VM_Assembler asm, VM_TypeReference[] types, int nextVMArgReg, int nextVMArgFloatReg, int spillOffsetVM, int nextOSArgReg, int nextOSArgFloatReg, int spillOffsetOS) { // create one VM_Assembler object for each argument // This is needed for the following reason: // -2 new arguments are added in front for native methods, so the normal arguments // need to be shifted down in addition to being moved // -to avoid overwriting each other, the arguments must be copied in reverse order // -the analysis for mapping however must be done in forward order // -the moving/mapping for each argument may involve a sequence of 1-3 instructions // which must be kept in the normal order // To solve this problem, the instructions for each argument is generated in its // own VM_Assembler in the forward pass, then in the reverse pass, each VM_Assembler // emist the instruction sequence and copies it into the main VM_Assembler int numArguments = types.length; VM_Assembler[] asmForArgs = new VM_Assembler[numArguments]; for (int arg = 0; arg < numArguments; arg++) { boolean mustSaveFloatToSpill; asmForArgs[arg] = new VM_Assembler(0); VM_Assembler asmArg = asmForArgs[arg]; // For 32-bit float arguments // if (types[arg].isFloatType()) { // Side effect of float arguments on the GPR's // (1a) reserve one GPR for each float if it is available if (nextOSArgReg<=LAST_OS_PARAMETER_GPR) { nextOSArgReg++; mustSaveFloatToSpill = false; } else { // (1b) if GPR has spilled, store the float argument in the callee spill area // regardless of whether the FPR has spilled or not mustSaveFloatToSpill = true; } spillOffsetOS+=BYTES_IN_STACKSLOT; // Check if the args need to be moved // (2a) leave those in FPR[1:13] as is unless the GPR has spilled if (nextVMArgFloatReg<=LAST_OS_PARAMETER_FPR) { if (mustSaveFloatToSpill) { asmArg.emitSTFS(nextVMArgFloatReg, spillOffsetOS - BYTES_IN_FLOAT, FP); } nextOSArgFloatReg++; nextVMArgFloatReg++; } else if (nextVMArgFloatReg<=LAST_VOLATILE_FPR) { // (2b) run out of FPR in OS, but still have 2 more FPR in VM, // so FPR[14:15] goes to the callee spill area asmArg.emitSTFS(nextVMArgFloatReg, spillOffsetOS - BYTES_IN_FLOAT, FP); nextVMArgFloatReg++; } else { // (2c) run out of FPR in VM, now get the remaining args from the caller spill area // and move them into the callee spill area //Kris Venstermans: Attention, different calling convention !! spillOffsetVM+=BYTES_IN_STACKSLOT; asmArg.emitLFS(FIRST_SCRATCH_FPR, spillOffsetVM - BYTES_IN_FLOAT, FP); asmArg.emitSTFS(FIRST_SCRATCH_FPR, spillOffsetOS - BYTES_IN_FLOAT, FP); } } else if (types[arg].isDoubleType()) { // For 64-bit float arguments if (VM.BuildFor64Addr) { // Side effect of float arguments on the GPR's // (1a) reserve one GPR for double if (nextOSArgReg<=LAST_OS_PARAMETER_GPR) { nextOSArgReg++; mustSaveFloatToSpill = false; } else { // (1b) if GPR has spilled, store the float argument in the callee spill area // regardless of whether the FPR has spilled or not mustSaveFloatToSpill = true; } } else { // Side effect of float arguments on the GPR's // (1a) reserve two GPR's for double if (nextOSArgReg<=LAST_OS_PARAMETER_GPR-1) { nextOSArgReg+=2; mustSaveFloatToSpill = false; } else { // if only one GPR is left, reserve it anyway although it won't be used if (nextOSArgReg<=LAST_OS_PARAMETER_GPR) nextOSArgReg++; mustSaveFloatToSpill = true; } } spillOffsetOS+=BYTES_IN_DOUBLE; //Kris Venstermans: equals 2 slots on 32-bit platforms and 1 slot on 64-bit platform // Check if the args need to be moved // (2a) leave those in FPR[1:13] as is unless the GPR has spilled if (nextVMArgFloatReg<=LAST_OS_PARAMETER_FPR) { if (mustSaveFloatToSpill) { asmArg.emitSTFD(nextVMArgFloatReg, spillOffsetOS - BYTES_IN_DOUBLE, FP); } nextOSArgFloatReg++; nextVMArgFloatReg++; } else if (nextVMArgFloatReg<=LAST_VOLATILE_FPR) { // (2b) run out of FPR in OS, but still have 2 more FPR in VM, // so FPR[14:15] goes to the callee spill area asmArg.emitSTFD(nextVMArgFloatReg, spillOffsetOS - BYTES_IN_DOUBLE, FP); nextVMArgFloatReg++; } else { // (2c) run out of FPR in VM, now get the remaining args from the caller spill area // and move them into the callee spill area spillOffsetVM+=BYTES_IN_DOUBLE; asmArg.emitLFD(FIRST_SCRATCH_FPR, spillOffsetVM - BYTES_IN_DOUBLE, FP); asmArg.emitSTFD(FIRST_SCRATCH_FPR, spillOffsetOS - BYTES_IN_DOUBLE, FP); } } else if (VM.BuildFor32Addr && types[arg].isLongType()) { // For 64-bit int arguments on 32-bit platforms // spillOffsetOS+=BYTES_IN_LONG; // (1a) fit in OS register, move the pair if (nextOSArgReg<=LAST_OS_PARAMETER_GPR-1) { asmArg.emitMR(nextOSArgReg+1, nextVMArgReg+1); // move lo-word first asmArg.emitMR(nextOSArgReg, nextVMArgReg); // so it doesn't overwritten nextOSArgReg+=2; nextVMArgReg+=2; } else if (nextOSArgReg==LAST_OS_PARAMETER_GPR && nextVMArgReg<=LAST_VOLATILE_GPR-1) { // (1b) fit in VM register but straddle across OS register/spill asmArg.emitSTW(nextVMArgReg+1, spillOffsetOS - BYTES_IN_STACKSLOT, FP); // move lo-word first, so it doesn't overwritten asmArg.emitMR(nextOSArgReg, nextVMArgReg); nextOSArgReg+=2; nextVMArgReg+=2; } else if (nextOSArgReg>LAST_OS_PARAMETER_GPR && nextVMArgReg<=LAST_VOLATILE_GPR-1) { // (1c) fit in VM register, spill in OS without straddling register/spill asmArg.emitSTW(nextVMArgReg++, spillOffsetOS - 2*BYTES_IN_STACKSLOT, FP); asmArg.emitSTW(nextVMArgReg++, spillOffsetOS - BYTES_IN_STACKSLOT, FP); } else if (nextVMArgReg==LAST_VOLATILE_GPR) { // (1d) split across VM/spill, spill in OS spillOffsetVM+=BYTES_IN_STACKSLOT; asmArg.emitSTW(nextVMArgReg++, spillOffsetOS - 2*BYTES_IN_STACKSLOT, FP); asmArg.emitLWZ(REGISTER_ZERO, spillOffsetVM - BYTES_IN_STACKSLOT, FP); asmArg.emitSTW(REGISTER_ZERO, spillOffsetOS - BYTES_IN_STACKSLOT, FP); } else { // (1e) spill both in VM and OS spillOffsetVM+=BYTES_IN_LONG; asmArg.emitLFD(FIRST_SCRATCH_FPR, spillOffsetVM - BYTES_IN_LONG, FP); asmArg.emitSTFD(FIRST_SCRATCH_FPR, spillOffsetOS - BYTES_IN_LONG, FP); } } else if (VM.BuildFor64Addr && types[arg].isLongType()) { // For 64-bit int arguments on 64-bit platforms // spillOffsetOS+=BYTES_IN_LONG; // (1a) fit in OS register, move the register if (nextOSArgReg<=LAST_OS_PARAMETER_GPR) { asmArg.emitMR(nextOSArgReg++, nextVMArgReg++); // (1b) spill OS register, but still fit in VM register } else if (nextVMArgReg<=LAST_VOLATILE_GPR) { asmArg.emitSTAddr(nextVMArgReg++, spillOffsetOS - BYTES_IN_LONG, FP); } else { // (1c) spill VM register spillOffsetVM+=BYTES_IN_LONG; asmArg.emitLAddr(REGISTER_ZERO,spillOffsetVM - BYTES_IN_LONG, FP); // retrieve arg from VM spill area asmArg.emitSTAddr(REGISTER_ZERO, spillOffsetOS - BYTES_IN_LONG, FP); } } else if (types[arg].isReferenceType() ) { // For reference type, replace with handlers before passing to OS // spillOffsetOS+=BYTES_IN_ADDRESS; // (1a) fit in OS register, move the register if (nextOSArgReg<=LAST_OS_PARAMETER_GPR) { asmArg.emitSTAddrU(nextVMArgReg++, BYTES_IN_ADDRESS, KLUDGE_TI_REG); // append ref to end of JNIRefs array asmArg.emitSUBFC(nextOSArgReg++, PROCESSOR_REGISTER, KLUDGE_TI_REG); // pass offset in bytes of jref } else if (nextVMArgReg<=LAST_VOLATILE_GPR) { // (1b) spill OS register, but still fit in VM register asmArg.emitSTAddrU(nextVMArgReg++, BYTES_IN_ADDRESS, KLUDGE_TI_REG); // append ref to end of JNIRefs array asmArg.emitSUBFC(REGISTER_ZERO, PROCESSOR_REGISTER, KLUDGE_TI_REG); // compute offset in bytes for jref asmArg.emitSTAddr(REGISTER_ZERO, spillOffsetOS - BYTES_IN_ADDRESS, FP); // spill into OS frame } else { // (1c) spill VM register spillOffsetVM+=BYTES_IN_STACKSLOT; asmArg.emitLAddr(REGISTER_ZERO, spillOffsetVM - BYTES_IN_ADDRESS , FP); // retrieve arg from VM spill area asmArg.emitSTAddrU(REGISTER_ZERO, BYTES_IN_ADDRESS, KLUDGE_TI_REG); // append ref to end of JNIRefs array asmArg.emitSUBFC(REGISTER_ZERO, PROCESSOR_REGISTER, KLUDGE_TI_REG); // compute offset in bytes for jref asmArg.emitSTAddr(REGISTER_ZERO, spillOffsetOS - BYTES_IN_ADDRESS, FP); // spill into OS frame } } else { // For all other types: int, short, char, byte, boolean spillOffsetOS+=BYTES_IN_STACKSLOT; // (1a) fit in OS register, move the register if (nextOSArgReg<=LAST_OS_PARAMETER_GPR) { asmArg.emitMR(nextOSArgReg++, nextVMArgReg++); } // (1b) spill OS register, but still fit in VM register else if (nextVMArgReg<=LAST_VOLATILE_GPR) { asmArg.emitSTAddr(nextVMArgReg++, spillOffsetOS - BYTES_IN_ADDRESS, FP); } else { // (1c) spill VM register spillOffsetVM+=BYTES_IN_STACKSLOT; asmArg.emitLInt(REGISTER_ZERO,spillOffsetVM - BYTES_IN_INT, FP); // retrieve arg from VM spill area asmArg.emitSTAddr(REGISTER_ZERO, spillOffsetOS - BYTES_IN_ADDRESS, FP); } } } // Append the code sequences for parameter mapping // to the current machine code in reverse order // so that the move does not overwrite the parameters for (int arg = numArguments-1; arg >= 0; arg--) { VM_MachineCode codeForArg = asmForArgs[arg].makeMachineCode(); asm.appendInstructions(codeForArg.getInstructions()); } }
|
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/29ef970e0fc03c4597778498229358333fa8d0f4/VM_JNICompiler.java/clean/rvm/src/vm/arch/powerPC/jni/VM_JNICompiler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
918,
2103,
1662,
6433,
310,
1085,
12,
7397,
67,
1463,
5747,
749,
20415,
16,
4766,
10402,
8251,
67,
7534,
8526,
1953,
16,
4766,
10402,
509,
1024,
7397,
4117,
1617,
16,
4766,
10402,
509,
1024,
7397,
4117,
4723,
1617,
16,
4766,
10402,
509,
1694,
737,
2335,
7397,
16,
4766,
10402,
509,
1024,
4618,
4117,
1617,
16,
4766,
10402,
509,
1024,
4618,
4117,
4723,
1617,
16,
4766,
10402,
509,
1694,
737,
2335,
4618,
13,
288,
565,
368,
752,
1245,
8251,
67,
1463,
5747,
749,
733,
364,
1517,
1237,
565,
368,
1220,
353,
3577,
364,
326,
3751,
3971,
30,
565,
368,
282,
300,
22,
394,
1775,
854,
3096,
316,
6641,
364,
6448,
2590,
16,
1427,
326,
2212,
1775,
565,
368,
565,
1608,
358,
506,
21340,
2588,
316,
2719,
358,
3832,
10456,
565,
368,
282,
300,
869,
4543,
23492,
1517,
1308,
16,
326,
1775,
1297,
506,
9268,
316,
4219,
1353,
565,
368,
282,
300,
5787,
6285,
364,
2874,
14025,
1297,
506,
2731,
316,
5104,
1353,
565,
368,
282,
300,
5787,
12499,
19,
6770,
364,
1517,
1237,
2026,
2198,
5390,
279,
3102,
434,
404,
17,
23,
12509,
377,
368,
565,
1492,
1297,
506,
16555,
316,
326,
2212,
1353,
565,
368,
2974,
12439,
333,
6199,
16,
326,
12509,
364,
1517,
1237,
353,
4374,
316,
2097,
565,
368,
4953,
8251,
67,
1463,
5747,
749,
316,
326,
5104,
1342,
16,
1508,
316,
326,
4219,
1342,
16,
1517,
8251,
67,
1463,
5747,
749,
565,
368,
801,
376,
326,
7592,
3102,
471,
13200,
518,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
918,
2103,
1662,
6433,
310,
1085,
12,
7397,
67,
1463,
5747,
749,
20415,
16,
4766,
10402,
8251,
67,
7534,
8526,
1953,
16,
4766,
10402,
509,
1024,
7397,
4117,
1617,
16,
4766,
10402,
509,
1024,
7397,
4117,
4723,
1617,
16,
4766,
10402,
509,
1694,
737,
2335,
7397,
16,
4766,
10402,
509,
1024,
4618,
4117,
1617,
16,
4766,
10402,
509,
1024,
4618,
4117,
4723,
1617,
16,
4766,
10402,
509,
1694,
737,
2335,
4618,
13,
288,
565,
368,
752,
1245,
8251,
67,
1463,
5747,
749,
733,
364,
1517,
1237,
565,
368,
1220,
353,
3577,
364,
326,
3751,
3971,
30,
565,
368,
282,
300,
22,
394,
1775,
854,
3096,
316,
6641,
364,
6448,
2590,
16,
1427,
326,
2212,
1775,
565,
2
] |
ICElement elem= index.findAnyDeclaration(project, name); if (elem == null) { elem= index.findAnyDeclaration(allProjects, name); } if (elem != null) { elems= new ICElement[] {elem};
|
elems= indexq.findAllDefinitions(index, name); if (elems.length == 0) { ICElement elem= indexq.findAnyDeclaration(index, project, name); if (elems != null) { elems= new ICElement[]{elem}; }
|
private static ICElement[] findDefinitions(ICProject project, IEditorInput editorInput, ITextSelection sel) throws CoreException { CIndexQueries index= CIndexQueries.getInstance(); IPDOM pdom= CCorePlugin.getPDOMManager().getPDOM(project); if (pdom != null) { try { pdom.acquireReadLock(); } catch (InterruptedException e) { return null; } } try { IASTName name= getSelectedName(editorInput, sel); if (name != null) { IBinding binding= name.resolveBinding(); if (CIndexQueries.isRelevantForCallHierarchy(binding)) { if (name.isDefinition()) { ICElement elem= index.findDefinition(project, name); if (elem != null) { return new ICElement[]{elem}; } } else { ICElement[] elems= index.findAllDefinitions(project, name); if (elems.length == 0) { ICProject[] allProjects= CoreModel.getDefault().getCModel().getCProjects(); elems= index.findAllDefinitions(allProjects, name); if (elems.length == 0) { ICElement elem= index.findAnyDeclaration(project, name); if (elem == null) { elem= index.findAnyDeclaration(allProjects, name); } if (elem != null) { elems= new ICElement[] {elem}; } } } return elems; } } } } finally { if (pdom != null) { pdom.releaseReadLock(); } } return null; }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/2119729ff7f7097b3c69f1bb844deb116040f3d9/CallHierarchyUI.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/callhierarchy/CallHierarchyUI.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
26899,
1046,
8526,
1104,
7130,
12,
2871,
4109,
1984,
16,
467,
6946,
1210,
4858,
1210,
16,
467,
1528,
6233,
357,
13,
1216,
30015,
288,
202,
202,
39,
1016,
9592,
770,
33,
385,
1016,
9592,
18,
588,
1442,
5621,
202,
202,
2579,
8168,
4863,
362,
33,
385,
4670,
3773,
18,
588,
52,
8168,
1318,
7675,
588,
52,
8168,
12,
4406,
1769,
202,
202,
430,
261,
84,
9859,
480,
446,
13,
288,
1082,
202,
698,
288,
9506,
202,
84,
9859,
18,
1077,
1039,
1994,
2531,
5621,
1082,
202,
97,
1044,
261,
24485,
503,
425,
13,
288,
9506,
202,
2463,
446,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
698,
288,
1082,
202,
45,
9053,
461,
508,
33,
16625,
461,
12,
9177,
1210,
16,
357,
1769,
1082,
202,
430,
261,
529,
480,
446,
13,
288,
9506,
202,
45,
5250,
5085,
33,
508,
18,
10828,
5250,
5621,
9506,
202,
430,
261,
39,
1016,
9592,
18,
291,
17018,
7445,
1290,
1477,
12074,
12,
7374,
3719,
288,
6862,
202,
430,
261,
529,
18,
291,
1852,
10756,
288,
25083,
202,
2871,
1046,
3659,
33,
770,
18,
4720,
1852,
12,
4406,
16,
508,
1769,
25083,
202,
430,
261,
10037,
480,
446,
13,
288,
6862,
1082,
202,
2463,
394,
26899,
1046,
63,
7073,
10037,
20451,
25083,
202,
97,
6862,
202,
97,
6862,
202,
12107,
288,
25083,
202,
2871,
1046,
8526,
14733,
33,
770,
18,
4720,
1595,
7130,
12,
4406,
16,
508,
1769,
25083,
202,
430,
261,
292,
7424,
18,
2469,
422,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
26899,
1046,
8526,
1104,
7130,
12,
2871,
4109,
1984,
16,
467,
6946,
1210,
4858,
1210,
16,
467,
1528,
6233,
357,
13,
1216,
30015,
288,
202,
202,
39,
1016,
9592,
770,
33,
385,
1016,
9592,
18,
588,
1442,
5621,
202,
202,
2579,
8168,
4863,
362,
33,
385,
4670,
3773,
18,
588,
52,
8168,
1318,
7675,
588,
52,
8168,
12,
4406,
1769,
202,
202,
430,
261,
84,
9859,
480,
446,
13,
288,
1082,
202,
698,
288,
9506,
202,
84,
9859,
18,
1077,
1039,
1994,
2531,
5621,
1082,
202,
97,
1044,
261,
24485,
503,
425,
13,
288,
9506,
202,
2463,
446,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
698,
288,
1082,
202,
45,
9053,
461,
508,
2
] |
return this; }
|
return this; }
|
public RubyObject m_protected(RubyObject[] args) { if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException( getRuby(), "Insecure: can't change method visibility"); } if (args.length == 0) { getRuby().setActMethodScope(Constants.SCOPE_PROTECTED); } else { setMethodVisibility(args, Constants.NOEX_PROTECTED); } return this; }
|
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
921,
312,
67,
1117,
12,
54,
10340,
921,
8526,
833,
13,
288,
202,
202,
430,
261,
588,
54,
10340,
7675,
588,
4368,
2355,
1435,
1545,
1059,
597,
401,
291,
29048,
10756,
288,
1082,
202,
12849,
394,
19817,
24918,
12,
9506,
202,
588,
54,
10340,
9334,
9506,
202,
6,
382,
8869,
30,
848,
1404,
2549,
707,
9478,
8863,
202,
202,
97,
202,
202,
430,
261,
1968,
18,
2469,
422,
374,
13,
288,
1082,
202,
588,
54,
10340,
7675,
542,
2459,
1305,
3876,
12,
2918,
18,
19444,
67,
3373,
26729,
1769,
202,
202,
97,
469,
288,
1082,
202,
542,
1305,
10135,
12,
1968,
16,
5245,
18,
3417,
2294,
67,
3373,
26729,
1769,
202,
202,
97,
202,
202,
2463,
333,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
921,
312,
67,
1117,
12,
54,
10340,
921,
8526,
833,
13,
288,
202,
202,
430,
261,
588,
54,
10340,
7675,
588,
4368,
2355,
1435,
1545,
1059,
597,
401,
291,
29048,
10756,
288,
1082,
202,
12849,
394,
19817,
24918,
12,
9506,
202,
588,
54,
10340,
9334,
9506,
202,
6,
382,
8869,
30,
848,
1404,
2549,
707,
9478,
8863,
202,
202,
97,
202,
202,
430,
261,
1968,
18,
2469,
422,
374,
13,
288,
1082,
202,
588,
54,
10340,
7675,
542,
2459,
1305,
3876,
12,
2918,
18,
19444,
67,
3373,
26729,
1769,
202,
202,
97,
469,
288,
1082,
202,
542,
1305,
10135,
12,
1968,
16,
5245,
18,
3417,
2294,
67,
3373,
26729,
1769,
202,
202,
97,
202,
202,
2
] |
if (fEnableJSPActionPartitions && structuredDocument.getParser() instanceof JSPSourceParser) { StructuredDocumentRegionParser parser = (StructuredDocumentRegionParser) structuredDocument.getParser();
|
if (fEnableJSPActionPartitions && fStructuredDocument.getParser() instanceof JSPSourceParser) { StructuredDocumentRegionParser parser = (StructuredDocumentRegionParser) fStructuredDocument.getParser();
|
public void connect(IDocument document) { super.connect(document); fSupportedTypes = null; // be extra paranoid if (fEnableJSPActionPartitions && structuredDocument.getParser() instanceof JSPSourceParser) { StructuredDocumentRegionParser parser = (StructuredDocumentRegionParser) structuredDocument.getParser(); parser.removeStructuredDocumentRegionHandler(fPrefixParseListener); fPrefixParseListener = new PrefixListener(); parser.addStructuredDocumentRegionHandler(fPrefixParseListener); } }
|
13989 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13989/577a8f037b864ef4e35e02724e6eacb82f61b8bf/StructuredTextPartitionerForJSP.java/clean/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/text/StructuredTextPartitionerForJSP.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3077,
12,
734,
504,
650,
1668,
13,
288,
202,
202,
9565,
18,
3612,
12,
5457,
1769,
202,
202,
74,
7223,
2016,
273,
446,
31,
202,
202,
759,
506,
2870,
779,
304,
839,
202,
202,
430,
261,
74,
8317,
46,
3118,
1803,
13738,
597,
19788,
2519,
18,
588,
2678,
1435,
1276,
804,
3118,
1830,
2678,
13,
288,
1082,
202,
30733,
2519,
5165,
2678,
2082,
273,
261,
30733,
2519,
5165,
2678,
13,
19788,
2519,
18,
588,
2678,
5621,
1082,
202,
4288,
18,
4479,
30733,
2519,
5165,
1503,
12,
74,
2244,
3201,
2223,
1769,
1082,
202,
74,
2244,
3201,
2223,
273,
394,
10139,
2223,
5621,
1082,
202,
4288,
18,
1289,
30733,
2519,
5165,
1503,
12,
74,
2244,
3201,
2223,
1769,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3077,
12,
734,
504,
650,
1668,
13,
288,
202,
202,
9565,
18,
3612,
12,
5457,
1769,
202,
202,
74,
7223,
2016,
273,
446,
31,
202,
202,
759,
506,
2870,
779,
304,
839,
202,
202,
430,
261,
74,
8317,
46,
3118,
1803,
13738,
597,
19788,
2519,
18,
588,
2678,
1435,
1276,
804,
3118,
1830,
2678,
13,
288,
1082,
202,
30733,
2519,
5165,
2678,
2082,
273,
261,
30733,
2519,
5165,
2678,
13,
19788,
2519,
18,
588,
2678,
5621,
1082,
202,
4288,
18,
4479,
30733,
2519,
5165,
1503,
12,
74,
2244,
3201,
2223,
1769,
1082,
202,
74,
2244,
3201,
2223,
273,
394,
10139,
2223,
5621,
1082,
202,
4288,
18,
1289,
30733,
2519,
5165,
1503,
12,
74,
2244,
3201,
2
] |
Driver.debug("storesLowerCaseIdentifiers " + true);
|
if (Driver.logDebug) Driver.debug("storesLowerCaseIdentifiers " + true);
|
public boolean storesLowerCaseIdentifiers() throws SQLException { Driver.debug("storesLowerCaseIdentifiers " + true); return true; }
|
49868 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49868/3c0896638bbf35fd0d5888f8c50dae91759a8f12/DatabaseMetaData.java/buggy/org/postgresql/jdbc2/DatabaseMetaData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
9064,
5630,
12745,
1435,
1216,
6483,
202,
95,
202,
202,
4668,
18,
4148,
2932,
19632,
5630,
12745,
315,
397,
638,
1769,
202,
202,
2463,
638,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
9064,
5630,
12745,
1435,
1216,
6483,
202,
95,
202,
202,
4668,
18,
4148,
2932,
19632,
5630,
12745,
315,
397,
638,
1769,
202,
202,
2463,
638,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return RubyBoolean.newBoolean(getRuntime(), isPrimitive());
|
return getRuntime().newBoolean(isPrimitive());
|
public RubyBoolean primitive_p() { return RubyBoolean.newBoolean(getRuntime(), isPrimitive()); }
|
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/870e1da9b41bfdbae259e1fc5f18fc8b76686998/JavaClass.java/clean/src/org/jruby/javasupport/JavaClass.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
5507,
8225,
67,
84,
1435,
288,
3639,
327,
18814,
7675,
2704,
5507,
12,
291,
9840,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
5507,
8225,
67,
84,
1435,
288,
3639,
327,
18814,
7675,
2704,
5507,
12,
291,
9840,
10663,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
addWarning(pg_stream.ReceiveString(4096));
|
addWarning(pg_stream.ReceiveString(receive_sbuf,4096,getEncoding()));
|
public java.sql.ResultSet ExecSQL(String sql) throws SQLException { // added Oct 7 1998 to give us thread safety. synchronized(pg_stream) { Field[] fields = null; Vector tuples = new Vector(); byte[] buf = null; int fqp = 0; boolean hfr = false; String recv_status = null, msg; int update_count = 1; int insert_oid = 0; SQLException final_error = null; // Commented out as the backend can now handle queries // larger than 8K. Peter June 6 2000 //if (sql.length() > 8192) //throw new PSQLException("postgresql.con.toolong",sql); if (getEncoding() == null) buf = sql.getBytes(); else { try { buf = sql.getBytes(getEncoding()); } catch (UnsupportedEncodingException unse) { throw new PSQLException("postgresql.con.encoding", unse); } } try { pg_stream.SendChar('Q'); buf = sql.getBytes(); pg_stream.Send(buf); pg_stream.SendChar(0); pg_stream.flush(); } catch (IOException e) { throw new PSQLException("postgresql.con.ioerror",e); } while (!hfr || fqp > 0) { Object tup=null; // holds rows as they are recieved int c = pg_stream.ReceiveChar(); switch (c) { case 'A': // Asynchronous Notify pid = pg_stream.ReceiveInteger(4); msg = pg_stream.ReceiveString(8192); break; case 'B': // Binary Data Transfer if (fields == null) throw new PSQLException("postgresql.con.tuple"); tup = pg_stream.ReceiveTuple(fields.length, true); // This implements Statement.setMaxRows() if(maxrows==0 || tuples.size()<maxrows) tuples.addElement(tup); break; case 'C': // Command Status recv_status = pg_stream.ReceiveString(8192); // Now handle the update count correctly. if(recv_status.startsWith("INSERT") || recv_status.startsWith("UPDATE") || recv_status.startsWith("DELETE")) { try { update_count = Integer.parseInt(recv_status.substring(1+recv_status.lastIndexOf(' '))); } catch(NumberFormatException nfe) { throw new PSQLException("postgresql.con.fathom",recv_status); } if(recv_status.startsWith("INSERT")) { try { insert_oid = Integer.parseInt(recv_status.substring(1+recv_status.indexOf(' '),recv_status.lastIndexOf(' '))); } catch(NumberFormatException nfe) { throw new PSQLException("postgresql.con.fathom",recv_status); } } } if (fields != null) hfr = true; else { try { pg_stream.SendChar('Q'); pg_stream.SendChar(' '); pg_stream.SendChar(0); pg_stream.flush(); } catch (IOException e) { throw new PSQLException("postgresql.con.ioerror",e); } fqp++; } break; case 'D': // Text Data Transfer if (fields == null) throw new PSQLException("postgresql.con.tuple"); tup = pg_stream.ReceiveTuple(fields.length, false); // This implements Statement.setMaxRows() if(maxrows==0 || tuples.size()<maxrows) tuples.addElement(tup); break; case 'E': // Error Message msg = pg_stream.ReceiveString(4096); final_error = new SQLException(msg); hfr = true; break; case 'I': // Empty Query int t = pg_stream.ReceiveChar(); if (t != 0) throw new PSQLException("postgresql.con.garbled"); if (fqp > 0) fqp--; if (fqp == 0) hfr = true; break; case 'N': // Error Notification addWarning(pg_stream.ReceiveString(4096)); break; case 'P': // Portal Name String pname = pg_stream.ReceiveString(8192); break; case 'T': // MetaData Field Description if (fields != null) throw new PSQLException("postgresql.con.multres"); fields = ReceiveFields(); break; case 'Z': // backend ready for query, ignore for now :-) break; default: throw new PSQLException("postgresql.con.type",new Character((char)c)); } } if (final_error != null) throw final_error; return getResultSet(this, fields, tuples, recv_status, update_count, insert_oid); } }
|
49868 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49868/d9669a8a4fd37dfd881b5d7247f5080984af6ac5/Connection.java/clean/org/postgresql/Connection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2252,
18,
4669,
18,
13198,
3889,
3997,
12,
780,
1847,
13,
1216,
6483,
565,
288,
202,
759,
3096,
29482,
2371,
23673,
28,
358,
8492,
584,
2650,
24179,
18,
202,
22043,
12,
8365,
67,
3256,
13,
288,
202,
377,
202,
565,
2286,
8526,
1466,
273,
446,
31,
202,
565,
5589,
10384,
273,
394,
5589,
5621,
202,
565,
1160,
8526,
1681,
273,
446,
31,
202,
565,
509,
8508,
84,
273,
374,
31,
202,
565,
1250,
366,
4840,
273,
629,
31,
202,
565,
514,
10665,
67,
2327,
273,
446,
16,
1234,
31,
202,
565,
509,
1089,
67,
1883,
273,
404,
31,
202,
565,
509,
2243,
67,
839,
273,
374,
31,
202,
565,
6483,
727,
67,
1636,
273,
446,
31,
202,
377,
202,
565,
368,
9821,
329,
596,
487,
326,
4221,
848,
2037,
1640,
6218,
202,
565,
368,
10974,
2353,
1725,
47,
18,
453,
847,
804,
7556,
1666,
16291,
202,
565,
368,
430,
261,
4669,
18,
2469,
1435,
405,
26730,
13,
202,
565,
368,
12849,
394,
453,
23116,
2932,
2767,
24330,
18,
591,
18,
6738,
932,
3113,
4669,
1769,
3639,
309,
261,
588,
4705,
1435,
422,
446,
13,
5411,
1681,
273,
1847,
18,
588,
2160,
5621,
3639,
469,
288,
5411,
775,
288,
7734,
1681,
273,
1847,
18,
588,
2160,
12,
588,
4705,
10663,
5411,
289,
1044,
261,
8544,
13836,
640,
307,
13,
288,
1171,
604,
394,
453,
23116,
2932,
2767,
24330,
18,
591,
18,
5999,
3113,
4766,
3639,
640,
307,
1769,
5411,
289,
3639,
289,
202,
565,
775,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2252,
18,
4669,
18,
13198,
3889,
3997,
12,
780,
1847,
13,
1216,
6483,
565,
288,
202,
759,
3096,
29482,
2371,
23673,
28,
358,
8492,
584,
2650,
24179,
18,
202,
22043,
12,
8365,
67,
3256,
13,
288,
202,
377,
202,
565,
2286,
8526,
1466,
273,
446,
31,
202,
565,
5589,
10384,
273,
394,
5589,
5621,
202,
565,
1160,
8526,
1681,
273,
446,
31,
202,
565,
509,
8508,
84,
273,
374,
31,
202,
565,
1250,
366,
4840,
273,
629,
31,
202,
565,
514,
10665,
67,
2327,
273,
446,
16,
1234,
31,
202,
565,
509,
1089,
67,
1883,
273,
404,
31,
202,
565,
509,
2243,
67,
839,
273,
374,
31,
202,
565,
6483,
727,
67,
1636,
273,
446,
31,
202,
2
] |
return;
|
return;
|
protected void sendNotifcations( ) { return; }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/41b899c36b1386d90a6f328413dee35f0ae93e5e/ExtensionActivityRecord.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/activity/ExtensionActivityRecord.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1366,
1248,
430,
71,
1012,
12,
262,
202,
95,
202,
202,
2463,
31,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1366,
1248,
430,
71,
1012,
12,
262,
202,
95,
202,
202,
2463,
31,
1082,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
currentChart.getTitle( ).getLabel( ).getCaption( ).setValue( CHART_TITLE );
|
currentChart.getTitle( ) .getLabel( ) .getCaption( ) .setValue( CHART_TITLE );
|
private Chart getConvertedChart( Chart currentChart, String sNewSubType, String sNewDimension ) { Chart helperModel = (Chart) EcoreUtil.copy( currentChart ); if ( ( currentChart instanceof ChartWithAxes ) ) { // Create a new instance of the correct type and set initial // properties currentChart = ChartWithoutAxesImpl.create( ); currentChart.setType( TYPE_LITERAL ); currentChart.setSubType( sNewSubType ); currentChart.setDimension( getDimensionFor( sNewDimension ) ); // Copy generic chart properties from the old chart currentChart.setBlock( helperModel.getBlock( ) ); currentChart.setDescription( helperModel.getDescription( ) ); currentChart.setGridColumnCount( helperModel.getGridColumnCount( ) ); if ( !currentChart.getType( ).equals( LineChart.TYPE_LITERAL ) && !currentChart.getType( ).equals( BarChart.TYPE_LITERAL ) && !currentChart.getType( ).equals( AreaChart.TYPE_LITERAL ) ) { currentChart.setSampleData( getConvertedSampleData( helperModel.getSampleData( ) ) ); } currentChart.setScript( helperModel.getScript( ) ); if ( helperModel.isSetSeriesThickness( ) ) { currentChart.setSeriesThickness( helperModel.getSeriesThickness( ) ); } else { currentChart.setSeriesThickness( 15 ); } currentChart.setUnits( helperModel.getUnits( ) ); if ( helperModel.getGridColumnCount( ) > 0 ) { currentChart.setGridColumnCount( helperModel.getGridColumnCount( ) ); } else { currentChart.setGridColumnCount( 1 ); } // Copy series definitions from old chart ( (ChartWithoutAxes) currentChart ).getSeriesDefinitions( ) .add( ( (Axis) ( (ChartWithAxes) helperModel ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ); Vector vOSD = new Vector( ); EList axesOrthogonal = ( (Axis) ( (ChartWithAxes) helperModel ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ); for ( int i = 0; i < axesOrthogonal.size( ); i++ ) { EList osd = ( (Axis) axesOrthogonal.get( i ) ).getSeriesDefinitions( ); for ( int j = 0; j < osd.size( ); j++ ) { SeriesDefinition sd = (SeriesDefinition) osd.get( j ); Series series = sd.getDesignTimeSeries( ); sd.getSeries( ).clear( ); sd.getSeries( ).add( getConvertedSeries( series ) ); vOSD.add( sd ); } } ( (SeriesDefinition) ( (ChartWithoutAxes) currentChart ).getSeriesDefinitions( ) .get( 0 ) ).getSeriesDefinitions( ).clear( ); ( (SeriesDefinition) ( (ChartWithoutAxes) currentChart ).getSeriesDefinitions( ) .get( 0 ) ).getSeriesDefinitions( ).addAll( vOSD ); // Set the legend item type t Categories to have the chart behave as // expected by default. currentChart.getLegend( ) .setItemType( LegendItemType.CATEGORIES_LITERAL ); currentChart.getTitle( ).getLabel( ).getCaption( ).setValue( CHART_TITLE ); } else if ( currentChart instanceof ChartWithoutAxes ) { if ( currentChart.getType( ).equals( TYPE_LITERAL ) ) { currentChart.setSubType( sNewSubType ); if ( !currentChart.getDimension( ) .equals( getDimensionFor( sNewDimension ) ) ) { currentChart.setDimension( getDimensionFor( sNewDimension ) ); } if ( !currentChart.isSetSeriesThickness( ) ) { currentChart.setSeriesThickness( 15 ); } } else { // Create a new instance of the correct type and set initial // properties currentChart = ChartWithoutAxesImpl.create( ); currentChart.setType( TYPE_LITERAL ); currentChart.setSubType( sNewSubType ); currentChart.setDimension( getDimensionFor( sNewDimension ) ); // Copy generic chart properties from the old chart currentChart.setBlock( helperModel.getBlock( ) ); currentChart.setDescription( helperModel.getDescription( ) ); currentChart.setGridColumnCount( helperModel.getGridColumnCount( ) ); currentChart.setSampleData( helperModel.getSampleData( ) ); currentChart.setScript( helperModel.getScript( ) ); currentChart.setSeriesThickness( helperModel.getSeriesThickness( ) ); currentChart.setUnits( helperModel.getUnits( ) ); // Clear existing series definitions ( (ChartWithoutAxes) currentChart ).getSeriesDefinitions( ) .clear( ); // Copy series definitions ( (ChartWithoutAxes) currentChart ).getSeriesDefinitions( ) .addAll( ( (ChartWithoutAxes) helperModel ).getSeriesDefinitions( ) ); // Update the series EList seriesdefinitions = ( (SeriesDefinition) ( (ChartWithoutAxes) currentChart ).getSeriesDefinitions( ) .get( 0 ) ).getSeriesDefinitions( ); Series series; for ( int j = 0; j < seriesdefinitions.size( ); j++ ) { series = ( (SeriesDefinition) seriesdefinitions.get( j ) ).getDesignTimeSeries( ); series = getConvertedSeries( series ); // Clear any existing series ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .clear( ); // Add the new series ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .add( series ); } currentChart.getLegend( ) .setItemType( LegendItemType.CATEGORIES_LITERAL ); currentChart.getTitle( ).getLabel( ).getCaption( ).setValue( CHART_TITLE ); } } else { return null; } return currentChart; }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/afaae2e20ac670dea4214a8e9c6bcef7f6f44e06/PieChart.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/PieChart.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
14804,
336,
22063,
7984,
12,
14804,
783,
7984,
16,
514,
272,
1908,
30511,
16,
1082,
202,
780,
272,
1908,
8611,
262,
202,
95,
202,
202,
7984,
4222,
1488,
273,
261,
7984,
13,
512,
3644,
1304,
18,
3530,
12,
783,
7984,
11272,
202,
202,
430,
261,
261,
783,
7984,
1276,
14804,
1190,
26494,
262,
262,
202,
202,
95,
1082,
202,
759,
1788,
279,
394,
791,
434,
326,
3434,
618,
471,
444,
2172,
1082,
202,
759,
1790,
1082,
202,
2972,
7984,
273,
14804,
8073,
26494,
2828,
18,
2640,
12,
11272,
1082,
202,
2972,
7984,
18,
542,
559,
12,
3463,
67,
23225,
11272,
1082,
202,
2972,
7984,
18,
542,
30511,
12,
272,
1908,
30511,
11272,
1082,
202,
2972,
7984,
18,
542,
8611,
12,
20283,
1290,
12,
272,
1908,
8611,
262,
11272,
1082,
202,
759,
5631,
5210,
4980,
1790,
628,
326,
1592,
4980,
1082,
202,
2972,
7984,
18,
542,
1768,
12,
4222,
1488,
18,
588,
1768,
12,
262,
11272,
1082,
202,
2972,
7984,
18,
542,
3291,
12,
4222,
1488,
18,
588,
3291,
12,
262,
11272,
1082,
202,
2972,
7984,
18,
542,
6313,
1494,
1380,
12,
4222,
1488,
18,
588,
6313,
1494,
1380,
12,
262,
11272,
1082,
202,
430,
261,
401,
2972,
7984,
18,
588,
559,
12,
262,
18,
14963,
12,
5377,
7984,
18,
2399,
67,
23225,
262,
6862,
202,
10,
10,
401,
2972,
7984,
18,
588,
559,
12,
262,
18,
14963,
12,
16654,
7984,
18,
2399,
67,
23225,
262,
6862,
202,
10,
10,
401,
2972,
7984,
18,
588,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
14804,
336,
22063,
7984,
12,
14804,
783,
7984,
16,
514,
272,
1908,
30511,
16,
1082,
202,
780,
272,
1908,
8611,
262,
202,
95,
202,
202,
7984,
4222,
1488,
273,
261,
7984,
13,
512,
3644,
1304,
18,
3530,
12,
783,
7984,
11272,
202,
202,
430,
261,
261,
783,
7984,
1276,
14804,
1190,
26494,
262,
262,
202,
202,
95,
1082,
202,
759,
1788,
279,
394,
791,
434,
326,
3434,
618,
471,
444,
2172,
1082,
202,
759,
1790,
1082,
202,
2972,
7984,
273,
14804,
8073,
26494,
2828,
18,
2640,
12,
11272,
1082,
202,
2972,
7984,
18,
542,
559,
12,
3463,
67,
23225,
11272,
1082,
202,
2972,
7984,
18,
542,
30511,
12,
272,
1908,
30511,
11272,
1082,
202,
2972,
7984,
2
] |
if (args[i].callMethod("===", currentException).isTrue()) return true;
|
if (args[i].callMethod("===", currentException).isTrue()) return true;
|
private boolean isRescueHandled(RubyException currentException, ListNode exceptionNodes) { if (exceptionNodes == null) { return currentException.isKindOf(runtime.getClass("StandardError")); } ThreadContext tc = getThreadContext(); tc.beginCallArgs(); IRubyObject[] args = null; try { args = setupArgs(runtime, tc, exceptionNodes); } finally { tc.endCallArgs(); } for (int i = 0; i < args.length; i++) { if (! args[i].isKindOf(runtime.getClass("Module"))) { throw runtime.newTypeError("class or module required for rescue clause"); } if (args[i].callMethod("===", currentException).isTrue()) return true; } return false; }
|
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/6e15491217631472c05c6928672f9c7064a978b3/EvaluationState.java/buggy/src/org/jruby/evaluator/EvaluationState.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
353,
607,
8007,
23186,
12,
54,
10340,
503,
783,
503,
16,
987,
907,
1520,
3205,
13,
288,
3639,
309,
261,
4064,
3205,
422,
446,
13,
288,
5411,
327,
783,
503,
18,
291,
5677,
951,
12,
9448,
18,
588,
797,
2932,
8336,
668,
7923,
1769,
3639,
289,
7734,
4884,
1042,
1715,
273,
24459,
1042,
5621,
3639,
1715,
18,
10086,
1477,
2615,
5621,
3639,
15908,
10340,
921,
8526,
833,
273,
446,
31,
3639,
775,
288,
5411,
833,
273,
3875,
2615,
12,
9448,
16,
1715,
16,
1520,
3205,
1769,
3639,
289,
3095,
288,
5411,
1715,
18,
409,
1477,
2615,
5621,
3639,
289,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
833,
18,
2469,
31,
277,
27245,
288,
5411,
309,
16051,
833,
63,
77,
8009,
291,
5677,
951,
12,
9448,
18,
588,
797,
2932,
3120,
6,
20349,
288,
7734,
604,
3099,
18,
2704,
19030,
2932,
1106,
578,
1605,
1931,
364,
8223,
6591,
8863,
5411,
289,
5411,
309,
261,
1968,
63,
77,
8009,
1991,
1305,
2932,
631,
1546,
16,
783,
503,
2934,
291,
5510,
10756,
7734,
327,
638,
31,
3639,
289,
3639,
327,
629,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
353,
607,
8007,
23186,
12,
54,
10340,
503,
783,
503,
16,
987,
907,
1520,
3205,
13,
288,
3639,
309,
261,
4064,
3205,
422,
446,
13,
288,
5411,
327,
783,
503,
18,
291,
5677,
951,
12,
9448,
18,
588,
797,
2932,
8336,
668,
7923,
1769,
3639,
289,
7734,
4884,
1042,
1715,
273,
24459,
1042,
5621,
3639,
1715,
18,
10086,
1477,
2615,
5621,
3639,
15908,
10340,
921,
8526,
833,
273,
446,
31,
3639,
775,
288,
5411,
833,
273,
3875,
2615,
12,
9448,
16,
1715,
16,
1520,
3205,
1769,
3639,
289,
3095,
288,
5411,
1715,
18,
409,
1477,
2615,
5621,
3639,
289,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
833,
18,
2469,
31,
277,
27245,
288,
2
] |
return new String[]{EditModelOperationDataModel.PROJECT_NAME, J2EEArtifactCreationDataModelOld.PROJECT_LOCATION, EnterpriseApplicationCreationDataModelOld.APPLICATION_VERSION, J2EEArtifactCreationDataModelOld.SERVER_TARGET_ID};
|
return new String[]{EditModelOperationDataModel.PROJECT_NAME, J2EEArtifactCreationDataModelOld.PROJECT_LOCATION, EnterpriseApplicationCreationDataModel.APPLICATION_VERSION, J2EEArtifactCreationDataModelOld.SERVER_TARGET_ID};
|
protected String[] getValidationPropertyNames() { return new String[]{EditModelOperationDataModel.PROJECT_NAME, J2EEArtifactCreationDataModelOld.PROJECT_LOCATION, EnterpriseApplicationCreationDataModelOld.APPLICATION_VERSION, J2EEArtifactCreationDataModelOld.SERVER_TARGET_ID}; }
|
8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/7d0c5c6641ee8ee148829ae63068100ceb5221cd/ApplicationProjectCreationPage.java/buggy/plugins/org.eclipse.jst.j2ee.ui/j2ee_ui/org/eclipse/jst/j2ee/internal/wizard/ApplicationProjectCreationPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
514,
8526,
23315,
29932,
1435,
288,
202,
202,
2463,
394,
514,
63,
7073,
4666,
1488,
2988,
26349,
18,
17147,
67,
1985,
16,
804,
22,
9383,
7581,
9906,
26349,
7617,
18,
17147,
67,
15277,
16,
26919,
3208,
9906,
26349,
7617,
18,
25039,
67,
5757,
16,
804,
22,
9383,
7581,
9906,
26349,
7617,
18,
4370,
67,
16374,
67,
734,
20451,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
514,
8526,
23315,
29932,
1435,
288,
202,
202,
2463,
394,
514,
63,
7073,
4666,
1488,
2988,
26349,
18,
17147,
67,
1985,
16,
804,
22,
9383,
7581,
9906,
26349,
7617,
18,
17147,
67,
15277,
16,
26919,
3208,
9906,
26349,
7617,
18,
25039,
67,
5757,
16,
804,
22,
9383,
7581,
9906,
26349,
7617,
18,
4370,
67,
16374,
67,
734,
20451,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(15, 20);
|
if ((0xd00000000000L & l) != 0L) jjCheckNAdd(21);
|
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 73; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 0: if ((0x3ff000000000000L & l) != 0L) { if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); } if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(18, 23); break; case 1: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(18, 23); break; case 2: case 39: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(2, 3); break; case 3: if ((0xd00000000000L & l) != 0L) jjCheckNAdd(4); break; case 4: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAdd(4); break; case 5: case 48: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(5, 6); break; case 6: if ((0xd00000000000L & l) != 0L) jjCheckNAdd(7); break; case 7: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(7, 8); break; case 8: if ((0xd00000000000L & l) != 0L) jjCheckNAddTwoStates(9, 10); break; case 9: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(9, 10); break; case 10: case 11: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(6, 11); break; case 12: case 61: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(12, 13); break; case 13: if ((0xd00000000000L & l) != 0L) jjCheckNAdd(14); break; case 14: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(14, 15); break; case 15: if ((0xd00000000000L & l) != 0L) jjCheckNAddTwoStates(16, 17); break; case 16: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(16, 17); break; case 17: case 18: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(18, 19); break; case 19: if ((0xd00000000000L & l) != 0L) jjCheckNAdd(20); break; case 20: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(15, 20); break; case 21: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); break; case 22: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 1) kind = 1; jjCheckNAdd(22); break; case 23: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(24, 26); break; case 24: if ((0x600000000000L & l) != 0L) jjCheckNAdd(25); break; case 25: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(27, 29); break; case 27: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(27, 28); break; case 28: if ((0x600000000000L & l) != 0L) jjCheckNAdd(29); break; case 29: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 5) kind = 5; jjCheckNAddTwoStates(28, 29); break; case 30: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(30, 31); break; case 31: if (curChar == 46) jjCheckNAdd(32); break; case 32: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 6) kind = 6; jjCheckNAddTwoStates(31, 32); break; case 33: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(33, 34); break; case 34: if ((0xd00000000000L & l) != 0L) jjCheckNAddTwoStates(35, 36); break; case 35: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(35, 36); break; case 36: case 37: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAdd(37); break; case 38: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(38, 39); break; case 40: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(40, 41); break; case 41: if ((0xd00000000000L & l) != 0L) jjCheckNAddTwoStates(42, 43); break; case 42: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(42, 43); break; case 43: case 44: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(44, 45); break; case 45: if ((0xd00000000000L & l) != 0L) jjCheckNAdd(46); break; case 46: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(41, 46); break; case 47: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(47, 48); break; case 49: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(49, 50); break; case 50: if ((0xd00000000000L & l) != 0L) jjCheckNAddTwoStates(51, 52); break; case 51: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(51, 52); break; case 52: case 53: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(53, 54); break; case 54: if ((0xd00000000000L & l) != 0L) jjCheckNAdd(55); break; case 55: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(55, 56); break; case 56: if ((0xd00000000000L & l) != 0L) jjCheckNAddTwoStates(57, 58); break; case 57: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(57, 58); break; case 58: case 59: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(54, 59); break; case 60: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(60, 61); break; case 64: if (curChar == 39) jjstateSet[jjnewStateCnt++] = 65; break; case 67: if (curChar == 46) jjCheckNAdd(68); break; case 69: if (curChar != 46) break; if (kind > 3) kind = 3; jjCheckNAdd(68); break; case 71: if (curChar == 38) jjstateSet[jjnewStateCnt++] = 72; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 0: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddStates(30, 35); if ((0x7fffffe07fffffeL & l) != 0L) { if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); } break; case 2: if ((0x7fffffe07fffffeL & l) != 0L) jjAddStates(36, 37); break; case 3: if (curChar == 95) jjCheckNAdd(4); break; case 4: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAdd(4); break; case 5: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(5, 6); break; case 6: if (curChar == 95) jjCheckNAdd(7); break; case 7: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(7, 8); break; case 8: if (curChar == 95) jjCheckNAddTwoStates(9, 10); break; case 9: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(9, 10); break; case 11: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(6, 11); break; case 12: if ((0x7fffffe07fffffeL & l) != 0L) jjAddStates(38, 39); break; case 13: if (curChar == 95) jjCheckNAdd(14); break; case 14: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(14, 15); break; case 15: if (curChar == 95) jjCheckNAddTwoStates(16, 17); break; case 16: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(16, 17); break; case 18: if ((0x7fffffe07fffffeL & l) != 0L) jjAddStates(40, 41); break; case 19: if (curChar == 95) jjCheckNAdd(20); break; case 20: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(15, 20); break; case 21: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); break; case 22: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 1) kind = 1; jjCheckNAdd(22); break; case 23: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddStates(24, 26); break; case 24: if (curChar == 95) jjCheckNAdd(25); break; case 25: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddStates(27, 29); break; case 26: if (curChar == 64) jjCheckNAdd(27); break; case 27: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(27, 28); break; case 29: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 5) kind = 5; jjCheckNAddTwoStates(28, 29); break; case 30: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(30, 31); break; case 32: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 6) kind = 6; jjCheckNAddTwoStates(31, 32); break; case 33: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(33, 34); break; case 34: if (curChar == 95) jjCheckNAddTwoStates(35, 36); break; case 35: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(35, 36); break; case 37: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjstateSet[jjnewStateCnt++] = 37; break; case 38: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(38, 39); break; case 40: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(40, 41); break; case 41: if (curChar == 95) jjCheckNAddTwoStates(42, 43); break; case 42: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(42, 43); break; case 44: if ((0x7fffffe07fffffeL & l) != 0L) jjAddStates(42, 43); break; case 45: if (curChar == 95) jjCheckNAdd(46); break; case 46: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(41, 46); break; case 47: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(47, 48); break; case 49: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(49, 50); break; case 50: if (curChar == 95) jjCheckNAddTwoStates(51, 52); break; case 51: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(51, 52); break; case 53: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(53, 54); break; case 54: if (curChar == 95) jjCheckNAdd(55); break; case 55: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(55, 56); break; case 56: if (curChar == 95) jjCheckNAddTwoStates(57, 58); break; case 57: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(57, 58); break; case 59: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(54, 59); break; case 60: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(60, 61); break; case 62: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddStates(30, 35); break; case 63: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(63, 64); break; case 65: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 2) kind = 2; jjCheckNAddTwoStates(64, 65); break; case 66: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(66, 67); break; case 68: if ((0x7fffffe07fffffeL & l) != 0L) jjAddStates(44, 45); break; case 70: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(70, 71); break; case 71: if (curChar == 64) jjCheckNAdd(72); break; case 72: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 4) kind = 4; jjCheckNAdd(72); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 0: if (jjCanMove_0(hiByte, i1, i2, l1, l2)) { if (kind > 12) kind = 12; } if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(18, 23); if (jjCanMove_2(hiByte, i1, i2, l1, l2)) { if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); } if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(30, 35); break; case 1: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(18, 23); break; case 2: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(2, 3); break; case 4: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjstateSet[jjnewStateCnt++] = 4; break; case 5: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(5, 6); break; case 7: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(46, 47); break; case 9: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(48, 49); break; case 10: if (!jjCanMove_1(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(6, 11); break; case 11: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(6, 11); break; case 12: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(12, 13); break; case 14: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(14, 15); break; case 16: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(50, 51); break; case 17: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(18, 19); break; case 18: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(18, 19); break; case 20: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(15, 20); break; case 21: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); break; case 22: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 1) kind = 1; jjCheckNAdd(22); break; case 23: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(24, 26); break; case 25: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(27, 29); break; case 27: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(27, 28); break; case 29: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 5) kind = 5; jjCheckNAddTwoStates(28, 29); break; case 30: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(30, 31); break; case 32: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 6) kind = 6; jjCheckNAddTwoStates(31, 32); break; case 33: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(33, 34); break; case 35: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(52, 53); break; case 36: if (!jjCanMove_1(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAdd(37); break; case 37: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAdd(37); break; case 38: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(38, 39); break; case 39: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(2, 3); break; case 40: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(40, 41); break; case 42: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(54, 55); break; case 43: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(44, 45); break; case 44: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(44, 45); break; case 46: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(41, 46); break; case 47: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(47, 48); break; case 48: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(5, 6); break; case 49: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(49, 50); break; case 51: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(56, 57); break; case 52: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(53, 54); break; case 53: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(53, 54); break; case 55: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(58, 59); break; case 57: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(60, 61); break; case 58: if (!jjCanMove_1(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(54, 59); break; case 59: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(54, 59); break; case 60: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(60, 61); break; case 61: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(12, 13); break; case 62: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(30, 35); break; case 63: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(63, 64); break; case 65: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 2) kind = 2; jjCheckNAddTwoStates(64, 65); break; case 66: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(66, 67); break; case 68: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(44, 45); break; case 70: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(70, 71); break; case 72: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 4) kind = 4; jjstateSet[jjnewStateCnt++] = 72; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 73 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
|
45239 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45239/d5ac1c5e5f342e6793f0c7ec482346fc5683abf9/XTFTokenizerTokenManager.java/clean/WEB-INF/src/org/cdlib/xtf/textIndexer/tokenizer/XTFTokenizerTokenManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
50,
507,
67,
20,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,
273,
26103,
31,
282,
509,
277,
273,
404,
31,
282,
10684,
2019,
694,
63,
20,
65,
273,
787,
1119,
31,
282,
509,
525,
16,
3846,
273,
374,
92,
27,
18217,
74,
31,
282,
364,
261,
25708,
13,
282,
288,
1377,
309,
261,
9904,
78,
78,
2260,
422,
374,
92,
27,
18217,
74,
13,
540,
868,
2570,
54,
9284,
5621,
1377,
309,
261,
1397,
2156,
411,
5178,
13,
1377,
288,
540,
1525,
328,
273,
404,
48,
2296,
662,
2156,
31,
540,
4639,
6452,
30,
741,
540,
288,
5411,
1620,
12,
78,
78,
2019,
694,
63,
413,
77,
5717,
5411,
288,
9079,
648,
374,
30,
5375,
309,
14015,
20,
92,
23,
1403,
12648,
2787,
48,
473,
328,
13,
480,
374,
48,
13,
5375,
288,
5397,
309,
261,
9224,
405,
404,
13,
13491,
3846,
273,
404,
31,
5397,
10684,
1564,
50,
986,
7629,
12,
20,
16,
8043,
1769,
5375,
289,
5375,
309,
14015,
20,
92,
23,
1403,
12648,
2787,
48,
473,
328,
13,
480,
374,
48,
13,
5397,
10684,
1564,
50,
986,
7629,
12,
2643,
16,
10213,
1769,
5375,
898,
31,
9079,
648,
404,
30,
5375,
309,
14015,
20,
92,
23,
1403,
12648,
2787,
48,
473,
328,
13,
480,
374,
48,
13,
5397,
10684,
1564,
50,
986,
7629,
12,
2643,
16,
10213,
1769,
5375,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
50,
507,
67,
20,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,
273,
26103,
31,
282,
509,
277,
273,
404,
31,
282,
10684,
2019,
694,
63,
20,
65,
273,
787,
1119,
31,
282,
509,
525,
16,
3846,
273,
374,
92,
27,
18217,
74,
31,
282,
364,
261,
25708,
13,
282,
288,
1377,
309,
261,
9904,
78,
78,
2260,
422,
374,
92,
27,
18217,
74,
13,
540,
868,
2570,
54,
9284,
5621,
1377,
309,
261,
1397,
2156,
411,
5178,
13,
1377,
288,
540,
1525,
328,
273,
404,
48,
2296,
662,
2156,
31,
540,
4639,
6452,
30,
2
] |
varTable, needsActivation, securityDomain);
|
varTable, needsActivation, securityDomain);
|
generateFunctionICode(Context cx, Scriptable scope, FunctionNode theFunction, Object securityDomain) { itsFunctionList = (Vector) theFunction.getProp(Node.FUNCTION_PROP); if (itsFunctionList != null) generateNestedFunctions(scope, cx, securityDomain); Object[] regExpLiterals = null; Vector regexps = (Vector)theFunction.getProp(Node.REGEXP_PROP); if (regexps != null) regExpLiterals = generateRegExpLiterals(cx, scope, regexps); VariableTable varTable = theFunction.getVariableTable(); boolean needsActivation = theFunction.requiresActivation() || cx.isGeneratingDebug(); generateICodeFromTree(theFunction.getLastChild(), varTable, needsActivation, securityDomain); itsData.itsName = theFunction.getFunctionName(); itsData.itsSourceFile = (String) theFunction.getProp( Node.SOURCENAME_PROP); itsData.itsSource = (String)theFunction.getProp(Node.SOURCE_PROP); itsData.itsNestedFunctions = itsNestedFunctions; itsData.itsRegExpLiterals = regExpLiterals; if (printICode) dumpICode(itsData); InterpretedFunction result = new InterpretedFunction(itsData, cx); if (cx.debugger != null) { cx.debugger.handleCompilationDone(cx, result, debugSource); } return result; }
|
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/0470e048abb345f567d5fda1e9564715a9f4d5d7/Interpreter.java/buggy/js/rhino/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2103,
2083,
45,
1085,
12,
1042,
9494,
16,
22780,
2146,
16,
21821,
4284,
907,
326,
2083,
16,
1033,
4373,
3748,
13,
565,
288,
3639,
2097,
2083,
682,
273,
261,
5018,
13,
326,
2083,
18,
588,
4658,
12,
907,
18,
7788,
67,
15811,
1769,
3639,
309,
261,
1282,
2083,
682,
480,
446,
13,
2398,
2103,
8649,
7503,
12,
4887,
16,
9494,
16,
4373,
3748,
1769,
3639,
1033,
8526,
31223,
48,
11235,
273,
446,
31,
3639,
5589,
3936,
1121,
273,
261,
5018,
13,
5787,
2083,
18,
588,
4658,
12,
907,
18,
28225,
67,
15811,
1769,
3639,
309,
261,
7584,
1121,
480,
446,
13,
2398,
31223,
48,
11235,
273,
2103,
13673,
48,
11235,
12,
71,
92,
16,
2146,
16,
3936,
1121,
1769,
3639,
7110,
1388,
569,
1388,
273,
326,
2083,
18,
588,
3092,
1388,
5621,
3639,
1250,
4260,
14857,
273,
326,
2083,
18,
18942,
14857,
1435,
747,
21394,
9494,
18,
291,
21755,
2829,
5621,
3639,
2103,
45,
1085,
1265,
2471,
12,
5787,
2083,
18,
588,
3024,
1763,
9334,
27573,
569,
1388,
16,
4260,
14857,
16,
1171,
9079,
4373,
3748,
1769,
10792,
2097,
751,
18,
1282,
461,
273,
326,
2083,
18,
588,
25258,
5621,
3639,
2097,
751,
18,
1282,
31150,
273,
261,
780,
13,
326,
2083,
18,
588,
4658,
12,
4766,
565,
2029,
18,
3584,
1099,
39,
21150,
67,
15811,
1769,
3639,
2097,
751,
18,
1282,
1830,
273,
261,
780,
13,
5787,
2083,
18,
588,
4658,
12,
907,
18,
6537,
67,
15811,
1769,
3639,
2097,
751,
18,
1282,
8649,
7503,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2103,
2083,
45,
1085,
12,
1042,
9494,
16,
22780,
2146,
16,
21821,
4284,
907,
326,
2083,
16,
1033,
4373,
3748,
13,
565,
288,
3639,
2097,
2083,
682,
273,
261,
5018,
13,
326,
2083,
18,
588,
4658,
12,
907,
18,
7788,
67,
15811,
1769,
3639,
309,
261,
1282,
2083,
682,
480,
446,
13,
2398,
2103,
8649,
7503,
12,
4887,
16,
9494,
16,
4373,
3748,
1769,
3639,
1033,
8526,
31223,
48,
11235,
273,
446,
31,
3639,
5589,
3936,
1121,
273,
261,
5018,
13,
5787,
2083,
18,
588,
4658,
12,
907,
18,
28225,
67,
15811,
1769,
3639,
309,
261,
7584,
1121,
480,
446,
13,
2398,
31223,
48,
11235,
273,
2103,
13673,
48,
11235,
12,
71,
92,
16,
2146,
16,
3936,
1121,
2
] |
case 8: X="toString";id=Id_toString; break L;
|
case 8: c=s.charAt(3); if (c=='o') { X="toSource";id=Id_toSource; } else if (c=='t') { X="toString";id=Id_toString; } break L;
|
protected int mapNameToId(String s) { int id;// #generated# Last update: 2001-05-20 00:12:12 GMT+02:00 L0: { id = 0; String X = null; int c; L: switch (s.length()) { case 4: X="name";id=Id_name; break L; case 5: X="arity";id=Id_arity; break L; case 6: X="length";id=Id_length; break L; case 9: c=s.charAt(0); if (c=='a') { X="arguments";id=Id_arguments; } else if (c=='p') { X="prototype";id=Id_prototype; } break L; } if (X!=null && X!=s && !X.equals(s)) id = 0; }// #/generated#// #/string_id_map# if (id != 0 || !prototypeFlag) { return id; }// #string_id_map#// #generated# Last update: 2001-05-20 00:12:12 GMT+02:00 L0: { id = 0; String X = null; L: switch (s.length()) { case 4: X="call";id=Id_call; break L; case 5: X="apply";id=Id_apply; break L; case 8: X="toString";id=Id_toString; break L; case 11: X="constructor";id=Id_constructor; break L; } if (X!=null && X!=s && !X.equals(s)) id = 0; }// #/generated# return id; }
|
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/46abef99b96acbce8fc70d1fda52378933e3d9c8/BaseFunction.java/buggy/js/rhino/src/org/mozilla/javascript/BaseFunction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
509,
852,
28455,
548,
12,
780,
272,
13,
565,
288,
3639,
509,
612,
31,
759,
468,
11168,
7,
6825,
1089,
30,
4044,
21,
17,
6260,
17,
3462,
9631,
30,
2138,
30,
2138,
21706,
15,
3103,
30,
713,
3639,
511,
20,
30,
288,
612,
273,
374,
31,
514,
1139,
273,
446,
31,
509,
276,
31,
5411,
511,
30,
1620,
261,
87,
18,
2469,
10756,
288,
5411,
648,
1059,
30,
1139,
1546,
529,
14432,
350,
33,
548,
67,
529,
31,
898,
511,
31,
5411,
648,
1381,
30,
1139,
1546,
20498,
14432,
350,
33,
548,
67,
20498,
31,
898,
511,
31,
5411,
648,
1666,
30,
1139,
1546,
2469,
14432,
350,
33,
548,
67,
2469,
31,
898,
511,
31,
5411,
648,
2468,
30,
276,
33,
87,
18,
3001,
861,
12,
20,
1769,
7734,
309,
261,
71,
18920,
69,
6134,
288,
1139,
1546,
7099,
14432,
350,
33,
548,
67,
7099,
31,
289,
7734,
469,
309,
261,
71,
18920,
84,
6134,
288,
1139,
1546,
18541,
14432,
350,
33,
548,
67,
18541,
31,
289,
7734,
898,
511,
31,
5411,
289,
5411,
309,
261,
60,
5,
33,
2011,
597,
1139,
5,
33,
87,
597,
401,
60,
18,
14963,
12,
87,
3719,
612,
273,
374,
31,
3639,
289,
759,
468,
19,
11168,
7,
759,
468,
19,
1080,
67,
350,
67,
1458,
7,
3639,
309,
261,
350,
480,
374,
747,
401,
18541,
4678,
13,
288,
327,
612,
31,
289,
759,
468,
1080,
67,
350,
67,
1458,
7,
759,
468,
11168,
7,
6825,
1089,
30,
4044,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
509,
852,
28455,
548,
12,
780,
272,
13,
565,
288,
3639,
509,
612,
31,
759,
468,
11168,
7,
6825,
1089,
30,
4044,
21,
17,
6260,
17,
3462,
9631,
30,
2138,
30,
2138,
21706,
15,
3103,
30,
713,
3639,
511,
20,
30,
288,
612,
273,
374,
31,
514,
1139,
273,
446,
31,
509,
276,
31,
5411,
511,
30,
1620,
261,
87,
18,
2469,
10756,
288,
5411,
648,
1059,
30,
1139,
1546,
529,
14432,
350,
33,
548,
67,
529,
31,
898,
511,
31,
5411,
648,
1381,
30,
1139,
1546,
20498,
14432,
350,
33,
548,
67,
20498,
31,
898,
511,
31,
5411,
648,
1666,
30,
1139,
1546,
2469,
14432,
350,
33,
548,
67,
2469,
31,
898,
511,
31,
5411,
648,
2
] |
public OnmsIpInterface(String ipAddr, OnmsNode node) { this.m_ipAddress = ipAddr; this.m_node = node; node.getIpInterfaces().add(this);
|
public OnmsIpInterface() {
|
public OnmsIpInterface(String ipAddr, OnmsNode node) { this.m_ipAddress = ipAddr; this.m_node = node; node.getIpInterfaces().add(this); }
|
25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/1470b9d421e427539205147df919be7207540ed6/OnmsIpInterface.java/buggy/opennms-model/src/main/java/org/opennms/netmgt/model/OnmsIpInterface.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2755,
959,
5273,
1358,
12,
780,
2359,
3178,
16,
2755,
959,
907,
756,
13,
288,
3639,
333,
18,
81,
67,
625,
1887,
273,
2359,
3178,
31,
3639,
333,
18,
81,
67,
2159,
273,
756,
31,
3639,
756,
18,
588,
5273,
10273,
7675,
1289,
12,
2211,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2755,
959,
5273,
1358,
12,
780,
2359,
3178,
16,
2755,
959,
907,
756,
13,
288,
3639,
333,
18,
81,
67,
625,
1887,
273,
2359,
3178,
31,
3639,
333,
18,
81,
67,
2159,
273,
756,
31,
3639,
756,
18,
588,
5273,
10273,
7675,
1289,
12,
2211,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public String word() throws RecognitionException { String word; Token id=null; Token str=null; word = null; try { // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:914:17: (id= ID | 'import' | 'use' | 'rule' | 'query' | 'salience' | 'no-loop' | 'when' | 'then' | 'end' | str= STRING ) int alt61=11; switch ( input.LA(1) ) { case ID: alt61=1; break; case 17: alt61=2; break; case 57: alt61=3; break; case 28: alt61=4; break; case 26: alt61=5; break; case 33: alt61=6; break; case 34: alt61=7; break; case 29: alt61=8; break; case 31: alt61=9; break; case 27: alt61=10; break; case STRING: alt61=11; break; default: NoViableAltException nvae = new NoViableAltException("910:1: word returns [String word] : (id= ID | \'import\' | \'use\' | \'rule\' | \'query\' | \'salience\' | \'no-loop\' | \'when\' | \'then\' | \'end\' | str= STRING );", 61, 0, input); throw nvae; } switch (alt61) { case 1 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:914:17: id= ID { id=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_word2643); word=id.getText(); } break; case 2 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:915:17: 'import' { match(input,17,FOLLOW_17_in_word2655); word="import"; } break; case 3 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:916:17: 'use' { match(input,57,FOLLOW_57_in_word2664); word="use"; } break; case 4 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:917:17: 'rule' { match(input,28,FOLLOW_28_in_word2676); word="rule"; } break; case 5 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:918:17: 'query' { match(input,26,FOLLOW_26_in_word2687); word="query"; } break; case 6 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:919:17: 'salience' { match(input,33,FOLLOW_33_in_word2697); word="salience"; } break; case 7 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:920:17: 'no-loop' { match(input,34,FOLLOW_34_in_word2705); word="no-loop"; } break; case 8 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:921:17: 'when' { match(input,29,FOLLOW_29_in_word2713); word="when"; } break; case 9 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:922:17: 'then' { match(input,31,FOLLOW_31_in_word2724); word="then"; } break; case 10 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:923:17: 'end' { match(input,27,FOLLOW_27_in_word2735); word="end"; } break; case 11 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:924:17: str= STRING { str=(Token)input.LT(1); match(input,STRING,FOLLOW_STRING_in_word2749); word=getString(str); } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return word; }
|
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/ca87e40b5754cd366785b207f8cd109258275f53/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2076,
1435,
1216,
9539,
288,
6647,
514,
2076,
31,
3639,
3155,
612,
33,
2011,
31,
3639,
3155,
609,
33,
2011,
31,
540,
202,
202,
1095,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
342,
6588,
19,
70,
947,
19,
17300,
87,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
4683,
19,
3341,
19,
12215,
19,
4936,
19,
72,
1321,
18,
75,
30,
29,
3461,
30,
4033,
30,
261,
350,
33,
1599,
571,
296,
5666,
11,
571,
296,
1202,
11,
571,
296,
5345,
11,
571,
296,
2271,
11,
571,
296,
21982,
6254,
11,
571,
296,
2135,
17,
6498,
11,
571,
296,
13723,
11,
571,
296,
15991,
11,
571,
296,
409,
11,
571,
609,
33,
9469,
262,
5411,
509,
3770,
9498,
33,
2499,
31,
5411,
1620,
261,
810,
18,
2534,
12,
21,
13,
262,
288,
5411,
648,
1599,
30,
7734,
3770,
9498,
33,
21,
31,
7734,
898,
31,
5411,
648,
8043,
30,
7734,
3770,
9498,
33,
22,
31,
7734,
898,
31,
5411,
648,
15981,
30,
7734,
3770,
9498,
33,
23,
31,
7734,
898,
31,
5411,
648,
9131,
30,
7734,
3770,
9498,
33,
24,
31,
7734,
898,
31,
5411,
648,
10659,
30,
7734,
3770,
9498,
33,
25,
31,
7734,
898,
31,
5411,
648,
13159,
30,
7734,
3770,
9498,
33,
26,
31,
7734,
898,
31,
5411,
648,
13438,
30,
7734,
3770,
9498,
33,
27,
31,
7734,
898,
31,
5411,
648,
12899,
30,
7734,
3770,
9498,
33,
28,
31,
7734,
898,
31,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2076,
1435,
1216,
9539,
288,
6647,
514,
2076,
31,
3639,
3155,
612,
33,
2011,
31,
3639,
3155,
609,
33,
2011,
31,
540,
202,
202,
1095,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
342,
6588,
19,
70,
947,
19,
17300,
87,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
4683,
19,
3341,
19,
12215,
19,
4936,
19,
72,
1321,
18,
75,
30,
29,
3461,
30,
4033,
30,
261,
350,
33,
1599,
571,
296,
5666,
11,
571,
296,
1202,
11,
571,
296,
5345,
11,
571,
296,
2271,
11,
571,
296,
21982,
6254,
11,
571,
296,
2135,
17,
6498,
11,
571,
296,
13723,
11,
571,
296,
15991,
11,
571,
296,
409,
2
] |
||
if( value != null && valueType!=null && !(value instanceof AttributeDefinition) )
|
if( realValue != null && valueType!=null && !(value instanceof AttributeDefinition) )
|
protected void computeRealValue() throws JspException { // Compute real value from attributes set. realValue = value; // Does value comes from a bean ? if( value == null && beanName != null ) { getRealValueFromBean(); } // end if // Is there a type set ? // First check direct attribute, and translate it to a valueType. // Then, evaluate valueType, and create requested typed attribute. // If valueType is not set, use the value "as is". if( valueType==null && direct != null ) { if( Boolean.valueOf(direct).booleanValue() == true ) valueType = "string"; else valueType = "path"; } // end if if( value != null && valueType!=null && !(value instanceof AttributeDefinition) ) { String strValue = value.toString(); if( valueType.equalsIgnoreCase( "string" ) ) { realValue = new DirectStringAttribute( strValue ); } else if( valueType.equalsIgnoreCase( "page" ) ) { realValue = new PathAttribute( strValue ); } else if( valueType.equalsIgnoreCase( "template" ) ) { realValue = new PathAttribute( strValue ); } else if( valueType.equalsIgnoreCase( "instance" ) ) { realValue = new DefinitionNameAttribute( strValue ); } else if( valueType.equalsIgnoreCase( "definition" ) ) { realValue = new DefinitionNameAttribute( strValue ); } else { // bad type throw new JspException( "Warning - Tag put : Bad type '" + valueType + "'." ); } // end if } // end if }
|
54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/33280a54ad028fa64bed6955a63b6813b20f89b6/PutTag.java/clean/src/share/org/apache/struts/taglib/tiles/PutTag.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
3671,
6955,
620,
1435,
1216,
27485,
565,
288,
3639,
368,
8155,
2863,
460,
628,
1677,
444,
18,
565,
2863,
620,
273,
460,
31,
3639,
368,
9637,
460,
14535,
628,
279,
3931,
692,
1377,
309,
12,
460,
422,
446,
597,
17932,
480,
446,
262,
3639,
288,
3639,
12361,
620,
1265,
3381,
5621,
3639,
289,
368,
679,
309,
1377,
368,
2585,
1915,
279,
618,
444,
692,
1377,
368,
5783,
866,
2657,
1566,
16,
471,
4204,
518,
358,
279,
13692,
18,
1377,
368,
9697,
16,
5956,
13692,
16,
471,
752,
3764,
9092,
1566,
18,
1377,
368,
971,
13692,
353,
486,
444,
16,
999,
326,
460,
315,
345,
353,
9654,
565,
309,
12,
13692,
631,
2011,
597,
2657,
480,
446,
262,
1377,
288,
1377,
309,
12,
3411,
18,
1132,
951,
12,
7205,
2934,
6494,
620,
1435,
422,
638,
262,
3639,
13692,
273,
315,
1080,
14432,
4202,
469,
3639,
13692,
273,
315,
803,
14432,
1377,
289,
225,
368,
679,
309,
565,
309,
12,
2863,
620,
480,
446,
597,
13692,
5,
33,
2011,
597,
401,
12,
1132,
1276,
3601,
1852,
13,
262,
1377,
288,
1377,
514,
22842,
273,
460,
18,
10492,
5621,
3639,
309,
12,
13692,
18,
14963,
5556,
12,
315,
1080,
6,
262,
262,
1850,
288,
1850,
2863,
620,
273,
394,
9908,
780,
1499,
12,
22842,
11272,
1850,
289,
540,
469,
309,
12,
13692,
18,
14963,
5556,
12,
315,
2433,
6,
262,
262,
1850,
288,
1850,
2863,
620,
273,
394,
2666,
1499,
12,
22842,
11272,
1850,
289,
540,
469,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
3671,
6955,
620,
1435,
1216,
27485,
565,
288,
3639,
368,
8155,
2863,
460,
628,
1677,
444,
18,
565,
2863,
620,
273,
460,
31,
3639,
368,
9637,
460,
14535,
628,
279,
3931,
692,
1377,
309,
12,
460,
422,
446,
597,
17932,
480,
446,
262,
3639,
288,
3639,
12361,
620,
1265,
3381,
5621,
3639,
289,
368,
679,
309,
1377,
368,
2585,
1915,
279,
618,
444,
692,
1377,
368,
5783,
866,
2657,
1566,
16,
471,
4204,
518,
358,
279,
13692,
18,
1377,
368,
9697,
16,
5956,
13692,
16,
471,
752,
3764,
9092,
1566,
18,
1377,
368,
971,
13692,
353,
486,
444,
16,
999,
326,
460,
315,
345,
353,
9654,
565,
309,
12,
13692,
631,
2011,
597,
2657,
480,
446,
2
] |
receiveNoWait() throws JMSException;
|
Message receiveNoWait() throws JMSException;
|
receiveNoWait() throws JMSException;
|
6764 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6764/7f6299004b6fd07dd9a880e63ccd2378de31ada1/MessageConsumer.java/clean/jms/src/java/javax/jms/MessageConsumer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
6798,
2279,
5480,
1435,
1216,
20343,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
6798,
2279,
5480,
1435,
1216,
20343,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
logger.severe( slcIBAvailability.length + " joint slc IB alternatives checked, but fewer than preSampleSize=" + preSampleSize + " alternatives are available for sample of alternatives.");
|
logger.fatal( slcIBAvailability.length + " joint slc IB alternatives checked, but fewer than preSampleSize=" + preSampleSize + " alternatives are available for sample of alternatives.");
|
public void jointTourSfcSlc ( Household hh ) { int soaIndex=0; int tourTypeIndex=0; long markTime=0; hh_id = hh.getID(); if (useMessageWindow) mw.setMessage1 ("Stop frequency and location Choice for Joint Tours"); if (useMessageWindow) mw.setMessage2 ( "household " + count + " (" + hh_id + ")" ); count++; // get the array of joint tours for this household. if (hh.getJointTours() == null) return; // get person array for this household. Person[] persons = hh.getPersonArray(); hh.setTourCategory( TourType.JOINT_CATEGORY ); hh_taz_id = hh.getTazID(); // loop over joint tours for the hh for (int t=0; t < hh.jointTours.length; t++) { hh.setOrigTaz ( hh.jointTours[t].getOrigTaz() ); hh.setChosenDest ( hh.jointTours[t].getDestTaz() ); index.setOriginZone( hh.jointTours[t].getOrigTaz() ); index.setDestZone( hh.jointTours[t].getDestTaz() ); // if the primary mode for this joint tour is non-motorized, skip stop freq choice if (hh.jointTours[t].getMode() == TourModeType.NONMOTORIZED) { //Wu added for FTA restart hh.jointTours[t].setStopFreqAlt(0); hh.jointTours[t].setStopLocOB(0); hh.jointTours[t].setStopLocIB(0); continue; } tourType = hh.jointTours[t].getTourType(); // set the array of sample of alternatives objects index for (int i=0; i < TourType.JOINT_TYPES.length; i++) { if (tourType == TourType.JOINT_TYPES[i]) tourTypeIndex = i; } person = hh.jointTours[t].getTourPerson(); hh.setOrigTaz (hh_taz_id); hh.setPersonID ( person ); hh.setTourID ( t ); int orig = hh_taz_id; int chosenMode = hh.jointTours[t].getMode(); int chosenDest = hh.jointTours[t].getDestTaz(); int chosenShrtWlkSeg = hh.jointTours[t].getDestShrtWlk(); int autoTransit = hh.jointTours[t].getMode() < 3 ? 0 : 1; // get the destination choice sample of alternatives markTime = System.currentTimeMillis(); if (autoTransit == 0) { Arrays.fill ( slcIBAvailability, false ); // determine the set of alternatives from which the sample of alternatives will be drawn if (preSampleSize > 0) { // select the first preSampleSize alternatives to be available for being in the sample of alternatives k = 0; preSampleCount = 0; while ( preSampleCount < preSampleSize ) { // set destination choice alternative availability to true if size > 0 for the segment. preSampleAlt = (int) (slcIBAvailability.length * SeededRandom.getRandom()); if ( stopSize[1][tourType][preSampleAlt] > 0.0 ) { slcIBAvailability[preSampleAlt] = true; preSampleCount++; } k++; if (k >= slcIBAvailability.length) { logger.severe( slcIBAvailability.length + " joint slc IB alternatives checked, but fewer than preSampleSize=" + preSampleSize + " alternatives are available for sample of alternatives."); System.exit(-1); } } } else { for (k=0; k < slcIBAvailability.length; k++) { // set destination choice alternative availability to true if size > 0 for the segment. if ( stopSize[1][tourType][k] > 0.0 ) { slcIBAvailability[k] = true; } } } slcSoa[tourTypeIndex][1][soaIndex].applySampleOfAlternativesChoiceModel ( hh, slcIBAvailability ); soaSample[1] = slcSoa[tourTypeIndex][1][soaIndex].getSampleOfAlternatives(); soaCorrections[1] = slcSoa[tourTypeIndex][1][soaIndex].getSampleCorrectionFactors(); Arrays.fill(slcSample[1], 0); Arrays.fill(slcCorrections[processorId][1], 0.0f); Arrays.fill(slcIBAvailability, false); for (int i=1; i < soaSample[1].length; i++) { slcSample[1][soaSample[1][i]] = 1; slcCorrections[processorId][1][soaSample[1][i]] = soaCorrections[1][i]; slcIBAvailability[soaSample[1][i]] = true; } soaTime += (System.currentTimeMillis()-markTime); } else { Arrays.fill(slcSample[1], 1); Arrays.fill(slcCorrections[processorId][1], 0.0f); Arrays.fill (slcIBAvailability, true); for (k=0; k < slcIBAvailability.length; k++) { // set destination choice alternative availability to true if size > 0 for the segment. if ( stopSize[1][tourType][k] <= 0.0 || (k+1) % 3 == 1 ) { slcSample[1][k] = 0; slcIBAvailability[k] = false; } } soaTime += (System.currentTimeMillis()-markTime); } // calculate inbound stop location choice logsum markTime = System.currentTimeMillis(); // calculate stop location choice logsum for outbound halftours for the hh slc[1][autoTransit][tourType].updateLogitModel ( hh, slcIBAvailability, slcSample[1] ); slcLogsum[processorId][1] = (float)(slc[1][autoTransit][tourType].getLogsum () - ( autoTransit == 0 ? MathUtil.log( slcSoa[tourTypeIndex][1][soaIndex].getSlcLogsumCorrectionFactor() ) : 0.0 ) ); logsumTime += (System.currentTimeMillis()-markTime); // compute stop frequency choice proportions and choose alternative markTime = System.currentTimeMillis(); sfc.updateLogitModel ( hh, sfcAvailability, sfcSample ); int chosenAlt = sfc.getChoiceResult(); // set the chosen value in hh tour objects hh.jointTours[t].setStopFreqAlt (chosenAlt); freqTime += (System.currentTimeMillis()-markTime); markTime = System.currentTimeMillis(); // if chosen stop frequency is 2 or 4, calculate outbound soa and availabilities if ( chosenAlt == 2 || chosenAlt == 4 ) { // get the stop location choice sample of alternatives for outbound sov, hov tours if (chosenMode == 1 || chosenMode == 2) { Arrays.fill ( slcOBAvailability, false ); // determine the set of alternatives from which the sample of alternatives will be drawn if (preSampleSize > 0) { // select the first preSampleSize alternatives to be available for being in the sample of alternatives k = 0; preSampleCount = 0; while ( preSampleCount < preSampleSize ) { // set destination choice alternative availability to true if size > 0 for the segment. preSampleAlt = (int) (slcOBAvailability.length * SeededRandom.getRandom()); if ( stopSize[0][tourType][preSampleAlt] > 0.0 ) { slcOBAvailability[preSampleAlt] = true; preSampleCount++; } k++; if (k >= slcOBAvailability.length) { logger.severe( slcOBAvailability.length + " joint slc OB alternatives checked, but fewer than preSampleSize=" + preSampleSize + " alternatives are available for sample of alternatives."); System.exit(-1); } } } else { for (k=0; k < slcOBAvailability.length; k++) { // set destination choice alternative availability to true if size > 0 for the segment. if ( stopSize[0][tourType][k] > 0.0 ) { slcOBAvailability[k] = true; } } } slcSoa[tourTypeIndex][0][soaIndex].applySampleOfAlternativesChoiceModel ( hh, slcOBAvailability ); soaSample[0] = slcSoa[tourTypeIndex][0][soaIndex].getSampleOfAlternatives(); soaCorrections[0] = slcSoa[tourTypeIndex][0][soaIndex].getSampleCorrectionFactors(); Arrays.fill(slcSample[0], 0); Arrays.fill(slcCorrections[processorId][0], 0.0f); Arrays.fill (slcOBAvailability, false); for (int j=1; j < soaSample[0].length; j++) { slcSample[0][soaSample[0][j]] = 1; slcCorrections[processorId][0][soaSample[0][j]] = soaCorrections[0][j]; slcOBAvailability[soaSample[0][j]] = true; } soaTime += (System.currentTimeMillis()-markTime); } else { Arrays.fill(slcSample[0], 1); Arrays.fill(slcCorrections[processorId][0], 0.0f); Arrays.fill (slcOBAvailability, true); for (k=0; k < slcOBAvailability.length; k++) { // set destination choice alternative availability to true if size > 0 for the segment. if ( stopSize[0][tourType][k] <= 0.0 || (k+1) % 3 == 1 ) { slcSample[0][k] = 0; slcOBAvailability[k] = false; } } soaTime += (System.currentTimeMillis()-markTime); } } int chosen = 0; int chosenDestAlt = 0; int chosenShrtWlk = 0; // use distance UEC to get utilities(distances) for each tour and trip segment // determine the stop locations if the tour has stops switch (chosenAlt) { // no stops for this tour case 1: hh.jointTours[t].setStopLocOB ( 0 ); hh.jointTours[t].setStopLocIB ( 0 ); break; // 1 outbound, 0 inbound case 2: // compute destination choice proportions and choose alternative markTime = System.currentTimeMillis(); slc[0][autoTransit][tourType].updateLogitModel ( hh, slcOBAvailability, slcSample[0] ); if ( slc[0][autoTransit][tourType].getAvailabilityCount() > 0 ) { chosen = slc[0][autoTransit][tourType].getChoiceResult(); chosenDestAlt = (int)((chosen-1)/WALK_SEGMENTS) + 1; chosenShrtWlk = chosen - (chosenDestAlt-1)*WALK_SEGMENTS - 1; } else { logger.warning ( "no outbound joint slc alternatives available, hh_id=" + hh_id + ", person=" + person + ", tour=" + t); hh.jointTours[t].setStopFreqAlt ( 1 ); hh.jointTours[t].setStopLocOB ( 0 ); hh.jointTours[t].setStopLocIB ( 0 );// hh.writeContentToLogger(logger); break; } // set the chosen value in hh tour objects hh.jointTours[t].setStopLocOB (chosenDestAlt); hh.jointTours[t].setStopLocSubzoneOB (chosenShrtWlk); hh.jointTours[t].setStopLocIB (0); locTime += (System.currentTimeMillis() - markTime); break; // 0 outbound, 1 inbound case 3: // compute destination choice proportions and choose alternative markTime = System.currentTimeMillis(); slc[1][autoTransit][tourType].updateLogitModel ( hh, slcIBAvailability, slcSample[1] ); if ( slc[1][autoTransit][tourType].getAvailabilityCount() > 0 ) { chosen = slc[1][autoTransit][tourType].getChoiceResult(); chosenDestAlt = (int)((chosen-1)/WALK_SEGMENTS) + 1; chosenShrtWlk = chosen - (chosenDestAlt-1)*WALK_SEGMENTS - 1; } else { logger.warning ( "no inbound joint slc alternatives available, hh_id=" + hh_id + ", person=" + person + ", tour=" + t); hh.jointTours[t].setStopFreqAlt ( 1 ); hh.jointTours[t].setStopLocOB ( 0 ); hh.jointTours[t].setStopLocIB ( 0 );// hh.writeContentToLogger(logger); break; } // set the chosen value in hh tour objects hh.jointTours[t].setStopLocIB (chosenDestAlt); hh.jointTours[t].setStopLocSubzoneIB (chosenShrtWlk); hh.jointTours[t].setStopLocOB (0); locTime += (System.currentTimeMillis() - markTime); break; // 1 outbound, 1 inbound case 4: // compute destination choice proportions and choose alternative markTime = System.currentTimeMillis(); slc[0][autoTransit][tourType].updateLogitModel ( hh, slcOBAvailability, slcSample[0] ); if ( slc[0][autoTransit][tourType].getAvailabilityCount() > 0 ) { chosen = slc[0][autoTransit][tourType].getChoiceResult(); chosenDestAlt = (int)((chosen-1)/WALK_SEGMENTS) + 1; chosenShrtWlk = chosen - (chosenDestAlt-1)*WALK_SEGMENTS - 1; } else { logger.warning ( "no outbound joint slc alternatives available, hh_id=" + hh_id + ", person=" + person + ", tour=" + t); hh.jointTours[t].setStopFreqAlt ( 1 ); hh.jointTours[t].setStopLocOB ( 0 ); hh.jointTours[t].setStopLocIB ( 0 );// hh.writeContentToLogger(logger); break; } // set the chosen value in hh tour objects hh.jointTours[t].setStopLocOB (chosenDestAlt); hh.jointTours[t].setStopLocSubzoneOB (chosenShrtWlk); locTime += (System.currentTimeMillis() - markTime); markTime = System.currentTimeMillis(); slc[1][autoTransit][tourType].updateLogitModel ( hh, slcIBAvailability, slcSample[1] ); if ( slc[1][autoTransit][tourType].getAvailabilityCount() > 0 ) { chosen = slc[1][autoTransit][tourType].getChoiceResult(); chosenDestAlt = (int)((chosen-1)/WALK_SEGMENTS) + 1; chosenShrtWlk = chosen - (chosenDestAlt-1)*WALK_SEGMENTS - 1; } else { logger.warning ( "no inbound joint slc alternatives available, hh_id=" + hh_id + ", person=" + person + ", tour=" + t); hh.jointTours[t].setStopFreqAlt ( 1 ); hh.jointTours[t].setStopLocOB ( 0 ); hh.jointTours[t].setStopLocIB ( 0 );// hh.writeContentToLogger(logger); break; } // set the chosen value in hh tour objects hh.jointTours[t].setStopLocIB (chosenDestAlt); hh.jointTours[t].setStopLocSubzoneIB (chosenShrtWlk); locTime += (System.currentTimeMillis() - markTime); break; default: logger.severe ("invalid joint stop frequency choice = " + chosenAlt + " for household id=" + hh.getID() + " in joint stop frequency choice." );// hh.writeContentToLogger(logger); break; } } }
|
1120 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1120/ca343a527cdff81450c6dae2017cdd7596546cc4/StopsHousehold.java/clean/src/java/com/pb/morpc/models/StopsHousehold.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
15916,
56,
477,
55,
7142,
3738,
71,
261,
670,
3793,
21056,
18629,
262,
288,
202,
202,
474,
202,
2048,
69,
1016,
33,
20,
31,
202,
202,
474,
19797,
559,
1016,
33,
20,
31,
202,
202,
5748,
2267,
950,
33,
20,
31,
202,
202,
21622,
67,
350,
377,
273,
18629,
18,
588,
734,
5621,
202,
202,
430,
261,
1202,
1079,
3829,
13,
14721,
18,
542,
1079,
21,
7566,
4947,
8670,
471,
2117,
16432,
364,
804,
763,
399,
4390,
8863,
202,
202,
430,
261,
1202,
1079,
3829,
13,
14721,
18,
542,
1079,
22,
261,
315,
13028,
21056,
315,
397,
1056,
397,
315,
7566,
397,
18629,
67,
350,
397,
7310,
11272,
202,
202,
1883,
9904,
31,
202,
202,
759,
336,
326,
526,
434,
15916,
19797,
87,
364,
333,
23867,
21056,
18,
1082,
202,
430,
261,
21622,
18,
588,
21574,
56,
4390,
1435,
422,
446,
13,
1082,
202,
2463,
31,
6862,
202,
759,
336,
6175,
526,
364,
333,
23867,
21056,
18,
202,
202,
8346,
8526,
6175,
87,
273,
18629,
18,
588,
8346,
1076,
5621,
202,
202,
21622,
18,
542,
56,
477,
4457,
12,
399,
477,
559,
18,
22720,
3217,
67,
24847,
11272,
202,
202,
21622,
67,
88,
1561,
67,
350,
273,
18629,
18,
588,
56,
1561,
734,
5621,
202,
202,
759,
2798,
1879,
15916,
19797,
87,
364,
326,
18629,
202,
202,
1884,
261,
474,
268,
33,
20,
31,
268,
411,
18629,
18,
16452,
56,
4390,
18,
2469,
31,
268,
27245,
288,
1082,
202,
21622,
18,
542,
4741,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
15916,
56,
477,
55,
7142,
3738,
71,
261,
670,
3793,
21056,
18629,
262,
288,
202,
202,
474,
202,
2048,
69,
1016,
33,
20,
31,
202,
202,
474,
19797,
559,
1016,
33,
20,
31,
202,
202,
5748,
2267,
950,
33,
20,
31,
202,
202,
21622,
67,
350,
377,
273,
18629,
18,
588,
734,
5621,
202,
202,
430,
261,
1202,
1079,
3829,
13,
14721,
18,
542,
1079,
21,
7566,
4947,
8670,
471,
2117,
16432,
364,
804,
763,
399,
4390,
8863,
202,
202,
430,
261,
1202,
1079,
3829,
13,
14721,
18,
542,
1079,
22,
261,
315,
13028,
21056,
315,
397,
1056,
397,
315,
7566,
397,
18629,
67,
350,
397,
7310,
11272,
202,
202,
1883,
9904,
31,
202,
202,
2
] |
PreparedStatement pStmtA = cx.prepareStatement( "insert into #t0022a values (?, ?)"); PreparedStatement pStmtB = cx.prepareStatement( "insert into #t0022b values (?, getdate())");
|
PreparedStatement pStmtA = cx.prepareStatement( "insert into #t0022a values (?, ?)"); PreparedStatement pStmtB = cx.prepareStatement( "insert into #t0022b values (?, getdate())");
|
public void testNestedStatements0022() throws Exception { Connection cx = getConnection(); dropTable("#t0022a"); dropTable("#t0022b"); Statement stmt = cx.createStatement(); stmt.executeUpdate("create table #t0022a " + " (i integer not null, " + " str char(254) not null) "); stmt.executeUpdate("create table #t0022b " + " (i integer not null, " + " t datetime not null) "); PreparedStatement pStmtA = cx.prepareStatement( "insert into #t0022a values (?, ?)"); PreparedStatement pStmtB = cx.prepareStatement( "insert into #t0022b values (?, getdate())"); final int rowsToAdd = 1000; int count = 0; for (int i = 1; i <= rowsToAdd; i++) { pStmtA.setInt(1, i); String tmp = ""; while (tmp.length() < 240) { tmp = tmp + "row " + i + ". "; } pStmtA.setString(2, tmp); count += pStmtA.executeUpdate(); pStmtB.setInt(1, i); pStmtB.executeUpdate(); } assertTrue(count == rowsToAdd); Statement stmtA = cx.createStatement(); Statement stmtB = cx.createStatement(); count = 0; ResultSet rsA = stmtA.executeQuery("select * from #t0022a"); assertNotNull(rsA); while (rsA.next()) { count++; ResultSet rsB = stmtB.executeQuery( "select * from #t0022b where i=" + rsA.getInt("i")); assertNotNull(rsB); assertTrue("Expected a result set", rsB.next()); assertTrue("Expected no result set", !rsB.next()); } assertTrue(count == rowsToAdd); }
|
439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/d9d3f9d24e5fe3f189bd2899a4d10846c0832a3b/TimestampTest.java/buggy/trunk/jtds/src.old/test/freetds/TimestampTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
8649,
14663,
713,
3787,
1435,
1216,
1185,
202,
95,
202,
202,
1952,
9494,
273,
6742,
5621,
202,
202,
7285,
1388,
2932,
7,
88,
713,
3787,
69,
8863,
202,
202,
7285,
1388,
2932,
7,
88,
713,
3787,
70,
8863,
202,
202,
3406,
225,
3480,
565,
273,
9494,
18,
2640,
3406,
5621,
202,
202,
10589,
18,
8837,
1891,
2932,
2640,
1014,
468,
88,
713,
3787,
69,
315,
1082,
202,
15,
315,
225,
261,
77,
282,
3571,
486,
446,
16,
315,
1082,
202,
15,
315,
282,
609,
1149,
12,
26261,
13,
486,
446,
13,
315,
1769,
202,
202,
10589,
18,
8837,
1891,
2932,
2640,
1014,
468,
88,
713,
3787,
70,
2398,
315,
202,
202,
15,
315,
225,
261,
77,
282,
3571,
486,
446,
16,
1377,
315,
202,
202,
15,
315,
282,
268,
282,
3314,
486,
446,
13,
377,
315,
1769,
202,
202,
29325,
225,
293,
8952,
37,
273,
9494,
18,
9366,
3406,
12,
1082,
202,
6,
6387,
1368,
468,
88,
713,
3787,
69,
924,
13590,
16,
692,
2225,
1769,
202,
202,
29325,
225,
293,
8952,
38,
273,
9494,
18,
9366,
3406,
12,
1082,
202,
6,
6387,
1368,
468,
88,
713,
3787,
70,
924,
13590,
16,
336,
712,
1435,
2225,
1769,
202,
202,
6385,
509,
2595,
13786,
273,
4336,
31,
202,
202,
474,
1056,
273,
374,
31,
202,
202,
1884,
261,
474,
277,
273,
404,
31,
277,
1648,
2595,
13786,
31,
277,
27245,
202,
202,
95,
1082,
202,
84,
8952,
37,
18,
542,
1702,
12,
21,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
8649,
14663,
713,
3787,
1435,
1216,
1185,
202,
95,
202,
202,
1952,
9494,
273,
6742,
5621,
202,
202,
7285,
1388,
2932,
7,
88,
713,
3787,
69,
8863,
202,
202,
7285,
1388,
2932,
7,
88,
713,
3787,
70,
8863,
202,
202,
3406,
225,
3480,
565,
273,
9494,
18,
2640,
3406,
5621,
202,
202,
10589,
18,
8837,
1891,
2932,
2640,
1014,
468,
88,
713,
3787,
69,
315,
1082,
202,
15,
315,
225,
261,
77,
282,
3571,
486,
446,
16,
315,
1082,
202,
15,
315,
282,
609,
1149,
12,
26261,
13,
486,
446,
13,
315,
1769,
202,
202,
10589,
18,
8837,
1891,
2932,
2640,
1014,
468,
88,
713,
3787,
70,
2398,
315,
202,
202,
15,
315,
225,
2
] |
System.err.println(getClass().getName() + ": " + e);
|
JUnitPlugin.log(e);
|
protected void postCreatingType() { IType newClass= fPage.getCreatedType(); ICompilationUnit cu= newClass.getCompilationUnit(); if (cu.isWorkingCopy()) { cu= (ICompilationUnit) cu.getOriginalElement(); //added here } try { IResource resource= cu.getUnderlyingResource(); selectAndReveal(resource); openResource(resource); } catch (JavaModelException e) { System.err.println(getClass().getName() + ": " + e); //$NON-NLS-1$ } }
|
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/790bdf06ae71ed89e79415a6c38d52409b0c5af5/NewTestSuiteCreationWizard.java/buggy/org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestSuiteCreationWizard.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1603,
11092,
559,
1435,
288,
202,
202,
45,
559,
394,
797,
33,
284,
1964,
18,
588,
6119,
559,
5621,
9506,
202,
45,
19184,
2802,
15985,
33,
394,
797,
18,
588,
19184,
2802,
5621,
202,
202,
430,
261,
6319,
18,
291,
14836,
2951,
10756,
288,
1082,
202,
6319,
33,
261,
45,
19184,
2802,
13,
15985,
18,
588,
8176,
1046,
5621,
1082,
202,
759,
9665,
2674,
202,
202,
97,
202,
202,
698,
288,
1082,
202,
45,
1420,
1058,
33,
15985,
18,
588,
14655,
6291,
1420,
5621,
1082,
202,
4025,
1876,
426,
24293,
12,
3146,
1769,
1082,
202,
3190,
1420,
12,
3146,
1769,
202,
202,
97,
1044,
261,
5852,
1488,
503,
425,
13,
288,
1082,
202,
46,
2802,
3773,
18,
1330,
12,
73,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1603,
11092,
559,
1435,
288,
202,
202,
45,
559,
394,
797,
33,
284,
1964,
18,
588,
6119,
559,
5621,
9506,
202,
45,
19184,
2802,
15985,
33,
394,
797,
18,
588,
19184,
2802,
5621,
202,
202,
430,
261,
6319,
18,
291,
14836,
2951,
10756,
288,
1082,
202,
6319,
33,
261,
45,
19184,
2802,
13,
15985,
18,
588,
8176,
1046,
5621,
1082,
202,
759,
9665,
2674,
202,
202,
97,
202,
202,
698,
288,
1082,
202,
45,
1420,
1058,
33,
15985,
18,
588,
14655,
6291,
1420,
5621,
1082,
202,
4025,
1876,
426,
24293,
12,
3146,
1769,
1082,
202,
3190,
1420,
12,
3146,
1769,
202,
202,
97,
1044,
261,
5852,
1488,
503,
425,
13,
288,
1082,
202,
46,
2802,
2
] |
int width = DataTools.read4SignedBytes(in, false); int height = DataTools.read4SignedBytes(in, false);
|
width = DataTools.read4SignedBytes(in, false); height = DataTools.read4SignedBytes(in, false);
|
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); in = new RandomAccessFile(id, "r"); // read the 12 byte file header byte[] header = new byte[12]; in.read(header); if (header[0] != 'O' || header[1] != 'L' || header[2] != 'R' || header[3] != 'W') { throw new FormatException("Openlab RAW magic string not found."); } int version = DataTools.bytesToInt(header, 4, 4, false); metadata.put("Version", new Integer(version)); numImages = DataTools.bytesToInt(header, 8, 4, false); offsets = new int[numImages]; offsets[0] = (int) in.getFilePointer(); for (int i=1; i<numImages; i++) { in.skipBytes(8); int width = DataTools.read4SignedBytes(in, false); int height = DataTools.read4SignedBytes(in, false); in.skipBytes(2); int bpp = DataTools.readUnsignedByte(in); in.skipBytes(269 + (width*height*bpp)); offsets[i] = (int) in.getFilePointer(); metadata.put("Width", new Integer(width)); metadata.put("Height", new Integer(height)); metadata.put("Bytes per pixel", new Integer(bpp)); } if (ome != null) { int bpp = ((Integer) metadata.get("Bytes per pixel")).intValue(); OMETools.setPixels(ome, (Integer) metadata.get("Width"), (Integer) metadata.get("Height"), new Integer(numImages), new Integer(1), new Integer(1), (bpp < 4) ? ("int" + (8*bpp)) : "float", new Boolean(true), "XYZTC"); } }
|
49800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49800/aee349af09e7906986ee680734d0e4ed6c3190a1/OpenlabRawReader.java/buggy/loci/formats/OpenlabRawReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
812,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
2240,
18,
2738,
812,
12,
350,
1769,
565,
316,
273,
394,
8072,
26933,
12,
350,
16,
315,
86,
8863,
540,
368,
855,
326,
2593,
1160,
585,
1446,
3639,
1160,
8526,
1446,
273,
394,
1160,
63,
2138,
15533,
565,
316,
18,
896,
12,
3374,
1769,
565,
309,
261,
3374,
63,
20,
65,
480,
296,
51,
11,
747,
1446,
63,
21,
65,
480,
296,
48,
11,
747,
4202,
1446,
63,
22,
65,
480,
296,
54,
11,
747,
1446,
63,
23,
65,
480,
296,
59,
6134,
565,
288,
1377,
604,
394,
4077,
503,
2932,
3678,
7411,
29118,
8146,
533,
486,
1392,
1199,
1769,
565,
289,
7734,
509,
1177,
273,
1910,
10348,
18,
3890,
17864,
12,
3374,
16,
1059,
16,
1059,
16,
629,
1769,
565,
1982,
18,
458,
2932,
1444,
3113,
394,
2144,
12,
1589,
10019,
3639,
818,
8946,
273,
1910,
10348,
18,
3890,
17864,
12,
3374,
16,
1725,
16,
1059,
16,
629,
1769,
565,
8738,
273,
394,
509,
63,
2107,
8946,
15533,
565,
8738,
63,
20,
65,
273,
261,
474,
13,
316,
18,
29925,
4926,
5621,
3639,
364,
261,
474,
277,
33,
21,
31,
277,
32,
2107,
8946,
31,
277,
27245,
288,
1377,
316,
18,
7457,
2160,
12,
28,
1769,
1377,
509,
1835,
273,
1910,
10348,
18,
896,
24,
12294,
2160,
12,
267,
16,
629,
1769,
1377,
509,
2072,
273,
1910,
10348,
18,
896,
24,
12294,
2160,
12,
267,
16,
629,
1769,
1377,
316,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
812,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
2240,
18,
2738,
812,
12,
350,
1769,
565,
316,
273,
394,
8072,
26933,
12,
350,
16,
315,
86,
8863,
540,
368,
855,
326,
2593,
1160,
585,
1446,
3639,
1160,
8526,
1446,
273,
394,
1160,
63,
2138,
15533,
565,
316,
18,
896,
12,
3374,
1769,
565,
309,
261,
3374,
63,
20,
65,
480,
296,
51,
11,
747,
1446,
63,
21,
65,
480,
296,
48,
11,
747,
4202,
1446,
63,
22,
65,
480,
296,
54,
11,
747,
1446,
63,
23,
65,
480,
296,
59,
6134,
565,
288,
1377,
604,
394,
4077,
503,
2932,
3678,
7411,
29118,
8146,
533,
486,
1392,
1199,
1769,
565,
289,
7734,
2
] |
private void normalLayout(IFigure parent) { List children = parent.getChildren(); List childrenGrabbingVertical = new ArrayList(); int numChildren = children.size(); Rectangle clientArea = transposer.t(parent.getClientArea()); int x = clientArea.x; int y = clientArea.y; int availableHeight = clientArea.height; boolean stretching; Dimension prefSizes [] = new Dimension[numChildren]; Dimension minSizes [] = new Dimension[numChildren]; int totalHeight = 0, totalMinHeight = 0, heightOfNonGrowingChildren = 0, heightPerChild = 0, excessHeight = 0; /* * Determine hints. */ int wHint = parent.getClientArea(Rectangle.SINGLETON).width; int hHint = -1; /* * Store the preferred and minimum sizes of all figures. Determine which figures can * be stretched/shrunk. */ for (int i = 0; i < numChildren; i++) { IFigure child = (IFigure)children.get(i); prefSizes[i] = transposer.t(child.getPreferredSize(wHint, hHint)); minSizes[i] = transposer.t(child.getMinimumSize(wHint, hHint)); totalHeight += prefSizes[i].height; totalMinHeight += minSizes[i].height; if (isChildGrowing(child)) { childrenGrabbingVertical.add(child); } else { heightOfNonGrowingChildren += prefSizes[i].height; } } totalHeight += (numChildren - 1) * getSpacing(); totalMinHeight += (numChildren - 1) * getSpacing(); /* * This is the algorithm that determines which figures need to be compressed/stretched * and by how much. */ stretching = totalHeight - Math.max(availableHeight, totalMinHeight) < 0; // So long as there is at least one child that can be grown, figure out how much // height should be given to each growing child. if (!childrenGrabbingVertical.isEmpty()) { // We only want the last child to stretch. So, we remove all but the last // growing child. if (stretching) { Object last = childrenGrabbingVertical.get(childrenGrabbingVertical.size() - 1); childrenGrabbingVertical.clear(); childrenGrabbingVertical.add(last); } boolean childrenDiscarded; // spaceToConsume is the space height available on the palette that is to be // shared by the growing children. int spaceToConsume = availableHeight - heightOfNonGrowingChildren; // heightPerChild is the height that each growing child is to be grown up to heightPerChild = spaceToConsume / childrenGrabbingVertical.size(); // excessHeight is the space leftover at the bottom of the palette after each // growing child has been grown by heightPerChild. excessHeight = spaceToConsume - (heightPerChild * childrenGrabbingVertical.size()); do { childrenDiscarded = false; for (Iterator iter = childrenGrabbingVertical.iterator(); iter.hasNext();) { IFigure childFig = (IFigure) iter.next(); int i = childFig.getParent().getChildren().indexOf(childFig); boolean discardChild = false; if (stretching) { // In case of stretching, if the child's height is greater than // heightPerChild, mark that child as non-growing discardChild = prefSizes[i].height > heightPerChild; } else { // In case of shrinking, if the child's height is smaller than // heightPerChild, mark that child as non-growing discardChild = prefSizes[i].height < heightPerChild; } if (discardChild) { spaceToConsume -= prefSizes[i].height; heightOfNonGrowingChildren += prefSizes[i].height; childrenGrabbingVertical.remove(childFig); childrenDiscarded = true; heightPerChild = spaceToConsume / childrenGrabbingVertical.size(); excessHeight = spaceToConsume - (heightPerChild * childrenGrabbingVertical.size()); break; } } } while (childrenDiscarded); } /* * Do the actual layout, i.e. set the bounds of all the figures. */ for (int i = 0; i < numChildren; i++) { IFigure child = (IFigure)children.get(i); Rectangle newBounds = new Rectangle(x, y, prefSizes[i].width, prefSizes[i].height); /* * Giving the excess available space to the last child causes one problem -- when * it's about to start compressing, the scrollbar might appear, then disappear, * and then re-appear as you keep making the palette shorter pixel by pixel. * But this bug is rare (three compressible drawers have to be expanded * for this bug to appear for one pixel, four for two pixels, five for three, and * so on), and hence can be ignored. Also, for this bug to occur, the last child * would have to be a compressible drawer (one whose min height is not the same * as its pref height). */ if (childrenGrabbingVertical.contains(child)) { // Set the height of growing children. If this is the last one, give it // the excess height. childrenGrabbingVertical.remove(child); if (childrenGrabbingVertical.isEmpty()) { newBounds.height = heightPerChild + excessHeight; } else { newBounds.height = heightPerChild; } } int minWidth = minSizes[i].width; int width = Math.min(prefSizes[i].width, child.getMaximumSize().width); if (getStretchMinorAxis()) width = transposer.t(child.getMaximumSize()).width; width = Math.max(minWidth, Math.min(clientArea.width, width)); newBounds.width = width; int adjust = clientArea.width - width; switch (getMinorAlignment()) { case ALIGN_TOPLEFT: adjust = 0; break; case ALIGN_CENTER: adjust /= 2; break; case ALIGN_BOTTOMRIGHT: break; } newBounds.x += adjust; child.setBounds(transposer.t(newBounds)); y += newBounds.height + getSpacing(); }}
|
11225 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11225/d467df7047a68db6153692c7c1ea88c46e225fe1/PaletteToolbarLayout.java/buggy/org.eclipse.gef/src/org/eclipse/gef/internal/ui/palette/editparts/PaletteToolbarLayout.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
225,
918,
225,
2212,
3744,
12,
5501,
15906,
225,
982,
13,
225,
288,
202,
682,
225,
2325,
225,
273,
225,
982,
18,
588,
4212,
5621,
202,
682,
225,
2325,
14571,
9897,
310,
15704,
225,
273,
225,
394,
225,
2407,
5621,
202,
474,
225,
818,
4212,
225,
273,
225,
2325,
18,
1467,
5621,
202,
19463,
225,
1004,
5484,
225,
273,
225,
906,
5607,
18,
88,
12,
2938,
18,
588,
1227,
5484,
10663,
202,
474,
225,
619,
225,
273,
225,
1004,
5484,
18,
92,
31,
202,
474,
225,
677,
225,
273,
225,
1004,
5484,
18,
93,
31,
202,
474,
225,
2319,
2686,
225,
273,
225,
1004,
5484,
18,
4210,
31,
202,
6494,
225,
31435,
310,
31,
202,
8611,
225,
11307,
11923,
225,
5378,
225,
273,
225,
394,
225,
13037,
63,
2107,
4212,
15533,
202,
8611,
225,
1131,
11923,
225,
5378,
225,
273,
225,
394,
225,
13037,
63,
2107,
4212,
15533,
202,
474,
225,
2078,
2686,
225,
273,
225,
374,
16,
225,
2078,
2930,
2686,
225,
273,
225,
374,
16,
225,
2072,
951,
3989,
30948,
310,
4212,
225,
273,
225,
374,
16,
21114,
202,
4210,
2173,
1763,
225,
273,
225,
374,
16,
225,
23183,
2686,
225,
273,
225,
374,
31,
202,
202,
20308,
202,
225,
380,
225,
10229,
225,
13442,
18,
202,
225,
1195,
202,
474,
225,
341,
7002,
225,
273,
225,
982,
18,
588,
1227,
5484,
12,
19463,
18,
20184,
56,
673,
2934,
2819,
31,
202,
474,
225,
366,
7002,
225,
273,
225,
300,
21,
31,
540,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
225,
918,
225,
2212,
3744,
12,
5501,
15906,
225,
982,
13,
225,
288,
202,
682,
225,
2325,
225,
273,
225,
982,
18,
588,
4212,
5621,
202,
682,
225,
2325,
14571,
9897,
310,
15704,
225,
273,
225,
394,
225,
2407,
5621,
202,
474,
225,
818,
4212,
225,
273,
225,
2325,
18,
1467,
5621,
202,
19463,
225,
1004,
5484,
225,
273,
225,
906,
5607,
18,
88,
12,
2938,
18,
588,
1227,
5484,
10663,
202,
474,
225,
619,
225,
273,
225,
1004,
5484,
18,
92,
31,
202,
474,
225,
677,
225,
273,
225,
1004,
5484,
18,
93,
31,
202,
474,
225,
2319,
2686,
225,
273,
225,
1004,
5484,
18,
4210,
31,
202,
6494,
225,
31435,
310,
31,
202,
8611,
225,
11307,
2
] |
||
PreparedDataSourceQuery preparedQuery;
|
static PreparedDataSourceQuery newInstance( DataEngineImpl dataEngine, IQueryDefinition queryDefn ) throws DataException { assert dataEngine != null; assert queryDefn != null; IBaseDataSetDesign dset = dataEngine.getDataSetDesign( queryDefn.getDataSetName( ) ); if ( dset == null ) { DataException e = new DataException( ResourceConstants.UNDEFINED_DATA_SET, queryDefn.getDataSetName( ) ); logger.logp( Level.WARNING, PreparedDataSourceQuery.class.getName( ), "newInstance", "Data set {" + queryDefn.getDataSetName( ) + "} is not defined", e ); throw e; } if ( dset instanceof IScriptDataSetDesign ) { return new PreparedScriptDSQuery( dataEngine, queryDefn, dset ); } if ( dset instanceof IOdaDataSetDesign ) { return new PreparedExtendedDSQuery( dataEngine, queryDefn, dset ); } else { DataException e = new DataException( ResourceConstants.UNSUPPORTED_DATASET_TYPE, dset.getName() ); logger.logp( Level.FINE, PreparedDataSourceQuery.class.getName( ), "newInstance", "Unsupported data source type", e ); throw e; } }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/5c91f630f2a1e64841fe5b7090c1a87e65f1967d/PreparedDataSourceQuery.java/buggy/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/PreparedDataSourceQuery.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
13893,
8597,
1138,
8208,
1138,
31,
13893,
8597,
1138,
13893,
8597,
1138,
8208,
1138,
31,
5984,
12,
13893,
8597,
1138,
8208,
1138,
31,
1910,
4410,
2828,
13893,
8597,
1138,
8208,
1138,
31,
501,
4410,
16,
1082,
202,
45,
1138,
1852,
13893,
8597,
1138,
8208,
1138,
31,
843,
3262,
82,
13893,
8597,
1138,
8208,
1138,
31,
262,
13893,
8597,
1138,
8208,
1138,
31,
1216,
13893,
8597,
1138,
8208,
1138,
31,
1910,
503,
202,
95,
202,
202,
11231,
13893,
8597,
1138,
8208,
1138,
31,
501,
4410,
13893,
8597,
1138,
8208,
1138,
31,
480,
13893,
8597,
1138,
8208,
1138,
31,
446,
31,
202,
202,
11231,
13893,
8597,
1138,
8208,
1138,
31,
843,
3262,
82,
13893,
8597,
1138,
8208,
1138,
31,
480,
13893,
8597,
1138,
8208,
1138,
31,
446,
31,
9506,
202,
45,
2171,
13676,
15478,
13893,
8597,
1138,
8208,
1138,
31,
23626,
13893,
8597,
1138,
8208,
1138,
31,
273,
13893,
8597,
1138,
8208,
1138,
31,
501,
4410,
18,
588,
13676,
15478,
12,
13893,
8597,
1138,
8208,
1138,
31,
843,
3262,
82,
18,
588,
751,
11924,
12,
13893,
8597,
1138,
8208,
1138,
31,
262,
13893,
8597,
1138,
8208,
1138,
31,
11272,
202,
202,
430,
13893,
8597,
1138,
8208,
1138,
31,
261,
13893,
8597,
1138,
8208,
1138,
31,
23626,
13893,
8597,
1138,
8208,
1138,
31,
422,
13893,
8597,
1138,
8208,
1138,
31,
446,
13893,
8597,
1138,
8208,
1138,
31,
262,
202,
202,
95,
1082,
202,
22480,
13893,
8597,
1138,
8208,
1138,
31,
425,
13893,
8597,
1138,
8208,
1138,
31,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
13893,
8597,
1138,
8208,
1138,
31,
13893,
8597,
1138,
13893,
8597,
1138,
8208,
1138,
31,
5984,
12,
13893,
8597,
1138,
8208,
1138,
31,
1910,
4410,
2828,
13893,
8597,
1138,
8208,
1138,
31,
501,
4410,
16,
1082,
202,
45,
1138,
1852,
13893,
8597,
1138,
8208,
1138,
31,
843,
3262,
82,
13893,
8597,
1138,
8208,
1138,
31,
262,
13893,
8597,
1138,
8208,
1138,
31,
1216,
13893,
8597,
1138,
8208,
1138,
31,
1910,
503,
202,
95,
202,
202,
11231,
13893,
8597,
1138,
8208,
1138,
31,
501,
4410,
13893,
8597,
1138,
8208,
1138,
31,
480,
13893,
8597,
1138,
8208,
1138,
31,
446,
31,
202,
202,
11231,
13893,
8597,
1138,
8208,
1138,
31,
843,
3262,
82,
13893,
8597,
1138,
8208,
1138,
2
] |
|
if (getInterpreterContext().isEmptyResultSet()) {
|
if (!getInterpreterContext().isGotResults()) {
|
public void start(String uri, String localname, String qName, Attributes attributes) throws SAXException { addAllDefaultElementHandlers(); // Only forward if the result set is empty if (getInterpreterContext().isEmptyResultSet()) { setForward(true); } }
|
54445 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54445/db7f7557c284d24375e77845800480bfd3cc8d72/NoResultsInterpreter.java/buggy/src/java/org/orbeon/oxf/processor/sql/interpreters/NoResultsInterpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
787,
12,
780,
2003,
16,
514,
1191,
529,
16,
514,
22914,
16,
9055,
1677,
13,
1216,
14366,
288,
3639,
5428,
1868,
1046,
6919,
5621,
3639,
368,
5098,
5104,
309,
326,
563,
444,
353,
1008,
3639,
309,
16051,
588,
30010,
1042,
7675,
291,
15617,
3447,
10756,
288,
5411,
444,
8514,
12,
3767,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
787,
12,
780,
2003,
16,
514,
1191,
529,
16,
514,
22914,
16,
9055,
1677,
13,
1216,
14366,
288,
3639,
5428,
1868,
1046,
6919,
5621,
3639,
368,
5098,
5104,
309,
326,
563,
444,
353,
1008,
3639,
309,
16051,
588,
30010,
1042,
7675,
291,
15617,
3447,
10756,
288,
5411,
444,
8514,
12,
3767,
1769,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Log.log(Log.NOTICE,this,e);
|
Log.log(Log.ERROR,this,e); } finally { try { if(in != null) in.close(); } catch(IOException io) { Log.log(Log.ERROR,this,io); }
|
private void loadTOC(DefaultMutableTreeNode root, String path) { TOCHandler h = new TOCHandler(root,MiscUtilities.getParentOfPath(path)); XmlParser parser = new XmlParser(); parser.setHandler(h); try { parser.parse(null, null, new InputStreamReader( new URL(helpViewer.getBaseURL() + '/' + path).openStream())); } catch(XmlException xe) { int line = xe.getLine(); String message = xe.getMessage(); Log.log(Log.ERROR,this,path + ':' + line + ": " + message); } catch(Exception e) { Log.log(Log.NOTICE,this,e); } } //}}}
|
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/200e7b0770667ad6c45a128e719a21fb6db1cf4d/HelpTOCPanel.java/buggy/org/gjt/sp/jedit/help/HelpTOCPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1262,
4296,
39,
12,
1868,
19536,
12513,
1365,
16,
514,
589,
13,
202,
95,
202,
202,
4296,
39,
1503,
366,
273,
394,
8493,
39,
1503,
12,
3085,
16,
11729,
71,
11864,
18,
588,
3054,
951,
743,
12,
803,
10019,
202,
202,
4432,
2678,
2082,
273,
394,
5714,
2678,
5621,
202,
202,
4288,
18,
542,
1503,
12,
76,
1769,
202,
202,
698,
202,
202,
95,
1082,
202,
4288,
18,
2670,
12,
2011,
16,
446,
16,
394,
15322,
12,
9506,
202,
2704,
1976,
12,
5201,
18415,
18,
588,
29064,
1435,
9506,
202,
15,
2023,
397,
589,
2934,
3190,
1228,
1435,
10019,
202,
202,
97,
202,
202,
14683,
12,
4432,
503,
20517,
13,
202,
202,
95,
1082,
202,
474,
980,
273,
20517,
18,
588,
1670,
5621,
1082,
202,
780,
883,
273,
20517,
18,
24906,
5621,
1082,
202,
1343,
18,
1330,
12,
1343,
18,
3589,
16,
2211,
16,
803,
397,
3921,
397,
980,
9506,
202,
15,
6398,
315,
397,
883,
1769,
202,
202,
97,
202,
202,
14683,
12,
503,
425,
13,
202,
202,
95,
1082,
202,
1343,
18,
1330,
12,
1343,
18,
20559,
16,
2211,
16,
73,
1769,
202,
202,
97,
202,
97,
368,
9090,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1262,
4296,
39,
12,
1868,
19536,
12513,
1365,
16,
514,
589,
13,
202,
95,
202,
202,
4296,
39,
1503,
366,
273,
394,
8493,
39,
1503,
12,
3085,
16,
11729,
71,
11864,
18,
588,
3054,
951,
743,
12,
803,
10019,
202,
202,
4432,
2678,
2082,
273,
394,
5714,
2678,
5621,
202,
202,
4288,
18,
542,
1503,
12,
76,
1769,
202,
202,
698,
202,
202,
95,
1082,
202,
4288,
18,
2670,
12,
2011,
16,
446,
16,
394,
15322,
12,
9506,
202,
2704,
1976,
12,
5201,
18415,
18,
588,
29064,
1435,
9506,
202,
15,
2023,
397,
589,
2934,
3190,
1228,
1435,
10019,
202,
202,
97,
202,
202,
14683,
12,
4432,
503,
20517,
13,
202,
202,
95,
1082,
202,
2
] |
try { setName((String) evalAttr("name", getNameExpr(), String.class)); } catch (NullAttributeException ex) { }
|
if ((string = EvalHelper.evalString("locale", getLocaleExpr(), this, pageContext)) != null) setLocale(string);
|
private void evaluateExpressions() throws JspException { try { setArg0((String) evalAttr("arg0", getArg0Expr(), String.class)); } catch (NullAttributeException ex) { } try { setArg1((String) evalAttr("arg1", getArg1Expr(), String.class)); } catch (NullAttributeException ex) { } try { setArg2((String) evalAttr("arg2", getArg2Expr(), String.class)); } catch (NullAttributeException ex) { } try { setArg3((String) evalAttr("arg3", getArg3Expr(), String.class)); } catch (NullAttributeException ex) { } try { setArg4((String) evalAttr("arg4", getArg4Expr(), String.class)); } catch (NullAttributeException ex) { } try { setBundle((String) evalAttr("bundle", getBundleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setKey((String) evalAttr("key", getKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setLocale((String) evalAttr("locale", getLocaleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setName((String) evalAttr("name", getNameExpr(), String.class)); } catch (NullAttributeException ex) { } try { setProperty((String) evalAttr("property", getPropertyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setScope((String) evalAttr("scope", getScopeExpr(), String.class)); } catch (NullAttributeException ex) { } }
|
2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/022bd23c954cf673e53731849d562b3c295473f1/ELMessageTag.java/clean/contrib/struts-el/src/share/org/apache/strutsel/taglib/bean/ELMessageTag.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
4117,
20,
12443,
780,
13,
5302,
3843,
2932,
3175,
20,
3113,
336,
4117,
20,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
4117,
21,
12443,
780,
13,
5302,
3843,
2932,
3175,
21,
3113,
336,
4117,
21,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
4117,
22,
12443,
780,
13,
5302,
3843,
2932,
3175,
22,
3113,
336,
4117,
22,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
4117,
23,
12443,
780,
13,
5302,
3843,
2932,
3175,
23,
3113,
336,
4117,
23,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
4117,
24,
12443,
780,
13,
5302,
3843,
2932,
3175,
24,
3113,
336,
4117,
24,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
3405,
12443,
780,
13,
5302,
3843,
2932,
9991,
3113,
10946,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
16696,
12443,
780,
13,
5302,
3843,
2932,
856,
3113,
3579,
4742,
9334,
514,
18,
1106,
10019,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
4117,
20,
12443,
780,
13,
5302,
3843,
2932,
3175,
20,
3113,
336,
4117,
20,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
4117,
21,
12443,
780,
13,
5302,
3843,
2932,
3175,
21,
3113,
336,
4117,
21,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
4117,
22,
12443,
780,
13,
5302,
3843,
2932,
3175,
22,
3113,
336,
4117,
22,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
2
] |
FileSystemConfiguration[] configs = new FileSystemConfiguration[registeredContributions .size()]; registeredContributions.toArray(configs); return configs;
|
if (allConfigurations == null) { allConfigurations = new FileSystemConfiguration[registeredContributions .size() + 1]; allConfigurations[0] = defaultConfiguration; Iterator iterator = registeredContributions.iterator(); int index = 0; while (iterator.hasNext()) { allConfigurations[++index] = (FileSystemConfiguration) iterator .next(); } } return allConfigurations;
|
public FileSystemConfiguration[] getConfigurations() { FileSystemConfiguration[] configs = new FileSystemConfiguration[registeredContributions .size()]; registeredContributions.toArray(configs); return configs; }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/fb35ee74015f52aab18680d67bff3375e5438bea/FileSystemSupportRegistry.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/filesystem/FileSystemSupportRegistry.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
10931,
1750,
8526,
336,
9698,
1435,
288,
202,
202,
11785,
1750,
8526,
6784,
273,
394,
10931,
1750,
63,
14327,
442,
15326,
9506,
202,
18,
1467,
1435,
15533,
202,
202,
14327,
442,
15326,
18,
31447,
12,
10955,
1769,
202,
202,
2463,
6784,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
10931,
1750,
8526,
336,
9698,
1435,
288,
202,
202,
11785,
1750,
8526,
6784,
273,
394,
10931,
1750,
63,
14327,
442,
15326,
9506,
202,
18,
1467,
1435,
15533,
202,
202,
14327,
442,
15326,
18,
31447,
12,
10955,
1769,
202,
202,
2463,
6784,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (i-ell >= 0) { Mi_YY.zMult(alpha_Y_Array[i-ell-base],newAlpha_Y,1,0,true);
|
if (segEnd-ell >= 0) { Mi_YY.zMult(alpha_Y_Array[segEnd-ell-base],newAlpha_Y,1,0,true);
|
protected double computeFunctionGradient(double lambda[], double grad[]) { try { FeatureGeneratorNested featureGenNested = (FeatureGeneratorNested)featureGenerator; double logli = 0; for (int f = 0; f < lambda.length; f++) { grad[f] = -1*lambda[f]*params.invSigmaSquare; logli -= ((lambda[f]*lambda[f])*params.invSigmaSquare)/2; } diter.startScan(); int numRecord; for (numRecord = 0; diter.hasNext(); numRecord++) { CandSegDataSequence dataSeq = (CandSegDataSequence)diter.next(); if (params.debugLvl > 1) Util.printDbg("Read next seq: " + numRecord + " logli " + logli); for (int f = 0; f < lambda.length; f++) ExpF[f] = RobustMath.LOG0; int base = -1; if ((alpha_Y_Array == null) || (alpha_Y_Array.length < dataSeq.length()-base)) { alpha_Y_Array = new DoubleMatrix1D[2*dataSeq.length()]; for (int i = 0; i < alpha_Y_Array.length; i++) alpha_Y_Array[i] = new LogSparseDoubleMatrix1D(numY); } if ((beta_Y == null) || (beta_Y.length < dataSeq.length())) { beta_Y = new DoubleMatrix1D[2*dataSeq.length()]; for (int i = 0; i < beta_Y.length; i++) beta_Y[i] = new LogSparseDoubleMatrix1D(numY); } // compute beta values in a backward scan. // also scale beta-values as much as possible to avoid numerical overflows beta_Y[dataSeq.length()-1].assign(0); for (int i = dataSeq.length()-2; i >= 0; i--) { beta_Y[i].assign(RobustMath.LOG0); } CandidateSegments candidateSegs = (CandidateSegments)dataSeq; for (int segEnd = dataSeq.length()-1; segEnd >= 0; segEnd--) { for (int nc = candidateSegs.numCandSegmentsEndingAt(segEnd)-1; nc >= 0; nc--) { int segStart = candidateSegs.candSegmentStart(segEnd,nc); int ell = segEnd-segStart+1; int i = segStart-1; if (i < 0) continue; // compute the Mi matrix computeLogMi(dataSeq,i,i+ell,featureGenNested,lambda,Mi_YY,Ri_Y); tmp_Y.assign(beta_Y[i+ell]); tmp_Y.assign(Ri_Y,sumFunc); Mi_YY.zMult(tmp_Y, beta_Y[i],1,1,false); } } double thisSeqLogli = 0; boolean noneFired=true; alpha_Y_Array[0].assign(0); for (int i = 0; i < dataSeq.length(); i++) { alpha_Y_Array[i-base].assign(RobustMath.LOG0); for (int nc = candidateSegs.numCandSegmentsEndingAt(i)-1; nc >= 0; nc--) { int ell = i - candidateSegs.candSegmentStart(i,nc)+1; // compute the Mi matrix computeLogMi(dataSeq,i-ell,i,featureGenNested,lambda,Mi_YY,Ri_Y); boolean mAdded = false, rAdded = false; if (i-ell >= 0) { Mi_YY.zMult(alpha_Y_Array[i-ell-base],newAlpha_Y,1,0,true); newAlpha_Y.assign(Ri_Y,sumFunc); } else newAlpha_Y.assign(Ri_Y); alpha_Y_Array[i-base].assign(newAlpha_Y, RobustMath.logSumExpFunc); // find features that fire at this position.. featureGenNested.startScanFeaturesAt(dataSeq, i-ell,i); while (featureGenNested.hasNext()) { Feature feature = featureGenNested.next(); int f = feature.index(); int yp = feature.y(); int yprev = feature.yprev(); float val = feature.value(); if (dataSeq.holdsInTrainingData(feature,i-ell,i)) { grad[f] += val; thisSeqLogli += val*lambda[f]; noneFired=false; /* double lZx = alpha_Y_Array[i-base].zSum(); if ((thisSeqLogli > lZx) || (numRecord == 3)) { System.out.println("This is shady: something is wrong Pr(y|x) > 1!"); System.out.println("Sequence likelihood " + thisSeqLogli + " " + lZx + " " + Math.exp(lZx)); System.out.println("This Alpha-i " + alpha_Y_Array[i-base].toString()); } */ } if (yprev < 0) { ExpF[f] = RobustMath.logSumExp(ExpF[f], (newAlpha_Y.get(yp)+Math.log(val)+beta_Y[i].get(yp))); } else { ExpF[f] = RobustMath.logSumExp(ExpF[f], (alpha_Y_Array[i-ell-base].get(yprev)+Ri_Y.get(yp)+Mi_YY.get(yprev,yp)+Math.log(val)+beta_Y[i].get(yp))); } if (params.debugLvl > 3) { System.out.println(f + " " + feature + " " + dataSeq.holdsInTrainingData(feature,i-ell,i)); } } } if (params.debugLvl > 2) { System.out.println("Alpha-i " + alpha_Y_Array[i-base].toString()); System.out.println("Ri " + Ri_Y.toString()); System.out.println("Mi " + Mi_YY.toString()); System.out.println("Beta-i " + beta_Y[i].toString()); } } double lZx = alpha_Y_Array[dataSeq.length()-1-base].zSum(); thisSeqLogli -= lZx; logli += thisSeqLogli; // update grad. for (int f = 0; f < grad.length; f++) grad[f] -= Math.exp(ExpF[f]-lZx); if (noneFired) { System.out.println("WARNING: no features fired in the training set"); } if (thisSeqLogli > 0) { System.out.println("ERROR: something is wrong Pr(y|x) > 1!"); } if (params.debugLvl > 1 || (thisSeqLogli > 0)) { System.out.println("Sequence likelihood " + thisSeqLogli + " " + lZx + " " + Math.exp(lZx)); System.out.println("Last Alpha-i " + alpha_Y_Array[dataSeq.length()-1-base].toString()); } } if (params.debugLvl > 2) { for (int f = 0; f < lambda.length; f++) System.out.print(lambda[f] + " "); System.out.println(" :x"); for (int f = 0; f < lambda.length; f++) System.out.print(grad[f] + " "); System.out.println(" :g"); } if (params.debugLvl > 0) { if (icall == 0) { Util.printDbg("Number of training records " + numRecord); } Util.printDbg("Iter " + icall + " loglikelihood "+logli + " gnorm " + norm(grad) + " xnorm "+ norm(lambda)); } return logli; } catch (Exception e) { e.printStackTrace(); System.exit(0); } return 0; }
|
45325 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45325/d7bc52b4a1c6fa53dd0b350fcd671b3128814e38/SegmentTrainer.java/buggy/src/iitb/CRF/SegmentTrainer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1645,
3671,
2083,
15651,
12,
9056,
3195,
63,
6487,
1645,
6058,
63,
5717,
288,
3639,
775,
288,
5411,
7881,
3908,
8649,
2572,
7642,
8649,
273,
261,
4595,
3908,
8649,
13,
7238,
3908,
31,
5411,
1645,
613,
549,
273,
374,
31,
5411,
364,
261,
474,
284,
273,
374,
31,
284,
411,
3195,
18,
2469,
31,
284,
27245,
288,
7734,
6058,
63,
74,
65,
273,
300,
21,
14,
14661,
63,
74,
5772,
2010,
18,
5768,
24491,
22255,
31,
7734,
613,
549,
3947,
14015,
14661,
63,
74,
5772,
14661,
63,
74,
5717,
14,
2010,
18,
5768,
24491,
22255,
13176,
22,
31,
5411,
289,
5411,
302,
2165,
18,
1937,
7972,
5621,
5411,
509,
818,
2115,
31,
5411,
364,
261,
2107,
2115,
273,
374,
31,
302,
2165,
18,
5332,
2134,
5621,
818,
2115,
27245,
288,
7734,
385,
464,
3289,
751,
4021,
501,
6926,
273,
261,
39,
464,
3289,
751,
4021,
13,
72,
2165,
18,
4285,
5621,
7734,
309,
261,
2010,
18,
4148,
18889,
405,
404,
13,
10792,
3564,
18,
1188,
4331,
75,
2932,
1994,
1024,
3833,
30,
315,
397,
818,
2115,
397,
315,
613,
549,
315,
397,
613,
549,
1769,
7734,
364,
261,
474,
284,
273,
374,
31,
284,
411,
3195,
18,
2469,
31,
284,
27245,
10792,
7784,
42,
63,
74,
65,
273,
19686,
641,
10477,
18,
4842,
20,
31,
27573,
509,
1026,
273,
300,
21,
31,
7734,
309,
14015,
5429,
67,
61,
67,
1076,
422,
446,
13,
747,
261,
5429,
67,
61,
67,
1076,
18,
2469,
411,
501,
6926,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1645,
3671,
2083,
15651,
12,
9056,
3195,
63,
6487,
1645,
6058,
63,
5717,
288,
3639,
775,
288,
5411,
7881,
3908,
8649,
2572,
7642,
8649,
273,
261,
4595,
3908,
8649,
13,
7238,
3908,
31,
5411,
1645,
613,
549,
273,
374,
31,
5411,
364,
261,
474,
284,
273,
374,
31,
284,
411,
3195,
18,
2469,
31,
284,
27245,
288,
7734,
6058,
63,
74,
65,
273,
300,
21,
14,
14661,
63,
74,
5772,
2010,
18,
5768,
24491,
22255,
31,
7734,
613,
549,
3947,
14015,
14661,
63,
74,
5772,
14661,
63,
74,
5717,
14,
2010,
18,
5768,
24491,
22255,
13176,
22,
31,
5411,
289,
5411,
302,
2165,
18,
1937,
7972,
5621,
5411,
509,
818,
2115,
31,
5411,
364,
261,
2107,
2115,
2
] |
asm.BYTE, 0, T0);
|
asm.BYTE, NO_SLOT, T0);
|
private final boolean genMagic (VM_MethodReference m) { VM_Atom methodName = m.getName(); if (m.getType() == VM_TypeReference.Address) { // Address magic VM_TypeReference[] types = m.getParameterTypes(); // Loads all take the form: // ..., Address, [Offset] -> ..., Value if (methodName == VM_MagicNames.loadAddress || methodName == VM_MagicNames.prepareAddress || methodName == VM_MagicNames.prepareObjectReference || methodName == VM_MagicNames.loadWord || methodName == VM_MagicNames.loadObjectReference || methodName == VM_MagicNames.prepareWord || methodName == VM_MagicNames.loadInt || methodName == VM_MagicNames.prepareInt || methodName == VM_MagicNames.loadFloat) { if (types.length == 0) { // No offset asm.emitPOP_Reg(T0); // address asm.emitPUSH_RegInd(T0); // pushes [T0+0] } else { // Load at offset asm.emitPOP_Reg (S0); // offset asm.emitPOP_Reg (T0); // object ref asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, 0); // pushes [T0+S0] } return true; } if (methodName == VM_MagicNames.loadByte) { if (types.length == 0) { // No offset asm.emitPOP_Reg (T0); // base asm.emitMOVZX_Reg_RegInd_Byte(T0, T0) ; asm.emitPUSH_Reg (T0); } else { // Load at offset asm.emitPOP_Reg (S0); // offset asm.emitPOP_Reg (T0); // base asm.emitMOVZX_Reg_RegIdx_Byte(T0, T0, S0, asm.BYTE, 0); // load and zero extend byte [T0+S0] asm.emitPUSH_Reg (T0); } return true; } if (methodName == VM_MagicNames.loadShort || methodName == VM_MagicNames.loadChar) { if (types.length == 0) { // No offset asm.emitPOP_Reg (T0); // base asm.emitMOVZX_Reg_RegInd_Word(T0, T0); asm.emitPUSH_Reg (T0); } else { // Load at offset asm.emitPOP_Reg (S0); // offset asm.emitPOP_Reg (T0); // base asm.emitMOVZX_Reg_RegIdx_Word(T0, T0, S0, asm.BYTE, 0); // load and zero extend word [T0+S0] asm.emitPUSH_Reg (T0); } return true; } if (methodName == VM_MagicNames.loadLong || methodName == VM_MagicNames.loadDouble) { if (types.length == 0) { // No offset throw new RuntimeException("Magic not implemented"); } else { // Load at offset asm.emitPOP_Reg (S0); // offset asm.emitPOP_Reg (T0); // base asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, 4); // pushes [T0+S0+4] asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, 0); // pushes [T0+S0] } return true; } // Stores all take the form: // ..., Address, [Offset], Value -> ... if (methodName == VM_MagicNames.store) { // Always at least one parameter to a store. // First parameter is the type to be stored. VM_TypeReference storeType = types[0]; if (storeType == VM_TypeReference.Int || storeType == VM_TypeReference.Address || storeType == VM_TypeReference.ObjectReference || storeType == VM_TypeReference.Word || storeType == VM_TypeReference.Float) { if (types.length == 1) { // No offset asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // address asm.emitMOV_RegInd_Reg(S0,T0); // [S0+0] <- T0 } else { // Store at offset asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(T1); // address asm.emitMOV_RegIdx_Reg(T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- T0 } return true; } if (storeType == VM_TypeReference.Byte) { if (types.length == 1) { // No offset asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(T1); // base asm.emitMOV_RegInd_Reg_Byte(T1, T0); } else { // Store at offset asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(T1); // base asm.emitMOV_RegIdx_Reg_Byte(T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- (byte) T0 } return true; } if (storeType == VM_TypeReference.Short || storeType == VM_TypeReference.Char) { if (types.length == 1) { // No offset asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(T1); // base asm.emitMOV_RegInd_Reg_Word(T1, T0); } else { // Store at offset asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(T1); // base asm.emitMOV_RegIdx_Reg_Word(T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- (word) T0 } return true; } if (storeType == VM_TypeReference.Double || storeType == VM_TypeReference.Long) { if (types.length == 1) { // No offset throw new RuntimeException("Magic not implemented"); } else { // Store at offset asm.emitMOV_Reg_RegDisp(T0, SP, +4); // value high asm.emitMOV_Reg_RegInd (S0, SP); // offset asm.emitMOV_Reg_RegDisp(T1, SP, +12); // base asm.emitMOV_RegIdx_Reg (T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- T0 asm.emitMOV_Reg_RegDisp(T0, SP, +8); // value low asm.emitMOV_RegIdx_Reg (T1, S0, asm.BYTE, 4, T0); // [T1+S0+4] <- T0 asm.emitADD_Reg_Imm (SP, WORDSIZE * 4); // pop stack locations } return true; } } else if (methodName == VM_MagicNames.attempt) { // All attempts are similar 32 bit values. if (types.length == 3) { // Offset passed asm.emitPOP_Reg (S0); // S0 = offset } asm.emitPOP_Reg (T1); // newVal asm.emitPOP_Reg (EAX); // oldVal (EAX is implicit arg to LCMPX if (types.length == 3) { asm.emitADD_Reg_RegInd(S0, SP); // S0 += base } else { // No offset asm.emitMOV_Reg_RegInd(S0, SP); // S0 = base } asm.emitLockNextInstruction(); asm.emitCMPXCHG_RegInd_Reg (S0, T1); // atomic compare-and-exchange asm.emitMOV_RegInd_Imm (SP, 0); // 'push' false (overwriting base) VM_ForwardReference fr = asm.forwardJcc(asm.NE); // skip if compare fails asm.emitMOV_RegInd_Imm (SP, 1); // 'push' true (overwriting base) fr.resolve(asm); return true; } } if (methodName == VM_MagicNames.attemptInt || methodName == VM_MagicNames.attemptObject || methodName == VM_MagicNames.attemptAddress || methodName == VM_MagicNames.attemptWord) { // attempt gets called with four arguments: base, offset, oldVal, newVal // returns ([base+offset] == oldVal) // if ([base+offset] == oldVal) [base+offset] := newVal // (operation on memory is atomic) asm.emitPOP_Reg (T1); // newVal asm.emitPOP_Reg (EAX); // oldVal (EAX is implicit arg to LCMPXCNG asm.emitPOP_Reg (S0); // S0 = offset asm.emitADD_Reg_RegInd(S0, SP); // S0 += base asm.emitLockNextInstruction(); asm.emitCMPXCHG_RegInd_Reg (S0, T1); // atomic compare-and-exchange asm.emitMOV_RegInd_Imm (SP, 0); // 'push' false (overwriting base) VM_ForwardReference fr = asm.forwardJcc(asm.NE); // skip if compare fails asm.emitMOV_RegInd_Imm (SP, 1); // 'push' true (overwriting base) fr.resolve(asm); return true; } if (methodName == VM_MagicNames.invokeMain) { // invokeMain gets "called" with two arguments: // String[] mainArgs // the arguments to the main method // INSTRUCTION[] mainCode // the code for the main method asm.emitPOP_Reg (S0); // genParameterRegisterLoad(1); // pass 1 parameter word asm.emitCALL_Reg(S0); // branches to mainCode with mainArgs on the stack return true; } if (methodName == VM_MagicNames.saveThreadState) { int offset = VM_Entrypoints.saveThreadStateInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(1); // pass 1 parameter word asm.emitCALL_RegDisp(JTOC, offset); return true; } if (methodName == VM_MagicNames.threadSwitch) { int offset = VM_Entrypoints.threadSwitchInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(2); // pass 2 parameter words asm.emitCALL_RegDisp(JTOC, offset); return true; } if (methodName == VM_MagicNames.restoreHardwareExceptionState) { int offset = VM_Entrypoints.restoreHardwareExceptionStateInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(1); // pass 1 parameter word asm.emitCALL_RegDisp(JTOC, offset); return true; } if (methodName == VM_MagicNames.invokeClassInitializer) { asm.emitPOP_Reg (S0); asm.emitCALL_Reg(S0); // call address just popped return true; } if (m.getType() == VM_TypeReference.SysCall) { VM_TypeReference[] args = m.getParameterTypes(); VM_TypeReference rtype = m.getReturnType(); int offsetToJavaArg = 3*WORDSIZE; // the three regs saved in (2) int paramBytes = 0; // (1) save three RVM nonvolatile/special registers // we don't have to save EBP: the callee will // treat it as a framepointer and save/restore // it for us. asm.emitPUSH_Reg(EBX); asm.emitPUSH_Reg(ESI); asm.emitPUSH_Reg(EDI); // (2) Push args to target function (reversed) for (int i=args.length-1; i>=0; i--) { VM_TypeReference arg = args[i]; if (arg.isLongType() || arg.isDoubleType()) { asm.emitPUSH_RegDisp(SP, offsetToJavaArg + 4); asm.emitPUSH_RegDisp(SP, offsetToJavaArg + 4); offsetToJavaArg += 16; paramBytes += 8; } else { asm.emitPUSH_RegDisp(SP, offsetToJavaArg); offsetToJavaArg += 8; paramBytes += 4; } } // (3) invoke target function VM_Field ip = VM_Entrypoints.getSysCallField(m.getName().toString()); asm.emitMOV_Reg_RegDisp(S0, JTOC, VM_Entrypoints.the_boot_recordField.getOffsetAsInt()); asm.emitCALL_RegDisp(S0, ip.getOffsetAsInt()); // (4) pop space for arguments asm.emitADD_Reg_Imm(SP, paramBytes); // (5) restore RVM registers asm.emitPOP_Reg(EDI); asm.emitPOP_Reg(ESI); asm.emitPOP_Reg(EBX); // (6) pop expression stack asm.emitADD_Reg_Imm(SP, paramBytes); // (7) push return value if (rtype.isLongType()) { asm.emitPUSH_Reg(T1); asm.emitPUSH_Reg(T0); } else if (rtype.isDoubleType()) { asm.emitSUB_Reg_Imm(SP, 8); asm.emitFSTP_RegInd_Reg_Quad(SP, FP0); } else if (rtype.isFloatType()) { asm.emitSUB_Reg_Imm(SP, 4); asm.emitFSTP_RegInd_Reg(SP, FP0); } else if (!rtype.isVoidType()) { asm.emitPUSH_Reg(T0); } return true; } if (methodName == VM_MagicNames.getFramePointer) { asm.emitLEA_Reg_RegDisp(S0, SP, fp2spOffset(0)); asm.emitPUSH_Reg (S0); return true; } if (methodName == VM_MagicNames.getCallerFramePointer) { asm.emitPOP_Reg(T0); // Callee FP asm.emitPUSH_RegDisp(T0, STACKFRAME_FRAME_POINTER_OFFSET); // Caller FP return true; } if (methodName == VM_MagicNames.setCallerFramePointer) { asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // fp asm.emitMOV_RegDisp_Reg(S0, STACKFRAME_FRAME_POINTER_OFFSET, T0); // [S0+SFPO] <- T0 return true; } if (methodName == VM_MagicNames.getCompiledMethodID) { asm.emitPOP_Reg(T0); // Callee FP asm.emitPUSH_RegDisp(T0, STACKFRAME_METHOD_ID_OFFSET); // Callee CMID return true; } if (methodName == VM_MagicNames.setCompiledMethodID) { asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // fp asm.emitMOV_RegDisp_Reg(S0, STACKFRAME_METHOD_ID_OFFSET, T0); // [S0+SMIO] <- T0 return true; } if (methodName == VM_MagicNames.getReturnAddressLocation) { asm.emitPOP_Reg(T0); // Callee FP asm.emitADD_Reg_Imm(T0, STACKFRAME_RETURN_ADDRESS_OFFSET); // location containing callee return address asm.emitPUSH_Reg(T0); // Callee return address return true; } if (methodName == VM_MagicNames.getTocPointer || methodName == VM_MagicNames.getJTOC ) { asm.emitPUSH_Reg(JTOC); return true; } // get the processor register (PR) if (methodName == VM_MagicNames.getProcessorRegister) { asm.emitPUSH_Reg(PR); return true; } // set the processor register (PR) if (methodName == VM_MagicNames.setProcessorRegister) { asm.emitPOP_Reg(PR); return true; } // Get the value in ESI if (methodName == VM_MagicNames.getESIAsProcessor) { asm.emitPUSH_Reg(ESI); return true; } // Set the value in ESI if (methodName == VM_MagicNames.setESIAsProcessor) { asm.emitPOP_Reg(ESI); return true; } if (methodName == VM_MagicNames.getIntAtOffset || methodName == VM_MagicNames.getWordAtOffset || methodName == VM_MagicNames.getObjectAtOffset || methodName == VM_MagicNames.getObjectArrayAtOffset || methodName == VM_MagicNames.prepareInt || methodName == VM_MagicNames.prepareObject || methodName == VM_MagicNames.prepareAddress || methodName == VM_MagicNames.prepareWord) { asm.emitPOP_Reg (T0); // object ref asm.emitPOP_Reg (S0); // offset asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, 0); // pushes [T0+S0] return true; } if (methodName == VM_MagicNames.getByteAtOffset) { asm.emitPOP_Reg (T0); // object ref asm.emitPOP_Reg (S0); // offset asm.emitMOVZX_Reg_RegIdx_Byte(T0, T0, S0, asm.BYTE, 0); // load and zero extend byte [T0+S0] asm.emitPUSH_Reg (T0); return true; } if (methodName == VM_MagicNames.getCharAtOffset) { asm.emitPOP_Reg (T0); // object ref asm.emitPOP_Reg (S0); // offset asm.emitMOVZX_Reg_RegIdx_Word(T0, T0, S0, asm.BYTE, 0); // load and zero extend char [T0+S0] asm.emitPUSH_Reg (T0); return true; } if (methodName == VM_MagicNames.setIntAtOffset || methodName == VM_MagicNames.setWordAtOffset || methodName == VM_MagicNames.setObjectAtOffset ) { if (m.getParameterTypes().length == 4) { // discard locationMetadata parameter asm.emitPOP_Reg(T0); // locationMetadata, not needed by baseline compiler. } asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T1); // obj ref asm.emitMOV_RegIdx_Reg(T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- T0 return true; } if (methodName == VM_MagicNames.setByteAtOffset) { asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T1); // obj ref asm.emitMOV_RegIdx_Reg_Byte(T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- (byte) T0 return true; } if (methodName == VM_MagicNames.setCharAtOffset) { asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T1); // obj ref asm.emitMOV_RegIdx_Reg_Word(T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- (char) T0 return true; } if (methodName == VM_MagicNames.getLongAtOffset || methodName == VM_MagicNames.getDoubleAtOffset) { asm.emitPOP_Reg (T0); // object ref asm.emitPOP_Reg (S0); // offset asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, 4); // pushes [T0+S0+4] asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, 0); // pushes [T0+S0] return true; } if (methodName == VM_MagicNames.setLongAtOffset || methodName == VM_MagicNames.setDoubleAtOffset) { asm.emitMOV_Reg_RegInd (T0, SP); // value high asm.emitMOV_Reg_RegDisp(S0, SP, +8 ); // offset asm.emitMOV_Reg_RegDisp(T1, SP, +12); // obj ref asm.emitMOV_RegIdx_Reg (T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- T0 asm.emitMOV_Reg_RegDisp(T0, SP, +4 ); // value low asm.emitMOV_RegIdx_Reg (T1, S0, asm.BYTE, 4, T0); // [T1+S0+4] <- T0 asm.emitADD_Reg_Imm (SP, WORDSIZE * 4); // pop stack locations return true; } if (methodName == VM_MagicNames.addressArrayCreate) { // no resolution problem possible. emit_resolved_newarray(m.getType().resolve().asArray()); return true; } if (methodName == VM_MagicNames.addressArrayLength) { emit_arraylength(); // argument order already correct return true; } if (methodName == VM_MagicNames.addressArrayGet) { if (m.getType() == VM_TypeReference.CodeArray) { emit_baload(); } else { if (VM.BuildFor32Addr) { emit_iaload(); } else if (VM.BuildFor64Addr) { emit_laload(); } else { VM._assert(NOT_REACHED); } } return true; } if (methodName == VM_MagicNames.addressArraySet) { if (m.getType() == VM_TypeReference.CodeArray) { emit_bastore(); } else { if (VM.BuildFor32Addr) { emit_iastore(); } else if (VM.BuildFor64Addr) { VM._assert(false); // not implemented } else { VM._assert(NOT_REACHED); } } return true; } if (methodName == VM_MagicNames.getMemoryInt || methodName == VM_MagicNames.getMemoryWord || methodName == VM_MagicNames.getMemoryAddress) { asm.emitPOP_Reg(T0); // address asm.emitPUSH_RegInd(T0); // pushes [T0+0] return true; } if (methodName == VM_MagicNames.setMemoryInt || methodName == VM_MagicNames.setMemoryWord || methodName == VM_MagicNames.setMemoryAddress) { if (m.getParameterTypes().length == 3) { // discard locationMetadata parameter asm.emitPOP_Reg(T0); // locationMetadata, not needed by baseline compiler. } asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // address asm.emitMOV_RegInd_Reg(S0,T0); // [S0+0] <- T0 return true; } if (methodName == VM_MagicNames.objectAsAddress || methodName == VM_MagicNames.addressAsByteArray || methodName == VM_MagicNames.addressAsIntArray || methodName == VM_MagicNames.addressAsObject || methodName == VM_MagicNames.addressAsObjectArray || methodName == VM_MagicNames.addressAsType || methodName == VM_MagicNames.objectAsType || methodName == VM_MagicNames.objectAsShortArray || methodName == VM_MagicNames.objectAsByteArray || methodName == VM_MagicNames.objectAsIntArray || methodName == VM_MagicNames.addressAsThread || methodName == VM_MagicNames.objectAsThread || methodName == VM_MagicNames.objectAsProcessor || methodName == VM_MagicNames.threadAsCollectorThread || methodName == VM_MagicNames.addressAsRegisters || methodName == VM_MagicNames.addressAsStack || methodName == VM_MagicNames.floatAsIntBits || methodName == VM_MagicNames.intBitsAsFloat || methodName == VM_MagicNames.doubleAsLongBits || methodName == VM_MagicNames.longBitsAsDouble) { // no-op (a type change, not a representation change) return true; } // code for VM_Type VM_Magic.getObjectType(Object object) if (methodName == VM_MagicNames.getObjectType) { asm.emitPOP_Reg (T0); // object ref VM_ObjectModel.baselineEmitLoadTIB(asm,S0,T0); asm.emitPUSH_RegDisp(S0, TIB_TYPE_INDEX<<LG_WORDSIZE); // push VM_Type slot of TIB return true; } if (methodName == VM_MagicNames.getArrayLength) { asm.emitPOP_Reg(T0); // object ref asm.emitPUSH_RegDisp(T0, VM_ObjectModel.getArrayLengthOffset().toInt()); return true; } if (methodName == VM_MagicNames.sync) { // nothing required on IA32 return true; } if (methodName == VM_MagicNames.isync) { // nothing required on IA32 return true; } // baseline compiled invocation only: all paramaters on the stack // hi mem // Code // GPRs // FPRs // Spills // low-mem if (methodName == VM_MagicNames.invokeMethodReturningVoid) { int offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); return true; } if (methodName == VM_MagicNames.invokeMethodReturningInt) { int offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); asm.emitPUSH_Reg(T0); return true; } if (methodName == VM_MagicNames.invokeMethodReturningLong) { int offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); asm.emitPUSH_Reg(T0); // high half asm.emitPUSH_Reg(T1); // low half return true; } if (methodName == VM_MagicNames.invokeMethodReturningFloat) { int offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); asm.emitSUB_Reg_Imm (SP, 4); asm.emitFSTP_RegInd_Reg(SP, FP0); return true; } if (methodName == VM_MagicNames.invokeMethodReturningDouble) { int offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); asm.emitSUB_Reg_Imm (SP, 8); asm.emitFSTP_RegInd_Reg_Quad(SP, FP0); return true; } if (methodName == VM_MagicNames.invokeMethodReturningObject) { int offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); asm.emitPUSH_Reg(T0); return true; } // baseline invocation // one paramater, on the stack -- actual code if (methodName == VM_MagicNames.dynamicBridgeTo) { if (VM.VerifyAssertions) VM._assert(klass.isDynamicBridge()); // save the branch address for later asm.emitPOP_Reg (S0); // S0<-code address asm.emitADD_Reg_Imm(SP, fp2spOffset(0) - 4); // just popped 4 bytes above. // restore FPU state asm.emitFRSTOR_RegDisp(SP, FPU_SAVE_OFFSET); // restore GPRs asm.emitMOV_Reg_RegDisp (T0, SP, T0_SAVE_OFFSET); asm.emitMOV_Reg_RegDisp (T1, SP, T1_SAVE_OFFSET); asm.emitMOV_Reg_RegDisp (EBX, SP, EBX_SAVE_OFFSET); asm.emitMOV_Reg_RegDisp (JTOC, SP, JTOC_SAVE_OFFSET); // pop frame asm.emitPOP_RegDisp (PR, VM_Entrypoints.framePointerField.getOffsetAsInt()); // FP<-previous FP // branch asm.emitJMP_Reg (S0); return true; } if (methodName == VM_MagicNames.returnToNewStack) { // SP gets frame pointer for new stack asm.emitPOP_Reg (SP); // restore nonvolatile registers asm.emitMOV_Reg_RegDisp (JTOC, SP, JTOC_SAVE_OFFSET); asm.emitMOV_Reg_RegDisp (EBX, SP, EBX_SAVE_OFFSET); // discard current stack frame asm.emitPOP_RegDisp (PR, VM_Entrypoints.framePointerField.getOffsetAsInt()); // return to caller- pop parameters from stack asm.emitRET_Imm(parameterWords << LG_WORDSIZE); return true; } if (methodName == VM_MagicNames.roundToZero) { // Store the FPU Control Word to a JTOC slot asm.emitFNSTCW_RegDisp(JTOC, VM_Entrypoints.FPUControlWordField.getOffsetAsInt()); // Set the bits in the status word that control round to zero. // Note that we use a 32-bit OR, even though we only care about the // low-order 16 bits asm.emitOR_RegDisp_Imm(JTOC,VM_Entrypoints.FPUControlWordField.getOffsetAsInt(), 0x00000c00); // Now store the result back into the FPU Control Word asm.emitFLDCW_RegDisp(JTOC,VM_Entrypoints.FPUControlWordField.getOffsetAsInt()); return true; } if (methodName == VM_MagicNames.clearFloatingPointState) { // Clear the hardware floating-point state asm.emitFNINIT(); return true; } if (methodName == VM_MagicNames.getTimeBase) { asm.emitRDTSC(); // read timestamp counter instruction asm.emitPUSH_Reg(EDX); // upper 32 bits asm.emitPUSH_Reg(EAX); // lower 32 bits return true; } if (methodName == VM_MagicNames.wordFromInt || methodName == VM_MagicNames.wordFromObject || methodName == VM_MagicNames.wordFromIntZeroExtend || methodName == VM_MagicNames.wordFromIntSignExtend || methodName == VM_MagicNames.wordToInt || methodName == VM_MagicNames.wordToAddress || methodName == VM_MagicNames.wordToOffset || methodName == VM_MagicNames.wordToObject || methodName == VM_MagicNames.wordToObjectReference || methodName == VM_MagicNames.wordToExtent || methodName == VM_MagicNames.wordToWord) { if (VM.BuildFor32Addr) return true; // no-op for 32-bit if (VM.VerifyAssertions) VM._assert(false); } if (methodName == VM_MagicNames.wordToLong) { if (VM.BuildFor32Addr) { asm.emitPOP_Reg(T0); asm.emitPUSH_Imm(0); // upper 32 bits asm.emitPUSH_Reg(T0); // lower 32 bits return true; } // else fill unused stackslot if (VM.VerifyAssertions) VM._assert(false); } if (methodName == VM_MagicNames.wordAnd) { asm.emitPOP_Reg(T0); asm.emitAND_RegInd_Reg(SP, T0); return true; } if (methodName == VM_MagicNames.wordOr) { asm.emitPOP_Reg(T0); asm.emitOR_RegInd_Reg(SP, T0); return true; } if (methodName == VM_MagicNames.wordXor) { asm.emitPOP_Reg(T0); asm.emitXOR_RegInd_Reg(SP, T0); return true; } if (methodName == VM_MagicNames.wordNot) { asm.emitNOT_RegInd (SP); return true; } if (methodName == VM_MagicNames.wordAdd) { asm.emitPOP_Reg(T0); asm.emitADD_RegInd_Reg(SP, T0); return true; } if (methodName == VM_MagicNames.wordSub || methodName == VM_MagicNames.wordDiff) { asm.emitPOP_Reg(T0); asm.emitSUB_RegInd_Reg(SP, T0); return true; } if (methodName == VM_MagicNames.wordZero || methodName == VM_MagicNames.wordNull) { asm.emitPUSH_Imm(0); return true; } if (methodName == VM_MagicNames.wordOne) { asm.emitPUSH_Imm(1); return true; } if (methodName == VM_MagicNames.wordMax) { asm.emitPUSH_Imm(-1); return true; } if (methodName == VM_MagicNames.wordLT) { generateAddrComparison(asm.LLT); return true; } if (methodName == VM_MagicNames.wordLE) { generateAddrComparison(asm.LLE); return true; } if (methodName == VM_MagicNames.wordGT) { generateAddrComparison(asm.LGT); return true; } if (methodName == VM_MagicNames.wordGE) { generateAddrComparison(asm.LGE); return true; } if (methodName == VM_MagicNames.wordsLT) { generateAddrComparison(asm.LT); return true; } if (methodName == VM_MagicNames.wordsLE) { generateAddrComparison(asm.LE); return true; } if (methodName == VM_MagicNames.wordsGT) { generateAddrComparison(asm.GT); return true; } if (methodName == VM_MagicNames.wordsGE) { generateAddrComparison(asm.GE); return true; } if (methodName == VM_MagicNames.wordEQ) { generateAddrComparison(asm.EQ); return true; } if (methodName == VM_MagicNames.wordNE) { generateAddrComparison(asm.NE); return true; } if (methodName == VM_MagicNames.wordIsZero) { asm.emitPUSH_Imm(0); generateAddrComparison(asm.EQ); return true; } if (methodName == VM_MagicNames.wordIsNull) { asm.emitPUSH_Imm(0); generateAddrComparison(asm.EQ); return true; } if (methodName == VM_MagicNames.wordIsMax) { asm.emitPUSH_Imm(-1); generateAddrComparison(asm.EQ); return true; } if (methodName == VM_MagicNames.wordLsh) { if (VM.BuildFor32Addr) { asm.emitPOP_Reg(ECX); asm.emitSHL_RegInd_Reg(SP, ECX); } else VM._assert(false); return true; } if (methodName == VM_MagicNames.wordRshl) { if (VM.BuildFor32Addr) { asm.emitPOP_Reg (ECX); asm.emitSHR_RegInd_Reg (SP, ECX); } else VM._assert(false); return true; } if (methodName == VM_MagicNames.wordRsha) { if (VM.BuildFor32Addr) { asm.emitPOP_Reg (ECX); asm.emitSAR_RegInd_Reg (SP, ECX); } else VM._assert(false); return true; } return false; }
|
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/df5323a1679a545ad5b2e78b0bf88ba178e71da8/VM_Compiler.java/clean/rvm/src/vm/arch/intel/compilers/baseline/VM_Compiler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
727,
1250,
3157,
19289,
261,
7397,
67,
1305,
2404,
312,
13,
288,
565,
8251,
67,
3641,
4918,
273,
312,
18,
17994,
5621,
565,
309,
261,
81,
18,
588,
559,
1435,
422,
8251,
67,
7534,
18,
1887,
13,
288,
1377,
368,
5267,
8146,
1377,
8251,
67,
7534,
8526,
1953,
273,
312,
18,
588,
1662,
2016,
5621,
1377,
368,
4444,
87,
777,
4862,
326,
646,
30,
1377,
368,
1372,
16,
5267,
16,
306,
2335,
65,
317,
1372,
16,
1445,
1377,
309,
261,
2039,
461,
422,
8251,
67,
19289,
1557,
18,
945,
1887,
747,
1850,
4918,
422,
8251,
67,
19289,
1557,
18,
9366,
1887,
747,
1850,
4918,
422,
8251,
67,
19289,
1557,
18,
9366,
22101,
747,
1850,
4918,
422,
8251,
67,
19289,
1557,
18,
945,
3944,
747,
1850,
4918,
422,
8251,
67,
19289,
1557,
18,
945,
22101,
747,
1850,
4918,
422,
8251,
67,
19289,
1557,
18,
9366,
3944,
747,
1850,
4918,
422,
8251,
67,
19289,
1557,
18,
945,
1702,
747,
1850,
4918,
422,
8251,
67,
19289,
1557,
18,
9366,
1702,
747,
1850,
4918,
422,
8251,
67,
19289,
1557,
18,
945,
4723,
13,
288,
3639,
309,
261,
2352,
18,
2469,
422,
374,
13,
288,
1850,
368,
2631,
1384,
1850,
20415,
18,
18356,
30374,
67,
1617,
12,
56,
20,
1769,
8227,
368,
1758,
1850,
20415,
18,
18356,
30348,
67,
1617,
3866,
12,
56,
20,
1769,
5375,
368,
27351,
306,
56,
20,
15,
20,
65,
3639,
289,
469,
288,
1850,
368,
4444,
622,
1384,
1850,
20415,
18,
18356,
30374,
67,
1617,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
727,
1250,
3157,
19289,
261,
7397,
67,
1305,
2404,
312,
13,
288,
565,
8251,
67,
3641,
4918,
273,
312,
18,
17994,
5621,
565,
309,
261,
81,
18,
588,
559,
1435,
422,
8251,
67,
7534,
18,
1887,
13,
288,
1377,
368,
5267,
8146,
1377,
8251,
67,
7534,
8526,
1953,
273,
312,
18,
588,
1662,
2016,
5621,
1377,
368,
4444,
87,
777,
4862,
326,
646,
30,
1377,
368,
1372,
16,
5267,
16,
306,
2335,
65,
317,
1372,
16,
1445,
1377,
309,
261,
2039,
461,
422,
8251,
67,
19289,
1557,
18,
945,
1887,
747,
1850,
4918,
422,
8251,
67,
19289,
1557,
18,
9366,
1887,
747,
1850,
4918,
422,
8251,
67,
19289,
1557,
18,
9366,
22101,
747,
1850,
4918,
422,
8251,
2
] |
return composite; }
|
if (!getInitialElementSelections().isEmpty()) checkInitialSelections(); return composite; }
|
protected Control createDialogArea(Composite parent) { // page group Composite composite = (Composite)super.createDialogArea(parent); Font font = parent.getFont(); composite.setFont(font); createMessageArea(composite); listViewer = CheckboxTableViewer.newCheckList(composite, SWT.BORDER); GridData data = new GridData(GridData.FILL_BOTH); data.heightHint = SIZING_SELECTION_WIDGET_HEIGHT; data.widthHint = SIZING_SELECTION_WIDGET_WIDTH; listViewer.getTable().setLayoutData(data); listViewer.setLabelProvider(labelProvider); listViewer.setContentProvider(contentProvider); listViewer.getControl().setFont(font); addSelectionButtons(composite); initializeViewer(); // initialize page if (!getInitialElementSelections().isEmpty()) checkInitialSelections(); return composite;}
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/ae5fb304a3c625bec2a4a9b282bc061b8111fa1c/ListSelectionDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/ListSelectionDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
8888,
752,
6353,
5484,
12,
9400,
982,
13,
288,
202,
759,
1363,
1041,
202,
9400,
9635,
273,
261,
9400,
13,
9565,
18,
2640,
6353,
5484,
12,
2938,
1769,
202,
202,
5711,
3512,
273,
982,
18,
588,
5711,
5621,
202,
27676,
18,
542,
5711,
12,
5776,
1769,
202,
2640,
1079,
5484,
12,
27676,
1769,
202,
1098,
18415,
273,
29213,
1388,
18415,
18,
2704,
1564,
682,
12,
27676,
16,
348,
8588,
18,
38,
7954,
1769,
202,
6313,
751,
501,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
1769,
202,
892,
18,
4210,
7002,
273,
5705,
62,
1360,
67,
1090,
15445,
67,
59,
734,
3264,
67,
14595,
31,
202,
892,
18,
2819,
7002,
273,
5705,
62,
1360,
67,
1090,
15445,
67,
59,
734,
3264,
67,
10023,
31,
202,
1098,
18415,
18,
588,
1388,
7675,
542,
3744,
751,
12,
892,
1769,
202,
1098,
18415,
18,
542,
2224,
2249,
12,
1925,
2249,
1769,
202,
1098,
18415,
18,
542,
1350,
2249,
12,
1745,
2249,
1769,
202,
1098,
18415,
18,
588,
3367,
7675,
542,
5711,
12,
5776,
1769,
202,
1289,
6233,
14388,
12,
27676,
1769,
202,
11160,
18415,
5621,
202,
759,
4046,
1363,
202,
430,
16051,
588,
4435,
1046,
29913,
7675,
291,
1921,
10756,
202,
202,
1893,
4435,
29913,
5621,
202,
2463,
9635,
31,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
8888,
752,
6353,
5484,
12,
9400,
982,
13,
288,
202,
759,
1363,
1041,
202,
9400,
9635,
273,
261,
9400,
13,
9565,
18,
2640,
6353,
5484,
12,
2938,
1769,
202,
202,
5711,
3512,
273,
982,
18,
588,
5711,
5621,
202,
27676,
18,
542,
5711,
12,
5776,
1769,
202,
2640,
1079,
5484,
12,
27676,
1769,
202,
1098,
18415,
273,
29213,
1388,
18415,
18,
2704,
1564,
682,
12,
27676,
16,
348,
8588,
18,
38,
7954,
1769,
202,
6313,
751,
501,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
1769,
202,
892,
18,
4210,
7002,
273,
5705,
62,
1360,
67,
1090,
15445,
67,
59,
734,
3264,
67,
14595,
31,
202,
892,
18,
2819,
7002,
273,
5705,
62,
1360,
2
] |
} return null; }
|
} return null; }
|
private Widget internalFindChild(Widget parent, Object element) { Item[] items = getChildren(parent); for (int i = 0; i < items.length; i++) { Item item = items[i]; Object data = item.getData(); if (data != null && equals(data, element)) { return item; } } return null; }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/7dea322b00f8363f209617dc36ba0b47497db00d/AbstractTreeViewer.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/AbstractTreeViewer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
11103,
2713,
3125,
1763,
12,
4609,
982,
16,
1033,
930,
13,
288,
3639,
4342,
8526,
1516,
273,
10268,
12,
2938,
1769,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1516,
18,
2469,
31,
277,
27245,
288,
5411,
4342,
761,
273,
1516,
63,
77,
15533,
5411,
1033,
501,
273,
761,
18,
588,
751,
5621,
5411,
309,
261,
892,
480,
446,
597,
1606,
12,
892,
16,
930,
3719,
288,
9506,
202,
2463,
761,
31,
1082,
202,
97,
3639,
289,
3639,
327,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
11103,
2713,
3125,
1763,
12,
4609,
982,
16,
1033,
930,
13,
288,
3639,
4342,
8526,
1516,
273,
10268,
12,
2938,
1769,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1516,
18,
2469,
31,
277,
27245,
288,
5411,
4342,
761,
273,
1516,
63,
77,
15533,
5411,
1033,
501,
273,
761,
18,
588,
751,
5621,
5411,
309,
261,
892,
480,
446,
597,
1606,
12,
892,
16,
930,
3719,
288,
9506,
202,
2463,
761,
31,
1082,
202,
97,
3639,
289,
3639,
327,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (copyMode==I_CmsConstants.C_COPY_AS_LINK) { copyAsLink=true;
|
if (copyMode == I_CmsConstants.C_COPY_AS_LINK) { copyAsLink = true;
|
public void copyFile(CmsRequestContext context, String source, String destination, boolean lockCopy, boolean copyAsLink, int copyMode) throws CmsException { String destinationFileName = null; String destinationFolderName = null; CmsResource newResource = null; Map newResourceProps = null; if (destination.endsWith("/")) { copyFolder(context, source, destination, lockCopy, copyAsLink, false); return; } // validate the destination path/filename validFilename(destination.replace('/', 'a')); // extract the destination folder and filename destinationFolderName = destination.substring(0, destination.lastIndexOf("/") + 1); destinationFileName = destination.substring(destination.lastIndexOf("/") + 1, destination.length()); // read the source file and destination parent folder CmsFile sourceFile = readFile(context, source, false); CmsFolder destinationFolder = readFolder(context, destinationFolderName); // check the link mode to see if this resource has to be copied as a link. // only check this if the override flag "copyAsLink" is not set. if (!copyAsLink) { // if we have the copy mode "copy as link, set the override flag to true if (copyMode==I_CmsConstants.C_COPY_AS_LINK) { copyAsLink=true; } // if the mode is "preservre links", we have to check the link counter if (copyMode==I_CmsConstants.C_COPY_PRESERVE_LINK) { if (sourceFile.getLinkCount()>1) { copyAsLink=true; } } } // checks, if the type is valid, i.e. the user can copy files of this type // we can't utilize the access guard to do this, since it needs a resource to check if (!isAdmin(context) && (sourceFile.getType() == CmsResourceTypeXMLTemplate.C_RESOURCE_TYPE_ID || sourceFile.getType() == CmsResourceTypeJsp.C_RESOURCE_TYPE_ID)) { throw new CmsSecurityException("[" + this.getClass().getName() + "] copyFile() " + source, CmsSecurityException.C_SECURITY_NO_PERMISSIONS); } // check if the user has read access to the source file and write access to the destination folder checkPermissions(context, sourceFile, I_CmsConstants.C_READ_ACCESS); checkPermissions(context, destinationFolder, I_CmsConstants.C_WRITE_ACCESS); // read the source properties newResourceProps = readProperties(context, source, null, false); if (copyAsLink) { // create a copy of the source file in the destination parent folder newResource = createVfsLink(context, destination, source, newResourceProps, false); } else { // create a new resource in the destination folder // check the resource flags int flags = sourceFile.getFlags(); if (sourceFile.isLabeled()) { // reset "labeled" link flag flags &= ~I_CmsConstants.C_RESOURCEFLAG_LABELLINK; } // create the file newResource = m_vfsDriver.createFile(context.currentUser(), context.currentProject(), destinationFileName, flags, destinationFolder.getId(), sourceFile.getContents(), getResourceType(sourceFile.getType())); // copy the properties writeProperties(context, destination, newResourceProps); // copy the access control entries ListIterator aceList = m_userDriver.getAccessControlEntries(context.currentProject(), sourceFile.getResourceAceId(), false).listIterator(); while (aceList.hasNext()) { CmsAccessControlEntry ace = (CmsAccessControlEntry) aceList.next(); m_userDriver.createAccessControlEntry(context.currentProject(), newResource.getResourceAceId(), ace.getPrincipal(), ace.getPermissions().getAllowedPermissions(), ace.getPermissions().getDeniedPermissions(), ace.getFlags()); } m_vfsDriver.updateResourceState(context.currentProject(),newResource,C_UPDATE_ALL); touch(context,destination,sourceFile.getDateLastModified(),sourceFile.getUserLastModified()); if (lockCopy) { lockResource(context, destination); } } clearAccessControlListCache(); m_accessCache.clear(); clearResourceCache(); List modifiedResources = (List) new ArrayList(); modifiedResources.add(sourceFile); modifiedResources.add(newResource); modifiedResources.add(destinationFolder); OpenCms.fireCmsEvent(new CmsEvent(new CmsObject(), I_CmsEventListener.EVENT_RESOURCES_MODIFIED, Collections.singletonMap("resources", modifiedResources))); }
|
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/e32e986189f4d8353adaddc338780dc5f8a073fc/CmsDriverManager.java/clean/src/org/opencms/db/CmsDriverManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26955,
12,
4747,
21426,
819,
16,
514,
1084,
16,
514,
2929,
16,
1250,
2176,
2951,
16,
1250,
1610,
1463,
2098,
16,
509,
1610,
2309,
13,
1216,
11228,
288,
3639,
514,
2929,
4771,
273,
446,
31,
3639,
514,
2929,
26169,
273,
446,
31,
3639,
7630,
31757,
273,
446,
31,
3639,
1635,
31757,
5047,
273,
446,
31,
3639,
309,
261,
10590,
18,
5839,
1190,
2932,
4898,
3719,
288,
5411,
1610,
3899,
12,
2472,
16,
1084,
16,
2929,
16,
2176,
2951,
16,
1610,
1463,
2098,
16,
629,
1769,
5411,
327,
31,
3639,
289,
3639,
368,
1954,
326,
2929,
589,
19,
3459,
3639,
923,
5359,
12,
10590,
18,
2079,
2668,
19,
2187,
296,
69,
6134,
1769,
7734,
368,
2608,
326,
2929,
3009,
471,
1544,
3639,
2929,
26169,
273,
2929,
18,
28023,
12,
20,
16,
2929,
18,
2722,
31985,
2932,
4898,
13,
397,
404,
1769,
3639,
2929,
4771,
273,
2929,
18,
28023,
12,
10590,
18,
2722,
31985,
2932,
4898,
13,
397,
404,
16,
2929,
18,
2469,
10663,
3639,
368,
855,
326,
1084,
585,
471,
2929,
982,
3009,
3639,
28118,
16338,
273,
10413,
12,
2472,
16,
1084,
16,
629,
1769,
3639,
2149,
3899,
2929,
3899,
273,
855,
3899,
12,
2472,
16,
2929,
26169,
1769,
3639,
368,
866,
326,
1692,
1965,
358,
2621,
309,
333,
1058,
711,
358,
506,
9268,
487,
279,
1692,
18,
3639,
368,
1338,
866,
333,
309,
326,
3849,
2982,
315,
3530,
1463,
2098,
6,
353,
486,
444,
18,
3639,
309,
16051,
3530,
1463,
2098,
13,
288,
5411,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26955,
12,
4747,
21426,
819,
16,
514,
1084,
16,
514,
2929,
16,
1250,
2176,
2951,
16,
1250,
1610,
1463,
2098,
16,
509,
1610,
2309,
13,
1216,
11228,
288,
3639,
514,
2929,
4771,
273,
446,
31,
3639,
514,
2929,
26169,
273,
446,
31,
3639,
7630,
31757,
273,
446,
31,
3639,
1635,
31757,
5047,
273,
446,
31,
3639,
309,
261,
10590,
18,
5839,
1190,
2932,
4898,
3719,
288,
5411,
1610,
3899,
12,
2472,
16,
1084,
16,
2929,
16,
2176,
2951,
16,
1610,
1463,
2098,
16,
629,
1769,
5411,
327,
31,
3639,
289,
3639,
368,
1954,
326,
2929,
589,
19,
3459,
3639,
923,
5359,
12,
10590,
18,
2079,
2668,
19,
2187,
296,
69,
6134,
1769,
7734,
368,
2608,
326,
2
] |
container.getLogger().error(sm.getString("requestListenerValve.requestDestroy",
|
container.getLogger().error(sm.getString("standardContext.requestListener.requestDestroy",
|
public final void invoke(Request request, Response response) throws IOException, ServletException { // Disallow any direct access to resources under WEB-INF or META-INF MessageBytes requestPathMB = request.getRequestPathMB(); if ((requestPathMB.startsWithIgnoreCase("/META-INF/", 0)) || (requestPathMB.equalsIgnoreCase("/META-INF")) || (requestPathMB.startsWithIgnoreCase("/WEB-INF/", 0)) || (requestPathMB.equalsIgnoreCase("/WEB-INF"))) { String requestURI = request.getDecodedRequestURI(); notFound(requestURI, response); return; } // Wait if we are reloading while (context.getPaused()) { try { Thread.sleep(1000); } catch (InterruptedException e) { ; } } // Select the Wrapper to be used for this Request Wrapper wrapper = request.getWrapper(); if (wrapper == null) { String requestURI = request.getDecodedRequestURI(); notFound(requestURI, response); return; } // Normal request processing Object instances[] = context.getApplicationEventListeners(); ServletRequestEvent event = null; if ((instances != null) && (instances.length > 0)) { event = new ServletRequestEvent (((StandardContext) container).getServletContext(), request.getRequest()); // create pre-service event for (int i = 0; i < instances.length; i++) { if (instances[i] == null) continue; if (!(instances[i] instanceof ServletRequestListener)) continue; ServletRequestListener listener = (ServletRequestListener) instances[i]; try { listener.requestInitialized(event); } catch (Throwable t) { container.getLogger().error(sm.getString("requestListenerValve.requestInit", instances[i].getClass().getName()), t); ServletRequest sreq = request.getRequest(); sreq.setAttribute(Globals.EXCEPTION_ATTR,t); return; } } } wrapper.getPipeline().getFirst().invoke(request, response); if ((instances !=null ) && (instances.length > 0)) { // create post-service event for (int i = 0; i < instances.length; i++) { if (instances[i] == null) continue; if (!(instances[i] instanceof ServletRequestListener)) continue; ServletRequestListener listener = (ServletRequestListener) instances[i]; try { listener.requestDestroyed(event); } catch (Throwable t) { container.getLogger().error(sm.getString("requestListenerValve.requestDestroy", instances[i].getClass().getName()), t); ServletRequest sreq = request.getRequest(); sreq.setAttribute(Globals.EXCEPTION_ATTR,t); } } } }
|
48155 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48155/c4df44dfbd9afc75326e789422e81ce8a665e7f5/StandardContextValve.java/buggy/java/org/apache/catalina/core/StandardContextValve.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
918,
4356,
12,
691,
590,
16,
2306,
766,
13,
3639,
1216,
1860,
16,
16517,
288,
3639,
368,
3035,
5965,
1281,
2657,
2006,
358,
2703,
3613,
19877,
17,
19212,
578,
16970,
17,
19212,
3639,
2350,
2160,
23691,
7969,
273,
590,
18,
588,
691,
743,
7969,
5621,
3639,
309,
14015,
2293,
743,
7969,
18,
17514,
1190,
5556,
2932,
19,
19294,
17,
19212,
19,
3113,
374,
3719,
5411,
747,
261,
2293,
743,
7969,
18,
14963,
5556,
2932,
19,
19294,
17,
19212,
6,
3719,
5411,
747,
261,
2293,
743,
7969,
18,
17514,
1190,
5556,
2932,
19,
14778,
17,
19212,
19,
3113,
374,
3719,
5411,
747,
261,
2293,
743,
7969,
18,
14963,
5556,
2932,
19,
14778,
17,
19212,
6,
20349,
288,
5411,
514,
590,
3098,
273,
590,
18,
588,
24888,
691,
3098,
5621,
5411,
19372,
12,
2293,
3098,
16,
766,
1769,
5411,
327,
31,
3639,
289,
3639,
368,
5838,
309,
732,
854,
7749,
310,
3639,
1323,
261,
2472,
18,
588,
28590,
10756,
288,
5411,
775,
288,
7734,
4884,
18,
19607,
12,
18088,
1769,
5411,
289,
1044,
261,
24485,
503,
425,
13,
288,
7734,
274,
5411,
289,
3639,
289,
3639,
368,
6766,
326,
18735,
358,
506,
1399,
364,
333,
1567,
3639,
18735,
4053,
273,
590,
18,
588,
3611,
5621,
3639,
309,
261,
8376,
422,
446,
13,
288,
5411,
514,
590,
3098,
273,
590,
18,
588,
24888,
691,
3098,
5621,
5411,
19372,
12,
2293,
3098,
16,
766,
1769,
5411,
327,
31,
3639,
289,
3639,
368,
8769,
590,
4929,
3639,
1033,
3884,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
918,
4356,
12,
691,
590,
16,
2306,
766,
13,
3639,
1216,
1860,
16,
16517,
288,
3639,
368,
3035,
5965,
1281,
2657,
2006,
358,
2703,
3613,
19877,
17,
19212,
578,
16970,
17,
19212,
3639,
2350,
2160,
23691,
7969,
273,
590,
18,
588,
691,
743,
7969,
5621,
3639,
309,
14015,
2293,
743,
7969,
18,
17514,
1190,
5556,
2932,
19,
19294,
17,
19212,
19,
3113,
374,
3719,
5411,
747,
261,
2293,
743,
7969,
18,
14963,
5556,
2932,
19,
19294,
17,
19212,
6,
3719,
5411,
747,
261,
2293,
743,
7969,
18,
17514,
1190,
5556,
2932,
19,
14778,
17,
19212,
19,
3113,
374,
3719,
5411,
747,
261,
2293,
743,
7969,
18,
14963,
5556,
2932,
19,
14778,
17,
19212,
6,
20349,
288,
2
] |
IMCServiceRMI.sqlUpdateQuery(imcserver,sqlStr) ;
|
imcref.sqlUpdateQuery(sqlStr) ;
|
public void service( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException { String host = req.getHeader("Host") ; String imcserver = Utility.getDomainPref("adminserver",host) ; String start_url = Utility.getDomainPref( "start_url",host ) ; imcode.server.User user ; String htmlStr = "" ; String child_str = "" ; int meta_id ; Vector childs = new Vector( ) ; Vector sort_no = new Vector( ) ; res.setContentType( "text/html" ); Writer out = res.getWriter( ) ; meta_id = Integer.parseInt( req.getParameter( "meta_id" ) ) ; int doc_menu_no = Integer.parseInt( req.getParameter( "doc_menu_no" ) ) ; child_str = req.getParameter( "childs" ) ; // Check if user logged on if ( (user=Check.userLoggedOn(req,res,start_url))==null ) { return ; } if ( !IMCServiceRMI.checkDocAdminRights(imcserver,meta_id,user,262144 ) ) { // Checking to see if user may edit this String output = AdminDoc.adminDoc(meta_id,meta_id,host,user,req,res) ; if ( output != null ) { out.write(output) ; } return ; } String temp_str = "" ; String childsThisMenu[] ; SimpleDateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd") ; Date dt = IMCServiceRMI.getCurrentDate(imcserver) ; String sqlStr = "update meta set date_modified = '"+dateformat.format(dt)+"' where meta_id = "+meta_id ; IMCServiceRMI.sqlUpdateQuery(imcserver,sqlStr) ; sqlStr = "select to_meta_id from childs where meta_id = " + meta_id ; String[] foo = IMCServiceRMI.sqlQuery(imcserver, sqlStr) ; for ( int i=0 ; i<foo.length ; ++i ) { temp_str = req.getParameter(foo[i]) ; if ( temp_str != null ) { childs.add(foo[i]) ; sort_no.add(temp_str) ; } } childsThisMenu = req.getParameterValues( "archiveDelBox" ) ; user.put("flags",new Integer(262144)) ; if( req.getParameter("sort")!=null ) { String sort_order = req.getParameter("sort_order") ; IMCServiceRMI.sqlUpdateQuery(imcserver,"update text_docs set sort_order = "+sort_order+" where meta_id = "+meta_id) ; if ( childs.size() > 0 ) { IMCServiceRMI.saveManualSort( imcserver,meta_id,user,childs,sort_no ) ; } } else if( req.getParameter("delete")!=null ) { if( childsThisMenu != null ) { IMCServiceRMI.deleteChilds( imcserver,meta_id,doc_menu_no,user,childsThisMenu ) ; } } else if( req.getParameter("archive")!=null ) { if( childsThisMenu != null ) { IMCServiceRMI.archiveChilds( imcserver,meta_id,user,childsThisMenu ) ; } } else if( req.getParameter("copy")!=null ) { if( childsThisMenu != null ) { String copyPrefix = IMCServiceRMI.parseDoc(imcserver, null, COPY_PREFIX_TEMPLATE, user.getLangPrefix()); String[] file_meta_ids = IMCServiceRMI.copyDocs( imcserver,meta_id,doc_menu_no,user,childsThisMenu,copyPrefix ) ; if (file_meta_ids.length > 0) { // Build an option-list StringBuffer fileMetaIds = new StringBuffer() ; for (int i=0; i<file_meta_ids.length; ++i) { imcode.server.parser.Document doc = IMCServiceRMI.getDocument(imcserver,Integer.parseInt(file_meta_ids[i])) ; fileMetaIds.append("<option>["+file_meta_ids[i]+"] "+doc.getHeadline()+"</option>") ; } Vector vec = new Vector() ; vec.add("#meta_id#") ; vec.add(""+meta_id) ; vec.add("#filedocs#") ; vec.add(fileMetaIds.toString()) ; String fileWarning = IMCServiceRMI.parseDoc(imcserver,vec,FILE_WARNING_TEMPLATE, user.getLangPrefix()) ; out.write(fileWarning) ; return ; } } } String output = AdminDoc.adminDoc(meta_id,meta_id,host,user,req,res) ; if ( output != null ) { out.write(output) ; } }
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/a270627916b37a677a391dd9f45c54d3d6f12503/SaveSort.java/clean/servlets/SaveSort.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1156,
12,
9984,
1111,
16,
12446,
400,
262,
1216,
16517,
16,
1860,
288,
202,
780,
1479,
9506,
202,
33,
1111,
18,
588,
1864,
2932,
2594,
7923,
274,
202,
780,
709,
71,
3567,
1082,
202,
33,
13134,
18,
588,
3748,
23218,
2932,
3666,
3567,
3113,
2564,
13,
274,
202,
780,
787,
67,
718,
202,
33,
13134,
18,
588,
3748,
23218,
12,
315,
1937,
67,
718,
3113,
2564,
262,
274,
202,
381,
710,
18,
3567,
18,
1299,
729,
274,
202,
780,
1729,
1585,
273,
1408,
274,
202,
780,
1151,
67,
701,
273,
1408,
274,
202,
474,
2191,
67,
350,
274,
202,
5018,
21619,
225,
273,
394,
5589,
12,
262,
274,
202,
5018,
1524,
67,
2135,
273,
394,
5589,
12,
262,
274,
202,
455,
18,
542,
8046,
12,
315,
955,
19,
2620,
6,
11272,
202,
2289,
596,
273,
400,
18,
588,
2289,
12,
262,
274,
202,
3901,
67,
350,
273,
2144,
18,
2670,
1702,
12,
1111,
18,
588,
1662,
12,
315,
3901,
67,
350,
6,
262,
262,
274,
202,
474,
997,
67,
5414,
67,
2135,
273,
2144,
18,
2670,
1702,
12,
1111,
18,
588,
1662,
12,
315,
2434,
67,
5414,
67,
2135,
6,
262,
262,
274,
202,
3624,
67,
701,
273,
225,
1111,
18,
588,
1662,
12,
315,
3624,
87,
6,
262,
274,
202,
759,
2073,
309,
729,
7545,
603,
202,
430,
261,
261,
1355,
33,
1564,
18,
1355,
19862,
1398,
12,
3658,
16,
455,
16,
1937,
67,
718,
3719,
631,
2011,
262,
288,
202,
565,
327,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1156,
12,
9984,
1111,
16,
12446,
400,
262,
1216,
16517,
16,
1860,
288,
202,
780,
1479,
9506,
202,
33,
1111,
18,
588,
1864,
2932,
2594,
7923,
274,
202,
780,
709,
71,
3567,
1082,
202,
33,
13134,
18,
588,
3748,
23218,
2932,
3666,
3567,
3113,
2564,
13,
274,
202,
780,
787,
67,
718,
202,
33,
13134,
18,
588,
3748,
23218,
12,
315,
1937,
67,
718,
3113,
2564,
262,
274,
202,
381,
710,
18,
3567,
18,
1299,
729,
274,
202,
780,
1729,
1585,
273,
1408,
274,
202,
780,
1151,
67,
701,
273,
1408,
274,
202,
474,
2191,
67,
350,
274,
202,
5018,
21619,
225,
273,
394,
5589,
12,
262,
274,
202,
5018,
1524,
67,
2135,
273,
394,
5589,
2
] |
result.put(fixParent(cloneToplevel(key, null), parent), fixParent(cloneToplevel(value, null), parent));
|
result.put(cloneToplevel(key, parent), cloneToplevel(value, parent));
|
static private Object cloneHashtable(Hashtable orig, Object parent) { Hashtable result = new Hashtable(); register(orig, result); Enumeration e = orig.keys(); while (e.hasMoreElements()) { Object key = e.nextElement(); Object value = orig.get(key); result.put(fixParent(cloneToplevel(key, null), parent), fixParent(cloneToplevel(value, null), parent)); } return result; }
|
47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/de87a2643ea7ffa25afed2d46cb48d6a803db1d2/AutoCloner.java/buggy/streams/src/at/dms/kjc/AutoCloner.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
3238,
1033,
3236,
5582,
14544,
12,
5582,
14544,
1647,
16,
1033,
982,
13,
288,
202,
5582,
14544,
563,
273,
394,
18559,
5621,
202,
4861,
12,
4949,
16,
563,
1769,
202,
21847,
425,
273,
1647,
18,
2452,
5621,
202,
17523,
261,
73,
18,
5332,
7417,
3471,
10756,
288,
202,
565,
1033,
498,
273,
425,
18,
4285,
1046,
5621,
202,
565,
1033,
460,
273,
1647,
18,
588,
12,
856,
1769,
202,
565,
563,
18,
458,
12,
904,
3054,
12,
14056,
3401,
2815,
12,
856,
16,
446,
3631,
982,
3631,
1082,
4202,
2917,
3054,
12,
14056,
3401,
2815,
12,
1132,
16,
446,
3631,
982,
10019,
202,
97,
202,
2463,
563,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
3238,
1033,
3236,
5582,
14544,
12,
5582,
14544,
1647,
16,
1033,
982,
13,
288,
202,
5582,
14544,
563,
273,
394,
18559,
5621,
202,
4861,
12,
4949,
16,
563,
1769,
202,
21847,
425,
273,
1647,
18,
2452,
5621,
202,
17523,
261,
73,
18,
5332,
7417,
3471,
10756,
288,
202,
565,
1033,
498,
273,
425,
18,
4285,
1046,
5621,
202,
565,
1033,
460,
273,
1647,
18,
588,
12,
856,
1769,
202,
565,
563,
18,
458,
12,
904,
3054,
12,
14056,
3401,
2815,
12,
856,
16,
446,
3631,
982,
3631,
1082,
4202,
2917,
3054,
12,
14056,
3401,
2815,
12,
1132,
16,
446,
3631,
982,
10019,
202,
97,
202,
2463,
563,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
String errMsgDate = IMCServiceRMI.parseExternalDoc(imcServer, null, DATE_ERROR , user.getLangPrefix(), DOCTYPE_FORTUNES+""); String errMsgTxt = IMCServiceRMI.parseExternalDoc(imcServer, null, TEXT_ERROR , user.getLangPrefix(), DOCTYPE_FORTUNES+"");
|
String errMsgDate = imcref.parseExternalDoc(null, DATE_ERROR , user.getLangPrefix(), DOCTYPE_FORTUNES+""); String errMsgTxt = imcref.parseExternalDoc(null, TEXT_ERROR , user.getLangPrefix(), DOCTYPE_FORTUNES+"");
|
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException{ // Lets get the server this request was aimed for String host = req.getHeader("Host") ; String imcServer = Utility.getDomainPref("adminserver",host) ; HttpSession session = req.getSession(); imcode.server.User user ; // Check if the user logged on if ( (user = Check.userLoggedOn(req,res,"StartDoc" )) == null ) { return ; } res.setContentType("text/html"); PrintWriter out = res.getWriter(); String whichFile = (String)session.getAttribute("file") ; if (req.getParameter("back")!=null || whichFile == null || "".equals(whichFile)) { res.sendRedirect("AdminRandomTexts") ; return; } List lines = (List)session.getAttribute("lines"); String date1 = ""; String date2 = ""; String text = ""; String errMsgDate = IMCServiceRMI.parseExternalDoc(imcServer, null, DATE_ERROR , user.getLangPrefix(), DOCTYPE_FORTUNES+""); String errMsgTxt = IMCServiceRMI.parseExternalDoc(imcServer, null, TEXT_ERROR , user.getLangPrefix(), DOCTYPE_FORTUNES+""); if (req.getParameter("save")!=null) { addLineToList(req,lines); IMCServiceRMI.setQuoteList(imcServer, whichFile+".txt", lines); //tillbaks till res.sendRedirect("AdminRandomTexts") ; return; } else if ((req.getParameter("add")).equals("add")){ //hmta parametrar date1 = req.getParameter("date1").trim(); date2 = req.getParameter("date2").trim(); text = req.getParameter("text").trim(); boolean ok = true; if( !checkDate(date1) ) { date1=errMsgDate; ok = false; } if( !checkDate(date2) ) { date2=errMsgDate; ok = false; } if( text.length()<1 ){ text=errMsgTxt; ok = false; } if( ok ){ addLineToList(req,lines); date1 = ""; date2 = ""; text = ""; } } else if (req.getParameter("edit")!=null){ //hmta raden som r markerad String row = req.getParameter("AdminFile") ; if (row != null) { //lgg till en eventuellt redan uppflyttad rad addLineToList(req,lines); int theRow = Integer.parseInt(row); Quote quote = (Quote)lines.get(theRow); DateRange dates = quote.getDateRange(); date1 = dateForm.format(dates.getStartDate()); date2 = dateForm.format(new Date(dates.getEndDate().getTime() - ONE_DAY)); text = quote.getText(); lines.remove(quote); } else { date1 = req.getParameter("date1").trim(); date2 = req.getParameter("date2").trim(); text = req.getParameter("text").trim(); } } else if (req.getParameter("remove")!=null) { // retrieve list of rows to remove String rows[] = req.getParameterValues("AdminFile") ; try { // put the lines-list in a Map, keyed by list-index. Map rowMap = new HashMap() ; for(int i=0;i<lines.size();i++){ rowMap.put(new Integer(i), lines.get(i)) ; } // remove the given list-indexes. for(int i=0;i<rows.length;i++){ if (!"".equals(rows[i])) { rowMap.remove(Integer.decode(rows[i])) ; } } // put the map back into a list, sorted by index. Integer[] listIndexes = new Integer[rowMap.size()] ; listIndexes = (Integer[])rowMap.keySet().toArray(listIndexes) ; Arrays.sort(listIndexes) ; lines = new ArrayList(rowMap.size()) ; for (int i = 0; i < listIndexes.length; ++i) { lines.add(rowMap.get(listIndexes[i])) ; } } catch (NullPointerException ignored) { // No rows were selected } catch (NumberFormatException ignored) { // Invalid selection } } session.setAttribute("lines",lines); StringBuffer buff = createOptionList(req,lines, imcServer, user ); //Add info for parsing to a Vector and parse it with a template to a htmlString that is printed Vector values = new Vector(); values.add("#date1#"); values.add(date1); values.add("#date2#"); values.add(date2); values.add("#text#"); values.add(text); values.add("#file#"); values.add(whichFile); values.add("#options#"); values.add(buff.toString()); String parsed = IMCServiceRMI.parseExternalDoc(imcServer, values, HTML_TEMPLATE , user.getLangPrefix(), DOCTYPE_FORTUNES+""); out.print(parsed); return; }
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/a270627916b37a677a391dd9f45c54d3d6f12503/AdminRandomTextsFile.java/buggy/servlets/AdminRandomTextsFile.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
3349,
12,
2940,
18572,
1111,
16,
12446,
400,
13,
202,
15069,
16517,
16,
1860,
95,
202,
759,
511,
2413,
336,
326,
1438,
333,
590,
1703,
279,
381,
329,
364,
202,
780,
1479,
273,
1111,
18,
588,
1864,
2932,
2594,
7923,
274,
202,
780,
709,
71,
2081,
273,
13134,
18,
588,
3748,
23218,
2932,
3666,
3567,
3113,
2564,
13,
274,
202,
2940,
2157,
1339,
273,
1111,
18,
588,
2157,
5621,
202,
381,
710,
18,
3567,
18,
1299,
729,
274,
202,
759,
2073,
309,
326,
729,
7545,
603,
202,
430,
261,
261,
1355,
273,
2073,
18,
1355,
19862,
1398,
12,
3658,
16,
455,
10837,
1685,
1759,
6,
8623,
422,
446,
262,
202,
95,
202,
565,
327,
274,
202,
97,
202,
455,
18,
542,
8046,
2932,
955,
19,
2620,
8863,
202,
5108,
2289,
596,
273,
400,
18,
588,
2289,
5621,
202,
780,
1492,
812,
273,
261,
780,
13,
3184,
18,
588,
1499,
2932,
768,
7923,
274,
202,
430,
261,
3658,
18,
588,
1662,
2932,
823,
7923,
5,
33,
2011,
747,
1492,
812,
422,
446,
747,
1408,
18,
14963,
12,
12784,
812,
3719,
288,
202,
565,
400,
18,
4661,
5961,
2932,
4446,
8529,
30114,
7923,
274,
202,
565,
327,
31,
202,
97,
202,
682,
2362,
273,
261,
682,
13,
3184,
18,
588,
1499,
2932,
3548,
8863,
202,
780,
1509,
21,
273,
1408,
31,
202,
780,
1509,
22,
273,
1408,
31,
202,
780,
977,
225,
273,
1408,
31,
202,
780,
12412,
1626,
202,
33,
6246,
39,
1179,
54,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
3349,
12,
2940,
18572,
1111,
16,
12446,
400,
13,
202,
15069,
16517,
16,
1860,
95,
202,
759,
511,
2413,
336,
326,
1438,
333,
590,
1703,
279,
381,
329,
364,
202,
780,
1479,
273,
1111,
18,
588,
1864,
2932,
2594,
7923,
274,
202,
780,
709,
71,
2081,
273,
13134,
18,
588,
3748,
23218,
2932,
3666,
3567,
3113,
2564,
13,
274,
202,
2940,
2157,
1339,
273,
1111,
18,
588,
2157,
5621,
202,
381,
710,
18,
3567,
18,
1299,
729,
274,
202,
759,
2073,
309,
326,
729,
7545,
603,
202,
430,
261,
261,
1355,
273,
2073,
18,
1355,
19862,
1398,
12,
3658,
16,
455,
10837,
1685,
1759,
6,
8623,
422,
446,
262,
202,
95,
202,
565,
327,
274,
2
] |
} return buf.toString();
|
return sb.toString();
|
public String toString() { StringBuffer buf; String mods; Class[] types; Class current; int i, arity; buf = new StringBuffer(); mods = Modifier.toString(getModifiers()); if(mods.length() != 0) { buf.append(mods); buf.append(" "); } buf.append(getName()); buf.append("("); types = getParameterTypes(); for(i = 0; i < types.length; i++) { current = types[i]; arity = 0; while(current.isArray()) { current = current.getComponentType(); arity++; } buf.append(current.getName()); for(;arity > 0; arity--) buf.append("[]"); if(i != (types.length - 1)) buf.append(","); } buf.append(")"); types = getExceptionTypes(); if(types.length > 0) { buf.append(" throws "); for(i = 0; i < types.length; i++) { current = types[i]; buf.append(current.getName()); if(i != (types.length - 1)) buf.append(","); } } return buf.toString(); }
|
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/3dbe292ede14a9f617f3a936edaf9c7fdef2c93c/Constructor.java/clean/rvm/src/vm/libSupport/java/lang/reflect/Constructor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1762,
1435,
288,
565,
6674,
1681,
31,
565,
514,
15546,
31,
565,
1659,
8526,
1953,
31,
565,
1659,
783,
31,
565,
509,
277,
16,
19353,
31,
5411,
1681,
273,
394,
6674,
5621,
565,
15546,
273,
12832,
18,
10492,
12,
588,
11948,
10663,
565,
309,
12,
22760,
18,
2469,
1435,
480,
374,
13,
288,
1377,
1681,
18,
6923,
12,
22760,
1769,
1377,
1681,
18,
6923,
2932,
315,
1769,
565,
289,
565,
1681,
18,
6923,
12,
17994,
10663,
565,
1681,
18,
6923,
2932,
2932,
1769,
565,
1953,
273,
18583,
5621,
565,
364,
12,
77,
273,
374,
31,
277,
411,
1953,
18,
2469,
31,
277,
27245,
288,
1377,
783,
273,
1953,
63,
77,
15533,
1377,
19353,
273,
374,
31,
1377,
1323,
12,
2972,
18,
291,
1076,
10756,
288,
3639,
783,
273,
783,
18,
588,
28116,
5621,
3639,
19353,
9904,
31,
1377,
289,
1377,
1681,
18,
6923,
12,
2972,
18,
17994,
10663,
1377,
364,
12,
31,
20498,
405,
374,
31,
19353,
413,
13,
1681,
18,
6923,
2932,
63,
4279,
1769,
1377,
309,
12,
77,
480,
261,
2352,
18,
2469,
300,
404,
3719,
3639,
1681,
18,
6923,
2932,
16,
8863,
565,
289,
565,
1681,
18,
6923,
2932,
2225,
1769,
565,
1953,
273,
17669,
2016,
5621,
565,
309,
12,
2352,
18,
2469,
405,
374,
13,
288,
1377,
1681,
18,
6923,
2932,
1216,
315,
1769,
1377,
364,
12,
77,
273,
374,
31,
277,
411,
1953,
18,
2469,
31,
277,
27245,
288,
3639,
783,
273,
1953,
63,
77,
15533,
3639,
1681,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1762,
1435,
288,
565,
6674,
1681,
31,
565,
514,
15546,
31,
565,
1659,
8526,
1953,
31,
565,
1659,
783,
31,
565,
509,
277,
16,
19353,
31,
5411,
1681,
273,
394,
6674,
5621,
565,
15546,
273,
12832,
18,
10492,
12,
588,
11948,
10663,
565,
309,
12,
22760,
18,
2469,
1435,
480,
374,
13,
288,
1377,
1681,
18,
6923,
12,
22760,
1769,
1377,
1681,
18,
6923,
2932,
315,
1769,
565,
289,
565,
1681,
18,
6923,
12,
17994,
10663,
565,
1681,
18,
6923,
2932,
2932,
1769,
565,
1953,
273,
18583,
5621,
565,
364,
12,
77,
273,
374,
31,
277,
411,
1953,
18,
2469,
31,
277,
27245,
288,
1377,
783,
273,
1953,
63,
77,
15533,
1377,
19353,
273,
374,
31,
2
] |
if (eClass == XMLTypePackage.eINSTANCE.getSimpleAnyType())
|
if (eClass == anySimpleType)
|
protected void saveElement(EObject o, EStructuralFeature f) { EClass eClass = o.eClass(); EClassifier eType = f.getEType(); if (extendedMetaData != null && eClass != eType) { // Check if it's an anonymous type. // String name = extendedMetaData.getName(eClass); if (name.endsWith("_._type")) { String elementName = name.substring(0, name.indexOf("_._")); String prefix = helper.getPrefix(eClass.getEPackage()); if (!"".equals(prefix)) { elementName = prefix + ":" + elementName; } doc.startElement(elementName); saveElementID(o); return; } } if (map != null) { XMLResource.XMLInfo info = map.getInfo(eClass); if (info != null && info.getXMLRepresentation() == XMLResource.XMLInfo.ELEMENT) { String elementName = helper.getQName(eClass); doc.startElement(elementName); saveElementID(o); return; } } String featureName = helper.getQName(f); doc.startElement(featureName); if (eClass != eType && eClass != XMLTypePackage.eINSTANCE.getAnyType()) { if (eClass == XMLTypePackage.eINSTANCE.getSimpleAnyType()) { saveTypeAttribute(((SimpleAnyType)o).getInstanceType()); } else { saveTypeAttribute(eClass); } } saveElementID(o); }
|
11224 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11224/1716501f4cbe4b08f2b41408939a95a7c90ec4d6/XMLSaveImpl.java/clean/plugins/org.eclipse.emf.ecore.xmi/src/org/eclipse/emf/ecore/xmi/impl/XMLSaveImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1923,
1046,
12,
8029,
320,
16,
512,
14372,
4595,
284,
13,
225,
288,
565,
8233,
425,
797,
273,
320,
18,
73,
797,
5621,
565,
8233,
1251,
425,
559,
273,
284,
18,
588,
41,
559,
5621,
565,
309,
261,
14948,
6998,
480,
446,
597,
425,
797,
480,
425,
559,
13,
565,
288,
1377,
368,
2073,
309,
518,
1807,
392,
13236,
618,
18,
1377,
368,
1377,
514,
508,
273,
7021,
6998,
18,
17994,
12,
73,
797,
1769,
1377,
309,
261,
529,
18,
5839,
1190,
2932,
67,
6315,
723,
6,
3719,
1377,
288,
3639,
514,
14453,
273,
508,
18,
28023,
12,
20,
16,
508,
18,
31806,
2932,
67,
6315,
7923,
1769,
3639,
514,
1633,
273,
4222,
18,
588,
2244,
12,
73,
797,
18,
588,
41,
2261,
10663,
3639,
309,
16051,
3660,
18,
14963,
12,
3239,
3719,
3639,
288,
1850,
14453,
273,
1633,
397,
6153,
397,
14453,
31,
3639,
289,
3639,
997,
18,
1937,
1046,
12,
2956,
461,
1769,
3639,
1923,
1046,
734,
12,
83,
1769,
3639,
327,
31,
1377,
289,
565,
289,
565,
309,
261,
1458,
480,
446,
13,
565,
288,
1377,
3167,
1420,
18,
4201,
966,
1123,
273,
852,
18,
588,
966,
12,
73,
797,
1769,
1377,
309,
261,
1376,
480,
446,
597,
1123,
18,
588,
4201,
13742,
1435,
422,
3167,
1420,
18,
4201,
966,
18,
10976,
13,
1377,
288,
3639,
514,
14453,
273,
4222,
18,
588,
13688,
12,
73,
797,
1769,
3639,
997,
18,
1937,
1046,
12,
2956,
461,
1769,
3639,
1923,
1046,
734,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1923,
1046,
12,
8029,
320,
16,
512,
14372,
4595,
284,
13,
225,
288,
565,
8233,
425,
797,
273,
320,
18,
73,
797,
5621,
565,
8233,
1251,
425,
559,
273,
284,
18,
588,
41,
559,
5621,
565,
309,
261,
14948,
6998,
480,
446,
597,
425,
797,
480,
425,
559,
13,
565,
288,
1377,
368,
2073,
309,
518,
1807,
392,
13236,
618,
18,
1377,
368,
1377,
514,
508,
273,
7021,
6998,
18,
17994,
12,
73,
797,
1769,
1377,
309,
261,
529,
18,
5839,
1190,
2932,
67,
6315,
723,
6,
3719,
1377,
288,
3639,
514,
14453,
273,
508,
18,
28023,
12,
20,
16,
508,
18,
31806,
2932,
67,
6315,
7923,
1769,
3639,
514,
1633,
273,
4222,
18,
588,
2244,
2
] |
} else if (lhs == DBL_MRK) {
|
} else if (lhs == UniqueTag.DOUBLE_MARK) {
|
private static void do_add(Object[] stack, double[] sDbl, int stackTop, Context cx) { Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; double d; boolean leftRightOrder; if (rhs == DBL_MRK) { d = sDbl[stackTop + 1]; if (lhs == DBL_MRK) { sDbl[stackTop] += d; return; } leftRightOrder = true; // fallthrough to object + number code } else if (lhs == DBL_MRK) { d = sDbl[stackTop]; lhs = rhs; leftRightOrder = false; // fallthrough to object + number code } else { if (lhs instanceof Scriptable || rhs instanceof Scriptable) { stack[stackTop] = ScriptRuntime.add(lhs, rhs, cx); } else if (lhs instanceof String) { String lstr = (String)lhs; String rstr = ScriptRuntime.toString(rhs); stack[stackTop] = lstr.concat(rstr); } else if (rhs instanceof String) { String lstr = ScriptRuntime.toString(lhs); String rstr = (String)rhs; stack[stackTop] = lstr.concat(rstr); } else { double lDbl = (lhs instanceof Number) ? ((Number)lhs).doubleValue() : ScriptRuntime.toNumber(lhs); double rDbl = (rhs instanceof Number) ? ((Number)rhs).doubleValue() : ScriptRuntime.toNumber(rhs); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl + rDbl; } return; } // handle object(lhs) + number(d) code if (lhs instanceof Scriptable) { rhs = ScriptRuntime.wrapNumber(d); if (!leftRightOrder) { Object tmp = lhs; lhs = rhs; rhs = tmp; } stack[stackTop] = ScriptRuntime.add(lhs, rhs, cx); } else if (lhs instanceof String) { String lstr = (String)lhs; String rstr = ScriptRuntime.toString(d); if (leftRightOrder) { stack[stackTop] = lstr.concat(rstr); } else { stack[stackTop] = rstr.concat(lstr); } } else { double lDbl = (lhs instanceof Number) ? ((Number)lhs).doubleValue() : ScriptRuntime.toNumber(lhs); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl + d; } }
|
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/00c3a706bf401545154202d57d1edaa0e2f9b8b8/Interpreter.java/buggy/src/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
741,
67,
1289,
12,
921,
8526,
2110,
16,
1645,
8526,
272,
40,
3083,
16,
509,
2110,
3401,
16,
17311,
1772,
9494,
13,
565,
288,
3639,
1033,
7711,
273,
2110,
63,
3772,
3401,
397,
404,
15533,
3639,
1033,
8499,
273,
2110,
63,
3772,
3401,
15533,
3639,
1645,
302,
31,
3639,
1250,
2002,
4726,
2448,
31,
3639,
309,
261,
86,
4487,
422,
2383,
48,
67,
23464,
47,
13,
288,
5411,
302,
273,
272,
40,
3083,
63,
3772,
3401,
397,
404,
15533,
5411,
309,
261,
80,
4487,
422,
2383,
48,
67,
23464,
47,
13,
288,
7734,
272,
40,
3083,
63,
3772,
3401,
65,
1011,
302,
31,
7734,
327,
31,
5411,
289,
5411,
2002,
4726,
2448,
273,
638,
31,
5411,
368,
13103,
358,
733,
397,
1300,
981,
3639,
289,
469,
309,
261,
80,
4487,
422,
14584,
1805,
18,
17088,
67,
12693,
13,
288,
5411,
302,
273,
272,
40,
3083,
63,
3772,
3401,
15533,
5411,
8499,
273,
7711,
31,
5411,
2002,
4726,
2448,
273,
629,
31,
5411,
368,
13103,
358,
733,
397,
1300,
981,
3639,
289,
469,
288,
5411,
309,
261,
80,
4487,
1276,
22780,
747,
7711,
1276,
22780,
13,
288,
7734,
2110,
63,
3772,
3401,
65,
273,
7739,
5576,
18,
1289,
12,
80,
4487,
16,
7711,
16,
9494,
1769,
5411,
289,
469,
309,
261,
80,
4487,
1276,
514,
13,
288,
7734,
514,
328,
701,
273,
261,
780,
13,
80,
4487,
31,
7734,
514,
436,
701,
273,
7739,
5576,
18,
10492,
12,
86,
4487,
1769,
7734,
2110,
63,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
741,
67,
1289,
12,
921,
8526,
2110,
16,
1645,
8526,
272,
40,
3083,
16,
509,
2110,
3401,
16,
17311,
1772,
9494,
13,
565,
288,
3639,
1033,
7711,
273,
2110,
63,
3772,
3401,
397,
404,
15533,
3639,
1033,
8499,
273,
2110,
63,
3772,
3401,
15533,
3639,
1645,
302,
31,
3639,
1250,
2002,
4726,
2448,
31,
3639,
309,
261,
86,
4487,
422,
2383,
48,
67,
23464,
47,
13,
288,
5411,
302,
273,
272,
40,
3083,
63,
3772,
3401,
397,
404,
15533,
5411,
309,
261,
80,
4487,
422,
2383,
48,
67,
23464,
47,
13,
288,
7734,
272,
40,
3083,
63,
3772,
3401,
65,
1011,
302,
31,
7734,
327,
31,
5411,
289,
5411,
2002,
4726,
2448,
273,
638,
31,
2
] |
{
|
Template(Stylesheet stylesheet, QName name, Pattern match, TemplateNode node, int precedence, double priority, QName mode) { this.stylesheet = stylesheet; this.name = name; this.match = match; this.node = node; // adjust priority if necessary // see XSLT section 5.5 Test test = getNodeTest(match); if (test != null) { if (test instanceof NameTest) { NameTest nameTest = (NameTest) test; if (nameTest.matchesAny() || nameTest.matchesAnyLocalName()) { priority = -0.25d; } else { priority = 0.0d; } } else { NodeTypeTest nodeTypeTest = (NodeTypeTest) test; if (nodeTypeTest.getNodeType() == Node.PROCESSING_INSTRUCTION_NODE && nodeTypeTest.getData() != null) { priority = 0.0d; } else { priority = -0.5d; } } } this.precedence = precedence; this.priority = priority; this.mode = mode; }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Template.java/buggy/core/src/classpath/gnu/gnu/xml/transform/Template.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
5035,
12,
24656,
13820,
16,
5411,
16723,
508,
16,
6830,
845,
16,
5035,
907,
756,
16,
6647,
509,
14172,
16,
1645,
4394,
16,
16723,
1965,
13,
377,
333,
18,
19403,
273,
13820,
31,
565,
333,
18,
529,
273,
508,
31,
565,
333,
18,
1916,
273,
845,
31,
565,
333,
18,
2159,
273,
756,
31,
565,
368,
5765,
4394,
309,
4573,
565,
368,
2621,
20751,
2442,
1381,
18,
25,
565,
7766,
1842,
273,
5973,
4709,
12,
1916,
1769,
565,
309,
261,
3813,
480,
446,
13,
2398,
309,
261,
3813,
1276,
1770,
4709,
13,
5397,
1770,
4709,
508,
4709,
273,
261,
461,
4709,
13,
1842,
31,
5411,
309,
261,
529,
4709,
18,
8436,
2961,
1435,
747,
7734,
508,
4709,
18,
8436,
2961,
29583,
10756,
11794,
4394,
273,
300,
20,
18,
2947,
72,
31,
2868,
289,
5411,
469,
11794,
4394,
273,
374,
18,
20,
72,
31,
2868,
289,
1850,
289,
3639,
469,
5397,
20896,
4709,
9507,
4709,
273,
261,
15101,
4709,
13,
1842,
31,
5411,
309,
261,
2159,
559,
4709,
18,
588,
15101,
1435,
422,
7734,
2029,
18,
16560,
1360,
67,
706,
3902,
27035,
67,
8744,
597,
7734,
9507,
4709,
18,
588,
751,
1435,
480,
446,
13,
11794,
4394,
273,
374,
18,
20,
72,
31,
2868,
289,
5411,
469,
11794,
4394,
273,
300,
20,
18,
25,
72,
31,
2868,
289,
1850,
289,
1377,
289,
565,
333,
18,
1484,
24092,
273,
14172,
31,
565,
333,
18,
8457,
273,
4394,
31,
565,
333,
18,
3188,
273,
1965,
31,
225,
289,
2,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
5035,
12,
24656,
13820,
16,
5411,
16723,
508,
16,
6830,
845,
16,
5035,
907,
756,
16,
6647,
509,
14172,
16,
1645,
4394,
16,
16723,
1965,
13,
377,
333,
18,
19403,
273,
13820,
31,
565,
333,
18,
529,
273,
508,
31,
565,
333,
18,
1916,
273,
845,
31,
565,
333,
18,
2159,
273,
756,
31,
565,
368,
5765,
4394,
309,
4573,
565,
368,
2621,
20751,
2442,
1381,
18,
25,
565,
7766,
1842,
273,
5973,
4709,
12,
1916,
1769,
565,
309,
261,
3813,
480,
446,
13,
2398,
309,
261,
3813,
1276,
1770,
4709,
13,
5397,
1770,
4709,
508,
4709,
273,
261,
461,
4709,
13,
1842,
31,
5411,
309,
261,
529,
4709,
18,
8436,
2961,
1435,
747,
7734,
508,
4709,
18,
2
] |
|
if(structuredViewerManager != null && structuredViewerManager.getViewer() != null)
|
if(structuredViewerManager != null && structuredViewerManager.getViewer() != null) {
|
public Shell getShell() { if(structuredViewerManager != null && structuredViewerManager.getViewer() != null) return structuredViewerManager.getViewer().getControl().getShell(); return null; }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/NavigatorContentService.java/clean/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/NavigatorContentService.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19433,
7932,
1165,
1435,
288,
202,
202,
430,
12,
17233,
18415,
1318,
480,
446,
597,
19788,
18415,
1318,
18,
588,
18415,
1435,
480,
446,
13,
1082,
202,
2463,
19788,
18415,
1318,
18,
588,
18415,
7675,
588,
3367,
7675,
588,
13220,
5621,
202,
202,
2463,
446,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19433,
7932,
1165,
1435,
288,
202,
202,
430,
12,
17233,
18415,
1318,
480,
446,
597,
19788,
18415,
1318,
18,
588,
18415,
1435,
480,
446,
13,
1082,
202,
2463,
19788,
18415,
1318,
18,
588,
18415,
7675,
588,
3367,
7675,
588,
13220,
5621,
202,
202,
2463,
446,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
menuService.addSourceProvider(menuSourceProvider);
|
private final void initializeDefaultServices() { /* * Phase 1 of the initialization of commands. When this phase completes, * all the services and managers will exist, and be accessible via the * getService(Object) method. */ Command.DEBUG_COMMAND_EXECUTION = Policy.DEBUG_COMMANDS; commandManager = new CommandManager(); final CommandService commandService = new CommandService(commandManager); commandService.readRegistry(); serviceLocator.registerService(ICommandService.class, commandService); ContextManager.DEBUG = Policy.DEBUG_CONTEXTS; contextManager = new ContextManager(); final IContextService contextService = new ContextService( contextManager); contextService.readRegistry(); serviceLocator.registerService(IContextService.class, contextService); final IHandlerService handlerService = new HandlerService( commandService); handlerService.readRegistry(); serviceLocator.registerService(IHandlerService.class, handlerService); BindingManager.DEBUG = Policy.DEBUG_KEY_BINDINGS; bindingManager = new BindingManager(contextManager, commandManager); final IBindingService bindingService = new BindingService( bindingManager, commandService, this); bindingService.readRegistryAndPreferences(commandService); serviceLocator.registerService(IBindingService.class, bindingService); final CommandImageManager commandImageManager = new CommandImageManager(); final CommandImageService commandImageService = new CommandImageService( commandImageManager, commandService); commandImageService.readRegistry(); serviceLocator.registerService(ICommandImageService.class, commandImageService); final SMenuManager menuManager = new SMenuManager(); final IMenuService menuService = new WorkbenchMenuService(menuManager, commandService); menuService.readRegistry(); serviceLocator.registerService(IMenuService.class, menuService); /* * Phase 2 of the initialization of commands. The source providers that * the workbench provides are creating and registered with the above * services. These source providers notify the services when particular * pieces of workbench state change. */ final ISourceProviderService sourceProviderService = new SourceProviderService(); serviceLocator.registerService(ISourceProviderService.class, sourceProviderService); final ActiveShellSourceProvider activeShellSourceProvider = new ActiveShellSourceProvider( this); handlerService.addSourceProvider(activeShellSourceProvider); contextService.addSourceProvider(activeShellSourceProvider); menuService.addSourceProvider(activeShellSourceProvider); sourceProviderService.registerProvider(activeShellSourceProvider); final ActivePartSourceProvider activePartSourceProvider = new ActivePartSourceProvider( this); handlerService.addSourceProvider(activePartSourceProvider); contextService.addSourceProvider(activePartSourceProvider); menuService.addSourceProvider(activePartSourceProvider); sourceProviderService.registerProvider(activePartSourceProvider); final ActiveContextSourceProvider activeContextSourceProvider = new ActiveContextSourceProvider( contextService); handlerService.addSourceProvider(activeContextSourceProvider); menuService.addSourceProvider(activeContextSourceProvider); sourceProviderService.registerProvider(activeContextSourceProvider); final CurrentSelectionSourceProvider currentSelectionSourceProvider = new CurrentSelectionSourceProvider( this); handlerService.addSourceProvider(currentSelectionSourceProvider); contextService.addSourceProvider(currentSelectionSourceProvider); menuService.addSourceProvider(currentSelectionSourceProvider); sourceProviderService.registerProvider(currentSelectionSourceProvider); actionSetSourceProvider = new ActionSetSourceProvider(); handlerService.addSourceProvider(actionSetSourceProvider); contextService.addSourceProvider(actionSetSourceProvider); menuService.addSourceProvider(actionSetSourceProvider); sourceProviderService.registerProvider(actionSetSourceProvider); menuSourceProvider = new MenuSourceProvider(); handlerService.addSourceProvider(menuSourceProvider); contextService.addSourceProvider(menuSourceProvider); menuService.addSourceProvider(menuSourceProvider); sourceProviderService.registerProvider(menuSourceProvider); /* * Phase 3 of the initialization of commands. This handles the creation * of wrappers for legacy APIs. By the time this phase completes, any * code trying to access commands through legacy APIs should work. */ final LegacyActionPersistence deprecatedSupport = new LegacyActionPersistence( this); serviceLocator.registerService(LegacyActionPersistence.class, deprecatedSupport); deprecatedSupport.read(); workbenchContextSupport = new WorkbenchContextSupport(this, contextManager); workbenchCommandSupport = new WorkbenchCommandSupport(bindingManager, commandManager, contextManager, handlerService); initializeCommandResolver(); addWindowListener(windowListener); bindingManager.addBindingManagerListener(bindingManagerListener); serviceLocator.registerService(ISelectionConversionService.class, new SelectionConversionService()); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/78fced32eb387dec638f730ce4ae7b7f8a68cc16/Workbench.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
918,
4046,
1868,
5676,
1435,
288,
202,
202,
20308,
1082,
380,
19459,
404,
434,
326,
10313,
434,
4364,
18,
5203,
333,
6855,
7218,
16,
1082,
380,
777,
326,
4028,
471,
21103,
903,
1005,
16,
471,
506,
12718,
3970,
326,
1082,
380,
6373,
12,
921,
13,
707,
18,
1082,
1195,
202,
202,
2189,
18,
9394,
67,
19104,
67,
15271,
13269,
273,
7436,
18,
9394,
67,
4208,
9560,
3948,
31,
202,
202,
3076,
1318,
273,
394,
3498,
1318,
5621,
202,
202,
6385,
3498,
1179,
1296,
1179,
273,
394,
3498,
1179,
12,
3076,
1318,
1769,
202,
202,
3076,
1179,
18,
896,
4243,
5621,
202,
202,
3278,
5786,
18,
4861,
1179,
12,
45,
2189,
1179,
18,
1106,
16,
1296,
1179,
1769,
202,
202,
1042,
1318,
18,
9394,
273,
7436,
18,
9394,
67,
13181,
55,
31,
202,
202,
2472,
1318,
273,
394,
1772,
1318,
5621,
202,
202,
6385,
467,
1042,
1179,
819,
1179,
273,
394,
1772,
1179,
12,
9506,
202,
2472,
1318,
1769,
202,
202,
2472,
1179,
18,
896,
4243,
5621,
202,
202,
3278,
5786,
18,
4861,
1179,
12,
45,
1042,
1179,
18,
1106,
16,
819,
1179,
1769,
202,
202,
6385,
467,
1503,
1179,
1838,
1179,
273,
394,
4663,
1179,
12,
9506,
202,
3076,
1179,
1769,
202,
202,
4176,
1179,
18,
896,
4243,
5621,
202,
202,
3278,
5786,
18,
4861,
1179,
12,
45,
1503,
1179,
18,
1106,
16,
1838,
1179,
1769,
202,
202,
5250,
1318,
18,
9394,
273,
7436,
18,
9394,
67,
3297,
67,
2739,
55,
31,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
918,
4046,
1868,
5676,
1435,
288,
202,
202,
20308,
1082,
380,
19459,
404,
434,
326,
10313,
434,
4364,
18,
5203,
333,
6855,
7218,
16,
1082,
380,
777,
326,
4028,
471,
21103,
903,
1005,
16,
471,
506,
12718,
3970,
326,
1082,
380,
6373,
12,
921,
13,
707,
18,
1082,
1195,
202,
202,
2189,
18,
9394,
67,
19104,
67,
15271,
13269,
273,
7436,
18,
9394,
67,
4208,
9560,
3948,
31,
202,
202,
3076,
1318,
273,
394,
3498,
1318,
5621,
202,
202,
6385,
3498,
1179,
1296,
1179,
273,
394,
3498,
1179,
12,
3076,
1318,
1769,
202,
202,
3076,
1179,
18,
896,
4243,
5621,
202,
202,
3278,
5786,
18,
4861,
1179,
12,
45,
2189,
1179,
18,
1106,
16,
1296,
2
] |
|
parameters.put(paramEl.getAttribute("name"), paramEl.getAttribute("value"));
|
this.parameters.put(paramEl.getAttribute("name"), paramEl.getAttribute("value"));
|
public boolean loadConfig() { if(configFile == null) { Logger.error(this, "loadConfig(): No file specified !"); return false; } if(!configFile.exists() || !configFile.canRead()) { Logger.notice(this, "Unable to read config file '"+configFile.getPath()+"'"); return false; } Document xmlDoc = null; DocumentBuilderFactory xmlFactory = null; DocumentBuilder xmlBuilder = null; Element rootEl = null; xmlFactory = DocumentBuilderFactory.newInstance(); try { xmlBuilder = xmlFactory.newDocumentBuilder(); } catch(javax.xml.parsers.ParserConfigurationException e) { Logger.warning(this, "Unable to load config because: "+e); return false; } try { xmlDoc = xmlBuilder.parse(configFile); } catch(org.xml.sax.SAXException e) { Logger.warning(this, "Unable to load config because: "+e); return false; } catch(java.io.IOException e) { Logger.warning(this, "Unable to load config because: "+e); return false; } rootEl = xmlDoc.getDocumentElement(); NodeList params = rootEl.getElementsByTagName("param"); for(int i = 0;i < params.getLength(); i++) { Element paramEl; Node paramNode = params.item(i); if(paramNode != null && paramNode.getNodeType() == Node.ELEMENT_NODE) { paramEl = (Element)paramNode; parameters.put(paramEl.getAttribute("name"), paramEl.getAttribute("value")); } } NodeList plugins = rootEl.getElementsByTagName("plugin"); for(int i = 0;i < plugins.getLength(); i++) { Element pluginEl; Node pluginNode = plugins.item(i); if(pluginNode != null && pluginNode.getNodeType() == Node.ELEMENT_NODE) { pluginEl = (Element)pluginNode; pluginNames.add(pluginEl.getAttribute("name")); } } return true; }
|
47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/88402a3bc59123261d50a7cfed0ac20de2b772f6/Config.java/buggy/src/thaw/core/Config.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
27318,
1435,
288,
202,
202,
430,
12,
1425,
812,
422,
446,
13,
288,
1082,
202,
3328,
18,
1636,
12,
2211,
16,
315,
945,
809,
13332,
2631,
585,
1269,
401,
8863,
1082,
202,
2463,
629,
31,
202,
202,
97,
202,
202,
430,
12,
5,
1425,
812,
18,
1808,
1435,
747,
401,
1425,
812,
18,
4169,
1994,
10756,
288,
1082,
202,
3328,
18,
20392,
12,
2211,
16,
315,
3370,
358,
855,
642,
585,
2119,
15,
1425,
812,
18,
588,
743,
1435,
9078,
4970,
1769,
1082,
202,
2463,
629,
31,
202,
202,
97,
9506,
202,
2519,
2025,
1759,
273,
446,
31,
202,
202,
2519,
20692,
2025,
1733,
273,
446,
31,
202,
202,
2519,
1263,
2025,
1263,
273,
446,
31,
9506,
202,
1046,
1365,
4958,
273,
446,
31,
25083,
202,
2902,
1733,
273,
30236,
18,
2704,
1442,
5621,
202,
202,
698,
288,
1082,
202,
2902,
1263,
273,
2025,
1733,
18,
2704,
2519,
1263,
5621,
202,
202,
97,
1044,
12,
28384,
18,
2902,
18,
11104,
18,
2678,
10737,
425,
13,
288,
1082,
202,
3328,
18,
8551,
12,
2211,
16,
315,
3370,
358,
1262,
642,
2724,
30,
13773,
73,
1769,
1082,
202,
2463,
629,
31,
202,
202,
97,
9506,
202,
698,
288,
1082,
202,
2902,
1759,
273,
2025,
1263,
18,
2670,
12,
1425,
812,
1769,
202,
202,
97,
1044,
12,
3341,
18,
2902,
18,
87,
651,
18,
55,
2501,
503,
425,
13,
288,
1082,
202,
3328,
18,
8551,
12,
2211,
16,
315,
3370,
358,
1262,
642,
2724,
30,
13773,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
27318,
1435,
288,
202,
202,
430,
12,
1425,
812,
422,
446,
13,
288,
1082,
202,
3328,
18,
1636,
12,
2211,
16,
315,
945,
809,
13332,
2631,
585,
1269,
401,
8863,
1082,
202,
2463,
629,
31,
202,
202,
97,
202,
202,
430,
12,
5,
1425,
812,
18,
1808,
1435,
747,
401,
1425,
812,
18,
4169,
1994,
10756,
288,
1082,
202,
3328,
18,
20392,
12,
2211,
16,
315,
3370,
358,
855,
642,
585,
2119,
15,
1425,
812,
18,
588,
743,
1435,
9078,
4970,
1769,
1082,
202,
2463,
629,
31,
202,
202,
97,
9506,
202,
2519,
2025,
1759,
273,
446,
31,
202,
202,
2519,
20692,
2025,
1733,
273,
446,
31,
202,
202,
2519,
1263,
2025,
1263,
273,
446,
2
] |
int LA15_362 = input.LA(1); if ( LA15_362=='e' ) {return s402;} return s51;
|
int LA15_401 = input.LA(1); if ( (LA15_401>='0' && LA15_401<='9')||(LA15_401>='A' && LA15_401<='Z')||LA15_401=='_'||(LA15_401>='a' && LA15_401<='z') ) {return s51;} return s434;
|
public DFA.State transition(IntStream input) throws RecognitionException { int LA15_362 = input.LA(1); if ( LA15_362=='e' ) {return s402;} return s51; }
|
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/75f5f3ef6a8af3fa9515d2007a16f1fd6f3ce0d0/RuleParserLexer.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
463,
2046,
18,
1119,
6007,
12,
1702,
1228,
810,
13,
1216,
9539,
288,
7734,
509,
2928,
3600,
67,
5718,
22,
273,
810,
18,
2534,
12,
21,
1769,
7734,
309,
261,
2928,
3600,
67,
5718,
22,
18920,
73,
11,
262,
288,
2463,
272,
24,
3103,
31,
97,
7734,
327,
272,
10593,
31,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
463,
2046,
18,
1119,
6007,
12,
1702,
1228,
810,
13,
1216,
9539,
288,
7734,
509,
2928,
3600,
67,
5718,
22,
273,
810,
18,
2534,
12,
21,
1769,
7734,
309,
261,
2928,
3600,
67,
5718,
22,
18920,
73,
11,
262,
288,
2463,
272,
24,
3103,
31,
97,
7734,
327,
272,
10593,
31,
5411,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
int r = remaining (); int i1 = position (); int i2 = a.position (); for (int i = 0; i < r; i++) { int t = (int) (get (i1) - a.get (i2)); if (t != 0) { return (int) t; } } return 0;
|
return remaining() - other.remaining();
|
public int compareTo (Object obj) { CharBuffer a = (CharBuffer) obj; if (a.remaining () != remaining ()) return 1; if (! hasArray () || ! a.hasArray ()) { return 1; } int r = remaining (); int i1 = position (); int i2 = a.position (); for (int i = 0; i < r; i++) { int t = (int) (get (i1) - a.get (i2)); if (t != 0) { return (int) t; } } return 0; }
|
13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/a221385cec60e1ba526d292898aeb99953891407/CharBuffer.java/buggy/libjava/java/nio/CharBuffer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
9292,
261,
921,
1081,
13,
225,
288,
565,
3703,
1892,
279,
273,
261,
2156,
1892,
13,
1081,
31,
565,
309,
261,
69,
18,
17956,
1832,
480,
4463,
1832,
13,
1377,
327,
404,
31,
565,
309,
16051,
711,
1076,
1832,
747,
3639,
401,
279,
18,
5332,
1076,
1832,
13,
1377,
288,
3639,
327,
404,
31,
1377,
289,
565,
509,
436,
273,
4463,
261,
1769,
565,
509,
277,
21,
273,
1754,
261,
1769,
565,
509,
277,
22,
273,
279,
18,
3276,
261,
1769,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
436,
31,
277,
27245,
1377,
288,
3639,
509,
268,
273,
261,
474,
13,
261,
588,
261,
77,
21,
13,
300,
279,
18,
588,
261,
77,
22,
10019,
3639,
309,
261,
88,
480,
374,
13,
1850,
288,
5411,
327,
261,
474,
13,
268,
31,
1850,
289,
1377,
289,
565,
327,
374,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
9292,
261,
921,
1081,
13,
225,
288,
565,
3703,
1892,
279,
273,
261,
2156,
1892,
13,
1081,
31,
565,
309,
261,
69,
18,
17956,
1832,
480,
4463,
1832,
13,
1377,
327,
404,
31,
565,
309,
16051,
711,
1076,
1832,
747,
3639,
401,
279,
18,
5332,
1076,
1832,
13,
1377,
288,
3639,
327,
404,
31,
1377,
289,
565,
509,
436,
273,
4463,
261,
1769,
565,
509,
277,
21,
273,
1754,
261,
1769,
565,
509,
277,
22,
273,
279,
18,
3276,
261,
1769,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
436,
31,
277,
27245,
1377,
288,
3639,
509,
268,
273,
261,
474,
13,
261,
588,
261,
77,
21,
13,
300,
279,
18,
588,
261,
77,
2
] |
List l = ExpressionUtil.extractColumnExpressions( exprText );
|
List l = null; if( expr instanceof IScriptExpression ) l = ExpressionParserUtil.extractColumnExpression( (IScriptExpression)expr ); else if ( expr instanceof IConditionalExpression ) l = ExpressionParserUtil.extractColumnExpression( (IConditionalExpression)expr ); else throw new DataException( ResourceConstants.BAD_DATA_EXPRESSION );
|
private static void testDependencyCycle( ExprManager exprManager ) throws DataException { List result = new ArrayList( ); Iterator it = exprManager.getColumnNames( ).iterator( ); while ( it.hasNext( ) ) { String name = it.next( ).toString( ); Node n = new Node( name ); IBaseExpression expr = exprManager.getExpr( name ); if ( expr instanceof IScriptExpression ) { String exprText = ( (IScriptExpression) expr ).getText( ); try { List l = ExpressionUtil.extractColumnExpressions( exprText ); for ( int j = 0; j < l.size( ); j++ ) { n.addChild( new Node( ( (IColumnBinding) l.get( j ) ).getResultSetColumnName( ) ) ); } } catch ( BirtException e ) { throw new DataException( e.getLocalizedMessage( ) ); } } result.add( n ); } Node[] source = new Node[result.size( )]; for ( int i = 0; i < source.length; i++ ) { source[i] = (Node) result.get( i ); } validateNodes( source ); }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/79ecfab1c5398513251acd61cd01338287bb902d/ExprManagerUtil.java/buggy/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/ExprManagerUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
1842,
7787,
13279,
12,
8074,
1318,
3065,
1318,
262,
1216,
1910,
503,
202,
95,
202,
202,
682,
563,
273,
394,
2407,
12,
11272,
202,
202,
3198,
518,
273,
3065,
1318,
18,
588,
20718,
12,
262,
18,
9838,
12,
11272,
202,
202,
17523,
261,
518,
18,
5332,
2134,
12,
262,
262,
202,
202,
95,
1082,
202,
780,
508,
273,
518,
18,
4285,
12,
262,
18,
10492,
12,
11272,
1082,
202,
907,
290,
273,
394,
2029,
12,
508,
11272,
1082,
202,
45,
2171,
2300,
3065,
273,
3065,
1318,
18,
588,
4742,
12,
508,
11272,
1082,
202,
430,
261,
3065,
1276,
467,
3651,
2300,
262,
1082,
202,
95,
9506,
202,
780,
3065,
1528,
273,
261,
261,
45,
3651,
2300,
13,
3065,
262,
18,
588,
1528,
12,
11272,
9506,
202,
698,
9506,
202,
95,
6862,
202,
682,
328,
273,
5371,
1304,
18,
8004,
1494,
8927,
12,
3065,
1528,
11272,
6862,
202,
1884,
261,
509,
525,
273,
374,
31,
525,
411,
328,
18,
1467,
12,
11272,
525,
9904,
262,
6862,
202,
95,
25083,
202,
82,
18,
1289,
1763,
12,
394,
2029,
12,
261,
261,
45,
1494,
5250,
13,
328,
18,
588,
12,
525,
262,
262,
18,
588,
13198,
8516,
12,
262,
262,
11272,
6862,
202,
97,
9506,
202,
97,
9506,
202,
14683,
261,
605,
2714,
503,
425,
262,
9506,
202,
95,
6862,
202,
12849,
394,
1910,
503,
12,
425,
18,
588,
2042,
1235,
1079,
12,
262,
11272,
9506,
202,
97,
1082,
202,
97,
1082,
202,
2088,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
1842,
7787,
13279,
12,
8074,
1318,
3065,
1318,
262,
1216,
1910,
503,
202,
95,
202,
202,
682,
563,
273,
394,
2407,
12,
11272,
202,
202,
3198,
518,
273,
3065,
1318,
18,
588,
20718,
12,
262,
18,
9838,
12,
11272,
202,
202,
17523,
261,
518,
18,
5332,
2134,
12,
262,
262,
202,
202,
95,
1082,
202,
780,
508,
273,
518,
18,
4285,
12,
262,
18,
10492,
12,
11272,
1082,
202,
907,
290,
273,
394,
2029,
12,
508,
11272,
1082,
202,
45,
2171,
2300,
3065,
273,
3065,
1318,
18,
588,
4742,
12,
508,
11272,
1082,
202,
430,
261,
3065,
1276,
467,
3651,
2300,
262,
1082,
202,
95,
9506,
202,
780,
3065,
1528,
273,
261,
261,
45,
2
] |
if (newState == TransactionState.TERMINATED && this.isReliable() && (!getSIPStack().cacheServerConnections)) { this.collectionTime = TIMER_J; } super.setState(newState); }
|
if (newState == TransactionState.TERMINATED && this.isReliable() && (!getSIPStack().cacheServerConnections)) { this.collectionTime = TIMER_J; } super.setState(newState); }
|
public void setState(TransactionState newState) { // Set this timer for connection caching // of incoming connections. if (newState == TransactionState.TERMINATED && this.isReliable() && (!getSIPStack().cacheServerConnections)) { // Set a time after which the connection // is closed. this.collectionTime = TIMER_J; } super.setState(newState); }
|
3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/68c0ca844a7d5fe4a7744cbf9898184966ce0680/SIPServerTransaction.java/clean/src/gov/nist/javax/sip/stack/SIPServerTransaction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12947,
12,
3342,
1119,
15907,
13,
288,
3639,
368,
1000,
333,
5441,
364,
1459,
11393,
3639,
368,
434,
6935,
5921,
18,
3639,
309,
261,
2704,
1119,
422,
5947,
1119,
18,
29516,
6344,
597,
333,
18,
291,
1971,
2214,
1435,
7734,
597,
16051,
588,
17739,
2624,
7675,
2493,
2081,
9314,
3719,
288,
5411,
368,
1000,
279,
813,
1839,
1492,
326,
1459,
5411,
368,
353,
4375,
18,
5411,
333,
18,
5548,
950,
273,
399,
31582,
67,
46,
31,
3639,
289,
3639,
2240,
18,
542,
1119,
12,
2704,
1119,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12947,
12,
3342,
1119,
15907,
13,
288,
3639,
368,
1000,
333,
5441,
364,
1459,
11393,
3639,
368,
434,
6935,
5921,
18,
3639,
309,
261,
2704,
1119,
422,
5947,
1119,
18,
29516,
6344,
597,
333,
18,
291,
1971,
2214,
1435,
7734,
597,
16051,
588,
17739,
2624,
7675,
2493,
2081,
9314,
3719,
288,
5411,
368,
1000,
279,
813,
1839,
1492,
326,
1459,
5411,
368,
353,
4375,
18,
5411,
333,
18,
5548,
950,
273,
399,
31582,
67,
46,
31,
3639,
289,
3639,
2240,
18,
542,
1119,
12,
2704,
1119,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
temp = temp + password [i - 1];
|
temp += password[i - 1];
|
public String process (ProcessingClient client) { if (client.getNumFields () < 1) { return (""); } char [] password = client.getFieldContents (0).toCharArray (); char [] result = new char [password.length]; int temp; for (int i = 0; i < password.length; i++) { temp = password [i] - 57; if (i > 0) { temp = temp + password [i - 1]; } if ((temp % 3) == 0) { temp = temp + 13; } if (temp < 0) { temp = temp + 193; } result [i] = (char)temp; } return (new String (result)); }
|
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/PWDEncryptor.java/buggy/src/lib/com/izforge/izpack/sample/PWDEncryptor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1207,
261,
7798,
1227,
1004,
13,
225,
288,
565,
309,
261,
2625,
18,
588,
2578,
2314,
1832,
411,
404,
13,
565,
288,
1377,
327,
261,
3660,
1769,
565,
289,
3639,
1149,
5378,
2201,
273,
1004,
18,
588,
974,
6323,
261,
20,
2934,
869,
15936,
261,
1769,
565,
1149,
5378,
563,
282,
273,
394,
1149,
306,
3664,
18,
2469,
15533,
565,
509,
225,
1906,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2201,
18,
2469,
31,
277,
27245,
565,
288,
1377,
1906,
273,
2201,
306,
77,
65,
300,
15981,
31,
1377,
309,
261,
77,
405,
374,
13,
1377,
288,
3639,
1906,
1011,
2201,
63,
77,
300,
404,
15533,
1377,
289,
1377,
309,
14015,
5814,
738,
890,
13,
422,
374,
13,
1377,
288,
3639,
1906,
273,
1906,
397,
5958,
31,
1377,
289,
1377,
309,
261,
5814,
411,
374,
13,
1377,
288,
3639,
1906,
273,
1906,
397,
5342,
23,
31,
1377,
289,
1850,
563,
306,
77,
65,
273,
261,
3001,
13,
5814,
31,
565,
289,
565,
327,
261,
2704,
514,
261,
2088,
10019,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1207,
261,
7798,
1227,
1004,
13,
225,
288,
565,
309,
261,
2625,
18,
588,
2578,
2314,
1832,
411,
404,
13,
565,
288,
1377,
327,
261,
3660,
1769,
565,
289,
3639,
1149,
5378,
2201,
273,
1004,
18,
588,
974,
6323,
261,
20,
2934,
869,
15936,
261,
1769,
565,
1149,
5378,
563,
282,
273,
394,
1149,
306,
3664,
18,
2469,
15533,
565,
509,
225,
1906,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2201,
18,
2469,
31,
277,
27245,
565,
288,
1377,
1906,
273,
2201,
306,
77,
65,
300,
15981,
31,
1377,
309,
261,
77,
405,
374,
13,
1377,
288,
3639,
1906,
1011,
2201,
63,
77,
300,
404,
15533,
1377,
289,
1377,
309,
14015,
5814,
2
] |
Vector v = (table != null ? new Vector (table.values()) : new Vector()); return (MessageTimes[]) v.toArray (new MessageTimes[v.size()]);
|
MessageTimes latest[] = new MessageTimes[(table != null ? table.size() : 0)]; if (latest.length > 0) { int i = 0; for (Enumeration e=table.elements(); e.hasMoreElements(); ) latest[i++] = new MessageTimes ((MessageTimes)e.nextElement()); } return latest;
|
private MessageTimes[] getLatestMessageReceptions (String sendNode) { // Sanity check if (sendNode == null) { loggingService.error ("Missing sendNode - missing msg attribute?"); return new MessageTimes[0]; } // Get latest message receptions for all links of node synchronized (latestReceptionsTable) { Hashtable table = (Hashtable) latestReceptionsTable.get (sendNode); Vector v = (table != null ? new Vector (table.values()) : new Vector()); return (MessageTimes[]) v.toArray (new MessageTimes[v.size()]); } }
|
11869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11869/4fd3888879fd69adda2438c356068ffe403946ef/RTTAspect.java/buggy/msglog/src/org/cougaar/core/mts/RTTAspect.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
2350,
10694,
8526,
336,
18650,
1079,
426,
472,
87,
261,
780,
1366,
907,
13,
225,
288,
565,
368,
225,
23123,
866,
565,
309,
261,
4661,
907,
422,
446,
13,
565,
288,
1377,
2907,
1179,
18,
1636,
7566,
4841,
1366,
907,
300,
3315,
1234,
1566,
7225,
1769,
1377,
327,
394,
2350,
10694,
63,
20,
15533,
565,
289,
565,
368,
225,
968,
4891,
883,
283,
472,
87,
364,
777,
4716,
434,
756,
565,
3852,
261,
13550,
426,
472,
87,
1388,
13,
565,
288,
1377,
18559,
1014,
273,
261,
5582,
14544,
13,
4891,
426,
472,
87,
1388,
18,
588,
261,
4661,
907,
1769,
1377,
5589,
331,
273,
261,
2121,
480,
446,
692,
394,
5589,
261,
2121,
18,
2372,
10756,
294,
394,
5589,
10663,
1377,
327,
261,
1079,
10694,
63,
5717,
331,
18,
31447,
261,
2704,
2350,
10694,
63,
90,
18,
1467,
1435,
19226,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
2350,
10694,
8526,
336,
18650,
1079,
426,
472,
87,
261,
780,
1366,
907,
13,
225,
288,
565,
368,
225,
23123,
866,
565,
309,
261,
4661,
907,
422,
446,
13,
565,
288,
1377,
2907,
1179,
18,
1636,
7566,
4841,
1366,
907,
300,
3315,
1234,
1566,
7225,
1769,
1377,
327,
394,
2350,
10694,
63,
20,
15533,
565,
289,
565,
368,
225,
968,
4891,
883,
283,
472,
87,
364,
777,
4716,
434,
756,
565,
3852,
261,
13550,
426,
472,
87,
1388,
13,
565,
288,
1377,
18559,
1014,
273,
261,
5582,
14544,
13,
4891,
426,
472,
87,
1388,
18,
588,
261,
4661,
907,
1769,
1377,
5589,
331,
273,
261,
2121,
480,
446,
692,
394,
5589,
261,
2121,
18,
2372,
10756,
294,
2
] |
public ArgsNode(ISourcePosition position, int argsCount, ListNode optArgs, int restArg, BlockArgNode blockArgNode) {
|
public ArgsNode(ISourcePosition position, ListNode arguments, ListNode optionalArguments, int restArguments, BlockArgNode blockArgNode) {
|
public ArgsNode(ISourcePosition position, int argsCount, ListNode optArgs, int restArg, BlockArgNode blockArgNode) { super(position); this.argsCount = argsCount; this.optArgs = optArgs; this.restArg = restArg; this.blockArgNode = blockArgNode; }
|
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/b1293eda8454686e846e2a9837b348e2983bb423/ArgsNode.java/clean/src/org/jruby/ast/ArgsNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6634,
907,
12,
45,
1830,
2555,
1754,
16,
987,
907,
1775,
16,
987,
907,
3129,
4628,
16,
509,
3127,
4628,
16,
3914,
4117,
907,
1203,
4117,
907,
13,
288,
3639,
2240,
12,
3276,
1769,
3639,
333,
18,
1968,
1380,
273,
833,
1380,
31,
3639,
333,
18,
3838,
2615,
273,
2153,
2615,
31,
3639,
333,
18,
8792,
4117,
273,
3127,
4117,
31,
3639,
333,
18,
2629,
4117,
907,
273,
1203,
4117,
907,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6634,
907,
12,
45,
1830,
2555,
1754,
16,
987,
907,
1775,
16,
987,
907,
3129,
4628,
16,
509,
3127,
4628,
16,
3914,
4117,
907,
1203,
4117,
907,
13,
288,
3639,
2240,
12,
3276,
1769,
3639,
333,
18,
1968,
1380,
273,
833,
1380,
31,
3639,
333,
18,
3838,
2615,
273,
2153,
2615,
31,
3639,
333,
18,
8792,
4117,
273,
3127,
4117,
31,
3639,
333,
18,
2629,
4117,
907,
273,
1203,
4117,
907,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void doGet( HttpServletRequest request, HttpServletResponse response) throws IOException { //read the query string int numberOfGenerations = 10; String generations = request.getParameter("generations"); try { numberOfGenerations = Integer.parseInt(generations); } catch (Exception ex) { // NumberFormat or NullPointerException // use default value of 10 } response.setContentType("text/xml; charset=UTF-8"); OutputStream out = response.getOutputStream(); Element root = new Element("Fibonacci_Numbers"); Document doc = new Document(root); ProcessingInstruction stylesheet = new ProcessingInstruction("xml-stylesheet", "type='text/css' href='/xml/styles/fibonacci.css'"); doc.insertChild(stylesheet, 0); BigInteger low = BigInteger.ONE; BigInteger high = BigInteger.ONE; for (int i = 1; i <= numberOfGenerations; i++) { Element fibonacci = new Element("fibonacci"); Attribute index = new Attribute("index", String.valueOf(i)); fibonacci.addAttribute(index); fibonacci.appendChild(low.toString()); BigInteger temp = high; high = high.add(low); low = temp; } Serializer serializer = new Serializer(out, "UTF-8"); serializer.write(doc); serializer.flush(); out.close(); }
|
626 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/626/14b802798b2db510d306e09643bd2e29b6fce431/FibonacciServlet.java/buggy/src/nu/xom/samples/FibonacciServlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
23611,
12,
1377,
9984,
590,
16,
12446,
766,
13,
1377,
1216,
1860,
288,
5411,
368,
896,
326,
843,
533,
3639,
509,
7922,
1863,
1012,
273,
1728,
31,
3639,
514,
1215,
1012,
273,
590,
18,
588,
1662,
2932,
3441,
1012,
8863,
3639,
775,
288,
5411,
7922,
1863,
1012,
273,
2144,
18,
2670,
1702,
12,
3441,
1012,
1769,
3639,
289,
3639,
1044,
261,
503,
431,
13,
288,
368,
29587,
578,
10108,
2868,
368,
999,
805,
460,
434,
1728,
540,
289,
2868,
766,
18,
542,
8046,
2932,
955,
19,
2902,
31,
4856,
33,
5159,
17,
28,
8863,
15604,
8962,
596,
273,
766,
18,
588,
4632,
5621,
5411,
3010,
1365,
273,
394,
3010,
2932,
42,
495,
265,
8981,
77,
67,
10072,
8863,
540,
4319,
997,
273,
394,
4319,
12,
3085,
1769,
3639,
19652,
11983,
13820,
273,
394,
6647,
19652,
11983,
2932,
2902,
17,
19403,
3113,
6647,
315,
723,
2218,
955,
19,
5212,
11,
3897,
2218,
19,
2902,
19,
10218,
19,
74,
495,
265,
8981,
77,
18,
5212,
4970,
1769,
3639,
997,
18,
6387,
1763,
12,
19403,
16,
374,
1769,
5411,
10246,
4587,
225,
273,
10246,
18,
5998,
31,
3639,
10246,
3551,
273,
10246,
18,
5998,
31,
2868,
364,
261,
474,
277,
273,
404,
31,
277,
1648,
7922,
1863,
1012,
31,
277,
27245,
288,
5411,
3010,
284,
495,
265,
8981,
77,
273,
394,
3010,
2932,
74,
495,
265,
8981,
77,
8863,
5411,
3601,
770,
9079,
273,
394,
3601,
2932,
1615,
3113,
514,
18,
1132,
951,
12,
77,
10019,
5411,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
23611,
12,
1377,
9984,
590,
16,
12446,
766,
13,
1377,
1216,
1860,
288,
5411,
368,
896,
326,
843,
533,
3639,
509,
7922,
1863,
1012,
273,
1728,
31,
3639,
514,
1215,
1012,
273,
590,
18,
588,
1662,
2932,
3441,
1012,
8863,
3639,
775,
288,
5411,
7922,
1863,
1012,
273,
2144,
18,
2670,
1702,
12,
3441,
1012,
1769,
3639,
289,
3639,
1044,
261,
503,
431,
13,
288,
368,
29587,
578,
10108,
2868,
368,
999,
805,
460,
434,
1728,
540,
289,
2868,
766,
18,
542,
8046,
2932,
955,
19,
2902,
31,
4856,
33,
5159,
17,
28,
8863,
15604,
8962,
596,
273,
766,
18,
588,
4632,
5621,
5411,
3010,
1365,
273,
394,
3010,
2932,
42,
495,
265,
8981,
77,
67,
2
] |
||
verifyBidiResult("Other string " + testNum, result, RESULT_EQUALS_PATHS[i]);
|
verifyBidiResult("Other string " + testNum, result, RESULT_EQUALS_PATHS[i]);
|
public void testOtherStrings(){ int testNum = 1; for (int i = 0; i < TEST_STAR_PATHS.length; i++){ String result = TextProcessor.process(TEST_STAR_PATHS[i], "*."); verifyBidiResult("Other string " + testNum, result, RESULT_STAR_PATHS[i]); testNum++; } for (int i = 0; i < TEST_EQUALS_PATHS.length; i++){ String result = TextProcessor.process(TEST_EQUALS_PATHS[i], "="); verifyBidiResult("Other string " + testNum, result, RESULT_EQUALS_PATHS[i]); testNum++; } }
|
2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/95a066dff705733e91216dd916dc80b4b89c409d/BidiTextProcessorTestCase.java/buggy/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/util/BidiTextProcessorTestCase.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
8290,
7957,
1435,
95,
202,
202,
474,
1842,
2578,
273,
404,
31,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
22130,
67,
20943,
67,
4211,
55,
18,
2469,
31,
277,
27245,
95,
1082,
202,
780,
563,
273,
3867,
5164,
18,
2567,
12,
16961,
67,
20943,
67,
4211,
55,
63,
77,
6487,
15902,
1199,
1769,
1082,
202,
8705,
17763,
77,
1253,
2932,
8290,
533,
315,
397,
1842,
2578,
16,
563,
16,
17210,
67,
20943,
67,
4211,
55,
63,
77,
19226,
1082,
202,
3813,
2578,
9904,
31,
202,
202,
97,
9506,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
22130,
67,
12853,
55,
67,
4211,
55,
18,
2469,
31,
277,
27245,
95,
1082,
202,
780,
563,
273,
3867,
5164,
18,
2567,
12,
16961,
67,
12853,
55,
67,
4211,
55,
63,
77,
6487,
9671,
1769,
1082,
202,
8705,
17763,
77,
1253,
2932,
8290,
533,
315,
397,
1842,
2578,
16,
563,
16,
17210,
67,
12853,
55,
67,
4211,
55,
63,
77,
19226,
9506,
202,
3813,
2578,
9904,
31,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
8290,
7957,
1435,
95,
202,
202,
474,
1842,
2578,
273,
404,
31,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
22130,
67,
20943,
67,
4211,
55,
18,
2469,
31,
277,
27245,
95,
1082,
202,
780,
563,
273,
3867,
5164,
18,
2567,
12,
16961,
67,
20943,
67,
4211,
55,
63,
77,
6487,
15902,
1199,
1769,
1082,
202,
8705,
17763,
77,
1253,
2932,
8290,
533,
315,
397,
1842,
2578,
16,
563,
16,
17210,
67,
20943,
67,
4211,
55,
63,
77,
19226,
1082,
202,
3813,
2578,
9904,
31,
202,
202,
97,
9506,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
22130,
67,
12853,
55,
67,
4211,
55,
18,
2469,
31,
277,
27245,
2
] |
if (session.getLogger().isDebugEnabled()) {
|
if (getLogger().isDebugEnabled()) {
|
private void doRCPT(SMTPSession session, String argument) { String responseString = null; StringBuffer responseBuffer = session.getResponseBuffer(); String recipient = null; if ((argument != null) && (argument.indexOf(":") > 0)) { int colonIndex = argument.indexOf(":"); recipient = argument.substring(colonIndex + 1); argument = argument.substring(0, colonIndex); } if (!session.getState().containsKey(SENDER)) { responseString = "503 "+DSNStatus.getStatus(DSNStatus.PERMANENT,DSNStatus.DELIVERY_OTHER)+" Need MAIL before RCPT"; session.writeResponse(responseString); } else if (argument == null || !argument.toUpperCase(Locale.US).equals("TO") || recipient == null) { responseString = "501 "+DSNStatus.getStatus(DSNStatus.PERMANENT,DSNStatus.DELIVERY_SYNTAX)+" Usage: RCPT TO:<recipient>"; session.writeResponse(responseString); } else { Collection rcptColl = (Collection) session.getState().get(RCPT_LIST); if (rcptColl == null) { rcptColl = new ArrayList(); } recipient = recipient.trim(); int lastChar = recipient.lastIndexOf('>'); // Check to see if any options are present and, if so, whether they are correctly formatted // (separated from the closing angle bracket by a ' '). String rcptOptionString = null; if ((lastChar > 0) && (recipient.length() > lastChar + 2) && (recipient.charAt(lastChar + 1) == ' ')) { rcptOptionString = recipient.substring(lastChar + 2); // Remove the options from the recipient recipient = recipient.substring(0, lastChar + 1); } if (!recipient.startsWith("<") || !recipient.endsWith(">")) { responseString = "501 "+DSNStatus.getStatus(DSNStatus.PERMANENT,DSNStatus.DELIVERY_SYNTAX)+" Syntax error in parameters or arguments"; session.writeResponse(responseString); if (session.getLogger().isErrorEnabled()) { StringBuffer errorBuffer = new StringBuffer(192) .append("Error parsing recipient address: ") .append(recipient) .append(": did not start and end with < >"); session.getLogger().error(errorBuffer.toString()); } return; } MailAddress recipientAddress = null; //Remove < and > recipient = recipient.substring(1, recipient.length() - 1); if (recipient.indexOf("@") < 0) { recipient = recipient + "@localhost"; } try { recipientAddress = new MailAddress(recipient); } catch (Exception pe) { /* * from RFC2822; * 553 Requested action not taken: mailbox name not allowed * (e.g., mailbox syntax incorrect) */ responseString = "553 "+DSNStatus.getStatus(DSNStatus.PERMANENT,DSNStatus.ADDRESS_SYNTAX)+" Syntax error in recipient address"; session.writeResponse(responseString); if (session.getLogger().isErrorEnabled()) { StringBuffer errorBuffer = new StringBuffer(192) .append("Error parsing recipient address: ") .append(recipient) .append(": ") .append(pe.getMessage()); session.getLogger().error(errorBuffer.toString()); } return; } if (session.isBlockListed() && // was found in the RBL (!session.isRelayingAllowed() || (session.isAuthRequired() && session.getUser() == null)) && // Not an authorized IP or SMTP AUTH is enabled and not authenticated !(recipientAddress.getUser().equalsIgnoreCase("postmaster") || recipientAddress.getUser().equalsIgnoreCase("abuse"))) { // trying to send e-mail to other than postmaster or abuse responseString = "530 "+DSNStatus.getStatus(DSNStatus.PERMANENT,DSNStatus.SECURITY_AUTH)+" Rejected: unauthenticated e-mail from " + session.getRemoteIPAddress() + " is restricted. Contact the postmaster for details."; session.writeResponse(responseString); return; } if (session.isAuthRequired() && !session.isRelayingAllowed()) { // Make sure the mail is being sent locally if not // authenticated else reject. if (session.getUser() == null) { String toDomain = recipientAddress.getHost(); if (!session.getConfigurationData().getMailServer().isLocalServer(toDomain)) { responseString = "530 "+DSNStatus.getStatus(DSNStatus.PERMANENT,DSNStatus.SECURITY_AUTH)+" Authentication Required"; session.writeResponse(responseString); session.getLogger().error("Rejected message - authentication is required for mail request"); return; } } else { // Identity verification checking if (session.getConfigurationData().isVerifyIdentity()) { String authUser = (session.getUser()).toLowerCase(Locale.US); MailAddress senderAddress = (MailAddress) session.getState().get(SENDER); boolean domainExists = false; if ((!authUser.equals(senderAddress.getUser())) || (!session.getConfigurationData().getMailServer().isLocalServer(senderAddress.getHost()))) { responseString = "503 "+DSNStatus.getStatus(DSNStatus.PERMANENT,DSNStatus.SECURITY_AUTH)+" Incorrect Authentication for Specified Email Address"; session.writeResponse(responseString); if (session.getLogger().isErrorEnabled()) { StringBuffer errorBuffer = new StringBuffer(128) .append("User ") .append(authUser) .append(" authenticated, however tried sending email as ") .append(senderAddress); session.getLogger().error(errorBuffer.toString()); } return; } } } } else if (!session.isRelayingAllowed()) { String toDomain = recipientAddress.getHost(); if (!session.getConfigurationData().getMailServer().isLocalServer(toDomain)) { responseString = "550 "+DSNStatus.getStatus(DSNStatus.PERMANENT,DSNStatus.SECURITY_AUTH)+" Requested action not taken: relaying denied"; session.writeResponse(responseString); session.getLogger().error("Rejected message - " + session.getRemoteIPAddress() + " not authorized to relay to " + toDomain); return; } } if (rcptOptionString != null) { StringTokenizer optionTokenizer = new StringTokenizer(rcptOptionString, " "); while (optionTokenizer.hasMoreElements()) { String rcptOption = optionTokenizer.nextToken(); int equalIndex = rcptOption.indexOf('='); String rcptOptionName = rcptOption; String rcptOptionValue = ""; if (equalIndex > 0) { rcptOptionName = rcptOption.substring(0, equalIndex).toUpperCase(Locale.US); rcptOptionValue = rcptOption.substring(equalIndex + 1); } // Unexpected option attached to the RCPT command if (session.getLogger().isDebugEnabled()) { StringBuffer debugBuffer = new StringBuffer(128) .append("RCPT command had unrecognized/unexpected option ") .append(rcptOptionName) .append(" with value ") .append(rcptOptionValue); session.getLogger().debug(debugBuffer.toString()); } } optionTokenizer = null; } rcptColl.add(recipientAddress); session.getState().put(RCPT_LIST, rcptColl); responseBuffer.append("250 "+DSNStatus.getStatus(DSNStatus.SUCCESS,DSNStatus.ADDRESS_VALID)+" Recipient <") .append(recipient) .append("> OK"); responseString = session.clearResponseBuffer(); session.writeResponse(responseString); } }
|
47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/300f5e8cf13caec09153d623c748afb5d5d02669/RcptCmdHandler.java/buggy/src/java/org/apache/james/smtpserver/RcptCmdHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
741,
11529,
1856,
12,
55,
14636,
2157,
1339,
16,
514,
1237,
13,
288,
3639,
514,
766,
780,
273,
446,
31,
3639,
6674,
766,
1892,
273,
1339,
18,
588,
1064,
1892,
5621,
3639,
514,
8027,
273,
446,
31,
3639,
309,
14015,
3446,
480,
446,
13,
597,
261,
3446,
18,
31806,
2932,
2773,
13,
405,
374,
3719,
288,
5411,
509,
13336,
1016,
273,
1237,
18,
31806,
2932,
2773,
1769,
5411,
8027,
273,
1237,
18,
28023,
12,
22667,
1016,
397,
404,
1769,
5411,
1237,
273,
1237,
18,
28023,
12,
20,
16,
13336,
1016,
1769,
3639,
289,
3639,
309,
16051,
3184,
18,
588,
1119,
7675,
12298,
653,
12,
1090,
18556,
3719,
288,
5411,
766,
780,
273,
315,
3361,
23,
13773,
3948,
50,
1482,
18,
588,
1482,
12,
3948,
50,
1482,
18,
3194,
9560,
2222,
16,
3948,
50,
1482,
18,
20643,
17529,
67,
23940,
13,
9078,
12324,
490,
6575,
1865,
24206,
1856,
14432,
5411,
1339,
18,
2626,
1064,
12,
2740,
780,
1769,
3639,
289,
469,
309,
261,
3446,
422,
446,
747,
401,
3446,
18,
869,
8915,
12,
3916,
18,
3378,
2934,
14963,
2932,
4296,
7923,
10402,
747,
8027,
422,
446,
13,
288,
5411,
766,
780,
273,
315,
9172,
13773,
3948,
50,
1482,
18,
588,
1482,
12,
3948,
50,
1482,
18,
3194,
9560,
2222,
16,
3948,
50,
1482,
18,
20643,
17529,
67,
7474,
28614,
13,
9078,
10858,
30,
24206,
1856,
8493,
22292,
20367,
2984,
31,
5411,
1339,
18,
2626,
1064,
12,
2740,
780,
1769,
3639,
289,
469,
288,
5411,
2200,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
741,
11529,
1856,
12,
55,
14636,
2157,
1339,
16,
514,
1237,
13,
288,
3639,
514,
766,
780,
273,
446,
31,
3639,
6674,
766,
1892,
273,
1339,
18,
588,
1064,
1892,
5621,
3639,
514,
8027,
273,
446,
31,
3639,
309,
14015,
3446,
480,
446,
13,
597,
261,
3446,
18,
31806,
2932,
2773,
13,
405,
374,
3719,
288,
5411,
509,
13336,
1016,
273,
1237,
18,
31806,
2932,
2773,
1769,
5411,
8027,
273,
1237,
18,
28023,
12,
22667,
1016,
397,
404,
1769,
5411,
1237,
273,
1237,
18,
28023,
12,
20,
16,
13336,
1016,
1769,
3639,
289,
3639,
309,
16051,
3184,
18,
588,
1119,
7675,
12298,
653,
12,
1090,
18556,
3719,
288,
5411,
766,
780,
273,
315,
3361,
23,
13773,
2
] |
super(details);
|
Interpreter.captureInterpreterStackInfo(this);
|
RhinoException(String details) { super(details); }
|
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/bfa8309763e2523e019dce764cbca002cf6f54ad/RhinoException.java/buggy/src/org/mozilla/javascript/RhinoException.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
534,
76,
15020,
503,
12,
780,
3189,
13,
565,
288,
3639,
5294,
11599,
18,
19250,
30010,
2624,
966,
12,
2211,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
534,
76,
15020,
503,
12,
780,
3189,
13,
565,
288,
3639,
5294,
11599,
18,
19250,
30010,
2624,
966,
12,
2211,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
/* (6)
|
/* (6) */
|
public void testWithFree() throws BadLocationException { int i; /* (1) */ _text = "method(\nint[] a, String b) {}"; _setDocText(_text); assertTrue("START has no preceding brace.", !_rule.applyRule(_doc, 0)); assertTrue("START immediately follows an open paren, not a brace.", !_rule.applyRule(_doc, 8)); assertTrue("START immediately follows an open paren, not a brace.", !_rule.applyRule(_doc, _text.length()-1)); /* (2) */ _text = "boolean method() {\n" + "}"; _setDocText(_text); assertTrue("START immediately follows an open brace.", _rule.applyRule(_doc, 19)); /* (3) */ _text = "boolean method(\n" + " int[] a, String b)\n" + "{\n" + "}"; _setDocText(_text); assertTrue("START immediately follows an open paren.", !_rule.applyRule(_doc, 40)); assertTrue("START immediately follows an open brace.", _rule.applyRule(_doc, 41)); /* (5) */ _text = "if (<cond>) {\n" + "\n" + " if (\n" + " <cond>) { ... }}"; _setDocText(_text); assertTrue("START immediatly follows an open brace.", _rule.applyRule(_doc, 14)); assertTrue("Only WS between open brace and START.", _rule.applyRule(_doc, 15)); assertTrue("Only WS between open brace and START.", _rule.applyRule(_doc, 24)); assertTrue("START immediatly follows an open paren.", _rule.applyRule(_doc, 25)); /* (6) _text = "array[\n" + " new Listener() {\n" + " method() {\n" + " }\n" + " }]"; _setDocText(_text); try { _rule.applyRule(_doc, 0); fail("START has no brace."); } catch (UnexpectedException e) {} assertTrue("START's brace ('[') is on previous line.", _rule.applyRule(_doc, 7)); assertTrue("START's brace ('{') is on previous line.", _rule.applyRule(_doc, 28)); assertTrue("START's brace ('{') is on previous line.", _rule.applyRule(_doc, 50)); assertTrue("START's brace ('{') is three lines above.", !_rule.applyRule(_doc, _text.length() - 1)); _text = "{ /* block1* / }\n" + "{ /* block2* / }\n" + "{ /* block3* / }"; _text = "{\n" + " {\n" + " {}\n" + " }\n" + "}"; _setDocText(_text); assertTrue("START's brace ('{') is on previous line.", _rule.applyRule(_doc, 7)); assertTrue("START's brace ('{') is on previous line.", _rule.applyRule(_doc, 8)); assertTrue("START's brace ('{') is two lines above.", !_rule.applyRule(_doc, 19)); assertTrue("START's brace ('{') is four lines above.", !_rule.applyRule(_doc, _text.length() - 1)); */ }
|
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/5855aafbaf5a76e18e2b0e646fcf0b45b64b1fe3/QuestionStartAfterOpenBraceTest.java/clean/drjava/src/edu/rice/cs/drjava/model/definitions/indent/QuestionStartAfterOpenBraceTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1190,
9194,
1435,
1216,
6107,
2735,
503,
377,
288,
202,
474,
277,
31,
202,
20308,
261,
21,
13,
1195,
202,
202,
67,
955,
273,
315,
2039,
4713,
82,
474,
8526,
279,
16,
514,
324,
13,
3728,
31,
202,
67,
542,
1759,
1528,
24899,
955,
1769,
202,
11231,
5510,
2932,
7570,
711,
1158,
19969,
22500,
1199,
16,
401,
67,
5345,
18,
9010,
2175,
24899,
2434,
16,
374,
10019,
202,
11231,
5510,
2932,
7570,
7636,
13040,
392,
1696,
22146,
16,
486,
279,
22500,
1199,
16,
401,
67,
5345,
18,
9010,
2175,
24899,
2434,
16,
1725,
10019,
202,
11231,
5510,
2932,
7570,
7636,
13040,
392,
1696,
22146,
16,
486,
279,
22500,
1199,
16,
401,
67,
5345,
18,
9010,
2175,
24899,
2434,
16,
389,
955,
18,
2469,
1435,
17,
21,
10019,
202,
20308,
261,
22,
13,
1195,
202,
67,
955,
273,
3196,
565,
315,
6494,
707,
1435,
18890,
82,
6,
397,
202,
565,
11883,
31,
202,
67,
542,
1759,
1528,
24899,
955,
1769,
202,
11231,
5510,
2932,
7570,
7636,
13040,
392,
1696,
22500,
1199,
16,
389,
5345,
18,
9010,
2175,
24899,
2434,
16,
5342,
10019,
202,
20308,
261,
23,
13,
1195,
202,
67,
955,
273,
3196,
565,
315,
6494,
707,
4713,
82,
6,
397,
202,
565,
315,
565,
509,
8526,
279,
16,
514,
324,
5153,
82,
6,
397,
202,
565,
4144,
64,
82,
6,
397,
202,
565,
11883,
31,
202,
67,
542,
1759,
1528,
24899,
955,
1769,
202,
202,
11231,
5510,
2932,
7570,
7636,
13040,
392,
1696,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1190,
9194,
1435,
1216,
6107,
2735,
503,
377,
288,
202,
474,
277,
31,
202,
20308,
261,
21,
13,
1195,
202,
202,
67,
955,
273,
315,
2039,
4713,
82,
474,
8526,
279,
16,
514,
324,
13,
3728,
31,
202,
67,
542,
1759,
1528,
24899,
955,
1769,
202,
11231,
5510,
2932,
7570,
711,
1158,
19969,
22500,
1199,
16,
401,
67,
5345,
18,
9010,
2175,
24899,
2434,
16,
374,
10019,
202,
11231,
5510,
2932,
7570,
7636,
13040,
392,
1696,
22146,
16,
486,
279,
22500,
1199,
16,
401,
67,
5345,
18,
9010,
2175,
24899,
2434,
16,
1725,
10019,
202,
11231,
5510,
2932,
7570,
7636,
13040,
392,
1696,
22146,
16,
486,
279,
22500,
1199,
16,
401,
67,
5345,
18,
9010,
2
] |
switch (c) { case 0x0300 : case 0x0301 : case 0x0302 : case 0x0303 : case 0x0304 : case 0x0306 : case 0x0307 : case 0x0308 : case 0x0309 : case 0x030C : case 0x030A : case 0xFE20 : case 0xFE21 : case 0x0315 : case 0x030B : case 0x0310 : case 0x0327 : case 0x0328 : case 0x0323 : case 0x0324 : case 0x0325 : case 0x0333 : case 0x0332 : case 0x0336 : case 0x0326 : case 0x031C : case 0x032E : case 0xFE22 : case 0xFE23 : case 0x0313 : break; default: return false; } return true;
|
switch (c) { case 0x00B7 : case 0x02BE : case 0x0300 : case 0x0301 : case 0x0302 : case 0x0303 : case 0x0304 : case 0x0306 : case 0x0307 : case 0x0308 : case 0x0309 : case 0x030C : case 0x030A : case 0xFE20 : case 0xFE21 : case 0x0315 : case 0x030B : case 0x0310 : case 0x0327 : case 0x0328 : case 0x0323 : case 0x0324 : case 0x0325 : case 0x0333 : case 0x0332 : case 0x0336 : case 0x0326 : case 0x031C : case 0x032D : case 0x032E : case 0xFE22 : case 0xFE23 : case 0x0313 : break; default: return false; } return true;
|
public static boolean isCombiningDiacriticalMark(char c) { switch (c) { // combining grave accent case 0x0300 : // combining acute accent case 0x0301 : // combining circumflex case 0x0302 : // combining tilde case 0x0303 : // combining macron case 0x0304 : // combining breve case 0x0306 : // combining dot above case 0x0307 : // combining diaeresis case 0x0308 : // combining hook above case 0x0309 : // combining caron case 0x030C : // combining ring above case 0x030A : // combining ligature left half case 0xFE20 : // combining ligature right half case 0xFE21 : // combining comma above right case 0x0315 : // combining double acute accent case 0x030B : // combining candrabindu case 0x0310 : // combining cedilla case 0x0327 : // combining ogonek case 0x0328 : // combining dot below case 0x0323 : // combining double dot below case 0x0324 : // combining ring below case 0x0325 : // combining double low line case 0x0333 : // combining low line case 0x0332 : // combining comma below case 0x0336 : // combining comma below case 0x0326 : // combining left half ring below case 0x031C : // combining breve below case 0x032E : // combining double tilde left half case 0xFE22 : // combining double tilde right half case 0xFE23 : // combining comma above case 0x0313 : break; default: return false; } return true; }
|
5019 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5019/5a70bb5e1a663b495a4eb352ec7c7510a3bfc2f1/Unicode.java/buggy/src/org/marc4j/util/Unicode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
353,
24107,
310,
14521,
1077,
15197,
3882,
12,
3001,
276,
13,
288,
202,
565,
1620,
261,
71,
13,
288,
202,
565,
368,
29189,
3087,
537,
30122,
202,
565,
648,
374,
92,
4630,
713,
294,
202,
565,
368,
29189,
1721,
624,
30122,
202,
565,
648,
374,
92,
4630,
1611,
294,
202,
565,
368,
29189,
29951,
27592,
202,
565,
648,
374,
92,
4630,
3103,
294,
202,
565,
368,
29189,
268,
330,
323,
202,
565,
648,
374,
92,
4630,
4630,
294,
202,
565,
368,
29189,
5318,
1949,
202,
565,
648,
374,
92,
4630,
3028,
294,
202,
565,
368,
29189,
324,
266,
537,
202,
565,
648,
374,
92,
4630,
7677,
294,
202,
565,
368,
29189,
3928,
5721,
202,
565,
648,
374,
92,
4630,
8642,
294,
202,
565,
368,
29189,
302,
1155,
11737,
291,
202,
565,
648,
374,
92,
4630,
6840,
294,
202,
565,
368,
29189,
3953,
5721,
202,
565,
648,
374,
92,
4630,
5908,
294,
202,
565,
368,
29189,
5926,
265,
202,
565,
648,
374,
92,
4630,
20,
39,
294,
202,
565,
368,
29189,
9221,
5721,
202,
565,
648,
374,
92,
4630,
20,
37,
294,
202,
565,
368,
29189,
16917,
1231,
2002,
8816,
202,
565,
648,
374,
92,
8090,
3462,
294,
202,
565,
368,
29189,
16917,
1231,
2145,
8816,
202,
565,
648,
374,
92,
8090,
5340,
294,
202,
565,
368,
29189,
8716,
5721,
2145,
202,
565,
648,
374,
92,
4630,
3600,
294,
202,
565,
368,
29189,
1645,
1721,
624,
30122,
202,
565,
648,
374,
92,
4630,
20,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
353,
24107,
310,
14521,
1077,
15197,
3882,
12,
3001,
276,
13,
288,
202,
565,
1620,
261,
71,
13,
288,
202,
565,
368,
29189,
3087,
537,
30122,
202,
565,
648,
374,
92,
4630,
713,
294,
202,
565,
368,
29189,
1721,
624,
30122,
202,
565,
648,
374,
92,
4630,
1611,
294,
202,
565,
368,
29189,
29951,
27592,
202,
565,
648,
374,
92,
4630,
3103,
294,
202,
565,
368,
29189,
268,
330,
323,
202,
565,
648,
374,
92,
4630,
4630,
294,
202,
565,
368,
29189,
5318,
1949,
202,
565,
648,
374,
92,
4630,
3028,
294,
202,
565,
368,
29189,
324,
266,
537,
202,
565,
648,
374,
92,
4630,
7677,
294,
202,
565,
368,
29189,
3928,
5721,
202,
565,
2
] |
}
|
}
|
static public List getCatalog( ComponentContext context, HttpServletRequest request, ServletContext servletContext) throws ServletException { // Retrieve name used to store catalog in application context. // If not found, use default name String catalogName = (String)context.getAttribute( MENU_CATALOG_NAME_ATTRIBUTE ); if(catalogName == null) catalogName = DEFAULT_MENU_CATALOG_NAME; // Get catalog from context List catalog = (List)servletContext.getAttribute( catalogName ); // If not found, initialize it from provided default menu if( catalog == null ) { Object menuBar = context.getAttribute( CATALOG_SETTING_ATTRIBUTE ); if( menuBar == null ) throw new ServletException( "Attribute '" + CATALOG_SETTING_ATTRIBUTE + "' must be set. It define entries used in catalog" ); catalog = new ArrayList(); extractItems(catalog, menuBar, request, servletContext); if( catalog.size() == 0 ) throw new ServletException( "Can't initialize menu items catalog" ); // save it for future use servletContext.setAttribute( catalogName, catalog ); } // end if return catalog; }
|
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/92cab7ce5e83a95cf76480e16b7c6695d1f1716b/UserMenuAction.java/buggy/src/tiles-documentation/org/apache/struts/webapp/tiles/portal/UserMenuAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1071,
987,
1927,
4392,
12,
5435,
1042,
819,
16,
9984,
590,
16,
22717,
20474,
13,
1377,
1216,
16517,
1377,
288,
3639,
368,
10708,
508,
1399,
358,
1707,
6222,
316,
2521,
819,
18,
3639,
368,
971,
486,
1392,
16,
999,
805,
508,
1377,
514,
6222,
461,
273,
261,
780,
13,
2472,
18,
588,
1499,
12,
490,
1157,
57,
67,
14130,
18683,
67,
1985,
67,
11616,
11272,
1377,
309,
12,
7199,
461,
422,
446,
13,
3639,
6222,
461,
273,
3331,
67,
29227,
67,
14130,
18683,
67,
1985,
31,
3639,
368,
968,
6222,
628,
819,
1377,
987,
6222,
273,
261,
682,
13,
23231,
1042,
18,
588,
1499,
12,
6222,
461,
11272,
3639,
368,
971,
486,
1392,
16,
4046,
518,
628,
2112,
805,
3824,
1377,
309,
12,
6222,
422,
446,
262,
3639,
288,
3639,
1033,
3824,
5190,
273,
819,
18,
588,
1499,
12,
30210,
18683,
67,
1090,
12239,
67,
11616,
11272,
3639,
309,
12,
3824,
5190,
422,
446,
262,
1850,
604,
394,
16517,
12,
315,
1499,
2119,
397,
30210,
18683,
67,
1090,
12239,
67,
11616,
397,
2491,
1297,
506,
444,
18,
2597,
4426,
3222,
1399,
316,
6222,
6,
11272,
3639,
6222,
273,
394,
2407,
5621,
3639,
2608,
3126,
12,
7199,
16,
3824,
5190,
16,
590,
16,
20474,
1769,
3639,
309,
12,
6222,
18,
1467,
1435,
422,
374,
262,
1850,
604,
394,
16517,
12,
315,
2568,
1404,
4046,
3824,
1516,
6222,
6,
11272,
1850,
368,
1923,
518,
364,
3563,
999,
3639,
20474,
18,
542,
1499,
12,
6222,
461,
16,
6222,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1071,
987,
1927,
4392,
12,
5435,
1042,
819,
16,
9984,
590,
16,
22717,
20474,
13,
1377,
1216,
16517,
1377,
288,
3639,
368,
10708,
508,
1399,
358,
1707,
6222,
316,
2521,
819,
18,
3639,
368,
971,
486,
1392,
16,
999,
805,
508,
1377,
514,
6222,
461,
273,
261,
780,
13,
2472,
18,
588,
1499,
12,
490,
1157,
57,
67,
14130,
18683,
67,
1985,
67,
11616,
11272,
1377,
309,
12,
7199,
461,
422,
446,
13,
3639,
6222,
461,
273,
3331,
67,
29227,
67,
14130,
18683,
67,
1985,
31,
3639,
368,
968,
6222,
628,
819,
1377,
987,
6222,
273,
261,
682,
13,
23231,
1042,
18,
588,
1499,
12,
6222,
461,
11272,
3639,
368,
971,
486,
1392,
16,
4046,
518,
628,
2
] |
Debug.println(Debug.MEDIUM, this + ": received: " + tmpCommand);
|
Debug.println(Debug.MEDIUM, "Downlink: received: " + tmpCommand);
|
private void listen() { Debug.println(this + ": starting..."); Command tmpCommand; DownlinkOwner owner = this.downlinkOwner; // horchen, bis stop==true (wird von auen gesetzt) while (!stop) { try { tmpCommand = (Command) objectInputStream.readObject(); Debug.println(Debug.MEDIUM, this + ": received: " + tmpCommand); // owner aktualisieren owner = this.downlinkOwner; // beim owner das Command ausfhren if (owner != null) { owner.processMsg(tmpCommand); } // pausieren this.sleep(this.LISTEN_DELAY); } catch (Exception e) { Debug.println(Debug.HIGH, this + ": error while listening :" + e); e.printStackTrace(); if (owner != null) { owner.downlinkError(); } } } }
|
12294 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12294/b991ad420cdcc9f045a956b1f7d1cda421948648/Downlink.java/clean/implementation/Util/Downlink.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
6514,
1435,
288,
565,
4015,
18,
8222,
12,
2211,
397,
6398,
5023,
7070,
1769,
3639,
3498,
1853,
2189,
31,
565,
10077,
1232,
5541,
3410,
273,
333,
18,
2378,
1232,
5541,
31,
565,
368,
29404,
343,
275,
16,
17771,
2132,
631,
3767,
261,
91,
6909,
331,
265,
20309,
275,
314,
281,
278,
94,
88,
13,
565,
1323,
16051,
5681,
13,
288,
1377,
775,
288,
3639,
1853,
2189,
273,
261,
2189,
13,
733,
4348,
18,
896,
921,
5621,
3639,
4015,
18,
8222,
12,
2829,
18,
15971,
2799,
16,
315,
4164,
1232,
30,
5079,
30,
315,
397,
1853,
2189,
1769,
3639,
368,
3410,
22371,
1462,
291,
2453,
275,
3639,
3410,
273,
333,
18,
2378,
1232,
5541,
31,
3639,
368,
506,
381,
3410,
30255,
3498,
279,
407,
19260,
1187,
3639,
309,
261,
8443,
480,
446,
13,
288,
1850,
3410,
18,
2567,
3332,
12,
5645,
2189,
1769,
3639,
289,
3639,
368,
6790,
407,
2453,
275,
3639,
333,
18,
19607,
12,
2211,
18,
7085,
1157,
67,
26101,
1769,
1377,
289,
1044,
261,
503,
425,
13,
288,
3639,
4015,
18,
8222,
12,
2829,
18,
29996,
16,
333,
397,
6398,
555,
1323,
13895,
20514,
397,
425,
1769,
3639,
425,
18,
1188,
6332,
5621,
3639,
309,
261,
8443,
480,
446,
13,
288,
1850,
3410,
18,
2378,
1232,
668,
5621,
3639,
289,
1377,
289,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
6514,
1435,
288,
565,
4015,
18,
8222,
12,
2211,
397,
6398,
5023,
7070,
1769,
3639,
3498,
1853,
2189,
31,
565,
10077,
1232,
5541,
3410,
273,
333,
18,
2378,
1232,
5541,
31,
565,
368,
29404,
343,
275,
16,
17771,
2132,
631,
3767,
261,
91,
6909,
331,
265,
20309,
275,
314,
281,
278,
94,
88,
13,
565,
1323,
16051,
5681,
13,
288,
1377,
775,
288,
3639,
1853,
2189,
273,
261,
2189,
13,
733,
4348,
18,
896,
921,
5621,
3639,
4015,
18,
8222,
12,
2829,
18,
15971,
2799,
16,
315,
4164,
1232,
30,
5079,
30,
315,
397,
1853,
2189,
1769,
3639,
368,
3410,
22371,
1462,
291,
2453,
275,
3639,
3410,
273,
333,
18,
2378,
1232,
5541,
31,
3639,
368,
2
] |
private void parseMisc ()
|
private void parseMisc()
|
private void parseMisc () throws Exception { while (true) { skipWhitespace (); if (tryRead (startDelimPI)) { parsePI (); } else if (tryRead (startDelimComment)) { parseComment (); } else { return; } } }
|
1739 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1739/7fb7568e63c3fe14af521de4699cb37898923ca7/XmlParser.java/buggy/libjava/gnu/xml/aelfred2/XmlParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1109,
11729,
71,
1435,
565,
1216,
1185,
565,
288,
202,
17523,
261,
3767,
13,
288,
202,
565,
2488,
9431,
261,
1769,
202,
565,
309,
261,
698,
1994,
261,
1937,
21445,
1102,
3719,
288,
202,
202,
2670,
1102,
261,
1769,
202,
565,
289,
469,
309,
261,
698,
1994,
261,
1937,
21445,
4469,
3719,
288,
202,
202,
2670,
4469,
261,
1769,
202,
565,
289,
469,
288,
202,
202,
2463,
31,
202,
565,
289,
202,
97,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1109,
11729,
71,
1435,
565,
1216,
1185,
565,
288,
202,
17523,
261,
3767,
13,
288,
202,
565,
2488,
9431,
261,
1769,
202,
565,
309,
261,
698,
1994,
261,
1937,
21445,
1102,
3719,
288,
202,
202,
2670,
1102,
261,
1769,
202,
565,
289,
469,
309,
261,
698,
1994,
261,
1937,
21445,
4469,
3719,
288,
202,
202,
2670,
4469,
261,
1769,
202,
565,
289,
469,
288,
202,
202,
2463,
31,
202,
565,
289,
202,
97,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Object root = getRoot(); if (root == null) {
|
Object root = getRoot(); if (root == null) {
|
protected Widget doFindInputItem(Object element) { // compare with root Object root = getRoot(); if (root == null) { return null; } if (equals(root, element)) { return getControl(); } return null; }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/7dea322b00f8363f209617dc36ba0b47497db00d/AbstractTreeViewer.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/AbstractTreeViewer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
11103,
741,
3125,
1210,
1180,
12,
921,
930,
13,
288,
3639,
368,
3400,
598,
1365,
3639,
1033,
1365,
273,
7656,
5621,
3639,
309,
261,
3085,
422,
446,
13,
288,
1082,
202,
2463,
446,
31,
202,
202,
97,
3639,
309,
261,
14963,
12,
3085,
16,
930,
3719,
288,
1082,
202,
2463,
27174,
5621,
202,
202,
97,
3639,
327,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
11103,
741,
3125,
1210,
1180,
12,
921,
930,
13,
288,
3639,
368,
3400,
598,
1365,
3639,
1033,
1365,
273,
7656,
5621,
3639,
309,
261,
3085,
422,
446,
13,
288,
1082,
202,
2463,
446,
31,
202,
202,
97,
3639,
309,
261,
14963,
12,
3085,
16,
930,
3719,
288,
1082,
202,
2463,
27174,
5621,
202,
202,
97,
3639,
327,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
} catch (final Exception ex) { ex.printStackTrace();
|
public InputSource resolveEntity(final String publicId, final String systemId) throws SAXException, IOException { try { if (!systemId.toLowerCase().startsWith("http://")) { final URL resource = getClass().getResource("pzfilereader.dtd"); if (resource != null) { return new InputSource(resource.openStream()); } else { throw new Exception("could not load dtd resource!!"); } } } catch (final Exception ex) { ex.printStackTrace(); } // must be pulling from the web, stick with default implementation return null; }
|
6117 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6117/153b561cad8fafd5b7175a14212032c8c31aed04/ResolveLocalDTD.java/buggy/PZFileReader/src/main/java/net/sf/pzfilereader/xml/ResolveLocalDTD.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
23699,
2245,
1943,
12,
6385,
514,
1071,
548,
16,
727,
514,
30083,
13,
1216,
14366,
16,
1860,
288,
3639,
775,
288,
5411,
309,
16051,
4299,
548,
18,
869,
5630,
7675,
17514,
1190,
2932,
2505,
14334,
3719,
288,
7734,
727,
1976,
1058,
273,
2900,
7675,
588,
1420,
2932,
84,
94,
11894,
18105,
18,
31834,
8863,
7734,
309,
261,
3146,
480,
446,
13,
288,
10792,
327,
394,
23699,
12,
3146,
18,
3190,
1228,
10663,
7734,
289,
469,
288,
10792,
604,
394,
1185,
2932,
15195,
486,
1262,
3681,
72,
1058,
5,
4442,
1769,
7734,
289,
5411,
289,
3639,
289,
1044,
261,
6385,
1185,
431,
13,
288,
5411,
431,
18,
1188,
6332,
5621,
3639,
289,
3639,
368,
1297,
506,
6892,
310,
628,
326,
3311,
16,
25608,
598,
805,
4471,
3639,
327,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
23699,
2245,
1943,
12,
6385,
514,
1071,
548,
16,
727,
514,
30083,
13,
1216,
14366,
16,
1860,
288,
3639,
775,
288,
5411,
309,
16051,
4299,
548,
18,
869,
5630,
7675,
17514,
1190,
2932,
2505,
14334,
3719,
288,
7734,
727,
1976,
1058,
273,
2900,
7675,
588,
1420,
2932,
84,
94,
11894,
18105,
18,
31834,
8863,
7734,
309,
261,
3146,
480,
446,
13,
288,
10792,
327,
394,
23699,
12,
3146,
18,
3190,
1228,
10663,
7734,
289,
469,
288,
10792,
604,
394,
1185,
2932,
15195,
486,
1262,
3681,
72,
1058,
5,
4442,
1769,
7734,
289,
5411,
289,
3639,
289,
1044,
261,
6385,
1185,
431,
13,
288,
5411,
431,
18,
1188,
6332,
5621,
3639,
289,
3639,
368,
1297,
506,
6892,
310,
2
] |
|
if(local == null)
|
if (local == null)
|
public void messageReceived(Serializable msg,final INode from) { if(msg instanceof UnifiedInitMessage) { UnifiedInitMessage initMessage = (UnifiedInitMessage) msg; initFromRemoteData(from, initMessage); } else if(msg instanceof EndPointCreated) { EndPointCreated created = (EndPointCreated) msg; createEndPointInternal(created.name, RemoteMethodCall.stringsToClasses(created.classes), created.singleThreaded); } else if (msg instanceof EndPointDestroyed) { EndPointDestroyed destroyed = (EndPointDestroyed) msg; destroyEndPointInternal(destroyed.name); } else if (msg instanceof NoLongerHasEndPointImplementor) { synchronized(m_endPointMutex) { String name = ((NoLongerHasEndPointImplementor) msg).endPointName; Collection current = (Collection) m_remoteNodesWithImplementors.get(from); if(current == null) { current = new HashSet(); m_remoteNodesWithImplementors.put(from, current); } current.remove(name); } }else if (msg instanceof HasEndPointImplementor) { synchronized(m_endPointMutex) { String name = ((HasEndPointImplementor) msg).endPointName; Collection current = (Collection) m_remoteNodesWithImplementors.get(from); if(current == null) { current = new HashSet(); m_remoteNodesWithImplementors.put(from, current); } current.add(name); } } else if (msg instanceof Invoke) { final Invoke invoke = (Invoke) msg; final EndPoint local = (EndPoint) m_localEndPoints.get(invoke.endPointName); //something a bit strange here, it may be the case //that the endpoint was deleted locally //regardless, the other side is expecting our reply if(local == null) { m_messenger.send(new InvocationResults(new ArrayList(), invoke.methodCallID), from); return; } //very important //we are guaranteed that here messages will be //read in the same order that they are sent from the client //however, once we delegate to the thread pool, there is no //guarantee that the thread pool task will run before //we get the next message notification //get the number for the invocation here final long methodRunNumber = local.takeANumber(); //we dont want to block the message thread, only one thread is reading messages //per connection, so run with out thread pool Runnable task = new Runnable() { public void run() { List results = local.invokeLocal(invoke.call, methodRunNumber); if(invoke.needReturnValues) { m_messenger.send(new InvocationResults(results, invoke.methodCallID), from); } } }; m_threadPool.runTask(task); } //a remote machine is returning results else if(msg instanceof InvocationResults) { InvocationResults results = (InvocationResults) msg; //we need to find the GUID on the local vm //we synch on that object Iterator keys = m_methodCallWaitCount.keySet().iterator(); GUID localGUID = null; boolean found = false; while(keys.hasNext()) { localGUID = (GUID) keys.next(); if(localGUID.equals(results.methodCallID)) { found = true; break; } } if(!found) throw new IllegalStateException("Could not find local id for method:" + results.methodCallID); synchronized(localGUID) { if(!m_methodCallResults.containsKey(localGUID)) { m_methodCallResults.put(localGUID, new ArrayList()); } ((List) m_methodCallResults.get(localGUID)).addAll(results.results); int waitCount = ((Integer) m_methodCallWaitCount.get(localGUID)).intValue(); waitCount--; m_methodCallWaitCount.put(localGUID, new Integer(waitCount)); if(waitCount < 0) throw new IllegalStateException("-ve wait count of:" + waitCount); if(waitCount == 0) { //wake up the waiter localGUID.notifyAll(); } } } }
|
8909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8909/0d04facb896d950d5339227d75dfe8acdc1d554a/UnifiedMessenger.java/buggy/triplea/src/games/strategy/engine/message/UnifiedMessenger.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
883,
8872,
12,
21682,
1234,
16,
6385,
225,
21176,
628,
13,
3639,
288,
5411,
309,
12,
3576,
1276,
1351,
939,
2570,
1079,
13,
5411,
288,
7734,
1351,
939,
2570,
1079,
1208,
1079,
273,
261,
984,
939,
2570,
1079,
13,
1234,
31,
7734,
1208,
1265,
5169,
751,
12,
2080,
16,
1208,
1079,
1769,
18701,
289,
469,
309,
12,
3576,
1276,
4403,
2148,
6119,
13,
5411,
288,
7734,
4403,
2148,
6119,
2522,
273,
261,
27185,
6119,
13,
1234,
31,
7734,
752,
27185,
3061,
12,
4824,
18,
529,
16,
6304,
12592,
18,
10219,
774,
4818,
12,
4824,
18,
4701,
3631,
2522,
18,
7526,
1315,
20528,
1769,
5411,
289,
469,
309,
261,
3576,
1276,
4403,
2148,
28414,
13,
5411,
288,
7734,
4403,
2148,
28414,
17689,
273,
261,
27185,
28414,
13,
1234,
31,
7734,
5546,
27185,
3061,
12,
11662,
329,
18,
529,
1769,
5411,
289,
469,
309,
261,
3576,
1276,
2631,
15927,
693,
5582,
27185,
5726,
280,
13,
5411,
288,
7734,
3852,
12,
81,
67,
409,
2148,
11433,
13,
7734,
288,
1082,
7734,
514,
508,
273,
14015,
2279,
15927,
693,
5582,
27185,
5726,
280,
13,
1234,
2934,
409,
2148,
461,
31,
202,
7734,
2200,
783,
273,
261,
2532,
13,
312,
67,
7222,
3205,
1190,
5726,
1383,
18,
588,
12,
2080,
1769,
202,
7734,
309,
12,
2972,
422,
446,
13,
202,
7734,
288,
202,
10792,
783,
273,
394,
6847,
5621,
202,
10792,
312,
67,
7222,
3205,
1190,
5726,
1383,
18,
458,
12,
2080,
16,
783,
1769,
202,
7734,
289,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
883,
8872,
12,
21682,
1234,
16,
6385,
225,
21176,
628,
13,
3639,
288,
5411,
309,
12,
3576,
1276,
1351,
939,
2570,
1079,
13,
5411,
288,
7734,
1351,
939,
2570,
1079,
1208,
1079,
273,
261,
984,
939,
2570,
1079,
13,
1234,
31,
7734,
1208,
1265,
5169,
751,
12,
2080,
16,
1208,
1079,
1769,
18701,
289,
469,
309,
12,
3576,
1276,
4403,
2148,
6119,
13,
5411,
288,
7734,
4403,
2148,
6119,
2522,
273,
261,
27185,
6119,
13,
1234,
31,
7734,
752,
27185,
3061,
12,
4824,
18,
529,
16,
6304,
12592,
18,
10219,
774,
4818,
12,
4824,
18,
4701,
3631,
2522,
18,
7526,
1315,
20528,
1769,
5411,
289,
469,
309,
261,
3576,
1276,
4403,
2148,
28414,
13,
5411,
288,
2
] |
public ActionSetRegistry getActionSetRegistry() {
|
public synchronized ActionSetRegistry getActionSetRegistry() {
|
public ActionSetRegistry getActionSetRegistry() { if (actionSetRegistry == null) { actionSetRegistry = new ActionSetRegistry(); } return actionSetRegistry; }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/2c50af617b4949f5c12d5eaad9497a9cc3a6afb5/WorkbenchPlugin.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPlugin.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
4382,
694,
4243,
12473,
694,
4243,
1435,
288,
3639,
309,
261,
1128,
694,
4243,
422,
446,
13,
288,
5411,
1301,
694,
4243,
273,
394,
4382,
694,
4243,
5621,
3639,
289,
3639,
327,
1301,
694,
4243,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
4382,
694,
4243,
12473,
694,
4243,
1435,
288,
3639,
309,
261,
1128,
694,
4243,
422,
446,
13,
288,
5411,
1301,
694,
4243,
273,
394,
4382,
694,
4243,
5621,
3639,
289,
3639,
327,
1301,
694,
4243,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if(Character.isISOControl(ch)) {
|
if (Character.isISOControl(ch)) {
|
public Object getValueAt(Object node, int column) { Object value = getObject(node); Context cx = Context.enter(); try { switch(column) { case 0: // Name VariableNode varNode = (VariableNode)node; String name = ""; if(varNode.name != null) { return name + varNode.name; } return name + "[" + varNode.index + "]"; case 1: // value if(value == Undefined.instance || value == ScriptableObject.NOT_FOUND) { return "undefined"; } if(value == null) { return "null"; } if(value instanceof NativeCall) { return "[object Call]"; } String result; try { result = Context.toString(value); } catch(RuntimeException exc) { result = value.toString(); } StringBuffer buf = new StringBuffer(); int len = result.length(); for(int i = 0; i < len; i++) { char ch = result.charAt(i); if(Character.isISOControl(ch)) { ch = ' '; } buf.append(ch); } return buf.toString(); } } catch(Exception exc) { //exc.printStackTrace(); } finally { cx.exit(); } return null; }
|
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/b9766e81693411fa600b26b9a0763dcf621b2770/VariableModel.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/VariableModel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
2366,
861,
12,
921,
756,
16,
509,
1057,
13,
288,
3639,
1033,
460,
273,
6455,
12,
2159,
1769,
3639,
1772,
9494,
273,
1772,
18,
2328,
5621,
3639,
775,
288,
5411,
1620,
12,
2827,
13,
288,
5411,
648,
374,
30,
368,
1770,
7734,
7110,
907,
569,
907,
273,
261,
3092,
907,
13,
2159,
31,
7734,
514,
508,
273,
1408,
31,
7734,
309,
12,
1401,
907,
18,
529,
480,
446,
13,
288,
10792,
327,
508,
397,
569,
907,
18,
529,
31,
7734,
289,
7734,
327,
508,
397,
13626,
397,
569,
907,
18,
1615,
397,
9870,
31,
5411,
648,
404,
30,
368,
460,
7734,
309,
12,
1132,
422,
22243,
18,
1336,
747,
10402,
460,
422,
22780,
921,
18,
4400,
67,
9294,
13,
288,
10792,
327,
315,
5978,
14432,
7734,
289,
7734,
309,
12,
1132,
422,
446,
13,
288,
10792,
327,
315,
2011,
14432,
7734,
289,
7734,
309,
12,
1132,
1276,
16717,
1477,
13,
288,
10792,
327,
5158,
1612,
3049,
4279,
31,
7734,
289,
7734,
514,
563,
31,
7734,
775,
288,
10792,
563,
273,
1772,
18,
10492,
12,
1132,
1769,
7734,
289,
1044,
12,
11949,
3533,
13,
288,
10792,
563,
273,
460,
18,
10492,
5621,
7734,
289,
7734,
6674,
1681,
273,
394,
6674,
5621,
7734,
509,
562,
273,
563,
18,
2469,
5621,
7734,
364,
12,
474,
277,
273,
374,
31,
277,
411,
562,
31,
277,
27245,
288,
10792,
1149,
462,
273,
563,
18,
3001,
861,
12,
77,
1769,
10792,
309,
261,
7069,
18,
291,
12609,
3367,
12,
343,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
2366,
861,
12,
921,
756,
16,
509,
1057,
13,
288,
3639,
1033,
460,
273,
6455,
12,
2159,
1769,
3639,
1772,
9494,
273,
1772,
18,
2328,
5621,
3639,
775,
288,
5411,
1620,
12,
2827,
13,
288,
5411,
648,
374,
30,
368,
1770,
7734,
7110,
907,
569,
907,
273,
261,
3092,
907,
13,
2159,
31,
7734,
514,
508,
273,
1408,
31,
7734,
309,
12,
1401,
907,
18,
529,
480,
446,
13,
288,
10792,
327,
508,
397,
569,
907,
18,
529,
31,
7734,
289,
7734,
327,
508,
397,
13626,
397,
569,
907,
18,
1615,
397,
9870,
31,
5411,
648,
404,
30,
368,
460,
7734,
309,
12,
1132,
422,
22243,
18,
1336,
747,
10402,
460,
422,
22780,
921,
18,
4400,
2
] |
public Experiment(String name, SocietyComponent[] societyComponents,
|
public Experiment(String name, SocietyComponent societyComponent,
|
public Experiment(String name, SocietyComponent[] societyComponents, RecipeComponent[] recipes) { this(name); createLogger(); setSocietyComponents(societyComponents); setRecipes(recipes); setDefaultNodeArguments(); }
|
9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/dcd79c6725c97d33bf8748edc006100e7841feb5/Experiment.java/buggy/csmart/src/org/cougaar/tools/csmart/experiment/Experiment.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
22844,
12,
780,
508,
16,
348,
1882,
14369,
1841,
8526,
272,
1882,
14369,
7171,
16,
1082,
565,
7776,
3151,
1841,
8526,
5863,
281,
13,
225,
288,
565,
333,
12,
529,
1769,
565,
752,
3328,
5621,
565,
13928,
1882,
14369,
7171,
12,
87,
1882,
14369,
7171,
1769,
565,
444,
426,
3449,
281,
12,
266,
3449,
281,
1769,
565,
9277,
907,
4628,
5621,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
22844,
12,
780,
508,
16,
348,
1882,
14369,
1841,
8526,
272,
1882,
14369,
7171,
16,
1082,
565,
7776,
3151,
1841,
8526,
5863,
281,
13,
225,
288,
565,
333,
12,
529,
1769,
565,
752,
3328,
5621,
565,
13928,
1882,
14369,
7171,
12,
87,
1882,
14369,
7171,
1769,
565,
444,
426,
3449,
281,
12,
266,
3449,
281,
1769,
565,
9277,
907,
4628,
5621,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
debug="Write field to output stream: ["+v.toString()+"] of type ["+v.toStringMeta()+"]";
|
private boolean writeRowToFile(Row r) { debug="row to file"; Value v; try { debug="Start"; if (first) { first=false; if (!meta.isFileAppended() && ( meta.isHeaderEnabled() || meta.isFooterEnabled())) // See if we have to write a header-line) { data.headerrow=new Row(r); // copy the row for the footer! if (meta.isHeaderEnabled()) { if (writeHeader()) return false; } } data.fieldnrs=new int[meta.getOutputFields().length]; debug="Get fieldnrs... field_name.length="+meta.getOutputFields().length; for (int i=0;i<meta.getOutputFields().length;i++) { data.fieldnrs[i]=r.searchValueIndex(meta.getOutputFields()[i].getName()); if (data.fieldnrs[i]<0) { logError("Field ["+meta.getOutputFields()[i].getName()+"] couldn't be found in the input stream!"); setErrors(1); stopAll(); return false; } } } if (meta.getOutputFields()==null || meta.getOutputFields().length==0) { /* * Write all values in stream to text file. */ debug="Loop fields 0.."+r.size(); for (int i=0;i<r.size();i++) { debug="start for loop"; if (i>0) data.writer.write(meta.getSeparator().toCharArray()); debug="Get value "+i+" of "+r.size(); v=r.getValue(i); debug="Write field to output stream: ["+v.toString()+"] of type ["+v.toStringMeta()+"]"; writeField(v, -1); } data.writer.write(meta.getNewline().toCharArray()); } else { /* * Only write the fields specified! */ debug="Loop fields 0.."+meta.getOutputFields().length; for (int i=0;i<meta.getOutputFields().length;i++) { debug="start for loop"; if (i>0) data.writer.write(meta.getSeparator().toCharArray()); debug="Get value "+data.fieldnrs[i]+" of row "; v=r.getValue(data.fieldnrs[i]); v.setLength(meta.getOutputFields()[i].getLength(), meta.getOutputFields()[i].getPrecision()); writeField(v, i); } data.writer.write(meta.getNewline().toCharArray()); } } catch(Exception e) { logError("Error writing line in ["+debug+"] :"+e.toString()); return false; } linesOutput++; return true; }
|
58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/b8c6b02ffc35cf6ae44d1cb0cdf4ecec0144af21/TextFileOutput.java/buggy/kettle/src/be/ibridge/kettle/trans/step/textfileoutput/TextFileOutput.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
1045,
1999,
15450,
12,
1999,
436,
13,
202,
95,
202,
202,
4148,
1546,
492,
358,
585,
14432,
202,
202,
620,
331,
31,
9506,
202,
698,
202,
202,
95,
9506,
202,
4148,
1546,
1685,
14432,
1082,
202,
430,
261,
3645,
13,
1082,
202,
95,
9506,
202,
3645,
33,
5743,
31,
9506,
202,
430,
16051,
3901,
18,
291,
812,
1294,
11275,
1435,
597,
261,
2191,
18,
291,
1864,
1526,
1435,
747,
2191,
18,
291,
13787,
1526,
1435,
3719,
368,
2164,
309,
732,
1240,
358,
1045,
279,
1446,
17,
1369,
13,
9506,
202,
95,
6862,
202,
892,
18,
3374,
492,
33,
2704,
6556,
12,
86,
1769,
368,
1610,
326,
1027,
364,
326,
9860,
5,
6862,
202,
430,
261,
3901,
18,
291,
1864,
1526,
10756,
6862,
202,
95,
25083,
202,
430,
261,
2626,
1864,
10756,
327,
629,
31,
6862,
202,
97,
9506,
202,
97,
6862,
9506,
202,
892,
18,
1518,
82,
5453,
33,
2704,
509,
63,
3901,
18,
588,
1447,
2314,
7675,
2469,
15533,
9506,
202,
4148,
1546,
967,
652,
82,
5453,
2777,
652,
67,
529,
18,
2469,
1546,
15,
3901,
18,
588,
1447,
2314,
7675,
2469,
31,
9506,
202,
1884,
261,
474,
277,
33,
20,
31,
77,
32,
3901,
18,
588,
1447,
2314,
7675,
2469,
31,
77,
27245,
9506,
202,
95,
6862,
202,
892,
18,
1518,
82,
5453,
63,
77,
65,
33,
86,
18,
3072,
620,
1016,
12,
3901,
18,
588,
1447,
2314,
1435,
63,
77,
8009,
17994,
10663,
6862,
202,
430,
261,
892,
18,
1518,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
1045,
1999,
15450,
12,
1999,
436,
13,
202,
95,
202,
202,
4148,
1546,
492,
358,
585,
14432,
202,
202,
620,
331,
31,
9506,
202,
698,
202,
202,
95,
9506,
202,
4148,
1546,
1685,
14432,
1082,
202,
430,
261,
3645,
13,
1082,
202,
95,
9506,
202,
3645,
33,
5743,
31,
9506,
202,
430,
16051,
3901,
18,
291,
812,
1294,
11275,
1435,
597,
261,
2191,
18,
291,
1864,
1526,
1435,
747,
2191,
18,
291,
13787,
1526,
1435,
3719,
368,
2164,
309,
732,
1240,
358,
1045,
279,
1446,
17,
1369,
13,
9506,
202,
95,
6862,
202,
892,
18,
3374,
492,
33,
2704,
6556,
12,
86,
1769,
368,
1610,
326,
1027,
364,
326,
9860,
5,
6862,
202,
430,
261,
2
] |
|
AST __t1485 = _t;
|
AST __t1470 = _t;
|
public final void argfunc(AST _t) throws RecognitionException { AST argfunc_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case AACBIT: { AST __t1411 = _t; AST tmp344_AST_in = (AST)_t; match(_t,AACBIT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1411; _t = _t.getNextSibling(); break; } case AAMSG: { AST __t1412 = _t; AST tmp345_AST_in = (AST)_t; match(_t,AAMSG); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1412; _t = _t.getNextSibling(); break; } case ABSOLUTE: { AST __t1413 = _t; AST tmp346_AST_in = (AST)_t; match(_t,ABSOLUTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1413; _t = _t.getNextSibling(); break; } case ALIAS: { AST __t1414 = _t; AST tmp347_AST_in = (AST)_t; match(_t,ALIAS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1414; _t = _t.getNextSibling(); break; } case ASC: { AST __t1415 = _t; AST tmp348_AST_in = (AST)_t; match(_t,ASC); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1415; _t = _t.getNextSibling(); break; } case BASE64DECODE: { AST __t1416 = _t; AST tmp349_AST_in = (AST)_t; match(_t,BASE64DECODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1416; _t = _t.getNextSibling(); break; } case BASE64ENCODE: { AST __t1417 = _t; AST tmp350_AST_in = (AST)_t; match(_t,BASE64ENCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1417; _t = _t.getNextSibling(); break; } case CANDO: { AST __t1418 = _t; AST tmp351_AST_in = (AST)_t; match(_t,CANDO); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1418; _t = _t.getNextSibling(); break; } case CANQUERY: { AST __t1419 = _t; AST tmp352_AST_in = (AST)_t; match(_t,CANQUERY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1419; _t = _t.getNextSibling(); break; } case CANSET: { AST __t1420 = _t; AST tmp353_AST_in = (AST)_t; match(_t,CANSET); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1420; _t = _t.getNextSibling(); break; } case CAPS: { AST __t1421 = _t; AST tmp354_AST_in = (AST)_t; match(_t,CAPS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1421; _t = _t.getNextSibling(); break; } case CHR: { AST __t1422 = _t; AST tmp355_AST_in = (AST)_t; match(_t,CHR); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1422; _t = _t.getNextSibling(); break; } case CODEPAGECONVERT: { AST __t1423 = _t; AST tmp356_AST_in = (AST)_t; match(_t,CODEPAGECONVERT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1423; _t = _t.getNextSibling(); break; } case COLLATE: { AST __t1424 = _t; AST tmp357_AST_in = (AST)_t; match(_t,COLLATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1424; _t = _t.getNextSibling(); break; } case COMPARE: { AST __t1425 = _t; AST tmp358_AST_in = (AST)_t; match(_t,COMPARE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1425; _t = _t.getNextSibling(); break; } case CONNECTED: { AST __t1426 = _t; AST tmp359_AST_in = (AST)_t; match(_t,CONNECTED); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1426; _t = _t.getNextSibling(); break; } case COUNTOF: { AST __t1427 = _t; AST tmp360_AST_in = (AST)_t; match(_t,COUNTOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1427; _t = _t.getNextSibling(); break; } case CURRENTRESULTROW: { AST __t1428 = _t; AST tmp361_AST_in = (AST)_t; match(_t,CURRENTRESULTROW); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1428; _t = _t.getNextSibling(); break; } case DATE: { AST __t1429 = _t; AST tmp362_AST_in = (AST)_t; match(_t,DATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1429; _t = _t.getNextSibling(); break; } case DATETIME: { AST __t1430 = _t; AST tmp363_AST_in = (AST)_t; match(_t,DATETIME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1430; _t = _t.getNextSibling(); break; } case DATETIMETZ: { AST __t1431 = _t; AST tmp364_AST_in = (AST)_t; match(_t,DATETIMETZ); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1431; _t = _t.getNextSibling(); break; } case DAY: { AST __t1432 = _t; AST tmp365_AST_in = (AST)_t; match(_t,DAY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1432; _t = _t.getNextSibling(); break; } case DBCODEPAGE: { AST __t1433 = _t; AST tmp366_AST_in = (AST)_t; match(_t,DBCODEPAGE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1433; _t = _t.getNextSibling(); break; } case DBCOLLATION: { AST __t1434 = _t; AST tmp367_AST_in = (AST)_t; match(_t,DBCOLLATION); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1434; _t = _t.getNextSibling(); break; } case DBPARAM: { AST __t1435 = _t; AST tmp368_AST_in = (AST)_t; match(_t,DBPARAM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1435; _t = _t.getNextSibling(); break; } case DBRESTRICTIONS: { AST __t1436 = _t; AST tmp369_AST_in = (AST)_t; match(_t,DBRESTRICTIONS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1436; _t = _t.getNextSibling(); break; } case DBTASKID: { AST __t1437 = _t; AST tmp370_AST_in = (AST)_t; match(_t,DBTASKID); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1437; _t = _t.getNextSibling(); break; } case DBTYPE: { AST __t1438 = _t; AST tmp371_AST_in = (AST)_t; match(_t,DBTYPE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1438; _t = _t.getNextSibling(); break; } case DBVERSION: { AST __t1439 = _t; AST tmp372_AST_in = (AST)_t; match(_t,DBVERSION); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1439; _t = _t.getNextSibling(); break; } case DECIMAL: { AST __t1440 = _t; AST tmp373_AST_in = (AST)_t; match(_t,DECIMAL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1440; _t = _t.getNextSibling(); break; } case DECRYPT: { AST __t1441 = _t; AST tmp374_AST_in = (AST)_t; match(_t,DECRYPT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1441; _t = _t.getNextSibling(); break; } case DYNAMICNEXTVALUE: { AST __t1442 = _t; AST tmp375_AST_in = (AST)_t; match(_t,DYNAMICNEXTVALUE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1442; _t = _t.getNextSibling(); break; } case ENCODE: { AST __t1443 = _t; AST tmp376_AST_in = (AST)_t; match(_t,ENCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1443; _t = _t.getNextSibling(); break; } case ENCRYPT: { AST __t1444 = _t; AST tmp377_AST_in = (AST)_t; match(_t,ENCRYPT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1444; _t = _t.getNextSibling(); break; } case EXP: { AST __t1445 = _t; AST tmp378_AST_in = (AST)_t; match(_t,EXP); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1445; _t = _t.getNextSibling(); break; } case FILL: { AST __t1446 = _t; AST tmp379_AST_in = (AST)_t; match(_t,FILL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1446; _t = _t.getNextSibling(); break; } case FIRST: { AST __t1447 = _t; AST tmp380_AST_in = (AST)_t; match(_t,FIRST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1447; _t = _t.getNextSibling(); break; } case FIRSTOF: { AST __t1448 = _t; AST tmp381_AST_in = (AST)_t; match(_t,FIRSTOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1448; _t = _t.getNextSibling(); break; } case GENERATEPBEKEY: { AST __t1449 = _t; AST tmp382_AST_in = (AST)_t; match(_t,GENERATEPBEKEY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1449; _t = _t.getNextSibling(); break; } case GETBITS: { AST __t1450 = _t; AST tmp383_AST_in = (AST)_t; match(_t,GETBITS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1450; _t = _t.getNextSibling(); break; } case GETBYTE: { AST __t1451 = _t; AST tmp384_AST_in = (AST)_t; match(_t,GETBYTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1451; _t = _t.getNextSibling(); break; } case GETBYTEORDER: { AST __t1452 = _t; AST tmp385_AST_in = (AST)_t; match(_t,GETBYTEORDER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1452; _t = _t.getNextSibling(); break; } case GETBYTES: { AST __t1453 = _t; AST tmp386_AST_in = (AST)_t; match(_t,GETBYTES); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1453; _t = _t.getNextSibling(); break; } case GETCOLLATIONS: { AST __t1454 = _t; AST tmp387_AST_in = (AST)_t; match(_t,GETCOLLATIONS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1454; _t = _t.getNextSibling(); break; } case GETDOUBLE: { AST __t1455 = _t; AST tmp388_AST_in = (AST)_t; match(_t,GETDOUBLE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1455; _t = _t.getNextSibling(); break; } case GETFLOAT: { AST __t1456 = _t; AST tmp389_AST_in = (AST)_t; match(_t,GETFLOAT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1456; _t = _t.getNextSibling(); break; } case GETLICENSE: { AST __t1457 = _t; AST tmp390_AST_in = (AST)_t; match(_t,GETLICENSE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1457; _t = _t.getNextSibling(); break; } case GETLONG: { AST __t1458 = _t; AST tmp391_AST_in = (AST)_t; match(_t,GETLONG); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1458; _t = _t.getNextSibling(); break; } case GETPOINTERVALUE: { AST __t1459 = _t; AST tmp392_AST_in = (AST)_t; match(_t,GETPOINTERVALUE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1459; _t = _t.getNextSibling(); break; } case GETSHORT: { AST __t1460 = _t; AST tmp393_AST_in = (AST)_t; match(_t,GETSHORT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1460; _t = _t.getNextSibling(); break; } case GETSIZE: { AST __t1461 = _t; AST tmp394_AST_in = (AST)_t; match(_t,GETSIZE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1461; _t = _t.getNextSibling(); break; } case GETSTRING: { AST __t1462 = _t; AST tmp395_AST_in = (AST)_t; match(_t,GETSTRING); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1462; _t = _t.getNextSibling(); break; } case GETUNSIGNEDSHORT: { AST __t1463 = _t; AST tmp396_AST_in = (AST)_t; match(_t,GETUNSIGNEDSHORT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1463; _t = _t.getNextSibling(); break; } case HEXDECODE: { AST __t1464 = _t; AST tmp397_AST_in = (AST)_t; match(_t,HEXDECODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1464; _t = _t.getNextSibling(); break; } case HEXENCODE: { AST __t1465 = _t; AST tmp398_AST_in = (AST)_t; match(_t,HEXENCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1465; _t = _t.getNextSibling(); break; } case INDEX: { AST __t1466 = _t; AST tmp399_AST_in = (AST)_t; match(_t,INDEX); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1466; _t = _t.getNextSibling(); break; } case INTEGER: { AST __t1467 = _t; AST tmp400_AST_in = (AST)_t; match(_t,INTEGER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1467; _t = _t.getNextSibling(); break; } case INTERVAL: { AST __t1468 = _t; AST tmp401_AST_in = (AST)_t; match(_t,INTERVAL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1468; _t = _t.getNextSibling(); break; } case ISCODEPAGEFIXED: { AST __t1469 = _t; AST tmp402_AST_in = (AST)_t; match(_t,ISCODEPAGEFIXED); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1469; _t = _t.getNextSibling(); break; } case ISCOLUMNCODEPAGE: { AST __t1470 = _t; AST tmp403_AST_in = (AST)_t; match(_t,ISCOLUMNCODEPAGE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1470; _t = _t.getNextSibling(); break; } case ISLEADBYTE: { AST __t1471 = _t; AST tmp404_AST_in = (AST)_t; match(_t,ISLEADBYTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1471; _t = _t.getNextSibling(); break; } case ISODATE: { AST __t1472 = _t; AST tmp405_AST_in = (AST)_t; match(_t,ISODATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1472; _t = _t.getNextSibling(); break; } case KBLABEL: { AST __t1473 = _t; AST tmp406_AST_in = (AST)_t; match(_t,KBLABEL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1473; _t = _t.getNextSibling(); break; } case KEYCODE: { AST __t1474 = _t; AST tmp407_AST_in = (AST)_t; match(_t,KEYCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1474; _t = _t.getNextSibling(); break; } case KEYFUNCTION: { AST __t1475 = _t; AST tmp408_AST_in = (AST)_t; match(_t,KEYFUNCTION); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1475; _t = _t.getNextSibling(); break; } case KEYLABEL: { AST __t1476 = _t; AST tmp409_AST_in = (AST)_t; match(_t,KEYLABEL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1476; _t = _t.getNextSibling(); break; } case KEYWORD: { AST __t1477 = _t; AST tmp410_AST_in = (AST)_t; match(_t,KEYWORD); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1477; _t = _t.getNextSibling(); break; } case KEYWORDALL: { AST __t1478 = _t; AST tmp411_AST_in = (AST)_t; match(_t,KEYWORDALL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1478; _t = _t.getNextSibling(); break; } case LAST: { AST __t1479 = _t; AST tmp412_AST_in = (AST)_t; match(_t,LAST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1479; _t = _t.getNextSibling(); break; } case LASTOF: { AST __t1480 = _t; AST tmp413_AST_in = (AST)_t; match(_t,LASTOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1480; _t = _t.getNextSibling(); break; } case LC: { AST __t1481 = _t; AST tmp414_AST_in = (AST)_t; match(_t,LC); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1481; _t = _t.getNextSibling(); break; } case LEFTTRIM: { AST __t1482 = _t; AST tmp415_AST_in = (AST)_t; match(_t,LEFTTRIM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1482; _t = _t.getNextSibling(); break; } case LIBRARY: { AST __t1483 = _t; AST tmp416_AST_in = (AST)_t; match(_t,LIBRARY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1483; _t = _t.getNextSibling(); break; } case LISTEVENTS: { AST __t1484 = _t; AST tmp417_AST_in = (AST)_t; match(_t,LISTEVENTS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1484; _t = _t.getNextSibling(); break; } case LISTQUERYATTRS: { AST __t1485 = _t; AST tmp418_AST_in = (AST)_t; match(_t,LISTQUERYATTRS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1485; _t = _t.getNextSibling(); break; } case LISTSETATTRS: { AST __t1486 = _t; AST tmp419_AST_in = (AST)_t; match(_t,LISTSETATTRS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1486; _t = _t.getNextSibling(); break; } case LISTWIDGETS: { AST __t1487 = _t; AST tmp420_AST_in = (AST)_t; match(_t,LISTWIDGETS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1487; _t = _t.getNextSibling(); break; } case LOADPICTURE: { AST __t1488 = _t; AST tmp421_AST_in = (AST)_t; match(_t,LOADPICTURE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1488; _t = _t.getNextSibling(); break; } case LOG: { AST __t1489 = _t; AST tmp422_AST_in = (AST)_t; match(_t,LOG); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1489; _t = _t.getNextSibling(); break; } case LOGICAL: { AST __t1490 = _t; AST tmp423_AST_in = (AST)_t; match(_t,LOGICAL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1490; _t = _t.getNextSibling(); break; } case LOOKUP: { AST __t1491 = _t; AST tmp424_AST_in = (AST)_t; match(_t,LOOKUP); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1491; _t = _t.getNextSibling(); break; } case MAXIMUM: { AST __t1492 = _t; AST tmp425_AST_in = (AST)_t; match(_t,MAXIMUM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1492; _t = _t.getNextSibling(); break; } case MD5DIGEST: { AST __t1493 = _t; AST tmp426_AST_in = (AST)_t; match(_t,MD5DIGEST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1493; _t = _t.getNextSibling(); break; } case MEMBER: { AST __t1494 = _t; AST tmp427_AST_in = (AST)_t; match(_t,MEMBER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1494; _t = _t.getNextSibling(); break; } case MINIMUM: { AST __t1495 = _t; AST tmp428_AST_in = (AST)_t; match(_t,MINIMUM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1495; _t = _t.getNextSibling(); break; } case MONTH: { AST __t1496 = _t; AST tmp429_AST_in = (AST)_t; match(_t,MONTH); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1496; _t = _t.getNextSibling(); break; } case NORMALIZE: { AST __t1497 = _t; AST tmp430_AST_in = (AST)_t; match(_t,NORMALIZE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1497; _t = _t.getNextSibling(); break; } case NUMENTRIES: { AST __t1498 = _t; AST tmp431_AST_in = (AST)_t; match(_t,NUMENTRIES); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1498; _t = _t.getNextSibling(); break; } case NUMRESULTS: { AST __t1499 = _t; AST tmp432_AST_in = (AST)_t; match(_t,NUMRESULTS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1499; _t = _t.getNextSibling(); break; } case OSGETENV: { AST __t1500 = _t; AST tmp433_AST_in = (AST)_t; match(_t,OSGETENV); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1500; _t = _t.getNextSibling(); break; } case PDBNAME: { AST __t1501 = _t; AST tmp434_AST_in = (AST)_t; match(_t,PDBNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1501; _t = _t.getNextSibling(); break; } case PROGRAMNAME: { AST __t1502 = _t; AST tmp435_AST_in = (AST)_t; match(_t,PROGRAMNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1502; _t = _t.getNextSibling(); break; } case QUERYOFFEND: { AST __t1503 = _t; AST tmp436_AST_in = (AST)_t; match(_t,QUERYOFFEND); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1503; _t = _t.getNextSibling(); break; } case QUOTER: { AST __t1504 = _t; AST tmp437_AST_in = (AST)_t; match(_t,QUOTER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1504; _t = _t.getNextSibling(); break; } case RINDEX: { AST __t1505 = _t; AST tmp438_AST_in = (AST)_t; match(_t,RINDEX); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1505; _t = _t.getNextSibling(); break; } case RANDOM: { AST __t1506 = _t; AST tmp439_AST_in = (AST)_t; match(_t,RANDOM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1506; _t = _t.getNextSibling(); break; } case REPLACE: { AST __t1507 = _t; AST tmp440_AST_in = (AST)_t; match(_t,REPLACE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1507; _t = _t.getNextSibling(); break; } case RGBVALUE: { AST __t1508 = _t; AST tmp441_AST_in = (AST)_t; match(_t,RGBVALUE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1508; _t = _t.getNextSibling(); break; } case RIGHTTRIM: { AST __t1509 = _t; AST tmp442_AST_in = (AST)_t; match(_t,RIGHTTRIM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1509; _t = _t.getNextSibling(); break; } case ROUND: { AST __t1510 = _t; AST tmp443_AST_in = (AST)_t; match(_t,ROUND); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1510; _t = _t.getNextSibling(); break; } case SDBNAME: { AST __t1511 = _t; AST tmp444_AST_in = (AST)_t; match(_t,SDBNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1511; _t = _t.getNextSibling(); break; } case SEARCH: { AST __t1512 = _t; AST tmp445_AST_in = (AST)_t; match(_t,SEARCH); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1512; _t = _t.getNextSibling(); break; } case SETDBCLIENT: { AST __t1513 = _t; AST tmp446_AST_in = (AST)_t; match(_t,SETDBCLIENT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1513; _t = _t.getNextSibling(); break; } case SETUSERID: { AST __t1514 = _t; AST tmp447_AST_in = (AST)_t; match(_t,SETUSERID); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1514; _t = _t.getNextSibling(); break; } case SHA1DIGEST: { AST __t1515 = _t; AST tmp448_AST_in = (AST)_t; match(_t,SHA1DIGEST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1515; _t = _t.getNextSibling(); break; } case SQRT: { AST __t1516 = _t; AST tmp449_AST_in = (AST)_t; match(_t,SQRT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1516; _t = _t.getNextSibling(); break; } case SSLSERVERNAME: { AST __t1517 = _t; AST tmp450_AST_in = (AST)_t; match(_t,SSLSERVERNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1517; _t = _t.getNextSibling(); break; } case STRING: { AST __t1518 = _t; AST tmp451_AST_in = (AST)_t; match(_t,STRING); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1518; _t = _t.getNextSibling(); break; } case SUBSTITUTE: { AST __t1519 = _t; AST tmp452_AST_in = (AST)_t; match(_t,SUBSTITUTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1519; _t = _t.getNextSibling(); break; } case TOROWID: { AST __t1520 = _t; AST tmp453_AST_in = (AST)_t; match(_t,TOROWID); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1520; _t = _t.getNextSibling(); break; } case TRIM: { AST __t1521 = _t; AST tmp454_AST_in = (AST)_t; match(_t,TRIM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1521; _t = _t.getNextSibling(); break; } case TRUNCATE: { AST __t1522 = _t; AST tmp455_AST_in = (AST)_t; match(_t,TRUNCATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1522; _t = _t.getNextSibling(); break; } case TYPEOF: { AST __t1523 = _t; AST tmp456_AST_in = (AST)_t; match(_t,TYPEOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1523; _t = _t.getNextSibling(); break; } case VALIDEVENT: { AST __t1524 = _t; AST tmp457_AST_in = (AST)_t; match(_t,VALIDEVENT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1524; _t = _t.getNextSibling(); break; } case VALIDHANDLE: { AST __t1525 = _t; AST tmp458_AST_in = (AST)_t; match(_t,VALIDHANDLE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1525; _t = _t.getNextSibling(); break; } case VALIDOBJECT: { AST __t1526 = _t; AST tmp459_AST_in = (AST)_t; match(_t,VALIDOBJECT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1526; _t = _t.getNextSibling(); break; } case WEEKDAY: { AST __t1527 = _t; AST tmp460_AST_in = (AST)_t; match(_t,WEEKDAY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1527; _t = _t.getNextSibling(); break; } case WIDGETHANDLE: { AST __t1528 = _t; AST tmp461_AST_in = (AST)_t; match(_t,WIDGETHANDLE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1528; _t = _t.getNextSibling(); break; } case YEAR: { AST __t1529 = _t; AST tmp462_AST_in = (AST)_t; match(_t,YEAR); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1529; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/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,
1501,
644,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1501,
644,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
432,
2226,
15650,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
3461,
2499,
273,
389,
88,
31,
1082,
202,
9053,
1853,
5026,
24,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
37,
2226,
15650,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
1082,
202,
12125,
1968,
24899,
88,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
1082,
202,
67,
88,
273,
1001,
88,
3461,
2499,
31,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
432,
2192,
30820,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
3461,
2138,
273,
389,
88,
31,
1082,
202,
9053,
1853,
25574,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
37,
2192,
30820,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
1082,
202,
12125,
1968,
24899,
88,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1501,
644,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1501,
644,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
432,
2226,
15650,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
3461,
2499,
273,
389,
88,
31,
1082,
202,
9053,
1853,
5026,
24,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
37,
2226,
15650,
1769,
1082,
202,
67,
88,
2
] |
return method.getName() + "_" + fmethods.indexOf(method); }
|
return method.getName() + "_" + fmethods.indexOf(method); }
|
public String getUniqueName(Method method) { return method.getName() + "_" + fmethods.indexOf(method); }
|
836 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/836/a9badd97cbca92aeaeea9bee6cb42f7c6f7eeaf9/EnhancerEmitter.java/buggy/src/proxy/net/sf/cglib/proxy/EnhancerEmitter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
514,
16076,
461,
12,
1305,
707,
13,
288,
10792,
327,
707,
18,
17994,
1435,
397,
8802,
397,
284,
5163,
18,
31806,
12,
2039,
1769,
7734,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
514,
16076,
461,
12,
1305,
707,
13,
288,
10792,
327,
707,
18,
17994,
1435,
397,
8802,
397,
284,
5163,
18,
31806,
12,
2039,
1769,
7734,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
case 49: break;
|
case 50: break;
|
public Yytoken yylex() throws java.io.IOException { int zzInput; int zzAction; // cached fields: int zzCurrentPosL; int zzMarkedPosL; int zzEndReadL = zzEndRead; char [] zzBufferL = zzBuffer; char [] zzCMapL = ZZ_CMAP; int [] zzTransL = ZZ_TRANS; int [] zzRowMapL = ZZ_ROWMAP; int [] zzAttrL = ZZ_ATTRIBUTE; while (true) { zzMarkedPosL = zzMarkedPos; zzAction = -1; zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL; zzState = zzLexicalState; zzForAction: { while (true) { if (zzCurrentPosL < zzEndReadL) zzInput = zzBufferL[zzCurrentPosL++]; else if (zzAtEOF) { zzInput = YYEOF; break zzForAction; } else { // store back cached positions zzCurrentPos = zzCurrentPosL; zzMarkedPos = zzMarkedPosL; boolean eof = zzRefill(); // get translated positions and possibly new buffer zzCurrentPosL = zzCurrentPos; zzMarkedPosL = zzMarkedPos; zzBufferL = zzBuffer; zzEndReadL = zzEndRead; if (eof) { zzInput = YYEOF; break zzForAction; } else { zzInput = zzBufferL[zzCurrentPosL++]; } } int zzNext = zzTransL[ zzRowMapL[zzState] + zzCMapL[zzInput] ]; if (zzNext == -1) break zzForAction; zzState = zzNext; int zzAttributes = zzAttrL[zzState]; if ( (zzAttributes & 1) == 1 ) { zzAction = zzState; zzMarkedPosL = zzCurrentPosL; if ( (zzAttributes & 8) == 8 ) break zzForAction; } } } // store back cached position zzMarkedPos = zzMarkedPosL; switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) { case 18: { String s = yytext(); w.write(s); if(debug) log("Matched unicode: "+s); } case 31: break; case 8: { String s = yytext(); w.write(s); if(debug) log("Matched close braces: "+s); } case 32: break; case 21: { String s = yytext(); w.write(s); if(debug) log("Matched HTML comment: "+s); } case 33: break; case 15: { String s = yytext(); w.write(s); if(debug) log("Matched ~=: "+s); } case 34: break; case 12: { String s = yytext(); if(debug) log("Matched string: "+s); if(paranoidStringCheck && s.indexOf(':') != -1) { w.write("/* Deleted disallowed string */"); log("Deleted disallowed string: "+s); } else { w.write(s); } } case 35: break; case 24: { String s = yytext(); w.write(s); if(debug) log("Matched @page: "+s); } case 36: break; case 13: { String s = yytext(); w.write(s); if(debug) log("Matched number: "+s); } case 37: break; case 1: { String s = yytext(); char c = s.charAt(0); log("Matched anything: "+yytext()+" - ignoring"); w.write("/* ignored unmatched char: "+c+" */"); // single char cannot break out of comment } case 38: break; case 6: { String s = yytext(); w.write(s); if(debug) log("Matched semicolon: "+s); } case 39: break; case 19: { String s = yytext(); if(debug) log("Got hexcolor: "+s); w.write(s); } case 40: break; case 7: { String s = yytext(); w.write(s); if(debug) log("Matched open braces: "+s); } case 41: break; case 2: { String s = yytext(); w.write(s); if(debug) log("Matched ident: "+s); } case 42: break; case 23: { String s = yytext(); w.write(s); if(debug) log("Matched unicode range: "+s); } case 43: break; case 28: { String s = yytext(); w.write(s); if(debug) log("Matched @font-face: "+s); } case 44: break; case 9: { String s = yytext(); if(s.startsWith("url")) throwError("Invalid contents of url()"); w.write(s); if(debug) log("Matched function start: "+s); } case 45: break; case 17: { String s = yytext(); w.write(s); if(debug) log("Matched HTML comment: "+s); } case 46: break; case 3: { String s = yytext(); w.write(s); if(debug) log("Matched whitespace: "+s); } case 47: break; case 22: { String s = yytext(); if(debug) log("Ignoring unrecognizable url: "+s); w.write("/* Ignoring unmatchable URL */url()"); } case 48: break; case 27: { String s = yytext(); if(debug) log("Found @import: "+s); s = s.substring("@import".length()); s = s.trim(); DecodedStringThingy dst = new DecodedStringThingy(s); s = dst.data; if(debug) log("URL: "+s); s = processImportURL(s); dst.data = s; if(debug) log("Processed URL: "+s); if(dst.quote == ' ') dst.quote = '\"'; if (!(s == null || s.equals(""))) { if(debug) log("URL now: "+s); s = "@import "+dst.toString(); if(debug) log("Writing: "+s); w.write(s); } else if(debug) log("Dropped @import"); } case 49: break; case 29: { String s = yytext(); w.write(s); if(debug) log("Matched important: "+s); } case 50: break; case 20: { String s = yytext(); StringBuffer sb = new StringBuffer(s.length()); sb.append("/* "); boolean inPrefix = true; for(int i=2;i<s.length()-2;i++) { char c = s.charAt(i); if(inPrefix && Character.isWhitespace(c)) { continue; } inPrefix = false; if(Character.isDigit(c) || Character.isWhitespace(c) || Character.isLetter(c) || c == '.' || c == '_' || c == '-') { // No @, no !, etc; IE has been known to do things with comments // in CSS, and other browsers may too sb.append(c); } } while(Character.isWhitespace(sb.charAt(sb.length()-1))) sb.deleteCharAt(sb.length()-1); sb.append(" */"); w.write(sb.toString()); if(debug) log("Matched comment: "+s+" -> "+sb.toString()); } case 51: break; case 25: { // This is horrible. However it seems that there is no other way to do it with either jflex or CUP, as {URL} cannot be an unambiguous token :( String s = yytext(); if(debug) log("Recognized URL: "+s); DecodedStringThingy dst = new DecodedStringThingy(s); if(!dst.url) { throw new IllegalStateException("parsing url().. isn't a url()"); } if(dst.suffix.length() > 0) { yypushback(dst.suffix.length()); dst.suffix = ""; } s = dst.data; if(debug) log("URL now: "+s); s = processURL(s); dst.data = s; if(s == null || s.equals("")) { if(debug) log("URL invalid"); w.write("url()"); } else { s = dst.toString(); if(debug) log("Writing: "+s); w.write(s); } } case 52: break; case 11: { String s = yytext(); w.write(s); if(debug) log("Matched measurement: "+s); } case 53: break; case 16: { String s = yytext(); w.write(s); if(debug) log("Matched |=: "+s); } case 54: break; case 30: { String s = yytext(); detectedCharset = s; if(debug) log("Matched and ignoring charset: "+s); // Ignore } case 55: break; case 10: { if(postBadImportFlag) { // Ignore postBadImportFlag = false; if(debug) log("Ignoring mediums list because after bad import: "+ yytext()); } else { String s = yytext(); w.write(s); if(debug) log("Matched and passing on mediums list: "+s); } } case 56: break; case 26: { String s = yytext(); s = s.substring("@media".length()).trim(); w.write("@media "+s); if(debug) log("Matched @media: "+s); } case 57: break; case 4: { String s = yytext(); w.write(s); if(debug) log("Matched single char: "+s); } case 58: break; case 14: { String s = yytext(); w.write(s); if(debug) log("Matched #name: "+s); } case 59: break; case 5: { String s = yytext(); w.write(s); if(debug) log("Matched function end: "+s); } case 60: break; default: if (zzInput == YYEOF && zzStartRead == zzCurrentPos) { zzAtEOF = true; return null; } else { zzScanError(ZZ_NO_MATCH); } } } }
|
51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/0704f93643187b0aba45fa8c09ca25a3fa9173bb/CSSTokenizerFilter.java/clean/src/freenet/clients/http/filter/CSSTokenizerFilter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1624,
93,
2316,
677,
1362,
92,
1435,
1216,
2252,
18,
1594,
18,
14106,
288,
565,
509,
11273,
1210,
31,
565,
509,
11273,
1803,
31,
565,
368,
3472,
1466,
30,
565,
509,
11273,
3935,
1616,
48,
31,
565,
509,
11273,
21486,
1616,
48,
31,
565,
509,
11273,
1638,
1994,
48,
273,
11273,
1638,
1994,
31,
565,
1149,
5378,
11273,
1892,
48,
273,
11273,
1892,
31,
565,
1149,
5378,
11273,
39,
863,
48,
273,
2285,
62,
67,
39,
8352,
31,
565,
509,
5378,
11273,
1429,
48,
273,
2285,
62,
67,
16596,
31,
565,
509,
5378,
11273,
1999,
863,
48,
273,
2285,
62,
67,
11226,
8352,
31,
565,
509,
5378,
11273,
3843,
48,
273,
2285,
62,
67,
11616,
31,
565,
1323,
261,
3767,
13,
288,
1377,
11273,
21486,
1616,
48,
273,
11273,
21486,
1616,
31,
1377,
11273,
1803,
273,
300,
21,
31,
1377,
11273,
3935,
1616,
48,
273,
11273,
3935,
1616,
273,
11273,
1685,
1994,
273,
11273,
21486,
1616,
48,
31,
3639,
11273,
1119,
273,
11273,
14756,
1706,
1119,
31,
1377,
11273,
1290,
1803,
30,
288,
3639,
1323,
261,
3767,
13,
288,
2868,
309,
261,
6378,
3935,
1616,
48,
411,
11273,
1638,
1994,
48,
13,
5411,
11273,
1210,
273,
11273,
1892,
48,
63,
6378,
3935,
1616,
48,
9904,
15533,
1850,
469,
309,
261,
6378,
861,
12706,
13,
288,
5411,
11273,
1210,
273,
1624,
61,
12706,
31,
5411,
898,
11273,
1290,
1803,
31,
1850,
289,
1850,
469,
288,
5411,
368,
1707,
1473,
3472,
6865,
5411,
11273,
3935,
1616,
225,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1624,
93,
2316,
677,
1362,
92,
1435,
1216,
2252,
18,
1594,
18,
14106,
288,
565,
509,
11273,
1210,
31,
565,
509,
11273,
1803,
31,
565,
368,
3472,
1466,
30,
565,
509,
11273,
3935,
1616,
48,
31,
565,
509,
11273,
21486,
1616,
48,
31,
565,
509,
11273,
1638,
1994,
48,
273,
11273,
1638,
1994,
31,
565,
1149,
5378,
11273,
1892,
48,
273,
11273,
1892,
31,
565,
1149,
5378,
11273,
39,
863,
48,
273,
2285,
62,
67,
39,
8352,
31,
565,
509,
5378,
11273,
1429,
48,
273,
2285,
62,
67,
16596,
31,
565,
509,
5378,
11273,
1999,
863,
48,
273,
2285,
62,
67,
11226,
8352,
31,
565,
509,
5378,
11273,
3843,
48,
273,
2285,
62,
67,
11616,
31,
565,
2
] |
if (ATI_WORKAROUND && verbose) { System.err.println("Using ATI workaround of dispatching display() on event thread");
|
if (singleThreadedWorkaround && verbose) { System.err.println("Using single-threaded workaround of dispatching display() on event thread");
|
private static void printWorkaroundNotice() { if (ATI_WORKAROUND && verbose) { System.err.println("Using ATI workaround of dispatching display() on event thread"); } }
|
45742 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45742/d78bfcde3e1e860568ab4e8045ffe279f5d144b7/SingleThreadedWorkaround.java/buggy/src/net/java/games/jogl/impl/SingleThreadedWorkaround.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
918,
1172,
2421,
12716,
20127,
1435,
288,
565,
309,
261,
789,
45,
67,
10566,
985,
51,
5240,
597,
3988,
13,
288,
1377,
2332,
18,
370,
18,
8222,
2932,
7736,
14464,
45,
18975,
434,
3435,
310,
2562,
1435,
603,
871,
2650,
8863,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
918,
1172,
2421,
12716,
20127,
1435,
288,
565,
309,
261,
789,
45,
67,
10566,
985,
51,
5240,
597,
3988,
13,
288,
1377,
2332,
18,
370,
18,
8222,
2932,
7736,
14464,
45,
18975,
434,
3435,
310,
2562,
1435,
603,
871,
2650,
8863,
565,
289,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (this.getPresentationObject() instanceof Image) {
|
if (this._obj instanceof Image) {
|
public boolean isImage() { if (this._objectType == OBJECT_TYPE_IMAGE) { return true; } else { if (this.getPresentationObject() == null) { if (this._ImageLocalizationMap != null) { return true; } } else { if (this.getPresentationObject() instanceof Image) { return true; } } } return false; }
|
52001 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52001/cb7478305deba4267935f6a444b7e6f6f806689c/Link.java/buggy/src/java/com/idega/presentation/text/Link.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
2040,
1435,
288,
202,
202,
430,
261,
2211,
6315,
1612,
559,
422,
12166,
67,
2399,
67,
13603,
13,
288,
1082,
202,
2463,
638,
31,
202,
202,
97,
202,
202,
12107,
288,
1082,
202,
430,
261,
2211,
18,
588,
6351,
367,
921,
1435,
422,
446,
13,
288,
9506,
202,
430,
261,
2211,
6315,
2040,
19157,
863,
480,
446,
13,
288,
6862,
202,
2463,
638,
31,
9506,
202,
97,
1082,
202,
97,
1082,
202,
12107,
288,
9506,
202,
430,
261,
2211,
18,
588,
6351,
367,
921,
1435,
1276,
3421,
13,
288,
6862,
202,
2463,
638,
31,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
629,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
2040,
1435,
288,
202,
202,
430,
261,
2211,
6315,
1612,
559,
422,
12166,
67,
2399,
67,
13603,
13,
288,
1082,
202,
2463,
638,
31,
202,
202,
97,
202,
202,
12107,
288,
1082,
202,
430,
261,
2211,
18,
588,
6351,
367,
921,
1435,
422,
446,
13,
288,
9506,
202,
430,
261,
2211,
6315,
2040,
19157,
863,
480,
446,
13,
288,
6862,
202,
2463,
638,
31,
9506,
202,
97,
1082,
202,
97,
1082,
202,
12107,
288,
9506,
202,
430,
261,
2211,
18,
588,
6351,
367,
921,
1435,
1276,
3421,
13,
288,
6862,
202,
2463,
638,
31,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
629,
31,
202,
97,
2,
-100,
-100,
-100,
-100
] |
private void findSpecialRelevanceChanges(PipelineContext pipelineContext, List state1, List state2) {
|
private void findSpecialRelevanceChanges(PipelineContext pipelineContext, List state1, List state2, Map[] eventsToDispatch) {
|
private void findSpecialRelevanceChanges(PipelineContext pipelineContext, List state1, List state2) { // Trivial case if (state1 == null && state2 == null) return; // Both lists must have the same size if present; state1 can be null if (state1 != null && state2 != null && state1.size() != state2.size()) { throw new IllegalStateException("Illegal state when comparing controls."); } final Iterator j = (state1 == null) ? null : state1.iterator(); final Iterator i = (state2 == null) ? null : state2.iterator(); final Iterator leadingIterator = (i != null) ? i : j; while (leadingIterator.hasNext()) { final XFormsControl xformsControl1 = (state1 == null) ? null : (XFormsControl) j.next(); final XFormsControl xformsControl2 = (state2 == null) ? null : (XFormsControl) i.next(); final XFormsControl leadingControl = (xformsControl2 != null) ? xformsControl2 : xformsControl1; // never null final XFormsControl otherControl = (xformsControl2 != null) ? xformsControl1 : xformsControl2; // possibly null // 1: Check current control if (!(leadingControl instanceof XFormsRepeatControl)) { // xforms:repeat doesn't need to be handled independently, iterations do it if (!leadingControl.equals(otherControl)) { if (xformsControl1 != null && xformsControl2 != null) { final NodeInfo boundNode1 = xformsControl1.getBoundNode(); final NodeInfo boundNode2 = xformsControl2.getBoundNode(); if (boundNode1 != null && xformsControl1.isRelevant() && boundNode2 == null) { // A control was bound to a node and relevant, but has become no longer bound to a node containingDocument.dispatchEvent(pipelineContext, new XFormsDisabledEvent(xformsControl2)); } else if (boundNode1 == null && boundNode2 != null && xformsControl2.isRelevant()) { // A control was not bound to a node, but has now become bound and relevant containingDocument.dispatchEvent(pipelineContext, new XFormsEnabledEvent(xformsControl2)); } } else if (xformsControl2 != null) { final NodeInfo boundNode2 = xformsControl2.getBoundNode(); if (boundNode2 != null && xformsControl2.isRelevant()) { // A control in a repeat was not bound to a node, but has now become bound and relevant containingDocument.dispatchEvent(pipelineContext, new XFormsEnabledEvent(xformsControl2)); } } else if (xformsControl1 != null) { final NodeInfo boundNode1 = xformsControl1.getBoundNode(); if (boundNode1 != null && xformsControl1.isRelevant()) { // A control in a repeat was bound to a node and relevant, but has become no longer bound to a node containingDocument.dispatchEvent(pipelineContext, new XFormsDisabledEvent(xformsControl1)); } } } } // 2: Check children if any if (XFormsControls.isGroupingControl(leadingControl.getName()) || leadingControl instanceof RepeatIterationControl) { final List children1 = (xformsControl1 == null) ? null : xformsControl1.getChildren(); final List children2 = (xformsControl2 == null) ? null : xformsControl2.getChildren(); final int size1 = children1 == null ? 0 : children1.size(); final int size2 = children2 == null ? 0 : children2.size(); if (leadingControl instanceof XFormsRepeatControl) { // Special case of repeat update if (size1 == size2) { // No add or remove of children findSpecialRelevanceChanges(pipelineContext, children1, children2); } else if (size2 > size1) { // Size has grown // Diff the common subset findSpecialRelevanceChanges(pipelineContext, children1, children2.subList(0, size1)); // Issue new values for new iterations findSpecialRelevanceChanges(pipelineContext, null, children2.subList(size1, size2)); } else if (size2 < size1) { // Size has shrunk // Diff the common subset findSpecialRelevanceChanges(pipelineContext, children1.subList(0, size2), children2); // Issue new values for new iterations findSpecialRelevanceChanges(pipelineContext, children1.subList(size2, size1), null); } } else { // Other grouping controls findSpecialRelevanceChanges(pipelineContext, size1 == 0 ? null : children1, size2 == 0 ? null : children2); } } } }
|
57229 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57229/3f51d1d62c218dfa0bec18ef28443000c6350153/XFormsControls.java/buggy/src/java/org/orbeon/oxf/xforms/XFormsControls.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1104,
12193,
17018,
5882,
7173,
12,
8798,
1042,
5873,
1042,
16,
987,
919,
21,
16,
987,
919,
22,
16,
1635,
8526,
2641,
774,
5325,
13,
288,
3639,
368,
840,
20109,
648,
3639,
309,
261,
2019,
21,
422,
446,
597,
919,
22,
422,
446,
13,
5411,
327,
31,
3639,
368,
19118,
6035,
1297,
1240,
326,
1967,
963,
309,
3430,
31,
919,
21,
848,
506,
446,
3639,
309,
261,
2019,
21,
480,
446,
597,
919,
22,
480,
446,
597,
919,
21,
18,
1467,
1435,
480,
919,
22,
18,
1467,
10756,
288,
5411,
604,
394,
5477,
2932,
12195,
919,
1347,
17553,
11022,
1199,
1769,
3639,
289,
3639,
727,
4498,
525,
273,
261,
2019,
21,
422,
446,
13,
692,
446,
294,
919,
21,
18,
9838,
5621,
3639,
727,
4498,
277,
273,
261,
2019,
22,
422,
446,
13,
692,
446,
294,
919,
22,
18,
9838,
5621,
3639,
727,
4498,
7676,
3198,
273,
261,
77,
480,
446,
13,
692,
277,
294,
525,
31,
3639,
1323,
261,
27200,
3198,
18,
5332,
2134,
10756,
288,
5411,
727,
1139,
18529,
3367,
619,
9741,
3367,
21,
273,
261,
2019,
21,
422,
446,
13,
692,
446,
294,
261,
60,
18529,
3367,
13,
525,
18,
4285,
5621,
5411,
727,
1139,
18529,
3367,
619,
9741,
3367,
22,
273,
261,
2019,
22,
422,
446,
13,
692,
446,
294,
261,
60,
18529,
3367,
13,
277,
18,
4285,
5621,
5411,
727,
1139,
18529,
3367,
7676,
3367,
273,
261,
92,
9741,
3367,
22,
480,
446,
13,
692,
619,
9741,
3367,
22,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1104,
12193,
17018,
5882,
7173,
12,
8798,
1042,
5873,
1042,
16,
987,
919,
21,
16,
987,
919,
22,
16,
1635,
8526,
2641,
774,
5325,
13,
288,
3639,
368,
840,
20109,
648,
3639,
309,
261,
2019,
21,
422,
446,
597,
919,
22,
422,
446,
13,
5411,
327,
31,
3639,
368,
19118,
6035,
1297,
1240,
326,
1967,
963,
309,
3430,
31,
919,
21,
848,
506,
446,
3639,
309,
261,
2019,
21,
480,
446,
597,
919,
22,
480,
446,
597,
919,
21,
18,
1467,
1435,
480,
919,
22,
18,
1467,
10756,
288,
5411,
604,
394,
5477,
2932,
12195,
919,
1347,
17553,
11022,
1199,
1769,
3639,
289,
3639,
727,
4498,
525,
273,
261,
2019,
21,
422,
446,
13,
692,
446,
2
] |
return null;
|
return new ASTNewDescriptor(expressions);
|
public IASTNewExpressionDescriptor createNewDescriptor() { // TODO FIX THIS return null; }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/a55df357e1021be93d6c72bccedd570106130b83/CompleteParseASTFactory.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/complete/CompleteParseASTFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
9053,
1908,
2300,
3187,
15291,
3187,
1435,
565,
288,
3639,
368,
2660,
8563,
20676,
540,
327,
394,
9183,
1908,
3187,
12,
21480,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
9053,
1908,
2300,
3187,
15291,
3187,
1435,
565,
288,
3639,
368,
2660,
8563,
20676,
540,
327,
394,
9183,
1908,
3187,
12,
21480,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (width != null && width.getUnits() == Extent.PERCENT && width.getValue() > 95) { width = PERCENT_95;
|
if (width != null && width.getUnits() == Extent.PERCENT && width.getValue() == 100) { width = null; enable100PercentWidthWorkaround = true;
|
public void renderHtml(RenderContext rc, ServerComponentUpdate update, Node parentNode, Component component) { Document document = parentNode.getOwnerDocument(); Grid grid = (Grid) component; Border border = (Border) grid.getRenderProperty(Grid.PROPERTY_BORDER); String elementId = ContainerInstance.getElementId(grid); GridProcessor gridProcessor = new GridProcessor(grid); int columnCount = gridProcessor.getColumnCount(); int rowCount = gridProcessor.getRowCount(); Element tableElement = document.createElement("table"); tableElement.setAttribute("id", elementId); CssStyle tableCssStyle = new CssStyle(); tableCssStyle.setAttribute("border-collapse", "collapse"); Insets gridInsets = (Insets) grid.getRenderProperty(Grid.PROPERTY_INSETS); String defaultInsetsAttributeValue = gridInsets == null ? "0px" : InsetsRender.renderCssAttributeValue(gridInsets); ColorRender.renderToStyle(tableCssStyle, component); FontRender.renderToStyle(tableCssStyle, component); BorderRender.renderToStyle(tableCssStyle, border); ExtentRender.renderToStyle(tableCssStyle, "height", (Extent) grid.getRenderProperty(Grid.PROPERTY_HEIGHT)); Extent width = (Extent) grid.getRenderProperty(Grid.PROPERTY_WIDTH); if (rc.getContainerInstance().getClientProperties().getBoolean( ClientProperties.QUIRK_IE_TABLE_PERCENT_WIDTH_SCROLLBAR_ERROR)) { if (width != null && width.getUnits() == Extent.PERCENT && width.getValue() > 95) { width = PERCENT_95; } } ExtentRender.renderToStyle(tableCssStyle, "width", width); Extent borderSize = border == null ? null : border.getSize(); if (borderSize != null) { if (!rc.getContainerInstance().getClientProperties().getBoolean(ClientProperties.QUIRK_CSS_BORDER_COLLAPSE_INSIDE)) { tableCssStyle.setAttribute("margin", ExtentRender.renderCssAttributeValueHalf(borderSize)); } } tableElement.setAttribute("style", tableCssStyle.renderInline()); parentNode.appendChild(tableElement); boolean someColumnsHaveWidths = false; for (int i = 0; i < columnCount; ++i) { if (gridProcessor.getColumnWidth(i) != null) { someColumnsHaveWidths = true; } } if (someColumnsHaveWidths) { Element colGroupElement = document.createElement("colgroup"); tableElement.appendChild(colGroupElement); for (int i = 0; i < columnCount; ++i) { Element colElement = document.createElement("col"); Extent columnWidth = gridProcessor.getColumnWidth(i); if (columnWidth != null) { colElement.setAttribute("width", ExtentRender.renderCssAttributeValue(columnWidth)); } colGroupElement.appendChild(colElement); } } Element tbodyElement = document.createElement("tbody"); tbodyElement.setAttribute("id", elementId + "_tbody"); tableElement.appendChild(tbodyElement); Set renderedCells = new HashSet(); for (int rowIndex = 0; rowIndex < rowCount; ++rowIndex) { Element trElement = document.createElement("tr"); trElement.setAttribute("id", elementId + "_tr_" + rowIndex); if (gridProcessor.getRowHeight(rowIndex) != null) { trElement.setAttribute("height", ExtentRender.renderCssAttributeValue(gridProcessor.getRowHeight(rowIndex))); } tbodyElement.appendChild(trElement); for (int columnIndex = 0; columnIndex < columnCount; ++columnIndex) { Component cell = gridProcessor.getContent(columnIndex, rowIndex); if (cell == null) { Element tdElement = document.createElement("td"); trElement.appendChild(tdElement); continue; } if (renderedCells.contains(cell)) { // Cell already rendered. continue; } renderedCells.add(cell); Element tdElement = document.createElement("td"); tdElement.setAttribute("id", elementId + "_td_" + ContainerInstance.getElementId(cell)); trElement.appendChild(tdElement); int columnSpan = gridProcessor.getColumnSpan(columnIndex, rowIndex); if (columnSpan > 1) { tdElement.setAttribute("colspan", Integer.toString(columnSpan)); } int rowSpan = gridProcessor.getRowSpan(columnIndex, rowIndex); if (rowSpan > 1) { tdElement.setAttribute("rowspan", Integer.toString(rowSpan)); } CssStyle tdCssStyle = new CssStyle(); BorderRender.renderToStyle(tdCssStyle, (Border) grid.getRenderProperty(Grid.PROPERTY_BORDER)); CellLayoutDataRender.renderToElementAndStyle(tdElement, tdCssStyle, cell, getLayoutData(cell), defaultInsetsAttributeValue); CellLayoutDataRender.renderBackgroundImageToStyle(tdCssStyle, rc, this, grid, cell); tdElement.setAttribute("style", tdCssStyle.renderInline()); renderAddChild(rc, update, tdElement, cell); } } }
|
45635 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45635/5d0984a7c615598b9301d9e997b50cb8afdabc62/GridPeer.java/clean/src/webcontainer/java/nextapp/echo2/webcontainer/syncpeer/GridPeer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1743,
4353,
12,
3420,
1042,
4519,
16,
3224,
1841,
1891,
1089,
16,
2029,
7234,
16,
5435,
1794,
13,
288,
3639,
4319,
1668,
273,
7234,
18,
588,
5541,
2519,
5621,
3639,
7145,
3068,
273,
261,
6313,
13,
1794,
31,
3639,
13525,
5795,
273,
261,
8107,
13,
3068,
18,
588,
3420,
1396,
12,
6313,
18,
9900,
67,
38,
7954,
1769,
3639,
514,
930,
548,
273,
4039,
1442,
18,
21336,
548,
12,
5222,
1769,
3639,
7145,
5164,
3068,
5164,
273,
394,
7145,
5164,
12,
5222,
1769,
3639,
509,
22429,
273,
3068,
5164,
18,
588,
1494,
1380,
5621,
540,
509,
14888,
273,
3068,
5164,
18,
588,
26359,
5621,
7734,
3010,
1014,
1046,
273,
1668,
18,
2640,
1046,
2932,
2121,
8863,
3639,
1014,
1046,
18,
542,
1499,
2932,
350,
3113,
930,
548,
1769,
3639,
19127,
2885,
1014,
7359,
2885,
273,
394,
19127,
2885,
5621,
3639,
1014,
7359,
2885,
18,
542,
1499,
2932,
8815,
17,
21405,
3113,
315,
21405,
8863,
7734,
22300,
3068,
382,
4424,
273,
261,
382,
4424,
13,
3068,
18,
588,
3420,
1396,
12,
6313,
18,
9900,
67,
706,
28092,
1769,
3639,
514,
805,
382,
4424,
14942,
273,
3068,
382,
4424,
422,
446,
1171,
692,
315,
20,
4430,
6,
294,
22300,
3420,
18,
5902,
7359,
14942,
12,
5222,
382,
4424,
1769,
7734,
5563,
3420,
18,
5902,
774,
2885,
12,
2121,
7359,
2885,
16,
1794,
1769,
3639,
10063,
3420,
18,
5902,
774,
2885,
12,
2121,
7359,
2885,
16,
1794,
1769,
3639,
13525,
3420,
18,
5902,
774,
2885,
12,
2121,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1743,
4353,
12,
3420,
1042,
4519,
16,
3224,
1841,
1891,
1089,
16,
2029,
7234,
16,
5435,
1794,
13,
288,
3639,
4319,
1668,
273,
7234,
18,
588,
5541,
2519,
5621,
3639,
7145,
3068,
273,
261,
6313,
13,
1794,
31,
3639,
13525,
5795,
273,
261,
8107,
13,
3068,
18,
588,
3420,
1396,
12,
6313,
18,
9900,
67,
38,
7954,
1769,
3639,
514,
930,
548,
273,
4039,
1442,
18,
21336,
548,
12,
5222,
1769,
3639,
7145,
5164,
3068,
5164,
273,
394,
7145,
5164,
12,
5222,
1769,
3639,
509,
22429,
273,
3068,
5164,
18,
588,
1494,
1380,
5621,
540,
509,
14888,
273,
3068,
5164,
18,
588,
26359,
5621,
7734,
3010,
1014,
1046,
273,
1668,
18,
2640,
1046,
2932,
2121,
8863,
2
] |
private static void dumpXobj ( PrintStream o, Xobj xo, int level, Object ref ) { if (xo == null) return; if (xo == ref) o.print( "* " ); else o.print( " " ); for ( int i = 0 ; i < level ; i++ ) o.print( " " ); o.print( kindName( xo.kind() ) ); if (xo._name != null) { o.print( " " ); if (xo._name.getPrefix().length() > 0) o.print( xo._name.getPrefix() + ":" ); o.print( xo._name.getLocalPart() ); if (xo._name.getNamespaceURI().length() > 0) o.print( "@" + xo._name.getNamespaceURI() ); } if (xo._srcValue != null || xo._charNodesValue != null) { o.print( " Value( " ); dumpChars( o, xo._srcValue, xo._offValue, xo._cchValue ); dumpCharNodes( o, xo._charNodesValue, ref ); o.print( " )" ); } if (xo._user != null) o.print( " (USER)" ); if (xo.isVacant()) o.print( " (VACANT)" ); if (xo._srcAfter != null || xo._charNodesAfter != null) { o.print( " After( " ); dumpChars( o, xo._srcAfter, xo._offAfter, xo._cchAfter ); dumpCharNodes( o, xo._charNodesAfter, ref ); o.print( " )" ); } dumpCurs( o, xo, ref ); dumpBookmarks( o, xo, ref ); String className = xo.getClass().getName(); int i = className.lastIndexOf( '.' ); if (i > 0) { className = className.substring( i + 1 ); i = className.lastIndexOf( '$' ); if (i > 0) className = className.substring( i + 1 ); } o.print( " (" ); o.print( className ); o.print( ")" ); o.println(); for ( xo = xo._firstChild ; xo != null ; xo = xo._nextSibling ) dumpXobj( o, xo, level + 1, ref ); }
|
3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/1be242f8d9d59b11549779cf24462c628e5a0f51/Cur.java/clean/src/newstore2/org/apache/xmlbeans/impl/newstore2/Cur.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
4657,
60,
2603,
261,
21677,
320,
16,
1139,
2603,
619,
83,
16,
509,
1801,
16,
1033,
1278,
262,
565,
288,
3639,
309,
261,
25272,
422,
446,
13,
5411,
327,
31,
3639,
309,
261,
25272,
422,
1278,
13,
5411,
320,
18,
1188,
12,
15902,
315,
11272,
3639,
469,
5411,
320,
18,
1188,
12,
315,
225,
315,
11272,
7734,
364,
261,
509,
277,
273,
374,
274,
277,
411,
1801,
274,
277,
9904,
262,
5411,
320,
18,
1188,
12,
315,
225,
315,
11272,
3639,
320,
18,
1188,
12,
3846,
461,
12,
619,
83,
18,
9224,
1435,
262,
11272,
3639,
309,
261,
25272,
6315,
529,
480,
446,
13,
3639,
288,
5411,
320,
18,
1188,
12,
315,
315,
11272,
13491,
309,
261,
25272,
6315,
529,
18,
588,
2244,
7675,
2469,
1435,
405,
374,
13,
7734,
320,
18,
1188,
12,
619,
83,
6315,
529,
18,
588,
2244,
1435,
397,
6153,
11272,
13491,
320,
18,
1188,
12,
619,
83,
6315,
529,
18,
588,
2042,
1988,
1435,
11272,
5411,
309,
261,
25272,
6315,
529,
18,
588,
3402,
3098,
7675,
2469,
1435,
405,
374,
13,
7734,
320,
18,
1188,
12,
18265,
397,
619,
83,
6315,
529,
18,
588,
3402,
3098,
1435,
11272,
3639,
289,
3639,
309,
261,
25272,
6315,
4816,
620,
480,
446,
747,
619,
83,
6315,
3001,
3205,
620,
480,
446,
13,
3639,
288,
5411,
320,
18,
1188,
12,
315,
1445,
12,
315,
11272,
5411,
4657,
7803,
12,
320,
16,
619,
83,
6315,
4816,
620,
16,
619,
83,
6315,
3674,
620,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
4657,
60,
2603,
261,
21677,
320,
16,
1139,
2603,
619,
83,
16,
509,
1801,
16,
1033,
1278,
262,
565,
288,
3639,
309,
261,
25272,
422,
446,
13,
5411,
327,
31,
3639,
309,
261,
25272,
422,
1278,
13,
5411,
320,
18,
1188,
12,
15902,
315,
11272,
3639,
469,
5411,
320,
18,
1188,
12,
315,
225,
315,
11272,
7734,
364,
261,
509,
277,
273,
374,
274,
277,
411,
1801,
274,
277,
9904,
262,
5411,
320,
18,
1188,
12,
315,
225,
315,
11272,
3639,
320,
18,
1188,
12,
3846,
461,
12,
619,
83,
18,
9224,
1435,
262,
11272,
3639,
309,
261,
25272,
6315,
529,
480,
446,
13,
3639,
288,
5411,
320,
18,
1188,
12,
315,
315,
11272,
13491,
2
] |
||
System.out.println("stationAfter = " + stationAfter + ", stationBefore = " + stationBefore + ", trainAfter = " + trainAfter + ", trainBefore = " + trainBefore);
|
System.out.println("train " + trainKey.index + ": stationAfter = " + stationAfter + ", stationBefore = " + stationBefore + ", trainAfter = " + trainAfter + ", trainBefore = " + trainBefore + ", dropped off = " + cargoDroppedOff);
|
public void unloadTrain(ObjectKey trainKey, ObjectKey stationKey) { TrainModel train = (TrainModel)w.get(trainKey.key, trainKey.index, trainKey.principal); int trainBundleId = train.getCargoBundleNumber(); CargoBundle trainBefore = (CargoBundle) w.get(KEY.CARGO_BUNDLES, trainBundleId, Player.AUTHORITATIVE); trainBefore = trainBefore.getCopy(); CargoBundle trainAfter = trainBefore.getCopy(); StationModel station = (StationModel) w.get(stationKey.key, stationKey.index, stationKey.principal); int stationBundleId = station.getCargoBundleNumber(); CargoBundle stationBefore = (CargoBundle) w.get(KEY.CARGO_BUNDLES, stationBundleId, Player.AUTHORITATIVE); stationBefore = stationBefore.getCopy(); CargoBundle stationAfter = stationBefore.getCopy(); Iterator batches = trainAfter.cargoBatchIterator(); CargoBundle cargoDroppedOff = new CargoBundleImpl(); //Unload the cargo that the station demands while (batches.hasNext()) { CargoBatch cb = (CargoBatch)((Entry) batches.next()).getKey(); //if the cargo is demanded. DemandAtStation demand = station.getDemand(); int cargoType = cb.getCargoType(); if (demand.isCargoDemanded(cargoType)) { int amount = trainAfter.getAmount(cb); if (demand.isCargoDemanded(cargoType)) cargoDroppedOff.addCargo(cb, amount); //Now perform any conversions.. ConvertedAtStation converted = station.getConverted(); if (converted.isCargoConverted(cargoType)) { int newCargoType = converted.getConversion(cargoType); CargoBatch newCargoBatch = new CargoBatch(newCargoType, station.x, station.y, 0, stationKey.index); stationAfter.addCargo(newCargoBatch, amount); } batches.remove(); } } AddTransactionMove payment = ProcessCargoAtStationMoveGenerator.processCargo(w, cargoDroppedOff, trainKey.principal, stationKey.index, stationKey.principal); ChangeCargoBundleMove changeAtStation = new ChangeCargoBundleMove(stationBefore, stationAfter, stationBundleId); ChangeCargoBundleMove changeOnTrain = new ChangeCargoBundleMove(trainBefore, trainAfter, trainBundleId); System.out.println("stationAfter = " + stationAfter + ", stationBefore = " + stationBefore + ", trainAfter = " + trainAfter + ", trainBefore = " + trainBefore); System.out.println("payment = " + payment); moveReceiver.processMove(TransferCargoAtStationMove.generateMove (changeAtStation, changeOnTrain, payment)); }
|
9170 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9170/bf8d7c4ed03a74025c06c8a11d2ac2888bd820ca/DropOffAndPickupCargoMoveGenerator.java/clean/railz/src/org/railz/server/DropOffAndPickupCargoMoveGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
27060,
23419,
12,
921,
653,
4691,
653,
16,
1033,
653,
13282,
653,
13,
288,
202,
23419,
1488,
4691,
273,
261,
23419,
1488,
13,
91,
18,
588,
12,
9754,
653,
18,
856,
16,
4691,
653,
18,
1615,
16,
202,
202,
9754,
653,
18,
26138,
1769,
202,
474,
4691,
3405,
548,
273,
4691,
18,
588,
39,
26999,
3405,
1854,
5621,
202,
39,
26999,
3405,
4691,
4649,
273,
261,
39,
26999,
3405,
13,
341,
18,
588,
12,
3297,
18,
39,
10973,
51,
67,
38,
5240,
11386,
16,
202,
202,
9754,
3405,
548,
16,
19185,
18,
7131,
916,
1285,
12992,
1769,
202,
9754,
4649,
273,
4691,
4649,
18,
588,
2951,
5621,
202,
39,
26999,
3405,
4691,
4436,
273,
4691,
4649,
18,
588,
2951,
5621,
202,
16672,
1488,
13282,
273,
261,
16672,
1488,
13,
341,
18,
588,
12,
17894,
653,
18,
856,
16,
202,
202,
17894,
653,
18,
1615,
16,
13282,
653,
18,
26138,
1769,
202,
474,
13282,
3405,
548,
273,
13282,
18,
588,
39,
26999,
3405,
1854,
5621,
202,
39,
26999,
3405,
13282,
4649,
273,
261,
39,
26999,
3405,
13,
341,
18,
588,
12,
3297,
18,
39,
10973,
51,
67,
38,
5240,
11386,
16,
202,
202,
17894,
3405,
548,
16,
19185,
18,
7131,
916,
1285,
12992,
1769,
202,
17894,
4649,
273,
13282,
4649,
18,
588,
2951,
5621,
202,
39,
26999,
3405,
13282,
4436,
273,
13282,
4649,
18,
588,
2951,
5621,
3639,
4498,
13166,
273,
4691,
4436,
18,
71,
26999,
4497,
3198,
5621,
3639,
385,
26999,
3405,
276,
26999,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
27060,
23419,
12,
921,
653,
4691,
653,
16,
1033,
653,
13282,
653,
13,
288,
202,
23419,
1488,
4691,
273,
261,
23419,
1488,
13,
91,
18,
588,
12,
9754,
653,
18,
856,
16,
4691,
653,
18,
1615,
16,
202,
202,
9754,
653,
18,
26138,
1769,
202,
474,
4691,
3405,
548,
273,
4691,
18,
588,
39,
26999,
3405,
1854,
5621,
202,
39,
26999,
3405,
4691,
4649,
273,
261,
39,
26999,
3405,
13,
341,
18,
588,
12,
3297,
18,
39,
10973,
51,
67,
38,
5240,
11386,
16,
202,
202,
9754,
3405,
548,
16,
19185,
18,
7131,
916,
1285,
12992,
1769,
202,
9754,
4649,
273,
4691,
4649,
18,
588,
2951,
5621,
202,
39,
26999,
3405,
4691,
4436,
273,
4691,
4649,
2
] |
doIsSameSessionTest( schedule, t1, t2, true );
|
doIsSameSessionTest(schedule, t1, t2, true);
|
public void testIsSameSessionWithDay() throws Exception { SessionSchedule schedule = newSessionSchedule(getUtcTime(3, 0, 0).getTime(), getUtcTime(18, 0, 0).getTime(), 2, 5); Calendar t1 = getUtcTimeStamp(2004, 6, 27, 3, 0, 0); Calendar t2 = getUtcTimeStamp(2004, 6, 25, 3, 0, 0); doIsSameSessionTest(schedule, t1, t2, false); t1 = getUtcTimeStamp(2004, 6, 31, 3, 0, 0); t2 = getUtcTimeStamp(2004, 6, 27, 3, 0, 0); doIsSameSessionTest(schedule, t1, t2, false); t1 = getUtcTimeStamp(2004, 6, 27, 3, 0, 0); t2 = getUtcTimeStamp(2004, 6, 27, 3, 0, 0); doIsSameSessionTest(schedule, t1, t2, true); t1 = getUtcTimeStamp(2004, 6, 26, 10, 0, 0); t2 = getUtcTimeStamp(2004, 6, 27, 3, 0, 0); doIsSameSessionTest(schedule, t1, t2, true); t1 = getUtcTimeStamp(2004, 6, 27, 10, 0, 0); t2 = getUtcTimeStamp(2004, 6, 29, 2, 0, 0); doIsSameSessionTest(schedule, t1, t2, true); t1 = getUtcTimeStamp(2004, 6, 27, 10, 0, 0); t2 = getUtcTimeStamp(2004, 6, 20, 3, 0, 0); doIsSameSessionTest(schedule, t1, t2, false); t1 = getUtcTimeStamp(2004, 6, 27, 2, 0, 0); t2 = getUtcTimeStamp(2004, 6, 20, 3, 0, 0); doIsSameSessionTest(schedule, t1, t2, false); t1 = getUtcTimeStamp(2004, 6, 26, 2, 0, 0); t2 = getUtcTimeStamp(2004, 6, 19, 3, 0, 0); doIsSameSessionTest(schedule, t1, t2, false); // Reset start/end time so that they fall within an hour of midnight Calendar startTime = getUtcTime(0, 5, 0); Calendar endTime = getUtcTime(23, 45, 0); // Make it a week-long session int startDay = 1; int endDay = 7; schedule = newSessionSchedule(startTime.getTime(), endTime.getTime(), startDay, endDay); // Check that ST-->DST (Sunday is missing one hour) is handled t1 = getUtcTimeStamp(2006, 4, 4, 0, 0, 0); t2 = getUtcTimeStamp(2006, 4, 3, 1, 0, 0); doIsSameSessionTest( schedule, t1, t2, true ); // Check that DST-->ST (Sunday has an extra hour) is handled t1 = getUtcTimeStamp(2006, 10, 30, 1, 0, 0); t2 = getUtcTimeStamp(2006, 10, 31, 1, 0, 0); doIsSameSessionTest( schedule, t1, t2, true ); // Check that everything works across a year boundary t1 = getUtcTimeStamp(2006, 12, 31, 10, 10, 10); t2 = getUtcTimeStamp(2007, 1, 1, 10, 10, 10); doIsSameSessionTest( schedule, t1, t2, true );// // Check that "missing" start and end days are handled as isSameSession without days// startDay = -1;// endDay = -1;// schedule = new SessionSchedule(startTime.getTime(), endTime.getTime(), startDay, endDay);// doIsSameSessionTest( schedule, t1, t2, true ); }
|
6791 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6791/575a884ac3c36258e30f82350256c69f001a7c7d/SessionScheduleTest.java/buggy/core/src/test/java/quickfix/SessionScheduleTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2520,
8650,
2157,
1190,
4245,
1435,
1216,
1185,
288,
3639,
3877,
6061,
4788,
273,
394,
2157,
6061,
12,
588,
57,
5111,
950,
12,
23,
16,
374,
16,
374,
2934,
588,
950,
9334,
23037,
5111,
950,
12,
2643,
16,
7734,
374,
16,
374,
2934,
588,
950,
9334,
576,
16,
1381,
1769,
3639,
5542,
268,
21,
273,
23037,
5111,
21536,
12,
6976,
24,
16,
1666,
16,
12732,
16,
890,
16,
374,
16,
374,
1769,
3639,
5542,
268,
22,
273,
23037,
5111,
21536,
12,
6976,
24,
16,
1666,
16,
6969,
16,
890,
16,
374,
16,
374,
1769,
3639,
741,
2520,
8650,
2157,
4709,
12,
10676,
16,
268,
21,
16,
268,
22,
16,
629,
1769,
3639,
268,
21,
273,
23037,
5111,
21536,
12,
6976,
24,
16,
1666,
16,
8231,
16,
890,
16,
374,
16,
374,
1769,
3639,
268,
22,
273,
23037,
5111,
21536,
12,
6976,
24,
16,
1666,
16,
12732,
16,
890,
16,
374,
16,
374,
1769,
3639,
741,
2520,
8650,
2157,
4709,
12,
10676,
16,
268,
21,
16,
268,
22,
16,
629,
1769,
3639,
268,
21,
273,
23037,
5111,
21536,
12,
6976,
24,
16,
1666,
16,
12732,
16,
890,
16,
374,
16,
374,
1769,
3639,
268,
22,
273,
23037,
5111,
21536,
12,
6976,
24,
16,
1666,
16,
12732,
16,
890,
16,
374,
16,
374,
1769,
3639,
741,
2520,
8650,
2157,
4709,
12,
10676,
16,
268,
21,
16,
268,
22,
16,
638,
1769,
3639,
268,
21,
273,
23037,
5111,
21536,
12,
6976,
24,
16,
1666,
16,
10659,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2520,
8650,
2157,
1190,
4245,
1435,
1216,
1185,
288,
3639,
3877,
6061,
4788,
273,
394,
2157,
6061,
12,
588,
57,
5111,
950,
12,
23,
16,
374,
16,
374,
2934,
588,
950,
9334,
23037,
5111,
950,
12,
2643,
16,
7734,
374,
16,
374,
2934,
588,
950,
9334,
576,
16,
1381,
1769,
3639,
5542,
268,
21,
273,
23037,
5111,
21536,
12,
6976,
24,
16,
1666,
16,
12732,
16,
890,
16,
374,
16,
374,
1769,
3639,
5542,
268,
22,
273,
23037,
5111,
21536,
12,
6976,
24,
16,
1666,
16,
6969,
16,
890,
16,
374,
16,
374,
1769,
3639,
741,
2520,
8650,
2157,
4709,
12,
10676,
16,
268,
21,
16,
268,
22,
16,
629,
1769,
3639,
268,
21,
273,
2
] |
public MemoryImageSource(int w, int h, int pix[], int off, int scan)
|
public MemoryImageSource(int w, int h, ColorModel cm, byte[] pix, int off, int scan)
|
public MemoryImageSource(int w, int h, int pix[], int off, int scan) { this ( w, h, ColorModel.getRGBdefault(), pix, off, scan, null); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/MemoryImageSource.java/buggy/core/src/classpath/java/java/awt/image/MemoryImageSource.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9251,
2040,
1830,
12,
474,
341,
16,
509,
366,
16,
9506,
377,
509,
11871,
63,
6487,
509,
3397,
16,
509,
4135,
13,
565,
288,
202,
2211,
261,
341,
16,
366,
16,
5563,
1488,
18,
588,
11343,
1886,
9334,
11871,
16,
3397,
16,
4135,
16,
446,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9251,
2040,
1830,
12,
474,
341,
16,
509,
366,
16,
9506,
377,
509,
11871,
63,
6487,
509,
3397,
16,
509,
4135,
13,
565,
288,
202,
2211,
261,
341,
16,
366,
16,
5563,
1488,
18,
588,
11343,
1886,
9334,
11871,
16,
3397,
16,
4135,
16,
446,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
munitions.addElement( new MunitionMutator( "Illumination",
|
munitions.add( new MunitionMutator( "Illumination",
|
public static void initializeTypes() { // Save copies of the SRM and LRM ammos to use to create munitions. Vector srmAmmos = new Vector(11); Vector clanSrmAmmos = new Vector(); Vector baSrmAmmos = new Vector(); Vector baMrmAmmos = new Vector(); Vector clanBaLrmAmmos = new Vector(); Vector isBaLrmAmmos = new Vector(); Vector lrmAmmos = new Vector(26); Vector clanLrmAmmos = new Vector(); Vector acAmmos = new Vector(4); Vector arrowAmmos = new Vector(4); Vector clanArrowAmmos = new Vector(4); Vector thumperAmmos = new Vector(2); Vector artyAmmos = new Vector(6); Vector clanArtyAmmos = new Vector(6); Vector munitions = new Vector(); Enumeration baseTypes = null; Enumeration mutators = null; AmmoType base = null; MunitionMutator mutator = null; // all level 1 ammo EquipmentType.addType(createISVehicleFlamerAmmo()); EquipmentType.addType(createISMGAmmo()); EquipmentType.addType(createISMGAmmoHalf()); base = createISAC2Ammo(); acAmmos.addElement( base ); EquipmentType.addType( base ); base = createISAC5Ammo(); acAmmos.addElement( base ); EquipmentType.addType( base ); base = createISAC10Ammo(); acAmmos.addElement( base ); EquipmentType.addType( base ); base = createISAC20Ammo(); acAmmos.addElement( base ); EquipmentType.addType( base ); base = createISLRM5Ammo(); lrmAmmos.addElement( base ); EquipmentType.addType( base ); base = createISLRM10Ammo(); lrmAmmos.addElement( base ); EquipmentType.addType( base ); base = createISLRM15Ammo(); lrmAmmos.addElement( base ); EquipmentType.addType( base ); base = createISLRM20Ammo(); lrmAmmos.addElement( base ); EquipmentType.addType( base ); base = createISSRM2Ammo(); srmAmmos.addElement( base ); EquipmentType.addType( base ); base = createISSRM4Ammo(); srmAmmos.addElement( base ); EquipmentType.addType( base ); base = createISSRM6Ammo(); srmAmmos.addElement( base ); EquipmentType.addType( base ); // Level 3 Ammo // Note, some level 3 stuff is mixed into level 2. base = createISLAC2Ammo(); acAmmos.add(base); EquipmentType.addType(base); base = createISLAC5Ammo(); acAmmos.add(base); EquipmentType.addType(base); base = createISLAC10Ammo(); acAmmos.add(base); EquipmentType.addType(base); base = createISLAC20Ammo(); acAmmos.add(base); EquipmentType.addType(base); EquipmentType.addType(createISHeavyFlamerAmmo()); EquipmentType.addType(createCoolantPod()); EquipmentType.addType(createISRailGunAmmo()); EquipmentType.addType(createISMPodAmmo()); // Start of Level2 Ammo EquipmentType.addType(createISLB2XAmmo()); EquipmentType.addType(createISLB5XAmmo()); EquipmentType.addType(createISLB10XAmmo()); EquipmentType.addType(createISLB20XAmmo()); EquipmentType.addType(createISLB2XClusterAmmo()); EquipmentType.addType(createISLB5XClusterAmmo()); EquipmentType.addType(createISLB10XClusterAmmo()); EquipmentType.addType(createISLB20XClusterAmmo()); EquipmentType.addType(createISTHBLB2XAmmo()); EquipmentType.addType(createISTHBLB5XAmmo()); EquipmentType.addType(createISTHBLB20XAmmo()); EquipmentType.addType(createISTHBLB2XClusterAmmo()); EquipmentType.addType(createISTHBLB5XClusterAmmo()); EquipmentType.addType(createISTHBLB20XClusterAmmo()); EquipmentType.addType(createISUltra2Ammo()); EquipmentType.addType(createISUltra5Ammo()); EquipmentType.addType(createISUltra10Ammo()); EquipmentType.addType(createISUltra20Ammo()); EquipmentType.addType(createISTHBUltra2Ammo()); EquipmentType.addType(createISTHBUltra10Ammo()); EquipmentType.addType(createISTHBUltra20Ammo()); EquipmentType.addType(createISRotary2Ammo()); EquipmentType.addType(createISRotary5Ammo()); EquipmentType.addType(createISRotary10Ammo()); EquipmentType.addType(createISRotary20Ammo()); EquipmentType.addType(createISGaussAmmo()); EquipmentType.addType(createISLTGaussAmmo()); EquipmentType.addType(createISHVGaussAmmo()); EquipmentType.addType(createISStreakSRM2Ammo()); EquipmentType.addType(createISStreakSRM4Ammo()); EquipmentType.addType(createISStreakSRM6Ammo()); EquipmentType.addType(createISMRM10Ammo()); EquipmentType.addType(createISMRM20Ammo()); EquipmentType.addType(createISMRM30Ammo()); EquipmentType.addType(createISMRM40Ammo()); EquipmentType.addType(createISRL10Ammo()); EquipmentType.addType(createISRL15Ammo()); EquipmentType.addType(createISRL20Ammo()); EquipmentType.addType(createISAMSAmmo()); EquipmentType.addType(createISNarcAmmo()); EquipmentType.addType(createISNarcExplosiveAmmo()); EquipmentType.addType(createISiNarcAmmo()); EquipmentType.addType(createISiNarcECMAmmo()); EquipmentType.addType(createISiNarcExplosiveAmmo()); EquipmentType.addType(createISiNarcHaywireAmmo()); EquipmentType.addType(createISiNarcNemesisAmmo()); EquipmentType.addType(createISLRT5Ammo()); EquipmentType.addType(createISLRT10Ammo()); EquipmentType.addType(createISLRT15Ammo()); EquipmentType.addType(createISLRT20Ammo()); EquipmentType.addType(createISSRT2Ammo()); EquipmentType.addType(createISSRT4Ammo()); EquipmentType.addType(createISSRT6Ammo()); EquipmentType.addType(createISExtendedLRM5Ammo()); EquipmentType.addType(createISExtendedLRM10Ammo()); EquipmentType.addType(createISExtendedLRM15Ammo()); EquipmentType.addType(createISExtendedLRM20Ammo()); EquipmentType.addType(createISThunderbolt5Ammo()); EquipmentType.addType(createISThunderbolt10Ammo()); EquipmentType.addType(createISThunderbolt15Ammo()); EquipmentType.addType(createISThunderbolt20Ammo()); EquipmentType.addType(createISMagshotGRAmmo()); EquipmentType.addType(createISPXLRM5Ammo()); EquipmentType.addType(createISPXLRM10Ammo()); EquipmentType.addType(createISPXLRM15Ammo()); EquipmentType.addType(createISPXLRM20Ammo()); EquipmentType.addType(createISHawkSRM2Ammo()); EquipmentType.addType(createISHawkSRM4Ammo()); EquipmentType.addType(createISHawkSRM6Ammo()); EquipmentType.addType(createISStreakMRM10Ammo()); EquipmentType.addType(createISStreakMRM20Ammo()); EquipmentType.addType(createISStreakMRM30Ammo()); EquipmentType.addType(createISStreakMRM40Ammo()); EquipmentType.addType(createISHeavyMGAmmo()); EquipmentType.addType(createISHeavyMGAmmoHalf()); EquipmentType.addType(createISLightMGAmmo()); EquipmentType.addType(createISLightMGAmmoHalf()); base = createISMML3LRMAmmo(); lrmAmmos.addElement( base ); EquipmentType.addType( base ); base = createISMML3SRMAmmo(); srmAmmos.addElement( base ); EquipmentType.addType( base ); base = createISMML5LRMAmmo(); lrmAmmos.addElement( base ); EquipmentType.addType( base ); base = createISMML5SRMAmmo(); srmAmmos.addElement( base ); EquipmentType.addType( base ); base = createISMML7LRMAmmo(); lrmAmmos.addElement( base ); EquipmentType.addType( base ); base = createISMML7SRMAmmo(); srmAmmos.addElement( base ); EquipmentType.addType( base ); base = createISMML9LRMAmmo(); lrmAmmos.addElement( base ); EquipmentType.addType( base ); base = createISMML9SRMAmmo(); srmAmmos.addElement( base ); EquipmentType.addType( base ); base = createISLongTomAmmo(); artyAmmos.addElement( base ); EquipmentType.addType( base ); base = createISSniperAmmo(); artyAmmos.addElement( base ); EquipmentType.addType( base ); base = createISThumperAmmo(); thumperAmmos.addElement( base ); EquipmentType.addType( base ); base = createISArrowIVAmmo(); arrowAmmos.addElement( base ); EquipmentType.addType( base ); EquipmentType.addType(createCLLB2XAmmo()); EquipmentType.addType(createCLLB5XAmmo()); EquipmentType.addType(createCLLB10XAmmo()); EquipmentType.addType(createCLLB20XAmmo()); EquipmentType.addType(createCLLB2XClusterAmmo()); EquipmentType.addType(createCLLB5XClusterAmmo()); EquipmentType.addType(createCLLB10XClusterAmmo()); EquipmentType.addType(createCLLB20XClusterAmmo()); EquipmentType.addType(createCLUltra2Ammo()); EquipmentType.addType(createCLUltra5Ammo()); EquipmentType.addType(createCLUltra10Ammo()); EquipmentType.addType(createCLUltra20Ammo()); EquipmentType.addType(createCLRotary2Ammo()); EquipmentType.addType(createCLRotary5Ammo()); EquipmentType.addType(createCLRotary10Ammo()); EquipmentType.addType(createCLRotary20Ammo()); EquipmentType.addType(createCLGaussAmmo()); EquipmentType.addType(createCLStreakSRM1Ammo()); EquipmentType.addType(createCLStreakSRM2Ammo()); EquipmentType.addType(createCLStreakSRM3Ammo()); EquipmentType.addType(createCLStreakSRM4Ammo()); EquipmentType.addType(createCLStreakSRM5Ammo()); EquipmentType.addType(createCLStreakSRM6Ammo()); EquipmentType.addType(createCLVehicleFlamerAmmo()); EquipmentType.addType(createCLMGAmmo()); EquipmentType.addType(createCLMGAmmoHalf()); EquipmentType.addType(createCLHeavyMGAmmo()); EquipmentType.addType(createCLHeavyMGAmmoHalf()); EquipmentType.addType(createCLLightMGAmmo()); EquipmentType.addType(createCLLightMGAmmoHalf()); EquipmentType.addType(createCLAMSAmmo()); EquipmentType.addType(createCLNarcAmmo()); EquipmentType.addType(createCLNarcExplosiveAmmo()); EquipmentType.addType(createCLATM3Ammo()); EquipmentType.addType(createCLATM3ERAmmo()); EquipmentType.addType(createCLATM3HEAmmo()); EquipmentType.addType(createCLATM6Ammo()); EquipmentType.addType(createCLATM6ERAmmo()); EquipmentType.addType(createCLATM6HEAmmo()); EquipmentType.addType(createCLATM9Ammo()); EquipmentType.addType(createCLATM9ERAmmo()); EquipmentType.addType(createCLATM9HEAmmo()); EquipmentType.addType(createCLATM12Ammo()); EquipmentType.addType(createCLATM12ERAmmo()); EquipmentType.addType(createCLATM12HEAmmo()); EquipmentType.addType(createCLStreakLRM5Ammo()); EquipmentType.addType(createCLStreakLRM10Ammo()); EquipmentType.addType(createCLStreakLRM15Ammo()); EquipmentType.addType(createCLStreakLRM20Ammo()); EquipmentType.addType(createCLSRT1Ammo()); EquipmentType.addType(createCLSRT2Ammo()); EquipmentType.addType(createCLSRT3Ammo()); EquipmentType.addType(createCLSRT4Ammo()); EquipmentType.addType(createCLSRT5Ammo()); EquipmentType.addType(createCLSRT6Ammo()); EquipmentType.addType(createCLLRT1Ammo()); EquipmentType.addType(createCLLRT2Ammo()); EquipmentType.addType(createCLLRT3Ammo()); EquipmentType.addType(createCLLRT4Ammo()); EquipmentType.addType(createCLLRT5Ammo()); EquipmentType.addType(createCLLRT6Ammo()); EquipmentType.addType(createCLLRT7Ammo()); EquipmentType.addType(createCLLRT8Ammo()); EquipmentType.addType(createCLLRT9Ammo()); EquipmentType.addType(createCLLRT10Ammo()); EquipmentType.addType(createCLLRT11Ammo()); EquipmentType.addType(createCLLRT12Ammo()); EquipmentType.addType(createCLLRT13Ammo()); EquipmentType.addType(createCLLRT14Ammo()); EquipmentType.addType(createCLLRT15Ammo()); EquipmentType.addType(createCLLRT16Ammo()); EquipmentType.addType(createCLLRT17Ammo()); EquipmentType.addType(createCLLRT18Ammo()); EquipmentType.addType(createCLLRT19Ammo()); EquipmentType.addType(createCLLRT20Ammo()); EquipmentType.addType(createCLMagshotGRAmmo()); EquipmentType.addType(createCLMPodAmmo()); EquipmentType.addType(createCLHAG20Ammo()); EquipmentType.addType(createCLHAG30Ammo()); EquipmentType.addType(createCLHAG40Ammo()); base = createCLLongTomAmmo(); clanArtyAmmos.addElement( base ); EquipmentType.addType( base ); base = createCLSniperAmmo(); clanArtyAmmos.addElement( base ); base = createCLThumperAmmo(); EquipmentType.addType( base ); clanArtyAmmos.addElement( base ); EquipmentType.addType( base ); base = createCLArrowIVAmmo(); clanArrowAmmos.addElement( base ); EquipmentType.addType( base ); base = createCLSRM1Ammo(); clanSrmAmmos.addElement( base ); EquipmentType.addType( base ); base = createCLSRM2Ammo(); clanSrmAmmos.addElement( base ); EquipmentType.addType( base ); base = createCLSRM3Ammo(); clanSrmAmmos.addElement( base ); EquipmentType.addType( base ); base = createCLSRM4Ammo(); clanSrmAmmos.addElement( base ); EquipmentType.addType( base ); base = createCLSRM5Ammo(); clanSrmAmmos.addElement( base ); EquipmentType.addType( base ); base = createCLSRM6Ammo(); clanSrmAmmos.addElement( base ); EquipmentType.addType( base ); base = createCLLRM1Ammo(); clanLrmAmmos.addElement( base ); EquipmentType.addType( base ); base = createCLLRM2Ammo(); clanLrmAmmos.addElement( base ); EquipmentType.addType( base ); base = createCLLRM3Ammo(); clanLrmAmmos.addElement( base ); EquipmentType.addType( base ); base = createCLLRM4Ammo(); clanLrmAmmos.addElement( base ); EquipmentType.addType( base ); base = createCLLRM5Ammo(); clanLrmAmmos.addElement( base ); EquipmentType.addType( base ); base = createCLLRM6Ammo(); clanLrmAmmos.addElement( base ); EquipmentType.addType( base ); base = createCLLRM7Ammo(); clanLrmAmmos.addElement( base ); EquipmentType.addType( base ); base = createCLLRM8Ammo(); clanLrmAmmos.addElement( base ); EquipmentType.addType( base ); base = createCLLRM9Ammo(); clanLrmAmmos.addElement( base ); EquipmentType.addType( base ); base = createCLLRM10Ammo(); clanLrmAmmos.addElement( base ); EquipmentType.addType( base ); base = createCLLRM11Ammo(); clanLrmAmmos.addElement( base ); EquipmentType.addType( base ); base = createCLLRM12Ammo(); clanLrmAmmos.addElement( base ); EquipmentType.addType( base ); base = createCLLRM13Ammo(); clanLrmAmmos.addElement( base ); EquipmentType.addType( base ); base = createCLLRM14Ammo(); clanLrmAmmos.addElement( base ); EquipmentType.addType( base ); base = createCLLRM15Ammo(); clanLrmAmmos.addElement( base ); EquipmentType.addType( base ); base = createCLLRM16Ammo(); clanLrmAmmos.addElement( base ); EquipmentType.addType( base ); base = createCLLRM17Ammo(); clanLrmAmmos.addElement( base ); EquipmentType.addType( base ); base = createCLLRM18Ammo(); clanLrmAmmos.addElement( base ); EquipmentType.addType( base ); base = createCLLRM19Ammo(); clanLrmAmmos.addElement( base ); EquipmentType.addType( base ); base = createCLLRM20Ammo(); clanLrmAmmos.addElement( base ); EquipmentType.addType( base ); // Start of BattleArmor ammo// EquipmentType.addType( createBAInfernoSRMAmmo() ); EquipmentType.addType( createBAMicroBombAmmo() ); EquipmentType.addType( createCLTorpedoLRM5Ammo() );// EquipmentType.addType( createFenrirSRM4Ammo() ); EquipmentType.addType( createBACompactNarcAmmo() ); EquipmentType.addType( createBAMineLauncherAmmo() ); EquipmentType.addType( createBALRM5Ammo() );// EquipmentType.addType( createPhalanxSRM4Ammo() );// EquipmentType.addType( createGrenadierSRM4Ammo() );// EquipmentType.addType( createBAInfernoSRMAmmo() ); EquipmentType.addType( createAdvancedSRM1Ammo() ); EquipmentType.addType( createAdvancedSRM2Ammo() ); EquipmentType.addType( createAdvancedSRM3Ammo() ); EquipmentType.addType( createAdvancedSRM4Ammo() ); EquipmentType.addType( createAdvancedSRM5Ammo() ); EquipmentType.addType( createAdvancedSRM6Ammo() ); EquipmentType.addType( createBARL1Ammo() ); EquipmentType.addType( createBARL2Ammo() ); EquipmentType.addType( createBARL3Ammo() ); EquipmentType.addType( createBARL4Ammo() ); EquipmentType.addType( createBARL5Ammo() ); base = createISMRM1Ammo(); baMrmAmmos.add(base); EquipmentType.addType( base ); base = createISMRM2Ammo(); baMrmAmmos.add(base); EquipmentType.addType( base ); base = createISMRM3Ammo(); baMrmAmmos.add(base); EquipmentType.addType( base ); base = createISMRM4Ammo(); baMrmAmmos.add(base); EquipmentType.addType( base ); base = createISMRM5Ammo(); baMrmAmmos.add(base); EquipmentType.addType( base ); base = createBAISLRM1Ammo(); isBaLrmAmmos.add(base); EquipmentType.addType( base ); base = createBAISLRM2Ammo(); isBaLrmAmmos.add(base); EquipmentType.addType( base ); base = createBAISLRM3Ammo(); isBaLrmAmmos.add(base); EquipmentType.addType( base ); base = createBAISLRM4Ammo(); isBaLrmAmmos.add(base); EquipmentType.addType( base ); base = createBAISLRM5Ammo(); clanBaLrmAmmos.add(base); EquipmentType.addType( base ); base = createBACLLRM1Ammo(); clanBaLrmAmmos.add(base); EquipmentType.addType( base ); base = createBACLLRM2Ammo(); clanBaLrmAmmos.add(base); EquipmentType.addType( base ); base = createBACLLRM3Ammo(); clanBaLrmAmmos.add(base); EquipmentType.addType( base ); base = createBACLLRM4Ammo(); clanBaLrmAmmos.add(base); EquipmentType.addType( base ); base = createBACLLRM5Ammo(); clanBaLrmAmmos.add(base); EquipmentType.addType( base ); base = createBASRM1Ammo(); baSrmAmmos.add(base); EquipmentType.addType( base ); base = createBASRM2Ammo(); baSrmAmmos.add(base); EquipmentType.addType( base ); base = createBASRM3Ammo(); baSrmAmmos.add(base); EquipmentType.addType( base ); base = createBASRM4Ammo(); baSrmAmmos.add(base); EquipmentType.addType( base ); base = createBASRM5Ammo(); baSrmAmmos.add(base); EquipmentType.addType( base ); base = createBASRM6Ammo(); baSrmAmmos.add(base); EquipmentType.addType( base ); base = createBASRM2OSAmmo(); baSrmAmmos.add(base); EquipmentType.addType( base ); // Protomech-specific ammo EquipmentType.addType(createCLPROHeavyMGAmmo()); EquipmentType.addType(createCLPROMGAmmo()); EquipmentType.addType(createCLPROLightMGAmmo()); // Create the munition types for IS SRM launchers. munitions.removeAllElements(); munitions.addElement( new MunitionMutator( "Inferno", 1, M_INFERNO, TechConstants.T_IS_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "Fragmentation", 1, M_FRAGMENTATION, TechConstants.T_IS_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "Narc-capable", 1, M_NARC_CAPABLE, TechConstants.T_IS_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "Artemis-capable", 1, M_ARTEMIS_CAPABLE, TechConstants.T_IS_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "Listen-Kill", 1, M_LISTEN_KILL, TechConstants.T_IS_LEVEL_3 ) ); munitions.addElement( new MunitionMutator( "Anti-TSM", 1, M_ANTI_TSM, TechConstants.T_IS_LEVEL_3 ) ); munitions.addElement( new MunitionMutator( "Acid", 1, M_AX_HEAD, TechConstants.T_IS_LEVEL_3 ) ); // Walk through both the base types and the // mutators, and create munition types. baseTypes = srmAmmos.elements(); while ( baseTypes.hasMoreElements() ) { base = (AmmoType) baseTypes.nextElement(); mutators = munitions.elements(); while ( mutators.hasMoreElements() ) { mutator = (MunitionMutator) mutators.nextElement(); EquipmentType.addType( mutator.createMunitionType( base ) ); } } // Create the munition types for Clan SRM launchers. munitions.removeAllElements(); munitions.addElement( new MunitionMutator( "(Clan) Inferno", 1, M_INFERNO, TechConstants.T_CLAN_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "(Clan) Fragmentation", 1, M_FRAGMENTATION, TechConstants.T_CLAN_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "(Clan) Narc-capable", 1, M_NARC_CAPABLE, TechConstants.T_CLAN_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "(Clan) Artemis-capable", 1, M_ARTEMIS_CAPABLE, TechConstants.T_CLAN_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "(Clan) Listen-Kill", 1, M_LISTEN_KILL, TechConstants.T_CLAN_LEVEL_3 ) ); munitions.addElement( new MunitionMutator( "(Clan) Anti-TSM", 1, M_ANTI_TSM, TechConstants.T_CLAN_LEVEL_3 ) ); munitions.addElement( new MunitionMutator( "(Clan) Acid", 1, M_AX_HEAD, TechConstants.T_CLAN_LEVEL_3 ) ); // Walk through both the base types and the // mutators, and create munition types. baseTypes = clanSrmAmmos.elements(); while ( baseTypes.hasMoreElements() ) { base = (AmmoType) baseTypes.nextElement(); mutators = munitions.elements(); while ( mutators.hasMoreElements() ) { mutator = (MunitionMutator) mutators.nextElement(); EquipmentType.addType( mutator.createMunitionType( base ) ); } } // Create the munition types for BA SRM launchers. munitions.removeAllElements(); munitions.addElement( new MunitionMutator( "Inferno", 1, M_INFERNO, TechConstants.T_ALLOWED_ALL ) ); munitions.addElement( new MunitionMutator( "Torpedo", 1, M_TORPEDO, TechConstants.T_ALLOWED_ALL ) ); // Walk through both the base types and the // mutators, and create munition types. baseTypes = baSrmAmmos.elements(); while ( baseTypes.hasMoreElements() ) { base = (AmmoType) baseTypes.nextElement(); mutators = munitions.elements(); while ( mutators.hasMoreElements() ) { mutator = (MunitionMutator) mutators.nextElement(); EquipmentType.addType( mutator.createMunitionType( base ) ); } } // Create the munition types for BA MRM launchers. munitions.removeAllElements(); munitions.addElement( new MunitionMutator( "Torpedo", 1, M_TORPEDO, TechConstants.T_IS_LEVEL_2 ) ); // Walk through both the base types and the // mutators, and create munition types. baseTypes = baMrmAmmos.elements(); while ( baseTypes.hasMoreElements() ) { base = (AmmoType) baseTypes.nextElement(); mutators = munitions.elements(); while ( mutators.hasMoreElements() ) { mutator = (MunitionMutator) mutators.nextElement(); EquipmentType.addType( mutator.createMunitionType( base ) ); } } // Create the munition types for IS BA LRM launchers. munitions.removeAllElements(); munitions.addElement( new MunitionMutator( "Torpedo", 1, M_TORPEDO, TechConstants.T_IS_LEVEL_2 ) ); // Walk through both the base types and the // mutators, and create munition types. baseTypes = isBaLrmAmmos.elements(); while ( baseTypes.hasMoreElements() ) { base = (AmmoType) baseTypes.nextElement(); mutators = munitions.elements(); while ( mutators.hasMoreElements() ) { mutator = (MunitionMutator) mutators.nextElement(); EquipmentType.addType( mutator.createMunitionType( base ) ); } } // Create the munition types for clan BA LRM launchers. munitions.removeAllElements(); munitions.addElement( new MunitionMutator( "Multi-Purpose", 1, M_MULTI_PURPOSE, TechConstants.T_CLAN_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "Torpedo", 1, M_TORPEDO, TechConstants.T_CLAN_LEVEL_2 ) ); // Walk through both the base types and the // mutators, and create munition types. baseTypes = clanBaLrmAmmos.elements(); while ( baseTypes.hasMoreElements() ) { base = (AmmoType) baseTypes.nextElement(); mutators = munitions.elements(); while ( mutators.hasMoreElements() ) { mutator = (MunitionMutator) mutators.nextElement(); EquipmentType.addType( mutator.createMunitionType( base ) ); } } // Create the munition types for IS LRM launchers. munitions.removeAllElements(); munitions.addElement( new MunitionMutator( "Flare", 1, M_FLARE, TechConstants.T_IS_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "Fragmentation", 1, M_FRAGMENTATION, TechConstants.T_IS_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "Thunder", 1, M_THUNDER, TechConstants.T_IS_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "Thunder-Augmented", 2, M_THUNDER_AUGMENTED, TechConstants.T_IS_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "Thunder-Inferno", 2, M_THUNDER_INFERNO, TechConstants.T_IS_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "Thunder-Active", 2, M_THUNDER_ACTIVE, TechConstants.T_IS_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "Thunder-Vibrabomb", 2, M_THUNDER_VIBRABOMB, TechConstants.T_IS_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "Narc-capable", 1, M_NARC_CAPABLE, TechConstants.T_IS_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "Artemis-capable", 1, M_ARTEMIS_CAPABLE, TechConstants.T_IS_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "Semi-guided", 1, M_SEMIGUIDED, TechConstants.T_IS_LEVEL_2) ); munitions.addElement( new MunitionMutator( "Swarm", 1, M_SWARM, TechConstants.T_IS_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "Swarm-I", 1, M_SWARM_I, TechConstants.T_IS_LEVEL_2) ); munitions.addElement( new MunitionMutator( "Listen-Kill", 1, M_LISTEN_KILL, TechConstants.T_IS_LEVEL_3 ) ); munitions.addElement( new MunitionMutator( "Anti-TSM", 1, M_ANTI_TSM, TechConstants.T_IS_LEVEL_3 ) ); // Walk through both the base types and the // mutators, and create munition types. baseTypes = lrmAmmos.elements(); while ( baseTypes.hasMoreElements() ) { base = (AmmoType) baseTypes.nextElement(); mutators = munitions.elements(); while ( mutators.hasMoreElements() ) { mutator = (MunitionMutator) mutators.nextElement(); EquipmentType.addType( mutator.createMunitionType( base ) ); } } // Create the munition types for Clan LRM launchers. munitions.removeAllElements(); munitions.addElement( new MunitionMutator( "(Clan) Flare", 1, M_FLARE, TechConstants.T_CLAN_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "(Clan) Fragmentation", 1, M_FRAGMENTATION, TechConstants.T_CLAN_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "(Clan) Thunder", 1, M_THUNDER, TechConstants.T_CLAN_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "(Clan) Thunder-Augmented", 2, M_THUNDER_AUGMENTED, TechConstants.T_CLAN_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "(Clan) Thunder-Inferno", 2, M_THUNDER_INFERNO, TechConstants.T_CLAN_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "(Clan) Thunder-Active", 2, M_THUNDER_ACTIVE, TechConstants.T_CLAN_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "(Clan) Thunder-Vibrabomb", 2, M_THUNDER_VIBRABOMB, TechConstants.T_CLAN_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "(Clan) Narc-capable", 1, M_NARC_CAPABLE, TechConstants.T_CLAN_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "(Clan) Artemis-capable", 1, M_ARTEMIS_CAPABLE, TechConstants.T_CLAN_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "(Clan) Semi-guided", 1, M_SEMIGUIDED, TechConstants.T_CLAN_LEVEL_2) ); munitions.addElement( new MunitionMutator( "(Clan) Swarm", 1, M_SWARM, TechConstants.T_CLAN_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "(Clan) Swarm-I", 1, M_SWARM_I, TechConstants.T_CLAN_LEVEL_2) ); munitions.addElement( new MunitionMutator( "(Clan) Listen-Kill", 1, M_LISTEN_KILL, TechConstants.T_CLAN_LEVEL_3 ) ); munitions.addElement( new MunitionMutator( "(Clan) Anti-TSM", 1, M_ANTI_TSM, TechConstants.T_CLAN_LEVEL_3 ) ); // Walk through both the base types and the // mutators, and create munition types. baseTypes = clanLrmAmmos.elements(); while ( baseTypes.hasMoreElements() ) { base = (AmmoType) baseTypes.nextElement(); mutators = munitions.elements(); while ( mutators.hasMoreElements() ) { mutator = (MunitionMutator) mutators.nextElement(); EquipmentType.addType( mutator.createMunitionType( base ) ); } } // Create the munition types for AC rounds. munitions.removeAllElements(); munitions.addElement( new MunitionMutator( "Precision", 2, M_PRECISION, TechConstants.T_IS_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "Armor-Piercing", 2, M_ARMOR_PIERCING, TechConstants.T_IS_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "Flechette", 1, M_FLECHETTE, TechConstants.T_IS_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "Incendiary", 1, M_INCENDIARY_AC, TechConstants.T_IS_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "Tracer", 1, M_TRACER, TechConstants.T_IS_LEVEL_3 ) ); // Walk through both the base types and the // mutators, and create munition types. baseTypes = acAmmos.elements(); while ( baseTypes.hasMoreElements() ) { base = (AmmoType) baseTypes.nextElement(); mutators = munitions.elements(); while ( mutators.hasMoreElements() ) { mutator = (MunitionMutator) mutators.nextElement(); EquipmentType.addType( mutator.createMunitionType( base ) ); } } // Create the munition types for IS Arrow IV launchers. munitions.removeAllElements(); munitions.addElement( new MunitionMutator( "Homing", 1, M_HOMING, TechConstants.T_IS_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "FASCAM", 1, M_FASCAM, TechConstants.T_IS_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "Inferno-IV", 1, M_INFERNO_IV, TechConstants.T_IS_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "Vibrabomb-IV", 1, M_VIBRABOMB_IV, TechConstants.T_IS_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "Illumination", 1, M_FLARE, TechConstants.T_IS_LEVEL_3 ) ); munitions.addElement( new MunitionMutator( "Cluster", 1, M_CLUSTER, TechConstants.T_IS_LEVEL_3 ) ); munitions.addElement( new MunitionMutator( "Davy Crockett-M", 5, M_DAVY_CROCKETT_M, TechConstants.T_IS_LEVEL_3 ) ); // Walk through both the base types and the // mutators, and create munition types. baseTypes = arrowAmmos.elements(); while ( baseTypes.hasMoreElements() ) { base = (AmmoType) baseTypes.nextElement(); mutators = munitions.elements(); while ( mutators.hasMoreElements() ) { mutator = (MunitionMutator) mutators.nextElement(); EquipmentType.addType( mutator.createMunitionType( base ) ); } } // Create the munition types for clan Arrow IV launchers. munitions.removeAllElements(); munitions.addElement( new MunitionMutator( "Homing", 1, M_HOMING, TechConstants.T_CLAN_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "FASCAM", 1, M_FASCAM, TechConstants.T_CLAN_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "Inferno-IV", 1, M_INFERNO_IV, TechConstants.T_CLAN_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "Vibrabomb-IV", 1, M_VIBRABOMB_IV, TechConstants.T_CLAN_LEVEL_2 ) ); munitions.addElement( new MunitionMutator( "Davy Crockett-M", 5, M_DAVY_CROCKETT_M, TechConstants.T_CLAN_LEVEL_3 ) ); munitions.addElement( new MunitionMutator( "Illumination", 1, M_FLARE, TechConstants.T_CLAN_LEVEL_3 ) ); munitions.addElement( new MunitionMutator( "Cluster", 1, M_CLUSTER, TechConstants.T_CLAN_LEVEL_3 ) ); // Walk through both the base types and the // mutators, and create munition types. baseTypes = clanArrowAmmos.elements(); while ( baseTypes.hasMoreElements() ) { base = (AmmoType) baseTypes.nextElement(); mutators = munitions.elements(); while ( mutators.hasMoreElements() ) { mutator = (MunitionMutator) mutators.nextElement(); EquipmentType.addType( mutator.createMunitionType( base ) ); } } // Create the munition types for Artillery launchers. munitions.removeAllElements(); munitions.addElement( new MunitionMutator( "Smoke", 1, M_SMOKE, TechConstants.T_IS_LEVEL_2 ) ); // Walk through both the base types and the // mutators, and create munition types. baseTypes = thumperAmmos.elements(); while ( baseTypes.hasMoreElements() ) { base = (AmmoType) baseTypes.nextElement(); mutators = munitions.elements(); while ( mutators.hasMoreElements() ) { mutator = (MunitionMutator) mutators.nextElement(); EquipmentType.addType( mutator.createMunitionType( base ) ); } } // extra level 3 ammo for sniper & long tom but not thumper munitions.addElement( new MunitionMutator( "Copperhead", 1, M_HOMING, TechConstants.T_IS_LEVEL_3 ) ); munitions.addElement( new MunitionMutator( "Illumination", 1, M_FLARE, TechConstants.T_IS_LEVEL_3 ) ); munitions.addElement( new MunitionMutator( "Cluster", 1, M_CLUSTER, TechConstants.T_IS_LEVEL_3 ) ); munitions.addElement( new MunitionMutator( "Flechette", 1, M_FLECHETTE, TechConstants.T_IS_LEVEL_3 ) ); // Walk through both the base types and the // mutators, and create munition types. baseTypes = artyAmmos.elements(); while ( baseTypes.hasMoreElements() ) { base = (AmmoType) baseTypes.nextElement(); mutators = munitions.elements(); while ( mutators.hasMoreElements() ) { mutator = (MunitionMutator) mutators.nextElement(); EquipmentType.addType( mutator.createMunitionType( base ) ); } } // Make Davy Crockett-Ms for Long Toms, but not Thumper or Sniper. base = createISLongTomAmmo(); mutator = new MunitionMutator( "Davy Crockett-M", 5, M_DAVY_CROCKETT_M, TechConstants.T_IS_LEVEL_3 ); EquipmentType.addType( mutator.createMunitionType( base ) ); // Create the munition types for Clan Artillery launchers. munitions.removeAllElements(); munitions.addElement( new MunitionMutator( "(Clan) Smoke", 1, M_SMOKE, TechConstants.T_CLAN_LEVEL_2 ) ); // Walk through both the base types and the // mutators, and create munition types. baseTypes = clanArtyAmmos.elements(); while ( baseTypes.hasMoreElements() ) { base = (AmmoType) baseTypes.nextElement(); mutators = munitions.elements(); while ( mutators.hasMoreElements() ) { mutator = (MunitionMutator) mutators.nextElement(); EquipmentType.addType( mutator.createMunitionType( base ) ); } } // cache types that share a launcher for loadout purposes for (Enumeration e = EquipmentType.getAllTypes(); e.hasMoreElements(); ) { EquipmentType et = (EquipmentType)e.nextElement(); if (! (et instanceof AmmoType)) { continue; } AmmoType at = (AmmoType)et; int nType = at.getAmmoType(); if (m_vaMunitions[nType] == null) { m_vaMunitions[nType] = new Vector(); } m_vaMunitions[nType].addElement(at); } }
|
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/5c89992df38c19a027e6fcffe41f781082594934/AmmoType.java/clean/megamek/src/megamek/common/AmmoType.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
4046,
2016,
1435,
288,
3639,
368,
7074,
13200,
434,
326,
348,
8717,
471,
511,
8717,
2125,
26719,
358,
999,
358,
752,
312,
318,
5029,
18,
3639,
5589,
272,
8864,
37,
7020,
538,
273,
394,
5589,
12,
2499,
1769,
3639,
5589,
927,
304,
55,
8864,
37,
7020,
538,
273,
394,
5589,
5621,
3639,
5589,
9846,
55,
8864,
37,
7020,
538,
273,
394,
5589,
5621,
3639,
5589,
9846,
49,
8864,
37,
7020,
538,
273,
394,
5589,
5621,
3639,
5589,
927,
304,
38,
69,
48,
8864,
37,
7020,
538,
273,
394,
5589,
5621,
3639,
5589,
27057,
69,
48,
8864,
37,
7020,
538,
273,
394,
5589,
5621,
3639,
5589,
328,
8864,
37,
7020,
538,
273,
394,
5589,
12,
5558,
1769,
3639,
5589,
927,
304,
48,
8864,
37,
7020,
538,
273,
394,
5589,
5621,
3639,
5589,
1721,
37,
7020,
538,
225,
273,
394,
5589,
12,
24,
1769,
3639,
5589,
12274,
37,
7020,
538,
273,
394,
5589,
12,
24,
1769,
3639,
5589,
927,
304,
18691,
37,
7020,
538,
273,
394,
5589,
12,
24,
1769,
3639,
5589,
286,
379,
457,
37,
7020,
538,
273,
394,
5589,
12,
22,
1769,
3639,
5589,
3688,
93,
37,
7020,
538,
273,
394,
5589,
12,
26,
1769,
3639,
5589,
927,
304,
686,
4098,
37,
7020,
538,
273,
394,
5589,
12,
26,
1769,
3639,
5589,
312,
318,
5029,
273,
394,
5589,
5621,
3639,
13864,
1026,
2016,
273,
446,
31,
3639,
13864,
4318,
3062,
273,
446,
31,
3639,
3986,
8683,
559,
1026,
273,
446,
31,
3639,
490,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
4046,
2016,
1435,
288,
3639,
368,
7074,
13200,
434,
326,
348,
8717,
471,
511,
8717,
2125,
26719,
358,
999,
358,
752,
312,
318,
5029,
18,
3639,
5589,
272,
8864,
37,
7020,
538,
273,
394,
5589,
12,
2499,
1769,
3639,
5589,
927,
304,
55,
8864,
37,
7020,
538,
273,
394,
5589,
5621,
3639,
5589,
9846,
55,
8864,
37,
7020,
538,
273,
394,
5589,
5621,
3639,
5589,
9846,
49,
8864,
37,
7020,
538,
273,
394,
5589,
5621,
3639,
5589,
927,
304,
38,
69,
48,
8864,
37,
7020,
538,
273,
394,
5589,
5621,
3639,
5589,
27057,
69,
48,
8864,
37,
7020,
538,
273,
394,
5589,
5621,
3639,
5589,
328,
8864,
37,
7020,
538,
273,
394,
5589,
12,
5558,
2
] |
printError("Cannot update Item: " +e+"<br>");
|
printError("Cannot update Item: " + e + "<br>");
|
public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { Integer userId; // item id Integer itemId; // user id float minBuyNow; // minimum acceptable BuyNow for this item float BuyNow; // user BuyNow float maxBuyNow; // maximum BuyNow the user wants int maxQty; // maximum quantity available for this item int qty; // quantity asked by the user sp = new ServletPrinter(response, "StoreBuyNow"); /* Get and check all parameters */ String value = request.getParameter("userId"); if ((value == null) || (value.equals(""))) { printError("<h3>You must provide a user identifier !<br></h3>"); return ; } else userId = new Integer(value); value = request.getParameter("itemId"); if ((value == null) || (value.equals(""))) { printError("<h3>You must provide an item identifier !<br></h3>"); return ; } else itemId = new Integer(value); value = request.getParameter("maxQty"); if ((value == null) || (value.equals(""))) { printError("<h3>You must provide a maximum quantity !<br></h3>"); return ; } else { Integer foo = new Integer(value); maxQty = foo.intValue(); } value = request.getParameter("qty"); if ((value == null) || (value.equals(""))) { printError("<h3>You must provide a quantity !<br></h3>"); return ; } else { Integer foo = new Integer(value); qty = foo.intValue(); } /* Check for invalid values */ if (qty > maxQty) { printError("<h3>You cannot request "+qty+" items because only "+maxQty+" are proposed !<br></h3>"); return ; } try { initialContext = new InitialContext(); } catch (Exception e) { printError("Cannot get initial context for JNDI: " + e+"<br>"); return ; } // We want to start transactions from client UserTransaction utx = null; try { utx = (javax.transaction.UserTransaction)initialContext.lookup(Config.UserTransaction); utx.begin(); } catch (Exception e) { printError("Cannot lookup UserTransaction: "+e+"<br>"); return ; } // Try to find the Item corresponding to the Item ID Item item; try { ItemHome itemHome = (ItemHome)PortableRemoteObject.narrow(initialContext.lookup("ItemHome"), ItemHome.class); item = itemHome.findByPrimaryKey(new ItemPK(itemId)); item.setQuantity(item.getQuantity() - qty); if (item.getQuantity() == 0) item.setEndDate(TimeManagement.currentDateToString()); } catch (Exception e) { printError("Cannot update Item: " +e+"<br>"); try { utx.rollback(); } catch (Exception se) { printError("Transaction rollback failed: " + e +"<br>"); } return ; } try { BuyNowHome bHome = (BuyNowHome)PortableRemoteObject.narrow(initialContext.lookup("BuyNowHome"), BuyNowHome.class); edu.rice.rubis.beans.BuyNow b = bHome.create(userId, itemId, qty); utx.commit(); sp.printHTMLheader("RUBiS: BuyNow result"); if (qty == 1) sp.printHTML("<center><h2>Your have successfully bought this item.</h2></center>\n"); else sp.printHTML("<center><h2>Your have successfully bought these items.</h2></center>\n"); } catch (Exception e) { printError("Error while storing the BuyNow (got exception: " +e+")<br>"); try { utx.rollback(); } catch (Exception se) { printError("Transaction rollback failed: " + e +"<br>"); } return ; } sp.printHTMLfooter(); }
|
5750 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5750/3d57ae5a342bc10d6c418636c07193a0289ffd6b/StoreBuyNow.java/buggy/EJB_EntityBean_id_BMP/edu/rice/rubis/beans/servlets/StoreBuyNow.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
741,
3349,
12,
2940,
18572,
590,
16,
12446,
766,
13,
1216,
1860,
16,
16517,
225,
288,
565,
2144,
6249,
31,
368,
761,
612,
565,
2144,
18424,
31,
368,
729,
612,
565,
1431,
282,
1131,
38,
9835,
8674,
31,
368,
5224,
14206,
605,
9835,
8674,
364,
333,
761,
565,
1431,
282,
605,
9835,
8674,
31,
565,
368,
729,
605,
9835,
8674,
565,
1431,
282,
943,
38,
9835,
8674,
31,
368,
4207,
605,
9835,
8674,
326,
729,
14805,
565,
509,
377,
943,
53,
4098,
31,
368,
4207,
10457,
2319,
364,
333,
761,
565,
509,
377,
26667,
31,
565,
368,
10457,
19279,
635,
326,
729,
565,
1694,
273,
394,
7971,
12149,
12,
2740,
16,
315,
2257,
38,
9835,
8674,
8863,
565,
1748,
968,
471,
866,
777,
1472,
1195,
565,
514,
460,
273,
590,
18,
588,
1662,
2932,
18991,
8863,
565,
309,
14015,
1132,
422,
446,
13,
747,
261,
1132,
18,
14963,
2932,
6,
20349,
565,
288,
1377,
1172,
668,
2932,
32,
76,
23,
34,
6225,
1297,
5615,
279,
729,
2756,
401,
32,
2848,
4695,
76,
23,
2984,
1769,
1377,
327,
274,
565,
289,
565,
469,
1377,
6249,
273,
394,
2144,
12,
1132,
1769,
565,
460,
273,
590,
18,
588,
1662,
2932,
1726,
548,
8863,
565,
309,
14015,
1132,
422,
446,
13,
747,
261,
1132,
18,
14963,
2932,
6,
20349,
565,
288,
1377,
1172,
668,
2932,
32,
76,
23,
34,
6225,
1297,
5615,
392,
761,
2756,
401,
32,
2848,
4695,
76,
23,
2984,
1769,
1377,
327,
274,
565,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
741,
3349,
12,
2940,
18572,
590,
16,
12446,
766,
13,
1216,
1860,
16,
16517,
225,
288,
565,
2144,
6249,
31,
368,
761,
612,
565,
2144,
18424,
31,
368,
729,
612,
565,
1431,
282,
1131,
38,
9835,
8674,
31,
368,
5224,
14206,
605,
9835,
8674,
364,
333,
761,
565,
1431,
282,
605,
9835,
8674,
31,
565,
368,
729,
605,
9835,
8674,
565,
1431,
282,
943,
38,
9835,
8674,
31,
368,
4207,
605,
9835,
8674,
326,
729,
14805,
565,
509,
377,
943,
53,
4098,
31,
368,
4207,
10457,
2319,
364,
333,
761,
565,
509,
377,
26667,
31,
565,
368,
10457,
19279,
635,
326,
729,
565,
1694,
273,
394,
7971,
12149,
12,
2740,
16,
315,
2257,
38,
9835,
8674,
2
] |
protected synchronized boolean isTokenValid(HttpServletRequest request) {
|
protected boolean isTokenValid(HttpServletRequest request) {
|
protected synchronized boolean isTokenValid(HttpServletRequest request) { return (isTokenValid(request, false)); }
|
2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/22f5c2c1ad1982dde458d75730bfcbb75463de39/Action.java/buggy/src/share/org/apache/struts/action/Action.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
353,
1345,
1556,
12,
2940,
18572,
590,
13,
288,
3639,
327,
261,
291,
1345,
1556,
12,
2293,
16,
629,
10019,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
353,
1345,
1556,
12,
2940,
18572,
590,
13,
288,
3639,
327,
261,
291,
1345,
1556,
12,
2293,
16,
629,
10019,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Call.mutate1(inst, CALL, null, IC(target.getOffset()),
|
Call.mutate1(inst, CALL, null, OPT_IRTools.AC(target.getOffset()),
|
public void perform (OPT_IR ir) { ir.gc.resync(); // resync generation context -- yuck... OPT_Instruction next; for (OPT_Instruction inst = ir.firstInstructionInCodeOrder(); inst != null; inst = next) { next = inst.nextInstructionInCodeOrder(); int opcode = inst.getOpcode(); switch (opcode) { case NEW_opcode: { OPT_TypeOperand Type = New.getClearType(inst); VM_Class cls = (VM_Class)Type.getVMType(); OPT_IntConstantOperand hasFinalizer = IC(cls.hasFinalizer() ? 1 : 0); VM_Method callSite = inst.position.getMethod(); OPT_IntConstantOperand allocator = IC(MM_Interface.pickAllocator(cls, callSite)); OPT_IntConstantOperand align = IC(VM_ObjectModel.getAlignment(cls)); OPT_IntConstantOperand offset = IC(VM_ObjectModel.getOffsetForAlignment(cls)); OPT_Operand tib = OPT_ConvertToLowLevelIR.getTIB(inst, ir, Type); if (VM.BuildForIA32 && VM.runningVM) { // shield BC2IR from address constants OPT_RegisterOperand tmp = ir.regpool.makeTemp(VM_TypeReference.JavaLangObjectArray); inst.insertBefore(Move.create(REF_MOVE, tmp, tib)); tib = tmp; } VM_Method target = VM_Entrypoints.resolvedNewScalarMethod; Call.mutate6(inst, CALL, New.getClearResult(inst), IC(target.getOffset()), OPT_MethodOperand.STATIC(target), IC(cls.getInstanceSize()), tib, hasFinalizer, allocator, align, offset); if (ir.options.INLINE_NEW) { if (inst.getBasicBlock().getInfrequent()) container.counter1++; container.counter2++; if (!ir.options.FREQ_FOCUS_EFFORT || !inst.getBasicBlock().getInfrequent()) { inline(inst, ir); } } } break; case NEW_UNRESOLVED_opcode: { int typeRefId = New.getType(inst).getTypeRef().getId(); VM_Method target = VM_Entrypoints.unresolvedNewScalarMethod; Call.mutate1(inst, CALL, New.getClearResult(inst), IC(target.getOffset()), OPT_MethodOperand.STATIC(target), IC(typeRefId)); } break; case NEWARRAY_opcode: { OPT_TypeOperand Array = NewArray.getClearType(inst); VM_Array array = (VM_Array)Array.getVMType(); OPT_Operand numberElements = NewArray.getClearSize(inst); boolean inline = numberElements instanceof OPT_IntConstantOperand; OPT_Operand width = IC(array.getLogElementSize()); OPT_Operand headerSize = IC(VM_ObjectModel.computeArrayHeaderSize(array)); VM_Method callSite = inst.position.getMethod(); OPT_IntConstantOperand allocator = IC(MM_Interface.pickAllocator(array, callSite)); OPT_IntConstantOperand align = IC(VM_ObjectModel.getAlignment(array)); OPT_IntConstantOperand offset = IC(VM_ObjectModel.getOffsetForAlignment(array)); OPT_Operand tib = OPT_ConvertToLowLevelIR.getTIB(inst, ir, Array); if (VM.BuildForIA32 && VM.runningVM) { // shield BC2IR from address constants OPT_RegisterOperand tmp = ir.regpool.makeTemp(VM_TypeReference.JavaLangObjectArray); inst.insertBefore(Move.create(REF_MOVE, tmp, tib)); tib = tmp; } VM_Method target = VM_Entrypoints.resolvedNewArrayMethod; Call.mutate7(inst, CALL, NewArray.getClearResult(inst), IC(target.getOffset()), OPT_MethodOperand.STATIC(target), numberElements, width, headerSize, tib, allocator, align, offset); if (inline && ir.options.INLINE_NEW) { if (inst.getBasicBlock().getInfrequent()) container.counter1++; container.counter2++; if (!ir.options.FREQ_FOCUS_EFFORT || !inst.getBasicBlock().getInfrequent()) { inline(inst, ir); } } } break; case NEWARRAY_UNRESOLVED_opcode: { int typeRefId = NewArray.getType(inst).getTypeRef().getId(); OPT_Operand numberElements = NewArray.getClearSize(inst); VM_Method target = VM_Entrypoints.unresolvedNewArrayMethod; Call.mutate2(inst, CALL, NewArray.getClearResult(inst), IC(target.getOffset()), OPT_MethodOperand.STATIC(target), numberElements, IC(typeRefId)); } break; case NEWOBJMULTIARRAY_opcode: { int typeRefId = NewArray.getType(inst).getTypeRef().getId(); VM_Method target = VM_Entrypoints.optNewArrayArrayMethod; VM_Method callSite = inst.position.getMethod(); Call.mutate3(inst, CALL, NewArray.getClearResult(inst), IC(target.getOffset()), OPT_MethodOperand.STATIC(target), IC(callSite.getId()), NewArray.getClearSize(inst), IC(typeRefId)); } break; case ATHROW_opcode: { VM_Method target = VM_Entrypoints.athrowMethod; OPT_MethodOperand methodOp = OPT_MethodOperand.STATIC(target); methodOp.setIsNonReturningCall(true); // Record the fact that this is a non-returning call. Call.mutate1(inst, CALL, null, IC(target.getOffset()), methodOp, Athrow.getClearValue(inst)); } break; case MONITORENTER_opcode: { if (ir.options.NO_SYNCHRO) { inst.remove(); } else { OPT_Operand ref = MonitorOp.getClearRef(inst); VM_Type refType = ref.getType().peekResolvedType(); if (refType != null && refType.getThinLockOffset() != -1) { VM_Method target = VM_Entrypoints.inlineLockMethod; Call.mutate2(inst, CALL, null, IC(target.getOffset()), OPT_MethodOperand.STATIC(target), MonitorOp.getClearGuard(inst), ref, IC(refType.getThinLockOffset())); if (inst.getBasicBlock().getInfrequent()) container.counter1++; container.counter2++; if (!ir.options.FREQ_FOCUS_EFFORT || !inst.getBasicBlock().getInfrequent()) { inline(inst, ir); } } else { VM_Method target = VM_Entrypoints.lockMethod; Call.mutate1(inst, CALL, null, IC(target.getOffset()), OPT_MethodOperand.STATIC(target), MonitorOp.getClearGuard(inst), ref); } } break; } case MONITOREXIT_opcode: { if (ir.options.NO_SYNCHRO) { inst.remove(); } else { OPT_Operand ref = MonitorOp.getClearRef(inst); VM_Type refType = ref.getType().peekResolvedType(); if (refType != null && refType.getThinLockOffset() != -1) { VM_Method target = VM_Entrypoints.inlineUnlockMethod; Call.mutate2(inst, CALL, null, IC(target.getOffset()), OPT_MethodOperand.STATIC(target), MonitorOp.getClearGuard(inst), ref, IC(refType.getThinLockOffset())); if (inst.getBasicBlock().getInfrequent()) container.counter1++; container.counter2++; if (!ir.options.FREQ_FOCUS_EFFORT || !inst.getBasicBlock().getInfrequent()) { inline(inst, ir); } } else { VM_Method target = VM_Entrypoints.unlockMethod; Call.mutate1(inst, CALL, null, IC(target.getOffset()), OPT_MethodOperand.STATIC(target), MonitorOp.getClearGuard(inst), ref); } } } break; case REF_ASTORE_opcode: { if (MM_Interface.NEEDS_WRITE_BARRIER) { VM_Method target = VM_Entrypoints.arrayStoreWriteBarrierMethod; OPT_Instruction wb = Call.create3(CALL, null, IC(target.getOffset()), OPT_MethodOperand.STATIC(target), AStore.getArray(inst).copy(), AStore.getIndex(inst).copy(), AStore.getValue(inst).copy()); wb.bcIndex = RUNTIME_SERVICES_BCI; wb.position = inst.position; inst.replace(wb); next = wb.nextInstructionInCodeOrder(); if (ir.options.INLINE_WRITE_BARRIER) inline(wb, ir, true); } } break; case PUTFIELD_opcode: { if (MM_Interface.NEEDS_WRITE_BARRIER) { OPT_LocationOperand loc = PutField.getClearLocation(inst); VM_FieldReference field = loc.getFieldRef(); if (!field.getFieldContentsType().isPrimitiveType()) { VM_Method target = VM_Entrypoints.putfieldWriteBarrierMethod; OPT_Instruction wb = Call.create4(CALL, null, IC(target.getOffset()), OPT_MethodOperand.STATIC(target), PutField.getRef(inst).copy(), PutField.getOffset(inst).copy(), PutField.getValue(inst).copy(), IC(field.getId())); wb.bcIndex = RUNTIME_SERVICES_BCI; wb.position = inst.position; inst.replace(wb); next = wb.nextInstructionInCodeOrder(); if (ir.options.INLINE_WRITE_BARRIER) inline(wb, ir); } } } break; default: break; } } // If we actually inlined anything, clean up the mess if (didSomething) { branchOpts.perform(ir, true); _os.perform(ir); } // signal that we do not intend to use the gc in other phases anymore. ir.gc.close(); }
|
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/3a1409586ed0fc007c4120f3a96d6f7a1ae3593c/OPT_ExpandRuntimeServices.java/buggy/rvm/src/vm/compilers/optimizing/ir/conversions/hir2lir/OPT_ExpandRuntimeServices.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3073,
261,
15620,
67,
7937,
9482,
13,
288,
565,
9482,
18,
13241,
18,
455,
1209,
5621,
368,
24460,
9377,
819,
1493,
677,
9031,
2777,
3639,
16456,
67,
11983,
1024,
31,
565,
364,
261,
15620,
67,
11983,
1804,
273,
9482,
18,
3645,
11983,
382,
1085,
2448,
5621,
1850,
1804,
480,
446,
31,
1850,
1804,
273,
1024,
13,
288,
1377,
1024,
273,
1804,
18,
4285,
11983,
382,
1085,
2448,
5621,
1377,
509,
11396,
273,
1804,
18,
588,
22808,
5621,
1377,
1620,
261,
556,
710,
13,
288,
2868,
648,
12887,
67,
556,
710,
30,
288,
540,
16456,
67,
559,
10265,
1412,
273,
1166,
18,
588,
9094,
559,
12,
8591,
1769,
3639,
8251,
67,
797,
2028,
273,
261,
7397,
67,
797,
13,
559,
18,
588,
7397,
559,
5621,
3639,
16456,
67,
1702,
6902,
10265,
711,
7951,
1824,
273,
26899,
12,
6429,
18,
5332,
7951,
1824,
1435,
692,
404,
294,
374,
1769,
3639,
8251,
67,
1305,
745,
4956,
273,
1804,
18,
3276,
18,
588,
1305,
5621,
3639,
16456,
67,
1702,
6902,
10265,
26673,
273,
26899,
12,
8206,
67,
1358,
18,
11503,
21156,
12,
6429,
16,
745,
4956,
10019,
3639,
16456,
67,
1702,
6902,
10265,
5689,
273,
26899,
12,
7397,
67,
921,
1488,
18,
588,
11535,
12,
6429,
10019,
3639,
16456,
67,
1702,
6902,
10265,
1384,
273,
26899,
12,
7397,
67,
921,
1488,
18,
588,
2335,
1290,
11535,
12,
6429,
10019,
3639,
16456,
67,
10265,
268,
495,
273,
16456,
67,
2723,
774,
10520,
2355,
7937,
18,
588,
56,
13450,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3073,
261,
15620,
67,
7937,
9482,
13,
288,
565,
9482,
18,
13241,
18,
455,
1209,
5621,
368,
24460,
9377,
819,
1493,
677,
9031,
2777,
3639,
16456,
67,
11983,
1024,
31,
565,
364,
261,
15620,
67,
11983,
1804,
273,
9482,
18,
3645,
11983,
382,
1085,
2448,
5621,
1850,
1804,
480,
446,
31,
1850,
1804,
273,
1024,
13,
288,
1377,
1024,
273,
1804,
18,
4285,
11983,
382,
1085,
2448,
5621,
1377,
509,
11396,
273,
1804,
18,
588,
22808,
5621,
1377,
1620,
261,
556,
710,
13,
288,
2868,
648,
12887,
67,
556,
710,
30,
288,
540,
16456,
67,
559,
10265,
1412,
273,
1166,
18,
588,
9094,
559,
12,
8591,
1769,
3639,
8251,
67,
797,
2028,
273,
261,
7397,
67,
2
] |
boolean fetch( IDataSetInstance dataSet, IDataSetRow row );
|
boolean fetch( IDataSetInstance dataSet, IUpdatableDataSetRow row );
|
boolean fetch( IDataSetInstance dataSet, IDataSetRow row );
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/789094afdf58e0418c0df38b323c65abffac8d3f/IScriptedDataSetEventHandler.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/script/eventhandler/IScriptedDataSetEventHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6494,
2158,
12,
467,
13676,
1442,
14837,
16,
467,
13676,
1999,
1027,
11272,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6494,
2158,
12,
467,
13676,
1442,
14837,
16,
467,
13676,
1999,
1027,
11272,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
PerspectiveBarContributionItem contribItem = (PerspectiveBarContributionItem)menuItem.getData("IContributionItem"); PerspectiveBarContributionItem newItem = new PerspectiveBarContributionItem(contribItem.getPerspective(), contribItem.getPage()); remove(contribItem); contribItem.dispose(); insert(1, newItem); update(false); newItem.select();
|
Object item = menuItem.getData("IContributionItem"); if (item instanceof PerspectiveBarContributionItem) { PerspectiveBarContributionItem contribItem = (PerspectiveBarContributionItem)item; update(false); contribItem.select(); }
|
public void handleChevron(SelectionEvent event) { /* * If the popup menu is already there, then pop it down. This doesn't * work... still need to figure this out. */ if (popup != null) { popup.dispose(); popup = null; return; } CoolItem item = (CoolItem) event.widget; //ToolBar toolbar = (ToolBar)getControl(); Control control = getControl(); if (!(control instanceof ToolBar)) return; // currently we only deal with toolbar items /* Retrieve the current bounding rectangle for the selected cool item. */ Rectangle itemBounds = item.getBounds(); /* Convert to display coordinates (i.e. was relative to CoolBar). */ Point pt = coolBar.toDisplay(new Point(itemBounds.x, itemBounds.y)); itemBounds.x = pt.x; itemBounds.y = pt.y; /* Retrieve the total number of buttons in the toolbar. */ ToolBar toolBar = (ToolBar) control; ToolItem[] tools = toolBar.getItems(); int toolCount = tools.length; int i = 0; while (i < toolCount) { /* * Starting from the leftmost tool, retrieve the tool's bounding * rectangle. */ Rectangle toolBounds = tools[i].getBounds(); /* Convert to display coordinates (i.e. was relative to ToolBar). */ pt = toolBar.toDisplay(new Point(toolBounds.x, toolBounds.y)); toolBounds.x = pt.x; toolBounds.y = pt.y; /* * Figure out the visible portion of the tool by looking at the * intersection of the tool bounds with the cool item bounds. */ Rectangle intersection = itemBounds.intersection(toolBounds); /* * If the tool is not completely within the cool item bounds, then * the tool is at least partially hidden, and all remaining tools * are completely hidden. */ if (!intersection.equals(toolBounds)) break; i++; } /* Create a pop-up menu with items for each of the hidden buttons. */ popup = new Menu(coolBar); for (int j = i; j < toolCount; j++) { ToolItem tool = tools[j]; MenuItem menuItem = new MenuItem(popup, SWT.NONE); menuItem.setText(tool.getText()); menuItem.setImage(tool.getImage()); menuItem.setData("IContributionItem", tool.getData()); //$NON-NLS-1$ menuItem.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { //rotate the selected item in and the other items right // don't touch the "Open" item MenuItem menuItem = (MenuItem)e.widget; PerspectiveBarContributionItem contribItem = (PerspectiveBarContributionItem)menuItem.getData("IContributionItem"); //$NON-NLS-1$ PerspectiveBarContributionItem newItem = new PerspectiveBarContributionItem(contribItem.getPerspective(), contribItem.getPage()); remove(contribItem); contribItem.dispose(); insert(1, newItem); update(false); newItem.select(); } }); } /* * Display the pop-up menu immediately below the chevron, with the left * edges aligned. Need to convert the given point to display * coordinates in order to pass them to Menu.setLocation (i.e. was * relative to CoolBar). */ pt = coolBar.toDisplay(new Point(event.x, event.y)); popup.setLocation(pt.x, pt.y); popup.setVisible(true); Display display = coolBar.getDisplay(); while (popup != null && popup.isVisible()) { if (!display.readAndDispatch()) display.sleep(); } if (popup != null) { popup.dispose(); popup = null; } }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/07b0705542a3d52889a392ff1532a494bdb75fdd/PerspectiveBarManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PerspectiveBarManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
39,
580,
90,
1949,
12,
6233,
1133,
871,
13,
288,
202,
202,
20308,
1082,
380,
971,
326,
10431,
3824,
353,
1818,
1915,
16,
1508,
1843,
518,
2588,
18,
1220,
3302,
1404,
1082,
380,
1440,
2777,
4859,
1608,
358,
7837,
333,
596,
18,
1082,
1195,
202,
202,
430,
261,
16086,
480,
446,
13,
288,
1082,
202,
16086,
18,
2251,
4150,
5621,
1082,
202,
16086,
273,
446,
31,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
39,
1371,
1180,
761,
273,
261,
39,
1371,
1180,
13,
871,
18,
6587,
31,
202,
202,
759,
6364,
5190,
12748,
273,
261,
6364,
5190,
13,
588,
3367,
5621,
202,
202,
3367,
3325,
273,
27174,
5621,
202,
202,
430,
16051,
12,
7098,
1276,
13288,
5190,
3719,
1082,
202,
2463,
31,
368,
4551,
732,
1338,
10490,
598,
12748,
1516,
202,
202,
20308,
10708,
326,
783,
7552,
11845,
364,
326,
3170,
27367,
761,
18,
1195,
202,
202,
19463,
761,
5694,
273,
761,
18,
588,
5694,
5621,
202,
202,
20308,
4037,
358,
2562,
5513,
261,
77,
18,
73,
18,
1703,
3632,
358,
385,
1371,
5190,
2934,
1195,
202,
202,
2148,
5818,
273,
27367,
5190,
18,
869,
4236,
12,
2704,
4686,
12,
1726,
5694,
18,
92,
16,
761,
5694,
18,
93,
10019,
202,
202,
1726,
5694,
18,
92,
273,
5818,
18,
92,
31,
202,
202,
1726,
5694,
18,
93,
273,
5818,
18,
93,
31,
202,
202,
20308,
10708,
326,
2078,
1300,
434,
9502,
316,
326,
12748,
18,
1195,
202,
202,
6364,
5190,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
39,
580,
90,
1949,
12,
6233,
1133,
871,
13,
288,
202,
202,
20308,
1082,
380,
971,
326,
10431,
3824,
353,
1818,
1915,
16,
1508,
1843,
518,
2588,
18,
1220,
3302,
1404,
1082,
380,
1440,
2777,
4859,
1608,
358,
7837,
333,
596,
18,
1082,
1195,
202,
202,
430,
261,
16086,
480,
446,
13,
288,
1082,
202,
16086,
18,
2251,
4150,
5621,
1082,
202,
16086,
273,
446,
31,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
39,
1371,
1180,
761,
273,
261,
39,
1371,
1180,
13,
871,
18,
6587,
31,
202,
202,
759,
6364,
5190,
12748,
273,
261,
6364,
5190,
13,
588,
3367,
5621,
202,
202,
3367,
3325,
273,
27174,
5621,
202,
202,
430,
16051,
2
] |
count = (Long)localNodeReceivedMessageTypes.get(messageSpecName); if (count == null) { count = new Long(1);
|
synchronized(this) { count = (Long)localNodeReceivedMessageTypes.get(messageSpecName); if (count == null) { count = new Long(1); } else { count = new Long(count.longValue() + 1); } localNodeReceivedMessageTypes.put(messageSpecName,count);
|
public void addToLocalNodeReceivedMessagesFromStatistic (Message m) { String messageSpecName; Long count; messageSpecName = m.getSpec().getName(); // count = (Long)localNodeReceivedMessageTypes.get(messageSpecName); if (count == null) { count = new Long(1); } else { count = new Long(count.longValue() + 1); } // localNodeReceivedMessageTypes.put(messageSpecName,count); }
|
52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/1f4125bd4467d83bcbff54d12bdfbc175bb0f960/PeerNode.java/buggy/src/freenet/node/PeerNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
9604,
2042,
907,
8872,
5058,
1265,
20673,
261,
1079,
312,
13,
202,
95,
202,
780,
883,
1990,
461,
31,
202,
3708,
1056,
31,
1082,
202,
2150,
1990,
461,
273,
312,
18,
588,
1990,
7675,
17994,
5621,
202,
202,
759,
202,
202,
1883,
273,
261,
3708,
13,
3729,
907,
8872,
1079,
2016,
18,
588,
12,
2150,
1990,
461,
1769,
202,
202,
430,
261,
1883,
422,
446,
13,
202,
202,
95,
1082,
202,
1883,
273,
394,
3407,
12,
21,
1769,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
1883,
273,
394,
3407,
12,
1883,
18,
5748,
620,
1435,
397,
404,
1769,
202,
202,
97,
202,
202,
759,
202,
202,
3729,
907,
8872,
1079,
2016,
18,
458,
12,
2150,
1990,
461,
16,
1883,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
9604,
2042,
907,
8872,
5058,
1265,
20673,
261,
1079,
312,
13,
202,
95,
202,
780,
883,
1990,
461,
31,
202,
3708,
1056,
31,
1082,
202,
2150,
1990,
461,
273,
312,
18,
588,
1990,
7675,
17994,
5621,
202,
202,
759,
202,
202,
1883,
273,
261,
3708,
13,
3729,
907,
8872,
1079,
2016,
18,
588,
12,
2150,
1990,
461,
1769,
202,
202,
430,
261,
1883,
422,
446,
13,
202,
202,
95,
1082,
202,
1883,
273,
394,
3407,
12,
21,
1769,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
1883,
273,
394,
3407,
12,
1883,
18,
5748,
620,
1435,
397,
404,
1769,
202,
202,
97,
202,
202,
759,
202,
202,
3729,
907,
8872,
1079,
2016,
2
] |
for (i = indigits_per_limb ; i < str_len; i += indigits_per_limb)
|
while (str_pos < str_len)
|
public static int set_str (int dest[], byte[] str, int str_len, int base) { int big_base = MPN.big_base (base); int size = 0; if ((base & (base - 1)) == 0) { // The base is a power of 2. Read the input string from // least to most significant character/digit. */ int next_bitpos = 0; int bits_per_indigit = big_base; int res_digit = 0; for (int i = str_len; --i >= 0; ) { int inp_digit = str[i]; res_digit |= inp_digit << next_bitpos; next_bitpos += bits_per_indigit; if (next_bitpos >= 32) { dest[size++] = res_digit; next_bitpos -= 32; res_digit = inp_digit >> (bits_per_indigit - next_bitpos); } } if (res_digit != 0) dest[size++] = res_digit; } else { // General case. The base is not a power of 2. int indigits_per_limb = MPN.chars_per_word (base); int j; int cy_limb; int str_pos = 0; int res_digit; int i; for (i = indigits_per_limb ; i < str_len; i += indigits_per_limb) { res_digit = str[str_pos++]; for (j = 1; j < indigits_per_limb; j++) res_digit = res_digit * base + str[str_pos++]; if (size == 0) { if (res_digit != 0) { dest[0] = res_digit; size = 1; } } else { cy_limb = MPN.mul_1 (dest, dest, size, big_base); cy_limb += MPN.add_1 (dest, dest, size, res_digit); if (cy_limb != 0) dest[size++] = cy_limb; } } big_base = base; res_digit = str[str_pos++]; for (j = 1; j < str_len - (i - indigits_per_limb); j++) { res_digit = res_digit * base + str[str_pos++]; big_base *= base; } if (size == 0) { if (res_digit != 0) { dest[0] = res_digit; size = 1; } } else { cy_limb = MPN.mul_1 (dest, dest, size, big_base); cy_limb += MPN.add_1 (dest, dest, size, res_digit); if (cy_limb != 0) dest[size++] = cy_limb; } } return size; }
|
36870 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36870/7acadb672b61196e62c8342f649887d92b6e82b1/MPN.java/clean/gnu/math/MPN.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
509,
444,
67,
701,
261,
474,
1570,
63,
6487,
1160,
8526,
609,
16,
509,
609,
67,
1897,
16,
509,
1026,
13,
225,
288,
565,
509,
5446,
67,
1969,
273,
13480,
50,
18,
14002,
67,
1969,
261,
1969,
1769,
565,
509,
963,
273,
374,
31,
565,
309,
14015,
1969,
473,
261,
1969,
300,
404,
3719,
422,
374,
13,
1377,
288,
202,
759,
1021,
1026,
353,
279,
7212,
434,
576,
18,
225,
2720,
326,
810,
533,
628,
202,
759,
4520,
358,
4486,
14177,
3351,
19,
11052,
18,
225,
1195,
225,
202,
474,
1024,
67,
3682,
917,
273,
374,
31,
202,
474,
4125,
67,
457,
67,
728,
360,
305,
273,
5446,
67,
1969,
31,
202,
474,
400,
67,
11052,
273,
374,
31,
225,
202,
1884,
261,
474,
277,
273,
609,
67,
1897,
31,
225,
1493,
77,
1545,
374,
31,
262,
202,
225,
288,
202,
565,
509,
12789,
67,
11052,
273,
609,
63,
77,
15533,
202,
565,
400,
67,
11052,
5626,
12789,
67,
11052,
2296,
1024,
67,
3682,
917,
31,
202,
565,
1024,
67,
3682,
917,
1011,
4125,
67,
457,
67,
728,
360,
305,
31,
202,
565,
309,
261,
4285,
67,
3682,
917,
1545,
3847,
13,
202,
1377,
288,
202,
202,
10488,
63,
1467,
9904,
65,
273,
400,
67,
11052,
31,
202,
202,
4285,
67,
3682,
917,
3947,
3847,
31,
202,
202,
455,
67,
11052,
273,
12789,
67,
11052,
1671,
261,
6789,
67,
457,
67,
728,
360,
305,
300,
1024,
67,
3682,
917,
1769,
202,
1377,
289,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
509,
444,
67,
701,
261,
474,
1570,
63,
6487,
1160,
8526,
609,
16,
509,
609,
67,
1897,
16,
509,
1026,
13,
225,
288,
565,
509,
5446,
67,
1969,
273,
13480,
50,
18,
14002,
67,
1969,
261,
1969,
1769,
565,
509,
963,
273,
374,
31,
565,
309,
14015,
1969,
473,
261,
1969,
300,
404,
3719,
422,
374,
13,
1377,
288,
202,
759,
1021,
1026,
353,
279,
7212,
434,
576,
18,
225,
2720,
326,
810,
533,
628,
202,
759,
4520,
358,
4486,
14177,
3351,
19,
11052,
18,
225,
1195,
225,
202,
474,
1024,
67,
3682,
917,
273,
374,
31,
202,
474,
4125,
67,
457,
67,
728,
360,
305,
273,
5446,
67,
1969,
31,
202,
474,
400,
67,
11052,
2
] |
m_displayRules = Utils.getFlag('R',options);
|
public void setOptions(String[] options) throws Exception { String optionString; resetOptions(); optionString = Utils.getOption('X',options); if (optionString.length() != 0) { m_CVFolds = Integer.parseInt(optionString); } optionString = Utils.getOption('S',options); if (optionString.length() != 0) { m_maxStale = Integer.parseInt(optionString); } m_useIBk = Utils.getFlag('I',options); // m_displayRules = Utils.getFlag('R',options); }
|
48918 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48918/cda0e11a5a37e91d026594d506cc5433742c7b77/DecisionTable.java/clean/weka/classifiers/rules/DecisionTable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
312,
67,
5417,
4478,
273,
6091,
18,
588,
4678,
2668,
54,
2187,
2116,
1769,
312,
67,
5417,
4478,
273,
6091,
18,
588,
4678,
2668,
54,
2187,
2116,
1769,
1071,
81,
67,
5417,
4478,
273,
6091,
18,
588,
4678,
2668,
54,
2187,
2116,
1769,
918,
81,
67,
5417,
4478,
273,
6091,
18,
588,
4678,
2668,
54,
2187,
2116,
1769,
16526,
12,
780,
8526,
81,
67,
5417,
4478,
273,
6091,
18,
588,
4678,
2668,
54,
2187,
2116,
1769,
702,
13,
81,
67,
5417,
4478,
273,
6091,
18,
588,
4678,
2668,
54,
2187,
2116,
1769,
1216,
81,
67,
5417,
4478,
273,
6091,
18,
588,
4678,
2668,
54,
2187,
2116,
1769,
1185,
81,
67,
5417,
4478,
273,
6091,
18,
588,
4678,
2668,
54,
2187,
2116,
1769,
312,
67,
5417,
4478,
273,
6091,
18,
588,
4678,
2668,
54,
2187,
2116,
1769,
288,
81,
67,
5417,
4478,
273,
6091,
18,
588,
4678,
2668,
54,
2187,
2116,
1769,
312,
67,
5417,
4478,
273,
6091,
18,
588,
4678,
2668,
54,
2187,
2116,
1769,
312,
67,
5417,
4478,
273,
6091,
18,
588,
4678,
2668,
54,
2187,
2116,
1769,
312,
67,
5417,
4478,
273,
6091,
18,
588,
4678,
2668,
54,
2187,
2116,
1769,
514,
81,
67,
5417,
4478,
273,
6091,
18,
588,
4678,
2668,
54,
2187,
2116,
1769,
1456,
780,
31,
81,
67,
5417,
4478,
273,
6091,
18,
588,
4678,
2668,
54,
2187,
2116,
1769,
312,
67,
5417,
4478,
273,
6091,
18,
588,
4678,
2668,
54,
2187,
2116,
1769,
312,
67,
5417,
4478,
273,
6091,
18,
588,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
312,
67,
5417,
4478,
273,
6091,
18,
588,
4678,
2668,
54,
2187,
2116,
1769,
312,
67,
5417,
4478,
273,
6091,
18,
588,
4678,
2668,
54,
2187,
2116,
1769,
1071,
81,
67,
5417,
4478,
273,
6091,
18,
588,
4678,
2668,
54,
2187,
2116,
1769,
918,
81,
67,
5417,
4478,
273,
6091,
18,
588,
4678,
2668,
54,
2187,
2116,
1769,
16526,
12,
780,
8526,
81,
67,
5417,
4478,
273,
6091,
18,
588,
4678,
2668,
54,
2187,
2116,
1769,
702,
13,
81,
67,
5417,
4478,
273,
6091,
18,
588,
4678,
2668,
54,
2187,
2116,
1769,
1216,
81,
67,
5417,
4478,
273,
6091,
18,
588,
4678,
2668,
54,
2187,
2116,
1769,
1185,
81,
67,
5417,
4478,
273,
6091,
18,
588,
4678,
2668,
54,
2
] |
|
{ if (! child.getInlineOnly() && ! child.isClassGenerated())
|
{ if (child.isClassGenerated()) { if (child.min_args != child.max_args || child.min_args > 4 || child.isHandlingTailCalls()) { child.argsArray = new Variable("argsArray", comp.objArrayType); } } else if (! child.getInlineOnly())
|
public void allocChildClasses (Compilation comp) { for (Declaration decl = firstDecl(); decl != null; ) { Variable var = decl.var; //if (decl.isParameter ()) { // i is the register to use for the current parameter if (decl.isSimple () && ! decl.isIndirectBinding()) { // For a simple parameter not captured by an inferior lambda, // just allocate it in the incoming register. var = decl.allocateVariable(null); //var.allocateLocal(code); } else if (min_args != max_args) { // The incoming value is an element in the argsArray variable // (or many elements in the case of a "rest" parameter). // We do not need to do anything here (but see below). } else { // This variable was captured by an inner lambda. // Its home location is in the heapFrame. // Later, we copy it from its incoming register // to its home location heapFrame. Here we just create and // assign a Variable for the incoming (register) value. String vname = (Compilation.mangleName(decl.getName())+"Incoming").intern(); var = decl.var = scope.addVariable(null, decl.getType(), vname); //scope.addVariableAfter(var, decl); var.setArtificial (true); var.setParameter (true); //var.allocateLocal(code); } } decl = decl.nextDecl(); } declareClosureEnv(); for (LambdaExp child = firstChild; child != null; child = child.nextSibling) { if (child.getInlineOnly()) continue; if (child.isClassGenerated()) // || heapFrameLambda == child // || child.min_args != child.max_args) { comp.allocClass(child); } } allocFrame(comp); if (getNeedsClosureEnv() && isClassGenerated()) { LambdaExp parent = outerLambda(); LambdaExp heapFrameLambda = parent.heapFrameLambda; if (! (parent instanceof ObjectExp) && heapFrameLambda != this) { if (heapFrameLambda != null) { ClassType heapFrameType = heapFrameLambda.getCompiledClassType(comp); closureEnvField = comp.curClass.addField ("closureEnv", heapFrameType); } else if (parent.getNeedsStaticLink()) { closureEnvField = comp.curClass.addField ("closureEnv", parent.closureEnv.getType()); } } } for (LambdaExp child = firstChild; child != null; child = child.nextSibling) { if (! child.getInlineOnly() && ! child.isClassGenerated()) { boolean method_static; ObjectType closureEnvType; if (! child.getNeedsClosureEnv()) closureEnvType = null; else { LambdaExp owner = this; while (owner.heapFrame == null) owner = owner.outerLambda(); closureEnvType = (ClassType) owner.heapFrame.getType(); } if (child.min_args != child.max_args) child.declareArgsArray(); // generate_unique_name (new_class, child.getName()); String child_name = child.getName(); StringBuffer nameBuf = new StringBuffer(60); if (! isModuleBody() || child_name == null) { nameBuf.append("lambda"); nameBuf.append(+(++comp.method_counter)); } if (child_name != null) nameBuf.append(comp.mangleName(child_name)); if (child.min_args != child.max_args) nameBuf.append("$V"); child.primMethod = child.addMethodFor(comp.curClass, nameBuf.toString(), closureEnvType); } } }
|
40769 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/40769/0a820848f7d64971115fbe74bb9bff5a16b4bbf9/LambdaExp.java/clean/gnu/expr/LambdaExp.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
4767,
1763,
4818,
261,
19184,
1161,
13,
225,
288,
565,
364,
261,
6094,
3496,
273,
1122,
3456,
5621,
225,
3496,
480,
446,
31,
225,
262,
1377,
288,
3639,
7110,
569,
273,
3496,
18,
1401,
31,
202,
759,
430,
261,
8840,
18,
291,
1662,
1832,
13,
202,
225,
288,
202,
565,
368,
277,
353,
326,
1744,
358,
999,
364,
326,
783,
1569,
202,
565,
309,
261,
8840,
18,
291,
5784,
1832,
597,
401,
3496,
18,
291,
24943,
5250,
10756,
202,
1377,
288,
202,
202,
759,
2457,
279,
4143,
1569,
486,
19550,
635,
392,
12455,
9659,
3195,
16,
202,
202,
759,
2537,
10101,
518,
316,
326,
6935,
1744,
18,
7734,
569,
273,
3496,
18,
16247,
3092,
12,
2011,
1769,
202,
202,
759,
1401,
18,
16247,
2042,
12,
710,
1769,
202,
1377,
289,
202,
565,
469,
309,
261,
1154,
67,
1968,
480,
943,
67,
1968,
13,
202,
1377,
288,
202,
202,
759,
1021,
6935,
460,
353,
392,
930,
316,
326,
833,
1076,
2190,
202,
202,
759,
261,
280,
4906,
2186,
316,
326,
648,
434,
279,
315,
8792,
6,
1569,
2934,
202,
202,
759,
1660,
741,
486,
1608,
358,
741,
6967,
2674,
261,
12885,
2621,
5712,
2934,
202,
1377,
289,
202,
565,
469,
202,
1377,
288,
202,
202,
759,
1220,
2190,
1703,
19550,
635,
392,
3443,
3195,
18,
202,
202,
759,
29517,
6382,
2117,
353,
316,
326,
10500,
3219,
18,
202,
202,
759,
511,
2045,
16,
732,
1610,
518,
628,
2097,
6935,
1744,
202,
202,
759,
358,
2097,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
4767,
1763,
4818,
261,
19184,
1161,
13,
225,
288,
565,
364,
261,
6094,
3496,
273,
1122,
3456,
5621,
225,
3496,
480,
446,
31,
225,
262,
1377,
288,
3639,
7110,
569,
273,
3496,
18,
1401,
31,
202,
759,
430,
261,
8840,
18,
291,
1662,
1832,
13,
202,
225,
288,
202,
565,
368,
277,
353,
326,
1744,
358,
999,
364,
326,
783,
1569,
202,
565,
309,
261,
8840,
18,
291,
5784,
1832,
597,
401,
3496,
18,
291,
24943,
5250,
10756,
202,
1377,
288,
202,
202,
759,
2457,
279,
4143,
1569,
486,
19550,
635,
392,
12455,
9659,
3195,
16,
202,
202,
759,
2537,
10101,
518,
316,
326,
6935,
1744,
18,
7734,
569,
273,
3496,
18,
16247,
3092,
12,
2011,
2
] |
fillsEmptyCellsForSlot( table.getSlot( TableItem.HEADER_SLOT ),
|
fillsEmptyCellsForSlot( table.getSlot( IListingElementModel.HEADER_SLOT ),
|
private void fillsEmptyCellsForTable( ) { int columnCount = layoutTable.getColumnCount( ); TableItem table = layoutTable.table; fillsEmptyCellsForSlot( table.getSlot( TableItem.HEADER_SLOT ), layoutTable.getHeader( ), columnCount ); ContainerSlot groups = table.getSlot( TableItem.GROUP_SLOT ); int groupCount = groups.getCount( ); for ( int i = 0; i < groupCount; i++ ) { TableGroup group = (TableGroup) groups.getContent( i ); fillsEmptyCellsForSlot( group.getSlot( TableGroup.HEADER_SLOT ), layoutTable.getGroupHeaders( ).getLayoutSlot( i ), columnCount ); } fillsEmptyCellsForSlot( table.getSlot( TableItem.DETAIL_SLOT ), layoutTable.getDetail( ), columnCount ); // the group level in the group is from 0 to groupCount - 1; // the group level in the layout slot band is from groupCount - 1 to 0. for ( int i = groupCount - 1; i >= 0; i-- ) { TableGroup group = (TableGroup) groups.getContent( groupCount - i - 1 ); fillsEmptyCellsForSlot( group.getSlot( TableGroup.FOOTER_SLOT ), layoutTable.getGroupFooters( ).getLayoutSlot( i ), columnCount ); } fillsEmptyCellsForSlot( table.getSlot( TableItem.FOOTER_SLOT ), layoutTable.getFooter( ), columnCount ); }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/d802c33711e0d111551ae23575895cd060f085b6/FillCellsStrategy.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/elements/table/FillCellsStrategy.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
21652,
1921,
10505,
1290,
1388,
12,
262,
202,
95,
202,
202,
474,
22429,
273,
3511,
1388,
18,
588,
1494,
1380,
12,
11272,
202,
202,
1388,
1180,
1014,
273,
3511,
1388,
18,
2121,
31,
202,
202,
5935,
87,
1921,
10505,
1290,
8764,
12,
1014,
18,
588,
8764,
12,
3555,
1180,
18,
7557,
67,
55,
1502,
56,
262,
16,
9506,
202,
6741,
1388,
18,
588,
1864,
12,
262,
16,
22429,
11272,
202,
202,
2170,
8764,
3252,
273,
1014,
18,
588,
8764,
12,
3555,
1180,
18,
8468,
67,
55,
1502,
56,
11272,
202,
202,
474,
1041,
1380,
273,
3252,
18,
588,
1380,
12,
11272,
202,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
1041,
1380,
31,
277,
9904,
262,
202,
202,
95,
1082,
202,
1388,
1114,
1041,
273,
261,
1388,
1114,
13,
3252,
18,
588,
1350,
12,
277,
11272,
1082,
202,
5935,
87,
1921,
10505,
1290,
8764,
12,
1041,
18,
588,
8764,
12,
3555,
1114,
18,
7557,
67,
55,
1502,
56,
262,
16,
6862,
202,
6741,
1388,
18,
588,
1114,
3121,
12,
262,
18,
588,
3744,
8764,
12,
277,
262,
16,
6862,
202,
2827,
1380,
11272,
202,
202,
97,
202,
202,
5935,
87,
1921,
10505,
1290,
8764,
12,
1014,
18,
588,
8764,
12,
3555,
1180,
18,
40,
19810,
67,
55,
1502,
56,
262,
16,
9506,
202,
6741,
1388,
18,
588,
6109,
12,
262,
16,
22429,
11272,
202,
202,
759,
326,
1041,
1801,
316,
326,
1041,
353,
628,
374,
358,
1041,
1380,
300,
404,
31,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
21652,
1921,
10505,
1290,
1388,
12,
262,
202,
95,
202,
202,
474,
22429,
273,
3511,
1388,
18,
588,
1494,
1380,
12,
11272,
202,
202,
1388,
1180,
1014,
273,
3511,
1388,
18,
2121,
31,
202,
202,
5935,
87,
1921,
10505,
1290,
8764,
12,
1014,
18,
588,
8764,
12,
3555,
1180,
18,
7557,
67,
55,
1502,
56,
262,
16,
9506,
202,
6741,
1388,
18,
588,
1864,
12,
262,
16,
22429,
11272,
202,
202,
2170,
8764,
3252,
273,
1014,
18,
588,
8764,
12,
3555,
1180,
18,
8468,
67,
55,
1502,
56,
11272,
202,
202,
474,
1041,
1380,
273,
3252,
18,
588,
1380,
12,
11272,
202,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
1041,
1380,
31,
2
] |
Thread spThread = new Thread( sp );
|
spThread = new Thread( sp );
|
public ATreeNode getSchemaTree( String fileName ) { sp = new SaxParser( fileName, this ); Thread spThread = new Thread( sp ); spThread.start( ); while( sp.isAlive() ) { try { synchronized ( this ) { wait( ); } } catch ( InterruptedException e ) { // TODO Auto-generated catch block e.printStackTrace( ); } } return root; }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/9f497d5ccf0aa90cd5e67436ac892197c583cd13/SchemaPopulationUtil.java/clean/data/org.eclipse.birt.report.data.oda.xml/src/org/eclipse/birt/report/data/oda/xml/util/ui/SchemaPopulationUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
432,
12513,
11088,
2471,
12,
514,
3968,
262,
202,
95,
202,
202,
1752,
273,
394,
348,
651,
2678,
12,
3968,
16,
333,
11272,
202,
202,
3830,
1694,
3830,
273,
394,
4884,
12,
1694,
11272,
202,
202,
1752,
3830,
18,
1937,
12,
11272,
202,
202,
17523,
12,
1694,
18,
291,
10608,
1435,
262,
202,
202,
95,
1082,
202,
698,
1082,
202,
95,
9506,
202,
22043,
261,
333,
262,
9506,
202,
95,
6862,
202,
7048,
12,
11272,
9506,
202,
97,
1082,
202,
97,
1082,
202,
14683,
261,
7558,
425,
262,
1082,
202,
95,
9506,
202,
759,
2660,
8064,
17,
11168,
1044,
1203,
9506,
202,
73,
18,
1188,
6332,
12,
11272,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
1365,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
432,
12513,
11088,
2471,
12,
514,
3968,
262,
202,
95,
202,
202,
1752,
273,
394,
348,
651,
2678,
12,
3968,
16,
333,
11272,
202,
202,
3830,
1694,
3830,
273,
394,
4884,
12,
1694,
11272,
202,
202,
1752,
3830,
18,
1937,
12,
11272,
202,
202,
17523,
12,
1694,
18,
291,
10608,
1435,
262,
202,
202,
95,
1082,
202,
698,
1082,
202,
95,
9506,
202,
22043,
261,
333,
262,
9506,
202,
95,
6862,
202,
7048,
12,
11272,
9506,
202,
97,
1082,
202,
97,
1082,
202,
14683,
261,
7558,
425,
262,
1082,
202,
95,
9506,
202,
759,
2660,
8064,
17,
11168,
1044,
1203,
9506,
202,
73,
18,
1188,
6332,
12,
11272,
1082,
202,
97,
202,
202,
97,
202,
202,
2
] |
myExpectation.setActual(1.0); AssertMo.assertVerifyFails(myExpectation); }
|
myExpectation.setActual(1.0); AssertMo.assertVerifyFails(myExpectation); }
|
public void testFailOnVerify() { myExpectation.setExpected(0.0, 0.0); myExpectation.setFailOnVerify(); myExpectation.setActual(1.0); AssertMo.assertVerifyFails(myExpectation); }
|
2796 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2796/065d08edd62599d5d244a9317db470157690f4f9/ExpectationDoubleValueTest.java/buggy/jmock/core/src/test/jmock/expectation/ExpectationDoubleValueTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3754,
1398,
8097,
1435,
288,
3639,
3399,
11988,
367,
18,
542,
6861,
12,
20,
18,
20,
16,
374,
18,
20,
1769,
3639,
3399,
11988,
367,
18,
542,
3754,
1398,
8097,
5621,
3639,
3399,
11988,
367,
18,
542,
11266,
12,
21,
18,
20,
1769,
3639,
5452,
16727,
18,
11231,
8097,
30800,
12,
4811,
11988,
367,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3754,
1398,
8097,
1435,
288,
3639,
3399,
11988,
367,
18,
542,
6861,
12,
20,
18,
20,
16,
374,
18,
20,
1769,
3639,
3399,
11988,
367,
18,
542,
3754,
1398,
8097,
5621,
3639,
3399,
11988,
367,
18,
542,
11266,
12,
21,
18,
20,
1769,
3639,
5452,
16727,
18,
11231,
8097,
30800,
12,
4811,
11988,
367,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
A_OpenCms.log(C_OPENCMS_DEBUG, this.getClassName()
|
A_OpenCms.log(C_OPENCMS_DEBUG, this.getClassName()
|
public byte[] getContent(CmsObject cms, String templateFile, String elementName, Hashtable parameters, String templateSelector) throws CmsException { if(C_DEBUG && A_OpenCms.isLogging()) { A_OpenCms.log(C_OPENCMS_DEBUG, this.getClassName() + "getting content of element " + ((elementName == null) ? "<root>" : elementName)); A_OpenCms.log(C_OPENCMS_DEBUG, this.getClassName() + "template file is: " + templateFile); A_OpenCms.log(C_OPENCMS_DEBUG, this.getClassName() + "selected template section is: " + ((templateSelector == null) ? "<default>" : templateSelector)); } I_CmsSession session = cms.getRequestContext().getSession(true); CmsRequestContext reqCont = cms.getRequestContext(); CmsXmlWpTemplateFile xmlTemplateDocument = new CmsXmlWpTemplateFile(cms, templateFile); boolean groupYetChanged = true; boolean groupYetEstablished = true; // find out which template (=perspective) should be used String perspective = (String)parameters.get("perspective"); if(perspective != null && perspective.equals("group")) { session.removeValue("ERROR"); if(reqCont.getRequest().getParameter("CHANGE") != null) { // change data of selected user perspective = "changegroup"; groupYetChanged = false; } else { if(parameters.get("DELETE") != null) { // delete the selected user perspective = "deletegroup"; } else { if(parameters.get("NEW") != null) { // establish new group perspective = "newgroup"; groupYetEstablished = false; } } } } if(perspective == null) { // display the first template, which lets you chose the action perspective = new String("group"); } if(perspective.equals("newgroup") || perspective.equals("changegroup")) { // first the common part of the two actions: // read the parameters like group name, description, ... String groupname, description, supergroup; boolean projectManager, projectCoWorker, role; if(session.getValue("ERROR") == null) { groupname = (String)parameters.get("GROUPNAME"); description = (String)parameters.get("GROUPDESC"); supergroup = (String)parameters.get("SUPERGROUP"); projectManager = (parameters.get("PROJECTMANAGER") != null); projectCoWorker = (parameters.get("PROJECTCOWORKER") != null); role = (parameters.get("ROLE") != null); } else { // an error has occurred before, retrieve the form data from the session groupname = (String)session.getValue("GROUPNAME"); description = (String)session.getValue("GROUPDESC"); supergroup = (String)session.getValue("SUPERGROUP"); projectManager = (session.getValue("PROJECTMANAGER") != null); projectCoWorker = (session.getValue("PROJECTCOWORKER") != null); role = (session.getValue("ROLE") != null); // remove the data from parameters parameters.remove("ADD"); parameters.remove("REMOVE"); parameters.remove("OK"); session.removeValue("ERROR"); } if(groupname == null) { groupname = ""; } if(description == null) { description = ""; } if(supergroup == null) { supergroup = ""; } session.putValue("SUPERGROUP", supergroup); // vectors of Strings that hold the selected and not selected Users Vector selectedUsers = (Vector)session.getValue("selectedUsers"); Vector notSelectedUsers = (Vector)session.getValue("notSelectedUsers"); if(perspective.equals("newgroup")) { // input is the form for establishing a new group templateSelector = "newgroup"; if(!groupYetEstablished) { // first time the form is visited groupname = ""; selectedUsers = new Vector(); notSelectedUsers = new Vector(); Vector users = cms.getUsers(); for(int z = 0;z < users.size();z++) { notSelectedUsers.addElement(((CmsUser)users.elementAt(z)).getName()); } session.putValue("selectedUsers", selectedUsers); session.putValue("notSelectedUsers", notSelectedUsers); } if(parameters.get("ADD") != null) { // add a new group to selectedGroups String username = (String)parameters.get("NOTSELECTEDUSERS"); if(username != null) { selectedUsers.addElement(username); notSelectedUsers.removeElement(username); } session.putValue("selectedUsers", selectedUsers); session.putValue("notSelectedUsers", notSelectedUsers); } else { if(parameters.get("REMOVE") != null) { // delete a new group from selectedGroups // and move it to notSelectedGroups String username = (String)parameters.get("SELECTEDUSERS"); if(username != null) { notSelectedUsers.addElement(username); selectedUsers.removeElement(username); } session.putValue("selectedUsers", selectedUsers); session.putValue("notSelectedUsers", notSelectedUsers); } else { if(parameters.get("OK") != null) { // form submitted, try to establish new group try { if(groupname == null || groupname.equals("")) { throw new CmsException("no groupname", CmsException.C_NO_GROUP); } if(C_NO_SUPERGROUP_SELECTED.equals(supergroup)) { supergroup = ""; // no supergroup } CmsGroup newGroup = cms.addGroup(groupname, description, 0, supergroup); newGroup.setProjectManager(projectManager); newGroup.setProjectCoWorker(projectCoWorker); newGroup.setRole(role); cms.writeGroup(newGroup); for(int z = 0;z < selectedUsers.size();z++) { cms.addUserToGroup((String)selectedUsers.elementAt(z), groupname); } session.removeValue("selectedUsers"); session.removeValue("notSelectedUsers"); session.removeValue("SUPERGROUP"); session.removeValue("PROJECTMANAGER"); session.removeValue("PROJECTCOWORKER"); session.removeValue("ROLE"); session.removeValue("ERROR"); templateSelector = ""; //successful } catch(CmsException e) { // save the form data in the session, so it can be displayed again later session.putValue("ERROR", new String("yes")); // remeber that an error has occurred session.putValue("GROUPNAME", groupname); session.putValue("GROUPDESC", description); session.putValue("SUPERGROUP", supergroup); if(projectManager) { session.putValue("PROJECTMANAGER", "yes"); } else { session.removeValue("PROJECTMANAGER"); } if(projectCoWorker) { session.putValue("PROJECTCOWORKER", "yes"); } else { session.removeValue("PROJECTCOWORKER"); } if(role) { session.putValue("ROLE", "yes"); } else { session.removeValue("ROLE"); } if(e.getType() == CmsException.C_NO_GROUP && e.getMessage().equals("no groupname")) { templateSelector = "errordatamissing1"; } else { throw e; // hand the exception down } } } } } } else { // input is the form for changing the group data templateSelector = "changegroup"; if(!groupYetChanged) { // form visited for the first time, not yet changed // read the data from the group object CmsGroup theGroup = (CmsGroup)cms.readGroup(groupname); if(theGroup == null) { throw new CmsException("user does not exist"); } projectManager = theGroup.getProjectmanager(); projectCoWorker = theGroup.getProjectCoWorker(); role = theGroup.getRole(); description = theGroup.getDescription(); CmsGroup parent = (CmsGroup)cms.getParent(groupname); if(parent != null) { supergroup = cms.getParent(groupname).getName(); } else { supergroup = ""; } Vector users = cms.getUsersOfGroup(groupname); if(users != null) { selectedUsers = new Vector(); for(int z = 0;z < users.size();z++) { selectedUsers.addElement(((CmsUser)users.elementAt(z)).getName()); } } users = cms.getUsers(); if(users != null) { notSelectedUsers = new Vector(); for(int z = 0;z < users.size();z++) { String name = ((CmsUser)users.elementAt(z)).getName(); if(!selectedUsers.contains(name)) { notSelectedUsers.addElement(name); } } } } else { if(parameters.get("ADD") != null) { // add a new user to selectedUsers String username = (String)parameters.get("NOTSELECTEDUSERS"); if(username != null) { selectedUsers.addElement(username); notSelectedUsers.removeElement(username); } } else { if(parameters.get("REMOVE") != null) { // delete a group from selectedUsers // and move it to notSelectedUsers String username = (String)parameters.get("SELECTEDUSERS"); if(username != null) { notSelectedUsers.addElement(username); selectedUsers.removeElement(username); } } else { if(parameters.get("OK") != null) { // form submitted, try to change the group data try { CmsGroup theGroup = (CmsGroup)cms.readGroup(groupname); if("".equals(supergroup) || supergroup.equals(C_NO_SUPERGROUP_SELECTED)) { cms.setParentGroup(groupname, null); } else { cms.setParentGroup(groupname, supergroup); } theGroup = (CmsGroup)cms.readGroup(groupname); theGroup.setDescription(description); theGroup.setProjectManager(projectManager); theGroup.setProjectCoWorker(projectCoWorker); theGroup.setRole(role); cms.writeGroup(theGroup); theGroup = (CmsGroup)cms.readGroup(groupname); // now change the list of users of this group but take into account that // the default group of a user can't be removed Vector allUsers = cms.getUsersOfGroup(groupname); boolean defaultProblem = false; Vector falseUsers = new Vector(); for(int z = 0;z < allUsers.size();z++) { String theUserName = ((CmsUser)allUsers.elementAt(z)).getName(); String theDefaultGroupName = ((CmsUser)allUsers.elementAt(z)).getDefaultGroup().getName(); if(!selectedUsers.contains(theUserName)) { // the user should be deleted if(theDefaultGroupName.equals(groupname)) { defaultProblem = true; falseUsers.addElement(theUserName); } else { cms.removeUserFromGroup(theUserName, groupname); } } } for(int z = 0;z < selectedUsers.size();z++) { cms.addUserToGroup((String)selectedUsers.elementAt(z), groupname); } cms.writeGroup(theGroup); session.removeValue("selectedUsers"); session.removeValue("notSelectedUsers"); session.removeValue("PROJECTMANAGER"); session.removeValue("PROJECTCOWORKER"); session.removeValue("ROLE"); session.removeValue("ERROR"); if(defaultProblem) { xmlTemplateDocument.setData("RMDEFAULTDETAIL", "The following users which were to be removed had " + groupname + " as default group: " + falseUsers); templateSelector = "errorremovedefault"; } else { templateSelector = ""; //successful } } catch(CmsException e) { // remeber that an error has occurred session.putValue("ERROR", new String("yes")); session.putValue("GROUPDESC", description); session.putValue("SUPERGROUP", supergroup); if(e.getType() == CmsException.C_NO_GROUP) { templateSelector = "errornogroup2"; } else { if(e.getType() == CmsException.C_NO_USER && e.getMessage().equals("user data missing")) { templateSelector = "errordatamissing2"; } else { throw e; // hand the exception down } } } // catch } // else if 'OK' } } } // groupYetChanged session.putValue("selectedUsers", selectedUsers); session.putValue("notSelectedUsers", notSelectedUsers); session.putValue("SUPERGROUP", supergroup); } // again common part for 'newgroup' and 'changegroup': // set the variables for display in the document if(groupname == null) { groupname = ""; } if(description == null) { description = ""; } if(supergroup == null) { supergroup = ""; } xmlTemplateDocument.setData("GROUPNAME", groupname); xmlTemplateDocument.setData("GROUPDESC", description); xmlTemplateDocument.setData("SUPERGROUP", supergroup); xmlTemplateDocument.setData("PCWCHECKED", projectCoWorker ? "checked" : ""); xmlTemplateDocument.setData("PMCHECKED", projectManager ? "checked" : ""); xmlTemplateDocument.setData("PRCHECKED", role ? "checked" : ""); } // belongs to: 'if perspective is newgroup or changegroup' else { if(perspective.equals("deletegroup")) { String groupname = (String)parameters.get("GROUPNAME"); xmlTemplateDocument.setData("GROUPNAME", groupname); templateSelector = "RUsureDelete"; } else { if(perspective.equals("reallydeletegroup")) { // deleting the group try { String groupname = (String)parameters.get("GROUPNAME"); cms.deleteGroup(groupname); templateSelector = ""; } catch(Exception e) { // groupname == null or delete failed xmlTemplateDocument.setData("DELETEDETAILS", Utils.getStackTrace(e)); templateSelector = "deleteerror"; } } } } // Now load the template file and start the processing return startProcessing(cms, xmlTemplateDocument, elementName, parameters, templateSelector); }
|
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/eb7ba1273cd67d33051224f25be4b3f91918c715/CmsAdminGroups.java/buggy/src/com/opencms/workplace/CmsAdminGroups.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1160,
8526,
5154,
12,
4747,
921,
6166,
16,
514,
28215,
16,
514,
14453,
16,
2398,
18559,
1472,
16,
514,
1542,
4320,
13,
1216,
11228,
288,
3639,
309,
12,
39,
67,
9394,
597,
432,
67,
3678,
4747,
18,
291,
7735,
10756,
288,
5411,
432,
67,
3678,
4747,
18,
1330,
12,
39,
67,
11437,
13802,
67,
9394,
16,
333,
18,
588,
3834,
1435,
5397,
397,
315,
588,
1787,
913,
434,
930,
315,
397,
14015,
2956,
461,
422,
446,
13,
692,
3532,
3085,
2984,
294,
14453,
10019,
5411,
432,
67,
3678,
4747,
18,
1330,
12,
39,
67,
11437,
13802,
67,
9394,
16,
333,
18,
588,
3834,
1435,
5397,
397,
315,
3202,
585,
353,
30,
315,
397,
28215,
1769,
5411,
432,
67,
3678,
4747,
18,
1330,
12,
39,
67,
11437,
13802,
67,
9394,
16,
333,
18,
588,
3834,
1435,
5397,
397,
315,
8109,
1542,
2442,
353,
30,
315,
397,
14015,
3202,
4320,
422,
446,
13,
692,
3532,
1886,
2984,
294,
1542,
4320,
10019,
3639,
289,
3639,
467,
67,
4747,
2157,
1339,
273,
6166,
18,
588,
21426,
7675,
588,
2157,
12,
3767,
1769,
3639,
2149,
21426,
1111,
660,
273,
6166,
18,
588,
21426,
5621,
3639,
16084,
59,
84,
2283,
812,
2025,
2283,
2519,
273,
394,
16084,
59,
84,
2283,
812,
12,
6851,
16,
28215,
1769,
3639,
1250,
1041,
61,
278,
5033,
273,
638,
31,
3639,
1250,
1041,
61,
278,
9122,
9237,
5992,
273,
638,
31,
7734,
368,
1104,
596,
1492,
1542,
261,
33,
10422,
16772,
13,
1410,
506,
1399,
3639,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1160,
8526,
5154,
12,
4747,
921,
6166,
16,
514,
28215,
16,
514,
14453,
16,
2398,
18559,
1472,
16,
514,
1542,
4320,
13,
1216,
11228,
288,
3639,
309,
12,
39,
67,
9394,
597,
432,
67,
3678,
4747,
18,
291,
7735,
10756,
288,
5411,
432,
67,
3678,
4747,
18,
1330,
12,
39,
67,
11437,
13802,
67,
9394,
16,
333,
18,
588,
3834,
1435,
5397,
397,
315,
588,
1787,
913,
434,
930,
315,
397,
14015,
2956,
461,
422,
446,
13,
692,
3532,
3085,
2984,
294,
14453,
10019,
5411,
432,
67,
3678,
4747,
18,
1330,
12,
39,
67,
11437,
13802,
67,
9394,
16,
333,
18,
588,
3834,
1435,
5397,
397,
315,
3202,
585,
353,
30,
315,
397,
28215,
1769,
5411,
432,
2
] |
if(monitor.isCanceled()) return Status.CANCEL_STATUS; animationProcessor.animationStarted();
|
if (animated) animationProcessor.animationStarted(); else animationProcessor.animationFinished();
|
AnimationManager() { animationProcessor = new ProgressAnimationProcessor(this); listener = getProgressListener(); ProgressManager.getInstance().addListener(listener); animationStartJob = new WorkbenchJob(ProgressMessages .getString("AnimationManager.AnimationStart")) {//$NON-NLS-1$ /* * (non-Javadoc) * * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus runInUIThread(IProgressMonitor monitor) { if(monitor.isCanceled()) return Status.CANCEL_STATUS; animationProcessor.animationStarted(); return Status.OK_STATUS; } }; animationStartJob.setSystem(true); animationDoneJob = new WorkbenchJob(ProgressMessages.getString("AnimationManager.DoneJobName")) { //$NON-NLS-1$ /* * (non-Javadoc) * * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus runInUIThread(IProgressMonitor monitor) { if(monitor.isCanceled()) return Status.CANCEL_STATUS; animationProcessor.animationFinished(); return Status.OK_STATUS; } }; animationDoneJob.setSystem(true); }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/c0920b0b257a92d516b831620094f80104591915/AnimationManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/AnimationManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
10816,
1318,
1435,
288,
202,
202,
30822,
5164,
273,
394,
10980,
10816,
5164,
12,
2211,
1769,
202,
202,
12757,
273,
3570,
2329,
2223,
5621,
202,
202,
5491,
1318,
18,
588,
1442,
7675,
1289,
2223,
12,
12757,
1769,
9506,
202,
30822,
1685,
2278,
273,
394,
4147,
22144,
2278,
12,
5491,
5058,
9506,
202,
18,
588,
780,
2932,
10816,
1318,
18,
10816,
1685,
6,
3719,
288,
759,
8,
3993,
17,
5106,
17,
21,
8,
1082,
202,
20308,
9506,
380,
261,
5836,
17,
24060,
13,
9506,
380,
4697,
380,
632,
5946,
2358,
18,
20416,
18,
4881,
18,
8298,
18,
5370,
2278,
7,
2681,
382,
57,
1285,
76,
896,
12,
3341,
18,
20416,
18,
3644,
18,
9448,
18,
45,
5491,
7187,
13,
9506,
1195,
1082,
202,
482,
467,
1482,
1086,
382,
57,
1285,
76,
896,
12,
45,
5491,
7187,
6438,
13,
288,
9506,
202,
430,
12,
10259,
18,
291,
23163,
10756,
6862,
202,
2463,
2685,
18,
25268,
67,
8608,
31,
9506,
202,
30822,
5164,
18,
30822,
9217,
5621,
9506,
202,
2463,
2685,
18,
3141,
67,
8608,
31,
1082,
202,
97,
202,
202,
20451,
202,
202,
30822,
1685,
2278,
18,
542,
3163,
12,
3767,
1769,
9506,
202,
30822,
7387,
2278,
273,
394,
4147,
22144,
2278,
12,
5491,
5058,
18,
588,
780,
2932,
10816,
1318,
18,
7387,
29425,
6,
3719,
288,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
20308,
9506,
380,
261,
5836,
17,
24060,
13,
9506,
380,
4697,
380,
632,
5946,
2358,
18,
20416,
18,
4881,
18,
8298,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
10816,
1318,
1435,
288,
202,
202,
30822,
5164,
273,
394,
10980,
10816,
5164,
12,
2211,
1769,
202,
202,
12757,
273,
3570,
2329,
2223,
5621,
202,
202,
5491,
1318,
18,
588,
1442,
7675,
1289,
2223,
12,
12757,
1769,
9506,
202,
30822,
1685,
2278,
273,
394,
4147,
22144,
2278,
12,
5491,
5058,
9506,
202,
18,
588,
780,
2932,
10816,
1318,
18,
10816,
1685,
6,
3719,
288,
759,
8,
3993,
17,
5106,
17,
21,
8,
1082,
202,
20308,
9506,
380,
261,
5836,
17,
24060,
13,
9506,
380,
4697,
380,
632,
5946,
2358,
18,
20416,
18,
4881,
18,
8298,
18,
5370,
2278,
7,
2681,
382,
57,
1285,
76,
896,
12,
3341,
18,
20416,
18,
3644,
18,
9448,
18,
45,
5491,
7187,
2
] |
+ StringUtils.getDate()
|
+ StringUtil.getDate()
|
private void writeInfo(PrintStream out, boolean withName) { String host = Platform.getHostInfo(); if (withName) out.print("<tr><th align=\"left\">Name:</th><td>" + m_name + "</td></tr>\n" + "<tr><th align=\"left\">Version:</th><td>" + m_version + "</td></tr>\n"); out.print("<tr><th align=\"left\">Date:</th><td>" + StringUtils.getDate() + "</td></tr>\n" + "<tr><th align=\"left\">Host:</th><td>" + host + "</td></tr>\n" + "<tr><th align=\"left\" valign=\"top\">Command:</th>\n" + "<td valign=\"top\"><tt>" + m_program + "</tt></td></tr>\n"); }
|
2255 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2255/1f50ffb219183ddaf94720a4aba453e11f412425/GtpRegress.java/buggy/src/net/sf/gogui/gtpregress/GtpRegress.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1045,
966,
12,
5108,
1228,
596,
16,
1250,
598,
461,
13,
565,
288,
3639,
514,
1479,
273,
11810,
18,
588,
2594,
966,
5621,
3639,
309,
261,
1918,
461,
13,
5411,
596,
18,
1188,
2932,
32,
313,
4438,
451,
5689,
5189,
4482,
24735,
461,
19814,
451,
4438,
4465,
2984,
397,
312,
67,
529,
8227,
397,
6823,
4465,
4695,
313,
5333,
82,
6,
397,
8227,
3532,
313,
4438,
451,
5689,
5189,
4482,
24735,
1444,
19814,
451,
4438,
4465,
2984,
397,
312,
67,
1589,
8227,
397,
6823,
4465,
4695,
313,
5333,
82,
8863,
3639,
596,
18,
1188,
2932,
32,
313,
4438,
451,
5689,
5189,
4482,
24735,
1626,
19814,
451,
4438,
4465,
2984,
5375,
397,
14205,
18,
588,
1626,
1435,
5375,
397,
6823,
4465,
4695,
313,
5333,
82,
6,
397,
5375,
3532,
313,
4438,
451,
5689,
5189,
4482,
24735,
2594,
19814,
451,
4438,
4465,
2984,
397,
1479,
5375,
397,
6823,
4465,
4695,
313,
5333,
82,
6,
397,
5375,
3532,
313,
4438,
451,
5689,
5189,
4482,
2412,
1244,
724,
5189,
3669,
24735,
2189,
19814,
451,
5333,
82,
6,
397,
5375,
3532,
4465,
1244,
724,
5189,
3669,
2412,
4438,
748,
2984,
397,
312,
67,
12890,
5375,
397,
6823,
748,
4695,
4465,
4695,
313,
5333,
82,
8863,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1045,
966,
12,
5108,
1228,
596,
16,
1250,
598,
461,
13,
565,
288,
3639,
514,
1479,
273,
11810,
18,
588,
2594,
966,
5621,
3639,
309,
261,
1918,
461,
13,
5411,
596,
18,
1188,
2932,
32,
313,
4438,
451,
5689,
5189,
4482,
24735,
461,
19814,
451,
4438,
4465,
2984,
397,
312,
67,
529,
8227,
397,
6823,
4465,
4695,
313,
5333,
82,
6,
397,
8227,
3532,
313,
4438,
451,
5689,
5189,
4482,
24735,
1444,
19814,
451,
4438,
4465,
2984,
397,
312,
67,
1589,
8227,
397,
6823,
4465,
4695,
313,
5333,
82,
8863,
3639,
596,
18,
1188,
2932,
32,
313,
4438,
451,
5689,
5189,
4482,
24735,
1626,
19814,
451,
4438,
4465,
2984,
5375,
397,
14205,
18,
588,
1626,
1435,
2
] |
String name = f.argNames[slot]; Object val = activation.get(name, activation);
|
String name = state.fnOrScript.argNames[slot]; Scriptable scope = state.scope; Object val = scope.get(name, scope);
|
private static Object activationGet(NativeFunction f, Scriptable activation, int slot) { String name = f.argNames[slot]; Object val = activation.get(name, activation); // Activation parameter or var is permanent if (val == Scriptable.NOT_FOUND) Kit.codeBug(); return val; }
|
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/199b043221701f9744538a048390c041bd370c5f/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1033,
10027,
967,
12,
9220,
2083,
284,
16,
4766,
3639,
22780,
10027,
16,
509,
4694,
13,
565,
288,
3639,
514,
508,
273,
284,
18,
3175,
1557,
63,
14194,
15533,
3639,
1033,
1244,
273,
10027,
18,
588,
12,
529,
16,
10027,
1769,
565,
368,
26015,
1569,
578,
569,
353,
16866,
3639,
309,
261,
1125,
422,
22780,
18,
4400,
67,
9294,
13,
1475,
305,
18,
710,
19865,
5621,
3639,
327,
1244,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1033,
10027,
967,
12,
9220,
2083,
284,
16,
4766,
3639,
22780,
10027,
16,
509,
4694,
13,
565,
288,
3639,
514,
508,
273,
284,
18,
3175,
1557,
63,
14194,
15533,
3639,
1033,
1244,
273,
10027,
18,
588,
12,
529,
16,
10027,
1769,
565,
368,
26015,
1569,
578,
569,
353,
16866,
3639,
309,
261,
1125,
422,
22780,
18,
4400,
67,
9294,
13,
1475,
305,
18,
710,
19865,
5621,
3639,
327,
1244,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public DataBounds(double minx, double miny, double maxx, double maxy) { add(minx, miny); add(maxx, maxy); }
|
public DataBounds() {}
|
public DataBounds(double minx, double miny, double maxx, double maxy) { add(minx, miny); add(maxx, maxy); }
|
3071 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3071/ee4565cba21e0d222d6b08935541e9c8cddd56b4/DataBounds.java/buggy/src/openmap/com/bbn/openmap/util/DataBounds.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1910,
5694,
12,
9056,
31407,
16,
1645,
1131,
93,
16,
1645,
943,
92,
16,
1645,
943,
93,
13,
288,
3639,
527,
12,
1154,
92,
16,
1131,
93,
1769,
3639,
527,
12,
1896,
92,
16,
943,
93,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1910,
5694,
12,
9056,
31407,
16,
1645,
1131,
93,
16,
1645,
943,
92,
16,
1645,
943,
93,
13,
288,
3639,
527,
12,
1154,
92,
16,
1131,
93,
1769,
3639,
527,
12,
1896,
92,
16,
943,
93,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
String[] a = debugGui.main.functionNames();
|
String[] a = debugGui.dim.functionNames();
|
FindFunction(DebugGui debugGui, String title, String labelText) { super(debugGui, title, true); this.debugGui = debugGui; cancelButton = new JButton("Cancel"); setButton = new JButton("Select"); cancelButton.addActionListener(this); setButton.addActionListener(this); getRootPane().setDefaultButton(setButton); list = new JList(new DefaultListModel()); DefaultListModel model = (DefaultListModel)list.getModel(); model.clear(); String[] a = debugGui.main.functionNames(); java.util.Arrays.sort(a); for (int i = 0; i < a.length; i++) { model.addElement(a[i]); } list.setSelectedIndex(0); setButton.setEnabled(a.length > 0); list.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION); list.addMouseListener(new MouseHandler()); JScrollPane listScroller = new JScrollPane(list); listScroller.setPreferredSize(new Dimension(320, 240)); listScroller.setMinimumSize(new Dimension(250, 80)); listScroller.setAlignmentX(LEFT_ALIGNMENT); //Create a container so that we can add a title around //the scroll pane. Can't add a title directly to the //scroll pane because its background would be white. //Lay out the label and scroll pane from top to button. JPanel listPane = new JPanel(); listPane.setLayout(new BoxLayout(listPane, BoxLayout.Y_AXIS)); JLabel label = new JLabel(labelText); label.setLabelFor (list); listPane.add(label); listPane.add(Box.createRigidArea(new Dimension(0,5))); listPane.add(listScroller); listPane.setBorder(BorderFactory.createEmptyBorder(10,10,10,10)); //Lay out the buttons from left to right. JPanel buttonPane = new JPanel(); buttonPane.setLayout(new BoxLayout(buttonPane, BoxLayout.X_AXIS)); buttonPane.setBorder(BorderFactory.createEmptyBorder(0, 10, 10, 10)); buttonPane.add(Box.createHorizontalGlue()); buttonPane.add(cancelButton); buttonPane.add(Box.createRigidArea(new Dimension(10, 0))); buttonPane.add(setButton); //Put everything together, using the content pane's BorderLayout. Container contentPane = getContentPane(); contentPane.add(listPane, BorderLayout.CENTER); contentPane.add(buttonPane, BorderLayout.SOUTH); pack(); addKeyListener(new KeyAdapter() { public void keyPressed(KeyEvent ke) { int code = ke.getKeyCode(); if (code == KeyEvent.VK_ESCAPE) { ke.consume(); value = null; setVisible(false); } } }); }
|
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/402fd02406157693f66b2c8e6819e17c0b5b3e8a/DebugGui.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/DebugGui.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4163,
2083,
12,
2829,
18070,
1198,
18070,
16,
514,
2077,
16,
514,
1433,
1528,
13,
565,
288,
3639,
2240,
12,
4148,
18070,
16,
2077,
16,
638,
1769,
3639,
333,
18,
4148,
18070,
273,
1198,
18070,
31,
3639,
3755,
3616,
273,
394,
28804,
2932,
6691,
8863,
3639,
444,
3616,
273,
394,
28804,
2932,
3391,
8863,
3639,
3755,
3616,
18,
1289,
1803,
2223,
12,
2211,
1769,
3639,
444,
3616,
18,
1289,
1803,
2223,
12,
2211,
1769,
3639,
7656,
8485,
7675,
542,
1868,
3616,
12,
542,
3616,
1769,
3639,
666,
273,
394,
804,
682,
12,
2704,
2989,
682,
1488,
10663,
3639,
2989,
682,
1488,
938,
273,
261,
1868,
682,
1488,
13,
1098,
18,
588,
1488,
5621,
3639,
938,
18,
8507,
5621,
3639,
514,
8526,
279,
273,
1198,
18070,
18,
3509,
18,
915,
1557,
5621,
3639,
2252,
18,
1367,
18,
12726,
18,
3804,
12,
69,
1769,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
279,
18,
2469,
31,
277,
27245,
288,
5411,
938,
18,
1289,
1046,
12,
69,
63,
77,
19226,
3639,
289,
3639,
666,
18,
542,
7416,
1016,
12,
20,
1769,
3639,
444,
3616,
18,
542,
1526,
12,
69,
18,
2469,
405,
374,
1769,
3639,
666,
18,
542,
6233,
2309,
12,
682,
6233,
1488,
18,
20184,
67,
16435,
67,
1090,
15445,
1769,
3639,
666,
18,
1289,
9186,
2223,
12,
2704,
17013,
1503,
10663,
3639,
804,
26360,
666,
1541,
1539,
273,
394,
804,
26360,
12,
1098,
1769,
3639,
666,
1541,
1539,
18,
542,
16028,
1225,
12,
2704,
13037,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4163,
2083,
12,
2829,
18070,
1198,
18070,
16,
514,
2077,
16,
514,
1433,
1528,
13,
565,
288,
3639,
2240,
12,
4148,
18070,
16,
2077,
16,
638,
1769,
3639,
333,
18,
4148,
18070,
273,
1198,
18070,
31,
3639,
3755,
3616,
273,
394,
28804,
2932,
6691,
8863,
3639,
444,
3616,
273,
394,
28804,
2932,
3391,
8863,
3639,
3755,
3616,
18,
1289,
1803,
2223,
12,
2211,
1769,
3639,
444,
3616,
18,
1289,
1803,
2223,
12,
2211,
1769,
3639,
7656,
8485,
7675,
542,
1868,
3616,
12,
542,
3616,
1769,
3639,
666,
273,
394,
804,
682,
12,
2704,
2989,
682,
1488,
10663,
3639,
2989,
682,
1488,
938,
273,
261,
1868,
682,
1488,
13,
1098,
18,
588,
1488,
5621,
3639,
938,
18,
8507,
5621,
2
] |
nodesList[next] = child;
|
nodesList[next] = child;
|
public void insertNode(Child child) { boolean updateParent = true; // first assign a subtype to the element and add it to the // m_elemTypes table. int type = addToTable(child); int uid = child.getUid(); int level = child.getLevel(); // Nothing there yet if (m_levelArray[level]== null) { Object[] nodesList = new Object[m_defaultSize]; m_levelArray[level] = nodesList; nodesList[0] = child; ((IndexedElem)child.getParentNode()).setIndex(0); } // Add to the existing list else { Object[] nodesList = (Object[])m_levelArray[level]; int structIndex = 0; while (structIndex < nodesList.length && (nodesList[structIndex]!= null) ) { structIndex++; } int lastUsed = structIndex-1; // TODO: cleanup // Need to reallocate?? 2 is the max slots we could // need to add plus 1 to indicate end... if (nodesList.length < lastUsed + 3) { nodesList = allocateNewList(nodesList); m_levelArray[level] = nodesList; } structIndex = 0; while (structIndex < nodesList.length && (nodesList[structIndex]!= null)) { int next = structIndex + 1; Child node = (Child)nodesList[structIndex]; if(child.getParentNode().equals(node.getParentNode())) { // There is already at least one node with this parent at this level // This parent already has a pointer to its children. updateParent = false; if(getType(node) == type) { // This parent already has children of this type. // Add this child to the end of the list for this type. if (nodesList[next] != null) { // Slide down one int i; for (i = lastUsed; i >= next; i--) { if (getType((Child)nodesList[i]) != type) nodesList[i+1] = nodesList[i]; } nodesList[i] = child; } else { nodesList[next] = child; } break; } structIndex = structIndex + 1; } // Keep looking for this parent and this type else { structIndex = structIndex + 1; } }// end while // First node for this parent of this type at this level if (nodesList[structIndex] == null) { nodesList[structIndex] = child; if (updateParent) ((IndexedElem)child.getParentNode()).setIndex(structIndex); } } //end else add to existing list }
|
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/0e2298c0c460e281c6e54e92ac95421ec5eca2e4/LevelIndexer.java/buggy/src/org/apache/xalan/stree/LevelIndexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2243,
907,
12,
1763,
1151,
13,
225,
288,
565,
1250,
1089,
3054,
273,
638,
31,
565,
368,
1122,
2683,
279,
12308,
358,
326,
930,
471,
527,
518,
358,
326,
565,
368,
312,
67,
10037,
2016,
1014,
18,
565,
509,
618,
273,
9604,
1388,
12,
3624,
1769,
202,
225,
509,
4555,
273,
1151,
18,
588,
11994,
5621,
565,
509,
1801,
273,
1151,
18,
588,
2355,
5621,
8227,
368,
13389,
1915,
4671,
565,
309,
261,
81,
67,
2815,
1076,
63,
2815,
65,
631,
446,
13,
565,
288,
1377,
1033,
8526,
2199,
682,
273,
394,
1033,
63,
81,
67,
1886,
1225,
15533,
1377,
312,
67,
2815,
1076,
63,
2815,
65,
273,
2199,
682,
31,
1377,
2199,
682,
63,
20,
65,
273,
1151,
31,
1377,
14015,
15034,
7498,
13,
3624,
18,
588,
3054,
907,
1435,
2934,
542,
1016,
12,
20,
1769,
202,
565,
289,
565,
368,
1436,
358,
326,
2062,
666,
565,
469,
565,
288,
1377,
1033,
8526,
2199,
682,
273,
261,
921,
63,
5717,
81,
67,
2815,
1076,
63,
2815,
15533,
202,
565,
509,
1958,
1016,
273,
374,
31,
1377,
1323,
261,
1697,
1016,
411,
2199,
682,
18,
2469,
2398,
597,
261,
4690,
682,
63,
1697,
1016,
65,
5,
33,
446,
13,
262,
1377,
288,
3639,
1958,
1016,
9904,
31,
3196,
565,
289,
1082,
565,
509,
1142,
6668,
273,
1958,
1016,
17,
21,
31,
1377,
368,
2660,
30,
6686,
1377,
368,
12324,
358,
2863,
25450,
14646,
576,
353,
326,
943,
12169,
732,
3377,
1377,
368,
1608,
358,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2243,
907,
12,
1763,
1151,
13,
225,
288,
565,
1250,
1089,
3054,
273,
638,
31,
565,
368,
1122,
2683,
279,
12308,
358,
326,
930,
471,
527,
518,
358,
326,
565,
368,
312,
67,
10037,
2016,
1014,
18,
565,
509,
618,
273,
9604,
1388,
12,
3624,
1769,
202,
225,
509,
4555,
273,
1151,
18,
588,
11994,
5621,
565,
509,
1801,
273,
1151,
18,
588,
2355,
5621,
8227,
368,
13389,
1915,
4671,
565,
309,
261,
81,
67,
2815,
1076,
63,
2815,
65,
631,
446,
13,
565,
288,
1377,
1033,
8526,
2199,
682,
273,
394,
1033,
63,
81,
67,
1886,
1225,
15533,
1377,
312,
67,
2815,
1076,
63,
2815,
65,
273,
2199,
682,
31,
1377,
2199,
682,
63,
20,
2
] |
if (((RouterInfo)ds).isHidden() ||
|
RouterInfo ri = (RouterInfo)ds; if (!FloodfillNetworkDatabaseFacade.isFloodfill(ri)) _floodfillPeersExhausted = true; if (ri.isHidden() ||
|
protected void continueSearch() { if (_state.completed()) { if (_log.shouldLog(Log.DEBUG)) _log.debug(getJobId() + ": Search already completed", new Exception("already completed")); return; } int toCheck = getBredth() - _state.getPending().size(); if (toCheck <= 0) { // too many already pending if (_log.shouldLog(Log.INFO)) _log.info(getJobId() + ": Too many searches already pending (pending: " + _state.getPending().size() + " max: " + getBredth() + ")"); requeuePending(); return; } int sent = 0; Set attempted = _state.getAttempted(); while (sent <= 0) { List closestHashes = getClosestRouters(_state.getTarget(), toCheck, attempted); if ( (closestHashes == null) || (closestHashes.size() <= 0) ) { if (_state.getPending().size() <= 0) { // we tried to find some peers, but there weren't any and no one else is going to answer if (_log.shouldLog(Log.INFO)) _log.info(getJobId() + ": No peers left, and none pending! Already searched: " + _state.getAttempted().size() + " failed: " + _state.getFailed().size()); fail(); } else { // no more to try, but we might get data or close peers from some outstanding requests if (_log.shouldLog(Log.INFO)) _log.info(getJobId() + ": No peers left, but some are pending! Pending: " + _state.getPending().size() + " attempted: " + _state.getAttempted().size() + " failed: " + _state.getFailed().size()); requeuePending(); } return; } else { attempted.addAll(closestHashes); for (Iterator iter = closestHashes.iterator(); iter.hasNext(); ) { Hash peer = (Hash)iter.next(); DataStructure ds = _facade.getDataStore().get(peer); if (ds == null) { if (_log.shouldLog(Log.INFO)) _log.info("Next closest peer " + peer + " was only recently referred to us, sending a search for them"); getContext().netDb().lookupRouterInfo(peer, null, null, _timeoutMs); } else if (!(ds instanceof RouterInfo)) { if (_log.shouldLog(Log.WARN)) _log.warn(getJobId() + ": Error selecting closest hash that wasnt a router! " + peer + " : " + (ds == null ? "null" : ds.getClass().getName())); _state.replyTimeout(peer); } else { if (((RouterInfo)ds).isHidden() || getContext().shitlist().isShitlisted(peer)) { // dont bother } else { _state.addPending(peer); sendSearch((RouterInfo)ds); sent++; } } } /* if (sent <= 0) { // the (potentially) last peers being searched for could not be, // er, searched for, so lets retry ASAP (causing either another // peer to be selected, or the whole search to fail) if (_log.shouldLog(Log.INFO)) _log.info(getJobId() + ": No new peer queued up, so we are going to requeue " + "ourselves in our search for " + _state.getTarget().toBase64()); requeuePending(0); } */ } } }
|
3808 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3808/deb35f4af44e395f5c9fbd2bc85559092d360018/SearchJob.java/clean/router/java/src/net/i2p/router/networkdb/kademlia/SearchJob.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1324,
2979,
1435,
288,
540,
309,
261,
67,
2019,
18,
13615,
10756,
288,
5411,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
9394,
3719,
7734,
389,
1330,
18,
4148,
12,
588,
23378,
1435,
397,
6398,
5167,
1818,
5951,
3113,
394,
1185,
2932,
17583,
5951,
7923,
1769,
5411,
327,
31,
3639,
289,
3639,
509,
358,
1564,
273,
2882,
1118,
451,
1435,
300,
389,
2019,
18,
588,
8579,
7675,
1467,
5621,
3639,
309,
261,
869,
1564,
1648,
374,
13,
288,
5411,
368,
4885,
4906,
1818,
4634,
5411,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
5923,
3719,
7734,
389,
1330,
18,
1376,
12,
588,
23378,
1435,
397,
6398,
15869,
4906,
16662,
1818,
4634,
261,
9561,
30,
315,
21821,
397,
389,
2019,
18,
588,
8579,
7675,
1467,
1435,
397,
315,
943,
30,
315,
397,
2882,
1118,
451,
1435,
397,
7310,
1769,
5411,
1111,
1455,
8579,
5621,
5411,
327,
31,
3639,
289,
540,
509,
3271,
273,
374,
31,
3639,
1000,
18121,
273,
389,
2019,
18,
588,
28788,
5621,
3639,
1323,
261,
7569,
1648,
374,
13,
288,
5411,
987,
9219,
14455,
273,
1927,
383,
7781,
4583,
414,
24899,
2019,
18,
588,
2326,
9334,
358,
1564,
16,
18121,
1769,
5411,
309,
261,
261,
7550,
7781,
14455,
422,
446,
13,
747,
261,
7550,
7781,
14455,
18,
1467,
1435,
1648,
374,
13,
262,
288,
7734,
309,
261,
67,
2019,
18,
588,
8579,
7675,
1467,
1435,
1648,
374,
13,
288,
10792,
368,
732,
12928,
358,
1104,
2690,
10082,
16,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1324,
2979,
1435,
288,
540,
309,
261,
67,
2019,
18,
13615,
10756,
288,
5411,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
9394,
3719,
7734,
389,
1330,
18,
4148,
12,
588,
23378,
1435,
397,
6398,
5167,
1818,
5951,
3113,
394,
1185,
2932,
17583,
5951,
7923,
1769,
5411,
327,
31,
3639,
289,
3639,
509,
358,
1564,
273,
2882,
1118,
451,
1435,
300,
389,
2019,
18,
588,
8579,
7675,
1467,
5621,
3639,
309,
261,
869,
1564,
1648,
374,
13,
288,
5411,
368,
4885,
4906,
1818,
4634,
5411,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
5923,
3719,
7734,
389,
1330,
18,
1376,
12,
588,
23378,
1435,
397,
6398,
15869,
4906,
16662,
1818,
4634,
261,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.