rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
listlengths 256
256
| attention_mask
listlengths 256
256
| labels
listlengths 128
128
|
|---|---|---|---|---|---|---|
idata = in.readInt(); long offsetNames = data + idata;
|
int nameData = in.readInt(); long offsetNames = pos + idata;
|
protected void initMetadata() { Hashtable ifd = ifds[0]; long data = 0; int idata = 0; double ddata = 0; //short sdata = 0; try { // -- Parse standard metadata -- // determine byte order boolean little = TiffTools.isLittleEndian(ifd); in.order(little); super.initMetadata(); // get Zeiss LSM-specific data // grab the TIF_CZ_LSMINFO structure, 512 bytes long short[] cz = TiffTools.getIFDShortArray(ifd, ZEISS_ID, true); int p = 0; // pointer to next byte in the structure put("MagicNumber", DataTools.bytesToLong(cz, p, 4, little)); p += 4; put("StructureSize", DataTools.bytesToInt(cz, p, little)); p += 4; put("DimensionX", DataTools.bytesToInt(cz, p, little)); p += 4; put("DimensionY", DataTools.bytesToInt(cz, p, little)); p += 4; put("DimensionZ", DataTools.bytesToInt(cz, p, little)); p += 4; int dimensionChannels = DataTools.bytesToInt(cz, p, little); put("DimensionChannels", dimensionChannels); p += 4; put("DimensionTime", DataTools.bytesToInt(cz, p, little)); p += 4; idata = DataTools.bytesToInt(cz, p, little); String type; switch (idata) { case 1: type = "8 bit unsigned integer"; break; case 2: type = "12 bit unsigned integer"; break; case 5: type = "32 bit float"; break; case 0: type = "varying data types"; break; default: type = "8 bit unsigned integer"; break; } put("DataType", type); p += 4; put("ThumbnailX", DataTools.bytesToInt(cz, p, little)); p += 4; put("ThumbnailY", DataTools.bytesToInt(cz, p, little)); p += 4; put("VoxelSizeX", Double.longBitsToDouble( DataTools.bytesToLong(cz, p, little))); p += 8; put("VoxelSizeY", Double.longBitsToDouble( DataTools.bytesToLong(cz, p, little))); p += 8; put("VoxelSizeZ", Double.longBitsToDouble( DataTools.bytesToLong(cz, p, little))); p += 8 + 24; // skip over the next 24 bytes idata = DataTools.bytesToInt(cz, p, 2, little); switch (idata) { case 0: type = "x-y-z scan"; break; case 1: type = "z scan (x-z plane)"; break; case 2: type = "line scan"; break; case 3: type = "time series x-y"; break; case 4: type = "time series x-z"; break; case 5: type = "time series 'Mean of ROIs'"; break; case 6: type = "time series x-y-z"; break; case 7: type = "spline scan"; break; case 8: type = "spline scan x-z"; break; case 9: type = "time series spline plane x-z"; break; case 10: type = "point mode"; break; default: type = "x-y-z scan"; } put("ScanType", type); p += 2; idata = DataTools.bytesToInt(cz, p, 2, little); switch (idata) { case 0: type = "no spectral scan"; break; case 1: type = "acquired with spectral scan"; break; default: type = "no spectral scan"; } put("SpectralScan", type); p += 2; data = DataTools.bytesToLong(cz, p, 4, little); switch ((int) data) { case 0: type = "original scan data"; break; case 1: type = "calculated data"; break; case 2: type = "animation"; break; default: type = "original scan data"; } put("DataType2", type); p += 4; // -- Parse OME-XML metadata -- short[] omeData = TiffTools.getIFDShortArray(ifd, ZEISS_ID, true); int imageWidth = DataTools.bytesToInt(omeData, 8, little); int imageLength = DataTools.bytesToInt(omeData, 12, little); zSize = DataTools.bytesToInt(omeData, 16, little); int cSize = DataTools.bytesToInt(omeData, 20, little); tSize = DataTools.bytesToInt(omeData, 24, little); int pixel = DataTools.bytesToInt(omeData, 28, little); String pixelType; switch (pixel) { case 1: pixelType = "Uint8"; break; case 2: pixelType = "Uint16"; break; case 5: pixelType = "float"; break; default: pixelType = "Uint8"; } short scanType = DataTools.bytesToShort(omeData, 88, little); switch ((int) scanType) { case 0: dimOrder = "XYZCT"; break; case 1: dimOrder = "XYZCT"; break; case 3: dimOrder = "XYTCZ"; break; case 4: dimOrder = "XYZTC"; break; case 5: dimOrder = "XYTCZ"; break; case 6: dimOrder = "XYZTC"; break; case 7: dimOrder = "XYCTZ"; break; case 8: dimOrder = "XYCZT"; break; case 9: dimOrder = "XYTCZ"; break; default: dimOrder = "XYZCT"; } channels = cSize; // some LSM files will have a thumbnail associated with each plane; this // thumbnail is counted as an extra channel, but since we strip out the // thumbnails, we need to correct the channel count while (zSize * cSize * tSize > numImages) { cSize--; } if (cSize == 0) cSize++; if (isRGB(currentId) && cSize == 1 && channels > 2) cSize = 3; channels = cSize; // The metadata store we're working with. MetadataStore store = getMetadataStore(currentId); store.setPixels( new Integer(imageWidth), // SizeX new Integer(imageLength), // SizeY new Integer(zSize), // SizeZ new Integer(cSize), // SizeC new Integer(tSize), // SizeT pixelType, // PixelType null, // BigEndian dimOrder, // DimensionOrder null); int pos = in.getFilePointer(); // the following 4 are file offsets data = DataTools.bytesToLong(cz, p, 4, little); parseOverlays(data, "OffsetVectorOverlay", little); p += 4; data = DataTools.bytesToLong(cz, p, 4, little); parseSubBlocks(data, "OffsetInputLut", little); p += 4; data = DataTools.bytesToLong(cz, p, 4, little); parseSubBlocks(data, "OffsetOutputLut", little); p += 4; data = DataTools.bytesToLong(cz, p, 4, little); // seek to this offset and read in the structure there // first we have to make sure that the structure actually exists if (data != 0) { pos = in.getFilePointer(); in.seek(data + 4); int numColors = in.readInt(); int numNames = in.readInt(); idata = in.readInt(); idata = in.readInt(); long offsetNames = data + idata; // will seek to this // read in the intensity value for each color in.skipBytes(idata - 16); for (int i=0; i<numColors; i++) { data = in.readInt(); put("Intensity" + i, data); } // read in the channel names pos = in.getFilePointer(); in.seek(pos + offsetNames); for (int i=0; i<numNames; i++) { // we want to read until we find a null char String name = ""; char[] current = new char[1]; current[0] = (char) in.read(); in.read(); while (current[0] != 0) { name.concat(new String(current)); current[0] = (char) in.read(); in.read(); } put("ChannelName" + i, name); } in.seek(pos); } p += 4; put("TimeInterval", Double.longBitsToDouble( DataTools.bytesToLong(cz, p, little))); p += 8; // the following 8 are file offsets data = DataTools.bytesToLong(cz, p, 4, little); if (data != 0) { in.skipBytes((int) data); for (int i=0; i<dimensionChannels; i++) { put("OffsetChannelDataTypes" + i, in.readInt()); } in.seek(pos); } p += 4; put("OffsetScanInformation", DataTools.bytesToLong(cz, p, 4, little)); p += 4; put("OffsetKsData", DataTools.bytesToLong(cz, p, 4, little)); p += 4; data = DataTools.bytesToLong(cz, p, 4, little); if (data != 0) { pos = in.getFilePointer(); in.skipBytes((int) data + 4); int numStamps = in.readInt(); if (numStamps > 1000) numStamps = 1000; for (int i=0; i<numStamps; i++) { ddata = in.readDouble(); put("TimeStamp" + i, ddata); } in.seek(pos); } p += 4; data = DataTools.bytesToLong(cz, p, 4, little); if (data != 0) { pos = in.getFilePointer(); long numBytes = in.readInt(); int numEvents = in.readInt(); in.seek((int) (pos + data + 8)); for (int i=0; i<numEvents; i++) { in.readInt(); ddata = in.readDouble(); put("Time" + i, ddata); data = in.readInt(); put("EventType" + i, data); byte[] descr = new byte[(int) (numBytes - 16)]; in.read(descr); put("Description" + i, new String(descr)); } in.seek(pos); } p += 4; data = DataTools.bytesToLong(cz, p, 4, little); parseOverlays(data, "OffsetRoi", little); p += 4; data = DataTools.bytesToLong(cz, p, 4, little); parseOverlays(data, "OffsetBleachRoi", little); p += 4; put("OffsetNextRecording", DataTools.bytesToLong(cz, p, 4, little)); p += 4; put("DisplayAspectX", Double.longBitsToDouble( DataTools.bytesToLong(cz, p, little))); p += 8; put("DisplayAspectY", Double.longBitsToDouble( DataTools.bytesToLong(cz, p, little))); p += 8; put("DisplayAspectZ", Double.longBitsToDouble( DataTools.bytesToLong(cz, p, little))); p += 8; put("DisplayAspectTime", Double.longBitsToDouble( DataTools.bytesToLong(cz, p, little))); p += 8; // the following 4 are file offsets data = DataTools.bytesToLong(cz, p, 4, little); parseOverlays(data, "OffsetMeanOfRoisOverlay", little); p += 4; data = DataTools.bytesToLong(cz, p, 4, little); parseOverlays(data, "OffsetTopoIsolineOverlay", little); p += 4; data = DataTools.bytesToLong(cz, p, 4, little); parseOverlays(data, "OffsetTopoProfileOverlay", little); p += 4; data = DataTools.bytesToLong(cz, p, 4, little); parseOverlays(data, "OffsetLinescanOverlay", little); p += 4; put("ToolbarFlags", DataTools.bytesToLong(cz, p, 4, little)); // the following 2 are file offsets put("OffsetChannelWavelength", DataTools.bytesToLong(cz, p, 4, little)); p += 4; put("OffsetChannelFactors", DataTools.bytesToLong(cz, p, 4, little)); p += 4; put("ObjectiveSphereCorrection", Double.longBitsToDouble( DataTools.bytesToLong(cz, p, little))); p += 8; // the following is a file offset put("OffsetUnmixParameters", DataTools.bytesToLong(cz, p, 4, little)); p += 4; in.seek(pos); } catch (FormatException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } catch (Exception e) { } }
|
46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/da4171e613e50f5d6625cbc486b53f0d6a598660/ZeissLSMReader.java/clean/loci/formats/in/ZeissLSMReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
2277,
1435,
288,
565,
18559,
309,
72,
273,
309,
2377,
63,
20,
15533,
565,
1525,
501,
273,
374,
31,
565,
509,
612,
396,
273,
374,
31,
565,
1645,
302,
892,
273,
374,
31,
565,
368,
6620,
272,
892,
273,
374,
31,
565,
775,
288,
1377,
368,
1493,
2884,
4529,
1982,
1493,
1377,
368,
4199,
1160,
1353,
1377,
1250,
12720,
273,
399,
3048,
10348,
18,
291,
48,
10609,
12,
430,
72,
1769,
1377,
316,
18,
1019,
12,
80,
7188,
1769,
1377,
2240,
18,
2738,
2277,
5621,
1377,
368,
336,
23587,
1054,
511,
7303,
17,
12524,
501,
1377,
368,
11086,
326,
399,
5501,
67,
39,
62,
67,
3045,
49,
5923,
3695,
16,
13908,
1731,
1525,
1377,
3025,
8526,
276,
94,
273,
399,
3048,
10348,
18,
588,
5501,
40,
4897,
1076,
12,
430,
72,
16,
2285,
41,
25689,
67,
734,
16,
638,
1769,
1377,
509,
293,
273,
374,
31,
368,
4407,
358,
1024,
1160,
316,
326,
3695,
1377,
1378,
2932,
19289,
1854,
3113,
1910,
10348,
18,
3890,
30220,
12,
71,
94,
16,
293,
16,
1059,
16,
12720,
10019,
1377,
293,
1011,
1059,
31,
1377,
1378,
2932,
6999,
1225,
3113,
1910,
10348,
18,
3890,
17864,
12,
71,
94,
16,
293,
16,
12720,
10019,
1377,
293,
1011,
1059,
31,
1377,
1378,
2932,
8611,
60,
3113,
1910,
10348,
18,
3890,
17864,
12,
71,
94,
16,
293,
16,
12720,
10019,
1377,
293,
1011,
1059,
31,
1377,
1378,
2932,
8611,
61,
3113,
1910,
10348,
18,
3890,
17864,
12,
71,
94,
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,
282,
4750,
918,
1208,
2277,
1435,
288,
565,
18559,
309,
72,
273,
309,
2377,
63,
20,
15533,
565,
1525,
501,
273,
374,
31,
565,
509,
612,
396,
273,
374,
31,
565,
1645,
302,
892,
273,
374,
31,
565,
368,
6620,
272,
892,
273,
374,
31,
565,
775,
288,
1377,
368,
1493,
2884,
4529,
1982,
1493,
1377,
368,
4199,
1160,
1353,
1377,
1250,
12720,
273,
399,
3048,
10348,
18,
291,
48,
10609,
12,
430,
72,
1769,
1377,
316,
18,
1019,
12,
80,
7188,
1769,
1377,
2240,
18,
2738,
2277,
5621,
1377,
368,
336,
23587,
1054,
511,
7303,
17,
12524,
501,
1377,
368,
11086,
326,
399,
5501,
67,
39,
62,
67,
3045,
49,
5923,
3695,
16,
13908,
1731,
1525,
1377,
3025,
2
] |
if (this.preferences.insert_space_within_message_send) {
|
if (this.preferences.insert_space_after_opening_paren_in_message_send) {
|
private void formatMessageSend( MessageSend messageSend, BlockScope scope, Alignment messageAlignment) { if (messageAlignment != null) { this.scribe.alignFragment(messageAlignment, 0); this.scribe.printNextToken(TerminalTokens.TokenNameDOT); } this.scribe.printNextToken(TerminalTokens.TokenNameIdentifier); // selector this.scribe.printNextToken(TerminalTokens.TokenNameLPAREN, this.preferences.insert_space_before_message_send); final Expression[] arguments = messageSend.arguments; if (arguments != null) { if (this.preferences.insert_space_within_message_send) { this.scribe.space(); } int argumentsLength = arguments.length; if (argumentsLength > 1) { Alignment argumentsAlignment = this.scribe.createAlignment( "messageArguments", //$NON-NLS-1$ this.preferences.message_send_arguments_alignment, argumentsLength, this.scribe.scanner.currentPosition); this.scribe.enterAlignment(argumentsAlignment); boolean ok = false; do { try { for (int i = 0; i < argumentsLength; i++) { if (i > 0) { this.scribe.printNextToken(TerminalTokens.TokenNameCOMMA, this.preferences.insert_space_before_comma_in_messagesend_arguments); } this.scribe.alignFragment(argumentsAlignment, i); if (i > 0 && this.preferences.insert_space_after_comma_in_messagesend_arguments) { this.scribe.space(); } arguments[i].traverse(this, scope); } ok = true; } catch (AlignmentException e) { this.scribe.redoAlignment(e); } } while (!ok); this.scribe.exitAlignment(argumentsAlignment, true); } else { if (this.preferences.insert_space_within_message_send) { this.scribe.space(); } for (int i = 0; i < argumentsLength; i++) { if (i > 0) { this.scribe.printNextToken(TerminalTokens.TokenNameCOMMA, this.preferences.insert_space_before_comma_in_messagesend_arguments); } if (i > 0 && this.preferences.insert_space_after_comma_in_messagesend_arguments) { this.scribe.space(); } arguments[i].traverse(this, scope); } } this.scribe.printNextToken(TerminalTokens.TokenNameRPAREN, this.preferences.insert_space_within_message_send); } else { this.scribe.printNextToken(TerminalTokens.TokenNameRPAREN, this.preferences.insert_space_between_empty_messagesend_arguments); } }
|
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/47b4b871bf6d388352229c39f2d0357c2b36e470/CodeFormatterVisitor.java/buggy/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
20925,
3826,
12,
202,
202,
1079,
3826,
883,
3826,
16,
202,
202,
1768,
3876,
2146,
16,
202,
202,
11535,
883,
11535,
13,
288,
202,
202,
430,
261,
2150,
11535,
480,
446,
13,
288,
1082,
202,
2211,
18,
4989,
18,
7989,
7456,
12,
2150,
11535,
16,
374,
1769,
1082,
202,
2211,
18,
4989,
18,
1188,
9399,
12,
11336,
5157,
18,
1345,
461,
17591,
1769,
202,
202,
97,
202,
202,
2211,
18,
4989,
18,
1188,
9399,
12,
11336,
5157,
18,
1345,
461,
3004,
1769,
368,
3451,
202,
202,
2211,
18,
4989,
18,
1188,
9399,
12,
11336,
5157,
18,
1345,
461,
48,
15111,
16,
333,
18,
23219,
18,
6387,
67,
2981,
67,
5771,
67,
2150,
67,
4661,
1769,
202,
202,
6385,
5371,
8526,
1775,
273,
883,
3826,
18,
7099,
31,
202,
202,
430,
261,
7099,
480,
446,
13,
288,
1082,
202,
430,
261,
2211,
18,
23219,
18,
6387,
67,
2981,
67,
25850,
67,
2150,
67,
4661,
13,
288,
9506,
202,
2211,
18,
4989,
18,
2981,
5621,
1082,
202,
97,
1082,
202,
474,
1775,
1782,
273,
1775,
18,
2469,
31,
1082,
202,
430,
261,
7099,
1782,
405,
404,
13,
288,
9506,
202,
11535,
1775,
11535,
273,
333,
18,
4989,
18,
2640,
11535,
12,
25083,
202,
6,
2150,
4628,
3113,
4329,
3993,
17,
5106,
17,
21,
8,
25083,
202,
2211,
18,
23219,
18,
2150,
67,
4661,
67,
7099,
67,
14409,
16,
25083,
202,
7099,
1782,
16,
25083,
202,
2211,
18,
4989,
18,
26842,
18,
2972,
2555,
1769,
9506,
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,
20925,
3826,
12,
202,
202,
1079,
3826,
883,
3826,
16,
202,
202,
1768,
3876,
2146,
16,
202,
202,
11535,
883,
11535,
13,
288,
202,
202,
430,
261,
2150,
11535,
480,
446,
13,
288,
1082,
202,
2211,
18,
4989,
18,
7989,
7456,
12,
2150,
11535,
16,
374,
1769,
1082,
202,
2211,
18,
4989,
18,
1188,
9399,
12,
11336,
5157,
18,
1345,
461,
17591,
1769,
202,
202,
97,
202,
202,
2211,
18,
4989,
18,
1188,
9399,
12,
11336,
5157,
18,
1345,
461,
3004,
1769,
368,
3451,
202,
202,
2211,
18,
4989,
18,
1188,
9399,
12,
11336,
5157,
18,
1345,
461,
48,
15111,
16,
333,
18,
23219,
18,
6387,
67,
2981,
67,
5771,
67,
2150,
67,
4661,
1769,
2
] |
public ITree createTree(ITreeNode rootNode) throws PlatformException;
|
public ITree createTree() throws PlatformException;
|
public ITree createTree(ITreeNode rootNode) throws PlatformException;
|
12741 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12741/a12f73550f64a30e83f27dc7dc01f892443418b0/ITreeManager.java/clean/salomon/platform/trunk/src/salomon/platform/data/tree/ITreeManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
2471,
752,
2471,
12,
1285,
992,
907,
10181,
13,
1216,
11810,
503,
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
] |
[
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
2471,
752,
2471,
12,
1285,
992,
907,
10181,
13,
1216,
11810,
503,
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
] |
return(getPreferredSize(rows));
|
return getPreferredSize (getRows ());
|
getPreferredSize(){ return(getPreferredSize(rows));}
|
25337 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25337/3fe1c14284ce32b79d0e66441aec6a45a77ff684/List.java/buggy/libjava/java/awt/List.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
12822,
4193,
1225,
1435,
95,
225,
327,
12,
588,
16028,
1225,
12,
3870,
10019,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
12822,
4193,
1225,
1435,
95,
225,
327,
12,
588,
16028,
1225,
12,
3870,
10019,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void ExtractSelectedPatch() { if (table.getSelectedRowCount()==0) { ErrorMsg.reportError("Error","No Patch Selected."); return; } Patch myPatch=((Patch)myModel.PatchList.get(table.getSelectedRow())); BankDriver myDriver=(BankDriver)myPatch.getDriver(); for (int i=0;i<myDriver.getNumPatches();i++) if (myDriver.getPatch(myPatch,i)!=null) myModel.PatchList.add(myDriver.getPatch(myPatch,i));
|
public void ExtractSelectedPatch() { if (table.getSelectedRowCount() == 0) { ErrorMsg.reportError("Error", "No Patch Selected."); return; } Patch myPatch = myModel.getPatchAt(table.getSelectedRow()); BankDriver myDriver = (BankDriver) myPatch.getDriver(); for (int i = 0; i < myDriver.getNumPatches(); i++) if (myDriver.getPatch(myPatch, i) != null) myModel.addPatch(myDriver.getPatch(myPatch, i));
|
public void ExtractSelectedPatch() { if (table.getSelectedRowCount()==0) {ErrorMsg.reportError("Error","No Patch Selected.");return;} Patch myPatch=((Patch)myModel.PatchList.get(table.getSelectedRow())); BankDriver myDriver=(BankDriver)myPatch.getDriver(); for (int i=0;i<myDriver.getNumPatches();i++) if (myDriver.getPatch(myPatch,i)!=null) myModel.PatchList.add(myDriver.getPatch(myPatch,i)); myModel.fireTableDataChanged(); changed=true; // statusBar.setText(myModel.PatchList.size()+" Patches"); }
|
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/c8c2f2d41919d6587858edc131d215f4eebaeb4b/LibraryFrame.java/buggy/JSynthLib/core/LibraryFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
8152,
7416,
7332,
1435,
565,
288,
3639,
309,
261,
2121,
18,
588,
7416,
26359,
1435,
631,
20,
13,
3639,
288,
668,
3332,
18,
6006,
668,
2932,
668,
15937,
2279,
12042,
4352,
828,
1199,
1769,
2463,
31,
97,
3639,
12042,
3399,
7332,
33,
12443,
7332,
13,
4811,
1488,
18,
7332,
682,
18,
588,
12,
2121,
18,
588,
7416,
1999,
1435,
10019,
3639,
25610,
4668,
3399,
4668,
28657,
16040,
4668,
13,
4811,
7332,
18,
588,
4668,
5621,
3639,
364,
261,
474,
277,
33,
20,
31,
77,
32,
4811,
4668,
18,
588,
2578,
23501,
5621,
77,
27245,
5411,
309,
261,
4811,
4668,
18,
588,
7332,
12,
4811,
7332,
16,
77,
13,
5,
33,
2011,
13,
3399,
1488,
18,
7332,
682,
18,
1289,
12,
4811,
4668,
18,
588,
7332,
12,
4811,
7332,
16,
77,
10019,
3639,
3399,
1488,
18,
12179,
1388,
751,
5033,
5621,
3639,
3550,
33,
3767,
31,
377,
368,
282,
1267,
5190,
18,
542,
1528,
12,
4811,
1488,
18,
7332,
682,
18,
1467,
1435,
9078,
12042,
281,
8863,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
8152,
7416,
7332,
1435,
565,
288,
3639,
309,
261,
2121,
18,
588,
7416,
26359,
1435,
631,
20,
13,
3639,
288,
668,
3332,
18,
6006,
668,
2932,
668,
15937,
2279,
12042,
4352,
828,
1199,
1769,
2463,
31,
97,
3639,
12042,
3399,
7332,
33,
12443,
7332,
13,
4811,
1488,
18,
7332,
682,
18,
588,
12,
2121,
18,
588,
7416,
1999,
1435,
10019,
3639,
25610,
4668,
3399,
4668,
28657,
16040,
4668,
13,
4811,
7332,
18,
588,
4668,
5621,
3639,
364,
261,
474,
277,
33,
20,
31,
77,
32,
4811,
4668,
18,
588,
2578,
23501,
5621,
77,
27245,
5411,
309,
261,
4811,
4668,
18,
588,
7332,
12,
4811,
7332,
16,
77,
13,
5,
33,
2011,
13,
3399,
1488,
18,
7332,
2
] |
protected IStatus run(IProgressMonitor monitor) { HashSet disabledPlugins = new HashSet(Arrays.asList(getDisabledEarlyActivatedPlugins())); monitor.beginTask(WorkbenchMessages.Workbench_startingPlugins, extensions.length);
|
protected IStatus run(IProgressMonitor monitor) { HashSet disabledPlugins = new HashSet(Arrays .asList(getDisabledEarlyActivatedPlugins())); monitor.beginTask(WorkbenchMessages.Workbench_startingPlugins, extensions.length);
|
protected IStatus run(IProgressMonitor monitor) { HashSet disabledPlugins = new HashSet(Arrays.asList(getDisabledEarlyActivatedPlugins())); monitor.beginTask(WorkbenchMessages.Workbench_startingPlugins, extensions.length); for (int i = 0; i < extensions.length; ++i) { if (monitor.isCanceled() || !isRunning()) { return Status.CANCEL_STATUS; } IExtension extension = extensions[i]; // if the plugin is not in the set of disabled plugins, then // execute the code to start it if (!disabledPlugins.contains(extension.getNamespace())) { monitor.subTask(extension.getNamespace()); Platform.run(new EarlyStartupRunnable(extension)); } monitor.worked(1); } monitor.done(); return Status.OK_STATUS; }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/73333dbcd42e60f1026cd0a1b14e2ddb08c2b396/Workbench.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
1117,
467,
1482,
1086,
12,
45,
5491,
7187,
6438,
13,
288,
1875,
3639,
6847,
5673,
9461,
273,
394,
6847,
12,
12726,
18,
345,
682,
12,
588,
8853,
41,
20279,
28724,
9461,
1435,
10019,
9506,
202,
10259,
18,
10086,
2174,
12,
2421,
22144,
5058,
18,
2421,
22144,
67,
18526,
9461,
16,
4418,
18,
2469,
1769,
9506,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
4418,
18,
2469,
31,
965,
77,
13,
288,
6862,
202,
430,
261,
10259,
18,
291,
23163,
1435,
747,
401,
291,
7051,
10756,
288,
25083,
202,
2463,
2685,
18,
25268,
67,
8608,
31,
6862,
202,
97,
6862,
202,
45,
3625,
2710,
273,
4418,
63,
77,
15533,
6862,
202,
759,
309,
326,
1909,
353,
486,
316,
326,
444,
434,
5673,
4799,
16,
1508,
6862,
202,
759,
1836,
326,
981,
358,
787,
518,
6862,
202,
430,
16051,
9278,
9461,
18,
12298,
12,
6447,
18,
588,
3402,
1435,
3719,
288,
25083,
202,
10259,
18,
1717,
2174,
12,
6447,
18,
588,
3402,
10663,
25083,
202,
8201,
18,
2681,
12,
2704,
512,
20279,
22178,
20013,
12,
6447,
10019,
6862,
202,
97,
6862,
202,
10259,
18,
1252,
329,
12,
21,
1769,
9506,
202,
97,
9506,
202,
10259,
18,
8734,
5621,
9506,
202,
2463,
2685,
18,
3141,
67,
8608,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
1117,
467,
1482,
1086,
12,
45,
5491,
7187,
6438,
13,
288,
1875,
3639,
6847,
5673,
9461,
273,
394,
6847,
12,
12726,
18,
345,
682,
12,
588,
8853,
41,
20279,
28724,
9461,
1435,
10019,
9506,
202,
10259,
18,
10086,
2174,
12,
2421,
22144,
5058,
18,
2421,
22144,
67,
18526,
9461,
16,
4418,
18,
2469,
1769,
9506,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
4418,
18,
2469,
31,
965,
77,
13,
288,
6862,
202,
430,
261,
10259,
18,
291,
23163,
1435,
747,
401,
291,
7051,
10756,
288,
25083,
202,
2463,
2685,
18,
25268,
67,
8608,
31,
6862,
202,
97,
6862,
202,
45,
3625,
2710,
273,
4418,
63,
77,
15533,
6862,
202,
759,
309,
326,
1909,
353,
2
] |
do { retString += s.charAt(pos); pos++; } while (pos < s.length() && (s.charAt(pos) >= '0' && s.charAt(pos) <= '9')) ;
|
if (pos >= s.length() - 1) throw new InvalidSmilesException("Percent sign ring closure numbers must be two-digit."); String retString = s.substring(pos, pos + 2); if (retString.charAt(0) < '0' || retString.charAt(0) > '9' || retString.charAt(1) < '0' || retString.charAt(1) > '9') throw new InvalidSmilesException("Percent sign ring closure numbers must be two-digit.");
|
private String getRingNumber(String s, int pos) { logger.debug("getRingNumber()"); String retString = ""; pos++; do { retString += s.charAt(pos); pos++; } while (pos < s.length() && (s.charAt(pos) >= '0' && s.charAt(pos) <= '9')) ; return retString; }
|
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/292dca68176ded689c2f5780ceb0465f5de04deb/SmilesParser.java/buggy/src/org/openscience/cdk/smiles/SmilesParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
4170,
310,
1854,
12,
780,
272,
16,
509,
949,
13,
202,
95,
202,
202,
4901,
18,
4148,
2932,
588,
10369,
1854,
1435,
8863,
202,
202,
780,
325,
780,
273,
1408,
31,
202,
202,
917,
9904,
31,
202,
202,
2896,
202,
202,
95,
1082,
202,
1349,
780,
1011,
272,
18,
3001,
861,
12,
917,
1769,
1082,
202,
917,
9904,
31,
202,
202,
97,
1323,
261,
917,
411,
272,
18,
2469,
1435,
597,
9506,
202,
12,
87,
18,
3001,
861,
12,
917,
13,
1545,
296,
20,
11,
597,
272,
18,
3001,
861,
12,
917,
13,
1648,
296,
29,
26112,
9506,
202,
31,
202,
202,
2463,
325,
780,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
1152,
514,
4170,
310,
1854,
12,
780,
272,
16,
509,
949,
13,
202,
95,
202,
202,
4901,
18,
4148,
2932,
588,
10369,
1854,
1435,
8863,
202,
202,
780,
325,
780,
273,
1408,
31,
202,
202,
917,
9904,
31,
202,
202,
2896,
202,
202,
95,
1082,
202,
1349,
780,
1011,
272,
18,
3001,
861,
12,
917,
1769,
1082,
202,
917,
9904,
31,
202,
202,
97,
1323,
261,
917,
411,
272,
18,
2469,
1435,
597,
9506,
202,
12,
87,
18,
3001,
861,
12,
917,
13,
1545,
296,
20,
11,
597,
272,
18,
3001,
861,
12,
917,
13,
1648,
296,
29,
26112,
9506,
202,
31,
202,
202,
2463,
325,
780,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
database.prepareInsert(table, "R_TRANS_SLAVE");
|
database.prepareInsert(table, "R_TRANS_CLUSTER");
|
public synchronized long insertTransformationCluster(long id_transformation, long id_cluster) throws KettleDatabaseException { long id = getNextTransformationClusterID(); Row table = new Row(); table.addValue(new Value("ID_TRANS_SLAVE", id)); table.addValue(new Value("ID_TRANSFORMATION", id_transformation)); table.addValue(new Value("ID_SLAVE", id_cluster)); database.prepareInsert(table, "R_TRANS_SLAVE"); database.setValuesInsert(table); database.insertRow(); database.closeInsert(); return id; }
|
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/1ce8b79d6ce4e6087d2dfdd64474adf636738fad/Repository.java/clean/src/be/ibridge/kettle/repository/Repository.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
1525,
2243,
15292,
3629,
12,
5748,
612,
67,
2338,
1471,
16,
1525,
612,
67,
7967,
13,
1216,
1475,
278,
5929,
4254,
503,
565,
288,
3639,
1525,
612,
273,
6927,
15292,
3629,
734,
5621,
3639,
6556,
1014,
273,
394,
6556,
5621,
3639,
1014,
18,
1289,
620,
12,
2704,
1445,
2932,
734,
67,
16596,
67,
55,
2534,
3412,
3113,
612,
10019,
3639,
1014,
18,
1289,
620,
12,
2704,
1445,
2932,
734,
67,
16596,
23805,
3113,
612,
67,
2338,
1471,
10019,
3639,
1014,
18,
1289,
620,
12,
2704,
1445,
2932,
734,
67,
55,
2534,
3412,
3113,
612,
67,
7967,
10019,
3639,
2063,
18,
9366,
4600,
12,
2121,
16,
315,
54,
67,
16596,
67,
5017,
23069,
8863,
3639,
2063,
18,
542,
1972,
4600,
12,
2121,
1769,
3639,
2063,
18,
6387,
1999,
5621,
3639,
2063,
18,
4412,
4600,
5621,
3639,
327,
612,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
1525,
2243,
15292,
3629,
12,
5748,
612,
67,
2338,
1471,
16,
1525,
612,
67,
7967,
13,
1216,
1475,
278,
5929,
4254,
503,
565,
288,
3639,
1525,
612,
273,
6927,
15292,
3629,
734,
5621,
3639,
6556,
1014,
273,
394,
6556,
5621,
3639,
1014,
18,
1289,
620,
12,
2704,
1445,
2932,
734,
67,
16596,
67,
55,
2534,
3412,
3113,
612,
10019,
3639,
1014,
18,
1289,
620,
12,
2704,
1445,
2932,
734,
67,
16596,
23805,
3113,
612,
67,
2338,
1471,
10019,
3639,
1014,
18,
1289,
620,
12,
2704,
1445,
2932,
734,
67,
55,
2534,
3412,
3113,
612,
67,
7967,
10019,
3639,
2063,
18,
9366,
4600,
12,
2121,
16,
315,
54,
67,
16596,
67,
5017,
23069,
8863,
3639,
2063,
18,
2
] |
private boolean isZero() { if (numberLength == 1 && digits[0] == 0) { return true; } return false; }
|
final boolean isZero() { return sign==0; }
|
private boolean isZero() { if (numberLength == 1 && digits[0] == 0) { return true; } return false; }
|
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/c7fcbcf7b7445b954bcddb4a8f8932b7710d4691/BigInteger.java/buggy/modules/math/src/main/java/java/math/BigInteger.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
353,
7170,
1435,
288,
3639,
309,
261,
2696,
1782,
422,
404,
597,
6815,
63,
20,
65,
422,
374,
13,
288,
5411,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7170,
1435,
288,
3639,
309,
261,
2696,
1782,
422,
404,
597,
6815,
63,
20,
65,
422,
374,
13,
288,
5411,
327,
638,
31,
3639,
289,
3639,
327,
629,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return getGroupName(null); }
|
return getGroupName(null); }
|
public final java.lang.String getGroupName() { return getGroupName(null); }
|
6232 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6232/1f1850be471d4b8bfd2f3c50aa61bc39bf91259a/ExpandBarComponent.java/buggy/org.rcfaces.core/src/org/rcfaces/core/component/ExpandBarComponent.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
2252,
18,
4936,
18,
780,
336,
3943,
1435,
288,
3639,
327,
336,
3943,
12,
2011,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
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,
727,
2252,
18,
4936,
18,
780,
336,
3943,
1435,
288,
3639,
327,
336,
3943,
12,
2011,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
MessagingException, IOException
|
IOException
|
public static void processDaily(Context context) throws SQLException, MessagingException, IOException { // Grab the subscriptions TableRowIterator tri = DatabaseManager.query(context, "SELECT * FROM subscription ORDER BY eperson_id"); EPerson currentEPerson = null; List collections = null; // List of Collections // Go through the list collating subscriptions for each e-person while (tri.hasNext()) { TableRow row = tri.next(); // Does this row relate to the same e-person as the last? if ((currentEPerson == null) || (row.getIntColumn("eperson_id") != currentEPerson .getID())) { // New e-person. Send mail for previous e-person if (currentEPerson != null) { sendEmail(context, currentEPerson, collections); } currentEPerson = EPerson.find(context, row .getIntColumn("eperson_id")); collections = new ArrayList(); } collections.add(Collection.find(context, row .getIntColumn("collection_id"))); } // Process the last person if (currentEPerson != null) { sendEmail(context, currentEPerson, collections); } }
|
47292 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47292/6f3d4af82f82a954cacea0032116d515f7185a2a/Subscribe.java/clean/dspace/src/org/dspace/eperson/Subscribe.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1207,
40,
12857,
12,
1042,
819,
13,
1216,
6483,
16,
5411,
1860,
565,
288,
3639,
368,
17150,
326,
11912,
3639,
3555,
1999,
3198,
6882,
273,
5130,
1318,
18,
2271,
12,
2472,
16,
7734,
315,
4803,
380,
4571,
4915,
10205,
6953,
5529,
3565,
67,
350,
8863,
3639,
512,
8346,
783,
41,
8346,
273,
446,
31,
3639,
987,
6980,
273,
446,
31,
368,
987,
434,
5737,
3639,
368,
4220,
3059,
326,
666,
4508,
1776,
11912,
364,
1517,
425,
17,
12479,
3639,
1323,
261,
16857,
18,
5332,
2134,
10756,
3639,
288,
5411,
3555,
1999,
1027,
273,
6882,
18,
4285,
5621,
5411,
368,
9637,
333,
1027,
1279,
340,
358,
326,
1967,
425,
17,
12479,
487,
326,
1142,
35,
5411,
309,
14015,
2972,
41,
8346,
422,
446,
13,
10792,
747,
261,
492,
18,
588,
1702,
1494,
2932,
881,
3565,
67,
350,
7923,
480,
783,
41,
8346,
18701,
263,
588,
734,
1435,
3719,
5411,
288,
7734,
368,
1166,
425,
17,
12479,
18,
2479,
4791,
364,
2416,
425,
17,
12479,
7734,
309,
261,
2972,
41,
8346,
480,
446,
13,
7734,
288,
10792,
1366,
4134,
12,
2472,
16,
783,
41,
8346,
16,
6980,
1769,
7734,
289,
7734,
783,
41,
8346,
273,
512,
8346,
18,
4720,
12,
2472,
16,
1027,
13491,
263,
588,
1702,
1494,
2932,
881,
3565,
67,
350,
7923,
1769,
7734,
6980,
273,
394,
2407,
5621,
5411,
289,
5411,
6980,
18,
1289,
12,
2532,
18,
4720,
12,
2472,
16,
1027,
10792,
263,
588,
1702,
1494,
2932,
5548,
67,
350,
6,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1207,
40,
12857,
12,
1042,
819,
13,
1216,
6483,
16,
5411,
1860,
565,
288,
3639,
368,
17150,
326,
11912,
3639,
3555,
1999,
3198,
6882,
273,
5130,
1318,
18,
2271,
12,
2472,
16,
7734,
315,
4803,
380,
4571,
4915,
10205,
6953,
5529,
3565,
67,
350,
8863,
3639,
512,
8346,
783,
41,
8346,
273,
446,
31,
3639,
987,
6980,
273,
446,
31,
368,
987,
434,
5737,
3639,
368,
4220,
3059,
326,
666,
4508,
1776,
11912,
364,
1517,
425,
17,
12479,
3639,
1323,
261,
16857,
18,
5332,
2134,
10756,
3639,
288,
5411,
3555,
1999,
1027,
273,
6882,
18,
4285,
5621,
5411,
368,
9637,
333,
1027,
1279,
340,
358,
326,
1967,
425,
17,
12479,
487,
326,
1142,
35,
5411,
2
] |
public void setHeightfield (BufferedImage image) { // scale the image to the size of the heightfield, flip it upside down, // and convert it to 8-bit grayscale int hfwidth = _board.getHeightfieldWidth(), hfheight = _board.getHeightfieldHeight(); BufferedImage grayimg = new BufferedImage(hfwidth, hfheight, BufferedImage.TYPE_BYTE_GRAY); grayimg.createGraphics().drawImage(image, 0, hfheight, hfwidth, 0, 0, 0, image.getWidth(), image.getHeight(), null); // transfer the pixels to the heightfield array int[] vals = grayimg.getData().getPixels(0, 0, hfwidth, hfheight, (int[])null); byte[] hf = _board.getHeightfield(); for (int i = 0; i < hf.length; i++) { hf[i] = (byte)(vals[i] - 128); } heightfieldChanged(); }
|
8059 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8059/a0ad7d320d6f5b69c93af4eff2a1e44a6d1d31be/EditorBoardView.java/buggy/src/java/com/threerings/bang/editor/EditorBoardView.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
27276,
1518,
261,
17947,
2040,
1316,
13,
565,
288,
3639,
368,
3159,
326,
1316,
358,
326,
963,
434,
326,
2072,
1518,
16,
9668,
518,
731,
5564,
2588,
16,
3639,
368,
471,
1765,
518,
358,
1725,
17,
3682,
16937,
5864,
3639,
509,
366,
74,
2819,
273,
389,
3752,
18,
588,
2686,
1518,
2384,
9334,
5411,
366,
74,
4210,
273,
389,
3752,
18,
588,
2686,
1518,
2686,
5621,
3639,
12362,
16937,
6081,
273,
394,
12362,
12,
76,
74,
2819,
16,
366,
74,
4210,
16,
5411,
12362,
18,
2399,
67,
15377,
67,
43,
6722,
1769,
3639,
16937,
6081,
18,
2640,
17558,
7675,
9446,
2040,
12,
2730,
16,
374,
16,
366,
74,
4210,
16,
366,
74,
2819,
16,
5411,
374,
16,
374,
16,
374,
16,
1316,
18,
588,
2384,
9334,
1316,
18,
588,
2686,
9334,
446,
1769,
7734,
368,
7412,
326,
8948,
358,
326,
2072,
1518,
526,
3639,
509,
8526,
5773,
273,
16937,
6081,
18,
588,
751,
7675,
588,
18079,
12,
20,
16,
374,
16,
366,
74,
2819,
16,
366,
74,
4210,
16,
5411,
261,
474,
63,
5717,
2011,
1769,
3639,
1160,
8526,
366,
74,
273,
389,
3752,
18,
588,
2686,
1518,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
366,
74,
18,
2469,
31,
277,
27245,
288,
5411,
366,
74,
63,
77,
65,
273,
261,
7229,
21433,
4524,
63,
77,
65,
300,
8038,
1769,
3639,
289,
7734,
2072,
1518,
5033,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
27276,
1518,
261,
17947,
2040,
1316,
13,
565,
288,
3639,
368,
3159,
326,
1316,
358,
326,
963,
434,
326,
2072,
1518,
16,
9668,
518,
731,
5564,
2588,
16,
3639,
368,
471,
1765,
518,
358,
1725,
17,
3682,
16937,
5864,
3639,
509,
366,
74,
2819,
273,
389,
3752,
18,
588,
2686,
1518,
2384,
9334,
5411,
366,
74,
4210,
273,
389,
3752,
18,
588,
2686,
1518,
2686,
5621,
3639,
12362,
16937,
6081,
273,
394,
12362,
12,
76,
74,
2819,
16,
366,
74,
4210,
16,
5411,
12362,
18,
2399,
67,
15377,
67,
43,
6722,
1769,
3639,
16937,
6081,
18,
2640,
17558,
7675,
9446,
2040,
12,
2730,
16,
374,
16,
366,
74,
4210,
16,
366,
74,
2819,
16,
5411,
374,
2
] |
||
case 553: {
|
case 550: {
|
public void ruleAction(int ruleNumber) { if (bad_rule != 0) return; switch (ruleNumber) { // // Rule 1: identifier ::= IDENTIFIER // case 1: { if (prsStream.getKind(btParser.getToken(1)) != X10Parsersym.TK_IDENTIFIER) { System.out.println("Turning keyword " + prsStream.getName(btParser.getToken(1)) + " at " + prsStream.getLine(btParser.getToken(1)) + ":" + prsStream.getColumn(btParser.getToken(1)) + " into an identifier"); } break; } // // Rule 2: PrimitiveType ::= NumericType // case 2: break; // // Rule 3: PrimitiveType ::= boolean // case 3: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Boolean())); break; } // // Rule 4: NumericType ::= IntegralType // case 4: break; // // Rule 5: NumericType ::= FloatingPointType // case 5: break; // // Rule 6: IntegralType ::= byte // case 6: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 7: IntegralType ::= char // case 7: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 8: IntegralType ::= short // case 8: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 9: IntegralType ::= int // case 9: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 10: IntegralType ::= long // case 10: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 11: FloatingPointType ::= float // case 11: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 12: FloatingPointType ::= double // case 12: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 13: ReferenceType ::= ClassOrInterfaceType // case 13: break; // // Rule 14: ReferenceType ::= ArrayType // case 14: break; // // Rule 15: ClassOrInterfaceType ::= ClassType // case 15: break; // // Rule 16: ClassType ::= TypeName // case 16: {//vj assert(btParser.getSym(2) == null); // generic not yet supported Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toType()); break; } // // Rule 17: InterfaceType ::= TypeName // case 17: {//vj assert(btParser.getSym(2) == null); // generic not yet supported Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toType()); break; } // // Rule 18: TypeName ::= identifier // case 18: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 19: TypeName ::= TypeName DOT identifier // case 19: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 20: ClassName ::= TypeName // case 20: break; // // Rule 21: TypeVariable ::= identifier // case 21: break; // // Rule 22: ArrayType ::= Type LBRACKET RBRACKET // case 22: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(array(a, pos(), 1)); break; } // // Rule 23: TypeParameter ::= TypeVariable TypeBoundopt // case 23: bad_rule = 23; break; // // Rule 24: TypeBound ::= extends ClassOrInterfaceType AdditionalBoundListopt // case 24: bad_rule = 24; break; // // Rule 25: AdditionalBoundList ::= AdditionalBound // case 25: bad_rule = 25; break; // // Rule 26: AdditionalBoundList ::= AdditionalBoundList AdditionalBound // case 26: bad_rule = 26; break; // // Rule 27: AdditionalBound ::= AND InterfaceType // case 27: bad_rule = 27; break; // // Rule 28: TypeArguments ::= LESS ActualTypeArgumentList GREATER // case 28: bad_rule = 28; break; // // Rule 29: ActualTypeArgumentList ::= ActualTypeArgument // case 29: bad_rule = 29; break; // // Rule 30: ActualTypeArgumentList ::= ActualTypeArgumentList COMMA ActualTypeArgument // case 30: bad_rule = 30; break; // // Rule 31: Wildcard ::= QUESTION WildcardBoundsOpt // case 31: bad_rule = 31; break; // // Rule 32: WildcardBounds ::= extends ReferenceType // case 32: bad_rule = 32; break; // // Rule 33: WildcardBounds ::= super ReferenceType // case 33: bad_rule = 33; break; // // Rule 34: PackageName ::= identifier // case 34: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 35: PackageName ::= PackageName DOT identifier // case 35: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 36: ExpressionName ::= identifier // case 36: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 37: ExpressionName ::= AmbiguousName DOT identifier // case 37: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 38: MethodName ::= identifier // case 38: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 39: MethodName ::= AmbiguousName DOT identifier // case 39: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 40: PackageOrTypeName ::= identifier // case 40: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 41: PackageOrTypeName ::= PackageOrTypeName DOT identifier // case 41: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 42: AmbiguousName ::= identifier // case 42: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 43: AmbiguousName ::= AmbiguousName DOT identifier // case 43: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 44: CompilationUnit ::= PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 44: { PackageNode a = (PackageNode) btParser.getSym(1); List b = (List) btParser.getSym(2), c = (List) btParser.getSym(3); btParser.setSym1(nf.SourceFile(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b, c)); break; } // // Rule 45: ImportDeclarations ::= ImportDeclaration // case 45: { List l = new TypedList(new LinkedList(), Import.class, false); Import a = (Import) btParser.getSym(1); l.add(a); btParser.setSym1(l); break; } // // Rule 46: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 46: { List l = (TypedList) btParser.getSym(1); Import b = (Import) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 47: TypeDeclarations ::= TypeDeclaration // case 47: { List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); TopLevelDecl a = (TopLevelDecl) btParser.getSym(1); if (a != null) l.add(a); btParser.setSym1(l); break; } // // Rule 48: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 48: { List l = (TypedList) btParser.getSym(1); TopLevelDecl b = (TopLevelDecl) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 49: PackageDeclaration ::= package PackageName SEMICOLON // case 49: {//vj assert(btParser.getSym(1) == null); // generic not yet supported Name a = (Name) btParser.getSym(2); btParser.setSym1(a.toPackage()); break; } // // Rule 50: ImportDeclaration ::= SingleTypeImportDeclaration // case 50: break; // // Rule 51: ImportDeclaration ::= TypeImportOnDemandDeclaration // case 51: break; // // Rule 52: ImportDeclaration ::= SingleStaticImportDeclaration // case 52: break; // // Rule 53: ImportDeclaration ::= StaticImportOnDemandDeclaration // case 53: break; // // Rule 54: SingleTypeImportDeclaration ::= import TypeName SEMICOLON // case 54: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.CLASS, a.toString())); break; } // // Rule 55: TypeImportOnDemandDeclaration ::= import PackageOrTypeName DOT MULTIPLY SEMICOLON // case 55: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.PACKAGE, a.toString())); break; } // // Rule 56: SingleStaticImportDeclaration ::= import static TypeName DOT identifier SEMICOLON // case 56: bad_rule = 56; break; // // Rule 57: StaticImportOnDemandDeclaration ::= import static TypeName DOT MULTIPLY SEMICOLON // case 57: bad_rule = 57; break; // // Rule 58: TypeDeclaration ::= ClassDeclaration // case 58: break; // // Rule 59: TypeDeclaration ::= InterfaceDeclaration // case 59: break; // // Rule 60: TypeDeclaration ::= SEMICOLON // case 60: { btParser.setSym1(null); break; } // // Rule 61: ClassDeclaration ::= NormalClassDeclaration // case 61: break; // // Rule 62: NormalClassDeclaration ::= ClassModifiersopt class identifier Superopt Interfacesopt ClassBody // case 62: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3));//vj assert(btParser.getSym(4) == null); TypeNode c = (TypeNode) btParser.getSym(4); List d = (List) btParser.getSym(5); ClassBody e = (ClassBody) btParser.getSym(6); if (a.isValue()) btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); else btParser.setSym1(nf.ClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 63: ClassModifiers ::= ClassModifier // case 63: break; // // Rule 64: ClassModifiers ::= ClassModifiers ClassModifier // case 64: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 65: ClassModifier ::= public // case 65: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 66: ClassModifier ::= protected // case 66: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 67: ClassModifier ::= private // case 67: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 68: ClassModifier ::= abstract // case 68: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 69: ClassModifier ::= static // case 69: { btParser.setSym1(Flags.STATIC); break; } // // Rule 70: ClassModifier ::= final // case 70: { btParser.setSym1(Flags.FINAL); break; } // // Rule 71: ClassModifier ::= strictfp // case 71: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 72: TypeParameters ::= LESS TypeParameterList GREATER // case 72: bad_rule = 72; break; // // Rule 73: TypeParameterList ::= TypeParameter // case 73: bad_rule = 73; break; // // Rule 74: TypeParameterList ::= TypeParameterList COMMA TypeParameter // case 74: bad_rule = 74; break; // // Rule 75: Super ::= extends ClassType // case 75: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 76: Interfaces ::= implements InterfaceTypeList // case 76: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 77: InterfaceTypeList ::= InterfaceType // case 77: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 78: InterfaceTypeList ::= InterfaceTypeList COMMA InterfaceType // case 78: { List l = (TypedList) btParser.getSym(1); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 79: ClassBody ::= LBRACE ClassBodyDeclarationsopt RBRACE // case 79: { btParser.setSym1(nf.ClassBody(pos(btParser.getFirstToken(), btParser.getLastToken()), (List) btParser.getSym(2))); break; } // // Rule 80: ClassBodyDeclarations ::= ClassBodyDeclaration // case 80: break; // // Rule 81: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 81: { List a = (List) btParser.getSym(1), b = (List) btParser.getSym(2); a.addAll(b); // btParser.setSym1(a); break; } // // Rule 82: ClassBodyDeclaration ::= ClassMemberDeclaration // case 82: break; // // Rule 83: ClassBodyDeclaration ::= InstanceInitializer // case 83: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Block a = (Block) btParser.getSym(1); l.add(nf.Initializer(pos(), Flags.NONE, a)); btParser.setSym1(l); break; } // // Rule 84: ClassBodyDeclaration ::= StaticInitializer // case 84: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Block a = (Block) btParser.getSym(1); l.add(nf.Initializer(pos(), Flags.STATIC, a)); btParser.setSym1(l); break; } // // Rule 85: ClassBodyDeclaration ::= ConstructorDeclaration // case 85: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 86: ClassMemberDeclaration ::= FieldDeclaration // case 86: break; // // Rule 87: ClassMemberDeclaration ::= MethodDeclaration // case 87: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 88: ClassMemberDeclaration ::= ClassDeclaration // case 88: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 89: ClassMemberDeclaration ::= InterfaceDeclaration // case 89: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 90: ClassMemberDeclaration ::= SEMICOLON // case 90: { List l = new TypedList(new LinkedList(), ClassMember.class, false); btParser.setSym1(l); break; } // // Rule 91: FieldDeclaration ::= FieldModifiersopt Type VariableDeclarators SEMICOLON // case 91: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Flags a = (Flags) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(2); List c = (List) btParser.getSym(3); for (Iterator i = c.iterator(); i.hasNext();) { VarDeclarator d = (VarDeclarator) i.next(); l.add(nf.FieldDecl(pos(btParser.getFirstToken(2), btParser.getLastToken()), a, array(b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), d.dims), d.name, d.init)); } btParser.setSym1(l); break; } // // Rule 92: VariableDeclarators ::= VariableDeclarator // case 92: { List l = new TypedList(new LinkedList(), VarDeclarator.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 93: VariableDeclarators ::= VariableDeclarators COMMA VariableDeclarator // case 93: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 94: VariableDeclarator ::= VariableDeclaratorId // case 94: break; // // Rule 95: VariableDeclarator ::= VariableDeclaratorId EQUAL VariableInitializer // case 95: { VarDeclarator a = (VarDeclarator) btParser.getSym(1); Expr b = (Expr) btParser.getSym(3); a.init = b; // btParser.setSym1(a); break; } // // Rule 96: VariableDeclaratorId ::= identifier // case 96: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new VarDeclarator(pos(), a.getIdentifier())); break; } // // Rule 97: VariableDeclaratorId ::= VariableDeclaratorId LBRACKET RBRACKET // case 97: { VarDeclarator a = (VarDeclarator) btParser.getSym(1); a.dims++; // btParser.setSym1(a); break; } // // Rule 98: VariableInitializer ::= Expression // case 98: break; // // Rule 99: VariableInitializer ::= ArrayInitializer // case 99: break; // // Rule 100: FieldModifiers ::= FieldModifier // case 100: break; // // Rule 101: FieldModifiers ::= FieldModifiers FieldModifier // case 101: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 102: FieldModifier ::= public // case 102: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 103: FieldModifier ::= protected // case 103: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 104: FieldModifier ::= private // case 104: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 105: FieldModifier ::= static // case 105: { btParser.setSym1(Flags.STATIC); break; } // // Rule 106: FieldModifier ::= final // case 106: { btParser.setSym1(Flags.FINAL); break; } // // Rule 107: FieldModifier ::= transient // case 107: { btParser.setSym1(Flags.TRANSIENT); break; } // // Rule 108: FieldModifier ::= volatile // case 108: { btParser.setSym1(Flags.VOLATILE); break; } // // Rule 109: MethodDeclaration ::= MethodHeader MethodBody // case 109: { MethodDecl a = (MethodDecl) btParser.getSym(1); Block b = (Block) btParser.getSym(2); btParser.setSym1(a.body(b)); break; } // // Rule 110: MethodHeader ::= MethodModifiersopt ResultType MethodDeclarator Throwsopt // case 110: { Flags a = (Flags) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); TypeNode b = (TypeNode) btParser.getSym(2); Object[] o = (Object []) btParser.getSym(3); Name c = (Name) o[0]; List d = (List) o[1]; Integer e = (Integer) o[2]; List f = (List) btParser.getSym(4); if (b.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! } btParser.setSym1(nf.MethodDecl(pos(btParser.getFirstToken(2), btParser.getLastToken(3)), a, array((TypeNode) b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), e.intValue()), c.toString(), d, f, null)); break; } // // Rule 111: ResultType ::= Type // case 111: break; // // Rule 112: ResultType ::= void // case 112: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 113: MethodDeclarator ::= identifier LPAREN FormalParameterListopt RPAREN // case 113: { Object[] a = new Object[3]; a[0] = new Name(nf, ts, pos(), id(btParser.getToken(1)).getIdentifier()); a[1] = btParser.getSym(3); a[2] = new Integer(0); btParser.setSym1(a); break; } // // Rule 114: MethodDeclarator ::= MethodDeclarator LBRACKET RBRACKET // case 114: { Object[] a = (Object []) btParser.getSym(1); a[2] = new Integer(((Integer) a[2]).intValue() + 1); // btParser.setSym1(a); break; } // // Rule 115: FormalParameterList ::= LastFormalParameter // case 115: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 116: FormalParameterList ::= FormalParameters COMMA LastFormalParameter // case 116: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 117: FormalParameters ::= FormalParameter // case 117: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 118: FormalParameters ::= FormalParameters COMMA FormalParameter // case 118: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 119: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 119: { Flags f = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); VarDeclarator b = (VarDeclarator) btParser.getSym(3); btParser.setSym1(nf.Formal(pos(), f, array(a, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), b.dims), b.name)); break; } // // Rule 121: VariableModifiers ::= VariableModifiers VariableModifier // case 121: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 122: VariableModifier ::= final // case 122: { btParser.setSym1(Flags.FINAL); break; } // // Rule 123: LastFormalParameter ::= VariableModifiersopt Type ...opt VariableDeclaratorId // case 123: { Flags f = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); assert(btParser.getSym(3) == null); VarDeclarator b = (VarDeclarator) btParser.getSym(4); btParser.setSym1(nf.Formal(pos(), f, array(a, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), b.dims), b.name)); break; } // // Rule 124: MethodModifiers ::= MethodModifier // case 124: break; // // Rule 125: MethodModifiers ::= MethodModifiers MethodModifier // case 125: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 126: MethodModifier ::= public // case 126: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 127: MethodModifier ::= protected // case 127: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 128: MethodModifier ::= private // case 128: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 129: MethodModifier ::= abstract // case 129: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 130: MethodModifier ::= static // case 130: { btParser.setSym1(Flags.STATIC); break; } // // Rule 131: MethodModifier ::= final // case 131: { btParser.setSym1(Flags.FINAL); break; } // // Rule 132: MethodModifier ::= synchronized // case 132: { btParser.setSym1(Flags.SYNCHRONIZED); break; } // // Rule 133: MethodModifier ::= native // case 133: { btParser.setSym1(Flags.NATIVE); break; } // // Rule 134: MethodModifier ::= strictfp // case 134: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 135: Throws ::= throws ExceptionTypeList // case 135: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 136: ExceptionTypeList ::= ExceptionType // case 136: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 137: ExceptionTypeList ::= ExceptionTypeList COMMA ExceptionType // case 137: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 138: ExceptionType ::= ClassType // case 138: break; // // Rule 139: ExceptionType ::= TypeVariable // case 139: break; // // Rule 140: MethodBody ::= Block // case 140: break; // // Rule 141: MethodBody ::= SEMICOLON // case 141: btParser.setSym1(null); break; // // Rule 142: InstanceInitializer ::= Block // case 142: break; // // Rule 143: StaticInitializer ::= static Block // case 143: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 144: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 144: { Flags m = (Flags) btParser.getSym(1); Object[] o = (Object []) btParser.getSym(2); Name a = (Name) o[1]; List b = (List) o[2]; List c = (List) btParser.getSym(3); Block d = (Block) btParser.getSym(4); btParser.setSym1(nf.ConstructorDecl(pos(), m, a.toString(), b, c, d)); break; } // // Rule 145: ConstructorDeclarator ::= SimpleTypeName LPAREN FormalParameterListopt RPAREN // case 145: {//vj assert(btParser.getSym(1) == null); Object[] a = new Object[3];//vj a[0] = btParser.getSym(1); a[1] = btParser.getSym(1); a[2] = btParser.getSym(3); btParser.setSym1(a); break; } // // Rule 146: SimpleTypeName ::= identifier // case 146: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 147: ConstructorModifiers ::= ConstructorModifier // case 147: break; // // Rule 148: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 148: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 149: ConstructorModifier ::= public // case 149: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 150: ConstructorModifier ::= protected // case 150: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 151: ConstructorModifier ::= private // case 151: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 152: ConstructorBody ::= LBRACE ExplicitConstructorInvocationopt BlockStatementsopt RBRACE // case 152: { Stmt a = (Stmt) btParser.getSym(2); List l; if (a == null) l = (List) btParser.getSym(3); else { l = new TypedList(new LinkedList(), Stmt.class, false); List l2 = (List) btParser.getSym(3); l.add(a); l.addAll(l2); } btParser.setSym1(nf.Block(pos(), l)); break; } // // Rule 153: ExplicitConstructorInvocation ::= this LPAREN ArgumentListopt RPAREN SEMICOLON // case 153: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.ThisCall(pos(), b)); break; } // // Rule 154: ExplicitConstructorInvocation ::= super LPAREN ArgumentListopt RPAREN SEMICOLON // case 154: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.SuperCall(pos(), b)); break; } // // Rule 155: ExplicitConstructorInvocation ::= Primary DOT this LPAREN ArgumentListopt RPAREN SEMICOLON // case 155: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); List b = (List) btParser.getSym(5); btParser.setSym1(nf.ThisCall(pos(), a, b)); break; } // // Rule 156: ExplicitConstructorInvocation ::= Primary DOT super LPAREN ArgumentListopt RPAREN SEMICOLON // case 156: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); List b = (List) btParser.getSym(5); btParser.setSym1(nf.SuperCall(pos(), a, b)); break; } // // Rule 157: EnumDeclaration ::= ClassModifiersopt enum identifier Interfacesopt EnumBody // case 157: bad_rule = 157; break; // // Rule 158: EnumBody ::= LBRACE EnumConstantsopt ,opt EnumBodyDeclarationsopt RBRACE // case 158: bad_rule = 158; break; // // Rule 159: EnumConstants ::= EnumConstant // case 159: bad_rule = 159; break; // // Rule 160: EnumConstants ::= EnumConstants COMMA EnumConstant // case 160: bad_rule = 160; break; // // Rule 161: EnumConstant ::= identifier Argumentsopt ClassBodyopt // case 161: bad_rule = 161; break; // // Rule 162: Arguments ::= LPAREN ArgumentListopt RPAREN // case 162: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 163: EnumBodyDeclarations ::= SEMICOLON ClassBodyDeclarationsopt // case 163: bad_rule = 163; break; // // Rule 164: InterfaceDeclaration ::= NormalInterfaceDeclaration // case 164: break; // // Rule 165: NormalInterfaceDeclaration ::= InterfaceModifiersopt interface identifier ExtendsInterfacesopt InterfaceBody // case 165: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3));//vj assert(btParser.getSym(4) == null); List c = (List) btParser.getSym(4); ClassBody d = (ClassBody) btParser.getSym(5); btParser.setSym1(nf.ClassDecl(pos(), a.Interface(), b.getIdentifier(), null, c, d)); break; } // // Rule 166: InterfaceModifiers ::= InterfaceModifier // case 166: break; // // Rule 167: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 167: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 168: InterfaceModifier ::= public // case 168: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 169: InterfaceModifier ::= protected // case 169: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 170: InterfaceModifier ::= private // case 170: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 171: InterfaceModifier ::= abstract // case 171: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 172: InterfaceModifier ::= static // case 172: { btParser.setSym1(Flags.STATIC); break; } // // Rule 173: InterfaceModifier ::= strictfp // case 173: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 174: ExtendsInterfaces ::= extends InterfaceType // case 174: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 175: ExtendsInterfaces ::= ExtendsInterfaces COMMA InterfaceType // case 175: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 176: InterfaceBody ::= LBRACE InterfaceMemberDeclarationsopt RBRACE // case 176: { List a = (List)btParser.getSym(2); btParser.setSym1(nf.ClassBody(pos(), a)); break; } // // Rule 177: InterfaceMemberDeclarations ::= InterfaceMemberDeclaration // case 177: break; // // Rule 178: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 178: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 179: InterfaceMemberDeclaration ::= ConstantDeclaration // case 179: break; // // Rule 180: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 180: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 181: InterfaceMemberDeclaration ::= ClassDeclaration // case 181: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 182: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 182: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 183: InterfaceMemberDeclaration ::= SEMICOLON // case 183: { btParser.setSym1(Collections.EMPTY_LIST); break; } // // Rule 184: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 184: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Flags a = (Flags) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(2); List c = (List) btParser.getSym(3); for (Iterator i = c.iterator(); i.hasNext();) { VarDeclarator d = (VarDeclarator) i.next(); l.add(nf.FieldDecl(pos(btParser.getFirstToken(2), btParser.getLastToken()), a, array(b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), d.dims), d.name, d.init)); } btParser.setSym1(l); break; } // // Rule 185: ConstantModifiers ::= ConstantModifier // case 185: break; // // Rule 186: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 186: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 187: ConstantModifier ::= public // case 187: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 188: ConstantModifier ::= static // case 188: { btParser.setSym1(Flags.STATIC); break; } // // Rule 189: ConstantModifier ::= final // case 189: { btParser.setSym1(Flags.FINAL); break; } // // Rule 190: AbstractMethodDeclaration ::= AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt SEMICOLON // case 190: { Flags a = (Flags) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); TypeNode b = (TypeNode) btParser.getSym(2); Object[] o = (Object []) btParser.getSym(3); Name c = (Name) o[0]; List d = (List) o[1]; Integer e = (Integer) o[2]; List f = (List) btParser.getSym(4); if (b.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! } btParser.setSym1(nf.MethodDecl(pos(btParser.getFirstToken(2), btParser.getLastToken(3)), a, array((TypeNode) b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), e.intValue()), c.toString(), d, f, null)); break; } // // Rule 191: AbstractMethodModifiers ::= AbstractMethodModifier // case 191: break; // // Rule 192: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 192: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 193: AbstractMethodModifier ::= public // case 193: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 194: AbstractMethodModifier ::= abstract // case 194: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 195: AnnotationTypeDeclaration ::= InterfaceModifiersopt AT interface identifier AnnotationTypeBody // case 195: bad_rule = 195; break; // // Rule 196: AnnotationTypeBody ::= LBRACE AnnotationTypeElementDeclarationsopt RBRACE // case 196: bad_rule = 196; break; // // Rule 197: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclaration // case 197: bad_rule = 197; break; // // Rule 198: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclarations AnnotationTypeElementDeclaration // case 198: bad_rule = 198; break; // // Rule 199: AnnotationTypeElementDeclaration ::= AbstractMethodModifiersopt Type identifier LPAREN RPAREN DefaultValueopt SEMICOLON // case 199: bad_rule = 199; break; // // Rule 200: AnnotationTypeElementDeclaration ::= ConstantDeclaration // case 200: bad_rule = 200; break; // // Rule 201: AnnotationTypeElementDeclaration ::= ClassDeclaration // case 201: bad_rule = 201; break; // // Rule 202: AnnotationTypeElementDeclaration ::= InterfaceDeclaration // case 202: bad_rule = 202; break; // // Rule 203: AnnotationTypeElementDeclaration ::= EnumDeclaration // case 203: bad_rule = 203; break; // // Rule 204: AnnotationTypeElementDeclaration ::= AnnotationTypeDeclaration // case 204: bad_rule = 204; break; // // Rule 205: AnnotationTypeElementDeclaration ::= SEMICOLON // case 205: bad_rule = 205; break; // // Rule 206: DefaultValue ::= default ElementValue // case 206: bad_rule = 206; break; // // Rule 207: Annotations ::= Annotation // case 207: bad_rule = 207; break; // // Rule 208: Annotations ::= Annotations Annotation // case 208: bad_rule = 208; break; // // Rule 209: Annotation ::= NormalAnnotation // case 209: bad_rule = 209; break; // // Rule 210: Annotation ::= MarkerAnnotation // case 210: bad_rule = 210; break; // // Rule 211: Annotation ::= SingleElementAnnotation // case 211: bad_rule = 211; break; // // Rule 212: NormalAnnotation ::= AT TypeName LPAREN ElementValuePairsopt RPAREN // case 212: bad_rule = 212; break; // // Rule 213: ElementValuePairs ::= ElementValuePair // case 213: bad_rule = 213; break; // // Rule 214: ElementValuePairs ::= ElementValuePairs COMMA ElementValuePair // case 214: bad_rule = 214; break; // // Rule 215: ElementValuePair ::= SimpleName EQUAL ElementValue // case 215: bad_rule = 215; break; // // Rule 216: SimpleName ::= identifier // case 216: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 217: ElementValue ::= ConditionalExpression // case 217: bad_rule = 217; break; // // Rule 218: ElementValue ::= Annotation // case 218: bad_rule = 218; break; // // Rule 219: ElementValue ::= ElementValueArrayInitializer // case 219: bad_rule = 219; break; // // Rule 220: ElementValueArrayInitializer ::= LBRACE ElementValuesopt ,opt RBRACE // case 220: bad_rule = 220; break; // // Rule 221: ElementValues ::= ElementValue // case 221: bad_rule = 221; break; // // Rule 222: ElementValues ::= ElementValues COMMA ElementValue // case 222: bad_rule = 222; break; // // Rule 223: MarkerAnnotation ::= AT TypeName // case 223: bad_rule = 223; break; // // Rule 224: SingleElementAnnotation ::= AT TypeName LPAREN ElementValue RPAREN // case 224: bad_rule = 224; break; // // Rule 225: ArrayInitializer ::= LBRACE VariableInitializersopt ,opt RBRACE // case 225: { List a = (List) btParser.getSym(2); if (a == null) btParser.setSym1(nf.ArrayInit(pos())); else btParser.setSym1(nf.ArrayInit(pos(), a)); break; } // // Rule 226: VariableInitializers ::= VariableInitializer // case 226: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 227: VariableInitializers ::= VariableInitializers COMMA VariableInitializer // case 227: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 228: Block ::= LBRACE BlockStatementsopt RBRACE // case 228: { List l = (List) btParser.getSym(2); btParser.setSym1(nf.Block(pos(), l)); break; } // // Rule 229: BlockStatements ::= BlockStatement // case 229: { List l = new TypedList(new LinkedList(), Stmt.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); btParser.setSym1(l); break; } // // Rule 230: BlockStatements ::= BlockStatements BlockStatement // case 230: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 231: BlockStatement ::= LocalVariableDeclarationStatement // case 231: break; // // Rule 232: BlockStatement ::= ClassDeclaration // case 232: { ClassDecl a = (ClassDecl) btParser.getSym(1); List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), a)); btParser.setSym1(l); break; } // // Rule 233: BlockStatement ::= Statement // case 233: { List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 234: LocalVariableDeclarationStatement ::= LocalVariableDeclaration SEMICOLON // case 234: break; // // Rule 235: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 235: { Flags flags = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); List b = (List) btParser.getSym(3); List l = new TypedList(new LinkedList(), LocalDecl.class, false); for (Iterator i = b.iterator(); i.hasNext(); ) { VarDeclarator d = (VarDeclarator) i.next(); l.add(nf.LocalDecl(pos(d), flags, array(a, pos(d), d.dims), d.name, d.init)); } btParser.setSym1(l); break; } // // Rule 236: Statement ::= StatementWithoutTrailingSubstatement // case 236: break; // // Rule 237: Statement ::= LabeledStatement // case 237: break; // // Rule 238: Statement ::= IfThenStatement // case 238: break; // // Rule 239: Statement ::= IfThenElseStatement // case 239: break; // // Rule 240: Statement ::= WhileStatement // case 240: break; // // Rule 241: Statement ::= ForStatement // case 241: break; // // Rule 242: StatementWithoutTrailingSubstatement ::= Block // case 242: break; // // Rule 243: StatementWithoutTrailingSubstatement ::= EmptyStatement // case 243: break; // // Rule 244: StatementWithoutTrailingSubstatement ::= ExpressionStatement // case 244: break; // // Rule 245: StatementWithoutTrailingSubstatement ::= AssertStatement // case 245: break; // // Rule 246: StatementWithoutTrailingSubstatement ::= SwitchStatement // case 246: break; // // Rule 247: StatementWithoutTrailingSubstatement ::= DoStatement // case 247: break; // // Rule 248: StatementWithoutTrailingSubstatement ::= BreakStatement // case 248: break; // // Rule 249: StatementWithoutTrailingSubstatement ::= ContinueStatement // case 249: break; // // Rule 250: StatementWithoutTrailingSubstatement ::= ReturnStatement // case 250: break; // // Rule 251: StatementWithoutTrailingSubstatement ::= SynchronizedStatement // case 251: break; // // Rule 252: StatementWithoutTrailingSubstatement ::= ThrowStatement // case 252: break; // // Rule 253: StatementWithoutTrailingSubstatement ::= TryStatement // case 253: break; // // Rule 254: StatementNoShortIf ::= StatementWithoutTrailingSubstatement // case 254: break; // // Rule 255: StatementNoShortIf ::= LabeledStatementNoShortIf // case 255: break; // // Rule 256: StatementNoShortIf ::= IfThenElseStatementNoShortIf // case 256: break; // // Rule 257: StatementNoShortIf ::= WhileStatementNoShortIf // case 257: break; // // Rule 258: StatementNoShortIf ::= ForStatementNoShortIf // case 258: break; // // Rule 259: IfThenStatement ::= if LPAREN Expression RPAREN Statement // case 259: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.If(pos(), a, b)); break; } // // Rule 260: IfThenElseStatement ::= if LPAREN Expression RPAREN StatementNoShortIf else Statement // case 260: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); Stmt c = (Stmt) btParser.getSym(7); btParser.setSym1(nf.If(pos(), a, b, c)); break; } // // Rule 261: IfThenElseStatementNoShortIf ::= if LPAREN Expression RPAREN StatementNoShortIf else StatementNoShortIf // case 261: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); Stmt c = (Stmt) btParser.getSym(7); btParser.setSym1(nf.If(pos(), a, b, c)); break; } // // Rule 262: EmptyStatement ::= SEMICOLON // case 262: { btParser.setSym1(nf.Empty(pos())); break; } // // Rule 263: LabeledStatement ::= identifier COLON Statement // case 263: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 264: LabeledStatementNoShortIf ::= identifier COLON StatementNoShortIf // case 264: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 265: ExpressionStatement ::= StatementExpression SEMICOLON // case 265: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Eval(pos(), a)); break; } // // Rule 266: StatementExpression ::= Assignment // case 266: break; // // Rule 267: StatementExpression ::= PreIncrementExpression // case 267: break; // // Rule 268: StatementExpression ::= PreDecrementExpression // case 268: break; // // Rule 269: StatementExpression ::= PostIncrementExpression // case 269: break; // // Rule 270: StatementExpression ::= PostDecrementExpression // case 270: break; // // Rule 271: StatementExpression ::= MethodInvocation // case 271: break; // // Rule 272: StatementExpression ::= ClassInstanceCreationExpression // case 272: break; // // Rule 273: AssertStatement ::= assert Expression SEMICOLON // case 273: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Assert(pos(), a)); break; } // // Rule 274: AssertStatement ::= assert Expression COLON Expression SEMICOLON // case 274: { Expr a = (Expr) btParser.getSym(2), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Assert(pos(), a, b)); break; } // // Rule 275: SwitchStatement ::= switch LPAREN Expression RPAREN SwitchBlock // case 275: { Expr a = (Expr) btParser.getSym(3); List b = (List) btParser.getSym(5); btParser.setSym1(nf.Switch(pos(), a, b)); break; } // // Rule 276: SwitchBlock ::= LBRACE SwitchBlockStatementGroupsopt SwitchLabelsopt RBRACE // case 276: { List l = (List) btParser.getSym(2), l2 = (List) btParser.getSym(3); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 277: SwitchBlockStatementGroups ::= SwitchBlockStatementGroup // case 277: break; // // Rule 278: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 278: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 279: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 279: { List l = new TypedList(new LinkedList(), SwitchElement.class, false); List l1 = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l1); l.add(nf.SwitchBlock(pos(), l2)); btParser.setSym1(l); break; } // // Rule 280: SwitchLabels ::= SwitchLabel // case 280: { List l = new TypedList(new LinkedList(), Case.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 281: SwitchLabels ::= SwitchLabels SwitchLabel // case 281: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 282: SwitchLabel ::= case ConstantExpression COLON // case 282: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Case(pos(), a)); break; } // // Rule 283: SwitchLabel ::= case EnumConstant COLON // case 283: bad_rule = 283; break; // // Rule 284: SwitchLabel ::= default COLON // case 284: { btParser.setSym1(nf.Default(pos())); break; } // // Rule 285: EnumConstant ::= identifier // case 285: bad_rule = 285; break; // // Rule 286: WhileStatement ::= while LPAREN Expression RPAREN Statement // case 286: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 287: WhileStatementNoShortIf ::= while LPAREN Expression RPAREN StatementNoShortIf // case 287: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 288: DoStatement ::= do Statement while LPAREN Expression RPAREN SEMICOLON // case 288: { Stmt a = (Stmt) btParser.getSym(2); Expr b = (Expr) btParser.getSym(5); btParser.setSym1(nf.Do(pos(), a, b)); break; } // // Rule 289: ForStatement ::= BasicForStatement // case 289: break; // // Rule 290: ForStatement ::= EnhancedForStatement // case 290: break; // // Rule 291: BasicForStatement ::= for LPAREN ForInitopt SEMICOLON Expressionopt SEMICOLON ForUpdateopt RPAREN Statement // case 291: { List a = (List) btParser.getSym(3); Expr b = (Expr) btParser.getSym(5); List c = (List) btParser.getSym(7); Stmt d = (Stmt) btParser.getSym(9); btParser.setSym1(nf.For(pos(), a, b, c, d)); break; } // // Rule 292: ForStatementNoShortIf ::= for LPAREN ForInitopt SEMICOLON Expressionopt SEMICOLON ForUpdateopt RPAREN StatementNoShortIf // case 292: { List a = (List) btParser.getSym(3); Expr b = (Expr) btParser.getSym(5); List c = (List) btParser.getSym(7); Stmt d = (Stmt) btParser.getSym(9); btParser.setSym1(nf.For(pos(), a, b, c, d)); break; } // // Rule 293: ForInit ::= StatementExpressionList // case 293: break; // // Rule 294: ForInit ::= LocalVariableDeclaration // case 294: { List l = new TypedList(new LinkedList(), ForInit.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 295: ForUpdate ::= StatementExpressionList // case 295: break; // // Rule 296: StatementExpressionList ::= StatementExpression // case 296: { List l = new TypedList(new LinkedList(), Eval.class, false); Expr a = (Expr) btParser.getSym(1); l.add(nf.Eval(pos(), a)); btParser.setSym1(l); break; } // // Rule 297: StatementExpressionList ::= StatementExpressionList COMMA StatementExpression // case 297: { List l = (List) btParser.getSym(1); Expr a = (Expr) btParser.getSym(3); l.add(nf.Eval(pos(), a)); //btParser.setSym1(l); break; } // // Rule 298: BreakStatement ::= break identifieropt SEMICOLON // case 298: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Break(pos())); else btParser.setSym1(nf.Break(pos(), a.toString())); break; } // // Rule 299: ContinueStatement ::= continue identifieropt SEMICOLON // case 299: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Continue(pos())); else btParser.setSym1(nf.Continue(pos(), a.toString())); break; } // // Rule 300: ReturnStatement ::= return Expressionopt SEMICOLON // case 300: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Return(pos(), a)); break; } // // Rule 301: ThrowStatement ::= throw Expression SEMICOLON // case 301: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Throw(pos(), a)); break; } // // Rule 302: SynchronizedStatement ::= synchronized LPAREN Expression RPAREN Block // case 302: { Expr a = (Expr) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Synchronized(pos(), a, b)); break; } // // Rule 303: TryStatement ::= try Block Catches // case 303: { Block a = (Block) btParser.getSym(2); List b = (List) btParser.getSym(3); btParser.setSym1(nf.Try(pos(), a, b)); break; } // // Rule 304: TryStatement ::= try Block Catchesopt Finally // case 304: { Block a = (Block) btParser.getSym(2); List b = (List) btParser.getSym(3); Block c = (Block) btParser.getSym(4); btParser.setSym1(nf.Try(pos(), a, b, c)); break; } // // Rule 305: Catches ::= CatchClause // case 305: { List l = new TypedList(new LinkedList(), Catch.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 306: Catches ::= Catches CatchClause // case 306: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 307: CatchClause ::= catch LPAREN FormalParameter RPAREN Block // case 307: { Formal a = (Formal) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Catch(pos(), a, b)); break; } // // Rule 308: Finally ::= finally Block // case 308: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 309: Primary ::= PrimaryNoNewArray // case 309: break; // // Rule 310: Primary ::= ArrayCreationExpression // case 310: break; // // Rule 311: PrimaryNoNewArray ::= Literal // case 311: break; // // Rule 312: PrimaryNoNewArray ::= Type DOT class // case 312: { Object o = btParser.getSym(1); if (o instanceof Name) { Name a = (Name) o; btParser.setSym1(nf.ClassLit(pos(), a.toType())); } else if (o instanceof TypeNode) { TypeNode a = (TypeNode) o; btParser.setSym1(nf.ClassLit(pos(), a)); } else if (o instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) o; btParser.setSym1(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 313: PrimaryNoNewArray ::= void DOT class // case 313: { btParser.setSym1(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(btParser.getToken(1)), ts.Void()))); break; } // // Rule 314: PrimaryNoNewArray ::= this // case 314: { btParser.setSym1(nf.This(pos())); break; } // // Rule 315: PrimaryNoNewArray ::= ClassName DOT this // case 315: { Name a = (Name) btParser.getSym(1); btParser.setSym1(nf.This(pos(), a.toType())); break; } // // Rule 316: PrimaryNoNewArray ::= LPAREN Expression RPAREN // case 316: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 317: PrimaryNoNewArray ::= ClassInstanceCreationExpression // case 317: break; // // Rule 318: PrimaryNoNewArray ::= FieldAccess // case 318: break; // // Rule 319: PrimaryNoNewArray ::= MethodInvocation // case 319: break; // // Rule 320: PrimaryNoNewArray ::= ArrayAccess // case 320: break; // // Rule 321: Literal ::= IntegerLiteral // case 321: { // TODO: remove any prefix (such as 0x) polyglot.lex.IntegerLiteral a = int_lit(btParser.getToken(1), 10); btParser.setSym1(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 322: Literal ::= LongLiteral // case 322: { // TODO: remove any suffix (such as L) or prefix (such as 0x) polyglot.lex.LongLiteral a = long_lit(btParser.getToken(1), 10); btParser.setSym1(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 323: Literal ::= FloatingPointLiteral // case 323: { // TODO: remove any suffix (such as F) polyglot.lex.FloatLiteral a = float_lit(btParser.getToken(1)); btParser.setSym1(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 324: Literal ::= DoubleLiteral // case 324: { // TODO: remove any suffix (such as D) polyglot.lex.DoubleLiteral a = double_lit(btParser.getToken(1)); btParser.setSym1(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 325: Literal ::= BooleanLiteral // case 325: { polyglot.lex.BooleanLiteral a = boolean_lit(btParser.getToken(1)); btParser.setSym1(nf.BooleanLit(pos(), a.getValue().booleanValue())); break; } // // Rule 326: Literal ::= CharacterLiteral // case 326: { polyglot.lex.CharacterLiteral a = char_lit(btParser.getToken(1)); btParser.setSym1(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 327: Literal ::= StringLiteral // case 327: { polyglot.lex.StringLiteral a = string_lit(btParser.getToken(1)); btParser.setSym1(nf.StringLit(pos(), a.getValue())); break; } // // Rule 328: Literal ::= null // case 328: { btParser.setSym1(nf.NullLit(pos())); break; } // // Rule 329: BooleanLiteral ::= true // case 329: break; // // Rule 330: BooleanLiteral ::= false // case 330: break; // // Rule 331: ClassInstanceCreationExpression ::= new ClassOrInterfaceType LPAREN ArgumentListopt RPAREN ClassBodyopt // case 331: {//vj assert(btParser.getSym(2) == null); TypeNode a = (TypeNode) btParser.getSym(2);//vj assert(btParser.getSym(4) == null); List b = (List) btParser.getSym(4); ClassBody c = (ClassBody) btParser.getSym(6); if (c == null) btParser.setSym1(nf.New(pos(), a, b)); else btParser.setSym1(nf.New(pos(), a, b, c)); break; } // // Rule 332: ClassInstanceCreationExpression ::= Primary DOT new identifier LPAREN ArgumentListopt RPAREN ClassBodyopt // case 332: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); Name b = new Name(nf, ts, pos(), id(btParser.getToken(4)).getIdentifier());//vj assert(btParser.getSym(4) == null); List c = (List) btParser.getSym(6); ClassBody d = (ClassBody) btParser.getSym(8); if (d == null) btParser.setSym1(nf.New(pos(), a, b.toType(), c)); else btParser.setSym1(nf.New(pos(), a, b.toType(), c, d)); break; } // // Rule 333: ClassInstanceCreationExpression ::= AmbiguousName DOT new identifier LPAREN ArgumentListopt RPAREN ClassBodyopt // case 333: { Name a = (Name) btParser.getSym(1);//vj assert(btParser.getSym(4) == null); Name b = new Name(nf, ts, pos(), id(btParser.getToken(4)).getIdentifier());//vj assert(btParser.getSym(6) == null); List c = (List) btParser.getSym(6); ClassBody d = (ClassBody) btParser.getSym(8); if (d == null) btParser.setSym1(nf.New(pos(), a.toExpr(), b.toType(), c)); else btParser.setSym1(nf.New(pos(), a.toExpr(), b.toType(), c, d)); break; } // // Rule 334: ArgumentList ::= Expression // case 334: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 335: ArgumentList ::= ArgumentList COMMA Expression // case 335: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 336: ArrayCreationExpression ::= new PrimitiveType DimExprs Dimsopt // case 336: { CanonicalTypeNode a = (CanonicalTypeNode) btParser.getSym(2); List b = (List) btParser.getSym(3); Integer c = (Integer) btParser.getSym(4); btParser.setSym1(nf.NewArray(pos(), a, b, c.intValue())); break; } // // Rule 337: ArrayCreationExpression ::= new ClassOrInterfaceType DimExprs Dimsopt // case 337: { TypeNode a = (TypeNode) btParser.getSym(2); List b = (List) btParser.getSym(3); Integer c = (Integer) btParser.getSym(4); btParser.setSym1(nf.NewArray(pos(), a, b, c.intValue())); break; } // // Rule 338: ArrayCreationExpression ::= new PrimitiveType Dims ArrayInitializer // case 338: { CanonicalTypeNode a = (CanonicalTypeNode) btParser.getSym(2); Integer b = (Integer) btParser.getSym(3); ArrayInit c = (ArrayInit) btParser.getSym(4); btParser.setSym1(nf.NewArray(pos(), a, b.intValue(), c)); break; } // // Rule 339: ArrayCreationExpression ::= new ClassOrInterfaceType Dims ArrayInitializer // case 339: { TypeNode a = (TypeNode) btParser.getSym(2); Integer b = (Integer) btParser.getSym(3); ArrayInit c = (ArrayInit) btParser.getSym(4); btParser.setSym1(nf.NewArray(pos(), a, b.intValue(), c)); break; } // // Rule 340: DimExprs ::= DimExpr // case 340: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 341: DimExprs ::= DimExprs DimExpr // case 341: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 342: DimExpr ::= LBRACKET Expression RBRACKET // case 342: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(a.position(pos())); break; } // // Rule 343: Dims ::= LBRACKET RBRACKET // case 343: { btParser.setSym1(new Integer(1)); break; } // // Rule 344: Dims ::= Dims LBRACKET RBRACKET // case 344: { Integer a = (Integer) btParser.getSym(1); btParser.setSym1(new Integer(a.intValue() + 1)); break; } // // Rule 345: FieldAccess ::= Primary DOT identifier // case 345: { Expr a = (Expr) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(), a, b.getIdentifier())); break; } // // Rule 346: FieldAccess ::= super DOT identifier // case 346: { polyglot.lex.Identifier a = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(btParser.getLastToken()), nf.Super(pos(btParser.getFirstToken())), a.getIdentifier())); break; } // // Rule 347: FieldAccess ::= ClassName DOT super DOT identifier // case 347: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(btParser.getLastToken()), nf.Super(pos(btParser.getFirstToken(3)), a.toType()), b.getIdentifier())); break; } // // Rule 348: MethodInvocation ::= MethodName LPAREN ArgumentListopt RPAREN // case 348: { Name a = (Name) btParser.getSym(1); List b = (List) btParser.getSym(3); btParser.setSym1(nf.Call(pos(), a.prefix == null ? null : a.prefix.toReceiver(), a.name, b)); break; } // // Rule 349: MethodInvocation ::= Primary DOT identifier LPAREN ArgumentListopt RPAREN // case 349: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(3) == null); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.Call(pos(), a, b.getIdentifier(), c)); break; } // // Rule 350: MethodInvocation ::= super DOT identifier LPAREN ArgumentListopt RPAREN // case 350: {//vj assert(btParser.getSym(3) == null); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.Call(pos(), nf.Super(pos(btParser.getFirstToken())), b.getIdentifier(), c)); break; } // // Rule 351: MethodInvocation ::= ClassName DOT super DOT identifier LPAREN ArgumentListopt RPAREN // case 351: { Name a = (Name) btParser.getSym(1);//vj assert(btParser.getSym(5) == null); polyglot.lex.Identifier b = id(btParser.getToken(5)); List c = (List) btParser.getSym(7); btParser.setSym1(nf.Call(pos(), nf.Super(pos(btParser.getFirstToken(3)), a.toType()), b.getIdentifier(), c)); break; } // // Rule 352: PostfixExpression ::= Primary // case 352: break; // // Rule 353: PostfixExpression ::= ExpressionName // case 353: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 354: PostfixExpression ::= PostIncrementExpression // case 354: break; // // Rule 355: PostfixExpression ::= PostDecrementExpression // case 355: break; // // Rule 356: PostIncrementExpression ::= PostfixExpression PLUS_PLUS // case 356: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_INC)); break; } // // Rule 357: PostDecrementExpression ::= PostfixExpression MINUS_MINUS // case 357: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_DEC)); break; } // // Rule 358: UnaryExpression ::= PreIncrementExpression // case 358: break; // // Rule 359: UnaryExpression ::= PreDecrementExpression // case 359: break; // // Rule 360: UnaryExpression ::= PLUS UnaryExpression // case 360: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.POS, a)); break; } // // Rule 361: UnaryExpression ::= MINUS UnaryExpression // case 361: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NEG, a)); break; } // // Rule 363: PreIncrementExpression ::= PLUS_PLUS UnaryExpression // case 363: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_INC, a)); break; } // // Rule 364: PreDecrementExpression ::= MINUS_MINUS UnaryExpression // case 364: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_DEC, a)); break; } // // Rule 365: UnaryExpressionNotPlusMinus ::= PostfixExpression // case 365: break; // // Rule 366: UnaryExpressionNotPlusMinus ::= TWIDDLE UnaryExpression // case 366: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.BIT_NOT, a)); break; } // // Rule 367: UnaryExpressionNotPlusMinus ::= NOT UnaryExpression // case 367: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NOT, a)); break; } // // Rule 369: MultiplicativeExpression ::= UnaryExpression // case 369: break; // // Rule 370: MultiplicativeExpression ::= MultiplicativeExpression MULTIPLY UnaryExpression // case 370: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MUL, b)); break; } // // Rule 371: MultiplicativeExpression ::= MultiplicativeExpression DIVIDE UnaryExpression // case 371: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.DIV, b)); break; } // // Rule 372: MultiplicativeExpression ::= MultiplicativeExpression REMAINDER UnaryExpression // case 372: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MOD, b)); break; } // // Rule 373: AdditiveExpression ::= MultiplicativeExpression // case 373: break; // // Rule 374: AdditiveExpression ::= AdditiveExpression PLUS MultiplicativeExpression // case 374: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.ADD, b)); break; } // // Rule 375: AdditiveExpression ::= AdditiveExpression MINUS MultiplicativeExpression // case 375: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SUB, b)); break; } // // Rule 376: ShiftExpression ::= AdditiveExpression // case 376: break; // // Rule 377: ShiftExpression ::= ShiftExpression LEFT_SHIFT AdditiveExpression // case 377: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SHL, b)); break; } // // Rule 378: ShiftExpression ::= ShiftExpression GREATER GREATER AdditiveExpression // case 378: { // TODO: make sure that there is no space between the ">" signs Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Binary(pos(), a, Binary.SHR, b)); break; } // // Rule 379: ShiftExpression ::= ShiftExpression GREATER GREATER GREATER AdditiveExpression // case 379: { // TODO: make sure that there is no space between the ">" signs Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(5); btParser.setSym1(nf.Binary(pos(), a, Binary.USHR, b)); break; } // // Rule 380: RelationalExpression ::= ShiftExpression // case 380: break; // // Rule 381: RelationalExpression ::= RelationalExpression LESS ShiftExpression // case 381: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LT, b)); break; } // // Rule 382: RelationalExpression ::= RelationalExpression GREATER ShiftExpression // case 382: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.GT, b)); break; } // // Rule 383: RelationalExpression ::= RelationalExpression LESS_EQUAL ShiftExpression // case 383: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LE, b)); break; } // // Rule 384: RelationalExpression ::= RelationalExpression GREATER EQUAL ShiftExpression // case 384: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Binary(pos(), a, Binary.GE, b)); break; } // // Rule 385: EqualityExpression ::= RelationalExpression // case 385: break; // // Rule 386: EqualityExpression ::= EqualityExpression EQUAL_EQUAL RelationalExpression // case 386: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.EQ, b)); break; } // // Rule 387: EqualityExpression ::= EqualityExpression NOT_EQUAL RelationalExpression // case 387: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.NE, b)); break; } // // Rule 388: AndExpression ::= EqualityExpression // case 388: break; // // Rule 389: AndExpression ::= AndExpression AND EqualityExpression // case 389: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_AND, b)); break; } // // Rule 390: ExclusiveOrExpression ::= AndExpression // case 390: break; // // Rule 391: ExclusiveOrExpression ::= ExclusiveOrExpression XOR AndExpression // case 391: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_XOR, b)); break; } // // Rule 392: InclusiveOrExpression ::= ExclusiveOrExpression // case 392: break; // // Rule 393: InclusiveOrExpression ::= InclusiveOrExpression OR ExclusiveOrExpression // case 393: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_OR, b)); break; } // // Rule 394: ConditionalAndExpression ::= InclusiveOrExpression // case 394: break; // // Rule 395: ConditionalAndExpression ::= ConditionalAndExpression AND_AND InclusiveOrExpression // case 395: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_AND, b)); break; } // // Rule 396: ConditionalOrExpression ::= ConditionalAndExpression // case 396: break; // // Rule 397: ConditionalOrExpression ::= ConditionalOrExpression OR_OR ConditionalAndExpression // case 397: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_OR, b)); break; } // // Rule 398: ConditionalExpression ::= ConditionalOrExpression // case 398: break; // // Rule 399: ConditionalExpression ::= ConditionalOrExpression QUESTION Expression COLON ConditionalExpression // case 399: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3), c = (Expr) btParser.getSym(5); btParser.setSym1(nf.Conditional(pos(), a, b, c)); break; } // // Rule 400: AssignmentExpression ::= ConditionalExpression // case 400: break; // // Rule 401: AssignmentExpression ::= Assignment // case 401: break; // // Rule 402: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 402: { Expr a = (Expr) btParser.getSym(1); Assign.Operator b = (Assign.Operator) btParser.getSym(2); Expr c = (Expr) btParser.getSym(3); btParser.setSym1(nf.Assign(pos(), a, b, c)); break; } // // Rule 403: LeftHandSide ::= ExpressionName // case 403: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 404: LeftHandSide ::= FieldAccess // case 404: break; // // Rule 405: LeftHandSide ::= ArrayAccess // case 405: break; // // Rule 406: AssignmentOperator ::= EQUAL // case 406: { btParser.setSym1(Assign.ASSIGN); break; } // // Rule 407: AssignmentOperator ::= MULTIPLY_EQUAL // case 407: { btParser.setSym1(Assign.MUL_ASSIGN); break; } // // Rule 408: AssignmentOperator ::= DIVIDE_EQUAL // case 408: { btParser.setSym1(Assign.DIV_ASSIGN); break; } // // Rule 409: AssignmentOperator ::= REMAINDER_EQUAL // case 409: { btParser.setSym1(Assign.MOD_ASSIGN); break; } // // Rule 410: AssignmentOperator ::= PLUS_EQUAL // case 410: { btParser.setSym1(Assign.ADD_ASSIGN); break; } // // Rule 411: AssignmentOperator ::= MINUS_EQUAL // case 411: { btParser.setSym1(Assign.SUB_ASSIGN); break; } // // Rule 412: AssignmentOperator ::= LEFT_SHIFT_EQUAL // case 412: { btParser.setSym1(Assign.SHL_ASSIGN); break; } // // Rule 413: AssignmentOperator ::= GREATER GREATER EQUAL // case 413: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.SHR_ASSIGN); break; } // // Rule 414: AssignmentOperator ::= GREATER GREATER GREATER EQUAL // case 414: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.USHR_ASSIGN); break; } // // Rule 415: AssignmentOperator ::= AND_EQUAL // case 415: { btParser.setSym1(Assign.BIT_AND_ASSIGN); break; } // // Rule 416: AssignmentOperator ::= XOR_EQUAL // case 416: { btParser.setSym1(Assign.BIT_XOR_ASSIGN); break; } // // Rule 417: AssignmentOperator ::= OR_EQUAL // case 417: { btParser.setSym1(Assign.BIT_OR_ASSIGN); break; } // // Rule 418: Expression ::= AssignmentExpression // case 418: break; // // Rule 419: ConstantExpression ::= Expression // case 419: break; // // Rule 420: Dimsopt ::= // case 420: { btParser.setSym1(new Integer(0)); break; } // // Rule 421: Dimsopt ::= Dims // case 421: break; // // Rule 422: Catchesopt ::= // case 422: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 423: Catchesopt ::= Catches // case 423: break; // // Rule 424: identifieropt ::= // case 424: btParser.setSym1(null); break; // // Rule 425: identifieropt ::= identifier // case 425: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 426: ForUpdateopt ::= // case 426: { btParser.setSym1(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 427: ForUpdateopt ::= ForUpdate // case 427: break; // // Rule 428: Expressionopt ::= // case 428: btParser.setSym1(null); break; // // Rule 429: Expressionopt ::= Expression // case 429: break; // // Rule 430: ForInitopt ::= // case 430: { btParser.setSym1(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 431: ForInitopt ::= ForInit // case 431: break; // // Rule 432: SwitchLabelsopt ::= // case 432: { btParser.setSym1(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 433: SwitchLabelsopt ::= SwitchLabels // case 433: break; // // Rule 434: SwitchBlockStatementGroupsopt ::= // case 434: { btParser.setSym1(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 435: SwitchBlockStatementGroupsopt ::= SwitchBlockStatementGroups // case 435: break; // // Rule 436: VariableModifiersopt ::= // case 436: { btParser.setSym1(Flags.NONE); break; } // // Rule 437: VariableModifiersopt ::= VariableModifiers // case 437: break; // // Rule 438: VariableInitializersopt ::= // case 438: btParser.setSym1(null); break; // // Rule 439: VariableInitializersopt ::= VariableInitializers // case 439: break; // // Rule 440: ElementValuesopt ::= // case 440: btParser.setSym1(null); break; // // Rule 441: ElementValuesopt ::= ElementValues // case 441: bad_rule = 441; break; // // Rule 442: ElementValuePairsopt ::= // case 442: btParser.setSym1(null); break; // // Rule 443: ElementValuePairsopt ::= ElementValuePairs // case 443: bad_rule = 443; break; // // Rule 444: DefaultValueopt ::= // case 444: btParser.setSym1(null); break; // // Rule 445: DefaultValueopt ::= DefaultValue // case 445: break; // // Rule 446: AnnotationTypeElementDeclarationsopt ::= // case 446: btParser.setSym1(null); break; // // Rule 447: AnnotationTypeElementDeclarationsopt ::= AnnotationTypeElementDeclarations // case 447: bad_rule = 447; break; // // Rule 448: AbstractMethodModifiersopt ::= // case 448: { btParser.setSym1(Flags.NONE); break; } // // Rule 449: AbstractMethodModifiersopt ::= AbstractMethodModifiers // case 449: break; // // Rule 450: ConstantModifiersopt ::= // case 450: { btParser.setSym1(Flags.NONE); break; } // // Rule 451: ConstantModifiersopt ::= ConstantModifiers // case 451: break; // // Rule 452: InterfaceMemberDeclarationsopt ::= // case 452: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 453: InterfaceMemberDeclarationsopt ::= InterfaceMemberDeclarations // case 453: break; // // Rule 454: ExtendsInterfacesopt ::= // case 454: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 455: ExtendsInterfacesopt ::= ExtendsInterfaces // case 455: break; // // Rule 456: InterfaceModifiersopt ::= // case 456: { btParser.setSym1(Flags.NONE); break; } // // Rule 457: InterfaceModifiersopt ::= InterfaceModifiers // case 457: break; // // Rule 458: ClassBodyopt ::= // case 458: btParser.setSym1(null); break; // // Rule 459: ClassBodyopt ::= ClassBody // case 459: break; // // Rule 460: Argumentsopt ::= // case 460: btParser.setSym1(null); break; // // Rule 461: Argumentsopt ::= Arguments // case 461: bad_rule = 461; break; // // Rule 462: EnumBodyDeclarationsopt ::= // case 462: btParser.setSym1(null); break; // // Rule 463: EnumBodyDeclarationsopt ::= EnumBodyDeclarations // case 463: bad_rule = 463; break; // // Rule 464: ,opt ::= // case 464: btParser.setSym1(null); break; // // Rule 465: ,opt ::= COMMA // case 465: break; // // Rule 466: EnumConstantsopt ::= // case 466: btParser.setSym1(null); break; // // Rule 467: EnumConstantsopt ::= EnumConstants // case 467: bad_rule = 467; break; // // Rule 468: ArgumentListopt ::= // case 468: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 469: ArgumentListopt ::= ArgumentList // case 469: break; // // Rule 470: BlockStatementsopt ::= // case 470: { btParser.setSym1(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 471: BlockStatementsopt ::= BlockStatements // case 471: break; // // Rule 472: ExplicitConstructorInvocationopt ::= // case 472: btParser.setSym1(null); break; // // Rule 473: ExplicitConstructorInvocationopt ::= ExplicitConstructorInvocation // case 473: break; // // Rule 474: ConstructorModifiersopt ::= // case 474: { btParser.setSym1(Flags.NONE); break; } // // Rule 475: ConstructorModifiersopt ::= ConstructorModifiers // case 475: break; // // Rule 476: ...opt ::= // case 476: btParser.setSym1(null); break; // // Rule 477: ...opt ::= ELLIPSIS // case 477: break; // // Rule 478: FormalParameterListopt ::= // case 478: { btParser.setSym1(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 479: FormalParameterListopt ::= FormalParameterList // case 479: break; // // Rule 480: Throwsopt ::= // case 480: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 481: Throwsopt ::= Throws // case 481: break; // // Rule 482: MethodModifiersopt ::= // case 482: { btParser.setSym1(Flags.NONE); break; } // // Rule 483: MethodModifiersopt ::= MethodModifiers // case 483: break; // // Rule 484: FieldModifiersopt ::= // case 484: { btParser.setSym1(Flags.NONE); break; } // // Rule 485: FieldModifiersopt ::= FieldModifiers // case 485: break; // // Rule 486: ClassBodyDeclarationsopt ::= // case 486: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 487: ClassBodyDeclarationsopt ::= ClassBodyDeclarations // case 487: break; // // Rule 488: Interfacesopt ::= // case 488: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 489: Interfacesopt ::= Interfaces // case 489: break; // // Rule 490: Superopt ::= // case 490: btParser.setSym1(null); break; // // Rule 491: Superopt ::= Super // case 491: break; // // Rule 492: TypeParametersopt ::= // case 492: btParser.setSym1(null); break; // // Rule 493: TypeParametersopt ::= TypeParameters // case 493: break; // // Rule 494: ClassModifiersopt ::= // case 494: { btParser.setSym1(Flags.NONE); break; } // // Rule 495: ClassModifiersopt ::= ClassModifiers // case 495: break; // // Rule 496: Annotationsopt ::= // case 496: btParser.setSym1(null); break; // // Rule 497: Annotationsopt ::= Annotations // case 497: bad_rule = 497; break; // // Rule 498: TypeDeclarationsopt ::= // case 498: { btParser.setSym1(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 499: TypeDeclarationsopt ::= TypeDeclarations // case 499: break; // // Rule 500: ImportDeclarationsopt ::= // case 500: { btParser.setSym1(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 501: ImportDeclarationsopt ::= ImportDeclarations // case 501: break; // // Rule 502: PackageDeclarationopt ::= // case 502: btParser.setSym1(null); break; // // Rule 503: PackageDeclarationopt ::= PackageDeclaration // case 503: break; // // Rule 504: WildcardBoundsOpt ::= // case 504: btParser.setSym1(null); break; // // Rule 505: WildcardBoundsOpt ::= WildcardBounds // case 505: bad_rule = 505; break; // // Rule 506: AdditionalBoundListopt ::= // case 506: btParser.setSym1(null); break; // // Rule 507: AdditionalBoundListopt ::= AdditionalBoundList // case 507: bad_rule = 507; break; // // Rule 508: TypeBoundopt ::= // case 508: btParser.setSym1(null); break; // // Rule 509: TypeBoundopt ::= TypeBound // case 509: bad_rule = 509; break; // // Rule 510: TypeArgumentsopt ::= // case 510: btParser.setSym1(null); break; // // Rule 511: TypeArgumentsopt ::= TypeArguments // case 511: bad_rule = 511; break; // // Rule 512: Type ::= DataType PlaceTypeSpecifieropt // case 512: { assert(btParser.getSym(2) == null); //btParser.setSym1(); break; } // // Rule 513: Type ::= nullable LESS Type GREATER // case 513: { TypeNode a = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Nullable(pos(), a)); break; } // // Rule 514: Type ::= future LESS Type GREATER // case 514: { TypeNode a = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Future(pos(), a)); break; } // // Rule 515: Type ::= boxed LESS Type GREATER // case 515: bad_rule = 515; break; // // Rule 516: Type ::= fun LESS Type COMMA Type GREATER // case 516: bad_rule = 516; break; // // Rule 517: DataType ::= PrimitiveType // case 517: break; // // Rule 518: DataType ::= ClassOrInterfaceType // case 518: break; // // Rule 519: DataType ::= ArrayType // case 519: break; // // Rule 520: PlaceTypeSpecifier ::= AT PlaceType // case 520: bad_rule = 520; break; // // Rule 521: PlaceType ::= place // case 521: bad_rule = 521; break; // // Rule 522: PlaceType ::= activity // case 522: bad_rule = 522; break; // // Rule 523: PlaceType ::= method // case 523: bad_rule = 523; break; // // Rule 524: PlaceType ::= current // case 524: bad_rule = 524; break; // // Rule 525: PlaceType ::= PlaceExpression // case 525: bad_rule = 525; break; // // Rule 526: ClassOrInterfaceType ::= TypeName DepParametersopt // case 526: { Name a = (Name) btParser.getSym(1); TypeNode t = a.toType(); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.ParametricTypeNode(pos(), t, b)); break; } // // Rule 527: DepParameters ::= LPAREN DepParameterExpr RPAREN // case 527: break; // // Rule 528: DepParameterExpr ::= ArgumentList WhereClauseopt // case 528: { List a = (List) btParser.getSym(1); Expr b = (Expr) btParser.getSym(2); btParser.setSym1(nf.DepParameterExpr(pos(),a,b)); break; } // // Rule 529: DepParameterExpr ::= WhereClause // case 529: { Expr b = (Expr) btParser.getSym(1); btParser.setSym1(nf.DepParameterExpr(pos(), null, b)); break; } // // Rule 530: WhereClause ::= COLON Expression // case 530: break; // // Rule 532: X10ArrayType ::= Type LBRACKET DOT RBRACKET // case 532: { TypeNode a = (TypeNode) btParser.getSym(1); TypeNode t = nf.X10ArrayTypeNode(pos(), a, false, null); System.out.println("Parser parses X10ArrayType Type [.] as |" + t +"|"); btParser.setSym1(t); break; } // // Rule 533: X10ArrayType ::= Type reference LBRACKET DOT RBRACKET // case 533: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, null)); break; } // // Rule 534: X10ArrayType ::= Type value LBRACKET DOT RBRACKET // case 534: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, true, null)); break; } // // Rule 535: X10ArrayType ::= Type LBRACKET DepParameterExpr RBRACKET // case 535: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, b)); break; } // // Rule 536: X10ArrayType ::= Type reference LBRACKET DepParameterExpr RBRACKET // case 536: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, b)); break; } // // Rule 537: X10ArrayType ::= Type value LBRACKET DepParameterExpr RBRACKET // case 537: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, true, b)); break; } // // Rule 538: ObjectKind ::= value // case 538: bad_rule = 538; break; // // Rule 539: ObjectKind ::= reference // case 539: bad_rule = 539; break; // // Rule 540: MethodModifier ::= atomic // case 540: { btParser.setSym1(Flags.ATOMIC); break; } // // Rule 541: MethodModifier ::= extern // case 541: { btParser.setSym1(Flags.NATIVE); break; } // // Rule 542: ClassDeclaration ::= ValueClassDeclaration // case 542: break; // // Rule 543: ValueClassDeclaration ::= ClassModifiersopt value identifier Superopt Interfacesopt ClassBody // case 543: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); TypeNode c = (TypeNode) btParser.getSym(4); List d = (List) btParser.getSym(5); ClassBody e = (ClassBody) btParser.getSym(6); btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 544: ValueClassDeclaration ::= ClassModifiersopt value class identifier Superopt Interfacesopt ClassBody // case 544: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(4)); TypeNode c = (TypeNode) btParser.getSym(5); List d = (List) btParser.getSym(6); ClassBody e = (ClassBody) btParser.getSym(7); btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 545: ArrayCreationExpression ::= new ArrayBaseType LBRACKET Expression RBRACKET // case 545: { TypeNode a = (TypeNode) btParser.getSym(2); Expr c = (Expr) btParser.getSym(4); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(c); btParser.setSym1(nf.NewArray(pos(), a, l)); break; } // // Rule 546: ArrayCreationExpression ::= new ArrayBaseType LBRACKET RBRACKET ArrayInitializer // case 546: { TypeNode a = (TypeNode) btParser.getSym(2); ArrayInit d = (ArrayInit) btParser.getSym(5); // btParser.setSym1(nf.ArrayConstructor(pos(), a, false, null, d)); btParser.setSym1(nf.NewArray(pos(), a, 0, d)); break; } // // Rule 547: ArrayCreationExpression ::= new ArrayBaseType LBRACKET DOT Expression RBRACKET // case 547: { TypeNode a = (TypeNode) btParser.getSym(2); Expr c = (Expr) btParser.getSym(5); System.out.println("parser: Parsed new " + a + " [. " + c + " ]"); btParser.setSym1(nf.ArrayConstructor(pos(), a, false, c, null)); break; } // // Rule 548: ArrayCreationExpression ::= new ArrayBaseType LBRACKET DOT Expression RBRACKET Expression // case 548: { TypeNode a = (TypeNode) btParser.getSym(2); Expr c = (Expr) btParser.getSym(5); Expr d = (Expr) btParser.getSym(7); System.out.println("parser: Parsed new " + a + " [. " + c + " ]" + d); btParser.setSym1(nf.ArrayConstructor(pos(), a, false, c, d)); break; } // // Rule 549: ArrayCreationExpression ::= new ArrayBaseType value LBRACKET DOT Expression RBRACKET // case 549: { TypeNode a = (TypeNode) btParser.getSym(2); Expr c = (Expr) btParser.getSym(6); btParser.setSym1(nf.ArrayConstructor(pos(), a, true, c, null)); break; } // // Rule 550: ArrayCreationExpression ::= new ArrayBaseType value LBRACKET DOT Expression RBRACKET Expression // case 550: { TypeNode a = (TypeNode) btParser.getSym(2); Expr c = (Expr) btParser.getSym(6); Expr d = (Expr) btParser.getSym(8); btParser.setSym1(nf.ArrayConstructor(pos(), a, true, c, d)); break; } // // Rule 551: ArrayBaseType ::= PrimitiveType // case 551: break; // // Rule 552: ArrayBaseType ::= ClassOrInterfaceType // case 552: break; // // Rule 553: ArrayAccess ::= ExpressionName LBRACKET ArgumentList RBRACKET // case 553: { Name e = (Name) btParser.getSym(1); List b = (List) btParser.getSym(3); System.out.println("ArrayAccess parsing:" + b + " size =" + b.size()); if (b.size() == 1) btParser.setSym1(nf.X10ArrayAccess1(pos(), e.toExpr(), (Expr) b.get(0))); else btParser.setSym1(nf.X10ArrayAccess(pos(), e.toExpr(), b)); break; } // // Rule 554: ArrayAccess ::= PrimaryNoNewArray LBRACKET ArgumentList RBRACKET // case 554: { Expr a = (Expr) btParser.getSym(1); List b = (List) btParser.getSym(3); System.out.println("ArrayAccess parsing:" + b + " size =" + b.size()); if (b.size() == 1) btParser.setSym1(nf.X10ArrayAccess1(pos(), a, (Expr) b.get(0))); else btParser.setSym1(nf.X10ArrayAccess(pos(), a, b)); break; } // // Rule 555: Statement ::= NowStatement // case 555: break; // // Rule 556: Statement ::= ClockedStatement // case 556: break; // // Rule 557: Statement ::= AsyncStatement // case 557: break; // // Rule 558: Statement ::= AtomicStatement // case 558: break; // // Rule 559: Statement ::= WhenStatement // case 559: break; // // Rule 560: Statement ::= ForEachStatement // case 560: break; // // Rule 561: Statement ::= AtEachStatement // case 561: break; // // Rule 562: Statement ::= FinishStatement // case 562: break; // // Rule 563: StatementWithoutTrailingSubstatement ::= NextStatement // case 563: break; // // Rule 564: StatementWithoutTrailingSubstatement ::= AwaitStatement // case 564: break; // // Rule 565: StatementNoShortIf ::= NowStatementNoShortIf // case 565: break; // // Rule 566: StatementNoShortIf ::= ClockedStatementNoShortIf // case 566: break; // // Rule 567: StatementNoShortIf ::= AsyncStatementNoShortIf // case 567: break; // // Rule 568: StatementNoShortIf ::= AtomicStatementNoShortIf // case 568: break; // // Rule 569: StatementNoShortIf ::= WhenStatementNoShortIf // case 569: break; // // Rule 570: StatementNoShortIf ::= ForEachStatementNoShortIf // case 570: break; // // Rule 571: StatementNoShortIf ::= AtEachStatementNoShortIf // case 571: break; // // Rule 572: StatementNoShortIf ::= FinishStatementNoShortIf // case 572: break; // // Rule 573: NowStatement ::= now LPAREN Clock RPAREN Statement // case 573: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 574: ClockedStatement ::= clocked LPAREN ClockList RPAREN Statement // case 574: { List a = (List) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 575: AsyncStatement ::= async PlaceExpressionSingleListopt Statement // case 575: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Async(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 576: AsyncStatement ::= async LPAREN here RPAREN Statement // case 576: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Async(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 577: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 577: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Atomic(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 578: AtomicStatement ::= atomic LPAREN here RPAREN Statement // case 578: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Atomic(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 579: WhenStatement ::= when LPAREN Expression RPAREN Statement // case 579: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 580: WhenStatement ::= WhenStatement or LPAREN Expression RPAREN Statement // case 580: { When w = (When) btParser.getSym(1); Expr e = (Expr) btParser.getSym(4); Stmt s = (Stmt) btParser.getSym(6); w.add(new When_c.Branch_c(e,s)); btParser.setSym1(w); break; } // // Rule 581: ForEachStatement ::= foreach LPAREN FormalParameter COLON Expression RPAREN Statement // case 581: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 582: AtEachStatement ::= ateach LPAREN FormalParameter COLON Expression RPAREN Statement // case 582: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.AtEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 583: EnhancedForStatement ::= for LPAREN FormalParameter COLON Expression RPAREN Statement // case 583: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForLoop(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 584: FinishStatement ::= finish Statement // case 584: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 585: NowStatementNoShortIf ::= now LPAREN Clock RPAREN StatementNoShortIf // case 585: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 586: ClockedStatementNoShortIf ::= clocked LPAREN ClockList RPAREN StatementNoShortIf // case 586: { List a = (List) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 587: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt StatementNoShortIf // case 587: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Async(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 588: AsyncStatementNoShortIf ::= async LPAREN here RPAREN StatementNoShortIf // case 588: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Async(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 589: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 589: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Atomic(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 590: AtomicStatementNoShortIf ::= atomic LPAREN here RPAREN StatementNoShortIf // case 590: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Atomic(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 591: WhenStatementNoShortIf ::= when LPAREN Expression RPAREN StatementNoShortIf // case 591: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 592: WhenStatementNoShortIf ::= WhenStatement or LPAREN Expression RPAREN StatementNoShortIf // case 592: { When w = (When) btParser.getSym(1); Expr e = (Expr) btParser.getSym(4); Stmt s = (Stmt) btParser.getSym(6); w.add(new When_c.Branch_c(e,s)); btParser.setSym1(w); break; } // // Rule 593: ForEachStatementNoShortIf ::= foreach LPAREN FormalParameter COLON Expression RPAREN StatementNoShortIf // case 593: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 594: AtEachStatementNoShortIf ::= ateach LPAREN FormalParameter COLON Expression RPAREN StatementNoShortIf // case 594: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.AtEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 595: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 595: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 596: PlaceExpressionSingleList ::= LPAREN PlaceExpression RPAREN // case 596: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 597: PlaceExpression ::= here // case 597: { btParser.setSym1(nf.Here(pos(btParser.getFirstToken()))); break; } // // Rule 598: PlaceExpression ::= this // case 598: { btParser.setSym1(nf.Field(pos(btParser.getFirstToken()), nf.This(pos(btParser.getFirstToken())), "place")); break; } // // Rule 599: PlaceExpression ::= ExpressionName // case 599: { Expr e = (Expr) btParser.getSym(1); btParser.setSym1(nf.Field(pos(btParser.getFirstToken()), e, "place")); break; } // // Rule 600: PlaceExpression ::= ArrayAccess // case 600: bad_rule = 600; break; // // Rule 601: NextStatement ::= next SEMICOLON // case 601: { btParser.setSym1(nf.Next(pos())); break; } // // Rule 602: AwaitStatement ::= await Expression SEMICOLON // case 602: { Expr e = (Expr) btParser.getSym(2); btParser.setSym1(nf.Await(pos(), e)); break; } // // Rule 603: ClockList ::= Clock // case 603: { Name c = (Name) btParser.getSym(1); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(c.toExpr()); btParser.setSym1(l); break; } // // Rule 604: ClockList ::= ClockList COMMA Clock // case 604: { List l = (List) btParser.getSym(1); Name c = (Name) btParser.getSym(3); l.add(c.toExpr()); // btParser.setSym1(l); break; } // // Rule 605: Clock ::= identifier // case 605: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 606: CastExpression ::= LPAREN Type RPAREN UnaryExpressionNotPlusMinus // case 606: { TypeNode a = (TypeNode) btParser.getSym(2); Expr b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Cast(pos(), a, b)); break; } // // Rule 607: MethodInvocation ::= Primary ARROW identifier LPAREN ArgumentListopt RPAREN // case 607: { Expr a = (Expr) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.RemoteCall(pos(), a, b.getIdentifier(), c)); break; } // // Rule 608: RelationalExpression ::= RelationalExpression instanceof Type // case 608: { Expr a = (Expr) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Instanceof(pos(), a, b)); break; } // // Rule 609: ExpressionName ::= here // case 609: { btParser.setSym1(new Name(nf, ts, pos(), "here"){ public Expr toExpr() { return nf.Here(pos); } }); break; } // // Rule 610: Primary ::= FutureExpression // case 610: break; // // Rule 611: FutureExpression ::= future PlaceExpressionSingleListopt LBRACE Expression RBRACE // case 611: { Expr e1 = (Expr) btParser.getSym(2), e2 = (Expr) btParser.getSym(4); btParser.setSym1(nf.Future(pos(), (e1 == null ? nf.Here(pos(btParser.getFirstToken())) : e1), e2)); break; } // // Rule 612: FutureExpression ::= future LPAREN here RPAREN LBRACE Expression RBRACE // case 612: { Expr e2 = (Expr) btParser.getSym(6); btParser.setSym1(nf.Future(pos(), nf.Here(pos(btParser.getFirstToken(3))), e2)); break; } // // Rule 613: FunExpression ::= fun Type LPAREN FormalParameterListopt RPAREN LBRACE Expression RBRACE // case 613: bad_rule = 613; break; // // Rule 614: MethodInvocation ::= MethodName LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 614: bad_rule = 614; break; // // Rule 615: MethodInvocation ::= Primary DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 615: bad_rule = 615; break; // // Rule 616: MethodInvocation ::= super DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 616: bad_rule = 616; break; // // Rule 617: MethodInvocation ::= ClassName DOT super DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 617: bad_rule = 617; break; // // Rule 618: MethodInvocation ::= TypeName DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 618: bad_rule = 618; break; // // Rule 619: ClassInstanceCreationExpression ::= new ClassOrInterfaceType LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 619: bad_rule = 619; break; // // Rule 620: ClassInstanceCreationExpression ::= Primary DOT new identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 620: bad_rule = 620; break; // // Rule 621: ClassInstanceCreationExpression ::= AmbiguousName DOT new identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 621: bad_rule = 621; break; // // Rule 622: PlaceTypeSpecifieropt ::= // case 622: btParser.setSym1(null); break; // // Rule 623: PlaceTypeSpecifieropt ::= PlaceTypeSpecifier // case 623: break; // // Rule 624: DepParametersopt ::= // case 624: btParser.setSym1(null); break; // // Rule 625: DepParametersopt ::= DepParameters // case 625: break; // // Rule 626: WhereClauseopt ::= // case 626: btParser.setSym1(null); break; // // Rule 627: WhereClauseopt ::= WhereClause // case 627: break; // // Rule 628: ObjectKindopt ::= // case 628: btParser.setSym1(null); break; // // Rule 629: ObjectKindopt ::= ObjectKind // case 629: break; // // Rule 630: ArrayInitializeropt ::= // case 630: btParser.setSym1(null); break; // // Rule 631: ArrayInitializeropt ::= ArrayInitializer // case 631: break; // // Rule 632: ConcreteDistributionopt ::= // case 632: btParser.setSym1(null); break; // // Rule 633: ConcreteDistributionopt ::= ConcreteDistribution // case 633: break; // // Rule 634: PlaceExpressionSingleListopt ::= // case 634: btParser.setSym1(null); break; // // Rule 635: PlaceExpressionSingleListopt ::= PlaceExpressionSingleList // case 635: break; // // Rule 636: ArgumentListopt ::= // case 636: btParser.setSym1(null); break; // // Rule 637: ArgumentListopt ::= ArgumentList // case 637: break; // // Rule 638: DepParametersopt ::= // case 638: btParser.setSym1(null); break; // // Rule 639: DepParametersopt ::= DepParameters // case 639: break; default: break; } return; }
|
1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/bb2a94143f433b1bc3a3f14e9063a6f9ed4a0262/X10Parser.java/clean/x10.compiler/src/x10/parser/X10Parser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1720,
1803,
12,
474,
1720,
1854,
13,
565,
288,
3639,
309,
261,
8759,
67,
5345,
480,
374,
13,
5411,
327,
31,
3639,
1620,
261,
5345,
1854,
13,
3639,
288,
2398,
368,
5411,
368,
6781,
404,
30,
225,
2756,
493,
33,
26765,
5411,
368,
5411,
648,
404,
30,
288,
7734,
309,
261,
683,
87,
1228,
18,
588,
5677,
12,
23602,
2678,
18,
588,
1345,
12,
21,
3719,
480,
1139,
2163,
26954,
2942,
18,
56,
47,
67,
16606,
13,
7734,
288,
10792,
2332,
18,
659,
18,
8222,
2932,
15858,
310,
4932,
315,
397,
4766,
4202,
846,
87,
1228,
18,
17994,
12,
23602,
2678,
18,
588,
1345,
12,
21,
3719,
397,
4766,
4202,
315,
622,
315,
397,
4766,
4202,
846,
87,
1228,
18,
588,
1670,
12,
23602,
2678,
18,
588,
1345,
12,
21,
3719,
397,
4766,
4202,
6153,
397,
4766,
4202,
846,
87,
1228,
18,
588,
1494,
12,
23602,
2678,
18,
588,
1345,
12,
21,
3719,
397,
4766,
4202,
315,
1368,
392,
2756,
8863,
7734,
289,
7734,
898,
31,
5411,
289,
1171,
368,
5411,
368,
6781,
576,
30,
225,
14488,
559,
493,
33,
16980,
559,
5411,
368,
5411,
648,
576,
30,
7734,
898,
31,
2398,
368,
5411,
368,
6781,
890,
30,
225,
14488,
559,
493,
33,
1250,
5411,
368,
5411,
648,
890,
30,
288,
7734,
10921,
2678,
18,
542,
11901,
21,
12,
82,
74,
18,
15512,
559,
907,
12,
917,
9334,
3742,
18,
5507,
1435,
10019,
7734,
898,
31,
5411,
289,
1171,
368,
5411,
368,
6781,
1059,
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,
1720,
1803,
12,
474,
1720,
1854,
13,
565,
288,
3639,
309,
261,
8759,
67,
5345,
480,
374,
13,
5411,
327,
31,
3639,
1620,
261,
5345,
1854,
13,
3639,
288,
2398,
368,
5411,
368,
6781,
404,
30,
225,
2756,
493,
33,
26765,
5411,
368,
5411,
648,
404,
30,
288,
7734,
309,
261,
683,
87,
1228,
18,
588,
5677,
12,
23602,
2678,
18,
588,
1345,
12,
21,
3719,
480,
1139,
2163,
26954,
2942,
18,
56,
47,
67,
16606,
13,
7734,
288,
10792,
2332,
18,
659,
18,
8222,
2932,
15858,
310,
4932,
315,
397,
4766,
4202,
846,
87,
1228,
18,
17994,
12,
23602,
2678,
18,
588,
1345,
12,
21,
3719,
397,
4766,
4202,
315,
622,
315,
397,
4766,
4202,
2
] |
List libs = getListProperty( ReportDesign.LIBRARIES_PROP );
|
List libs = getListProperty( IModuleModel.LIBRARIES_PROP );
|
public void reloadLibraries( ) throws SemanticException, DesignFileException { List libs = getListProperty( ReportDesign.LIBRARIES_PROP ); if ( libs == null || libs.isEmpty( ) ) return; for ( int i = 0; i < libs.size( ); i++ ) { IncludedLibrary lib = (IncludedLibrary) libs.get( i ); Library includeLib = module.getLibraryWithNamespace( lib .getNamespace( ) ); if ( includeLib != null ) reloadLibrary( includeLib.handle( ) ); else { LibraryCommand cmd = new LibraryCommand( module ); cmd.reloadLibrary( lib.getFileName( ), lib.getNamespace( ) ); } } }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/d802c33711e0d111551ae23575895cd060f085b6/ModuleHandle.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/ModuleHandle.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
7749,
31909,
12,
262,
1216,
24747,
503,
16,
1082,
202,
15478,
812,
503,
202,
95,
202,
202,
682,
15042,
273,
10033,
1396,
12,
8706,
15478,
18,
2053,
7192,
985,
8805,
67,
15811,
11272,
202,
202,
430,
261,
15042,
422,
446,
747,
15042,
18,
291,
1921,
12,
262,
262,
1082,
202,
2463,
31,
202,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
15042,
18,
1467,
12,
11272,
277,
9904,
262,
202,
202,
95,
1082,
202,
19323,
9313,
2561,
273,
261,
19323,
9313,
13,
15042,
18,
588,
12,
277,
11272,
1082,
202,
9313,
2341,
5664,
273,
1605,
18,
588,
9313,
1190,
3402,
12,
2561,
6862,
202,
18,
588,
3402,
12,
262,
11272,
1082,
202,
430,
261,
2341,
5664,
480,
446,
262,
9506,
202,
17517,
9313,
12,
2341,
5664,
18,
4110,
12,
262,
11272,
1082,
202,
12107,
1082,
202,
95,
9506,
202,
9313,
2189,
1797,
273,
394,
18694,
2189,
12,
1605,
11272,
9506,
202,
4172,
18,
17517,
9313,
12,
2561,
18,
588,
4771,
12,
262,
16,
2561,
18,
588,
3402,
12,
262,
11272,
1082,
202,
97,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
7749,
31909,
12,
262,
1216,
24747,
503,
16,
1082,
202,
15478,
812,
503,
202,
95,
202,
202,
682,
15042,
273,
10033,
1396,
12,
8706,
15478,
18,
2053,
7192,
985,
8805,
67,
15811,
11272,
202,
202,
430,
261,
15042,
422,
446,
747,
15042,
18,
291,
1921,
12,
262,
262,
1082,
202,
2463,
31,
202,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
15042,
18,
1467,
12,
11272,
277,
9904,
262,
202,
202,
95,
1082,
202,
19323,
9313,
2561,
273,
261,
19323,
9313,
13,
15042,
18,
588,
12,
277,
11272,
1082,
202,
9313,
2341,
5664,
273,
1605,
18,
588,
9313,
1190,
3402,
12,
2561,
6862,
202,
18,
588,
3402,
12,
262,
11272,
1082,
202,
430,
2
] |
if (Platform.getInstanceLocation() == null) return; /* Get the entries from files, if any */ IPath path = WorkbenchPlugin.getDefault().getStateLocation();
|
IPath path = WorkbenchPlugin.getDefault().getDataLocation(); if(path == null) return;
|
private void loadCustom() { Reader reader = null; /* Get the entries from the Preference store */ IPreferenceStore store = WorkbenchPlugin.getDefault() .getPreferenceStore(); /* Get the space-delimited list of custom perspective ids */ String customPerspectives = store .getString(IPreferenceConstants.PERSPECTIVES); String[] perspectivesList = StringConverter.asArray(customPerspectives); for (int i = 0; i < perspectivesList.length; i++) { try { String xmlString = store.getString(perspectivesList[i] + PERSP); if (xmlString != null && xmlString.length() != 0) reader = new StringReader(xmlString); // Restore the layout state. XMLMemento memento = XMLMemento.createReadRoot(reader); PerspectiveDescriptor newPersp = new PerspectiveDescriptor( null, null, null); newPersp.restoreState(memento); String id = newPersp.getId(); IPerspectiveDescriptor oldPersp = findPerspectiveWithId(id); if (oldPersp == null) add(newPersp); reader.close(); } catch (IOException e) { unableToLoadPerspective(null); } catch (WorkbenchException e) { unableToLoadPerspective(e.getStatus()); } } // bug 69387: don't look for state location if there is no instance // area, i.e., -data @none if (Platform.getInstanceLocation() == null) return; /* Get the entries from files, if any */ IPath path = WorkbenchPlugin.getDefault().getStateLocation(); File folder = path.toFile(); if (folder.isDirectory()) { File[] fileList = folder.listFiles(); int nSize = fileList.length; for (int nX = 0; nX < nSize; nX++) { File file = fileList[nX]; if (file.getName().endsWith(EXT)) { //get the memento InputStream stream = null; try { stream = new FileInputStream(file); reader = new BufferedReader(new InputStreamReader( stream, "utf-8")); //$NON-NLS-1$ // Restore the layout state. XMLMemento memento = XMLMemento.createReadRoot(reader); PerspectiveDescriptor newPersp = new PerspectiveDescriptor( null, null, null); newPersp.restoreState(memento); IPerspectiveDescriptor oldPersp = findPerspectiveWithId(newPersp .getId()); if (oldPersp == null) add(newPersp); //save to the preference store saveCustomPersp(newPersp, memento); //delete the file file.delete(); reader.close(); stream.close(); } catch (IOException e) { unableToLoadPerspective(null); } catch (WorkbenchException e) { unableToLoadPerspective(e.getStatus()); } } } } }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/c1e771cddb865aac6a6d72b575053f573ef8f2c2/PerspectiveRegistry.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/PerspectiveRegistry.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1262,
3802,
1435,
288,
3639,
5393,
2949,
273,
446,
31,
3639,
1748,
968,
326,
3222,
628,
326,
29125,
1707,
1195,
3639,
467,
9624,
2257,
1707,
273,
4147,
22144,
3773,
18,
588,
1868,
1435,
7734,
263,
588,
9624,
2257,
5621,
3639,
1748,
968,
326,
3476,
17,
3771,
1038,
329,
666,
434,
1679,
26651,
3258,
1195,
3639,
514,
1679,
14781,
1181,
3606,
273,
1707,
7734,
263,
588,
780,
12,
45,
9624,
2918,
18,
3194,
23810,
1268,
5354,
55,
1769,
3639,
514,
8526,
13508,
1181,
3606,
682,
273,
514,
5072,
18,
345,
1076,
12,
3662,
14781,
1181,
3606,
1769,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
13508,
1181,
3606,
682,
18,
2469,
31,
277,
27245,
288,
5411,
775,
288,
7734,
514,
2025,
780,
273,
1707,
18,
588,
780,
12,
10422,
1181,
3606,
682,
63,
77,
65,
397,
10950,
3118,
1769,
7734,
309,
261,
2902,
780,
480,
446,
597,
2025,
780,
18,
2469,
1435,
480,
374,
13,
10792,
2949,
273,
394,
26227,
12,
2902,
780,
1769,
7734,
368,
11197,
326,
3511,
919,
18,
7734,
3167,
49,
820,
83,
312,
820,
83,
273,
3167,
49,
820,
83,
18,
2640,
1994,
2375,
12,
10530,
1769,
7734,
453,
414,
16772,
3187,
394,
14781,
84,
273,
394,
453,
414,
16772,
3187,
12,
13491,
446,
16,
446,
16,
446,
1769,
7734,
394,
14781,
84,
18,
13991,
1119,
12,
81,
820,
83,
1769,
7734,
514,
612,
273,
394,
14781,
84,
18,
26321,
5621,
7734,
2971,
414,
16772,
3187,
1592,
14781,
84,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1262,
3802,
1435,
288,
3639,
5393,
2949,
273,
446,
31,
3639,
1748,
968,
326,
3222,
628,
326,
29125,
1707,
1195,
3639,
467,
9624,
2257,
1707,
273,
4147,
22144,
3773,
18,
588,
1868,
1435,
7734,
263,
588,
9624,
2257,
5621,
3639,
1748,
968,
326,
3476,
17,
3771,
1038,
329,
666,
434,
1679,
26651,
3258,
1195,
3639,
514,
1679,
14781,
1181,
3606,
273,
1707,
7734,
263,
588,
780,
12,
45,
9624,
2918,
18,
3194,
23810,
1268,
5354,
55,
1769,
3639,
514,
8526,
13508,
1181,
3606,
682,
273,
514,
5072,
18,
345,
1076,
12,
3662,
14781,
1181,
3606,
1769,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
13508,
1181,
3606,
682,
18,
2469,
31,
277,
27245,
288,
2
] |
} progressRegion.getControl().setVisible(true); } else { if (progressRegion != null) { defaultLayout.removeTrim(progressRegion); progressRegion.getControl().setVisible(false); } } defaultLayout.setCenterControl(getPageComposite()); }
|
} progressRegion.getControl().setVisible(true); } else { if (progressRegion != null) { defaultLayout.removeTrim(progressRegion); progressRegion.getControl().setVisible(false); } } defaultLayout.setCenterControl(getPageComposite()); }
|
private void updateLayoutDataForContents() { if (defaultLayout == null) return; // @issue this is not ideal; coolbar and perspective shortcuts should be // separately configurable if ((getCoolBarVisible() && getWindowConfigurer().getShowCoolBar()) || (getPerspectiveBarVisible() && getWindowConfigurer() .getShowPerspectiveBar())) { if (defaultLayout.getTrim(topBarTrim.getId())==null) { defaultLayout.addTrim(SWT.TOP, topBarTrim); } topBar.setVisible(true); } else { defaultLayout.removeTrim(topBarTrim); topBar.setVisible(false); } if (getWindowConfigurer().getShowFastViewBars() && fastViewBar != null) { int side = fastViewBar.getSide(); if (defaultLayout.getTrim(fastViewBar.getId())==null) { defaultLayout.addTrim(side, fastViewBar); }// LayoutUtil.resize(fastViewBar.getControl()); } if (getStatusLineVisible() && getWindowConfigurer().getShowStatusLine()) { if (defaultLayout.getTrim(getStatusLineTrim().getId())==null) { defaultLayout.addTrim(SWT.BOTTOM, getStatusLineTrim()); } getStatusLineManager().getControl().setVisible(true); } else { defaultLayout.removeTrim(getStatusLineTrim()); getStatusLineManager().getControl().setVisible(false); } if (getShowHeapStatus()) { if (heapStatus != null) { if (heapStatus.getLayoutData() == null) { heapStatusTrim.setWidthHint(heapStatus.computeSize( SWT.DEFAULT, SWT.DEFAULT).x); heapStatusTrim .setHeightHint(getStatusLineManager().getControl() .computeSize(SWT.DEFAULT, SWT.DEFAULT).y); } if (defaultLayout.getTrim(heapStatusTrim.getId())==null) { defaultLayout.addTrim(SWT.BOTTOM, heapStatusTrim); } heapStatus.setVisible(true); } } else { if (heapStatus != null) { defaultLayout.removeTrim(heapStatusTrim); heapStatus.setVisible(false); } } if (getWindowConfigurer().getShowProgressIndicator()) { if (progressRegion.getControl().getLayoutData() == null) { progressRegion.setWidthHint(progressRegion.getControl().computeSize( SWT.DEFAULT, SWT.DEFAULT).x); progressRegion .setHeightHint(getStatusLineManager().getControl() .computeSize(SWT.DEFAULT, SWT.DEFAULT).y); } if (defaultLayout.getTrim(progressRegion.getId()) == null) { defaultLayout.addTrim(SWT.BOTTOM, progressRegion); } progressRegion.getControl().setVisible(true); } else { if (progressRegion != null) { defaultLayout.removeTrim(progressRegion); progressRegion.getControl().setVisible(false); } } defaultLayout.setCenterControl(getPageComposite()); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/97610ef9afbe6c924e048d8d60c2f4721860850b/WorkbenchWindow.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchWindow.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1089,
3744,
751,
1290,
6323,
1435,
288,
3639,
309,
261,
1886,
3744,
422,
446,
13,
5411,
327,
31,
3639,
368,
632,
13882,
333,
353,
486,
23349,
31,
27367,
3215,
471,
26651,
25641,
1410,
506,
3639,
368,
282,
18190,
14593,
3639,
309,
14015,
588,
39,
1371,
5190,
6207,
1435,
597,
26156,
809,
11278,
7675,
588,
5706,
39,
1371,
5190,
10756,
7734,
747,
261,
588,
14781,
16772,
5190,
6207,
1435,
597,
26156,
809,
11278,
1435,
13491,
263,
588,
5706,
14781,
16772,
5190,
1435,
3719,
288,
540,
202,
430,
261,
1886,
3744,
18,
588,
14795,
12,
3669,
5190,
14795,
18,
26321,
10756,
631,
2011,
13,
288,
540,
202,
202,
1886,
3744,
18,
1289,
14795,
12,
55,
8588,
18,
10462,
16,
1760,
5190,
14795,
1769,
540,
202,
97,
5411,
1760,
5190,
18,
542,
6207,
12,
3767,
1769,
3639,
289,
469,
288,
5411,
805,
3744,
18,
4479,
14795,
12,
3669,
5190,
14795,
1769,
5411,
1760,
5190,
18,
542,
6207,
12,
5743,
1769,
3639,
289,
7734,
309,
261,
588,
3829,
809,
11278,
7675,
588,
5706,
12305,
1767,
5190,
87,
1435,
597,
4797,
1767,
5190,
480,
446,
13,
288,
1082,
202,
474,
4889,
273,
4797,
1767,
5190,
18,
588,
8895,
5621,
1082,
202,
430,
261,
1886,
3744,
18,
588,
14795,
12,
8076,
1767,
5190,
18,
26321,
10756,
631,
2011,
13,
288,
9506,
202,
1886,
3744,
18,
1289,
14795,
12,
5564,
16,
4797,
1767,
5190,
1769,
1082,
202,
97,
759,
1082,
202,
3744,
1304,
18,
15169,
12,
8076,
1767,
5190,
18,
588,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1089,
3744,
751,
1290,
6323,
1435,
288,
3639,
309,
261,
1886,
3744,
422,
446,
13,
5411,
327,
31,
3639,
368,
632,
13882,
333,
353,
486,
23349,
31,
27367,
3215,
471,
26651,
25641,
1410,
506,
3639,
368,
282,
18190,
14593,
3639,
309,
14015,
588,
39,
1371,
5190,
6207,
1435,
597,
26156,
809,
11278,
7675,
588,
5706,
39,
1371,
5190,
10756,
7734,
747,
261,
588,
14781,
16772,
5190,
6207,
1435,
597,
26156,
809,
11278,
1435,
13491,
263,
588,
5706,
14781,
16772,
5190,
1435,
3719,
288,
540,
202,
430,
261,
1886,
3744,
18,
588,
14795,
12,
3669,
5190,
14795,
18,
26321,
10756,
631,
2011,
13,
288,
540,
202,
202,
1886,
3744,
18,
1289,
14795,
12,
55,
8588,
18,
10462,
2
] |
setProperty(name, propName, in);
|
setProperty(name, propertyName, in);
|
public void editConfig(String name) { Symbol symbol = symbolTable.get(name); boolean done = false; if (symbol == null) { System.out.println("No component: " + name); return; } System.out.println(symbol.getName() + ":"); Registry registry = symbol.getRegistry(); Collection propertyNames = registry.getRegisteredProperties(); PropertySheet properties = symbol.getPropertySheet(); BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); for (Iterator j = propertyNames.iterator(); j.hasNext();) { try { String propName = (String) j.next(); Object value = properties.getRaw(propName); String svalue = null; if (value instanceof List) { continue; } else if (value instanceof String) { svalue = (String) value; } else { svalue = "DEFAULT"; } done = false; while (!done) { System.out.print(" " + propName + " [" + svalue + "]: "); String in = br.readLine(); if (in.length() == 0) { done = true; } else if (in.equals(".")) { return; } else { try { setProperty(name, propName, in); done = true; } catch (PropertyException pe) { System.out.println("error setting value " + pe); svalue = in; } } } } catch (PropertyException pe) { System.out.println("error getting values " + pe); } catch (IOException ioe) { System.out.println("Trouble reading input"); return; } } }
|
52185 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52185/1e6515ee6eca03c12b6dd786af9302825b638188/ConfigurationManager.java/buggy/src/sphinx4/edu/cmu/sphinx/util/props/ConfigurationManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3874,
809,
12,
780,
508,
13,
288,
3639,
8565,
3273,
273,
26086,
18,
588,
12,
529,
1769,
3639,
1250,
2731,
273,
629,
31,
3639,
309,
261,
7175,
422,
446,
13,
225,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
2279,
1794,
30,
315,
397,
508,
1769,
5411,
327,
31,
3639,
289,
3639,
2332,
18,
659,
18,
8222,
12,
7175,
18,
17994,
1435,
397,
6153,
1769,
3639,
5438,
4023,
273,
3273,
18,
588,
4243,
5621,
3639,
2200,
26570,
273,
4023,
18,
588,
10868,
2297,
5621,
3639,
4276,
8229,
1790,
273,
3273,
18,
588,
1396,
8229,
5621,
3639,
10633,
5186,
273,
394,
10633,
12,
2704,
7734,
15322,
12,
3163,
18,
267,
10019,
3639,
364,
261,
3198,
525,
273,
26570,
18,
9838,
5621,
525,
18,
5332,
2134,
5621,
13,
288,
5411,
775,
288,
7734,
514,
9994,
273,
261,
780,
13,
525,
18,
4285,
5621,
7734,
1033,
460,
273,
1790,
18,
588,
4809,
12,
5986,
461,
1769,
7734,
514,
272,
1132,
273,
446,
31,
7734,
309,
261,
1132,
1276,
987,
13,
288,
10792,
1324,
31,
7734,
289,
469,
309,
261,
1132,
1276,
514,
13,
288,
10792,
272,
1132,
273,
261,
780,
13,
460,
31,
7734,
289,
469,
288,
10792,
272,
1132,
273,
315,
5280,
14432,
7734,
289,
7734,
2731,
273,
629,
31,
7734,
1323,
16051,
8734,
13,
288,
10792,
2332,
18,
659,
18,
1188,
2932,
225,
315,
397,
9994,
397,
315,
8247,
397,
272,
1132,
397,
9850,
30,
315,
1769,
10792,
514,
316,
273,
5186,
18,
896,
1670,
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,
3874,
809,
12,
780,
508,
13,
288,
3639,
8565,
3273,
273,
26086,
18,
588,
12,
529,
1769,
3639,
1250,
2731,
273,
629,
31,
3639,
309,
261,
7175,
422,
446,
13,
225,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
2279,
1794,
30,
315,
397,
508,
1769,
5411,
327,
31,
3639,
289,
3639,
2332,
18,
659,
18,
8222,
12,
7175,
18,
17994,
1435,
397,
6153,
1769,
3639,
5438,
4023,
273,
3273,
18,
588,
4243,
5621,
3639,
2200,
26570,
273,
4023,
18,
588,
10868,
2297,
5621,
3639,
4276,
8229,
1790,
273,
3273,
18,
588,
1396,
8229,
5621,
3639,
10633,
5186,
273,
394,
10633,
12,
2704,
7734,
15322,
12,
3163,
18,
267,
10019,
3639,
364,
261,
3198,
525,
273,
2
] |
db.clear();
|
db.clear(0);
|
protected void clear() throws CoreException { Database db = getDB(); // Clear out the database db.clear(); // Zero out the File Index and Linkages db.putInt(FILE_INDEX, 0); fileIndex = null; db.putInt(LINKAGES, 0); fLinkageIDCache.clear(); }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/da9aa45994b0f58ad68a76b2898e30b815a33e54/PDOM.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOM.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
2424,
1435,
1216,
30015,
288,
202,
202,
4254,
1319,
273,
31132,
5621,
202,
202,
759,
10121,
596,
326,
2063,
202,
202,
1966,
18,
8507,
5621,
202,
202,
759,
12744,
596,
326,
1387,
3340,
471,
4048,
1023,
202,
202,
1966,
18,
458,
1702,
12,
3776,
67,
9199,
16,
374,
1769,
202,
202,
768,
1016,
273,
446,
31,
202,
202,
1966,
18,
458,
1702,
12,
10554,
2833,
55,
16,
374,
1769,
202,
202,
74,
2098,
410,
734,
1649,
18,
8507,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
2424,
1435,
1216,
30015,
288,
202,
202,
4254,
1319,
273,
31132,
5621,
202,
202,
759,
10121,
596,
326,
2063,
202,
202,
1966,
18,
8507,
5621,
202,
202,
759,
12744,
596,
326,
1387,
3340,
471,
4048,
1023,
202,
202,
1966,
18,
458,
1702,
12,
3776,
67,
9199,
16,
374,
1769,
202,
202,
768,
1016,
273,
446,
31,
202,
202,
1966,
18,
458,
1702,
12,
10554,
2833,
55,
16,
374,
1769,
202,
202,
74,
2098,
410,
734,
1649,
18,
8507,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
AST tmp1846_AST_in = (AST)_t;
|
AST tmp1848_AST_in = (AST)_t;
|
public final void compilestate(AST _t) throws RecognitionException { AST compilestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1723 = _t; AST tmp1839_AST_in = (AST)_t; match(_t,COMPILE); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; { _loop1772: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ATTRSPACE: { AST __t1725 = _t; AST tmp1840_AST_in = (AST)_t; match(_t,ATTRSPACE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t1727 = _t; AST tmp1841_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1727; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1725; _t = _t.getNextSibling(); break; } case NOATTRSPACE: { AST tmp1842_AST_in = (AST)_t; match(_t,NOATTRSPACE); _t = _t.getNextSibling(); break; } case SAVE: { AST __t1728 = _t; AST tmp1843_AST_in = (AST)_t; match(_t,SAVE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t1730 = _t; AST tmp1844_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1730; _t = _t.getNextSibling(); break; } case 3: case INTO: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case INTO: { AST __t1732 = _t; AST tmp1845_AST_in = (AST)_t; match(_t,INTO); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; _t = __t1732; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1728; _t = _t.getNextSibling(); break; } case LISTING: { AST __t1733 = _t; AST tmp1846_AST_in = (AST)_t; match(_t,LISTING); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; { _loop1737: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case APPEND: { compile_append(_t); _t = _retTree; break; } case PAGESIZE_KW: { AST __t1735 = _t; AST tmp1847_AST_in = (AST)_t; match(_t,PAGESIZE_KW); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1735; _t = _t.getNextSibling(); break; } case PAGEWIDTH: { AST __t1736 = _t; AST tmp1848_AST_in = (AST)_t; match(_t,PAGEWIDTH); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1736; _t = _t.getNextSibling(); break; } default: { break _loop1737; } } } while (true); } _t = __t1733; _t = _t.getNextSibling(); break; } case XCODE: { AST __t1738 = _t; AST tmp1849_AST_in = (AST)_t; match(_t,XCODE); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1738; _t = _t.getNextSibling(); break; } case XREF: { AST __t1739 = _t; AST tmp1850_AST_in = (AST)_t; match(_t,XREF); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case APPEND: { compile_append(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1739; _t = _t.getNextSibling(); break; } case STRINGXREF: { AST __t1741 = _t; AST tmp1851_AST_in = (AST)_t; match(_t,STRINGXREF); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case APPEND: { compile_append(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1741; _t = _t.getNextSibling(); break; } case STREAMIO: { AST __t1743 = _t; AST tmp1852_AST_in = (AST)_t; match(_t,STREAMIO); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t1745 = _t; AST tmp1853_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1745; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1743; _t = _t.getNextSibling(); break; } case MINSIZE: { AST __t1746 = _t; AST tmp1854_AST_in = (AST)_t; match(_t,MINSIZE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t1748 = _t; AST tmp1855_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1748; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1746; _t = _t.getNextSibling(); break; } case LANGUAGES: { AST __t1749 = _t; AST tmp1856_AST_in = (AST)_t; match(_t,LANGUAGES); _t = _t.getFirstChild(); AST tmp1857_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case VALUE: case TYPELESS_TOKEN: { compile_lang(_t); _t = _retTree; { _loop1752: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp1858_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); compile_lang(_t); _t = _retTree; } else { break _loop1752; } } while (true); } break; } case RIGHTPAREN: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp1859_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); _t = __t1749; _t = _t.getNextSibling(); break; } case TEXTSEGGROW: { AST __t1753 = _t; AST tmp1860_AST_in = (AST)_t; match(_t,TEXTSEGGROW); _t = _t.getFirstChild(); AST __t1754 = _t; AST tmp1861_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1754; _t = _t.getNextSibling(); _t = __t1753; _t = _t.getNextSibling(); break; } case DEBUGLIST: { AST __t1755 = _t; AST tmp1862_AST_in = (AST)_t; match(_t,DEBUGLIST); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; _t = __t1755; _t = _t.getNextSibling(); break; } case DEFAULTNOXLATE: { AST __t1756 = _t; AST tmp1863_AST_in = (AST)_t; match(_t,DEFAULTNOXLATE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t1758 = _t; AST tmp1864_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1758; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1756; _t = _t.getNextSibling(); break; } case GENERATEMD5: { AST __t1759 = _t; AST tmp1865_AST_in = (AST)_t; match(_t,GENERATEMD5); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t1761 = _t; AST tmp1866_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1761; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1759; _t = _t.getNextSibling(); break; } case PREPROCESS: { AST __t1762 = _t; AST tmp1867_AST_in = (AST)_t; match(_t,PREPROCESS); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; _t = __t1762; _t = _t.getNextSibling(); break; } case USEREVVIDEO: { AST __t1763 = _t; AST tmp1868_AST_in = (AST)_t; match(_t,USEREVVIDEO); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t1765 = _t; AST tmp1869_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1765; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1763; _t = _t.getNextSibling(); break; } case USEUNDERLINE: { AST __t1766 = _t; AST tmp1870_AST_in = (AST)_t; match(_t,USEUNDERLINE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t1768 = _t; AST tmp1871_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1768; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1766; _t = _t.getNextSibling(); break; } case V6FRAME: { AST __t1769 = _t; AST tmp1872_AST_in = (AST)_t; match(_t,V6FRAME); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t1771 = _t; AST tmp1873_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1771; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1769; _t = _t.getNextSibling(); break; } case NOERROR_KW: { AST tmp1874_AST_in = (AST)_t; match(_t,NOERROR_KW); _t = _t.getNextSibling(); break; } default: { break _loop1772; } } } while (true); } state_end(_t); _t = _retTree; _t = __t1723; _t = _t.getNextSibling(); _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1161,
14849,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1161,
14849,
340,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
4033,
4366,
273,
389,
88,
31,
202,
202,
9053,
1853,
2643,
5520,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
31075,
900,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
3459,
280,
1132,
24899,
88,
1769,
202,
202,
67,
88,
273,
389,
1349,
2471,
31,
202,
202,
95,
202,
202,
67,
6498,
4033,
9060,
30,
202,
202,
2896,
288,
1082,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
1082,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
1082,
202,
3593,
12759,
6616,
30,
1082,
202,
95,
9506,
202,
9053,
1001,
88,
4033,
2947,
273,
389,
88,
31,
9506,
202,
9053,
1853,
2643,
7132,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
9506,
202,
1916,
24899,
88,
16,
12043,
6616,
1769,
9506,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
9506,
202,
95,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
9506,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
9506,
202,
3593,
18231,
30,
9506,
202,
95,
6862,
202,
9053,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1161,
14849,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1161,
14849,
340,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
4033,
4366,
273,
389,
88,
31,
202,
202,
9053,
1853,
2643,
5520,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
31075,
900,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
3459,
280,
1132,
24899,
88,
1769,
202,
202,
67,
88,
273,
389,
1349,
2471,
31,
202,
202,
95,
202,
202,
67,
6498,
4033,
9060,
30,
2
] |
if (TargetPlatform.isRuntimeRefactored())
|
if (TargetPlatform.isRuntimeRefactored2()) wc.setAttribute("pde.version", "3.2a"); else if (TargetPlatform.isRuntimeRefactored1())
|
protected ILaunchConfiguration createConfiguration( IJavaProject project, String name, String mainType, String container, String testName) { ILaunchConfiguration config = null; try { ILaunchConfigurationType configType= getJUnitLaunchConfigType(); String computedName = DebugPlugin.getDefault().getLaunchManager().generateUniqueLaunchConfigurationNameFrom(name); ILaunchConfigurationWorkingCopy wc = configType.newInstance(null, computedName); if (TargetPlatform.isRuntimeRefactored()) wc.setAttribute("pde.version", "3.2"); //$NON-NLS-1$ //$NON-NLS-2$ wc.setAttribute(IPDELauncherConstants.LOCATION, LaunchArgumentsHelper.getDefaultJUnitWorkspaceLocation()); setJavaArguments(wc); wc.setAttribute(IPDELauncherConstants.USE_DEFAULT, true); wc.setAttribute(IPDELauncherConstants.DOCLEAR, true); wc.setAttribute(IPDELauncherConstants.ASKCLEAR, false); wc.setAttribute(IPDELauncherConstants.TRACING_CHECKED, IPDELauncherConstants.TRACING_NONE); wc.setAttribute(IPDELauncherConstants.CONFIG_GENERATE_DEFAULT, true); wc.setAttribute(IPDELauncherConstants.CONFIG_USE_DEFAULT_AREA, false); wc.setAttribute(IPDELauncherConstants.CONFIG_LOCATION, LaunchArgumentsHelper.getDefaultJUnitConfigurationLocation()); wc.setAttribute(IPDELauncherConstants.CONFIG_CLEAR_AREA, true); wc.setAttribute( IJavaLaunchConfigurationConstants.ATTR_SOURCE_PATH_PROVIDER, "org.eclipse.pde.ui.workbenchClasspathProvider"); //$NON-NLS-1$ wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, project.getElementName()); wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, mainType); wc.setAttribute(JUnitBaseLaunchConfiguration.ATTR_KEEPRUNNING, false); wc.setAttribute(JUnitBaseLaunchConfiguration.LAUNCH_CONTAINER_ATTR, container); if (testName.length() > 0) wc.setAttribute(JUnitBaseLaunchConfiguration.TESTNAME_ATTR, testName); if (JUnitLaunchConfiguration.requiresUI(wc)) { String product = TargetPlatform.getDefaultProduct(); if (product != null) { wc.setAttribute(IPDELauncherConstants.USE_PRODUCT, true); wc.setAttribute(IPDELauncherConstants.PRODUCT, product); } } else { wc.setAttribute(IPDELauncherConstants.APPLICATION, JUnitLaunchConfiguration.CORE_APPLICATION); } config= wc.doSave(); } catch (CoreException ce) { PDEPlugin.log(ce); } return config; }
|
14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/133f925c6c225420130479544ca4aab481d6b54a/JUnitWorkbenchShortcut.java/clean/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/launcher/JUnitWorkbenchShortcut.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
467,
9569,
1750,
752,
1750,
12,
202,
202,
45,
5852,
4109,
1984,
16,
514,
508,
16,
514,
2774,
559,
16,
514,
1478,
16,
514,
1842,
461,
13,
288,
202,
202,
2627,
4760,
1750,
642,
273,
446,
31,
202,
202,
698,
288,
1082,
202,
2627,
4760,
1750,
559,
642,
559,
33,
9285,
2802,
9569,
809,
559,
5621,
1082,
202,
780,
8470,
461,
273,
4015,
3773,
18,
588,
1868,
7675,
588,
9569,
1318,
7675,
7163,
6303,
9569,
1750,
461,
1265,
12,
529,
1769,
1082,
202,
2627,
4760,
1750,
14836,
2951,
14310,
273,
642,
559,
18,
2704,
1442,
12,
2011,
16,
8470,
461,
1769,
1082,
202,
430,
261,
2326,
8201,
18,
291,
5576,
426,
3493,
7653,
10756,
9506,
202,
27594,
18,
542,
1499,
2932,
84,
323,
18,
1589,
3113,
315,
23,
18,
22,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
4329,
3993,
17,
5106,
17,
22,
8,
1082,
202,
27594,
18,
542,
1499,
12,
2579,
1639,
28820,
2918,
18,
15277,
16,
14643,
4628,
2276,
18,
588,
1868,
46,
2802,
8241,
2735,
10663,
1082,
202,
542,
5852,
4628,
12,
27594,
1769,
1082,
202,
27594,
18,
542,
1499,
12,
2579,
1639,
28820,
2918,
18,
8001,
67,
5280,
16,
638,
1769,
1082,
202,
27594,
18,
542,
1499,
12,
2579,
1639,
28820,
2918,
18,
19693,
900,
985,
16,
638,
1769,
1082,
202,
27594,
18,
542,
1499,
12,
2579,
1639,
28820,
2918,
18,
6971,
23181,
985,
16,
629,
1769,
1082,
202,
27594,
18,
542,
1499,
12,
2579,
1639,
28820,
2918,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
467,
9569,
1750,
752,
1750,
12,
202,
202,
45,
5852,
4109,
1984,
16,
514,
508,
16,
514,
2774,
559,
16,
514,
1478,
16,
514,
1842,
461,
13,
288,
202,
202,
2627,
4760,
1750,
642,
273,
446,
31,
202,
202,
698,
288,
1082,
202,
2627,
4760,
1750,
559,
642,
559,
33,
9285,
2802,
9569,
809,
559,
5621,
1082,
202,
780,
8470,
461,
273,
4015,
3773,
18,
588,
1868,
7675,
588,
9569,
1318,
7675,
7163,
6303,
9569,
1750,
461,
1265,
12,
529,
1769,
1082,
202,
2627,
4760,
1750,
14836,
2951,
14310,
273,
642,
559,
18,
2704,
1442,
12,
2011,
16,
8470,
461,
1769,
1082,
202,
430,
261,
2326,
8201,
18,
291,
5576,
426,
3493,
7653,
10756,
9506,
202,
2
] |
UnitPrefix unitPrefix = UnitPrefix.findAppropiatePrefix(number, unitPrefixArray);
|
UnitPrefix unitPrefix = UnitPrefix.findAppropriatePrefix(number, unitPrefixArray);
|
public StringBuffer format(double number, StringBuffer toAppendTo, FieldPosition fieldPosition) { StringBuffer result = toAppendTo; UnitPrefix unitPrefix = UnitPrefix.findAppropiatePrefix(number, unitPrefixArray); if (unitPrefix == null) { result = super.format(number, toAppendTo, fieldPosition); } else { double convertedNumber = unitPrefix.adjustScale(number); result = super.format(convertedNumber, toAppendTo, fieldPosition); // ENHANCEME: Would be nice to be able to specify the place for // the unit symbol via the format string. result.append(" ").append(unitPrefix.unitSymbol()); } return result; }
|
50512 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50512/b56d94447657ce5ad3147c7f8798cbd55843227d/ERXUnitAwareDecimalFormat.java/clean/Common/Frameworks/ERExtensions/Sources/er/extensions/ERXUnitAwareDecimalFormat.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6674,
740,
12,
9056,
1300,
16,
6674,
358,
5736,
774,
16,
2286,
2555,
652,
2555,
13,
288,
3639,
6674,
563,
273,
358,
5736,
774,
31,
3639,
8380,
2244,
2836,
2244,
273,
8380,
2244,
18,
4720,
1294,
5986,
566,
340,
2244,
12,
2696,
16,
2836,
2244,
1076,
1769,
3639,
309,
261,
4873,
2244,
422,
446,
13,
288,
5411,
563,
273,
2240,
18,
2139,
12,
2696,
16,
358,
5736,
774,
16,
652,
2555,
1769,
3639,
289,
469,
288,
5411,
1645,
5970,
1854,
273,
2836,
2244,
18,
13362,
5587,
12,
2696,
1769,
5411,
563,
273,
2240,
18,
2139,
12,
6283,
329,
1854,
16,
358,
5736,
774,
16,
652,
2555,
1769,
5411,
368,
6693,
44,
4722,
958,
30,
678,
1006,
506,
13752,
358,
506,
7752,
358,
4800,
326,
3166,
364,
2868,
368,
5411,
326,
2836,
3273,
3970,
326,
740,
533,
18,
2398,
563,
18,
6923,
2932,
315,
2934,
6923,
12,
4873,
2244,
18,
4873,
5335,
10663,
3639,
289,
3639,
327,
563,
31,
377,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6674,
740,
12,
9056,
1300,
16,
6674,
358,
5736,
774,
16,
2286,
2555,
652,
2555,
13,
288,
3639,
6674,
563,
273,
358,
5736,
774,
31,
3639,
8380,
2244,
2836,
2244,
273,
8380,
2244,
18,
4720,
1294,
5986,
566,
340,
2244,
12,
2696,
16,
2836,
2244,
1076,
1769,
3639,
309,
261,
4873,
2244,
422,
446,
13,
288,
5411,
563,
273,
2240,
18,
2139,
12,
2696,
16,
358,
5736,
774,
16,
652,
2555,
1769,
3639,
289,
469,
288,
5411,
1645,
5970,
1854,
273,
2836,
2244,
18,
13362,
5587,
12,
2696,
1769,
5411,
563,
273,
2240,
18,
2139,
12,
6283,
329,
1854,
16,
358,
5736,
774,
16,
652,
2555,
1769,
5411,
368,
6693,
44,
4722,
958,
30,
678,
1006,
506,
2
] |
public org.quickfix.field.InterestAtMaturity getInterestAtMaturity() throws FieldNotFound { org.quickfix.field.InterestAtMaturity value = new org.quickfix.field.InterestAtMaturity();
|
public quickfix.field.InterestAtMaturity getInterestAtMaturity() throws FieldNotFound { quickfix.field.InterestAtMaturity value = new quickfix.field.InterestAtMaturity();
|
public org.quickfix.field.InterestAtMaturity getInterestAtMaturity() throws FieldNotFound { org.quickfix.field.InterestAtMaturity value = new org.quickfix.field.InterestAtMaturity(); getField(value); return value; }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/ExecutionReport.java/buggy/src/java/src/quickfix/fix44/ExecutionReport.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
29281,
861,
15947,
2336,
336,
29281,
861,
15947,
2336,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
29281,
861,
15947,
2336,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
29281,
861,
15947,
2336,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
29281,
861,
15947,
2336,
336,
29281,
861,
15947,
2336,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
29281,
861,
15947,
2336,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
29281,
861,
15947,
2336,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
wUseSubs.setSelection(jobentry.getUseVariableSubstitution());
|
public void getData() { if (jobentry.getName() != null) wName.setText( jobentry.getName() ); if (jobentry.getSQL() != null) wSQL.setText( jobentry.getSQL() ); DatabaseMeta dbinfo = jobentry.getDatabase(); if (dbinfo!=null && dbinfo.getName()!=null) wConnection.setText(dbinfo.getName()); else wConnection.setText(""); wName.selectAll(); }
|
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/bf4b3e91363640c62a549d821554162dfd376083/JobEntrySQLDialog.java/buggy/src/be/ibridge/kettle/job/entry/sql/JobEntrySQLDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
341,
3727,
26123,
18,
542,
6233,
12,
4688,
4099,
18,
588,
3727,
3092,
23798,
10663,
918,
341,
3727,
26123,
18,
542,
6233,
12,
4688,
4099,
18,
588,
3727,
3092,
23798,
10663,
4303,
1435,
202,
95,
202,
202,
430,
341,
3727,
26123,
18,
542,
6233,
12,
4688,
4099,
18,
588,
3727,
3092,
23798,
10663,
261,
4688,
4099,
18,
17994,
1435,
341,
3727,
26123,
18,
542,
6233,
12,
4688,
4099,
18,
588,
3727,
3092,
23798,
10663,
480,
341,
3727,
26123,
18,
542,
6233,
12,
4688,
4099,
18,
588,
3727,
3092,
23798,
10663,
446,
13,
341,
3727,
26123,
18,
542,
6233,
12,
4688,
4099,
18,
588,
3727,
3092,
23798,
10663,
341,
461,
18,
542,
1528,
12,
341,
3727,
26123,
18,
542,
6233,
12,
4688,
4099,
18,
588,
3727,
3092,
23798,
10663,
1719,
4099,
18,
17994,
1435,
341,
3727,
26123,
18,
542,
6233,
12,
4688,
4099,
18,
588,
3727,
3092,
23798,
10663,
11272,
202,
202,
430,
341,
3727,
26123,
18,
542,
6233,
12,
4688,
4099,
18,
588,
3727,
3092,
23798,
10663,
261,
4688,
4099,
18,
588,
3997,
1435,
341,
3727,
26123,
18,
542,
6233,
12,
4688,
4099,
18,
588,
3727,
3092,
23798,
10663,
225,
341,
3727,
26123,
18,
542,
6233,
12,
4688,
4099,
18,
588,
3727,
3092,
23798,
10663,
480,
341,
3727,
26123,
18,
542,
6233,
12,
4688,
4099,
18,
588,
3727,
3092,
23798,
10663,
446,
13,
341,
3727,
26123,
18,
542,
6233,
12,
4688,
4099,
18,
588,
3727,
3092,
23798,
10663,
341,
3997,
18,
542,
1528,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
341,
3727,
26123,
18,
542,
6233,
12,
4688,
4099,
18,
588,
3727,
3092,
23798,
10663,
918,
341,
3727,
26123,
18,
542,
6233,
12,
4688,
4099,
18,
588,
3727,
3092,
23798,
10663,
4303,
1435,
202,
95,
202,
202,
430,
341,
3727,
26123,
18,
542,
6233,
12,
4688,
4099,
18,
588,
3727,
3092,
23798,
10663,
261,
4688,
4099,
18,
17994,
1435,
341,
3727,
26123,
18,
542,
6233,
12,
4688,
4099,
18,
588,
3727,
3092,
23798,
10663,
480,
341,
3727,
26123,
18,
542,
6233,
12,
4688,
4099,
18,
588,
3727,
3092,
23798,
10663,
446,
13,
341,
3727,
26123,
18,
542,
6233,
12,
4688,
4099,
18,
588,
3727,
3092,
23798,
10663,
341,
461,
18,
542,
1528,
12,
341,
3727,
26123,
2
] |
|
for( i = gs; i <= ge; i++ ) {
|
for( i = gs; i <= ge; i++ ) {
|
private void sendMTFValues() throws IOException { char len[][] = new char[ N_GROUPS ][ MAX_ALPHA_SIZE ]; int v; int t; int i; int j; int gs; int ge; int totc; int bt; int bc; int iter; int nSelectors = 0; int alphaSize; int minLen; int maxLen; int selCtr; int nGroups; int nBytes; alphaSize = nInUse + 2; for( t = 0; t < N_GROUPS; t++ ) { for( v = 0; v < alphaSize; v++ ) { len[ t ][ v ] = (char)GREATER_ICOST; } } /* * Decide how many coding tables to use */ if( nMTF <= 0 ) { panic(); } if( nMTF < 200 ) { nGroups = 2; } else if( nMTF < 600 ) { nGroups = 3; } else if( nMTF < 1200 ) { nGroups = 4; } else if( nMTF < 2400 ) { nGroups = 5; } else { nGroups = 6; } { /* * Generate an initial set of coding tables */ int nPart; int remF; int tFreq; int aFreq; nPart = nGroups; remF = nMTF; gs = 0; while( nPart > 0 ) { tFreq = remF / nPart; ge = gs - 1; aFreq = 0; while( aFreq < tFreq && ge < alphaSize - 1 ) { ge++; aFreq += mtfFreq[ ge ]; } if( ge > gs && nPart != nGroups && nPart != 1 && ( ( nGroups - nPart ) % 2 == 1 ) ) { aFreq -= mtfFreq[ ge ]; ge--; } for( v = 0; v < alphaSize; v++ ) { if( v >= gs && v <= ge ) { len[ nPart - 1 ][ v ] = (char)LESSER_ICOST; } else { len[ nPart - 1 ][ v ] = (char)GREATER_ICOST; } } nPart--; gs = ge + 1; remF -= aFreq; } } int rfreq[][] = new int[ N_GROUPS ][ MAX_ALPHA_SIZE ]; int fave[] = new int[ N_GROUPS ]; short cost[] = new short[ N_GROUPS ]; /* * Iterate up to N_ITERS times to improve the tables. */ for( iter = 0; iter < N_ITERS; iter++ ) { for( t = 0; t < nGroups; t++ ) { fave[ t ] = 0; } for( t = 0; t < nGroups; t++ ) { for( v = 0; v < alphaSize; v++ ) { rfreq[ t ][ v ] = 0; } } nSelectors = 0; totc = 0; gs = 0; while( true ) { /* * Set group start & end marks. */ if( gs >= nMTF ) { break; } ge = gs + G_SIZE - 1; if( ge >= nMTF ) { ge = nMTF - 1; } /* * Calculate the cost of this group as coded * by each of the coding tables. */ for( t = 0; t < nGroups; t++ ) { cost[ t ] = 0; } if( nGroups == 6 ) { short cost0; short cost1; short cost2; short cost3; short cost4; short cost5; cost0 = cost1 = cost2 = cost3 = cost4 = cost5 = 0; for( i = gs; i <= ge; i++ ) { short icv = szptr[ i ]; cost0 += len[ 0 ][ icv ]; cost1 += len[ 1 ][ icv ]; cost2 += len[ 2 ][ icv ]; cost3 += len[ 3 ][ icv ]; cost4 += len[ 4 ][ icv ]; cost5 += len[ 5 ][ icv ]; } cost[ 0 ] = cost0; cost[ 1 ] = cost1; cost[ 2 ] = cost2; cost[ 3 ] = cost3; cost[ 4 ] = cost4; cost[ 5 ] = cost5; } else { for( i = gs; i <= ge; i++ ) { short icv = szptr[ i ]; for( t = 0; t < nGroups; t++ ) { cost[ t ] += len[ t ][ icv ]; } } } /* * Find the coding table which is best for this group, * and record its identity in the selector table. */ bc = 999999999; bt = -1; for( t = 0; t < nGroups; t++ ) { if( cost[ t ] < bc ) { bc = cost[ t ]; bt = t; } } ; totc += bc; fave[ bt ]++; selector[ nSelectors ] = (char)bt; nSelectors++; /* * Increment the symbol frequencies for the selected table. */ for( i = gs; i <= ge; i++ ) { rfreq[ bt ][ szptr[ i ] ]++; } gs = ge + 1; } /* * Recompute the tables based on the accumulated frequencies. */ for( t = 0; t < nGroups; t++ ) { hbMakeCodeLengths( len[ t ], rfreq[ t ], alphaSize, 20 ); } } rfreq = null; fave = null; cost = null; if( !( nGroups < 8 ) ) { panic(); } if( !( nSelectors < 32768 && nSelectors <= ( 2 + ( 900000 / G_SIZE ) ) ) ) { panic(); } { /* * Compute MTF values for the selectors. */ char pos[] = new char[ N_GROUPS ]; char ll_i; char tmp2; char tmp; for( i = 0; i < nGroups; i++ ) { pos[ i ] = (char)i; } for( i = 0; i < nSelectors; i++ ) { ll_i = selector[ i ]; j = 0; tmp = pos[ j ]; while( ll_i != tmp ) { j++; tmp2 = tmp; tmp = pos[ j ]; pos[ j ] = tmp2; } pos[ 0 ] = tmp; selectorMtf[ i ] = (char)j; } } int code[][] = new int[ N_GROUPS ][ MAX_ALPHA_SIZE ]; /* * Assign actual codes for the tables. */ for( t = 0; t < nGroups; t++ ) { minLen = 32; maxLen = 0; for( i = 0; i < alphaSize; i++ ) { if( len[ t ][ i ] > maxLen ) { maxLen = len[ t ][ i ]; } if( len[ t ][ i ] < minLen ) { minLen = len[ t ][ i ]; } } if( maxLen > 20 ) { panic(); } if( minLen < 1 ) { panic(); } hbAssignCodes( code[ t ], len[ t ], minLen, maxLen, alphaSize ); } { /* * Transmit the mapping table. */ boolean inUse16[] = new boolean[ 16 ]; for( i = 0; i < 16; i++ ) { inUse16[ i ] = false; for( j = 0; j < 16; j++ ) { if( inUse[ i * 16 + j ] ) { inUse16[ i ] = true; } } } nBytes = bytesOut; for( i = 0; i < 16; i++ ) { if( inUse16[ i ] ) { bsW( 1, 1 ); } else { bsW( 1, 0 ); } } for( i = 0; i < 16; i++ ) { if( inUse16[ i ] ) { for( j = 0; j < 16; j++ ) { if( inUse[ i * 16 + j ] ) { bsW( 1, 1 ); } else { bsW( 1, 0 ); } } } } } /* * Now the selectors. */ nBytes = bytesOut; bsW( 3, nGroups ); bsW( 15, nSelectors ); for( i = 0; i < nSelectors; i++ ) { for( j = 0; j < selectorMtf[ i ]; j++ ) { bsW( 1, 1 ); } bsW( 1, 0 ); } /* * Now the coding tables. */ nBytes = bytesOut; for( t = 0; t < nGroups; t++ ) { int curr = len[ t ][ 0 ]; bsW( 5, curr ); for( i = 0; i < alphaSize; i++ ) { while( curr < len[ t ][ i ] ) { bsW( 2, 2 ); curr++; /* * 10 */ } while( curr > len[ t ][ i ] ) { bsW( 2, 3 ); curr--; /* * 11 */ } bsW( 1, 0 ); } } /* * And finally, the block data proper */ nBytes = bytesOut; selCtr = 0; gs = 0; while( true ) { if( gs >= nMTF ) { break; } ge = gs + G_SIZE - 1; if( ge >= nMTF ) { ge = nMTF - 1; } for( i = gs; i <= ge; i++ ) { bsW( len[ selector[ selCtr ] ][ szptr[ i ] ], code[ selector[ selCtr ] ][ szptr[ i ] ] ); } gs = ge + 1; selCtr++; } if( !( selCtr == nSelectors ) ) { panic(); } }
|
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/bab9e2d799ee887bc0a404b4acdec0366234eafe/CBZip2OutputStream.java/buggy/proposal/myrmidon/src/java/org/apache/aut/bzip2/CBZip2OutputStream.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1366,
6152,
42,
1972,
1435,
3639,
1216,
1860,
565,
288,
3639,
1149,
562,
63,
6362,
65,
273,
394,
1149,
63,
423,
67,
28977,
308,
63,
4552,
67,
26313,
67,
4574,
308,
31,
3639,
509,
331,
31,
3639,
509,
268,
31,
3639,
509,
277,
31,
3639,
509,
525,
31,
3639,
509,
10763,
31,
3639,
509,
8244,
31,
3639,
509,
9997,
71,
31,
3639,
509,
10921,
31,
3639,
509,
6533,
31,
3639,
509,
1400,
31,
3639,
509,
290,
19277,
273,
374,
31,
3639,
509,
4190,
1225,
31,
3639,
509,
1131,
2891,
31,
3639,
509,
29618,
31,
3639,
509,
357,
39,
313,
31,
3639,
509,
290,
3621,
31,
3639,
509,
290,
2160,
31,
3639,
4190,
1225,
273,
290,
15435,
397,
576,
31,
3639,
364,
12,
268,
273,
374,
31,
268,
411,
423,
67,
28977,
31,
268,
9904,
262,
288,
5411,
364,
12,
331,
273,
374,
31,
331,
411,
4190,
1225,
31,
331,
9904,
262,
288,
7734,
562,
63,
268,
308,
63,
331,
308,
273,
261,
3001,
13,
43,
18857,
67,
2871,
4005,
31,
5411,
289,
3639,
289,
3639,
1748,
540,
380,
3416,
831,
3661,
4906,
14848,
4606,
358,
999,
540,
1195,
3639,
309,
12,
290,
6152,
42,
1648,
374,
262,
288,
5411,
3933,
5621,
3639,
289,
3639,
309,
12,
290,
6152,
42,
411,
4044,
262,
288,
5411,
290,
3621,
273,
576,
31,
3639,
289,
469,
309,
12,
290,
6152,
42,
411,
14707,
262,
288,
5411,
290,
3621,
273,
890,
31,
9079,
289,
469,
309,
12,
290,
6152,
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,
1366,
6152,
42,
1972,
1435,
3639,
1216,
1860,
565,
288,
3639,
1149,
562,
63,
6362,
65,
273,
394,
1149,
63,
423,
67,
28977,
308,
63,
4552,
67,
26313,
67,
4574,
308,
31,
3639,
509,
331,
31,
3639,
509,
268,
31,
3639,
509,
277,
31,
3639,
509,
525,
31,
3639,
509,
10763,
31,
3639,
509,
8244,
31,
3639,
509,
9997,
71,
31,
3639,
509,
10921,
31,
3639,
509,
6533,
31,
3639,
509,
1400,
31,
3639,
509,
290,
19277,
273,
374,
31,
3639,
509,
4190,
1225,
31,
3639,
509,
1131,
2891,
31,
3639,
509,
29618,
31,
3639,
509,
357,
39,
313,
31,
3639,
509,
290,
3621,
31,
3639,
509,
290,
2160,
31,
3639,
4190,
1225,
273,
290,
15435,
2
] |
case TRAP_opcode:
|
private void verifyInstructions(String where) { Enumeration bbEnum = cfg.nodes(); while(bbEnum.hasMoreElements()) { OPT_BasicBlock block = (OPT_BasicBlock) bbEnum.nextElement(); OPT_IREnumeration.AllInstructionsEnum instructions = new OPT_IREnumeration.AllInstructionsEnum(this, block); boolean startingInstructionsPassed = false; while (instructions.hasMoreElements()) { OPT_Instruction instruction = instructions.next(); // Perform (1) and (3) OPT_IREnumeration.AllUsesEnum useOperands = new OPT_IREnumeration.AllUsesEnum(this, instruction); while (useOperands.hasMoreElements()) { OPT_Operand use = useOperands.next(); if(use.instruction != instruction) { verror(where, "In block " + block + " for instruction " + instruction + " the back link in the use of operand " + use + " is invalid and references " + use.instruction); } if((IRStage >= MIR) && (use.isRegister()) && (use.asRegister().register.isValidation())) { verror(where, "In block " + block + " for instruction " + instruction + " the use operand " + use + " is invalid as it is a validation register and this IR is in MIR form"); } } OPT_IREnumeration.AllDefsEnum defOperands = new OPT_IREnumeration.AllDefsEnum(this, instruction); while (defOperands.hasMoreElements()) { OPT_Operand def = defOperands.next(); if(def.instruction != instruction) { verror(where, "In block " + block + " for instruction " + instruction + " the back link in the def of operand " + def + " is invalid and references " + def.instruction); } if((IRStage >= MIR) && (def.isRegister()) && (def.asRegister().register.isValidation())) { verror(where, "In block " + block + " for instruction " + instruction + " the def operand " + def + " is invalid as it is a validation register and this IR is in MIR form"); } } // Perform (2) // test for starting instructions if(startingInstructionsPassed == false) { if(Label.conforms(instruction)) { continue; } if(Phi.conforms(instruction)) { if((!inSSAForm())&&(!inSSAFormAwaitingReEntry())){ verror(where, "Phi node encountered but SSA not computed"); } continue; } startingInstructionsPassed = true; } // main instruction location test switch(instruction.operator().opcode) { // Label and phi nodes must be at the start of a BB case PHI_opcode: case LABEL_opcode: verror(where, "Unexpected instruction in the middle of a basic block " + instruction); // BBend, Goto, IfCmp, TableSwitch, Return, Trap and Athrow // must all appear at the end of a basic block case INT_IFCMP_opcode: case INT_IFCMP2_opcode: case LONG_IFCMP_opcode: case FLOAT_IFCMP_opcode: case DOUBLE_IFCMP_opcode: case REF_IFCMP_opcode: instruction = instructions.next(); if((Goto.conforms(instruction) == false) && (BBend.conforms(instruction) == false) && (MIR_Branch.conforms(instruction) == false) ) { verror(where, "Unexpected instruction after IFCMP " + instruction); } if(Goto.conforms(instruction)|| MIR_Branch.conforms(instruction) ) { instruction = instructions.next(); if(BBend.conforms(instruction) == false) { verror(where, "Unexpected instruction after GOTO/MIR_BRANCH " + instruction); } } if(instructions.hasMoreElements()) { verror(where, "Unexpected instructions after BBEND " + instructions.next()); } break; case TABLESWITCH_opcode: case LOOKUPSWITCH_opcode: case ATHROW_opcode: case RETURN_opcode: case TRAP_opcode: case GOTO_opcode: OPT_Instruction next = instructions.next(); if(BBend.conforms(next) == false) { verror(where, "Unexpected instruction after " + instruction + "\n" + next); } if(instructions.hasMoreElements()) { verror(where, "Unexpected instructions after BBEND " + instructions.next()); } break; case BBEND_opcode: if(instructions.hasMoreElements()) { verror(where, "Unexpected instructions after BBEND " + instructions.next()); } break; default: } } } }
|
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/f058924457fa7c3534598c7957e9a277335f4b1b/OPT_IR.java/buggy/rvm/src/vm/compilers/optimizing/ir/OPT_IR.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
3929,
26712,
12,
780,
1625,
13,
288,
565,
13864,
7129,
3572,
273,
2776,
18,
4690,
5621,
202,
1323,
12,
9897,
3572,
18,
5332,
7417,
3471,
10756,
288,
1377,
16456,
67,
8252,
1768,
1203,
273,
261,
15620,
67,
8252,
1768,
13,
7129,
3572,
18,
4285,
1046,
5621,
202,
202,
15620,
67,
7937,
21847,
18,
1595,
26712,
3572,
12509,
273,
394,
16456,
67,
7937,
21847,
18,
1595,
26712,
3572,
12,
2211,
16,
1203,
1769,
202,
202,
6494,
5023,
26712,
22530,
273,
629,
31,
202,
202,
17523,
261,
25758,
18,
5332,
7417,
3471,
10756,
288,
1082,
225,
16456,
67,
11983,
7592,
273,
12509,
18,
4285,
5621,
1082,
225,
368,
11217,
261,
21,
13,
471,
261,
23,
13,
1082,
225,
16456,
67,
7937,
21847,
18,
1595,
15128,
3572,
999,
3542,
5708,
273,
394,
16456,
67,
7937,
21847,
18,
1595,
15128,
3572,
12,
2211,
16,
7592,
1769,
1082,
225,
1323,
261,
1202,
3542,
5708,
18,
5332,
7417,
3471,
10756,
288,
9506,
16456,
67,
10265,
999,
273,
999,
3542,
5708,
18,
4285,
5621,
9506,
309,
12,
1202,
18,
19116,
480,
7592,
13,
288,
9506,
202,
1107,
280,
12,
6051,
16,
315,
382,
1203,
315,
397,
1203,
397,
315,
364,
7592,
315,
397,
7592,
397,
6862,
1082,
315,
326,
1473,
1692,
316,
326,
999,
434,
9886,
315,
397,
999,
397,
6862,
1082,
315,
353,
2057,
471,
5351,
315,
397,
999,
18,
19116,
1769,
9506,
289,
9506,
309,
12443,
7937,
8755,
1545,
490,
7937,
13,
597,
261,
1202,
18,
291,
3996,
10756,
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,
918,
3929,
26712,
12,
780,
1625,
13,
288,
565,
13864,
7129,
3572,
273,
2776,
18,
4690,
5621,
202,
1323,
12,
9897,
3572,
18,
5332,
7417,
3471,
10756,
288,
1377,
16456,
67,
8252,
1768,
1203,
273,
261,
15620,
67,
8252,
1768,
13,
7129,
3572,
18,
4285,
1046,
5621,
202,
202,
15620,
67,
7937,
21847,
18,
1595,
26712,
3572,
12509,
273,
394,
16456,
67,
7937,
21847,
18,
1595,
26712,
3572,
12,
2211,
16,
1203,
1769,
202,
202,
6494,
5023,
26712,
22530,
273,
629,
31,
202,
202,
17523,
261,
25758,
18,
5332,
7417,
3471,
10756,
288,
1082,
225,
16456,
67,
11983,
7592,
273,
12509,
18,
4285,
5621,
1082,
225,
368,
11217,
261,
21,
13,
471,
261,
23,
13,
1082,
225,
2
] |
|
public CommonDropAdapterAssistant[] findCommonDropAdapterAssistants(Object aDropTarget) { return null;
|
public CommonDropAdapterAssistant[] findCommonDropAdapterAssistants( Object aDropTarget, TransferData aTransferType) { CommonDropAdapterDescriptor[] descriptors = CommonDropDescriptorManager .getInstance().findCommonDropAdapterAssistants(aDropTarget, contentService); if (descriptors.length == 0) return NO_ASSISTANTS; if (LocalSelectionTransfer.getTransfer().isSupportedType(aTransferType) && LocalSelectionTransfer.getTransfer().getSelection() instanceof IStructuredSelection) return getAssistantsBySelection(descriptors, (IStructuredSelection) LocalSelectionTransfer.getTransfer().getSelection()); return getAssistantsByTransferData(descriptors, aTransferType);
|
public CommonDropAdapterAssistant[] findCommonDropAdapterAssistants(Object aDropTarget) { // TODO Implement the search routine return null; }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/49eb96577ec0522e254b4f6e46dc20eebd9aad2c/NavigatorDnDService.java/clean/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/dnd/NavigatorDnDService.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5658,
7544,
4216,
2610,
17175,
8526,
1104,
6517,
7544,
4216,
2610,
376,
4388,
12,
921,
279,
7544,
2326,
13,
288,
202,
202,
759,
2660,
10886,
326,
1623,
12245,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5658,
7544,
4216,
2610,
17175,
8526,
1104,
6517,
7544,
4216,
2610,
376,
4388,
12,
921,
279,
7544,
2326,
13,
288,
202,
202,
759,
2660,
10886,
326,
1623,
12245,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
AST __t354 = _t;
|
AST __t359 = _t;
|
public final Expression numericExpr(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { Expression step; AST numericExpr_AST_in = (AST)_t; step= null; PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PLUS: { AST __t351 = _t; AST tmp81_AST_in = (AST)_t; match(_t,PLUS); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t351; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.PLUS); path.addPath(op); step= op; break; } case MINUS: { AST __t352 = _t; AST tmp82_AST_in = (AST)_t; match(_t,MINUS); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t352; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.MINUS); path.addPath(op); step= op; break; } case UNARY_MINUS: { AST __t353 = _t; AST tmp83_AST_in = (AST)_t; match(_t,UNARY_MINUS); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; _t = __t353; _t = _t.getNextSibling(); UnaryExpr unary= new UnaryExpr(context, Constants.MINUS); unary.add(left); path.addPath(unary); step= unary; break; } case UNARY_PLUS: { AST __t354 = _t; AST tmp84_AST_in = (AST)_t; match(_t,UNARY_PLUS); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; _t = __t354; _t = _t.getNextSibling(); UnaryExpr unary= new UnaryExpr(context, Constants.PLUS); unary.add(left); path.addPath(unary); step= unary; break; } case LITERAL_div: { AST __t355 = _t; AST tmp85_AST_in = (AST)_t; match(_t,LITERAL_div); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t355; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.DIV); path.addPath(op); step= op; break; } case LITERAL_idiv: { AST __t356 = _t; AST tmp86_AST_in = (AST)_t; match(_t,LITERAL_idiv); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t356; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.IDIV); path.addPath(op); step= op; break; } case LITERAL_mod: { AST __t357 = _t; AST tmp87_AST_in = (AST)_t; match(_t,LITERAL_mod); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t357; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.MOD); path.addPath(op); step= op; break; } case STAR: { AST __t358 = _t; AST tmp88_AST_in = (AST)_t; match(_t,STAR); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t358; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.MULT); path.addPath(op); step= op; break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; return step; }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/1d6298911c93c664b283d6052b53ef5b8e0b20cb/XPathTreeParser2.java/clean/src/org/exist/parser/XPathTreeParser2.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
5371,
225,
6389,
4742,
12,
9053,
389,
88,
16,
202,
202,
743,
4742,
589,
202,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
16,
14124,
503,
288,
202,
202,
2300,
2235,
31,
9506,
202,
9053,
6389,
4742,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
6862,
202,
4119,
33,
446,
31,
1082,
202,
743,
4742,
2002,
33,
394,
2666,
4742,
12,
2472,
1769,
1082,
202,
743,
4742,
2145,
33,
394,
2666,
4742,
12,
2472,
1769,
25083,
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,
22443,
3378,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
4763,
21,
273,
389,
88,
31,
1082,
202,
9053,
1853,
11861,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
6253,
3378,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
1082,
202,
4119,
33,
8638,
24899,
88,
16,
4482,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
1082,
202,
4119,
33,
8638,
24899,
88,
16,
4083,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
1082,
202,
67,
88,
273,
1001,
88,
4763,
21,
31,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
6862,
9506,
202,
3817,
9902,
1061,
33,
394,
6066,
9902,
12,
2472,
16,
2002,
16,
2145,
16,
5245,
18,
6253,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
5371,
225,
6389,
4742,
12,
9053,
389,
88,
16,
202,
202,
743,
4742,
589,
202,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
16,
14124,
503,
288,
202,
202,
2300,
2235,
31,
9506,
202,
9053,
6389,
4742,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
6862,
202,
4119,
33,
446,
31,
1082,
202,
743,
4742,
2002,
33,
394,
2666,
4742,
12,
2472,
1769,
1082,
202,
743,
4742,
2145,
33,
394,
2666,
4742,
12,
2472,
1769,
25083,
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,
22443,
3378,
30,
202,
202,
95,
2
] |
static private synchronized void writeHeaderFileOutputStream(byte[] buffer, int length)
|
static private synchronized void writeHeaderFileOutputStream(byte[] buffer, Offset length)
|
static private synchronized void writeHeaderFileOutputStream(byte[] buffer, int length) { if(verbose>=8)VM.sysWriteln("VM_HPMs.writeHeaderFileOutputStream(buffer, 0, ",length,")"); if (length <= 0) return; if (header_trace_file == null) { // constraint VM.sysWriteln("\n***VM_HPMs.writeHeaderFileOutputStream() header_trace_file == null! Call VM.shutdown(VM.EXIT_STATUS_HPM_TROUBLE)***"); VM.shutdown(VM.EXIT_STATUS_HPM_TROUBLE); } try { header_trace_file.write(buffer, 0, length); } catch (IOException e) { VM.sysWriteln("***VM_HPMs.writeHeaderFileOutputStream(",length,") throws IOException!***"); e.printStackTrace(); VM.shutdown(VM.EXIT_STATUS_HPM_TROUBLE); } }
|
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/71f0481e0131f8f2137e2feea85ae32a28daffcc/VM_HardwarePerformanceMonitors.java/clean/rvm/src/vm/HPM/VM_HardwarePerformanceMonitors.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
3238,
3852,
918,
1045,
1864,
812,
4632,
12,
7229,
8526,
1613,
16,
9874,
769,
13,
225,
288,
565,
309,
12,
11369,
34,
33,
28,
13,
7397,
18,
9499,
4913,
292,
82,
2932,
7397,
67,
2500,
6947,
18,
2626,
1864,
812,
4632,
12,
4106,
16,
374,
16,
3104,
2469,
10837,
2225,
1769,
565,
309,
261,
2469,
1648,
374,
13,
327,
31,
565,
309,
261,
3374,
67,
5129,
67,
768,
422,
446,
13,
288,
565,
368,
4954,
1377,
8251,
18,
9499,
4913,
292,
82,
31458,
82,
14465,
7397,
67,
2500,
6947,
18,
2626,
1864,
812,
4632,
1435,
1446,
67,
5129,
67,
768,
422,
446,
5,
225,
3049,
8251,
18,
15132,
12,
7397,
18,
28682,
67,
8608,
67,
2500,
49,
67,
56,
1457,
10622,
13,
636,
7388,
1769,
1377,
8251,
18,
15132,
12,
7397,
18,
28682,
67,
8608,
67,
2500,
49,
67,
56,
1457,
10622,
1769,
565,
289,
565,
775,
288,
1377,
1446,
67,
5129,
67,
768,
18,
2626,
12,
4106,
16,
374,
16,
769,
1769,
565,
289,
1044,
261,
14106,
425,
13,
288,
1377,
8251,
18,
9499,
4913,
292,
82,
2932,
14465,
7397,
67,
2500,
6947,
18,
2626,
1864,
812,
4632,
2932,
16,
2469,
16,
7923,
1216,
1860,
5,
636,
7388,
1769,
1377,
425,
18,
1188,
6332,
5621,
8251,
18,
15132,
12,
7397,
18,
28682,
67,
8608,
67,
2500,
49,
67,
56,
1457,
10622,
1769,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
3238,
3852,
918,
1045,
1864,
812,
4632,
12,
7229,
8526,
1613,
16,
9874,
769,
13,
225,
288,
565,
309,
12,
11369,
34,
33,
28,
13,
7397,
18,
9499,
4913,
292,
82,
2932,
7397,
67,
2500,
6947,
18,
2626,
1864,
812,
4632,
12,
4106,
16,
374,
16,
3104,
2469,
10837,
2225,
1769,
565,
309,
261,
2469,
1648,
374,
13,
327,
31,
565,
309,
261,
3374,
67,
5129,
67,
768,
422,
446,
13,
288,
565,
368,
4954,
1377,
8251,
18,
9499,
4913,
292,
82,
31458,
82,
14465,
7397,
67,
2500,
6947,
18,
2626,
1864,
812,
4632,
1435,
1446,
67,
5129,
67,
768,
422,
446,
5,
225,
3049,
8251,
18,
15132,
12,
7397,
18,
28682,
67,
8608,
67,
2500,
49,
2
] |
public DefaultGrailsPluginManager(Resource[] pluginFiles, GrailsApplication application2) {
|
public DefaultGrailsPluginManager(String resourcePath, GrailsApplication application) throws IOException { super();
|
public DefaultGrailsPluginManager(Resource[] pluginFiles, GrailsApplication application2) { if(application == null) throw new IllegalArgumentException("Argument [application] cannot be null!"); resolver = new PathMatchingResourcePatternResolver(); this.pluginResources = pluginFiles; this.application = application2; }
|
26970 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/26970/8a3b2a552558c5afc241155d83b01422e1901607/DefaultGrailsPluginManager.java/buggy/src/commons/org/codehaus/groovy/grails/plugins/DefaultGrailsPluginManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2989,
14571,
14573,
3773,
1318,
12,
1420,
8526,
1909,
2697,
16,
10812,
14573,
3208,
2521,
22,
13,
288,
202,
202,
430,
12,
3685,
422,
446,
13,
1082,
202,
12849,
394,
2754,
2932,
1379,
306,
3685,
65,
2780,
506,
446,
4442,
1769,
202,
202,
14122,
273,
394,
2666,
9517,
1420,
3234,
4301,
5621,
202,
202,
2211,
18,
4094,
3805,
273,
1909,
2697,
31,
3639,
333,
18,
3685,
273,
2521,
22,
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,
225,
202,
482,
2989,
14571,
14573,
3773,
1318,
12,
1420,
8526,
1909,
2697,
16,
10812,
14573,
3208,
2521,
22,
13,
288,
202,
202,
430,
12,
3685,
422,
446,
13,
1082,
202,
12849,
394,
2754,
2932,
1379,
306,
3685,
65,
2780,
506,
446,
4442,
1769,
202,
202,
14122,
273,
394,
2666,
9517,
1420,
3234,
4301,
5621,
202,
202,
2211,
18,
4094,
3805,
273,
1909,
2697,
31,
3639,
333,
18,
3685,
273,
2521,
22,
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
] |
return evaluateCaseMatch(evaluator, args); }
|
String o0 = getStringArg(evaluator, args, 0, null); String o1 = getStringArg(evaluator, args, 1, null); return o0 + o1; }
|
public Object evaluate(Evaluator evaluator, Exp[] args) { return evaluateCaseMatch(evaluator, args); }
|
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/3041f930b5fc4bf6aa3339845b828801c1d8b366/BuiltinFunTable.java/clean/src/main/mondrian/olap/fun/BuiltinFunTable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
7682,
1071,
1033,
5956,
12,
15876,
18256,
16,
7784,
8526,
833,
13,
288,
18701,
327,
5956,
2449,
2060,
12,
14168,
639,
16,
833,
1769,
13491,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
7682,
1071,
1033,
5956,
12,
15876,
18256,
16,
7784,
8526,
833,
13,
288,
18701,
327,
5956,
2449,
2060,
12,
14168,
639,
16,
833,
1769,
13491,
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
] |
return RubyArray.newArray(getRuntime(), other, this);
|
return getRuntime().newArray(other, this);
|
public RubyArray coerce(RubyNumeric other) { if (getMetaClass() == other.getMetaClass()) { return RubyArray.newArray(getRuntime(), other, this); } return RubyArray.newArray( getRuntime(), RubyFloat.newFloat(getRuntime(), other.getDoubleValue()), RubyFloat.newFloat(getRuntime(), getDoubleValue())); }
|
49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyNumeric.java/clean/src/org/jruby/RubyNumeric.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
1076,
12270,
12,
54,
10340,
9902,
1308,
13,
288,
3639,
309,
261,
588,
2781,
797,
1435,
422,
1308,
18,
588,
2781,
797,
10756,
288,
5411,
327,
18814,
7675,
2704,
1076,
12,
3011,
16,
333,
1769,
3639,
289,
10402,
327,
19817,
1076,
18,
2704,
1076,
12,
7734,
18814,
9334,
7734,
19817,
4723,
18,
2704,
4723,
12,
588,
5576,
9334,
1308,
18,
588,
5265,
620,
1435,
3631,
7734,
19817,
4723,
18,
2704,
4723,
12,
588,
5576,
9334,
16097,
620,
1435,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
1076,
12270,
12,
54,
10340,
9902,
1308,
13,
288,
3639,
309,
261,
588,
2781,
797,
1435,
422,
1308,
18,
588,
2781,
797,
10756,
288,
5411,
327,
18814,
7675,
2704,
1076,
12,
3011,
16,
333,
1769,
3639,
289,
10402,
327,
19817,
1076,
18,
2704,
1076,
12,
7734,
18814,
9334,
7734,
19817,
4723,
18,
2704,
4723,
12,
588,
5576,
9334,
1308,
18,
588,
5265,
620,
1435,
3631,
7734,
19817,
4723,
18,
2704,
4723,
12,
588,
5576,
9334,
16097,
620,
1435,
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
] |
if (routemetric3 != -1)
|
if (routemetric3 != null)
|
private void storeSnmpCollection(Connection dbConn, Timestamp now) throws SQLException, UnknownHostException { Category log = ThreadCategory.getInstance(getClass()); Iterator ite = null; int nodeid = m_node.getNodeId(); if (m_snmpcoll.hasIpNetToMediaTable()) { ite = m_snmpcoll.getIpNetToMediaTable() .getEntries().iterator(); if (log.isDebugEnabled()) log .debug("store: saving IpNetToMediaTable to atinterface table in DB"); // the AtInterfaces used by LinkableNode where to save info java.util.List<AtInterface> atInterfaces = new java.util.ArrayList<AtInterface>(); while (ite.hasNext()) { IpNetToMediaTableEntry ent = (IpNetToMediaTableEntry) ite .next(); int ifindex = ent .getInt32(IpNetToMediaTableEntry.INTM_INDEX); InetAddress ipaddress = ent .getIPAddress(IpNetToMediaTableEntry.INTM_NETADDR); if (ipaddress.isLoopbackAddress() || ipaddress.getHostAddress().equals("0.0.0.0")) { log.warn("store: invalid ip " + ipaddress.getHostAddress()); continue; } String physAddr = ent .getHexString(IpNetToMediaTableEntry.INTM_PHYSADDR); if (physAddr.equals("000000000000") || physAddr.equalsIgnoreCase("ffffffffffff")) { log.warn("store: invalid mac address " + physAddr + " for ip " + ipaddress.getHostAddress()); continue; } if (log.isDebugEnabled()) log.debug("store: trying save info for ipaddr " + ipaddress.getHostName() + " mac address " + physAddr + " found on ifindex " + ifindex); // get an At interface but without setting mac address AtInterface at = getNodeidIfindexFromIp(dbConn, ipaddress); if (at == null) { log.warn("getNodeidIfindexFromIp: no nodeid found for ipaddress " + ipaddress + "."); continue; //TODO here is a good place for autodiscovery } //set the mac address at.setMacAddress(physAddr); // add At Inteface to list of valid interfaces atInterfaces.add(at); // Save in DB DbAtInterfaceEntry atInterfaceEntry = DbAtInterfaceEntry.get( dbConn, at.getNodeId(), ipaddress.getHostAddress()); if (atInterfaceEntry == null) { atInterfaceEntry = DbAtInterfaceEntry.create(at.getNodeId(), ipaddress.getHostAddress()); } // update object atInterfaceEntry.updateAtPhysAddr(physAddr); atInterfaceEntry.updateSourceNodeId(nodeid); atInterfaceEntry.updateIfIndex(ifindex); atInterfaceEntry.updateStatus(DbAtInterfaceEntry.STATUS_ACTIVE); atInterfaceEntry.set_lastpolltime(now); // store object in database atInterfaceEntry.store(dbConn); } // set AtInterfaces in LinkableNode m_node.setAtInterfaces(atInterfaces); } if (m_snmpcoll.hasCdpCacheTable()) { if (log.isDebugEnabled()) log .debug("store: saving CdpCacheTable into SnmpLinkableNode"); java.util.List<CdpInterface> cdpInterfaces = new java.util.ArrayList<CdpInterface>(); ite = m_snmpcoll.getCdpCacheTable() .getEntries().iterator(); while (ite.hasNext()) { CdpCacheTableEntry cdpEntry = (CdpCacheTableEntry) ite.next(); int cdpAddrType = cdpEntry.getInt32(CdpCacheTableEntry.CDP_ADDRESS_TYPE); if (cdpAddrType != 1) continue; String cdptargetipaddress = cdpEntry.getHexString(CdpCacheTableEntry.CDP_ADDRESS); if (log.isDebugEnabled()) log.debug(" cdp ip address octet string is " + cdptargetipaddress); long ipAddr = Long.parseLong(cdptargetipaddress, 16); byte[] bytes = new byte[4]; bytes[3] = (byte) (ipAddr & 0xff); bytes[2] = (byte) ((ipAddr >> 8) & 0xff); bytes[1] = (byte) ((ipAddr >> 16) & 0xff); bytes[0] = (byte) ((ipAddr >> 24) & 0xff); InetAddress cdpTargetIpAddr = InetAddress.getByAddress(bytes); if (log.isDebugEnabled()) log.debug(" cdp ip address after parsing is " + cdpTargetIpAddr.getHostAddress()); int cdpIfIndex = cdpEntry.getInt32(CdpCacheTableEntry.CDP_IFINDEX); if (log.isDebugEnabled()) log.debug(" cdp ifindex is " + cdpIfIndex); String cdpTargetDevicePort = cdpEntry.getDisplayString(CdpCacheTableEntry.CDP_DEVICEPORT); if (log.isDebugEnabled()) log.debug(" cdp Target device port name is " + cdpTargetDevicePort); CdpInterface cdpIface = new CdpInterface(cdpIfIndex); int targetCdpNodeId = getNodeidFromIp(dbConn, cdpTargetIpAddr); cdpIface.setCdpTargetNodeId(targetCdpNodeId); cdpIface.setCdpTargetIpAddr(cdpTargetIpAddr); int cdpTargetIfindex = getIfIndexByName( dbConn, targetCdpNodeId, cdpTargetDevicePort); if (targetCdpNodeId == -1 || cdpTargetIfindex == -1) { log.warn("No nodeid found: cdp interface not added to Linkable Snmp Node"); //TODO Good place for autodiscovery } else { cdpIface.setCdpTargetIfIndex(cdpTargetIfindex); cdpInterfaces.add(cdpIface); } } m_node.setCdpInterfaces(cdpInterfaces); } if (m_snmpcoll.hasRouteTable()) { java.util.List<RouterInterface> routeInterfaces = new java.util.ArrayList<RouterInterface>(); ite = m_snmpcoll.getIpRouteTable().getEntries() .iterator(); if (log.isDebugEnabled()) log .debug("store: saving ipRouteTable to iprouteinterface table in DB"); while (ite.hasNext()) { IpRouteTableEntry ent = (IpRouteTableEntry) ite.next(); log.debug("storeSnmpCollection: ent="+ent); InetAddress routedest = ent.getIPAddress(IpRouteTableEntry.IP_ROUTE_DEST); log.debug("storeSnmpCollection: routedest is: "+ (routedest == null ? "null" : routedest)+"; IP_ROUTE_DEST: "+IpRouteTableEntry.IP_ROUTE_DEST); InetAddress routemask = ent.getIPAddress(IpRouteTableEntry.IP_ROUTE_MASK); log.debug("storeSnmpCollection: routemask is: "+ (routemask == null ? "null" : routemask)+"; IP_ROUTE_MASK: "+IpRouteTableEntry.IP_ROUTE_MASK); InetAddress nexthop = ent.getIPAddress(IpRouteTableEntry.IP_ROUTE_NXTHOP); log.debug("storeSnmpCollection: nexthop is: "+ (nexthop == null ? "null" : nexthop)+"; IP_ROUTE_NXTHOP: "+IpRouteTableEntry.IP_ROUTE_NXTHOP); int ifindex = ent.getInt32(IpRouteTableEntry.IP_ROUTE_IFINDEX); log.debug("storeSnmpCollection: ifindex is: "+ (ifindex < 1 ? "less than 1" : ifindex)+"; IP_ROUTE_IFINDEX: "+IpRouteTableEntry.IP_ROUTE_IFINDEX); if (ifindex < 0) { log.warn("store: NNot valid ifindex" + ifindex + " Skipping..."); continue; } int routemetric1 = ent.getInt32(IpRouteTableEntry.IP_ROUTE_METRIC1); log.debug("storeSnmpCollection: routemetric1 is: "+ (routemetric1 < 1 ? "less than 1" : routemetric1)+"; IP_ROUTE_METRIC1: "+IpRouteTableEntry.IP_ROUTE_METRIC1); log.debug("storeSnmpCollection: ent="+ent); log.debug("storeSnmpCollection: IP_ROUTE_METRIC2="+IpRouteTableEntry.IP_ROUTE_METRIC2); int routemetric2 = ent.getInt32(IpRouteTableEntry.IP_ROUTE_METRIC2); log.debug("storeSnmpCollection: routemetric2 is: "+ (routemetric2 < 1 ? "less than 1" : routemetric2)+"; IP_ROUTE_METRIC2: "+IpRouteTableEntry.IP_ROUTE_METRIC2); int routemetric3 =ent.getInt32(IpRouteTableEntry.IP_ROUTE_METRIC3); log.debug("storeSnmpCollection: routemetric3 is: "+ (routemetric3 < 1 ? "less than 1" : routemetric3)+"; IP_ROUTE_METRIC3: "+IpRouteTableEntry.IP_ROUTE_METRIC3); int routemetric4 = ent.getInt32(IpRouteTableEntry.IP_ROUTE_METRIC4); log.debug("storeSnmpCollection: routemetric4 is: "+ (routemetric4 < 1 ? "less than 1" : routemetric4)+"; IP_ROUTE_METRIC4: "+IpRouteTableEntry.IP_ROUTE_METRIC4); int routemetric5 = ent.getInt32(IpRouteTableEntry.IP_ROUTE_METRIC5); log.debug("storeSnmpCollection: routemetric5 is: "+ (routemetric5 < 1 ? "less than 1" : routemetric5)+"; IP_ROUTE_METRIC5: "+IpRouteTableEntry.IP_ROUTE_METRIC5); int routetype = ent.getInt32(IpRouteTableEntry.IP_ROUTE_TYPE); log.debug("storeSnmpCollection: routetype is: "+ (routetype < 1 ? "less than 1" : routetype)+"; IP_ROUTE_TYPE: "+IpRouteTableEntry.IP_ROUTE_TYPE); int routeproto = ent.getInt32(IpRouteTableEntry.IP_ROUTE_PROTO); log.debug("storeSnmpCollection: routeproto is: "+ (routeproto < 1 ? "less than 1" : routeproto)+"; IP_ROUTE_PROTO: "+IpRouteTableEntry.IP_ROUTE_PROTO); // info used for Discovery Link RouterInterface routeIface = null; routeIface = getNodeidMaskFromIp(dbConn,nexthop); // if target node is not snmp node try to save info if (routeIface == null) { routeIface = getNodeFromIp(dbConn, nexthop); } if (routeIface == null) { //TODO here is a good point for autodiscovery log.warn("store: No nodeid found for next hop ip" + nexthop + " Skipping ip route interface add to Linkable Snmp Node"); // try to find it in ipinterface } else { int snmpiftype = -2; if (ifindex > 0) snmpiftype = getSnmpIfType(dbConn, nodeid, ifindex); // no processing ethernet type if (log.isDebugEnabled()) log.debug("store: interface has snmpiftype " + snmpiftype + " . Adding to DiscoverLink "); routeIface.setSnmpiftype(snmpiftype); routeIface.setIfindex(ifindex); routeIface.setMetric(routemetric1); routeIface.setNextHop(nexthop); routeInterfaces.add(routeIface); } // save info to DB DbIpRouteInterfaceEntry iprouteInterfaceEntry = DbIpRouteInterfaceEntry .get(dbConn, nodeid, routedest.getHostAddress()); if (iprouteInterfaceEntry == null) { // Create a new entry iprouteInterfaceEntry = DbIpRouteInterfaceEntry.create( m_node.getNodeId(), routedest.getHostAddress()); } // update object iprouteInterfaceEntry.updateRouteMask(routemask.getHostAddress()); iprouteInterfaceEntry.updateRouteNextHop(nexthop.getHostAddress()); iprouteInterfaceEntry.updateIfIndex(ifindex); if (routemetric1 != -1) iprouteInterfaceEntry.updateRouteMetric1(routemetric1); if (routemetric2 != -1) iprouteInterfaceEntry.updateRouteMetric2(routemetric2); if (routemetric3 != -1) iprouteInterfaceEntry.updateRouteMetric3(routemetric3); if (routemetric4 != -1) iprouteInterfaceEntry.updateRouteMetric4(routemetric4); if (routemetric5 != -1) iprouteInterfaceEntry.updateRouteMetric5(routemetric5); if (routetype != -1) iprouteInterfaceEntry.updateRouteType(routetype); if (routeproto != -1) iprouteInterfaceEntry.updateRouteProto(routeproto); iprouteInterfaceEntry .updateStatus(DbAtInterfaceEntry.STATUS_ACTIVE); iprouteInterfaceEntry.set_lastpolltime(now); // store object in database iprouteInterfaceEntry.store(dbConn); } m_node.setRouteInterfaces(routeInterfaces); } // STARTS loop on vlans if (m_snmpcoll.hasVlanTable()) { if (log.isDebugEnabled()) log .debug("store: saving SnmpVlanCollection in DB"); ite = m_snmpcoll.getSnmpVlanCollections() .iterator(); while (ite.hasNext()) { SnmpVlanCollection snmpVlanColl = (SnmpVlanCollection) ite .next(); String vlanindex = snmpVlanColl.getVlanIndex(); int vlan = Integer.parseInt(vlanindex); String vlanname = snmpVlanColl.getVlanName(); if (log.isDebugEnabled()) log .debug("store: parsing VLAN " + vlanindex + " VLAN_NAME " + vlanname); if (snmpVlanColl.hasDot1dBase()) { if (log.isDebugEnabled()) log .debug("store: saving Dot1dBaseGroup in stpnode table"); Dot1dBaseGroup dod1db = (Dot1dBaseGroup) snmpVlanColl.getDot1dBase(); String baseBridgeAddress = dod1db.getBridgeAddress(); int basenumports = dod1db.getNumberOfPorts(); int bridgetype = dod1db.getBridgeType(); if (baseBridgeAddress == "000000000000") { log.warn("store: base bridge address " + baseBridgeAddress + " is invalid for ipaddress " ); } else { m_node.addBridgeIdentifier(baseBridgeAddress,vlanindex); DbStpNodeEntry dbStpNodeEntry = DbStpNodeEntry.get(dbConn, m_node.getNodeId(), vlan); if (dbStpNodeEntry == null) { // Create a new entry dbStpNodeEntry = DbStpNodeEntry.create(m_node .getNodeId(), vlan); } // update object dbStpNodeEntry.updateBaseBridgeAddress(baseBridgeAddress); dbStpNodeEntry.updateBaseNumPorts(basenumports); dbStpNodeEntry.updateBaseType(bridgetype); dbStpNodeEntry.updateBaseVlanName(vlanname); if (snmpVlanColl.hasDot1dStp()) { if (log.isDebugEnabled()) log .debug("store: adding Dot1dStpGroup in stpnode table"); Dot1dStpGroup dod1stp = (Dot1dStpGroup) snmpVlanColl .getDot1dStp(); int protospec = dod1stp.getStpProtocolSpecification(); int stppriority = dod1stp.getStpPriority(); String stpDesignatedRoot = dod1stp.getStpDesignatedRoot(); int stprootcost = dod1stp.getStpRootCost(); int stprootport = dod1stp.getStpRootPort(); if (stpDesignatedRoot != "0000000000000000") { m_node.setVlanStpRoot(vlanindex,stpDesignatedRoot); } dbStpNodeEntry.updateStpProtocolSpecification(protospec); dbStpNodeEntry.updateStpPriority(stppriority); dbStpNodeEntry.updateStpDesignatedRoot(stpDesignatedRoot); dbStpNodeEntry.updateStpRootCost(stprootcost); dbStpNodeEntry.updateStpRootPort(stprootport); } // store object in database dbStpNodeEntry.updateStatus(DbStpNodeEntry.STATUS_ACTIVE); dbStpNodeEntry.set_lastpolltime(now); dbStpNodeEntry.store(dbConn); if (snmpVlanColl.hasDot1dBasePortTable()) { Iterator sub_ite = snmpVlanColl.getDot1dBasePortTable() .getEntries().iterator(); if (log.isDebugEnabled()) log .debug("store: saving Dot1dBasePortTable in stpinterface table"); while (sub_ite.hasNext()) { Dot1dBasePortTableEntry dot1dbaseptentry = (Dot1dBasePortTableEntry) sub_ite .next(); int baseport = dot1dbaseptentry.getInt32(Dot1dBasePortTableEntry.BASE_PORT); int ifindex = dot1dbaseptentry.getInt32(Dot1dBasePortTableEntry.BASE_IFINDEX); m_node.setIfIndexBridgePort(ifindex,baseport); DbStpInterfaceEntry dbStpIntEntry = DbStpInterfaceEntry .get(dbConn, m_node.getNodeId(), baseport, vlan); if (dbStpIntEntry == null) { // Create a new entry dbStpIntEntry = DbStpInterfaceEntry.create( m_node.getNodeId(), baseport, vlan); } dbStpIntEntry.updateIfIndex(ifindex); dbStpIntEntry .updateStatus(DbStpNodeEntry.STATUS_ACTIVE); dbStpIntEntry.set_lastpolltime(now); dbStpIntEntry.store(dbConn); } } if (snmpVlanColl.hasDot1dStpPortTable()) { if (log.isDebugEnabled()) log .debug(" store: adding Dot1dStpPortTable in stpinterface table"); Iterator sub_ite = snmpVlanColl.getDot1dStpPortTable() .getEntries().iterator(); while (sub_ite.hasNext()) { Dot1dStpPortTableEntry dot1dstpptentry = (Dot1dStpPortTableEntry) sub_ite .next(); int stpport = dot1dstpptentry.getInt32(Dot1dStpPortTableEntry.STP_PORT); DbStpInterfaceEntry dbStpIntEntry = DbStpInterfaceEntry .get(dbConn, m_node.getNodeId(), stpport, vlan); if (dbStpIntEntry == null) { // Cannot create the object becouse must exists the dot1dbase // object!!!!! log .warn("store StpInterface: when storing STP info" + " for bridge node with nodeid " + m_node.getNodeId() + " bridgeport number " + stpport + " and vlan index " + vlanindex + " info not found in database, ERROR skipping....."); } else { int stpportstate = dot1dstpptentry .getInt32(Dot1dStpPortTableEntry.STP_PORT_STATE); int stpportpathcost = dot1dstpptentry .getInt32(Dot1dStpPortTableEntry.STP_PORT_PATH_COST); String stpPortDesignatedBridge = dot1dstpptentry .getHexString(Dot1dStpPortTableEntry.STP_PORT_DESIGNATED_BRIDGE); String stpPortDesignatedRoot = dot1dstpptentry .getHexString(Dot1dStpPortTableEntry.STP_PORT_DESIGNATED_ROOT); int stpportdesignatedcost = dot1dstpptentry .getInt32(Dot1dStpPortTableEntry.STP_PORT_DESIGNATED_COST); String stpPortDesignatedPort = dot1dstpptentry .getHexString(Dot1dStpPortTableEntry.STP_PORT_DESIGNATED_PORT); if (stpPortDesignatedBridge.equals("0000000000000000")) { log.warn("storeSnmpCollection: designated bridge is invalid not adding to discoveryLink"); } else if (stpPortDesignatedPort.equals("0000")) { log.warn("storeSnmpCollection: designated port is invalid not adding to discoveryLink"); } else { BridgeStpInterface stpIface = new BridgeStpInterface(stpport,vlanindex); stpIface.setStpPortDesignatedBridge(stpPortDesignatedBridge); stpIface.setStpPortDesignatedPort(stpPortDesignatedPort); m_node.addStpInterface(stpIface); } dbStpIntEntry.updateStpPortState(stpportstate); dbStpIntEntry.updateStpPortPathCost(stpportpathcost); dbStpIntEntry.updateStpportDesignatedBridge(stpPortDesignatedBridge); dbStpIntEntry.updateStpportDesignatedRoot(stpPortDesignatedRoot); dbStpIntEntry.updateStpPortDesignatedCost(stpportdesignatedcost); dbStpIntEntry.updateStpportDesignatedPort(stpPortDesignatedPort); dbStpIntEntry.updateStatus(DbStpNodeEntry.STATUS_ACTIVE); dbStpIntEntry.set_lastpolltime(now); dbStpIntEntry.store(dbConn); } } } if (snmpVlanColl.hasDot1dTpFdbTable()) { if (log.isDebugEnabled()) log .debug("store: parsing Dot1dTpFdbTable"); Iterator subite = snmpVlanColl.getDot1dFdbTable() .getEntries().iterator(); while (subite.hasNext()) { Dot1dTpFdbTableEntry dot1dfdbentry = (Dot1dTpFdbTableEntry) subite .next(); String curMacAddress = dot1dfdbentry .getHexString(Dot1dTpFdbTableEntry.FDB_ADDRESS); int fdbport = dot1dfdbentry.getInt32(Dot1dTpFdbTableEntry.FDB_PORT); if (fdbport == 0) { if (log.isDebugEnabled()) log.debug("populateBridge: macaddress " + curMacAddress + " learned on invalid port " + fdbport + " . Skipping"); continue; } int curfdbstatus = dot1dfdbentry.getInt32(Dot1dTpFdbTableEntry.FDB_STATUS); if (curfdbstatus == SNMP_DOT1D_FDB_STATUS_LEARNED) { m_node.addMacAddress(fdbport, curMacAddress, vlanindex); if (log.isDebugEnabled()) log .debug("storeSnmpCollection: found learned mac address " + curMacAddress + " on bridge port " + fdbport + " for VLAN " + snmpVlanColl.getVlanIndex()); } if (curfdbstatus == SNMP_DOT1D_FDB_STATUS_SELF) { m_node.addBridgeIdentifier(curMacAddress); if (log.isDebugEnabled()) log .debug("storeSnmpCollection: found bridge identifier " + curMacAddress + " for VLAN " + snmpVlanColl.getVlanIndex() + " and bridge port " + fdbport); } if (curfdbstatus == SNMP_DOT1D_FDB_STATUS_INVALID) { if (log.isDebugEnabled()) log.debug("storeSnmpCollection: macaddress " + curMacAddress + " has INVALID status on port " + fdbport + " . Skipping"); continue; } if (curfdbstatus == SNMP_DOT1D_FDB_STATUS_MGMT) { if (log.isDebugEnabled()) log.debug("storeSnmpCollection: macaddress " + curMacAddress + " has MGMT status on port " + fdbport + " . Skipping"); continue; } if (curfdbstatus == SNMP_DOT1D_FDB_STATUS_OTHER) { if (log.isDebugEnabled()) log.debug("storeSnmpCollection: macaddress " + curMacAddress + " has OTHER status on port " + fdbport + " . Skipping"); continue; } } } //now adding bridge identifier mac addresses of switch from snmpinterface setBridgeIdentifierFromSnmpInterface(dbConn); } } } } update(dbConn, now); }
|
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/b4bf6a0df7f543f01a3f63a3e27856d626cd2f5e/DbEventWriter.java/clean/opennms-services/src/main/java/org/opennms/netmgt/linkd/DbEventWriter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1707,
10461,
1291,
2532,
12,
1952,
30795,
16,
8159,
2037,
13,
1216,
6483,
16,
1082,
202,
4874,
29776,
288,
202,
202,
4457,
613,
273,
4884,
4457,
18,
588,
1442,
12,
588,
797,
10663,
202,
202,
3198,
518,
73,
273,
446,
31,
202,
202,
474,
756,
350,
273,
312,
67,
2159,
18,
588,
15883,
5621,
202,
202,
430,
261,
81,
67,
26527,
12910,
18,
5332,
5273,
7308,
774,
5419,
1388,
10756,
288,
1082,
202,
1137,
273,
312,
67,
26527,
12910,
18,
588,
5273,
7308,
774,
5419,
1388,
1435,
6862,
202,
18,
588,
5400,
7675,
9838,
5621,
1082,
202,
430,
261,
1330,
18,
291,
2829,
1526,
10756,
9506,
202,
1330,
25083,
202,
18,
4148,
2932,
2233,
30,
12392,
14709,
7308,
774,
5419,
1388,
358,
622,
5831,
1014,
316,
2383,
8863,
1082,
202,
759,
326,
2380,
10273,
1399,
635,
4048,
429,
907,
1625,
358,
1923,
1123,
1082,
202,
6290,
18,
1367,
18,
682,
32,
861,
1358,
34,
622,
10273,
273,
394,
2252,
18,
1367,
18,
19558,
32,
861,
1358,
34,
5621,
1082,
202,
17523,
261,
1137,
18,
5332,
2134,
10756,
288,
9506,
202,
5273,
7308,
774,
5419,
1388,
1622,
3281,
273,
261,
5273,
7308,
774,
5419,
1388,
1622,
13,
518,
73,
25083,
202,
18,
4285,
5621,
6862,
9506,
202,
474,
309,
1615,
273,
3281,
25083,
202,
18,
588,
1702,
1578,
12,
5273,
7308,
774,
5419,
1388,
1622,
18,
3217,
49,
67,
9199,
1769,
6862,
9506,
202,
382,
278,
1887,
24964,
273,
3281,
25083,
202,
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,
918,
1707,
10461,
1291,
2532,
12,
1952,
30795,
16,
8159,
2037,
13,
1216,
6483,
16,
1082,
202,
4874,
29776,
288,
202,
202,
4457,
613,
273,
4884,
4457,
18,
588,
1442,
12,
588,
797,
10663,
202,
202,
3198,
518,
73,
273,
446,
31,
202,
202,
474,
756,
350,
273,
312,
67,
2159,
18,
588,
15883,
5621,
202,
202,
430,
261,
81,
67,
26527,
12910,
18,
5332,
5273,
7308,
774,
5419,
1388,
10756,
288,
1082,
202,
1137,
273,
312,
67,
26527,
12910,
18,
588,
5273,
7308,
774,
5419,
1388,
1435,
6862,
202,
18,
588,
5400,
7675,
9838,
5621,
1082,
202,
430,
261,
1330,
18,
291,
2829,
1526,
10756,
9506,
202,
1330,
25083,
202,
18,
4148,
2932,
2233,
30,
2
] |
new ReportElementModel( container ) );
|
container );
|
public void testMoveRowCmd( ) { SlotHandle container = table.getDetail( ); assertEquals( secondRow, table.getDetail( ).get( 0 ) ); assertEquals( firstRow, table.getDetail( ).get( 1 ) ); FlowMoveChildCommand moveCmd = new FlowMoveChildCommand( firstRow, secondRow, new ReportElementModel( container ) ); moveCmd.execute( ); assertEquals( secondRow, container.get( 1 ) ); assertEquals( firstRow, container.get( 0 ) ); }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/c482a9f8efd2fdc385ce5b00d2555fe77341a1b1/FlowMoveChildCmdTest.java/clean/UI/org.eclipse.birt.report.designer.tests/test/org/eclipse/birt/report/designer/core/commands/FlowMoveChildCmdTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
7607,
1999,
5931,
12,
262,
202,
95,
202,
202,
8764,
3259,
1478,
273,
1014,
18,
588,
6109,
12,
11272,
202,
202,
11231,
8867,
12,
2205,
1999,
16,
1014,
18,
588,
6109,
12,
262,
18,
588,
12,
374,
262,
11272,
202,
202,
11231,
8867,
12,
1122,
1999,
16,
1014,
18,
588,
6109,
12,
262,
18,
588,
12,
404,
262,
11272,
202,
202,
5249,
7607,
1763,
2189,
3635,
5931,
273,
394,
9473,
7607,
1763,
2189,
12,
1122,
1999,
16,
9506,
202,
8538,
1999,
16,
9506,
202,
2704,
8706,
1046,
1488,
12,
1478,
262,
11272,
202,
202,
8501,
5931,
18,
8837,
12,
11272,
202,
202,
11231,
8867,
12,
2205,
1999,
16,
1478,
18,
588,
12,
404,
262,
11272,
202,
202,
11231,
8867,
12,
1122,
1999,
16,
1478,
18,
588,
12,
374,
262,
11272,
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,
482,
918,
1842,
7607,
1999,
5931,
12,
262,
202,
95,
202,
202,
8764,
3259,
1478,
273,
1014,
18,
588,
6109,
12,
11272,
202,
202,
11231,
8867,
12,
2205,
1999,
16,
1014,
18,
588,
6109,
12,
262,
18,
588,
12,
374,
262,
11272,
202,
202,
11231,
8867,
12,
1122,
1999,
16,
1014,
18,
588,
6109,
12,
262,
18,
588,
12,
404,
262,
11272,
202,
202,
5249,
7607,
1763,
2189,
3635,
5931,
273,
394,
9473,
7607,
1763,
2189,
12,
1122,
1999,
16,
9506,
202,
8538,
1999,
16,
9506,
202,
2704,
8706,
1046,
1488,
12,
1478,
262,
11272,
202,
202,
8501,
5931,
18,
8837,
12,
11272,
202,
202,
11231,
8867,
12,
2205,
1999,
16,
1478,
18,
588,
12,
404,
262,
2
] |
Column(Table table, MondrianDef.Expression expression,
|
Column(Table table, MondrianDef.Expression expression,
|
Column(Table table, MondrianDef.Expression expression, boolean isNumeric) { this.table = table; this.expression = expression; this.isNumeric = isNumeric; }
|
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/07361d134494edaf7e47eaedb40351c66d2a28b0/RolapStar.java/clean/src/main/mondrian/rolap/RolapStar.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
4753,
12,
1388,
1014,
16,
7734,
490,
1434,
566,
304,
3262,
18,
2300,
2652,
16,
7734,
1250,
26434,
13,
288,
5411,
333,
18,
2121,
273,
1014,
31,
5411,
333,
18,
8692,
273,
2652,
31,
5411,
333,
18,
291,
9902,
273,
26434,
31,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
4753,
12,
1388,
1014,
16,
7734,
490,
1434,
566,
304,
3262,
18,
2300,
2652,
16,
7734,
1250,
26434,
13,
288,
5411,
333,
18,
2121,
273,
1014,
31,
5411,
333,
18,
8692,
273,
2652,
31,
5411,
333,
18,
291,
9902,
273,
26434,
31,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Session session)
|
boolean blocking, Session session)
|
protected Channel(String profile, String number, MessageListener listener, Session session) { this.profile = profile; this.encoding = Constants.ENCODING_DEFAULT; this.number = number; this.listener = listener; this.session = session; sentSequence = 0; recvSequence = 0; lastMessageSent = 1; pendingSendMessages = new LinkedList(); sentMSGQueue = Collections.synchronizedList(new LinkedList()); recvMSGQueue = new LinkedList(); recvReplyQueue = new LinkedList(); state = STATE_UNINITIALISED; recvWindowUsed = 0; recvWindowSize = DEFAULT_WINDOW_SIZE; prevAckno = 0; prevWindowUsed = 0; peerWindowSize = DEFAULT_WINDOW_SIZE; }
|
11902 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11902/ec0bb015b8710a43b12a0230262e65a59578ad13/Channel.java/buggy/src/org/beepcore/beep/core/Channel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
5307,
12,
780,
3042,
16,
514,
1300,
16,
2350,
2223,
2991,
16,
8227,
1250,
9445,
16,
3877,
1339,
13,
565,
288,
3639,
333,
18,
5040,
273,
3042,
31,
3639,
333,
18,
5999,
273,
5245,
18,
14672,
67,
5280,
31,
3639,
333,
18,
2696,
273,
1300,
31,
3639,
333,
18,
12757,
273,
2991,
31,
3639,
333,
18,
3184,
273,
1339,
31,
3639,
3271,
4021,
273,
374,
31,
3639,
10665,
4021,
273,
374,
31,
3639,
1142,
1079,
7828,
273,
404,
31,
3639,
4634,
3826,
5058,
273,
394,
10688,
5621,
3639,
3271,
11210,
3183,
273,
5737,
18,
22043,
682,
12,
2704,
10688,
10663,
3639,
10665,
11210,
3183,
273,
394,
10688,
5621,
3639,
10665,
7817,
3183,
273,
394,
10688,
5621,
3639,
919,
273,
7442,
67,
2124,
28497,
45,
18204,
31,
3639,
10665,
3829,
6668,
273,
374,
31,
3639,
10665,
3829,
1225,
273,
3331,
67,
23407,
67,
4574,
31,
3639,
2807,
11931,
2135,
273,
374,
31,
3639,
2807,
3829,
6668,
273,
374,
31,
3639,
4261,
3829,
1225,
273,
3331,
67,
23407,
67,
4574,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
5307,
12,
780,
3042,
16,
514,
1300,
16,
2350,
2223,
2991,
16,
8227,
1250,
9445,
16,
3877,
1339,
13,
565,
288,
3639,
333,
18,
5040,
273,
3042,
31,
3639,
333,
18,
5999,
273,
5245,
18,
14672,
67,
5280,
31,
3639,
333,
18,
2696,
273,
1300,
31,
3639,
333,
18,
12757,
273,
2991,
31,
3639,
333,
18,
3184,
273,
1339,
31,
3639,
3271,
4021,
273,
374,
31,
3639,
10665,
4021,
273,
374,
31,
3639,
1142,
1079,
7828,
273,
404,
31,
3639,
4634,
3826,
5058,
273,
394,
10688,
5621,
3639,
3271,
11210,
3183,
273,
5737,
18,
22043,
682,
12,
2704,
10688,
10663,
3639,
10665,
11210,
3183,
273,
394,
10688,
5621,
3639,
10665,
7817,
3183,
273,
394,
10688,
5621,
3639,
2
] |
current_distance = -1; while ((token = tok.nextToken()) != null) { word = token.getText().toLowerCase(); if (current_distance > max_distance) { j = 0; term = patterns[j]; matcher = matchers[j]; current_distance = -1; continue;
|
String value; Pattern term; String word; TextToken token; NodeProxy current; ExtArrayNodeSet r = new ExtArrayNodeSet(100); Matcher matcher; Tokenizer tok = context.getBroker().getTextEngine().getTokenizer(); int j; int current_distance; for (Iterator i = result.iterator(); i.hasNext();) { current = (NodeProxy) i.next(); value = current.getNodeValueSeparated(); tok.setText(value); j = 0; if (j < patterns.length) { term = patterns[j]; matcher = matchers[j]; } else { break; } current_distance = -1; while ((token = tok.nextToken()) != null) { word = token.getText().toLowerCase(); if (current_distance > max_distance) { j = 0; term = patterns[j]; matcher = matchers[j]; current_distance = -1; } matcher.reset(word); matchers[0].reset(word); if (matcher.matches()) { boolean withIn = current_distance >= min_distance ? true : false; current_distance = 0; j++; if (j == patterns.length) { if (withIn) { r.add(current); } break; } else { term = patterns[j]; matcher = matchers[j]; } } else if (j > 0 && matchers[0].matches()) { j = 1; term = patterns[j]; matcher = matchers[j]; current_distance = 0; continue; } if (-1 < current_distance) { ++current_distance; } }
|
private Sequence patternMatch(XQueryContext context, NodeSet result) { // generate list of search term patterns Pattern patterns[] = new Pattern[terms.length]; Matcher matchers[] = new Matcher[terms.length]; for (int i = 0; i < patterns.length; i++) try { patterns[i] = Pattern.compile(GlobToRegex.globToRegexp(terms[i]), Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE); matchers[i] = patterns[i].matcher(""); } catch (PatternSyntaxException e) { LOG.warn("malformed pattern", e); return Sequence.EMPTY_SEQUENCE; } // walk through hits and calculate term-distances String value; Pattern term; String word; TextToken token; NodeProxy current; ExtArrayNodeSet r = new ExtArrayNodeSet(100); Matcher matcher; Tokenizer tok = context.getBroker().getTextEngine().getTokenizer(); int j; int current_distance; for (Iterator i = result.iterator(); i.hasNext();) { current = (NodeProxy) i.next(); value = current.getNodeValueSeparated(); tok.setText(value); j = 0; if (j < patterns.length) { term = patterns[j]; matcher = matchers[j]; } else { break; } current_distance = -1; while ((token = tok.nextToken()) != null) { word = token.getText().toLowerCase(); if (current_distance > max_distance) { // reset j = 0; term = patterns[j]; matcher = matchers[j]; current_distance = -1; continue; } matcher.reset(word); matchers[0].reset(word); if (matcher.matches()) { boolean withIn = current_distance >= min_distance ? true : false; current_distance = 0; j++; if (j == patterns.length) { // all terms found if (withIn) { r.add(current); } break; } else { term = patterns[j]; matcher = matchers[j]; } } else if (j > 0 && matchers[0].matches()) { // first search term found: start again j = 1; term = patterns[j]; matcher = matchers[j]; current_distance = 0; continue; } else if (-1 < current_distance) { ++current_distance; } } } return r; }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/7c8f9589cff53ea564bc9598ccedabdf92533ff2/ExtNear.java/buggy/src/org/exist/xquery/functions/ExtNear.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
8370,
1936,
2060,
12,
60,
1138,
1042,
819,
16,
2029,
694,
563,
13,
288,
202,
759,
2103,
666,
434,
1623,
2481,
6884,
202,
3234,
6884,
8526,
273,
394,
6830,
63,
10112,
18,
2469,
15533,
3639,
9757,
17609,
8526,
273,
394,
9757,
63,
10112,
18,
2469,
15533,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
6884,
18,
2469,
31,
277,
27245,
202,
565,
775,
288,
7734,
6884,
63,
77,
65,
273,
6830,
18,
11100,
12,
13499,
774,
6628,
18,
10581,
774,
14621,
12,
10112,
63,
77,
65,
3631,
9944,
1377,
6830,
18,
13415,
67,
706,
26753,
16325,
571,
6830,
18,
26642,
67,
13415,
1769,
7734,
17609,
63,
77,
65,
273,
6884,
63,
77,
8009,
22761,
2932,
8863,
202,
565,
289,
1044,
261,
3234,
14714,
425,
13,
288,
202,
202,
4842,
18,
8935,
2932,
81,
8246,
1936,
3113,
425,
1769,
202,
202,
2463,
8370,
18,
13625,
67,
25330,
31,
202,
565,
289,
202,
202,
759,
5442,
3059,
11076,
471,
4604,
2481,
17,
25834,
202,
780,
460,
31,
202,
3234,
2481,
31,
202,
780,
2076,
31,
202,
1528,
1345,
1147,
31,
202,
907,
3886,
783,
31,
202,
2482,
1076,
907,
694,
436,
273,
394,
6419,
1076,
907,
694,
12,
6625,
1769,
202,
6286,
4546,
31,
202,
10524,
946,
273,
819,
18,
588,
11194,
7675,
588,
1528,
4410,
7675,
588,
10524,
5621,
202,
474,
525,
31,
202,
474,
783,
67,
8969,
31,
202,
1884,
261,
3198,
277,
273,
563,
18,
9838,
5621,
277,
18,
5332,
2134,
5621,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
8370,
1936,
2060,
12,
60,
1138,
1042,
819,
16,
2029,
694,
563,
13,
288,
202,
759,
2103,
666,
434,
1623,
2481,
6884,
202,
3234,
6884,
8526,
273,
394,
6830,
63,
10112,
18,
2469,
15533,
3639,
9757,
17609,
8526,
273,
394,
9757,
63,
10112,
18,
2469,
15533,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
6884,
18,
2469,
31,
277,
27245,
202,
565,
775,
288,
7734,
6884,
63,
77,
65,
273,
6830,
18,
11100,
12,
13499,
774,
6628,
18,
10581,
774,
14621,
12,
10112,
63,
77,
65,
3631,
9944,
1377,
6830,
18,
13415,
67,
706,
26753,
16325,
571,
6830,
18,
26642,
67,
13415,
1769,
7734,
17609,
63,
77,
65,
273,
6884,
63,
77,
8009,
22761,
2932,
2
] |
public Object clone() {
|
public Object clone() throws CloneNotSupportedException {
|
public Object clone() { Object clone = null; try { clone = super.clone(); } catch (Exception exception) { logger.error("Could not clone DebugAtom: " + exception.getMessage(), exception); logger.debug(exception); } return clone; }
|
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/2b55a607674535cd8492e3539d8f3dce16fc3b92/DebugSetOfAtomContainers.java/buggy/src/org/openscience/cdk/debug/DebugSetOfAtomContainers.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
3236,
1435,
1216,
12758,
25482,
288,
3639,
1033,
3236,
273,
446,
31,
3639,
775,
288,
540,
202,
14056,
273,
2240,
18,
14056,
5621,
3639,
289,
1044,
261,
503,
1520,
13,
288,
540,
202,
4901,
18,
1636,
2932,
4445,
486,
3236,
4015,
3641,
30,
315,
397,
1520,
18,
24906,
9334,
1520,
1769,
540,
202,
4901,
18,
4148,
12,
4064,
1769,
3639,
289,
3639,
327,
3236,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
3236,
1435,
1216,
12758,
25482,
288,
3639,
1033,
3236,
273,
446,
31,
3639,
775,
288,
540,
202,
14056,
273,
2240,
18,
14056,
5621,
3639,
289,
1044,
261,
503,
1520,
13,
288,
540,
202,
4901,
18,
1636,
2932,
4445,
486,
3236,
4015,
3641,
30,
315,
397,
1520,
18,
24906,
9334,
1520,
1769,
540,
202,
4901,
18,
4148,
12,
4064,
1769,
3639,
289,
3639,
327,
3236,
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
] |
public TypeBinding resolveType(BlockScope scope, boolean checkBounds) { this.constant = Constant.NotAConstant; if (this.resolvedType != null) return this.resolvedType.isValidBinding() ? this.resolvedType : null; TypeBinding type = this.resolvedType = getTypeBinding(scope); if (this.resolvedType == null) return null; if (!this.resolvedType.isValidBinding()) { reportInvalidType(scope); return null; } if (isTypeUseDeprecated(this.resolvedType, scope)) reportDeprecatedType(scope); type = scope.environment().convertToRawType(type); if (type.isRawType() && (this.bits & IgnoreRawTypeCheck) == 0 && scope.compilerOptions().getSeverity(CompilerOptions.RawTypeReference) != ProblemSeverities.Ignore) { scope.problemReporter().rawTypeReference(this, type); } return this.resolvedType = type;
|
public final TypeBinding resolveType(BlockScope blockScope) { return resolveType(blockScope, true /* checkbounds if any */);
|
public TypeBinding resolveType(BlockScope scope, boolean checkBounds) { // handle the error here this.constant = Constant.NotAConstant; if (this.resolvedType != null) // is a shared type reference which was already resolved return this.resolvedType.isValidBinding() ? this.resolvedType : null; // already reported error TypeBinding type = this.resolvedType = getTypeBinding(scope); if (this.resolvedType == null) return null; // detected cycle while resolving hierarchy if (!this.resolvedType.isValidBinding()) { reportInvalidType(scope); return null; } if (isTypeUseDeprecated(this.resolvedType, scope)) reportDeprecatedType(scope); type = scope.environment().convertToRawType(type); if (type.isRawType() && (this.bits & IgnoreRawTypeCheck) == 0 && scope.compilerOptions().getSeverity(CompilerOptions.RawTypeReference) != ProblemSeverities.Ignore) { scope.problemReporter().rawTypeReference(this, type); } return this.resolvedType = type;}
|
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/16dca0cdbe17832dfb29f0072e09feca8f8a7af6/TypeReference.java/buggy/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TypeReference.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1412,
5250,
2245,
559,
12,
1768,
3876,
2146,
16,
1250,
866,
5694,
13,
288,
202,
759,
1640,
326,
555,
2674,
202,
2211,
18,
14384,
273,
10551,
18,
1248,
37,
6902,
31,
202,
430,
261,
2211,
18,
11792,
559,
480,
446,
13,
368,
353,
279,
5116,
618,
2114,
1492,
1703,
1818,
4640,
202,
202,
2463,
333,
18,
11792,
559,
18,
26810,
5250,
1435,
692,
333,
18,
11792,
559,
294,
446,
31,
368,
1818,
14010,
555,
202,
559,
5250,
618,
273,
333,
18,
11792,
559,
273,
3130,
5250,
12,
4887,
1769,
202,
430,
261,
2211,
18,
11792,
559,
422,
446,
13,
202,
202,
2463,
446,
31,
368,
8316,
8589,
1323,
17188,
9360,
202,
202,
430,
16051,
2211,
18,
11792,
559,
18,
26810,
5250,
10756,
288,
202,
202,
6006,
1941,
559,
12,
4887,
1769,
202,
202,
2463,
446,
31,
202,
97,
202,
430,
261,
291,
559,
3727,
13534,
12,
2211,
18,
11792,
559,
16,
2146,
3719,
202,
202,
6006,
13534,
559,
12,
4887,
1769,
202,
723,
273,
2146,
18,
10274,
7675,
6283,
774,
4809,
559,
12,
723,
1769,
202,
430,
261,
723,
18,
291,
4809,
559,
1435,
1875,
202,
10,
10,
261,
2211,
18,
6789,
473,
8049,
4809,
559,
1564,
13,
422,
374,
1875,
202,
10,
10,
2146,
18,
9576,
1320,
7675,
588,
21630,
12,
9213,
1320,
18,
4809,
7534,
13,
480,
21685,
1761,
502,
1961,
18,
3777,
13,
288,
1082,
202,
4887,
18,
18968,
13289,
7675,
1899,
7534,
12,
2211,
16,
618,
1769,
202,
97,
9506,
202,
2463,
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,
1071,
1412,
5250,
2245,
559,
12,
1768,
3876,
2146,
16,
1250,
866,
5694,
13,
288,
202,
759,
1640,
326,
555,
2674,
202,
2211,
18,
14384,
273,
10551,
18,
1248,
37,
6902,
31,
202,
430,
261,
2211,
18,
11792,
559,
480,
446,
13,
368,
353,
279,
5116,
618,
2114,
1492,
1703,
1818,
4640,
202,
202,
2463,
333,
18,
11792,
559,
18,
26810,
5250,
1435,
692,
333,
18,
11792,
559,
294,
446,
31,
368,
1818,
14010,
555,
202,
559,
5250,
618,
273,
333,
18,
11792,
559,
273,
3130,
5250,
12,
4887,
1769,
202,
430,
261,
2211,
18,
11792,
559,
422,
446,
13,
202,
202,
2463,
446,
31,
368,
8316,
8589,
1323,
17188,
9360,
202,
202,
430,
16051,
2211,
18,
11792,
559,
2
] |
match(LITERAL_declare); if ( inputState.guessing==0 ) { name = "declare"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_collation:
|
match(LITERAL_instance); if ( inputState.guessing==0 ) { name = "instance"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_of:
|
public final String reservedKeywords() throws RecognitionException, TokenStreamException { String name; returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST reservedKeywords_AST = null; name= null; switch ( LA(1)) { case LITERAL_element: { org.exist.xquery.parser.XQueryAST tmp299_AST = null; tmp299_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp299_AST); match(LITERAL_element); if ( inputState.guessing==0 ) { name = "element"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_to: { org.exist.xquery.parser.XQueryAST tmp300_AST = null; tmp300_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp300_AST); match(LITERAL_to); if ( inputState.guessing==0 ) { name = "to"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_div: { org.exist.xquery.parser.XQueryAST tmp301_AST = null; tmp301_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp301_AST); match(LITERAL_div); if ( inputState.guessing==0 ) { name= "div"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_mod: { org.exist.xquery.parser.XQueryAST tmp302_AST = null; tmp302_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp302_AST); match(LITERAL_mod); if ( inputState.guessing==0 ) { name= "mod"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_text: { org.exist.xquery.parser.XQueryAST tmp303_AST = null; tmp303_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp303_AST); match(LITERAL_text); if ( inputState.guessing==0 ) { name= "text"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_node: { org.exist.xquery.parser.XQueryAST tmp304_AST = null; tmp304_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp304_AST); match(LITERAL_node); if ( inputState.guessing==0 ) { name= "node"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_or: { org.exist.xquery.parser.XQueryAST tmp305_AST = null; tmp305_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp305_AST); match(LITERAL_or); if ( inputState.guessing==0 ) { name= "or"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_and: { org.exist.xquery.parser.XQueryAST tmp306_AST = null; tmp306_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp306_AST); match(LITERAL_and); if ( inputState.guessing==0 ) { name= "and"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_child: { org.exist.xquery.parser.XQueryAST tmp307_AST = null; tmp307_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp307_AST); match(LITERAL_child); if ( inputState.guessing==0 ) { name= "child"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_parent: { org.exist.xquery.parser.XQueryAST tmp308_AST = null; tmp308_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp308_AST); match(LITERAL_parent); if ( inputState.guessing==0 ) { name= "parent"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_self: { org.exist.xquery.parser.XQueryAST tmp309_AST = null; tmp309_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp309_AST); match(LITERAL_self); if ( inputState.guessing==0 ) { name= "self"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_attribute: { org.exist.xquery.parser.XQueryAST tmp310_AST = null; tmp310_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp310_AST); match(LITERAL_attribute); if ( inputState.guessing==0 ) { name= "attribute"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_comment: { org.exist.xquery.parser.XQueryAST tmp311_AST = null; tmp311_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp311_AST); match(LITERAL_comment); if ( inputState.guessing==0 ) { name= "comment"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_document: { org.exist.xquery.parser.XQueryAST tmp312_AST = null; tmp312_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp312_AST); match(LITERAL_document); if ( inputState.guessing==0 ) { name= "document"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 132: { org.exist.xquery.parser.XQueryAST tmp313_AST = null; tmp313_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp313_AST); match(132); if ( inputState.guessing==0 ) { name= "document-node"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_collection: { org.exist.xquery.parser.XQueryAST tmp314_AST = null; tmp314_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp314_AST); match(LITERAL_collection); if ( inputState.guessing==0 ) { name= "collection"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_ancestor: { org.exist.xquery.parser.XQueryAST tmp315_AST = null; tmp315_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp315_AST); match(LITERAL_ancestor); if ( inputState.guessing==0 ) { name= "ancestor"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_descendant: { org.exist.xquery.parser.XQueryAST tmp316_AST = null; tmp316_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp316_AST); match(LITERAL_descendant); if ( inputState.guessing==0 ) { name= "descendant"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 144: { org.exist.xquery.parser.XQueryAST tmp317_AST = null; tmp317_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp317_AST); match(144); if ( inputState.guessing==0 ) { name= "descendant-or-self"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 149: { org.exist.xquery.parser.XQueryAST tmp318_AST = null; tmp318_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp318_AST); match(149); if ( inputState.guessing==0 ) { name= "ancestor-or-self"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 150: { org.exist.xquery.parser.XQueryAST tmp319_AST = null; tmp319_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp319_AST); match(150); if ( inputState.guessing==0 ) { name= "preceding-sibling"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 145: { org.exist.xquery.parser.XQueryAST tmp320_AST = null; tmp320_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp320_AST); match(145); if ( inputState.guessing==0 ) { name= "following-sibling"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_following: { org.exist.xquery.parser.XQueryAST tmp321_AST = null; tmp321_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp321_AST); match(LITERAL_following); if ( inputState.guessing==0 ) { name = "following"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_preceding: { org.exist.xquery.parser.XQueryAST tmp322_AST = null; tmp322_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp322_AST); match(LITERAL_preceding); if ( inputState.guessing==0 ) { name = "preceding"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_item: { org.exist.xquery.parser.XQueryAST tmp323_AST = null; tmp323_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp323_AST); match(LITERAL_item); if ( inputState.guessing==0 ) { name= "item"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_empty: { org.exist.xquery.parser.XQueryAST tmp324_AST = null; tmp324_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp324_AST); match(LITERAL_empty); if ( inputState.guessing==0 ) { name= "empty"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_version: { org.exist.xquery.parser.XQueryAST tmp325_AST = null; tmp325_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp325_AST); match(LITERAL_version); if ( inputState.guessing==0 ) { name= "version"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_xquery: { org.exist.xquery.parser.XQueryAST tmp326_AST = null; tmp326_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp326_AST); match(LITERAL_xquery); if ( inputState.guessing==0 ) { name= "xquery"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_variable: { org.exist.xquery.parser.XQueryAST tmp327_AST = null; tmp327_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp327_AST); match(LITERAL_variable); if ( inputState.guessing==0 ) { name= "variable"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_namespace: { org.exist.xquery.parser.XQueryAST tmp328_AST = null; tmp328_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp328_AST); match(LITERAL_namespace); if ( inputState.guessing==0 ) { name= "namespace"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_if: { org.exist.xquery.parser.XQueryAST tmp329_AST = null; tmp329_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp329_AST); match(LITERAL_if); if ( inputState.guessing==0 ) { name= "if"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_then: { org.exist.xquery.parser.XQueryAST tmp330_AST = null; tmp330_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp330_AST); match(LITERAL_then); if ( inputState.guessing==0 ) { name= "then"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_else: { org.exist.xquery.parser.XQueryAST tmp331_AST = null; tmp331_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp331_AST); match(LITERAL_else); if ( inputState.guessing==0 ) { name= "else"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_for: { org.exist.xquery.parser.XQueryAST tmp332_AST = null; tmp332_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp332_AST); match(LITERAL_for); if ( inputState.guessing==0 ) { name= "for"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_let: { org.exist.xquery.parser.XQueryAST tmp333_AST = null; tmp333_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp333_AST); match(LITERAL_let); if ( inputState.guessing==0 ) { name= "let"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_default: { org.exist.xquery.parser.XQueryAST tmp334_AST = null; tmp334_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp334_AST); match(LITERAL_default); if ( inputState.guessing==0 ) { name= "default"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_function: { org.exist.xquery.parser.XQueryAST tmp335_AST = null; tmp335_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp335_AST); match(LITERAL_function); if ( inputState.guessing==0 ) { name= "function"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_as: { org.exist.xquery.parser.XQueryAST tmp336_AST = null; tmp336_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp336_AST); match(LITERAL_as); if ( inputState.guessing==0 ) { name = "as"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_union: { org.exist.xquery.parser.XQueryAST tmp337_AST = null; tmp337_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp337_AST); match(LITERAL_union); if ( inputState.guessing==0 ) { name = "union"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_intersect: { org.exist.xquery.parser.XQueryAST tmp338_AST = null; tmp338_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp338_AST); match(LITERAL_intersect); if ( inputState.guessing==0 ) { name = "intersect"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_except: { org.exist.xquery.parser.XQueryAST tmp339_AST = null; tmp339_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp339_AST); match(LITERAL_except); if ( inputState.guessing==0 ) { name = "except"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_order: { org.exist.xquery.parser.XQueryAST tmp340_AST = null; tmp340_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp340_AST); match(LITERAL_order); if ( inputState.guessing==0 ) { name = "order"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_by: { org.exist.xquery.parser.XQueryAST tmp341_AST = null; tmp341_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp341_AST); match(LITERAL_by); if ( inputState.guessing==0 ) { name = "by"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_some: { org.exist.xquery.parser.XQueryAST tmp342_AST = null; tmp342_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp342_AST); match(LITERAL_some); if ( inputState.guessing==0 ) { name = "some"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_every: { org.exist.xquery.parser.XQueryAST tmp343_AST = null; tmp343_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp343_AST); match(LITERAL_every); if ( inputState.guessing==0 ) { name = "every"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_is: { org.exist.xquery.parser.XQueryAST tmp344_AST = null; tmp344_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp344_AST); match(LITERAL_is); if ( inputState.guessing==0 ) { name = "is"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_isnot: { org.exist.xquery.parser.XQueryAST tmp345_AST = null; tmp345_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp345_AST); match(LITERAL_isnot); if ( inputState.guessing==0 ) { name = "isnot"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_module: { org.exist.xquery.parser.XQueryAST tmp346_AST = null; tmp346_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp346_AST); match(LITERAL_module); if ( inputState.guessing==0 ) { name = "module"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_import: { org.exist.xquery.parser.XQueryAST tmp347_AST = null; tmp347_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp347_AST); match(LITERAL_import); if ( inputState.guessing==0 ) { name = "import"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_at: { org.exist.xquery.parser.XQueryAST tmp348_AST = null; tmp348_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp348_AST); match(LITERAL_at); if ( inputState.guessing==0 ) { name = "at"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_cast: { org.exist.xquery.parser.XQueryAST tmp349_AST = null; tmp349_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp349_AST); match(LITERAL_cast); if ( inputState.guessing==0 ) { name = "cast"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_return: { org.exist.xquery.parser.XQueryAST tmp350_AST = null; tmp350_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp350_AST); match(LITERAL_return); if ( inputState.guessing==0 ) { name = "return"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_instance: { org.exist.xquery.parser.XQueryAST tmp351_AST = null; tmp351_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp351_AST); match(LITERAL_instance); if ( inputState.guessing==0 ) { name = "instance"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_of: { org.exist.xquery.parser.XQueryAST tmp352_AST = null; tmp352_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp352_AST); match(LITERAL_of); if ( inputState.guessing==0 ) { name = "of"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_declare: { org.exist.xquery.parser.XQueryAST tmp353_AST = null; tmp353_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp353_AST); match(LITERAL_declare); if ( inputState.guessing==0 ) { name = "declare"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_collation: { org.exist.xquery.parser.XQueryAST tmp354_AST = null; tmp354_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp354_AST); match(LITERAL_collation); if ( inputState.guessing==0 ) { name = "collation"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_xmlspace: { org.exist.xquery.parser.XQueryAST tmp355_AST = null; tmp355_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp355_AST); match(LITERAL_xmlspace); if ( inputState.guessing==0 ) { name = "xmlspace"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_preserve: { org.exist.xquery.parser.XQueryAST tmp356_AST = null; tmp356_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp356_AST); match(LITERAL_preserve); if ( inputState.guessing==0 ) { name = "preserve"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_strip: { org.exist.xquery.parser.XQueryAST tmp357_AST = null; tmp357_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp357_AST); match(LITERAL_strip); if ( inputState.guessing==0 ) { name = "strip"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } returnAST = reservedKeywords_AST; return name; }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/969210006e6cb9fde8b28d06ed5a9eca60042541/XQueryParser.java/clean/src/org/exist/xquery/parser/XQueryParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
514,
225,
8735,
14149,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
202,
202,
780,
508,
31,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
8735,
14149,
67,
9053,
273,
446,
31,
202,
202,
529,
33,
446,
31,
9506,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
511,
18454,
67,
2956,
30,
202,
202,
95,
1082,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
1853,
22,
2733,
67,
9053,
273,
446,
31,
1082,
202,
5645,
22,
2733,
67,
9053,
273,
261,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
13,
689,
1733,
18,
2640,
12,
12050,
12,
21,
10019,
1082,
202,
689,
1733,
18,
1289,
9053,
1763,
12,
2972,
9053,
16,
1853,
22,
2733,
67,
9053,
1769,
1082,
202,
1916,
12,
23225,
67,
2956,
1769,
1082,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
9506,
202,
529,
273,
315,
2956,
14432,
1082,
202,
97,
1082,
202,
18898,
14149,
67,
9053,
273,
261,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
13,
2972,
9053,
18,
3085,
31,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
511,
18454,
67,
869,
30,
202,
202,
95,
1082,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
1853,
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,
514,
225,
8735,
14149,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
202,
202,
780,
508,
31,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
8735,
14149,
67,
9053,
273,
446,
31,
202,
202,
529,
33,
446,
31,
9506,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
511,
18454,
67,
2956,
30,
202,
202,
95,
1082,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
1853,
22,
2733,
67,
9053,
273,
446,
31,
1082,
202,
5645,
22,
2733,
67,
9053,
273,
261,
3341,
18,
2
] |
fDirList.addElement( result.trim() );
|
fDirList.addElement( result ); changed = true;
|
private void addDirectory() { AddDirectoryDialog dialog = new AddDirectoryDialog( getShell() ); dialog.open(); String result = dialog.getValue(); if ( result != null && !contains( result ) ) { fDirList.addElement( result.trim() ); } }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/dae81c31ec4a2bd031b70ab874bd25820e786915/SolibSearchPathBlock.java/buggy/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/SolibSearchPathBlock.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
527,
2853,
1435,
288,
202,
202,
986,
2853,
6353,
6176,
273,
394,
1436,
2853,
6353,
12,
7932,
1165,
1435,
11272,
202,
202,
12730,
18,
3190,
5621,
202,
202,
780,
563,
273,
6176,
18,
24805,
5621,
202,
202,
430,
261,
563,
480,
446,
597,
401,
12298,
12,
563,
262,
262,
288,
1082,
202,
74,
1621,
682,
18,
1289,
1046,
12,
563,
18,
5290,
1435,
11272,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
527,
2853,
1435,
288,
202,
202,
986,
2853,
6353,
6176,
273,
394,
1436,
2853,
6353,
12,
7932,
1165,
1435,
11272,
202,
202,
12730,
18,
3190,
5621,
202,
202,
780,
563,
273,
6176,
18,
24805,
5621,
202,
202,
430,
261,
563,
480,
446,
597,
401,
12298,
12,
563,
262,
262,
288,
1082,
202,
74,
1621,
682,
18,
1289,
1046,
12,
563,
18,
5290,
1435,
11272,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public NodeComponent addNode(String name) { ExperimentNode result = new ExperimentNode(name, this); addNodeComponent(result); return result;
|
public NodeComponent addNode(String name) throws IllegalArgumentException { if(!nodeExists(name)) { ExperimentNode result = new ExperimentNode(name, this); addNodeComponent(result); return result; } else { throw new IllegalArgumentException("Node already exists"); }
|
public NodeComponent addNode(String name) { // FIXME! This allows 2 Nodes with the same name. Of itself, that's // OK, but on the same Host, that would be bad, and in general // its confusing. ExperimentNode result = new ExperimentNode(name, this); addNodeComponent(result); return result; }
|
9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/609bc500b3e2ce535f356ab539e69101ef5a4ca6/Experiment.java/buggy/csmart/src/org/cougaar/tools/csmart/experiment/Experiment.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2029,
1841,
23063,
12,
780,
508,
13,
288,
565,
368,
9852,
5,
1220,
5360,
576,
14037,
598,
326,
1967,
508,
18,
8031,
6174,
16,
716,
1807,
565,
368,
7791,
16,
1496,
603,
326,
1967,
4893,
16,
716,
4102,
506,
5570,
16,
471,
316,
7470,
565,
368,
2097,
2195,
9940,
18,
565,
22844,
907,
563,
273,
394,
22844,
907,
12,
529,
16,
333,
1769,
565,
23063,
1841,
12,
2088,
1769,
565,
327,
563,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2029,
1841,
23063,
12,
780,
508,
13,
288,
565,
368,
9852,
5,
1220,
5360,
576,
14037,
598,
326,
1967,
508,
18,
8031,
6174,
16,
716,
1807,
565,
368,
7791,
16,
1496,
603,
326,
1967,
4893,
16,
716,
4102,
506,
5570,
16,
471,
316,
7470,
565,
368,
2097,
2195,
9940,
18,
565,
22844,
907,
563,
273,
394,
22844,
907,
12,
529,
16,
333,
1769,
565,
23063,
1841,
12,
2088,
1769,
565,
327,
563,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (numParams > 1) {
|
if(numParams > 1){
|
private void checkBody(PsiCodeBlock body) { final PsiStatement[] statements = body.getStatements(); if (statements == null) { return; } if (statements.length == 0) { return; } for (int i = 0; i < statements.length; i++) { final PsiStatement statement = statements[i]; if (isConditional(statement)) { return; } if (!(statement instanceof PsiExpressionStatement)) { continue; } final PsiExpression firstExpression = ((PsiExpressionStatement) statement).getExpression(); if (!(firstExpression instanceof PsiMethodCallExpression)) { continue; } final PsiMethodCallExpression methodCallExpression = (PsiMethodCallExpression) firstExpression; final PsiReferenceExpression methodExpression = methodCallExpression.getMethodExpression(); if (methodExpression == null) { continue; } final String methodName = methodExpression.getReferenceName(); if (!"wait".equals(methodName)) { continue; } final PsiMethod method = methodCallExpression.resolveMethod(); if (method == null) { continue; } final PsiParameterList paramList = method.getParameterList(); if (paramList == null) { continue; } final PsiParameter[] parameters = paramList.getParameters(); final int numParams = parameters.length; if (numParams > 2) { continue; } if (numParams > 0) { final PsiType parameterType = parameters[0].getType(); if (!parameterType.equals(PsiType.LONG)) { continue; } } if (numParams > 1) { final PsiType parameterType = parameters[1].getType(); if (!parameterType.equals(PsiType.INT)) { continue; } } registerMethodCallError(methodCallExpression); } }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/2d46d291193579a7564649b4881c7ea8e02eda5b/UnconditionalWaitInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/threading/UnconditionalWaitInspection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
866,
2250,
12,
52,
7722,
1085,
1768,
1417,
13,
288,
5411,
727,
453,
7722,
3406,
8526,
6317,
273,
1417,
18,
588,
14663,
5621,
5411,
309,
261,
18393,
422,
446,
13,
288,
7734,
327,
31,
5411,
289,
5411,
309,
261,
18393,
18,
2469,
422,
374,
13,
288,
7734,
327,
31,
5411,
289,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
6317,
18,
2469,
31,
277,
27245,
288,
7734,
727,
453,
7722,
3406,
3021,
273,
6317,
63,
77,
15533,
7734,
309,
261,
291,
14132,
12,
11516,
3719,
288,
10792,
327,
31,
7734,
289,
7734,
309,
16051,
12,
11516,
1276,
453,
7722,
2300,
3406,
3719,
288,
10792,
1324,
31,
7734,
289,
7734,
727,
453,
7722,
2300,
1122,
2300,
273,
13491,
14015,
52,
7722,
2300,
3406,
13,
3021,
2934,
588,
2300,
5621,
7734,
309,
16051,
12,
3645,
2300,
1276,
453,
7722,
12592,
2300,
3719,
288,
10792,
1324,
31,
7734,
289,
7734,
727,
453,
7722,
12592,
2300,
707,
31895,
273,
13491,
261,
52,
7722,
12592,
2300,
13,
1122,
2300,
31,
7734,
727,
453,
7722,
2404,
2300,
707,
2300,
273,
13491,
707,
31895,
18,
588,
1305,
2300,
5621,
7734,
309,
261,
2039,
2300,
422,
446,
13,
288,
10792,
1324,
31,
7734,
289,
7734,
727,
514,
4918,
273,
707,
2300,
18,
588,
2404,
461,
5621,
7734,
309,
261,
4442,
7048,
9654,
14963,
12,
2039,
461,
3719,
288,
10792,
1324,
31,
7734,
289,
7734,
727,
453,
7722,
1305,
707,
273,
707,
31895,
18,
10828,
1305,
5621,
7734,
309,
261,
2039,
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,
3238,
918,
866,
2250,
12,
52,
7722,
1085,
1768,
1417,
13,
288,
5411,
727,
453,
7722,
3406,
8526,
6317,
273,
1417,
18,
588,
14663,
5621,
5411,
309,
261,
18393,
422,
446,
13,
288,
7734,
327,
31,
5411,
289,
5411,
309,
261,
18393,
18,
2469,
422,
374,
13,
288,
7734,
327,
31,
5411,
289,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
6317,
18,
2469,
31,
277,
27245,
288,
7734,
727,
453,
7722,
3406,
3021,
273,
6317,
63,
77,
15533,
7734,
309,
261,
291,
14132,
12,
11516,
3719,
288,
10792,
327,
31,
7734,
289,
7734,
309,
16051,
12,
11516,
1276,
453,
7722,
2300,
3406,
3719,
288,
10792,
1324,
31,
7734,
289,
7734,
727,
453,
7722,
2300,
1122,
2
] |
String typeStr = "";
|
List types = new ArrayList();
|
public String getToken(String tokenSource, PlayerCharacter pc, ExportHandler eh) { String retString = ""; final StringTokenizer aTok = new StringTokenizer(tokenSource, "."); final String fString = aTok.nextToken(); if (cachedPC != pc || !fString.equals(lastMode)) { // Overridden by subclasses to return the right list. feat = getFeatList(pc); } cachedPC = pc; lastMode = fString; String typeStr = ""; String featType = null; // i holds the number of the feat we want, is decremented // as we iterate through the list. It is only decremented // if the current feat matches the desired feat int i = -1; if ("FEAT".equals(fString) || "VFEAT".equals(fString) || "FEATALL".equals(fString) || "FEATAUTO".equals(fString)) { while (aTok.hasMoreTokens()) { final String bString = aTok.nextToken(); try { i = Integer.parseInt(bString); break; } catch (NumberFormatException exc) { if (bString.equals("VISIBLE")) { visibility = FEAT_VISIBLE; continue; } else if (bString.equals("HIDDEN")) { visibility = FEAT_HIDDEN; continue; } else if (bString.equals("ALL")) { visibility = FEAT_ALL; continue; } else { featType = bString; } } } if (aTok.hasMoreTokens()) { typeStr = aTok.nextToken(); if (!(typeStr.startsWith("TYPE") || typeStr.startsWith("!TYPE"))) { typeStr = ""; } } } List aList = new ArrayList(); Globals.sortPObjectList(feat); Ability aFeat; for (Iterator e = feat.iterator(); e.hasNext();) { aFeat = (Ability) e.next(); boolean matchTypeDef = false; boolean matchVisibilityDef = false; if (featType != null) { if (aFeat.isType(featType)) { matchTypeDef = true; } } else { matchTypeDef = true; } if ((tokenSource.indexOf(".!TYPE") >= 0) && (typeStr.length() > 6)) { matchTypeDef = !aFeat.isType(typeStr.substring(6)); } else if ((tokenSource.indexOf(".TYPE") >= 0) && (typeStr.length() > 5)) { matchTypeDef = aFeat.isType(typeStr.substring(5)); } if ((aFeat.getVisible() == Ability.VISIBILITY_HIDDEN) || (aFeat.getVisible() == Ability.VISIBILITY_DISPLAY_ONLY)) { // never display hidden feats unless asked for directly if (visibility == FEAT_HIDDEN) { matchVisibilityDef = true; } } else if (visibility == FEAT_ALL) { // We want all visible feats matchVisibilityDef = true; } else if ((aFeat.getVisible() == Ability.VISIBILITY_DEFAULT) || (aFeat.getVisible() == Ability.VISIBILITY_OUTPUT_ONLY)) { // default or output if (((visibility == FEAT_DEFAULT) || (visibility == FEAT_VISIBLE))) { matchVisibilityDef = true; } } if (matchTypeDef && matchVisibilityDef) { aList.add(aFeat); } } if (i < aList.size()) { aFeat = (Ability) aList.get(i); if (i == aList.size() - 1 && eh != null && eh.getExistsOnly()) { eh.setNoMoreItems(true); } else if (eh != null && eh.getExistsOnly()) { eh.setNoMoreItems(true); } if (tokenSource.endsWith(".DESC")) { retString += aFeat.getBenefitDescription(); } else if (tokenSource.endsWith(".TYPE")) { retString += aFeat.getType(); } else if (tokenSource.endsWith(".ASSOCIATED")) { StringBuffer buf = new StringBuffer(); for (int j = 0; j < aFeat.getAssociatedCount(); j++) { if (j != 0) { buf.append(","); } buf.append(aFeat.getAssociated(j)); } retString += buf.toString(); } else if (tokenSource.endsWith(".ASSOCIATEDCOUNT")) { retString += Integer.toString(aFeat.getAssociatedCount()); } else if (tokenSource.endsWith(".SOURCE")) { retString += aFeat.getSource(); } else { retString += aFeat.qualifiedName(); } } return retString; }
|
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/ca0f22d05fea8451aadabb82adfc7a94c1b8b35b/FeatToken.java/clean/code/src/java/pcgen/io/exporttoken/FeatToken.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
9162,
12,
780,
1147,
1830,
16,
19185,
7069,
6125,
16,
11054,
1503,
20124,
13,
288,
202,
202,
780,
325,
780,
273,
1408,
31,
202,
202,
6385,
16370,
279,
20477,
273,
394,
16370,
12,
2316,
1830,
16,
4585,
1769,
202,
202,
6385,
514,
284,
780,
273,
279,
20477,
18,
4285,
1345,
5621,
202,
202,
430,
261,
7097,
3513,
480,
6125,
747,
401,
74,
780,
18,
14963,
12,
2722,
2309,
3719,
202,
202,
95,
1082,
202,
759,
531,
1107,
2794,
635,
15320,
358,
327,
326,
2145,
666,
18,
1082,
202,
29735,
273,
13683,
270,
682,
12,
2436,
1769,
202,
202,
97,
202,
202,
7097,
3513,
273,
6125,
31,
202,
202,
2722,
2309,
273,
284,
780,
31,
202,
202,
780,
618,
1585,
273,
1408,
31,
202,
202,
780,
11002,
559,
273,
446,
31,
202,
202,
759,
277,
14798,
326,
1300,
434,
326,
11002,
732,
2545,
16,
353,
15267,
329,
202,
202,
759,
487,
732,
7401,
3059,
326,
666,
18,
2597,
353,
1338,
15267,
329,
202,
202,
759,
309,
326,
783,
11002,
1885,
326,
6049,
11002,
202,
202,
474,
277,
273,
300,
21,
31,
202,
202,
430,
7566,
8090,
789,
9654,
14963,
12,
74,
780,
13,
747,
315,
58,
8090,
789,
9654,
14963,
12,
74,
780,
13,
747,
315,
8090,
789,
4685,
9654,
14963,
12,
74,
780,
13,
747,
315,
8090,
3706,
11806,
9654,
14963,
12,
74,
780,
3719,
288,
1082,
202,
17523,
261,
69,
20477,
18,
5332,
7417,
5157,
10756,
288,
9506,
202,
6385,
514,
324,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
9162,
12,
780,
1147,
1830,
16,
19185,
7069,
6125,
16,
11054,
1503,
20124,
13,
288,
202,
202,
780,
325,
780,
273,
1408,
31,
202,
202,
6385,
16370,
279,
20477,
273,
394,
16370,
12,
2316,
1830,
16,
4585,
1769,
202,
202,
6385,
514,
284,
780,
273,
279,
20477,
18,
4285,
1345,
5621,
202,
202,
430,
261,
7097,
3513,
480,
6125,
747,
401,
74,
780,
18,
14963,
12,
2722,
2309,
3719,
202,
202,
95,
1082,
202,
759,
531,
1107,
2794,
635,
15320,
358,
327,
326,
2145,
666,
18,
1082,
202,
29735,
273,
13683,
270,
682,
12,
2436,
1769,
202,
202,
97,
202,
202,
7097,
3513,
273,
6125,
31,
202,
202,
2722,
2309,
273,
284,
780,
31,
202,
2
] |
if (code[0] == current) {
|
if (renamingCode && (code[0] == current)) {
|
public void nameCode(String newName) { // make sure the user didn't hide the sketch folder ensureExistence(); // if renaming to the same thing as before, just ignore. // also ignoring case here, because i don't want to write // a bunch of special stuff for each platform // (osx is case insensitive but preserving, windows insensitive, // *nix is sensitive and preserving.. argh) if (renamingCode && newName.equalsIgnoreCase(current.name)) { // exit quietly for the 'rename' case. // if it's a 'new' then an error will occur down below return; } // don't allow blank names if (newName.trim().equals("")) { return; } String newFilename = null; int newFlavor = 0; // separate into newName (no extension) and newFilename (with ext) // add .pde to file if it has no extension if (newName.endsWith(".pde")) { newFilename = newName; newName = newName.substring(0, newName.length() - 4); newFlavor = PDE; } else if (newName.endsWith(".java")) { if (code[0] == current) { Base.showWarning("Problem with rename", "The main .pde file cannot be .java file.\n" + "(It may be time for your to graduate to a\n" + "\"real\" programming environment)", null); return; } newFilename = newName; newName = newName.substring(0, newName.length() - 5); newFlavor = JAVA; } else { newFilename = newName + ".pde"; newFlavor = PDE; } // dots are allowed for the .pde and .java, but not in the name // make sure the user didn't name things poo.time.pde // or something like that (nothing against poo time) if (newName.indexOf('.') != -1) { newName = Sketchbook.sanitizedName(newName); newFilename = newName + ((newFlavor == PDE) ? ".pde" : ".java"); } // create the new file, new SketchCode object and load it File newFile = new File(folder, newFilename); if (newFile.exists()) { // yay! users will try anything Base.showMessage("Nope", "A file named \"" + newFile + "\" already exists\n" + "in \"" + folder.getAbsolutePath() + "\""); return; } File newFileHidden = new File(folder, newFilename + ".x"); if (newFileHidden.exists()) { // don't let them get away with it if they try to create something // with the same name as something hidden Base.showMessage("No Way", "A hidden tab with the same name already exists.\n" + "Use \"Unhide\" to bring it back."); return; } if (renamingCode) { if (current == code[0]) { // get the new folder name/location File newFolder = new File(folder.getParentFile(), newName); if (newFolder.exists()) { Base.showWarning("Cannot Rename", "Sorry, a sketch (or folder) named " + "\"" + newName + "\" already exists.", null); return; } // unfortunately this can't be a "save as" because that // only copies the sketch files and the data folder // however this *will* first save the sketch, then rename // first get the contents of the editor text area if (current.modified) { current.program = editor.getText(); try { // save this new SketchCode current.save(); } catch (Exception e) { Base.showWarning("Error", "Could not rename the sketch. (0)", e); return; } } if (!current.file.renameTo(newFile)) { Base.showWarning("Error", "Could not rename \"" + current.file.getName() + "\" to \"" + newFile.getName() + "\"", null); return; } // save each of the other tabs because this is gonna be re-opened try { for (int i = 1; i < codeCount; i++) { //if (code[i].modified) code[i].save(); code[i].save(); } } catch (Exception e) { Base.showWarning("Error", "Could not rename the sketch. (1)", e); return; } // now rename the sketch folder and re-open boolean success = folder.renameTo(newFolder); if (!success) { Base.showWarning("Error", "Could not rename the sketch. (2)", null); return; } // if successful, set base properties for the sketch File mainFile = new File(newFolder, newName + ".pde"); mainFilename = mainFile.getAbsolutePath(); // having saved everything and renamed the folder and the main .pde, // use the editor to re-open the sketch to re-init state // (unfortunately this will kill positions for carets etc) editor.handleOpenUnchecked(mainFilename); /* // backtrack and don't rename the sketch folder success = newFolder.renameTo(folder); if (!success) { String msg = "Started renaming sketch and then ran into\n" + "nasty trouble. Try to salvage with Copy & Paste\n" + "or attempt a \"Save As\" to see if that works."; Base.showWarning("Serious Error", msg, null); } return; } */ /* // set the sketch name... used by the pde and whatnot. // the name is only set in the sketch constructor, // so it's important here name = newName; code[0].name = newName; code[0].file = mainFile; code[0].program = editor.getText(); code[0].save(); folder = newFolder; // get the changes into the sketchbook menu editor.sketchbook.rebuildMenus(); // reload the sketch load(); */ } else { if (!current.file.renameTo(newFile)) { Base.showWarning("Error", "Could not rename \"" + current.file.getName() + "\" to \"" + newFile.getName() + "\"", null); return; } // just reopen the class itself current.name = newName; current.file = newFile; current.flavor = newFlavor; } } else { // creating a new file try { newFile.createNewFile(); // TODO returns a boolean } catch (IOException e) { Base.showWarning("Error", "Could not create the file \"" + newFile + "\"\n" + "in \"" + folder.getAbsolutePath() + "\"", e); return; } SketchCode newCode = new SketchCode(newName, newFile, newFlavor); insertCode(newCode); } // sort the entries sortCode(); // set the new guy as current setCurrent(newName); // update the tabs editor.header.repaint(); }
|
8833 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8833/276c54a20be5737ba3ba86db36fcfbcf81828dd2/Sketch.java/buggy/app/Sketch.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
508,
1085,
12,
780,
13253,
13,
288,
565,
368,
1221,
3071,
326,
729,
10242,
1404,
6853,
326,
18534,
3009,
565,
3387,
4786,
802,
5621,
565,
368,
309,
30883,
358,
326,
1967,
7757,
487,
1865,
16,
2537,
2305,
18,
565,
368,
2546,
14398,
648,
2674,
16,
2724,
277,
2727,
1404,
2545,
358,
1045,
565,
368,
279,
25606,
434,
4582,
10769,
364,
1517,
4072,
565,
368,
261,
538,
92,
353,
648,
17904,
1496,
27995,
16,
9965,
17904,
16,
565,
368,
380,
82,
697,
353,
16692,
471,
27995,
838,
1501,
76,
13,
565,
309,
261,
1187,
7772,
1085,
597,
13253,
18,
14963,
5556,
12,
2972,
18,
529,
3719,
288,
1377,
368,
2427,
10902,
715,
364,
326,
296,
18539,
11,
648,
18,
1377,
368,
309,
518,
1807,
279,
296,
2704,
11,
1508,
392,
555,
903,
3334,
2588,
5712,
1377,
327,
31,
565,
289,
565,
368,
2727,
1404,
1699,
7052,
1257,
565,
309,
261,
2704,
461,
18,
5290,
7675,
14963,
2932,
6,
3719,
288,
1377,
327,
31,
565,
289,
565,
514,
394,
5359,
273,
446,
31,
565,
509,
394,
2340,
9444,
273,
374,
31,
565,
368,
9004,
1368,
13253,
261,
2135,
2710,
13,
471,
394,
5359,
261,
1918,
1110,
13,
565,
368,
527,
263,
84,
323,
358,
585,
309,
518,
711,
1158,
2710,
565,
309,
261,
2704,
461,
18,
5839,
1190,
2932,
18,
84,
323,
6,
3719,
288,
1377,
394,
5359,
273,
13253,
31,
1377,
13253,
273,
13253,
18,
28023,
12,
20,
16,
13253,
18,
2469,
1435,
300,
1059,
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,
508,
1085,
12,
780,
13253,
13,
288,
565,
368,
1221,
3071,
326,
729,
10242,
1404,
6853,
326,
18534,
3009,
565,
3387,
4786,
802,
5621,
565,
368,
309,
30883,
358,
326,
1967,
7757,
487,
1865,
16,
2537,
2305,
18,
565,
368,
2546,
14398,
648,
2674,
16,
2724,
277,
2727,
1404,
2545,
358,
1045,
565,
368,
279,
25606,
434,
4582,
10769,
364,
1517,
4072,
565,
368,
261,
538,
92,
353,
648,
17904,
1496,
27995,
16,
9965,
17904,
16,
565,
368,
380,
82,
697,
353,
16692,
471,
27995,
838,
1501,
76,
13,
565,
309,
261,
1187,
7772,
1085,
597,
13253,
18,
14963,
5556,
12,
2972,
18,
529,
3719,
288,
1377,
368,
2427,
10902,
715,
364,
326,
296,
18539,
11,
2
] |
filepath + ":18: line longer than 80 characters", filepath + ":19:25: line contains a tab character",
|
filepath + ":18: Line is longer than 80 characters.", filepath + ":19:25: Line contains a tab character.",
|
public void testSimple() throws Exception { mConfig.setIntProperty(Defn.MAX_FILE_LENGTH_PROP, 20) ; mConfig.setIntProperty(Defn.MAX_METHOD_LENGTH_PROP, 19) ; mConfig.setIntProperty(Defn.MAX_CONSTRUCTOR_LENGTH_PROP, 9) ; mConfig.setPatternProperty(Defn.PARAMETER_PATTERN_PROP, "^a[A-Z][a-zA-Z0-9]*$"); mConfig.setPatternProperty(Defn.STATIC_PATTERN_PROP, "^s[A-Z][a-zA-Z0-9]*$"); mConfig.setPatternProperty(Defn.MEMBER_PATTERN_PROP, "^m[A-Z][a-zA-Z0-9]*$"); mConfig.setPatternProperty(Defn.IGNORE_LINE_LENGTH_PATTERN_PROP,"^.*is OK.*regexp.*$"); mConfig.setPatternProperty(Defn.TODO_PATTERN_PROP, "FIXME:"); final Checker c = createChecker(); final String filepath = getPath("InputSimple.java"); assertNotNull(c); final String[] expected = { filepath + ":1: file length is 198 lines (max allowed is 20).", filepath + ":3: Line does not match expected header line of '// Created: 2001'.", filepath + ":18: line longer than 80 characters", filepath + ":19:25: line contains a tab character", filepath + ":25:29: variable name 'badConstant' must match pattern '^[A-Z](_?[A-Z0-9]+)*$'.", filepath + ":30:24: variable name 'badStatic' must match pattern '^s[A-Z][a-zA-Z0-9]*$'.", filepath + ":35:17: variable name 'badMember' must match pattern '^m[A-Z][a-zA-Z0-9]*$'.", filepath + ":39:19: variable 'mNumCreated2' must be private and have accessor methods.", filepath + ":42:40: ',' is not followed by whitespace.", filepath + ":49:23: variable 'sTest1' must be private and have accessor methods.", filepath + ":51:26: variable 'sTest3' must be private and have accessor methods.", filepath + ":53:16: variable 'sTest2' must be private and have accessor methods.", filepath + ":56:9: variable 'mTest1' must be private and have accessor methods.", filepath + ":58:16: variable 'mTest2' must be private and have accessor methods.", filepath + ":71:19: parameter name 'badFormat1' must match pattern '^a[A-Z][a-zA-Z0-9]*$'.", filepath + ":71:30: ',' is not followed by whitespace.", filepath + ":71:34: parameter name 'badFormat2' must match pattern '^a[A-Z][a-zA-Z0-9]*$'.", filepath + ":72:25: parameter name 'badFormat3' must match pattern '^a[A-Z][a-zA-Z0-9]*$'.", filepath + ":80: method length is 20 lines (max allowed is 19).", filepath + ":103: constructor length is 10 lines (max allowed is 9).", filepath + ":119:13: variable name 'ABC' must match pattern '^[a-z][a-zA-Z0-9]*$'.", filepath + ":123:19: variable name 'CDE' must match pattern '^[a-z][a-zA-Z0-9]*$'.", filepath + ":127:9: '{' should be on the previous line.", filepath + ":130:18: variable name 'I' must match pattern '^[a-z][a-zA-Z0-9]*$'.", filepath + ":131:9: '{' should be on the previous line.", filepath + ":132:20: variable name 'InnerBlockVariable' must match pattern '^[a-z][a-zA-Z0-9]*$'.", filepath + ":137:10: method name 'ALL_UPPERCASE_METHOD' must match pattern '^[a-z][a-zA-Z0-9]*$'.", filepath + ":142:30: variable name 'BAD__NAME' must match pattern '^[A-Z](_?[A-Z0-9]+)*$'.", filepath + ":145: line longer than 80 characters", filepath + ":145:35: line contains a tab character", filepath + ":146:64: line contains a tab character", filepath + ":153:27: '=' is not followed by whitespace.", filepath + ":154:9: line contains a tab character", filepath + ":154:27: '=' is not followed by whitespace.", filepath + ":155:10: line contains a tab character", filepath + ":155:27: '=' is not followed by whitespace.", filepath + ":156:1: line contains a tab character", filepath + ":156:27: '=' is not followed by whitespace.", filepath + ":157:3: line contains a tab character", filepath + ":157:27: '=' is not followed by whitespace.", filepath + ":158:3: line contains a tab character", filepath + ":158:27: '=' is not followed by whitespace.", filepath + ":161: Comment matches to-do format 'FIXME:'.", filepath + ":162: Comment matches to-do format 'FIXME:'.", filepath + ":163: Comment matches to-do format 'FIXME:'.", filepath + ":167: Comment matches to-do format 'FIXME:'.", filepath + ":194:5: More than 7 parameters.", }; verify(c, filepath, expected); }
|
50482 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50482/ff8f2276c5c188f57ede86bdb1ff1a055f069f91/CheckerTest.java/buggy/src/tests/com/puppycrawl/tools/checkstyle/CheckerTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5784,
1435,
3639,
1216,
1185,
565,
288,
3639,
312,
809,
18,
542,
1702,
1396,
12,
3262,
82,
18,
6694,
67,
3776,
67,
7096,
67,
15811,
16,
4200,
13,
274,
3639,
312,
809,
18,
542,
1702,
1396,
12,
3262,
82,
18,
6694,
67,
5327,
67,
7096,
67,
15811,
16,
5342,
13,
274,
3639,
312,
809,
18,
542,
1702,
1396,
12,
3262,
82,
18,
6694,
67,
26935,
916,
67,
7096,
67,
15811,
16,
2468,
13,
274,
3639,
312,
809,
18,
542,
3234,
1396,
12,
3262,
82,
18,
9819,
67,
10831,
67,
15811,
16,
15017,
69,
63,
37,
17,
62,
6362,
69,
17,
9600,
17,
62,
20,
17,
29,
5772,
8,
8863,
3639,
312,
809,
18,
542,
3234,
1396,
12,
3262,
82,
18,
22741,
67,
10831,
67,
15811,
16,
15017,
87,
63,
37,
17,
62,
6362,
69,
17,
9600,
17,
62,
20,
17,
29,
5772,
8,
8863,
3639,
312,
809,
18,
542,
3234,
1396,
12,
3262,
82,
18,
19630,
67,
10831,
67,
15811,
16,
15017,
81,
63,
37,
17,
62,
6362,
69,
17,
9600,
17,
62,
20,
17,
29,
5772,
8,
8863,
3639,
312,
809,
18,
542,
3234,
1396,
12,
3262,
82,
18,
20118,
67,
5997,
67,
7096,
67,
10831,
67,
15811,
10837,
66,
4509,
291,
7791,
4509,
17745,
4509,
8,
8863,
3639,
312,
809,
18,
542,
3234,
1396,
12,
3262,
82,
18,
6241,
67,
10831,
67,
15811,
16,
315,
25810,
2773,
1769,
3639,
727,
31577,
276,
273,
752,
8847,
5621,
3639,
727,
514,
3608,
273,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5784,
1435,
3639,
1216,
1185,
565,
288,
3639,
312,
809,
18,
542,
1702,
1396,
12,
3262,
82,
18,
6694,
67,
3776,
67,
7096,
67,
15811,
16,
4200,
13,
274,
3639,
312,
809,
18,
542,
1702,
1396,
12,
3262,
82,
18,
6694,
67,
5327,
67,
7096,
67,
15811,
16,
5342,
13,
274,
3639,
312,
809,
18,
542,
1702,
1396,
12,
3262,
82,
18,
6694,
67,
26935,
916,
67,
7096,
67,
15811,
16,
2468,
13,
274,
3639,
312,
809,
18,
542,
3234,
1396,
12,
3262,
82,
18,
9819,
67,
10831,
67,
15811,
16,
15017,
69,
63,
37,
17,
62,
6362,
69,
17,
9600,
17,
62,
20,
17,
29,
5772,
8,
8863,
3639,
312,
809,
18,
542,
3234,
2
] |
Phrase colTitle = new Phrase(contents, colHeadingFont); PdfPCell cell = new PdfPCell(colTitle); cell.setBorder(Rectangle.BOTTOM | Rectangle.TOP); cell.setBorderWidth(2); cell.setBackgroundColor(new Color(200, 200, 200)); cell.setHorizontalAlignment(Element.ALIGN_CENTER); table.addCell(cell);
|
private void addHeaderRow(ProfileManager pm, SQLTable sqlTable, PdfPTable table, BaseFont bf, float titleFSize, float colHeadingFSize, float[] widths) throws DocumentException, IOException, ArchitectException { int ncols = headings.length; Font titleFont = new Font(bf, titleFSize, Font.BOLD); Font colHeadingFont = new Font(bf, colHeadingFSize); TableProfileResult tProfile = (TableProfileResult) pm.getResult(sqlTable); PdfPTable infoTable = new PdfPTable(2); StringBuffer heading = new StringBuffer(); if ( tProfile.isError() ) { heading.append("Table: ").append(sqlTable.getName()); heading.append(" Profiling Error"); if ( tProfile.getEx() != null ) heading.append(":\n").append(tProfile.getEx()); } else { PdfPCell infoCell; heading.append("Table: ").append(sqlTable.getName()); infoCell = new PdfPCell(new Phrase("Row Count:",colHeadingFont)); infoCell.setBorder(Rectangle.NO_BORDER); infoCell.setHorizontalAlignment(Element.ALIGN_RIGHT); infoTable.addCell(infoCell); infoCell = new PdfPCell(new Phrase(String.valueOf(tProfile.getRowCount()), colHeadingFont)); infoCell.setBorder(Rectangle.NO_BORDER); infoTable.addCell(infoCell); infoCell = new PdfPCell(new Phrase("Create Date:",colHeadingFont)); infoCell.setBorder(Rectangle.NO_BORDER); infoCell.setHorizontalAlignment(Element.ALIGN_RIGHT); infoTable.addCell(infoCell); DateFormat df = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); infoCell = new PdfPCell(new Phrase(df.format(tProfile.getCreateDate()), colHeadingFont)); infoCell.setBorder(Rectangle.NO_BORDER); infoTable.addCell(infoCell); infoCell = new PdfPCell(new Phrase("Elapsed:",colHeadingFont)); infoCell.setBorder(Rectangle.NO_BORDER); infoCell.setHorizontalAlignment(Element.ALIGN_RIGHT); infoTable.addCell(infoCell); infoCell = new PdfPCell(new Phrase(tProfile.getTimeToCreate()+"ms", colHeadingFont)); infoCell.setBorder(Rectangle.NO_BORDER); infoTable.addCell(infoCell); } PdfPCell hcell = new PdfPCell(new Phrase(heading.toString(), titleFont)); hcell.setColspan(ncols - 2); hcell.setBorder(Rectangle.NO_BORDER); hcell.setVerticalAlignment(Element.ALIGN_BOTTOM); table.addCell(hcell); hcell = new PdfPCell(infoTable); hcell.setColspan(2); hcell.setBorder(Rectangle.NO_BORDER); table.addCell(hcell); for (int colNo = 0; colNo < ncols; colNo++) { String contents = headings[colNo]; // ensure column width is at least enough for widest word in heading StringTokenizer st = new StringTokenizer(contents); while (st.hasMoreTokens()) { widths[colNo] = Math.max(widths[colNo], bf.getWidthPoint(st.nextToken(), colHeadingFSize)); } Phrase colTitle = new Phrase(contents, colHeadingFont); PdfPCell cell = new PdfPCell(colTitle); cell.setBorder(Rectangle.BOTTOM | Rectangle.TOP); cell.setBorderWidth(2); cell.setBackgroundColor(new Color(200, 200, 200)); cell.setHorizontalAlignment(Element.ALIGN_CENTER); table.addCell(cell); } table.setHeaderRows(2); }
|
53257 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53257/6f2165ada551535b4dbd5a9ee5964ef3e53a388c/ProfilePDFFormat.java/buggy/src/ca/sqlpower/architect/profile/ProfilePDFFormat.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
13906,
1999,
12,
4029,
1318,
7430,
16,
3063,
1388,
1847,
1388,
16,
4766,
9989,
52,
1388,
1014,
16,
3360,
5711,
16222,
16,
1431,
2077,
42,
1225,
16,
27573,
1431,
645,
21867,
42,
1225,
16,
1431,
8526,
15801,
13,
540,
1216,
4319,
503,
16,
1860,
16,
16959,
15004,
503,
288,
13491,
509,
21330,
273,
910,
899,
18,
2469,
31,
3639,
10063,
2077,
5711,
273,
394,
10063,
12,
17156,
16,
2077,
42,
1225,
16,
10063,
18,
38,
11846,
1769,
3639,
10063,
645,
21867,
5711,
273,
394,
10063,
12,
17156,
16,
645,
21867,
42,
1225,
1769,
7734,
3555,
4029,
1253,
268,
4029,
273,
261,
1388,
4029,
1253,
13,
7430,
18,
588,
1253,
12,
4669,
1388,
1769,
3639,
9989,
52,
1388,
1123,
1388,
273,
394,
9989,
52,
1388,
12,
22,
1769,
3639,
6674,
11053,
273,
394,
6674,
5621,
3639,
309,
261,
268,
4029,
18,
291,
668,
1435,
262,
288,
5411,
11053,
18,
6923,
2932,
1388,
30,
315,
2934,
6923,
12,
4669,
1388,
18,
17994,
10663,
5411,
11053,
18,
6923,
2932,
1186,
74,
4973,
1068,
8863,
5411,
309,
261,
268,
4029,
18,
588,
424,
1435,
480,
446,
262,
7734,
11053,
18,
6923,
2932,
5581,
82,
20387,
6923,
12,
88,
4029,
18,
588,
424,
10663,
3639,
289,
3639,
469,
288,
5411,
9989,
3513,
1165,
1123,
4020,
31,
13491,
11053,
18,
6923,
2932,
1388,
30,
315,
2934,
6923,
12,
4669,
1388,
18,
17994,
10663,
5411,
1123,
4020,
273,
394,
9989,
3513,
1165,
12,
2704,
4360,
5648,
2932,
1999,
6974,
2773,
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,
3238,
918,
13906,
1999,
12,
4029,
1318,
7430,
16,
3063,
1388,
1847,
1388,
16,
4766,
9989,
52,
1388,
1014,
16,
3360,
5711,
16222,
16,
1431,
2077,
42,
1225,
16,
27573,
1431,
645,
21867,
42,
1225,
16,
1431,
8526,
15801,
13,
540,
1216,
4319,
503,
16,
1860,
16,
16959,
15004,
503,
288,
13491,
509,
21330,
273,
910,
899,
18,
2469,
31,
3639,
10063,
2077,
5711,
273,
394,
10063,
12,
17156,
16,
2077,
42,
1225,
16,
10063,
18,
38,
11846,
1769,
3639,
10063,
645,
21867,
5711,
273,
394,
10063,
12,
17156,
16,
645,
21867,
42,
1225,
1769,
7734,
3555,
4029,
1253,
268,
4029,
273,
261,
1388,
4029,
1253,
13,
7430,
18,
588,
1253,
12,
4669,
1388,
1769,
3639,
9989,
52,
2
] |
|
if ( resultCombo.isDisposed() || resultCombo == null ) return;
|
if ( resultCombo == null || resultCombo.isDisposed() ) return;
|
public void update( Observable o, Object arg ) { if ( resultCombo.isDisposed() || resultCombo == null ) return; resultCombo.getDisplay().asyncExec( new Runnable() { public void run() { if ( resultCombo.isDisposed() ) return; /* update the other text */ if ( core.getNetworkInfoMap().getEnabledAndSearchable() == 0 ) { maxText.setEnabled( false ); minText.setEnabled( false ); resultCombo.setEnabled( false ); extensionCombo.setEnabled( false ); } else { maxText.setEnabled( true ); minText.setEnabled( true ); resultCombo.setEnabled( true ); extensionCombo.setEnabled( true ); } } } ); super.update( o, arg ); }
|
11075 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11075/3b34262f00b2a1c08156867d69bbc8fd49e1b97f/ComplexSearch.java/buggy/g2gui/src/net/mldonkey/g2gui/view/search/ComplexSearch.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1089,
12,
4310,
320,
16,
1033,
1501,
262,
288,
377,
202,
430,
261,
563,
16156,
422,
446,
747,
563,
16156,
18,
291,
1669,
7423,
1435,
262,
327,
31,
3639,
202,
2088,
16156,
18,
588,
4236,
7675,
3810,
1905,
12,
394,
10254,
1435,
288,
7734,
1071,
918,
1086,
1435,
288,
1171,
202,
430,
261,
563,
16156,
18,
291,
1669,
7423,
1435,
262,
327,
31,
10792,
1748,
1089,
326,
1308,
977,
1195,
10792,
309,
261,
2922,
18,
588,
3906,
966,
863,
7675,
588,
1526,
1876,
2979,
429,
1435,
422,
374,
262,
288,
13491,
943,
1528,
18,
542,
1526,
12,
629,
11272,
13491,
1131,
1528,
18,
542,
1526,
12,
629,
11272,
13491,
563,
16156,
18,
542,
1526,
12,
629,
11272,
13491,
2710,
16156,
18,
542,
1526,
12,
629,
11272,
10792,
289,
10792,
469,
288,
13491,
943,
1528,
18,
542,
1526,
12,
638,
11272,
13491,
1131,
1528,
18,
542,
1526,
12,
638,
11272,
13491,
563,
16156,
18,
542,
1526,
12,
638,
11272,
13491,
2710,
16156,
18,
542,
1526,
12,
638,
11272,
10792,
289,
7734,
289,
5411,
289,
11272,
3639,
2240,
18,
2725,
12,
320,
16,
1501,
11272,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1089,
12,
4310,
320,
16,
1033,
1501,
262,
288,
377,
202,
430,
261,
563,
16156,
422,
446,
747,
563,
16156,
18,
291,
1669,
7423,
1435,
262,
327,
31,
3639,
202,
2088,
16156,
18,
588,
4236,
7675,
3810,
1905,
12,
394,
10254,
1435,
288,
7734,
1071,
918,
1086,
1435,
288,
1171,
202,
430,
261,
563,
16156,
18,
291,
1669,
7423,
1435,
262,
327,
31,
10792,
1748,
1089,
326,
1308,
977,
1195,
10792,
309,
261,
2922,
18,
588,
3906,
966,
863,
7675,
588,
1526,
1876,
2979,
429,
1435,
422,
374,
262,
288,
13491,
943,
1528,
18,
542,
1526,
12,
629,
11272,
13491,
1131,
1528,
18,
542,
1526,
12,
629,
11272,
13491,
563,
16156,
18,
542,
1526,
12,
629,
2
] |
public boolean onBroughtToTop( IReportEditorPage prePage ) { if ( this.isMissingParameter( ) ) { if ( this.parameterDialog != null ) { this.parameterDialog.open( );
|
public boolean onBroughtToTop(IReportEditorPage prePage) { if (this.isMissingParameter()) { if (this.parameterDialog != null) { this.parameterDialog.open();
|
public boolean onBroughtToTop( IReportEditorPage prePage ) { if ( this.isMissingParameter( ) ) { if ( this.parameterDialog != null ) { this.parameterDialog.open( ); } return true; } if ( getEditorInput( ) != prePage.getEditorInput( ) ) { setInput( prePage.getEditorInput( ) ); } if ( prePage.isDirty( ) ) { prePage.doSave( null ); } if ( getBrowser( ) != null ) { display( ); } return true; }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/464f907d246180ca04c84336398722e6d5245566/ReportPreviewFormPage.java/buggy/UI/org.eclipse.birt.report.designer.ui.preview/src/org/eclipse/birt/report/designer/ui/preview/editors/ReportPreviewFormPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
603,
38,
303,
9540,
774,
3401,
12,
467,
4820,
6946,
1964,
675,
1964,
262,
202,
95,
202,
202,
430,
261,
333,
18,
291,
4841,
1662,
12,
262,
262,
202,
202,
95,
1082,
202,
430,
261,
333,
18,
6775,
6353,
480,
446,
262,
1082,
202,
95,
9506,
202,
2211,
18,
6775,
6353,
18,
3190,
12,
11272,
1082,
202,
97,
1082,
202,
2463,
638,
31,
202,
202,
97,
202,
202,
430,
261,
336,
6946,
1210,
12,
262,
480,
675,
1964,
18,
588,
6946,
1210,
12,
262,
262,
202,
202,
95,
1082,
202,
542,
1210,
12,
675,
1964,
18,
588,
6946,
1210,
12,
262,
11272,
202,
202,
97,
202,
202,
430,
261,
675,
1964,
18,
291,
10785,
12,
262,
262,
202,
202,
95,
1082,
202,
1484,
1964,
18,
2896,
4755,
12,
446,
11272,
202,
202,
97,
202,
202,
430,
261,
2882,
3358,
12,
262,
480,
446,
262,
202,
202,
95,
1082,
202,
5417,
12,
11272,
202,
202,
97,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
603,
38,
303,
9540,
774,
3401,
12,
467,
4820,
6946,
1964,
675,
1964,
262,
202,
95,
202,
202,
430,
261,
333,
18,
291,
4841,
1662,
12,
262,
262,
202,
202,
95,
1082,
202,
430,
261,
333,
18,
6775,
6353,
480,
446,
262,
1082,
202,
95,
9506,
202,
2211,
18,
6775,
6353,
18,
3190,
12,
11272,
1082,
202,
97,
1082,
202,
2463,
638,
31,
202,
202,
97,
202,
202,
430,
261,
336,
6946,
1210,
12,
262,
480,
675,
1964,
18,
588,
6946,
1210,
12,
262,
262,
202,
202,
95,
1082,
202,
542,
1210,
12,
675,
1964,
18,
588,
6946,
1210,
12,
262,
11272,
202,
202,
97,
202,
202,
430,
261,
675,
1964,
18,
291,
10785,
12,
2
] |
element = factory.createSOAPFaultDetail((SOAPFault) parent, null);
|
element = factory.createSOAPFaultDetail((SOAPFault) parent, builder);
|
public OMElement handleEvent(XMLStreamReader parser, OMElement parent, int elementLevel) throws SOAPProcessingException { this.parser = parser; OMElement element = null; if (elementLevel == 4) { if (parser.getLocalName().equals(SOAP12Constants.SOAP_FAULT_CODE_LOCAL_NAME)) { if (codePresent) { throw new OMBuilderException("Multiple Code element encountered"); } else { element = factory.createSOAPFaultCode((SOAPFault) parent, null); codePresent = true; codeprocessing = true; } } else if (parser.getLocalName().equals(SOAP12Constants.SOAP_FAULT_REASON_LOCAL_NAME)) { if (!codeprocessing && !subCodeProcessing) { if (codePresent) { if (reasonPresent) { throw new OMBuilderException("Multiple Reason Element encountered"); } else { element = factory.createSOAPFaultReason((SOAPFault) parent, null); reasonPresent = true; reasonProcessing = true; } } else { throw new OMBuilderException("Wrong element order encountred at " + parser.getLocalName()); } } else { if (codeprocessing) { throw new OMBuilderException("Code doesn't have a value"); } else { throw new OMBuilderException("A subcode doesn't have a Value"); } } } else if (parser.getLocalName().equals(SOAP12Constants.SOAP_FAULT_NODE_LOCAL_NAME)) { if (!reasonProcessing) { if (reasonPresent && !rolePresent && !detailPresent) { if (nodePresent) { throw new OMBuilderException("Multiple Node element encountered"); } else { element = factory.createSOAPFaultNode((SOAPFault) parent, null); nodePresent = true; } } else { throw new OMBuilderException("wrong element order encountered at " + parser.getLocalName()); } } else { throw new OMBuilderException("Reason element Should have a text"); } } else if (parser.getLocalName().equals(SOAP12Constants.SOAP_FAULT_ROLE_LOCAL_NAME)) { if (!reasonProcessing) { if (reasonPresent && !detailPresent) { if (rolePresent) { throw new OMBuilderException("Multiple Role element encountered"); } else { element = factory.createSOAPFaultRole((SOAPFault) parent, null); rolePresent = true; } } else { throw new OMBuilderException("Wrong element order encountered at " + parser.getLocalName()); } } else { throw new OMBuilderException("Reason element should have a text"); } } else if (parser.getLocalName().equals(SOAP12Constants.SOAP_FAULT_DETAIL_LOCAL_NAME)) { if (!reasonProcessing) { if (reasonPresent) { if (detailPresent) { throw new OMBuilderException("Multiple detail element encountered"); } else { element = factory.createSOAPFaultDetail((SOAPFault) parent, null); detailPresent = true; } } else { throw new OMBuilderException("wrong element order encountered at " + parser.getLocalName()); } } else { throw new OMBuilderException("Reason element should have a text"); } } else { throw new OMBuilderException(parser.getLocalName() + " unsupported element in SOAPFault element"); } } else if (elementLevel == 5) { if (parent.getLocalName().equals(SOAP12Constants.SOAP_FAULT_CODE_LOCAL_NAME)) { if (parser.getLocalName().equals(SOAP12Constants.SOAP_FAULT_VALUE_LOCAL_NAME)) { if (!valuePresent) { element = factory.createSOAPFaultValue((SOAPFaultCode) parent, null); valuePresent = true; codeprocessing = false; } else { throw new OMBuilderException("Multiple value Encountered in code element"); } } else if (parser.getLocalName().equals(SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME)) { if (!subcodePresent) { if (valuePresent) { element = factory.createSOAPFaultSubCode((SOAPFaultCode) parent, null); subcodePresent = true; subCodeProcessing = true; } else { throw new OMBuilderException("Value should present before the subcode"); } } else { throw new OMBuilderException("multiple subcode Encountered in code element"); } } else { throw new OMBuilderException(parser.getLocalName() + " is not supported inside the code element"); } } else if (parent.getLocalName().equals(SOAP12Constants.SOAP_FAULT_REASON_LOCAL_NAME)) { if (parser.getLocalName().equals(SOAP12Constants.SOAP_FAULT_TEXT_LOCAL_NAME)) { element = factory.createSOAPFaultText((SOAPFaultReason) parent, null); element.setComplete(false); reasonProcessing = false; builder.setBooleanProcessingMandatoryFaultElements(false); } else { throw new OMBuilderException(parser.getLocalName() + " is not supported inside the reason"); } } else if (parent.getLocalName().equals(SOAP12Constants.SOAP_FAULT_DETAIL_LOCAL_NAME)) { element = OMAbstractFactory.getOMFactory().createOMElement(parser.getLocalName(), null, parent, null); builder.setProcessingDetailElements(true); detailElementNames = new Vector(); detailElementNames.add(parser.getLocalName()); } else { throw new OMBuilderException(parent.getLocalName() + " should not have child element"); } } else if (elementLevel > 5) { if (parent.getLocalName().equals(SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME)) { if (parser.getLocalName().equals(SOAP12Constants.SOAP_FAULT_VALUE_LOCAL_NAME)) { if (subcodeValuePresent) { throw new OMBuilderException("multiple subCode value encountered"); } else { element = factory.createSOAPFaultValue((SOAPFaultSubCode) parent, null); subcodeValuePresent = true; subSubcodePresent = false; subCodeProcessing = false; } } else if (parser.getLocalName().equals(SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME)) { if (subcodeValuePresent) { if (!subSubcodePresent) { element = factory.createSOAPFaultSubCode((SOAPFaultSubCode) parent, null); subcodeValuePresent = false; subSubcodePresent = true; subCodeProcessing = true; } else { throw new OMBuilderException("multiple subcode encountered"); } } else { throw new OMBuilderException("Value should present before the subcode"); } } else { throw new OMBuilderException(parser.getLocalName() + " is not supported inside the subCode element"); } } else if (builder.isProcessingDetailElements()) { int detailElementLevel = 0; boolean localNameExist = false; for (int i = 0; i < detailElementNames.size(); i++) { if (parent.getLocalName().equals((String) detailElementNames.get(i))) { localNameExist = true; detailElementLevel = i + 1; } } if (localNameExist) { detailElementNames.setSize(detailElementLevel); element = OMAbstractFactory.getOMFactory().createOMElement(parser.getLocalName(), null, parent, null); detailElementNames.add(parser.getLocalName()); } } else { throw new OMBuilderException(parent.getLocalName() + " should not have child at element level " + elementLevel); } } processNamespaceData(element, false); processAttributes(element); return element; }
|
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/f86cd1127e92f0ae6c87997683ec0471f1808219/SOAP12BuilderHelper.java/buggy/modules/xml/src/org/apache/axis/soap/impl/llom/builder/SOAP12BuilderHelper.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
531,
12310,
1640,
1133,
12,
4201,
31495,
2082,
16,
531,
12310,
982,
16,
509,
930,
2355,
13,
1216,
16434,
23684,
288,
3639,
333,
18,
4288,
273,
2082,
31,
3639,
531,
12310,
930,
273,
446,
31,
3639,
309,
261,
2956,
2355,
422,
1059,
13,
288,
5411,
309,
261,
4288,
18,
588,
29583,
7675,
14963,
12,
27952,
2138,
2918,
18,
27952,
67,
2636,
67,
5572,
67,
14922,
67,
1985,
3719,
288,
7734,
309,
261,
710,
6351,
13,
288,
10792,
604,
394,
28839,
1263,
503,
2932,
8438,
3356,
930,
9919,
8863,
7734,
289,
469,
288,
10792,
930,
273,
3272,
18,
2640,
27952,
7083,
1085,
12443,
27952,
7083,
13,
982,
16,
446,
1769,
10792,
981,
6351,
273,
638,
31,
10792,
981,
10632,
273,
638,
31,
7734,
289,
5411,
289,
469,
309,
261,
4288,
18,
588,
29583,
7675,
14963,
12,
27952,
2138,
2918,
18,
27952,
67,
2636,
67,
29416,
1413,
67,
14922,
67,
1985,
3719,
288,
7734,
309,
16051,
710,
10632,
597,
401,
1717,
1085,
7798,
13,
288,
10792,
309,
261,
710,
6351,
13,
288,
13491,
309,
261,
10579,
6351,
13,
288,
18701,
604,
394,
28839,
1263,
503,
2932,
8438,
13558,
3010,
9919,
8863,
13491,
289,
469,
288,
18701,
930,
273,
3272,
18,
2640,
27952,
7083,
8385,
12443,
27952,
7083,
13,
982,
16,
446,
1769,
18701,
3971,
6351,
273,
638,
31,
18701,
3971,
7798,
273,
638,
31,
13491,
289,
10792,
289,
469,
288,
13491,
604,
394,
28839,
1263,
503,
2932,
13634,
930,
1353,
570,
1883,
1118,
622,
315,
397,
2082,
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,
531,
12310,
1640,
1133,
12,
4201,
31495,
2082,
16,
531,
12310,
982,
16,
509,
930,
2355,
13,
1216,
16434,
23684,
288,
3639,
333,
18,
4288,
273,
2082,
31,
3639,
531,
12310,
930,
273,
446,
31,
3639,
309,
261,
2956,
2355,
422,
1059,
13,
288,
5411,
309,
261,
4288,
18,
588,
29583,
7675,
14963,
12,
27952,
2138,
2918,
18,
27952,
67,
2636,
67,
5572,
67,
14922,
67,
1985,
3719,
288,
7734,
309,
261,
710,
6351,
13,
288,
10792,
604,
394,
28839,
1263,
503,
2932,
8438,
3356,
930,
9919,
8863,
7734,
289,
469,
288,
10792,
930,
273,
3272,
18,
2640,
27952,
7083,
1085,
12443,
27952,
7083,
13,
982,
16,
446,
1769,
10792,
981,
6351,
273,
638,
31,
10792,
981,
2
] |
b.translate(thumbRect.width, 0); c.translate(thumbRect.width, turnPoint); d.translate(thumbRect.width / 2, thumbRect.height);
|
b.translate(thumbRect.width - 1, 0); c.translate(thumbRect.width - 1, turnPoint); d.translate(thumbRect.width / 2 - 1, thumbRect.height - 1);
|
public void paintThumb(Graphics g) { Color saved_color = g.getColor(); Polygon thumb = new Polygon(); Point a = new Point(thumbRect.x, thumbRect.y); Point b = new Point(a); Point c = new Point(a); Point d = new Point(a); Point e = new Point(a); Polygon bright; Polygon dark; Polygon all; // This will be in X-dimension if the slider is inverted and y if it isn't. int turnPoint; if (slider.getOrientation() == JSlider.HORIZONTAL) { turnPoint = thumbRect.height * 3 / 4; b.translate(thumbRect.width, 0); c.translate(thumbRect.width, turnPoint); d.translate(thumbRect.width / 2, thumbRect.height); e.translate(0, turnPoint); bright = new Polygon(new int[] { b.x, a.x, e.x, d.x }, new int[] { b.y, a.y, e.y, d.y }, 4); dark = new Polygon(new int[] { b.x, c.x, d.x }, new int[] { b.y, c.y, d.y }, 3); all = new Polygon(new int[] { a.x + 1, b.x, c.x, d.x, e.x + 1 }, new int[] { a.y + 1, b.y + 1, c.y, d.y + 1, e.y }, 5); } else { turnPoint = thumbRect.width * 3 / 4; b.translate(turnPoint, 0); c.translate(thumbRect.width, thumbRect.height / 2); d.translate(turnPoint, thumbRect.height); e.translate(0, thumbRect.height); bright = new Polygon(new int[] { c.x, b.x, a.x, e.x }, new int[] { c.y, b.y, a.y, e.y }, 4); dark = new Polygon(new int[] { c.x, d.x, e.x + 1 }, new int[] { c.y, d.y, e.y }, 3); all = new Polygon(new int[] { a.x + 1, b.x, c.x - 1, d.x, e.x + 1 }, new int[] { a.y + 1, b.y + 1, c.y, d.y, e.y }, 5); } g.setColor(Color.WHITE); g.drawPolyline(bright.xpoints, bright.ypoints, bright.npoints); g.setColor(Color.BLACK); g.drawPolyline(dark.xpoints, dark.ypoints, dark.npoints); g.setColor(Color.GRAY); g.fillPolygon(all); g.setColor(saved_color); }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/c4eda97e6e5feb8e7650d83d5066d85580f1249c/BasicSliderUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicSliderUI.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
12574,
18922,
12,
17558,
314,
13,
225,
288,
565,
5563,
5198,
67,
3266,
273,
314,
18,
588,
2957,
5621,
565,
12681,
11156,
273,
394,
12681,
5621,
565,
4686,
279,
273,
394,
4686,
12,
21639,
6120,
18,
92,
16,
11156,
6120,
18,
93,
1769,
565,
4686,
324,
273,
394,
4686,
12,
69,
1769,
565,
4686,
276,
273,
394,
4686,
12,
69,
1769,
565,
4686,
302,
273,
394,
4686,
12,
69,
1769,
565,
4686,
425,
273,
394,
4686,
12,
69,
1769,
565,
12681,
18622,
31,
565,
12681,
23433,
31,
565,
12681,
777,
31,
565,
368,
1220,
903,
506,
316,
1139,
17,
11808,
309,
326,
18442,
353,
18150,
471,
677,
309,
518,
5177,
1404,
18,
202,
21114,
1377,
509,
7005,
2148,
31,
565,
309,
261,
28372,
18,
588,
14097,
1435,
422,
804,
21824,
18,
44,
20344,
13,
1377,
288,
202,
20922,
2148,
273,
11156,
6120,
18,
4210,
380,
890,
342,
1059,
31,
202,
70,
18,
13929,
12,
21639,
6120,
18,
2819,
16,
374,
1769,
202,
71,
18,
13929,
12,
21639,
6120,
18,
2819,
16,
7005,
2148,
1769,
202,
72,
18,
13929,
12,
21639,
6120,
18,
2819,
342,
576,
16,
11156,
6120,
18,
4210,
1769,
202,
73,
18,
13929,
12,
20,
16,
7005,
2148,
1769,
202,
31070,
273,
394,
12681,
12,
2704,
509,
8526,
288,
324,
18,
92,
16,
279,
18,
92,
16,
425,
18,
92,
16,
302,
18,
92,
19879,
202,
5397,
394,
509,
8526,
288,
324,
18,
93,
16,
279,
18,
93,
16,
425,
18,
93,
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,
12574,
18922,
12,
17558,
314,
13,
225,
288,
565,
5563,
5198,
67,
3266,
273,
314,
18,
588,
2957,
5621,
565,
12681,
11156,
273,
394,
12681,
5621,
565,
4686,
279,
273,
394,
4686,
12,
21639,
6120,
18,
92,
16,
11156,
6120,
18,
93,
1769,
565,
4686,
324,
273,
394,
4686,
12,
69,
1769,
565,
4686,
276,
273,
394,
4686,
12,
69,
1769,
565,
4686,
302,
273,
394,
4686,
12,
69,
1769,
565,
4686,
425,
273,
394,
4686,
12,
69,
1769,
565,
12681,
18622,
31,
565,
12681,
23433,
31,
565,
12681,
777,
31,
565,
368,
1220,
903,
506,
316,
1139,
17,
11808,
309,
326,
18442,
353,
18150,
471,
677,
309,
518,
5177,
1404,
18,
202,
21114,
1377,
509,
2
] |
AST tmp2373_AST_in = (AST)_t;
|
AST tmp2374_AST_in = (AST)_t;
|
public final void sqlupdatestate(AST _t) throws RecognitionException { AST sqlupdatestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t2406 = _t; AST tmp2366_AST_in = (AST)_t; match(_t,UPDATE); _t = _t.getFirstChild(); AST tmp2367_AST_in = (AST)_t; match(_t,RECORD_NAME); _t = _t.getNextSibling(); AST tmp2368_AST_in = (AST)_t; match(_t,SET); _t = _t.getNextSibling(); sqlupdate_equal(_t); _t = _retTree; { _loop2408: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp2369_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); sqlupdate_equal(_t); _t = _retTree; } else { break _loop2408; } } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case WHERE: { AST __t2410 = _t; AST tmp2370_AST_in = (AST)_t; match(_t,WHERE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; if ((_tokenSet_17.member(_t.getType()))) { sqlexpression(_t); _t = _retTree; } else if ((_t.getType()==CURRENT)) { AST tmp2371_AST_in = (AST)_t; match(_t,CURRENT); _t = _t.getNextSibling(); AST tmp2372_AST_in = (AST)_t; match(_t,OF); _t = _t.getNextSibling(); AST tmp2373_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); } else { throw new NoViableAltException(_t); } } _t = __t2410; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t2406; _t = _t.getNextSibling(); _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/TreeParser03.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1847,
416,
3404,
395,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1847,
416,
3404,
395,
340,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
3247,
7677,
273,
389,
88,
31,
202,
202,
9053,
1853,
4366,
6028,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
8217,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
9053,
1853,
4366,
9599,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
22261,
67,
1985,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
202,
202,
9053,
1853,
4366,
9470,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
4043,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
202,
202,
4669,
2725,
67,
9729,
24899,
88,
1769,
202,
202,
67,
88,
273,
389,
1349,
2471,
31,
202,
202,
95,
202,
202,
67,
6498,
3247,
6840,
30,
202,
202,
2896,
288,
1082,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
1082,
202,
430,
14015,
67,
88,
18,
588,
559,
1435,
631,
4208,
5535,
3719,
288,
9506,
202,
9053,
1853,
4366,
8148,
67,
9053,
67,
267,
273,
261,
9053,
13,
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,
1847,
416,
3404,
395,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1847,
416,
3404,
395,
340,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
3247,
7677,
273,
389,
88,
31,
202,
202,
9053,
1853,
4366,
6028,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
8217,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
9053,
1853,
4366,
9599,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
22261,
2
] |
if (preciselyMatches(object)) { return true; }
|
if (preciselyMatches(object)) { return true; }
|
public boolean isEnabledFor(Object object) { if (object == null) { return false; } // Try out the object first. if (preciselyMatches(object)) { return true; } // Try out the underlying resource. Class resourceClass = LegacyResourceSupport.getResourceClass(); if (resourceClass == null) { return false; } if (resourceClass.isInstance(object)) { return false; } Object res = null; if (object instanceof IAdaptable) { res = ((IAdaptable) object).getAdapter(resourceClass); } if (res == null) return false; return preciselyMatches(res); }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5cfb5f88a049bbc9efcf0fade7d5687d0ec50ed3/ActionExpression.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ActionExpression.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1250,
12047,
1290,
12,
921,
733,
13,
288,
5411,
309,
261,
1612,
422,
446,
13,
288,
7734,
327,
629,
31,
5411,
289,
5411,
368,
6161,
596,
326,
733,
1122,
18,
5411,
309,
261,
4036,
291,
2357,
6869,
12,
1612,
3719,
288,
7734,
327,
638,
31,
5411,
289,
5411,
368,
6161,
596,
326,
6808,
1058,
18,
5411,
1659,
19284,
273,
22781,
1420,
6289,
18,
588,
1420,
797,
5621,
5411,
309,
261,
3146,
797,
422,
446,
13,
288,
7734,
327,
629,
31,
5411,
289,
5411,
309,
261,
3146,
797,
18,
291,
1442,
12,
1612,
3719,
288,
7734,
327,
629,
31,
5411,
289,
5411,
1033,
400,
273,
446,
31,
5411,
309,
261,
1612,
1276,
467,
13716,
429,
13,
288,
7734,
400,
273,
14015,
45,
13716,
429,
13,
733,
2934,
588,
4216,
12,
3146,
797,
1769,
5411,
289,
5411,
309,
261,
455,
422,
446,
13,
7734,
327,
629,
31,
5411,
327,
13382,
291,
2357,
6869,
12,
455,
1769,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1250,
12047,
1290,
12,
921,
733,
13,
288,
5411,
309,
261,
1612,
422,
446,
13,
288,
7734,
327,
629,
31,
5411,
289,
5411,
368,
6161,
596,
326,
733,
1122,
18,
5411,
309,
261,
4036,
291,
2357,
6869,
12,
1612,
3719,
288,
7734,
327,
638,
31,
5411,
289,
5411,
368,
6161,
596,
326,
6808,
1058,
18,
5411,
1659,
19284,
273,
22781,
1420,
6289,
18,
588,
1420,
797,
5621,
5411,
309,
261,
3146,
797,
422,
446,
13,
288,
7734,
327,
629,
31,
5411,
289,
5411,
309,
261,
3146,
797,
18,
291,
1442,
12,
1612,
3719,
288,
7734,
327,
629,
31,
5411,
289,
5411,
1033,
400,
273,
446,
31,
5411,
309,
261,
1612,
1276,
467,
13716,
429,
13,
288,
7734,
2
] |
public void setLoggingLevel(int level);
|
void setLoggingLevel(int level);
|
public void setLoggingLevel(int level);
|
7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/e9e1f2a50341cda60b0ff5863851aba2664974bc/LoggerController.java/clean/core/src/org/cougaar/util/log/LoggerController.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
7735,
2355,
12,
474,
1801,
1769,
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
] |
[
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,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
7735,
2355,
12,
474,
1801,
1769,
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
] |
Preference p_start, p_end,p_qty;
|
Preference p_start, p_end, p_qty;
|
private Task createRefillTask(Inventory inv, double refill_qty, long time) { Asset item = getInventoryAsset(inv); // create request task Vector prefs = new Vector(); Preference p_start, p_end,p_qty; long end_time = defaultRefillEndTime(time,inv); // long start_time = defaultRefillStartTime(time,inv); // p_start = createDateAfterPreference(AspectType.START_TIME, start_time); p_end = createDateBeforePreference(AspectType.END_TIME,end_time); p_qty = createRefillQuantityPreference(refill_qty); // prefs.addElement(p_start); prefs.addElement(p_end); prefs.addElement(p_qty); Vector pp_vector = new Vector(); pp_vector.addElement(newPrepositionalPhrase(Constants.Preposition.FOR, myOrgName_)); pp_vector.add(newPrepositionalPhrase(Constants.Preposition.OFTYPE, supplyType_)); Object io; Enumeration geolocs = AssetUtils.getGeolocLocationAtTime(myOrganization_, end_time); if (geolocs.hasMoreElements()) { io = (GeolocLocation)geolocs.nextElement(); } else { io = thisGeoloc_; } pp_vector.addElement(newPrepositionalPhrase(Constants.Preposition.TO, io)); Asset resource = inv.getInventoryPG().getResource(); TypeIdentificationPG tip = ((Asset)resource).getTypeIdentificationPG(); MaintainedItem itemID = MaintainedItem.findOrMakeMaintainedItem("Inventory", tip.getTypeIdentification(), null, tip.getNomenclature()); pp_vector.addElement(newPrepositionalPhrase(Constants.Preposition.MAINTAINING, itemID)); pp_vector.addElement(newPrepositionalPhrase(Constants.Preposition.REFILL)); NewTask task = (NewTask)buildTask(null, Constants.Verb.SUPPLY, item, pp_vector, prefs.elements()); return task; }
|
7171 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7171/a7ff68e46c5f394c11380f3797c541d8a0ac59d4/InventoryManager.java/clean/glm/src/org/cougaar/glm/plugins/inventory/InventoryManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
3837,
752,
1957,
737,
2174,
12,
15059,
2198,
16,
1645,
1278,
737,
67,
85,
4098,
16,
1525,
813,
13,
288,
565,
10494,
761,
273,
7854,
7792,
6672,
12,
5768,
1769,
565,
368,
752,
590,
1562,
565,
5589,
15503,
273,
394,
5589,
5621,
565,
29125,
293,
67,
1937,
16,
293,
67,
409,
16,
293,
67,
85,
4098,
31,
565,
1525,
679,
67,
957,
273,
805,
1957,
737,
25255,
12,
957,
16,
5768,
1769,
565,
368,
282,
202,
5748,
787,
67,
957,
273,
805,
1957,
737,
13649,
12,
957,
16,
5768,
1769,
565,
368,
282,
202,
84,
67,
1937,
273,
752,
1626,
4436,
9624,
12,
17468,
559,
18,
7570,
67,
4684,
16,
787,
67,
957,
1769,
565,
293,
67,
409,
273,
752,
1626,
4649,
9624,
12,
17468,
559,
18,
4415,
67,
4684,
16,
409,
67,
957,
1769,
565,
293,
67,
85,
4098,
273,
752,
1957,
737,
12035,
9624,
12,
1734,
737,
67,
85,
4098,
1769,
565,
368,
282,
202,
1484,
2556,
18,
1289,
1046,
12,
84,
67,
1937,
1769,
565,
15503,
18,
1289,
1046,
12,
84,
67,
409,
1769,
565,
15503,
18,
1289,
1046,
12,
84,
67,
85,
4098,
1769,
565,
5589,
8228,
67,
7737,
273,
394,
5589,
5621,
565,
8228,
67,
7737,
18,
1289,
1046,
12,
2704,
1386,
3276,
287,
12812,
12,
2918,
18,
1386,
3276,
18,
7473,
16,
3399,
6001,
461,
67,
10019,
565,
8228,
67,
7737,
18,
1289,
12,
2704,
1386,
3276,
287,
12812,
12,
2918,
18,
1386,
3276,
18,
3932,
2399,
16,
14467,
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,
3837,
752,
1957,
737,
2174,
12,
15059,
2198,
16,
1645,
1278,
737,
67,
85,
4098,
16,
1525,
813,
13,
288,
565,
10494,
761,
273,
7854,
7792,
6672,
12,
5768,
1769,
565,
368,
752,
590,
1562,
565,
5589,
15503,
273,
394,
5589,
5621,
565,
29125,
293,
67,
1937,
16,
293,
67,
409,
16,
293,
67,
85,
4098,
31,
565,
1525,
679,
67,
957,
273,
805,
1957,
737,
25255,
12,
957,
16,
5768,
1769,
565,
368,
282,
202,
5748,
787,
67,
957,
273,
805,
1957,
737,
13649,
12,
957,
16,
5768,
1769,
565,
368,
282,
202,
84,
67,
1937,
273,
752,
1626,
4436,
9624,
12,
17468,
559,
18,
7570,
67,
4684,
16,
787,
67,
957,
1769,
565,
293,
67,
2
] |
result.add(builder.getDocument().getNode(nodeNr));
|
if (lastNodeNr != nodeNr) result.add(builder.getDocument().getNode(nodeNr)); lastNodeNr = nodeNr;
|
private final Sequence processText(MemTreeBuilder builder, Sequence nodes, int width, FunctionCall callback, FunctionCall resultCallback, Sequence extraArgs) throws XPathException { StringBuffer str = new StringBuffer(); NodeValue node; List offsets = null; NodeProxy firstProxy = null; // First step: scan the passed node sequence and collect the string values of all nodes. // Translate the relative offsets into absolute offsets. for (SequenceIterator i = nodes.iterate(); i.hasNext(); ) { node = (NodeValue) i.nextItem(); if (node.getImplementationType() == NodeValue.IN_MEMORY_NODE) throw new XPathException(getASTNode(), "Function kwic-display" + " can not be invoked on constructed nodes"); NodeProxy proxy = (NodeProxy) node; // remember the first node, we need it later if (firstProxy == null) firstProxy = proxy; TextImpl text = (TextImpl) proxy.getNode(); Match next = proxy.getMatches(); while (next != null) { if (next.getNodeId() == text.getGID()) { if (offsets == null) offsets = new ArrayList(); int freq = next.getFrequency(); for (int j = 0; j < freq; j++) { // translate the relative offset into an absolute offset and add it to the list Match.Offset offset = next.getOffset(j); offset.setOffset(str.length() + offset.getOffset()); offsets.add(offset); } } next = next.getNextMatch(); } // append the string value of the node to the buffer str.append(text.getData()); } // Second step: output the text ValueSequence result = new ValueSequence(); int nodeNr; int currentWidth = 0; if (offsets == null) { // no matches: just output the entire text if (width > str.length()) width = str.length(); nodeNr = builder.characters(str.substring(0, width)); result.add(builder.getDocument().getNode(nodeNr)); currentWidth += width; } else { // sort the offsets FastQSort.sort(offsets, 0, offsets.size() - 1); int nextOffset = 0; int pos = 0; // prepare array for callback function arguments Sequence params[] = new Sequence[3]; params[1] = firstProxy; params[2] = extraArgs; // handle the first match: if the text to the left of the match // is larger than half of the width, truncate it. if (str.length() > width) { Match.Offset firstMatch = (Match.Offset) offsets.get(nextOffset++); if (firstMatch.getOffset() > 0) { int leftWidth = (width - firstMatch.getLength()) / 2; if (firstMatch.getOffset() > leftWidth) { pos = truncateStart(str, firstMatch.getOffset() - leftWidth, firstMatch.getOffset()); leftWidth = firstMatch.getOffset() - pos; } else leftWidth = firstMatch.getOffset(); nodeNr = builder.characters(str.substring(pos, pos + leftWidth)); result.add(builder.getDocument().getNode(nodeNr)); currentWidth += leftWidth; pos += leftWidth; } params[0] = new StringValue(str.substring(firstMatch.getOffset(), firstMatch.getOffset() + firstMatch.getLength())); result.addAll(callback.evalFunction(null, null, params)); currentWidth += firstMatch.getLength(); pos += firstMatch.getLength(); } else width = str.length(); // output the rest of the text and matches Match.Offset offset; for (int i = nextOffset; i < offsets.size() && currentWidth < width; i++) { offset = (Match.Offset) offsets.get(i); if (offset.getOffset() > pos) { int len = offset.getOffset() - pos; if (currentWidth + len > width) len = width - currentWidth; nodeNr = builder.characters(str.substring(pos, pos + len)); result.add(builder.getDocument().getNode(nodeNr)); currentWidth += len; pos += len; } if (currentWidth + offset.getLength() < width) { params[0] = new StringValue(str.substring(offset.getOffset(), offset.getOffset() + offset.getLength())); result.addAll(callback.evalFunction(null, null, params)); currentWidth += offset.getLength(); pos += offset.getLength(); } else break; } // print the final text chunk if more space is available if (currentWidth < width && pos < str.length()) { boolean truncated = false; int len = str.length() - pos; if (len > width - currentWidth) { truncated = true; len = width - currentWidth; } nodeNr = builder.characters(str.substring(pos, pos + len)); result.add(builder.getDocument().getNode(nodeNr)); currentWidth += len; if (truncated) { nodeNr = builder.characters(" ..."); result.add(builder.getDocument().getNode(nodeNr)); } } } if (resultCallback != null) { Sequence params[] = new Sequence[3]; params[0] = result; params[1] = new IntegerValue(currentWidth); params[2] = extraArgs; return resultCallback.evalFunction(null, null, params); } else return result; }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/2a2926cc9f55c7317b6bda02a5b89b26e95f158e/KWICDisplay.java/buggy/src/org/exist/xquery/functions/text/KWICDisplay.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
727,
8370,
1207,
1528,
12,
3545,
25060,
2089,
16,
8370,
2199,
16,
509,
1835,
16,
2398,
4284,
1477,
1348,
16,
4284,
1477,
563,
2428,
16,
8370,
2870,
2615,
13,
1216,
10172,
503,
288,
3639,
6674,
609,
273,
394,
6674,
5621,
3639,
2029,
620,
756,
31,
3639,
987,
8738,
273,
446,
31,
3639,
2029,
3886,
1122,
3886,
273,
446,
31,
7734,
368,
5783,
2235,
30,
4135,
326,
2275,
756,
3102,
471,
3274,
326,
533,
924,
434,
777,
2199,
18,
3639,
368,
16820,
326,
3632,
8738,
1368,
4967,
8738,
18,
3639,
364,
261,
4021,
3198,
277,
273,
2199,
18,
18793,
5621,
277,
18,
5332,
2134,
5621,
262,
288,
5411,
756,
273,
261,
907,
620,
13,
277,
18,
4285,
1180,
5621,
5411,
309,
261,
2159,
18,
588,
13621,
559,
1435,
422,
2029,
620,
18,
706,
67,
24329,
67,
8744,
13,
7734,
604,
394,
10172,
503,
12,
588,
9053,
907,
9334,
315,
2083,
5323,
335,
17,
5417,
6,
397,
7682,
315,
848,
486,
506,
8187,
603,
15688,
2199,
8863,
5411,
2029,
3886,
2889,
273,
261,
907,
3886,
13,
756,
31,
5411,
368,
11586,
326,
1122,
756,
16,
732,
1608,
518,
5137,
5411,
309,
261,
3645,
3886,
422,
446,
13,
7734,
1122,
3886,
273,
2889,
31,
5411,
3867,
2828,
977,
273,
261,
1528,
2828,
13,
2889,
18,
588,
907,
5621,
13491,
4639,
1024,
273,
2889,
18,
588,
6869,
5621,
5411,
1323,
261,
4285,
480,
446,
13,
288,
7734,
309,
261,
4285,
18,
588,
15883,
1435,
422,
977,
18,
588,
28258,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
727,
8370,
1207,
1528,
12,
3545,
25060,
2089,
16,
8370,
2199,
16,
509,
1835,
16,
2398,
4284,
1477,
1348,
16,
4284,
1477,
563,
2428,
16,
8370,
2870,
2615,
13,
1216,
10172,
503,
288,
3639,
6674,
609,
273,
394,
6674,
5621,
3639,
2029,
620,
756,
31,
3639,
987,
8738,
273,
446,
31,
3639,
2029,
3886,
1122,
3886,
273,
446,
31,
7734,
368,
5783,
2235,
30,
4135,
326,
2275,
756,
3102,
471,
3274,
326,
533,
924,
434,
777,
2199,
18,
3639,
368,
16820,
326,
3632,
8738,
1368,
4967,
8738,
18,
3639,
364,
261,
4021,
3198,
277,
273,
2199,
18,
18793,
5621,
277,
18,
5332,
2134,
5621,
262,
288,
5411,
756,
273,
261,
907,
620,
13,
277,
18,
4285,
1180,
2
] |
updatePanels( selection);
|
ILogEntry logEntry = getLogEntry(( IStructuredSelection) selection); if(logEntry!=currentLogEntry) { this.currentLogEntry = logEntry; updatePanels(selection); }
|
protected TableViewer createTableHistory(Composite parent) { historyTableProvider = new HistoryTableProvider(); tableHistoryViewer = historyTableProvider.createTable(parent); // set the content provider for the table tableHistoryViewer.setContentProvider(new IStructuredContentProvider() { public Object[] getElements(Object inputElement) { // Short-circuit to optimize if (entries != null) return entries; if (!(inputElement instanceof ISVNRemoteResource)) return null; final ISVNRemoteResource remoteResource = (ISVNRemoteResource)inputElement; if(fetchLogEntriesJob == null) { fetchLogEntriesJob = new FetchLogEntriesJob(); } if(fetchLogEntriesJob.getState() != Job.NONE) { fetchLogEntriesJob.cancel(); try { fetchLogEntriesJob.join(); } catch (InterruptedException e) { SVNUIPlugin.log(new SVNException(Policy.bind("HistoryView.errorFetchingEntries", remoteResource.getName()), e)); //$NON-NLS-1$ } } fetchLogEntriesJob.setRemoteFile(remoteResource); Utils.schedule(fetchLogEntriesJob, getViewSite()); return new Object[0]; } public void dispose() { } public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { entries = null; lastEntry = null; revisionStart = SVNRevision.HEAD; } }); // set the selectionchanged listener for the table // updates the comments when selection changes tableHistoryViewer.addSelectionChangedListener(new ISelectionChangedListener() { public void selectionChanged(SelectionChangedEvent event) { ISelection selection = event.getSelection(); updatePanels( selection); } }); return tableHistoryViewer; }
|
6016 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6016/61879c7229b821234deb2a026976cae5e23c2da5/HistoryView.java/clean/subclipse/ui/src/org/tigris/subversion/subclipse/ui/history/HistoryView.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
3555,
18415,
19565,
5623,
12,
9400,
982,
13,
288,
9506,
202,
8189,
1388,
2249,
273,
394,
16058,
1388,
2249,
5621,
202,
202,
2121,
5623,
18415,
273,
4927,
1388,
2249,
18,
2640,
1388,
12,
2938,
1769,
9506,
202,
759,
444,
326,
913,
2893,
364,
326,
1014,
202,
202,
2121,
5623,
18415,
18,
542,
1350,
2249,
12,
2704,
467,
30733,
1350,
2249,
1435,
288,
1082,
202,
482,
1033,
8526,
8886,
12,
921,
810,
1046,
13,
288,
9506,
202,
759,
7925,
17,
24987,
358,
10979,
9506,
202,
430,
261,
8219,
480,
446,
13,
327,
3222,
31,
6862,
9506,
202,
430,
16051,
12,
2630,
1046,
1276,
4437,
58,
50,
5169,
1420,
3719,
327,
446,
31,
9506,
202,
6385,
4437,
58,
50,
5169,
1420,
2632,
1420,
273,
261,
5127,
58,
50,
5169,
1420,
13,
2630,
1046,
31,
9506,
202,
430,
12,
5754,
1343,
5400,
2278,
422,
446,
13,
288,
6862,
202,
5754,
1343,
5400,
2278,
273,
394,
8065,
1343,
5400,
2278,
5621,
9506,
202,
97,
9506,
202,
430,
12,
5754,
1343,
5400,
2278,
18,
588,
1119,
1435,
480,
3956,
18,
9826,
13,
288,
6862,
202,
5754,
1343,
5400,
2278,
18,
10996,
5621,
6862,
202,
698,
288,
25083,
202,
5754,
1343,
5400,
2278,
18,
5701,
5621,
6862,
202,
97,
1044,
261,
24485,
503,
425,
13,
288,
25083,
202,
23927,
50,
5370,
3773,
18,
1330,
12,
2704,
29537,
50,
503,
12,
2582,
18,
4376,
2932,
5623,
1767,
18,
1636,
30806,
5400,
3113,
2632,
1420,
18,
17994,
1435,
3631,
425,
10019,
4329,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
3555,
18415,
19565,
5623,
12,
9400,
982,
13,
288,
9506,
202,
8189,
1388,
2249,
273,
394,
16058,
1388,
2249,
5621,
202,
202,
2121,
5623,
18415,
273,
4927,
1388,
2249,
18,
2640,
1388,
12,
2938,
1769,
9506,
202,
759,
444,
326,
913,
2893,
364,
326,
1014,
202,
202,
2121,
5623,
18415,
18,
542,
1350,
2249,
12,
2704,
467,
30733,
1350,
2249,
1435,
288,
1082,
202,
482,
1033,
8526,
8886,
12,
921,
810,
1046,
13,
288,
9506,
202,
759,
7925,
17,
24987,
358,
10979,
9506,
202,
430,
261,
8219,
480,
446,
13,
327,
3222,
31,
6862,
9506,
202,
430,
16051,
12,
2630,
1046,
1276,
4437,
58,
50,
5169,
1420,
3719,
327,
446,
31,
9506,
202,
6385,
4437,
58,
2
] |
Listener lsRepDisconnect = new Listener() { public void handleEvent(Event e) { closeRepository(); } };
|
Listener lsRepConnect = new Listener() { public void handleEvent(Event e) { openRepository(); } };
|
Listener lsRepDisconnect = new Listener() { public void handleEvent(Event e) { closeRepository(); } };
|
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/4d59c127063ed31604a2153182c105bfb904cd30/Spoon.java/buggy/src/be/ibridge/kettle/spoon/Spoon.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
10652,
7180,
18933,
18895,
225,
273,
394,
10652,
1435,
288,
1071,
918,
1640,
1133,
12,
1133,
425,
13,
288,
1746,
3305,
5621,
282,
289,
289,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
10652,
7180,
18933,
18895,
225,
273,
394,
10652,
1435,
288,
1071,
918,
1640,
1133,
12,
1133,
425,
13,
288,
1746,
3305,
5621,
282,
289,
289,
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
] |
int [] result = new int[101];
|
int [] result = new int[100];
|
private static int [] zzUnpackAction() { int [] result = new int[101]; int offset = 0; offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result); return result; }
|
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/2c49ea79bb140b31bab3192831e0bd8a292164bc/_HtmlLexer.java/buggy/source/com/intellij/lexer/_HtmlLexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
509,
5378,
11273,
23649,
1803,
1435,
288,
565,
509,
5378,
563,
273,
394,
509,
63,
6625,
15533,
565,
509,
1384,
273,
374,
31,
565,
1384,
273,
11273,
23649,
1803,
12,
27096,
67,
12249,
67,
12231,
2056,
67,
20,
16,
1384,
16,
563,
1769,
565,
327,
563,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
509,
5378,
11273,
23649,
1803,
1435,
288,
565,
509,
5378,
563,
273,
394,
509,
63,
6625,
15533,
565,
509,
1384,
273,
374,
31,
565,
1384,
273,
11273,
23649,
1803,
12,
27096,
67,
12249,
67,
12231,
2056,
67,
20,
16,
1384,
16,
563,
1769,
565,
327,
563,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
null, null, Binding.SYSTEM);
|
null, null, Binding.SYSTEM, null);
|
public void testSchemeOverride() throws NotDefinedException { final Context context = contextManager.getContext("na"); context.define("name", "description", null); final Scheme parentScheme = bindingManager.getScheme("parent"); parentScheme.define("parent", "parent scheme", null); final Scheme childScheme = bindingManager.getScheme("child"); childScheme.define("child", "child scheme", "parent"); bindingManager.setActiveScheme(childScheme); final Set activeContextIds = new HashSet(); activeContextIds.add("na"); contextManager.setActiveContextIds(activeContextIds); final Binding binding1 = new TestBinding("child", "child", "na", null, null, Binding.SYSTEM); bindingManager.addBinding(binding1); final Binding binding2 = new TestBinding("parent", "parent", "na", null, null, Binding.SYSTEM); bindingManager.addBinding(binding2); assertEquals("The binding from the child scheme should be active", binding1.getCommandId(), bindingManager .getPerfectMatch(TestBinding.TRIGGER_SEQUENCE)); }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e61bf96d546738a5dfebc5feb8c2bcbe110e4371/BindingInteractionsTest.java/clean/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/keys/BindingInteractionsTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
9321,
6618,
1435,
1216,
2288,
8116,
503,
288,
202,
202,
6385,
1772,
819,
273,
819,
1318,
18,
29120,
2932,
6582,
8863,
202,
202,
2472,
18,
11255,
2932,
529,
3113,
315,
3384,
3113,
446,
1769,
202,
202,
6385,
10714,
982,
9321,
273,
5085,
1318,
18,
588,
9321,
2932,
2938,
8863,
202,
202,
2938,
9321,
18,
11255,
2932,
2938,
3113,
315,
2938,
4355,
3113,
446,
1769,
202,
202,
6385,
10714,
1151,
9321,
273,
5085,
1318,
18,
588,
9321,
2932,
3624,
8863,
202,
202,
3624,
9321,
18,
11255,
2932,
3624,
3113,
315,
3624,
4355,
3113,
315,
2938,
8863,
202,
202,
7374,
1318,
18,
542,
3896,
9321,
12,
3624,
9321,
1769,
202,
202,
6385,
1000,
2695,
1042,
2673,
273,
394,
6847,
5621,
202,
202,
3535,
1042,
2673,
18,
1289,
2932,
6582,
8863,
202,
202,
2472,
1318,
18,
542,
3896,
1042,
2673,
12,
3535,
1042,
2673,
1769,
202,
202,
6385,
15689,
5085,
21,
273,
394,
7766,
5250,
2932,
3624,
3113,
315,
3624,
3113,
315,
6582,
3113,
446,
16,
9506,
202,
2011,
16,
15689,
18,
14318,
1769,
202,
202,
7374,
1318,
18,
1289,
5250,
12,
7374,
21,
1769,
202,
202,
6385,
15689,
5085,
22,
273,
394,
7766,
5250,
2932,
2938,
3113,
315,
2938,
3113,
315,
6582,
3113,
9506,
202,
2011,
16,
446,
16,
15689,
18,
14318,
1769,
202,
202,
7374,
1318,
18,
1289,
5250,
12,
7374,
22,
1769,
202,
202,
11231,
8867,
2932,
1986,
5085,
628,
326,
1151,
4355,
1410,
506,
2695,
3113,
9506,
202,
7374,
21,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
9321,
6618,
1435,
1216,
2288,
8116,
503,
288,
202,
202,
6385,
1772,
819,
273,
819,
1318,
18,
29120,
2932,
6582,
8863,
202,
202,
2472,
18,
11255,
2932,
529,
3113,
315,
3384,
3113,
446,
1769,
202,
202,
6385,
10714,
982,
9321,
273,
5085,
1318,
18,
588,
9321,
2932,
2938,
8863,
202,
202,
2938,
9321,
18,
11255,
2932,
2938,
3113,
315,
2938,
4355,
3113,
446,
1769,
202,
202,
6385,
10714,
1151,
9321,
273,
5085,
1318,
18,
588,
9321,
2932,
3624,
8863,
202,
202,
3624,
9321,
18,
11255,
2932,
3624,
3113,
315,
3624,
4355,
3113,
315,
2938,
8863,
202,
202,
7374,
1318,
18,
542,
3896,
9321,
12,
3624,
9321,
1769,
202,
202,
6385,
1000,
2695,
1042,
2673,
2
] |
final IStatus finalReason = reason; runAsync(new Runnable() { /* * (non-Javadoc) * * @see java.lang.Runnable#run() */ public void run() { ((IProgressMonitorWithBlocking) getProgressMonitor()) .setBlocked(finalReason); } }); }
|
final IStatus finalReason = reason; runAsync(new Runnable() { /* * (non-Javadoc) * * @see java.lang.Runnable#run() */ public void run() { ((IProgressMonitorWithBlocking) getProgressMonitor()) .setBlocked(finalReason); } }); }
|
public void setBlocked(IStatus reason) { final IStatus finalReason = reason; runAsync(new Runnable() { /* * (non-Javadoc) * * @see java.lang.Runnable#run() */ public void run() { ((IProgressMonitorWithBlocking) getProgressMonitor()) .setBlocked(finalReason); } }); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/c30a8fc2e56623e2fffcac9a46c1a98e3ac6cd66/ProgressMonitorFocusJobDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressMonitorFocusJobDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
444,
23722,
12,
45,
1482,
3971,
13,
288,
7734,
727,
467,
1482,
727,
8385,
273,
3971,
31,
7734,
1086,
2771,
12,
2704,
10254,
1435,
288,
10792,
1748,
5397,
380,
261,
5836,
17,
24060,
13,
5397,
380,
8227,
380,
632,
5946,
2252,
18,
4936,
18,
20013,
7,
2681,
1435,
5397,
1195,
10792,
1071,
918,
1086,
1435,
288,
13491,
14015,
45,
5491,
7187,
1190,
8728,
13,
3570,
2329,
7187,
10756,
27573,
263,
542,
23722,
12,
6385,
8385,
1769,
10792,
289,
7734,
15549,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
444,
23722,
12,
45,
1482,
3971,
13,
288,
7734,
727,
467,
1482,
727,
8385,
273,
3971,
31,
7734,
1086,
2771,
12,
2704,
10254,
1435,
288,
10792,
1748,
5397,
380,
261,
5836,
17,
24060,
13,
5397,
380,
8227,
380,
632,
5946,
2252,
18,
4936,
18,
20013,
7,
2681,
1435,
5397,
1195,
10792,
1071,
918,
1086,
1435,
288,
13491,
14015,
45,
5491,
7187,
1190,
8728,
13,
3570,
2329,
7187,
10756,
27573,
263,
542,
23722,
12,
6385,
8385,
1769,
10792,
289,
7734,
15549,
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
] |
String GP_URL = "http:
|
String GP_URL = host_address+":" + System.getProperty("GENEPATTERN_PORT") + "/gp";
|
protected static File writeProvenanceFile(String outDirName, JobInfo jobInfo, ParameterInfo[] formalParameters, ParameterInfo[] actualParams){ try { File outDir = new File(outDirName); File f = new File(outDir, TASKLOG); BufferedWriter bw = new BufferedWriter(new FileWriter(f)); String line = null; int lineNum = 0; bw.write("# "); bw.write("\n# Created: "+ new Date(f.lastModified())+" by " + jobInfo.getUserId()); bw.write("\n# Job: " + jobInfo.getJobNumber()); bw.write(" server: http://"); InetAddress addr = InetAddress.getLocalHost(); String host_address = addr.getCanonicalHostName(); String GP_URL = "http://" + host_address+":" + System.getProperty("GENEPATTERN_PORT") + "/gp"; bw.write( GP_URL); bw.write("\n# Task: "+ jobInfo.getTaskName() + " " +jobInfo.getTaskLSID()); bw.write("\n# Parameters: "); ParameterInfo pinfos[] = jobInfo.getParameterInfoArray(); for (int pi = 0; pi < pinfos.length; pi++){ ParameterInfo pinfo = pinfos[pi]; if (!pinfo.isOutputFile()){ String value = null; if (pinfo.isInputFile()){ File ifn = new File(pinfo.getValue()); ParameterInfo actp = getParam(pinfo.getName(), actualParams); String origFullPath = (String)actp.getAttributes().get(ORIGINAL_PATH); value = ifn.getName(); int idx = value.indexOf("axis_"); if (idx >= 0){ value = value.substring(idx+5); }//System.out.println("OFP=" + origFullPath); // follow the input filename with the URL to fetch it if available if ((origFullPath!= null) && (origFullPath.length() > 0)){ // expect something that looks like this; // C:\Program Files\GenePatternServer\Tomcat\..\temp\attachments\Axis39088axis_all_aml_500.gct // we want ecverything from ..\temp on String substr = ".." + File.separator + "temp" + File.separator + "attachments"; int fidx = origFullPath.indexOf(substr); String inputfilename = origFullPath.substring(fidx + 20); //String urlpath = "../" + ((origFullPath.substring(fidx)).replace('\\' ,'/')) ; // value = value + " " + GP_URL + "/getInputFile.jsp?file=" + urlpath; value = value + " " + GP_URL + "/getInputFile.jsp?file=" + inputfilename; } } else { ParameterInfo formalPinfo = null; for (int fpidx = 0; fpidx < formalParameters.length; fpidx++){ if (formalParameters[fpidx].getName().equals(pinfo.getName())){ formalPinfo = formalParameters[fpidx]; break; } } ParameterInfo actp = getParam(pinfo.getName(), actualParams); String origFullPath = (String)actp.getAttributes().get(ORIGINAL_PATH);//System.out.println("OFP 22=" + actp.getValue() + " " + origFullPath ); if (origFullPath != null){ value = origFullPath; } else { value = pinfo.getUIValue(formalPinfo); } } bw.write("\n# " + pinfo.getName() + " = " + value); } } bw.write("\n# " ); bw.write("\n"); bw.flush(); bw.close(); return f; } catch (Exception e){ e.printStackTrace(); return null; } }
|
57344 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57344/f87acf3db668c47a24820bb49ad16d0c875cd9d8/GenePatternAnalysisTask.java/clean/src/org/genepattern/server/genepattern/GenePatternAnalysisTask.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
760,
1387,
1045,
626,
15856,
812,
12,
780,
596,
28780,
16,
3956,
966,
1719,
966,
16,
5498,
966,
8526,
25739,
2402,
16,
5498,
966,
8526,
3214,
1370,
15329,
202,
202,
698,
288,
202,
202,
812,
596,
1621,
273,
394,
1387,
12,
659,
28780,
1769,
202,
202,
812,
284,
273,
394,
1387,
12,
659,
1621,
16,
19609,
4842,
1769,
202,
202,
17947,
2289,
12986,
273,
394,
22490,
12,
2704,
24639,
12,
74,
10019,
202,
202,
780,
980,
273,
446,
31,
202,
202,
474,
980,
2578,
273,
374,
31,
202,
202,
70,
91,
18,
2626,
2932,
7,
315,
1769,
202,
202,
70,
91,
18,
2626,
31458,
82,
7,
12953,
30,
13773,
394,
2167,
12,
74,
18,
2722,
4575,
10756,
9078,
635,
315,
397,
1719,
966,
18,
588,
10502,
10663,
202,
202,
70,
91,
18,
2626,
31458,
82,
7,
3956,
30,
315,
397,
1719,
966,
18,
588,
2278,
1854,
10663,
202,
202,
70,
91,
18,
2626,
2932,
565,
1438,
30,
225,
1062,
2207,
8863,
9506,
202,
382,
278,
1887,
3091,
273,
14218,
18,
588,
2042,
2594,
5621,
202,
202,
780,
1479,
67,
2867,
273,
3091,
18,
588,
15512,
20946,
5621,
202,
202,
780,
4948,
67,
1785,
273,
315,
2505,
14334,
397,
1479,
67,
2867,
9078,
2773,
397,
2332,
18,
588,
1396,
2932,
16652,
41,
10831,
67,
6354,
7923,
397,
2206,
6403,
14432,
202,
202,
70,
91,
18,
2626,
12,
4948,
67,
1785,
1769,
202,
202,
70,
91,
18,
2626,
31458,
82,
7,
3837,
30,
13773,
1719,
966,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
760,
1387,
1045,
626,
15856,
812,
12,
780,
596,
28780,
16,
3956,
966,
1719,
966,
16,
5498,
966,
8526,
25739,
2402,
16,
5498,
966,
8526,
3214,
1370,
15329,
202,
202,
698,
288,
202,
202,
812,
596,
1621,
273,
394,
1387,
12,
659,
28780,
1769,
202,
202,
812,
284,
273,
394,
1387,
12,
659,
1621,
16,
19609,
4842,
1769,
202,
202,
17947,
2289,
12986,
273,
394,
22490,
12,
2704,
24639,
12,
74,
10019,
202,
202,
780,
980,
273,
446,
31,
202,
202,
474,
980,
2578,
273,
374,
31,
202,
202,
70,
91,
18,
2626,
2932,
7,
315,
1769,
202,
202,
70,
91,
18,
2626,
31458,
82,
7,
12953,
30,
13773,
394,
2167,
12,
74,
18,
2722,
4575,
2
] |
cmbPosition = new Combo(cmpGeneral, SWT.DROP_DOWN | SWT.READ_ONLY); GridData gdCMBPosition = new GridData(GridData.FILL_BOTH); cmbPosition.setLayoutData(gdCMBPosition); cmbPosition.addSelectionListener(this); cmbPosition.setEnabled(bEnableUI);
|
cmbPosition = new Combo( cmpGeneral, SWT.DROP_DOWN | SWT.READ_ONLY ); GridData gdCMBPosition = new GridData( GridData.FILL_BOTH ); cmbPosition.setLayoutData( gdCMBPosition ); cmbPosition.addSelectionListener( this ); cmbPosition.setEnabled( bEnableUI );
|
private void placeComponents() { FillLayout flMain = new FillLayout(); flMain.marginHeight = 0; flMain.marginWidth = 0; GridLayout glAttributes = new GridLayout(); glAttributes.horizontalSpacing = 5; glAttributes.verticalSpacing = 5; glAttributes.marginHeight = 7; glAttributes.marginWidth = 7; GridLayout glGeneral = new GridLayout(); glGeneral.numColumns = 2; glGeneral.horizontalSpacing = 5; glGeneral.verticalSpacing = 5; FillLayout flOutline = new FillLayout(); this.setLayout(flMain); if (sGroupName == null || sGroupName.length() == 0) { grpAttributes = new Composite(this, SWT.NONE); } else { grpAttributes = new Group(this, SWT.NONE); ((Group) grpAttributes).setText(sGroupName); } grpAttributes.setLayout(glAttributes); cmpGeneral = new Composite(grpAttributes, SWT.NONE); GridData gdCMPGeneral = new GridData(GridData.FILL_HORIZONTAL); cmpGeneral.setLayoutData(gdCMPGeneral); cmpGeneral.setLayout(glGeneral); boolean bEnableUI = bEnabled; if (bVisibilityEnabled) { cbVisible = new Button(cmpGeneral, SWT.CHECK); GridData gdCBVisible = new GridData(GridData.FILL_HORIZONTAL); gdCBVisible.horizontalSpan = 2; cbVisible.setLayoutData(gdCBVisible); cbVisible.setSelection(this.lblCurrent.isVisible()); cbVisible.setText(Messages .getString("LabelAttributesComposite.Lbl.IsVisible")); //$NON-NLS-1$ cbVisible.addSelectionListener(this); if (bEnabled) { bEnableUI = cbVisible.getSelection(); } } if (bPositionEnabled) { lblPosition = new Label(cmpGeneral, SWT.NONE); GridData gdLBLPosition = new GridData(); lblPosition.setLayoutData(gdLBLPosition); lblPosition.setText(Messages .getString("LabelAttributesComposite.Lbl.Position")); //$NON-NLS-1$ lblPosition.setEnabled(bEnableUI); cmbPosition = new Combo(cmpGeneral, SWT.DROP_DOWN | SWT.READ_ONLY); GridData gdCMBPosition = new GridData(GridData.FILL_BOTH); cmbPosition.setLayoutData(gdCMBPosition); cmbPosition.addSelectionListener(this); cmbPosition.setEnabled(bEnableUI); } lblFont = new Label(cmpGeneral, SWT.NONE); GridData gdLFont = new GridData(); lblFont.setLayoutData(gdLFont); lblFont .setText(Messages .getString("LabelAttributesComposite.Lbl.Font")); //$NON-NLS-1$ lblFont.setEnabled(bEnableUI); fdcFont = new FontDefinitionComposite(cmpGeneral, SWT.NONE, this.fdCurrent, this.cdFont, this.isAlignmentEnabled); GridData gdFDCFont = new GridData(GridData.FILL_BOTH); gdFDCFont.heightHint = fdcFont.getPreferredSize().y; gdFDCFont.widthHint = 96; gdFDCFont.grabExcessVerticalSpace = false; fdcFont.setLayoutData(gdFDCFont); fdcFont.addListener(this); fdcFont.setEnabled(bEnableUI); lblFill = new Label(cmpGeneral, SWT.NONE); GridData gdLFill = new GridData(); lblFill.setLayoutData(gdLFill); lblFill.setText(Messages .getString("LabelAttributesComposite.Lbl.Background")); //$NON-NLS-1$ lblFill.setEnabled(bEnableUI); fccBackground = new FillChooserComposite(cmpGeneral, SWT.NONE, fBackground, false, false); GridData gdFCCBackground = new GridData(GridData.FILL_BOTH); gdFCCBackground.heightHint = fccBackground.getPreferredSize().y; fccBackground.setLayoutData(gdFCCBackground); fccBackground.addListener(this); fccBackground.setEnabled(bEnableUI); if (bShadowEnabled) { lblShadow = new Label(cmpGeneral, SWT.NONE); GridData gdLBLShadow = new GridData(); lblShadow.setLayoutData(gdLBLShadow); lblShadow.setText(Messages .getString("LabelAttributesComposite.Lbl.Shadow")); //$NON-NLS-1$ lblShadow.setEnabled(bEnableUI); fccShadow = new FillChooserComposite(cmpGeneral, SWT.NONE, cdShadow, false, false); GridData gdFCCShadow = new GridData(GridData.FILL_BOTH); fccShadow.setLayoutData(gdFCCShadow); fccShadow.addListener(this); fccShadow.setEnabled(bEnableUI); } grpOutline = new Group(grpAttributes, SWT.NONE); GridData gdGOutline = new GridData(GridData.FILL_HORIZONTAL); gdGOutline.heightHint = 110; grpOutline.setLayoutData(gdGOutline); grpOutline.setText(Messages .getString("LabelAttributesComposite.Lbl.Outline")); //$NON-NLS-1$ grpOutline.setLayout(flOutline); grpOutline.setEnabled(bEnableUI); liacOutline = new LineAttributesComposite(grpOutline, SWT.NONE, laCurrent, true, true, true); liacOutline.addListener(this); liacOutline.setEnabled(bEnableUI); if (bInsetsEnabled == true) { icInsets = new InsetsComposite(grpAttributes, SWT.NONE, insets, sUnits, serviceprovider); GridData gdICInsets = new GridData(GridData.FILL_HORIZONTAL); gdICInsets.heightHint = icInsets.getPreferredSize().y; gdICInsets.grabExcessVerticalSpace = false; icInsets.addListener(this); icInsets.setLayoutData(gdICInsets); icInsets.setEnabled(bEnableUI); } populateLists(); }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/500b4482b64451f75339ee5037485c3309647704/LabelAttributesComposite.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/LabelAttributesComposite.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3166,
7171,
1435,
288,
202,
202,
8026,
3744,
1183,
6376,
273,
394,
14192,
3744,
5621,
202,
202,
2242,
6376,
18,
10107,
2686,
273,
374,
31,
202,
202,
2242,
6376,
18,
10107,
2384,
273,
374,
31,
202,
202,
6313,
3744,
5118,
2498,
273,
394,
7145,
3744,
5621,
202,
202,
7043,
2498,
18,
18396,
18006,
273,
1381,
31,
202,
202,
7043,
2498,
18,
17824,
18006,
273,
1381,
31,
202,
202,
7043,
2498,
18,
10107,
2686,
273,
2371,
31,
202,
202,
7043,
2498,
18,
10107,
2384,
273,
2371,
31,
202,
202,
6313,
3744,
5118,
12580,
273,
394,
7145,
3744,
5621,
202,
202,
7043,
12580,
18,
2107,
3380,
273,
576,
31,
202,
202,
7043,
12580,
18,
18396,
18006,
273,
1381,
31,
202,
202,
7043,
12580,
18,
17824,
18006,
273,
1381,
31,
202,
202,
8026,
3744,
1183,
21805,
273,
394,
14192,
3744,
5621,
202,
202,
2211,
18,
542,
3744,
12,
2242,
6376,
1769,
202,
202,
430,
261,
87,
3943,
422,
446,
747,
272,
3943,
18,
2469,
1435,
422,
374,
13,
288,
1082,
202,
17532,
2498,
273,
394,
14728,
12,
2211,
16,
348,
8588,
18,
9826,
1769,
202,
202,
97,
469,
288,
1082,
202,
17532,
2498,
273,
394,
3756,
12,
2211,
16,
348,
8588,
18,
9826,
1769,
1082,
202,
12443,
1114,
13,
14295,
2498,
2934,
542,
1528,
12,
87,
3943,
1769,
202,
202,
97,
202,
202,
17532,
2498,
18,
542,
3744,
12,
7043,
2498,
1769,
202,
202,
9625,
12580,
273,
394,
14728,
12,
17532,
2498,
16,
348,
8588,
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,
918,
3166,
7171,
1435,
288,
202,
202,
8026,
3744,
1183,
6376,
273,
394,
14192,
3744,
5621,
202,
202,
2242,
6376,
18,
10107,
2686,
273,
374,
31,
202,
202,
2242,
6376,
18,
10107,
2384,
273,
374,
31,
202,
202,
6313,
3744,
5118,
2498,
273,
394,
7145,
3744,
5621,
202,
202,
7043,
2498,
18,
18396,
18006,
273,
1381,
31,
202,
202,
7043,
2498,
18,
17824,
18006,
273,
1381,
31,
202,
202,
7043,
2498,
18,
10107,
2686,
273,
2371,
31,
202,
202,
7043,
2498,
18,
10107,
2384,
273,
2371,
31,
202,
202,
6313,
3744,
5118,
12580,
273,
394,
7145,
3744,
5621,
202,
202,
7043,
12580,
18,
2107,
3380,
273,
576,
31,
202,
202,
7043,
12580,
18,
18396,
18006,
273,
2
] |
boolean seenNonWhiteSpace = false;
|
public static void lineToChunkList(Segment seg, Token tokens, SyntaxStyle[] styles, FontRenderContext fontRenderContext, TabExpander e, float wrapMargin, java.util.List out) { // SILLY: allow for anti-aliased characters' "fuzz" if(wrapMargin != 0.0f) wrapMargin += 2.0f; float x = 0.0f; float endX = 0.0f; boolean seenNonWhiteSpace = false; boolean addedNonWhiteSpace = false; float firstNonWhiteSpace = 0.0f; Chunk first = null; Chunk current = null; Chunk end = null; int tokenListOffset = 0; while(tokens.id != Token.END) { int flushIndex = tokenListOffset; for(int i = tokenListOffset; i < tokenListOffset + tokens.length; i++) { char ch = seg.array[seg.offset + i]; if(ch == '\t' || (ch == ' ' && wrapMargin != 0.0f)) { /* Create chunk with all text from * last position up to here, and wrap * if necessary. */ //{{{ if(i != flushIndex) { Chunk newChunk = new Chunk( tokens.id,seg,flushIndex, i,styles,fontRenderContext); if(current != null) current.next = newChunk; current = newChunk; x += newChunk.width; } if(end != null && addedNonWhiteSpace && wrapMargin != 0 && x > wrapMargin) { if(first != null) out.add(first); first = new Chunk(firstNonWhiteSpace,end.offset + 1); first.next = end.next; end.next = null; x = x + firstNonWhiteSpace - endX; } if(first == null) first = current; seenNonWhiteSpace = true; //}}} //{{{ Create ' ' chunk if(ch == ' ') { Chunk newChunk = new Chunk( tokens.id,seg,i,i + 1, styles,fontRenderContext); if(first == null) first = current = newChunk; else { current.next = newChunk; current = newChunk; } x += current.width; } //}}} //{{{ Create '\t' chunk else if(ch == '\t') { Chunk newChunk = new Chunk( tokens.id,seg,i,i, styles,fontRenderContext); if(first == null) first = current = newChunk; else { current.next = newChunk; current = newChunk; } float newX = e.nextTabStop(x,i + tokenListOffset); current.width = newX - x; x = newX; current.length = 1; } //}}} if(!seenNonWhiteSpace) firstNonWhiteSpace = x; if(first == null) first = current; end = current; endX = x; flushIndex = i + 1; addedNonWhiteSpace = seenNonWhiteSpace; } else if(i == tokenListOffset + tokens.length - 1) { if(flushIndex != i + 1) { Chunk newChunk = new Chunk( tokens.id,seg,flushIndex, i + 1,styles,fontRenderContext); if(current != null) current.next = newChunk; current = newChunk; x += newChunk.width; if(i == seg.count - 1 && wrapMargin != 0 && x > wrapMargin && addedNonWhiteSpace && end != null) { if(first != null) out.add(first); first = new Chunk(firstNonWhiteSpace,end.offset + 1); first.next = end.next; end.next = null; x = x + firstNonWhiteSpace - endX; } if(first == null) first = current; } seenNonWhiteSpace = true; } } tokenListOffset += tokens.length; tokens = tokens.next; } if(first != null) out.add(first); } //}}}
|
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/9de0d8cdcc6a3c406e9887a8a9d1f64b65afa979/ChunkCache.java/clean/org/gjt/sp/jedit/textarea/ChunkCache.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
19785,
5579,
682,
12,
4131,
2291,
16,
3155,
2430,
16,
202,
202,
8070,
2885,
8526,
5687,
16,
10063,
3420,
1042,
3512,
3420,
1042,
16,
202,
202,
5661,
12271,
264,
425,
16,
1431,
2193,
9524,
16,
2252,
18,
1367,
18,
682,
596,
13,
202,
95,
202,
202,
759,
348,
2627,
7076,
30,
1699,
364,
30959,
17,
18083,
8905,
3949,
11,
315,
74,
9510,
6,
202,
202,
430,
12,
4113,
9524,
480,
374,
18,
20,
74,
13,
1082,
202,
4113,
9524,
1011,
576,
18,
20,
74,
31,
202,
202,
5659,
619,
273,
374,
18,
20,
74,
31,
202,
202,
5659,
679,
60,
273,
374,
18,
20,
74,
31,
202,
202,
6494,
5881,
3989,
23108,
273,
629,
31,
202,
202,
6494,
3096,
3989,
23108,
273,
629,
31,
202,
202,
5659,
1122,
3989,
23108,
273,
374,
18,
20,
74,
31,
202,
202,
5579,
1122,
273,
446,
31,
202,
202,
5579,
783,
273,
446,
31,
202,
202,
5579,
679,
273,
446,
31,
202,
202,
474,
1147,
682,
2335,
273,
374,
31,
202,
202,
17523,
12,
7860,
18,
350,
480,
3155,
18,
4415,
13,
202,
202,
95,
1082,
202,
474,
3663,
1016,
273,
1147,
682,
2335,
31,
1082,
202,
1884,
12,
474,
277,
273,
1147,
682,
2335,
31,
277,
411,
1147,
682,
2335,
397,
2430,
18,
2469,
31,
277,
27245,
1082,
202,
95,
9506,
202,
3001,
462,
273,
2291,
18,
1126,
63,
5680,
18,
3348,
397,
277,
15533,
9506,
202,
430,
12,
343,
422,
2337,
88,
11,
747,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
19785,
5579,
682,
12,
4131,
2291,
16,
3155,
2430,
16,
202,
202,
8070,
2885,
8526,
5687,
16,
10063,
3420,
1042,
3512,
3420,
1042,
16,
202,
202,
5661,
12271,
264,
425,
16,
1431,
2193,
9524,
16,
2252,
18,
1367,
18,
682,
596,
13,
202,
95,
202,
202,
759,
348,
2627,
7076,
30,
1699,
364,
30959,
17,
18083,
8905,
3949,
11,
315,
74,
9510,
6,
202,
202,
430,
12,
4113,
9524,
480,
374,
18,
20,
74,
13,
1082,
202,
4113,
9524,
1011,
576,
18,
20,
74,
31,
202,
202,
5659,
619,
273,
374,
18,
20,
74,
31,
202,
202,
5659,
679,
60,
273,
374,
18,
20,
74,
31,
202,
202,
6494,
5881,
3989,
23108,
273,
629,
2
] |
|
result = null; throw new TdsNotImplemented( "can't handle integer of type "
|
throw new TdsNotImplemented("Can't handle integer of type "
|
private Object getIntValue(int type) throws java.io.IOException, TdsException { Object result; int len; switch (type) { case SYBINTN: { len = comm.getByte(); break; } case SYBINT4: { len = 4; break; } case SYBINT2: { len = 2; break; } case SYBINT1: { len = 1; break; } default: { result = null; throw new TdsNotImplemented( "can't handle integer of type " + Integer.toHexString(type)); } } switch (len) {/* curts version case 4: result = new Integer(comm.getTdsInt()); break; case 2: result = new Short((short)comm.getTdsShort()); break; case 1: result = new Byte(comm.getByte()); break;*/ case 4: { result = new Integer(comm.getTdsInt()); break; } case 2: { result = new Short((short)comm.getTdsShort()); break; } case 1: { int tmp = toUInt(comm.getByte()); // XXX Are we sure this should be unsigned? // AS: no, there is no unsigned Byte in Java so -> use smallint in Params and Table-Creation result = new Long(tmp); break; } case 0: { result = null; break; } default: { result = null; throw new TdsConfused("Bad SYBINTN length of " + len); } } return result; }
|
5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/82db06b5ace2496789b551dd8bd53aa218a17088/Tds.java/clean/src.old/main/com/internetcds/jdbc/tds/Tds.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
8145,
620,
12,
474,
618,
13,
2398,
1216,
2252,
18,
1594,
18,
14106,
16,
399,
2377,
503,
565,
288,
3639,
1033,
563,
31,
3639,
509,
562,
31,
3639,
1620,
261,
723,
13,
288,
5411,
648,
7068,
38,
3217,
50,
30,
5411,
288,
7734,
562,
273,
1543,
18,
588,
3216,
5621,
7734,
898,
31,
5411,
289,
5411,
648,
7068,
38,
3217,
24,
30,
5411,
288,
7734,
562,
273,
1059,
31,
7734,
898,
31,
5411,
289,
5411,
648,
7068,
38,
3217,
22,
30,
5411,
288,
7734,
562,
273,
576,
31,
7734,
898,
31,
5411,
289,
5411,
648,
7068,
38,
3217,
21,
30,
5411,
288,
7734,
562,
273,
404,
31,
7734,
898,
31,
5411,
289,
5411,
805,
30,
5411,
288,
7734,
563,
273,
446,
31,
7734,
604,
394,
399,
2377,
1248,
8644,
12,
13491,
315,
4169,
1404,
1640,
3571,
434,
618,
315,
7682,
397,
2144,
18,
869,
14866,
12,
723,
10019,
5411,
289,
3639,
289,
3639,
1620,
261,
1897,
13,
288,
20308,
225,
662,
3428,
1177,
6647,
648,
1059,
30,
5411,
563,
273,
394,
2144,
12,
5702,
18,
588,
56,
2377,
1702,
10663,
5411,
898,
31,
5375,
648,
576,
30,
5411,
563,
273,
394,
7925,
12443,
6620,
13,
5702,
18,
588,
56,
2377,
4897,
10663,
5411,
898,
31,
5375,
648,
404,
30,
2398,
563,
273,
394,
3506,
12,
5702,
18,
588,
3216,
10663,
5411,
898,
31,
5549,
1850,
648,
1059,
30,
5411,
288,
7734,
563,
273,
394,
2144,
12,
5702,
18,
588,
56,
2377,
1702,
10663,
7734,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
8145,
620,
12,
474,
618,
13,
2398,
1216,
2252,
18,
1594,
18,
14106,
16,
399,
2377,
503,
565,
288,
3639,
1033,
563,
31,
3639,
509,
562,
31,
3639,
1620,
261,
723,
13,
288,
5411,
648,
7068,
38,
3217,
50,
30,
5411,
288,
7734,
562,
273,
1543,
18,
588,
3216,
5621,
7734,
898,
31,
5411,
289,
5411,
648,
7068,
38,
3217,
24,
30,
5411,
288,
7734,
562,
273,
1059,
31,
7734,
898,
31,
5411,
289,
5411,
648,
7068,
38,
3217,
22,
30,
5411,
288,
7734,
562,
273,
576,
31,
7734,
898,
31,
5411,
289,
5411,
648,
7068,
38,
3217,
21,
30,
5411,
288,
7734,
562,
273,
404,
31,
7734,
898,
31,
5411,
289,
5411,
805,
30,
5411,
2
] |
public final javax.faces.event.FacesListener[] listLoadListeners() { return getFacesListeners(org.rcfaces.core.event.ILoadListener.class); }
|
public final javax.faces.event.FacesListener [] listLoadListeners() { return getFacesListeners(org.rcfaces.core.event.ILoadListener.class); }
|
public final javax.faces.event.FacesListener[] listLoadListeners() { return getFacesListeners(org.rcfaces.core.event.ILoadListener.class); }
|
6232 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6232/1f1850be471d4b8bfd2f3c50aa61bc39bf91259a/CardComponent.java/buggy/org.rcfaces.core/src/org/rcfaces/core/component/CardComponent.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
6863,
18,
4601,
18,
2575,
18,
17268,
2223,
8526,
666,
2563,
5583,
1435,
288,
3639,
327,
2812,
2307,
5583,
12,
3341,
18,
1310,
4601,
18,
3644,
18,
2575,
18,
45,
2563,
2223,
18,
1106,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
6863,
18,
4601,
18,
2575,
18,
17268,
2223,
8526,
666,
2563,
5583,
1435,
288,
3639,
327,
2812,
2307,
5583,
12,
3341,
18,
1310,
4601,
18,
3644,
18,
2575,
18,
45,
2563,
2223,
18,
1106,
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
] |
graphics.setFont(m_cachedFont);
|
graphics.setFont(s_cachedFont);
|
private static void setFont(Graphics graphics, int fieldSize) { if (m_cachedFont != null && m_cachedFontFieldSize == fieldSize) { graphics.setFont(m_cachedFont); return; } Font font = UIManager.getFont("Label.font"); if (font != null) { FontMetrics metrics = graphics.getFontMetrics(font); double scale = (double)fieldSize / metrics.getAscent() / 2.3; if (scale < 0.95) { int size = font.getSize(); Font derivedFont = font.deriveFont(Font.BOLD, (float)(size * scale)); if (derivedFont != null) font = derivedFont; } else font = font.deriveFont(Font.BOLD); } m_cachedFont = font; m_cachedFontFieldSize = fieldSize; graphics.setFont(font); }
|
48906 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48906/62ec409c99a6a9e32f06d012360ebb98d383e69d/GuiField.java/clean/src/net/sf/gogui/gui/GuiField.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
20454,
12,
17558,
17313,
16,
509,
652,
1225,
13,
565,
288,
3639,
309,
261,
81,
67,
7097,
5711,
480,
446,
597,
312,
67,
7097,
5711,
974,
1225,
422,
652,
1225,
13,
3639,
288,
5411,
17313,
18,
542,
5711,
12,
87,
67,
7097,
5711,
1769,
5411,
327,
31,
3639,
289,
3639,
10063,
3512,
273,
6484,
1318,
18,
588,
5711,
2932,
2224,
18,
5776,
8863,
3639,
309,
261,
5776,
480,
446,
13,
3639,
288,
5411,
10063,
5653,
4309,
273,
17313,
18,
588,
5711,
5653,
12,
5776,
1769,
5411,
1645,
3159,
273,
261,
9056,
13,
1518,
1225,
342,
4309,
18,
588,
13665,
319,
1435,
342,
576,
18,
23,
31,
5411,
309,
261,
5864,
411,
374,
18,
8778,
13,
5411,
288,
7734,
509,
963,
273,
3512,
18,
588,
1225,
5621,
7734,
10063,
10379,
5711,
10792,
273,
3512,
18,
765,
688,
5711,
12,
5711,
18,
38,
11846,
16,
261,
5659,
21433,
1467,
380,
3159,
10019,
7734,
309,
261,
765,
2950,
5711,
480,
446,
13,
10792,
3512,
273,
10379,
5711,
31,
5411,
289,
5411,
469,
7734,
3512,
273,
3512,
18,
765,
688,
5711,
12,
5711,
18,
38,
11846,
1769,
3639,
289,
3639,
312,
67,
7097,
5711,
273,
3512,
31,
3639,
312,
67,
7097,
5711,
974,
1225,
273,
652,
1225,
31,
3639,
17313,
18,
542,
5711,
12,
5776,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
20454,
12,
17558,
17313,
16,
509,
652,
1225,
13,
565,
288,
3639,
309,
261,
81,
67,
7097,
5711,
480,
446,
597,
312,
67,
7097,
5711,
974,
1225,
422,
652,
1225,
13,
3639,
288,
5411,
17313,
18,
542,
5711,
12,
87,
67,
7097,
5711,
1769,
5411,
327,
31,
3639,
289,
3639,
10063,
3512,
273,
6484,
1318,
18,
588,
5711,
2932,
2224,
18,
5776,
8863,
3639,
309,
261,
5776,
480,
446,
13,
3639,
288,
5411,
10063,
5653,
4309,
273,
17313,
18,
588,
5711,
5653,
12,
5776,
1769,
5411,
1645,
3159,
273,
261,
9056,
13,
1518,
1225,
342,
4309,
18,
588,
13665,
319,
1435,
342,
576,
18,
23,
31,
5411,
309,
261,
5864,
411,
374,
18,
8778,
13,
2
] |
checkSessionData(info, test, false, 1, true);
|
private void runSignatureTest() { /**These test ignore header matching, and thus can deal with * all the test signatures*/ /**Setup*/ List<IDSRuleSignature> signatures = new LinkedList<IDSRuleSignature>(); for(IDSRuleHeader header : rules.getHeaders()) for(IDSRuleSignature sig : header.getSignatures()) signatures.add(sig); IDSSessionInfo info = new IDSSessionInfo(); info.setc2sSignatures(signatures); info.setUriPath("/this/is/just/a/test"); /**Run Tests*/ TestDataEvent test = new TestDataEvent(); checkSessionData(info, test, true, 0, false); checkSessionData(info, test, false, 4, false); checkSessionData(info, test, true, 9, false); /*********AIEEETRUE*/ info.setUriPath("rawr"); byte[] basicNoCase = {'b','o','b'}; test.setData(basicNoCase); checkSessionData(info, test, false, 1, true); checkSessionData(info, test, true, 1, false); checkSessionData(info, test, true, 2, false); checkSessionData(info, test, true, 3, true); checkSessionData(info, test, false, 5, false); checkSessionData(info, test, false, 9, false); checkSessionData(info, test, false, 12, false); byte[] basicNoCase1 = {'1','2','3','B','O','B'}; test.setData(basicNoCase1); checkSessionData(info, test, false, 1, false); checkSessionData(info, test, true, 2, true); checkSessionData(info, test, false, 6, false); byte[] dSizeTest = { 'c', 'c', 'c', 'c', 'c', 'b', 'o', 'b' }; test.setData(dSizeTest); checkSessionData(info, test, false, 1, true); checkSessionData(info, test, true, 2, true); checkSessionData(info, test, true, 3, false); checkSessionData(info, test, false, 4, true); checkSessionData(info, test, false, 5, true); byte[] complexContentStuff = { '4','2',(byte)0xDE,(byte)0xAD,(byte)0xBE,(byte)0xEF,'b','o','b',(byte)0x1F,(byte)0x12 }; test.setData(complexContentStuff); checkSessionData(info, test, false,4, false); checkSessionData(info, test, true, 5, true); checkSessionData(info, test, false, 6, true); checkSessionData(info, test, false, 10, false); byte[] nopSled = new byte[20]; for(int i=0; i<nopSled.length;i++) nopSled[i] = (byte) 0x90; test.setData(nopSled); checkSessionData(info, test, false, 6, false); checkSessionData(info, test, false, 10, true); byte[] test11 = { (byte)0x00, (byte) 0x01, 'W', (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x18, 'f', (byte)0xFF, (byte)0xFF, (byte)0xFF, (byte)0xFF, (byte) 0x00, (byte) 0x00 }; test.setData(test11); checkSessionData(info, test, false, 11, true); byte[] test11FailDepth = { (byte)0x00, (byte) 0x01, 'W', (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x18, 'f', 'a','a','a','a','a','a','a','a','a','a','a', (byte)0xFF, (byte)0xFF, (byte)0xFF, (byte)0xFF, (byte) 0x00, (byte) 0x00 }; test.setData(test11FailDepth); checkSessionData(info, test, false, 11, false); byte[] distanceTest = { 'H','i','q','q','B','o','b' }; test.setData(distanceTest); checkSessionData(info, test, true, 13, true); checkSessionData(info, test, true, 14, true); byte[] distanceTest2 = { 'H','i','q','B','o','b' }; test.setData(distanceTest2); checkSessionData(info, test, true, 13, false); checkSessionData(info, test, true, 14, true); byte[] distanceTest3 = { 'H','i','q','q','q','q','q','q','B','o','b' }; test.setData(distanceTest3); checkSessionData(info, test, true, 13, true); checkSessionData(info, test, true, 14, false); byte[] withinDebug = { 'H','i','q',(byte)0x02 }; test.setData(withinDebug); checkSessionData(info, test, true, 15, true); byte[] withinDebug1 = { 'H','i','q',(byte)0x02 }; test.setData(withinDebug1); //////////////////////checkSessionData(info, test, true, 16, true); }
|
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/4d2f5444457facd99a330f153de2edf232ceac26/IDSTest.java/buggy/tran/ids/main/com/metavize/tran/ids/IDSTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1086,
5374,
4709,
1435,
288,
202,
202,
26873,
29690,
1842,
2305,
1446,
3607,
16,
471,
12493,
848,
10490,
598,
1082,
380,
777,
326,
1842,
14862,
5549,
9506,
202,
26873,
7365,
5549,
202,
202,
682,
32,
19516,
2175,
5374,
34,
14862,
273,
394,
10688,
32,
19516,
2175,
5374,
34,
5621,
202,
202,
1884,
12,
19516,
2175,
1864,
1446,
294,
2931,
18,
588,
3121,
10756,
1082,
202,
1884,
12,
19516,
2175,
5374,
3553,
294,
1446,
18,
588,
23918,
10756,
9506,
202,
30730,
18,
1289,
12,
7340,
1769,
9506,
202,
734,
1260,
893,
966,
1123,
273,
394,
1599,
1260,
893,
966,
5621,
202,
202,
1376,
18,
542,
71,
22,
87,
23918,
12,
30730,
1769,
202,
202,
1376,
18,
542,
3006,
743,
2932,
19,
2211,
19,
291,
19,
3732,
19,
69,
19,
3813,
8863,
202,
202,
26873,
1997,
7766,
87,
5549,
202,
202,
4709,
751,
1133,
1842,
273,
394,
7766,
751,
1133,
5621,
202,
202,
1893,
2157,
751,
12,
1376,
16,
1842,
16,
638,
16,
374,
16,
629,
1769,
202,
202,
1893,
2157,
751,
12,
1376,
16,
1842,
16,
629,
16,
1059,
16,
629,
1769,
202,
202,
1893,
2157,
751,
12,
1376,
16,
1842,
16,
638,
16,
2468,
16,
629,
1769,
342,
1644,
14,
37,
8732,
41,
1584,
54,
1821,
5549,
9506,
202,
1376,
18,
542,
3006,
743,
2932,
1899,
86,
8863,
202,
202,
7229,
8526,
5337,
2279,
2449,
273,
13666,
70,
17023,
83,
17023,
70,
11,
20451,
202,
202,
3813,
18,
542,
751,
12,
13240,
2279,
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,
1086,
5374,
4709,
1435,
288,
202,
202,
26873,
29690,
1842,
2305,
1446,
3607,
16,
471,
12493,
848,
10490,
598,
1082,
380,
777,
326,
1842,
14862,
5549,
9506,
202,
26873,
7365,
5549,
202,
202,
682,
32,
19516,
2175,
5374,
34,
14862,
273,
394,
10688,
32,
19516,
2175,
5374,
34,
5621,
202,
202,
1884,
12,
19516,
2175,
1864,
1446,
294,
2931,
18,
588,
3121,
10756,
1082,
202,
1884,
12,
19516,
2175,
5374,
3553,
294,
1446,
18,
588,
23918,
10756,
9506,
202,
30730,
18,
1289,
12,
7340,
1769,
9506,
202,
734,
1260,
893,
966,
1123,
273,
394,
1599,
1260,
893,
966,
5621,
202,
202,
1376,
18,
542,
71,
22,
87,
23918,
12,
30730,
1769,
202,
202,
1376,
18,
2
] |
|
BorderLayout(int hgap, int vgap)
|
BorderLayout()
|
BorderLayout(int hgap, int vgap){ this.hgap = hgap; this.vgap = vgap;}
|
27835 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27835/3fe1c14284ce32b79d0e66441aec6a45a77ff684/BorderLayout.java/buggy/libjava/java/awt/BorderLayout.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
30814,
12,
474,
366,
14048,
16,
509,
331,
14048,
15329,
225,
333,
18,
76,
14048,
273,
366,
14048,
31,
225,
333,
18,
90,
14048,
273,
331,
14048,
31,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
30814,
12,
474,
366,
14048,
16,
509,
331,
14048,
15329,
225,
333,
18,
76,
14048,
273,
366,
14048,
31,
225,
333,
18,
90,
14048,
273,
331,
14048,
31,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
fValue.setValue(value != null ? value.toString() : "");
|
fValue.setValue(value != null ? value.toString() : "", true);
|
public void updateFields() { if (fAttribute == null) return; String curr = fAttribute.getName(); fName.setValue(curr != null ? curr : ""); //$NON-NLS-1$ fDeprecated.select(fAttribute.isDeprecated() ? 0 : 1); fTranslatable.select(fAttribute.isTranslatable() ? 0 : 1); boolean isStringType = fAttribute.getType().getName().equals(STRING_TYPE); int kind = fAttribute.getKind(); fType.select(isStringType ? 1 + kind : 0); fUse.select(fAttribute.getUse()); Object value = fAttribute.getValue(); fValue.setValue(value != null ? value.toString() : ""); //$NON-NLS-1$ if (kind == IMetaAttribute.JAVA) { curr = fAttribute.getBasedOn(); if (curr != null && curr.length() > 0) { int index = curr.indexOf(":"); //$NON-NLS-1$ if (index == -1) { String className = curr.substring(curr.lastIndexOf(".") + 1); //$NON-NLS-1$ if (className.length() > 1 && className.charAt(0) == 'I') fInterfaceEntry.setValue(curr); else fClassEntry.setValue(curr); } else { fClassEntry.setValue(curr.substring(0, index)); fInterfaceEntry.setValue(curr.substring(index + 1)); } } } boolean editable = fAttribute.getSchema().isEditable(); updateParts(isStringType && kind == IMetaAttribute.STRING, kind == IMetaAttribute.JAVA, editable); fValue.setEditable(editable && fAttribute.getUse() == 2); fName.setEditable(editable); fDeprecated.setEnabled(editable); fType.setEnabled(editable); fUse.setEnabled(editable); fTypeLabel.setEnabled(editable); fUseLabel.setEnabled(editable); fDepLabel.setEnabled(editable); }
|
8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/68c688b827eefb4f1b6bd71d5c1e862e0e06ef83/SchemaAttributeDetails.java/clean/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/schema/SchemaAttributeDetails.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
2314,
1435,
288,
202,
202,
430,
261,
74,
1499,
422,
446,
13,
1082,
202,
2463,
31,
202,
202,
780,
4306,
273,
284,
1499,
18,
17994,
5621,
202,
202,
74,
461,
18,
542,
620,
12,
17016,
480,
446,
692,
4306,
294,
1408,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
74,
13534,
18,
4025,
12,
74,
1499,
18,
291,
13534,
1435,
692,
374,
294,
404,
1769,
202,
202,
74,
24299,
18,
4025,
12,
74,
1499,
18,
291,
24299,
1435,
692,
374,
294,
404,
1769,
9506,
202,
6494,
9962,
559,
273,
284,
1499,
18,
588,
559,
7675,
17994,
7675,
14963,
12,
5804,
67,
2399,
1769,
202,
202,
474,
3846,
273,
284,
1499,
18,
588,
5677,
5621,
202,
202,
74,
559,
18,
4025,
12,
291,
780,
559,
692,
404,
397,
3846,
294,
374,
1769,
9506,
202,
74,
3727,
18,
4025,
12,
74,
1499,
18,
588,
3727,
10663,
202,
202,
921,
460,
273,
284,
1499,
18,
24805,
5621,
202,
202,
74,
620,
18,
542,
620,
12,
1132,
480,
446,
692,
460,
18,
10492,
1435,
294,
23453,
638,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
430,
261,
9224,
422,
467,
2781,
1499,
18,
27264,
13,
288,
1082,
202,
17016,
273,
284,
1499,
18,
588,
9802,
1398,
5621,
1082,
202,
430,
261,
17016,
480,
446,
597,
4306,
18,
2469,
1435,
405,
374,
13,
288,
9506,
202,
474,
770,
273,
4306,
18,
31806,
2932,
2773,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
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,
1089,
2314,
1435,
288,
202,
202,
430,
261,
74,
1499,
422,
446,
13,
1082,
202,
2463,
31,
202,
202,
780,
4306,
273,
284,
1499,
18,
17994,
5621,
202,
202,
74,
461,
18,
542,
620,
12,
17016,
480,
446,
692,
4306,
294,
1408,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
74,
13534,
18,
4025,
12,
74,
1499,
18,
291,
13534,
1435,
692,
374,
294,
404,
1769,
202,
202,
74,
24299,
18,
4025,
12,
74,
1499,
18,
291,
24299,
1435,
692,
374,
294,
404,
1769,
9506,
202,
6494,
9962,
559,
273,
284,
1499,
18,
588,
559,
7675,
17994,
7675,
14963,
12,
5804,
67,
2399,
1769,
202,
202,
474,
3846,
273,
284,
1499,
18,
588,
2
] |
decls = tu.getDeclarations(name_x2.resolveBinding()); assertEquals( decls.length, 1 ); assertEquals( decls[0], name_x1 ); }
|
IASTSimpleDeclaration simpleDecl = (IASTSimpleDeclaration) tu .getDeclarations()[0]; IASTCompositeTypeSpecifier compType = (IASTCompositeTypeSpecifier) simpleDecl .getDeclSpecifier(); IASTSimpleDeclaration decl_x = (IASTSimpleDeclaration) compType .getMembers()[0]; IASTName name_x1 = decl_x.getDeclarators()[0].getName(); IASTFunctionDefinition fdef = (IASTFunctionDefinition) tu .getDeclarations()[1]; IASTCompoundStatement body = (IASTCompoundStatement) fdef.getBody(); IASTExpressionStatement expStatement = (IASTExpressionStatement) body .getStatements()[0]; IASTFieldReference fieldRef = (IASTFieldReference) expStatement .getExpression(); IASTName name_x2 = fieldRef.getFieldName(); IField x1 = (IField) name_x1.resolveBinding(); IField x2 = (IField) name_x2.resolveBinding(); assertNotNull(x1); assertSame(x1, x2); IASTName[] decls = tu .getDeclarations(compType.getName().resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], compType.getName()); decls = tu.getDeclarations(name_x1.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_x1); decls = tu.getDeclarations(fdef.getDeclarator().getName() .resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], fdef.getDeclarator().getName()); IASTCastExpression castExpression = (IASTCastExpression) ((IASTUnaryExpression) ((IASTFieldReference) expStatement .getExpression()).getFieldOwner()).getOperand(); IASTElaboratedTypeSpecifier elaboratedTypeSpecifier = ((IASTElaboratedTypeSpecifier) castExpression .getTypeId().getDeclSpecifier()); decls = tu.getDeclarations(elaboratedTypeSpecifier.getName() .resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], compType.getName()); decls = tu.getDeclarations(name_x2.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_x1); }
|
public void testExpressionFieldReference() throws Exception{ StringBuffer buffer = new StringBuffer(); buffer.append( "struct A { int x; }; \n"); //$NON-NLS-1$ buffer.append( "void f(){ \n"); //$NON-NLS-1$ buffer.append( " ((struct A *) 1)->x; \n"); //$NON-NLS-1$ buffer.append( "} \n"); //$NON-NLS-1$ IASTTranslationUnit tu = parse( buffer.toString(), ParserLanguage.C ); IASTSimpleDeclaration simpleDecl = (IASTSimpleDeclaration) tu.getDeclarations()[0]; IASTCompositeTypeSpecifier compType = (IASTCompositeTypeSpecifier) simpleDecl.getDeclSpecifier(); IASTSimpleDeclaration decl_x = (IASTSimpleDeclaration) compType.getMembers()[0]; IASTName name_x1 = decl_x.getDeclarators()[0].getName(); IASTFunctionDefinition fdef = (IASTFunctionDefinition) tu.getDeclarations()[1]; IASTCompoundStatement body = (IASTCompoundStatement) fdef.getBody(); IASTExpressionStatement expStatement = (IASTExpressionStatement) body.getStatements()[0]; IASTFieldReference fieldRef = (IASTFieldReference) expStatement.getExpression(); IASTName name_x2 = fieldRef.getFieldName(); IField x1 = (IField) name_x1.resolveBinding(); IField x2 = (IField) name_x2.resolveBinding(); assertNotNull( x1 ); assertSame( x1, x2 ); // test tu.getDeclarations(IBinding) IASTName[] decls = tu.getDeclarations(compType.getName().resolveBinding()); assertEquals( decls.length, 1 ); assertEquals( decls[0], compType.getName() ); decls = tu.getDeclarations(name_x1.resolveBinding()); assertEquals( decls.length, 1 ); assertEquals( decls[0], name_x1 ); decls = tu.getDeclarations(fdef.getDeclarator().getName().resolveBinding()); assertEquals( decls.length, 1 ); assertEquals( decls[0], fdef.getDeclarator().getName() ); IASTCastExpression castExpression = (IASTCastExpression) ((IASTUnaryExpression)((IASTFieldReference)expStatement.getExpression()).getFieldOwner()).getOperand(); IASTElaboratedTypeSpecifier elaboratedTypeSpecifier = ((IASTElaboratedTypeSpecifier)castExpression.getTypeId().getDeclSpecifier()); decls = tu.getDeclarations( elaboratedTypeSpecifier.getName().resolveBinding() ); assertEquals( decls.length, 1 ); assertEquals( decls[0], compType.getName() ); decls = tu.getDeclarations(name_x2.resolveBinding()); assertEquals( decls.length, 1 ); assertEquals( decls[0], name_x1 ); }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/a1776b31512ed659229f125097f603f16a18be82/AST2Tests.java/buggy/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2300,
974,
2404,
1435,
1216,
1185,
95,
377,
202,
780,
1892,
1613,
273,
394,
6674,
5621,
377,
202,
4106,
18,
6923,
12,
315,
1697,
432,
288,
509,
619,
31,
289,
31,
565,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
377,
202,
4106,
18,
6923,
12,
315,
6459,
284,
1435,
95,
9079,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
377,
202,
4106,
18,
6923,
12,
315,
282,
14015,
1697,
432,
380,
13,
404,
13,
2122,
92,
31,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
377,
202,
4106,
18,
6923,
12,
27342,
15604,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
377,
202,
377,
202,
45,
9053,
6717,
2802,
28325,
273,
1109,
12,
1613,
18,
10492,
9334,
6783,
3779,
18,
39,
11272,
377,
202,
377,
202,
45,
9053,
5784,
6094,
4143,
3456,
273,
261,
45,
9053,
5784,
6094,
13,
28325,
18,
588,
21408,
1435,
63,
20,
15533,
377,
202,
45,
9053,
9400,
559,
21416,
1161,
559,
273,
261,
45,
9053,
9400,
559,
21416,
13,
4143,
3456,
18,
588,
3456,
21416,
5621,
377,
202,
45,
9053,
5784,
6094,
3496,
67,
92,
273,
261,
45,
9053,
5784,
6094,
13,
1161,
559,
18,
588,
6918,
1435,
63,
20,
15533,
377,
202,
45,
9053,
461,
508,
67,
92,
21,
273,
3496,
67,
92,
18,
588,
3456,
297,
3062,
1435,
63,
20,
8009,
17994,
5621,
377,
202,
45,
9053,
2083,
1852,
284,
536,
273,
261,
45,
9053,
2083,
1852,
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,
2300,
974,
2404,
1435,
1216,
1185,
95,
377,
202,
780,
1892,
1613,
273,
394,
6674,
5621,
377,
202,
4106,
18,
6923,
12,
315,
1697,
432,
288,
509,
619,
31,
289,
31,
565,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
377,
202,
4106,
18,
6923,
12,
315,
6459,
284,
1435,
95,
9079,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
377,
202,
4106,
18,
6923,
12,
315,
282,
14015,
1697,
432,
380,
13,
404,
13,
2122,
92,
31,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
377,
202,
4106,
18,
6923,
12,
27342,
15604,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
377,
202,
377,
202,
45,
2
] |
item.setText( "<<" );
|
item.setImage( UIHelper.getImage( "icons/obj16/arrow.gif" ) );
|
private ToolBar createCloseButton( Composite parent ) { ToolBar toolBar = new ToolBar( parent, SWT.FLAT | SWT.NO_FOCUS ); toolBar.setLayoutData( new GridData( GridData.HORIZONTAL_ALIGN_CENTER ) ); final Cursor cursor = new Cursor( parent.getDisplay( ), SWT.CURSOR_HAND ); toolBar.setCursor( cursor ); toolBar.addDisposeListener( new DisposeListener( ) { public void widgetDisposed( DisposeEvent e ) { cursor.dispose( ); } } ); ToolItem item = new ToolItem( toolBar, SWT.NONE ); item.setText( "<<" ); //$NON-NLS-1$ item.setToolTipText( Messages.getString( "AbstractPopupSheet.Label.Close" ) ); //$NON-NLS-1$ item.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { if ( cmpTop != null && !cmpTop.isDisposed( ) ) { cmpTop.getShell( ).close( ); } } } ); return toolBar; }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/51342f37efb819d66eb6bfa56ebaba4fb7f4fa8b/AbstractPopupSheet.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/format/popup/AbstractPopupSheet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
13288,
5190,
752,
4605,
3616,
12,
14728,
982,
262,
202,
95,
202,
202,
6364,
5190,
5226,
5190,
273,
394,
13288,
5190,
12,
982,
16,
348,
8588,
18,
42,
12190,
571,
348,
8588,
18,
3417,
67,
3313,
39,
3378,
11272,
202,
202,
6738,
5190,
18,
542,
3744,
751,
12,
394,
7145,
751,
12,
7145,
751,
18,
44,
20344,
67,
26439,
67,
19835,
262,
11272,
202,
202,
6385,
13949,
3347,
273,
394,
13949,
12,
982,
18,
588,
4236,
12,
262,
16,
348,
8588,
18,
7509,
55,
916,
67,
12346,
11272,
202,
202,
6738,
5190,
18,
542,
6688,
12,
3347,
11272,
202,
202,
6738,
5190,
18,
1289,
1669,
4150,
2223,
12,
394,
3035,
4150,
2223,
12,
262,
288,
1082,
202,
482,
918,
3604,
1669,
7423,
12,
3035,
4150,
1133,
425,
262,
1082,
202,
95,
9506,
202,
9216,
18,
2251,
4150,
12,
11272,
1082,
202,
97,
202,
202,
97,
11272,
202,
202,
6364,
1180,
761,
273,
394,
13288,
1180,
12,
5226,
5190,
16,
348,
8588,
18,
9826,
11272,
202,
202,
1726,
18,
542,
2040,
12,
6484,
2276,
18,
588,
2040,
12,
315,
14516,
19,
2603,
2313,
19,
7815,
18,
13905,
6,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
1726,
18,
542,
29250,
1528,
12,
4838,
18,
588,
780,
12,
315,
7469,
13770,
8229,
18,
2224,
18,
4605,
6,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
1726,
18,
1289,
6233,
2223,
12,
394,
12977,
4216,
12,
262,
288,
1082,
202,
482,
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,
13288,
5190,
752,
4605,
3616,
12,
14728,
982,
262,
202,
95,
202,
202,
6364,
5190,
5226,
5190,
273,
394,
13288,
5190,
12,
982,
16,
348,
8588,
18,
42,
12190,
571,
348,
8588,
18,
3417,
67,
3313,
39,
3378,
11272,
202,
202,
6738,
5190,
18,
542,
3744,
751,
12,
394,
7145,
751,
12,
7145,
751,
18,
44,
20344,
67,
26439,
67,
19835,
262,
11272,
202,
202,
6385,
13949,
3347,
273,
394,
13949,
12,
982,
18,
588,
4236,
12,
262,
16,
348,
8588,
18,
7509,
55,
916,
67,
12346,
11272,
202,
202,
6738,
5190,
18,
542,
6688,
12,
3347,
11272,
202,
202,
6738,
5190,
18,
1289,
1669,
4150,
2223,
12,
394,
3035,
4150,
2223,
12,
262,
288,
1082,
2
] |
} catch (IllegalAccessException iaExcptn) { } catch (IllegalArgumentException iaExcptn) { } catch (InvocationTargetException itExcptn) {
|
} catch (IllegalAccessException ex) { throw new RaiseException(ruby, "RuntimeError", ex.getMessage()); } catch (IllegalArgumentException ex) { throw new RaiseException(ruby, "RuntimeError", ex.getMessage()); } catch (InvocationTargetException ex) { throw new RaiseException(ruby, "RuntimeError", ex.getMessage());
|
public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { LinkedList executeMethods = new LinkedList(Arrays.asList(methods)); int argsLength = args != null ? args.length : 0; // remove mehods with wrong parameter count. Iterator iter = executeMethods.iterator(); while (iter.hasNext()) { Method method = (Method)iter.next(); if (method.getParameterTypes().length != argsLength) { iter.remove(); } } // remove mehods with wrong parameter types. iter = executeMethods.iterator(); while (iter.hasNext()) { Method method = (Method)iter.next(); for (int i = 0; i < method.getParameterTypes().length; i++) { if (!JavaUtil.isCompatible(args[i], method.getParameterTypes()[i])) { iter.remove(); break; } } } if (executeMethods.isEmpty()) { throw new RubyArgumentException(ruby, "wrong arguments."); } // take the first method. Method method = (Method)executeMethods.getFirst(); Object[] newArgs = new Object[argsLength]; for (int i = 0; i < argsLength; i++) { newArgs[i] = JavaUtil.convertRubyToJava(ruby, args[i], method.getParameterTypes()[i]); } try { Object obj = !singleton ? ((RubyJavaObject)recv).getValue() : null; Object result = method.invoke(obj, newArgs); return JavaUtil.convertJavaToRuby(ruby, result, method.getReturnType()); } catch (IllegalAccessException iaExcptn) { } catch (IllegalArgumentException iaExcptn) { } catch (InvocationTargetException itExcptn) { } return ruby.getNil(); }
|
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/0a7181933af700ea8025a4197f3a5ebcc08333c3/JavaMethod.java/clean/org/jruby/javasupport/JavaMethod.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
1836,
12,
54,
10340,
921,
10665,
16,
19817,
921,
8526,
833,
16,
19817,
22155,
13,
288,
3639,
10688,
1836,
4712,
273,
394,
10688,
12,
12726,
18,
345,
682,
12,
5163,
10019,
7734,
509,
833,
1782,
273,
833,
480,
446,
692,
833,
18,
2469,
294,
374,
31,
7734,
368,
1206,
1791,
76,
369,
87,
598,
7194,
1569,
1056,
18,
3639,
4498,
1400,
273,
1836,
4712,
18,
9838,
5621,
3639,
1323,
261,
2165,
18,
5332,
2134,
10756,
288,
5411,
2985,
707,
273,
261,
1305,
13,
2165,
18,
4285,
5621,
5411,
309,
261,
2039,
18,
588,
1662,
2016,
7675,
2469,
480,
833,
1782,
13,
288,
7734,
1400,
18,
4479,
5621,
5411,
289,
3639,
289,
7734,
368,
1206,
1791,
76,
369,
87,
598,
7194,
1569,
1953,
18,
3639,
1400,
273,
1836,
4712,
18,
9838,
5621,
3639,
1323,
261,
2165,
18,
5332,
2134,
10756,
288,
5411,
2985,
707,
273,
261,
1305,
13,
2165,
18,
4285,
5621,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
707,
18,
588,
1662,
2016,
7675,
2469,
31,
277,
27245,
288,
7734,
309,
16051,
5852,
1304,
18,
291,
14599,
12,
1968,
63,
77,
6487,
707,
18,
588,
1662,
2016,
1435,
63,
77,
22643,
288,
10792,
1400,
18,
4479,
5621,
10792,
898,
31,
7734,
289,
5411,
289,
3639,
289,
7734,
309,
261,
8837,
4712,
18,
291,
1921,
10756,
288,
5411,
604,
394,
19817,
1878,
12,
27768,
16,
315,
21530,
1775,
1199,
1769,
3639,
289,
7734,
368,
4862,
326,
1122,
707,
18,
3639,
2985,
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,
19817,
921,
1836,
12,
54,
10340,
921,
10665,
16,
19817,
921,
8526,
833,
16,
19817,
22155,
13,
288,
3639,
10688,
1836,
4712,
273,
394,
10688,
12,
12726,
18,
345,
682,
12,
5163,
10019,
7734,
509,
833,
1782,
273,
833,
480,
446,
692,
833,
18,
2469,
294,
374,
31,
7734,
368,
1206,
1791,
76,
369,
87,
598,
7194,
1569,
1056,
18,
3639,
4498,
1400,
273,
1836,
4712,
18,
9838,
5621,
3639,
1323,
261,
2165,
18,
5332,
2134,
10756,
288,
5411,
2985,
707,
273,
261,
1305,
13,
2165,
18,
4285,
5621,
5411,
309,
261,
2039,
18,
588,
1662,
2016,
7675,
2469,
480,
833,
1782,
13,
288,
7734,
1400,
18,
4479,
5621,
5411,
289,
3639,
289,
7734,
368,
1206,
1791,
2
] |
IResource resource = (IResource) ((IAdaptable) element).getAdapter(IResource.class); return TasksUiPlugin.getDefault().getRepositoryForResource(resource, true);
|
IAdaptable adaptable = (IAdaptable) element; IResource resource = (IResource) adaptable.getAdapter(IResource.class); if(resource!=null) { return TasksUiPlugin.getDefault().getRepositoryForResource(resource, true); } else { ITask task = (ITask) adaptable.getAdapter(ITask.class); if(task instanceof AbstractRepositoryTask) { AbstractRepositoryTask rtask = (AbstractRepositoryTask) task; return getRepository(rtask.getRepositoryUrl(), rtask.getRepositoryKind()); } }
|
protected TaskRepository getSelectedRepository() { IStructuredSelection selection = getSelection(); if (selection == null) { return (TaskRepository) viewer.getElementAt(0); } Object element = selection.getFirstElement(); if (element instanceof AbstractRepositoryQuery) { AbstractRepositoryQuery query = (AbstractRepositoryQuery) element; return getRepository(query.getRepositoryUrl(), query.getRepositoryKind()); } else if (element instanceof AbstractQueryHit) { AbstractQueryHit queryHit = (AbstractQueryHit) element; if (queryHit.getParent() != null) { return getRepository(queryHit.getRepositoryUrl(), queryHit.getParent().getRepositoryKind()); } else { return TasksUiPlugin.getRepositoryManager().getRepository(queryHit.getRepositoryUrl()); } } else if (element instanceof AbstractRepositoryTask) { AbstractRepositoryTask task = (AbstractRepositoryTask) element; return getRepository(task.getRepositoryUrl(), task.getRepositoryKind()); } else if (element instanceof IResource) { IResource resource = (IResource) element; return TasksUiPlugin.getDefault().getRepositoryForResource(resource, true); } else if( element instanceof IAdaptable) { IResource resource = (IResource) ((IAdaptable) element).getAdapter(IResource.class); return TasksUiPlugin.getDefault().getRepositoryForResource(resource, true); } // TODO mapping between LogEntry.pliginId and repositories // TODO handle other selection types return null; }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/b43f749bb254b908528b6fa418964929c79c7ba4/SelectRepositoryPage.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/SelectRepositoryPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
3837,
3305,
16625,
3305,
1435,
288,
202,
202,
45,
30733,
6233,
4421,
273,
23204,
5621,
202,
202,
430,
261,
10705,
422,
446,
13,
288,
1082,
202,
2463,
261,
2174,
3305,
13,
14157,
18,
21336,
861,
12,
20,
1769,
202,
202,
97,
202,
202,
921,
930,
273,
4421,
18,
588,
3759,
1046,
5621,
202,
202,
430,
261,
2956,
1276,
4115,
3305,
1138,
13,
288,
1082,
202,
7469,
3305,
1138,
843,
273,
261,
7469,
3305,
1138,
13,
930,
31,
1082,
202,
2463,
8261,
12,
2271,
18,
588,
3305,
1489,
9334,
843,
18,
588,
3305,
5677,
10663,
202,
202,
97,
469,
309,
261,
2956,
1276,
4115,
1138,
13616,
13,
288,
1082,
202,
7469,
1138,
13616,
843,
13616,
273,
261,
7469,
1138,
13616,
13,
930,
31,
1082,
202,
430,
261,
2271,
13616,
18,
588,
3054,
1435,
480,
446,
13,
288,
9506,
202,
2463,
8261,
12,
2271,
13616,
18,
588,
3305,
1489,
9334,
843,
13616,
18,
588,
3054,
7675,
588,
3305,
5677,
10663,
1082,
202,
97,
469,
288,
9506,
202,
2463,
20350,
13943,
3773,
18,
588,
3305,
1318,
7675,
588,
3305,
12,
2271,
13616,
18,
588,
3305,
1489,
10663,
1082,
202,
97,
202,
202,
97,
469,
309,
261,
2956,
1276,
4115,
3305,
2174,
13,
288,
1082,
202,
7469,
3305,
2174,
1562,
273,
261,
7469,
3305,
2174,
13,
930,
31,
1082,
202,
2463,
8261,
12,
4146,
18,
588,
3305,
1489,
9334,
1562,
18,
588,
3305,
5677,
10663,
202,
202,
97,
469,
309,
261,
2956,
1276,
467,
1420,
13,
288,
1082,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
3837,
3305,
16625,
3305,
1435,
288,
202,
202,
45,
30733,
6233,
4421,
273,
23204,
5621,
202,
202,
430,
261,
10705,
422,
446,
13,
288,
1082,
202,
2463,
261,
2174,
3305,
13,
14157,
18,
21336,
861,
12,
20,
1769,
202,
202,
97,
202,
202,
921,
930,
273,
4421,
18,
588,
3759,
1046,
5621,
202,
202,
430,
261,
2956,
1276,
4115,
3305,
1138,
13,
288,
1082,
202,
7469,
3305,
1138,
843,
273,
261,
7469,
3305,
1138,
13,
930,
31,
1082,
202,
2463,
8261,
12,
2271,
18,
588,
3305,
1489,
9334,
843,
18,
588,
3305,
5677,
10663,
202,
202,
97,
469,
309,
261,
2956,
1276,
4115,
1138,
13616,
13,
288,
1082,
202,
7469,
1138,
13616,
843,
13616,
273,
261,
2
] |
doSetLocationsExposure(entity, game.board.getHex(curPos), game.board.getHex(curPos).surface() <= entity.getElevation(), false);
|
doSetLocationsExposure(entity, game.getBoard().getHex(curPos), game.getBoard().getHex(curPos).surface() <= entity.getElevation(), false);
|
private void processMovement(Entity entity, MovePath md) { // check for fleeing if (md.contains(MovePath.STEP_FLEE)) { // Unit has fled the battlefield. phaseReport.append("\n" ).append( entity.getDisplayName() ).append( " flees the battlefield.\n"); // Is the unit carrying passengers? final Vector passengers = entity.getLoadedUnits(); if ( !passengers.isEmpty() ) { final Enumeration iter = passengers.elements(); while ( iter.hasMoreElements() ) { final Entity passenger = (Entity) iter.nextElement(); // Unit has fled the battlefield. phaseReport.append( " It carries " ) .append( passenger.getDisplayName() ) .append( " with it.\n" ); game.removeEntity( passenger.getId(), Entity.REMOVE_IN_RETREAT ); send( createRemoveEntityPacket(passenger.getId(), Entity.REMOVE_IN_RETREAT) ); } } // Handle any picked up MechWarriors Enumeration iter = entity.getPickedUpMechWarriors().elements(); while (iter.hasMoreElements() ) { Integer mechWarriorId = (Integer)iter.nextElement(); Entity mw = game.getEntity(mechWarriorId.intValue()); // Is the MechWarrior an enemy? int condition = Entity.REMOVE_IN_RETREAT; String leavingText = "carries "; if (mw.isCaptured()) { condition = Entity.REMOVE_CAPTURED; leavingText = "takes "; } game.removeEntity( mw.getId(), condition ); send( createRemoveEntityPacket(mw.getId(), condition) ); phaseReport.append( " It " ) .append( leavingText ) .append( mw.getDisplayName() ) .append( " with it.\n" ); } // Is the unit being swarmed? final int swarmerId = entity.getSwarmAttackerId(); if ( Entity.NONE != swarmerId ) { final Entity swarmer = game.getEntity( swarmerId ); // Has the swarmer taken a turn? if ( !swarmer.isDone() ) { // Dead entities don't take turns. game.removeTurnFor(swarmer); send(createTurnVectorPacket()); } // End swarmer-still-to-move // Unit has fled the battlefield. swarmer.setSwarmTargetId( Entity.NONE ); entity.setSwarmAttackerId( Entity.NONE ); phaseReport.append( " It takes " ) .append( swarmer.getDisplayName() ) .append( " with it.\n" ); game.removeEntity( swarmerId, Entity.REMOVE_CAPTURED ); send( createRemoveEntityPacket(swarmerId, Entity.REMOVE_CAPTURED) ); } game.removeEntity( entity.getId(), Entity.REMOVE_IN_RETREAT ); send( createRemoveEntityPacket(entity.getId(), Entity.REMOVE_IN_RETREAT) ); return; } if (md.contains(MovePath.STEP_EJECT)) { phaseReport.append("\n" ); if (entity instanceof Mech) { phaseReport.append( entity.getDisplayName()).append( " ejects.\n"); } else if (entity instanceof Tank) { phaseReport.append( entity.getDisplayName()).append( " is abandoned by its crew.\n"); } phaseReport.append(ejectEntity(entity, false)); return; } // okay, proceed with movement calculations Coords lastPos = entity.getPosition(); Coords curPos = entity.getPosition(); int curFacing = entity.getFacing(); int distance = 0; int mpUsed = 0; int moveType = Entity.MOVE_NONE; int overallMoveType = Entity.MOVE_NONE; // if the entity already used some MPs, // it previously tried to get up and fell, // and then got another turn. set moveType // and overallMoveType accordingly if (entity.mpUsed > 0) { moveType = Entity.MOVE_WALK; overallMoveType = Entity.MOVE_WALK; if (entity.mpUsed > entity.getWalkMP()) { moveType = Entity.MOVE_RUN; overallMoveType = Entity.MOVE_RUN; } } boolean firstStep; boolean wasProne; boolean fellDuringMovement; int prevFacing = curFacing; IHex prevHex = null; final boolean isInfantry = (entity instanceof Infantry); AttackAction charge = null; PilotingRollData rollTarget; // cache this here, otherwise changing MP in the turn causes // errorneous gravity PSRs int cachedGravityLimit = (Entity.MOVE_JUMP == moveType)? entity.getOriginalJumpMP() : entity.getRunMP(false); // Compile the move md.compile(game, entity); if (md.contains(MovePath.STEP_CLEAR_MINEFIELD)) { ClearMinefieldAction cma = new ClearMinefieldAction(entity.getId()); entity.setClearingMinefield(true); game.addAction(cma); } // check for MASC failure if (entity instanceof Mech) { if (((Mech)entity).checkForMASCFailure(phaseReport,md)) { // no movement after that md.clear(); } } overallMoveType = md.getLastStepMovementType(); // iterate through steps firstStep = true; fellDuringMovement = false; /* Bug 754610: Revert fix for bug 702735. */ MoveStep prevStep = null; Vector movePath = new Vector(); for (final Enumeration i = md.getSteps(); i.hasMoreElements();) { final MoveStep step = (MoveStep)i.nextElement(); wasProne = entity.isProne(); boolean isPavementStep = step.isPavementStep(); boolean entityFellWhileAttemptingToStand = false; // stop for illegal movement if (step.getMovementType() == Entity.MOVE_ILLEGAL) { break; } // check piloting skill for getting up rollTarget = entity.checkGetUp(step); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { entity.heatBuildup += 1; entity.setProne(false); wasProne = false; game.resetPSRs(entity); entityFellWhileAttemptingToStand = !doSkillCheckInPlace(entity, rollTarget); } // did the entity just fall? if (entityFellWhileAttemptingToStand) { moveType = step.getMovementType(); curFacing = entity.getFacing(); curPos = entity.getPosition(); mpUsed = step.getMpUsed(); fellDuringMovement = true; break; } if (step.getType() == MovePath.STEP_UNJAM_RAC) { entity.setUnjammingRAC(true); game.addAction(new UnjamAction(entity.getId())); break; } // set most step parameters moveType = step.getMovementType(); distance = step.getDistance(); mpUsed = step.getMpUsed(); // check for charge if (step.getType() == MovePath.STEP_CHARGE) { if (entity.canCharge()) { checkExtremeGravityMovement(entity, step, curPos, cachedGravityLimit); Targetable target = step.getTarget( game ); ChargeAttackAction caa = new ChargeAttackAction(entity.getId(), target.getTargetType(), target.getTargetId(), target.getPosition()); entity.setDisplacementAttack(caa); game.addCharge(caa); charge = caa; } else { sendServerChat("Illegal charge!! I don't think "+entity.getDisplayName() +" should be allowed to charge,"+ " but the client of "+entity.getOwner().getName()+" disagrees."); sendServerChat("Please make sure "+entity.getOwner().getName()+" is running MegaMek "+MegaMek.VERSION+ ", or if that is already the case, submit a bug report at http://megamek.sf.net/"); return; }; break; } // check for dfa if (step.getType() == MovePath.STEP_DFA) { if (entity.canDFA()) { checkExtremeGravityMovement(entity, step, curPos, cachedGravityLimit); Targetable target = step.getTarget( game ); DfaAttackAction daa = new DfaAttackAction(entity.getId(), target.getTargetType(), target.getTargetId(), target.getPosition()); entity.setDisplacementAttack(daa); game.addCharge(daa); charge = daa; } else { sendServerChat("Illegal DFA!! I don't think "+entity.getDisplayName() +" should be allowed to DFA,"+ " but the client of "+entity.getOwner().getName()+" disagrees."); sendServerChat("Please make sure "+entity.getOwner().getName()+" is running MegaMek "+MegaMek.VERSION+ ", or if that is already the case, submit a bug report at http://megamek.sf.net/"); return; }; break; } // set last step parameters curPos = step.getPosition(); curFacing = step.getFacing(); final IHex curHex = game.board.getHex(curPos); // Check for skid. rollTarget = entity.checkSkid(moveType, prevHex, overallMoveType, prevStep, prevFacing, curFacing, lastPos, curPos, isInfantry, distance); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { // Have an entity-meaningful PSR message. boolean psrPassed = true; if ( entity instanceof Mech ) { psrPassed = doSkillCheckWhileMoving( entity, lastPos, lastPos, rollTarget, true ); } else { psrPassed = doSkillCheckWhileMoving( entity, lastPos, lastPos, rollTarget, false ); } // Does the entity skid? if ( !psrPassed ){ curPos = lastPos; Coords nextPos = curPos; IHex nextHex = null; int skidDistance = 0; Enumeration targets = null; Entity target = null; int curElevation; int nextElevation; // All charge damage is based upon // the pre-skid move distance. entity.delta_distance = distance-1; // Attacks against a skidding target have additional +2. moveType = Entity.MOVE_SKID; // What is the first hex in the skid? nextPos = curPos.translated( prevFacing ); nextHex = game.board.getHex( nextPos ); // Move the entity a number hexes from curPos in the // prevFacing direction equal to half the distance moved // this turn (rounded up), unless something intervenes. for ( skidDistance = 0; skidDistance < (int) Math.ceil(entity.delta_distance / 2.0); skidDistance++ ) { // Is the next hex off the board? if ( !game.board.contains(nextPos) ) { // Can the entity skid off the map? if (game.getOptions().booleanOption("push_off_board")) { // Yup. One dead entity. game.removeEntity(entity.getId(), Entity.REMOVE_PUSHED); send(createRemoveEntityPacket(entity.getId(), Entity.REMOVE_PUSHED)); phaseReport.append("*** " ) .append( entity.getDisplayName() ) .append( " has skidded off the field. ***\n"); // TODO: remove passengers and swarmers. // The entity's movement is completed. return; } else { // Nope. Update the report. phaseReport.append(" Can't skid off the field.\n"); } // Stay in the current hex and stop skidding. break; } // Can the skiding entity enter the next hex from this? // N.B. can skid along roads. if ( ( entity.isHexProhibited(curHex) || entity.isHexProhibited(nextHex) ) && !Compute.canMoveOnPavement(game, curPos, nextPos) ) { // Update report. phaseReport.append( " Can't skid into hex " ) .append( nextPos.getBoardNum() ) .append( ".\n" ); // N.B. the BMRr pg. 22 says that the unit // "crashes" into the terrain but it doesn't // mention any damage. // Stay in the current hex and stop skidding. break; } // Hovercraft can "skid" over water. // TODO: allow entities to occupy different levels of // buildings. curElevation = curHex.floor(); nextElevation = nextHex.floor(); if ( entity instanceof Tank && entity.getMovementType() == Entity.MovementType.HOVER ) { ITerrain land = curHex. getTerrain(Terrains.WATER); if ( land != null ) { curElevation += land.getLevel(); } land = nextHex.getTerrain(Terrains.WATER); if ( land != null ) { nextElevation += land.getLevel(); } } // BMRr pg. 22 - Can't skid uphill, // but can skid downhill. if ( curElevation < nextElevation ) { phaseReport.append ( " Can not skid uphill into hex " + nextPos.getBoardNum() ).append( ".\n" ); // Stay in the current hex and stop skidding. break; } // Have skidding units suffer falls. else if ( curElevation > nextElevation + 1 ) { doEntityFallsInto( entity, curPos, nextPos, entity.getBasePilotingRoll() ); doEntityDisplacementMinefieldCheck(entity, curPos, nextPos); // Stay in the current hex and stop skidding. break; } // Get any building in the hex. Building bldg = game.board.getBuildingAt(nextPos); boolean bldgSuffered = false; boolean stopTheSkid = false; // Does the next hex contain an entities? // ASSUMPTION: hurt EVERYONE in the hex. // TODO: allow entities to occupy different levels of // buildings, and only skid into a single level. targets = game.getEntities( nextPos ); if ( targets.hasMoreElements()) { boolean skidChargeHit = false; while ( targets.hasMoreElements() ) { target = (Entity) targets.nextElement(); // TODO : allow ready targets to move out of way // Mechs and vehicles get charged, // but need to make a to-hit roll if ( !(target instanceof Infantry) ) { ChargeAttackAction caa = new ChargeAttackAction(entity.getId(), target.getTargetType(), target.getTargetId(), target.getPosition()); ToHitData toHit = caa.toHit(game, true); // Calculate hit location. if ( entity instanceof Tank && entity.getMovementType() == Entity.MovementType.HOVER && 0 < nextHex.terrainLevel(Terrains.WATER) ) { if ( 2 <= nextHex.terrainLevel(Terrains.WATER) || target.isProne() ) { // Hovercraft can't hit the Mek. continue; } else { toHit.setHitTable(ToHitData.HIT_PUNCH); } } else if ( entity.getHeight() < target.getHeight() ) { toHit.setHitTable(ToHitData.HIT_KICK); } else { toHit.setHitTable(ToHitData.HIT_NORMAL); } toHit.setSideTable (Compute.targetSideTable(entity, target)); // roll int roll = Compute.d6(2); // Update report. phaseReport.append( " Skids into " + target.getShortName() + " in hex " + nextPos.getBoardNum() ); if (toHit.getValue() == ToHitData.IMPOSSIBLE) { roll = -12; phaseReport.append(", but the charge is impossible (" ).append( toHit.getDesc() ).append( ") : "); } else if (toHit.getValue() == ToHitData.AUTOMATIC_SUCCESS) { phaseReport.append(", the charge is an automatic hit (" ).append( toHit.getDesc() ).append( "), "); roll = Integer.MAX_VALUE; } else { // report the roll phaseReport.append("; needs " ).append( toHit.getValue() ).append( ", "); phaseReport.append("rolls " ).append( roll ).append( " : "); } // Resolve a charge against the target. // ASSUMPTION: buildings block damage for // *EACH* entity charged. if (roll < toHit.getValue()) { phaseReport.append("misses.\n"); } else { // Resolve the charge. resolveChargeDamage (entity, target, toHit, prevFacing); // HACK: set the entity's location // to the original hex again, for the other targets if (targets.hasMoreElements()) { entity.setPosition(curPos); } bldgSuffered = true; skidChargeHit = true; } // The skid ends here if the target lives. if ( !target.isDoomed() && !target.isDestroyed() && !game.isOutOfGame(target) ) { stopTheSkid = true; } // if we don't do this here, // we can have a mech without a leg // standing on the field and moving // as if it still had his leg after // getting skid-charged. if (!target.isDone()) { resolvePilotingRolls(target); game.resetPSRs(target); target.applyDamage(); phaseReport.append("\n"); } } // Resolve "move-through" damage on infantry. // Infantry inside of a building don't get a // move-through, but suffer "bleed through" // from the building. else if ( bldg != null ) { // Update report. phaseReport.append( " Skids through " + target.getShortName() + " in hex " + nextPos.getBoardNum() + "... " ); // Infantry don't have different // tables for punches and kicks HitData hit = target.rollHitLocation( ToHitData.HIT_NORMAL, Compute.targetSideTable(entity, target) ); // Damage equals tonnage, divided by 5. // ASSUMPTION: damage is applied in one hit. phaseReport.append( damageEntity(target, hit, (int)Math.round(entity.getWeight()/5)) ); phaseReport.append( "\n" ); } // End handle-infantry // Has the target been destroyed? if ( target.isDoomed() ) { // Has the target taken a turn? if ( !target.isDone() ) { // Dead entities don't take turns. game.removeTurnFor(target); send(createTurnVectorPacket()); } // End target-still-to-move // Clean out the entity. target.setDestroyed(true); game.moveToGraveyard(target.getId()); send(createRemoveEntityPacket(target.getId())); } // Update the target's position, // unless it is off the game map. if ( !game.isOutOfGame(target) ) { entityUpdate( target.getId() ); } } // Check the next entity in the hex. // if we missed all the entities in the hex, // move attacker to side hex if (!skidChargeHit) { Coords src = entity.getPosition(); Coords dest = Compute.getMissedChargeDisplacement (game, entity.getId(), src, prevFacing); doEntityDisplacement(entity, src, dest, null); } else { // HACK: otherwise, set the entities position to that // hex's coords, because we had to move the entity // back earlier for the other targets entity.setPosition(nextPos); } } // Handle the building in the hex. // TODO : BMRr pg. 22, only count buildings that are // higher than our starting terrain height. // TODO: allow units to skid on top of buildings. if ( bldg != null ) { // Report that the entity has entered the bldg. phaseReport.append( " Skids into " ) .append( bldg.getName() ) .append( " in hex " ) .append( nextPos.getBoardNum() ) .append( ".\n" ); // If the building hasn't already suffered // damage, then apply charge damage to the // building and displace the entity inside. // ASSUMPTION: you don't charge the building // if Tanks or Mechs were charged. int chargeDamage = ChargeAttackAction.getDamageFor ( entity ); if ( !bldgSuffered ) { phaseReport.append( " " ) .append( damageBuilding( bldg, chargeDamage ) ); // Apply damage to the attacker. int toAttacker = ChargeAttackAction.getDamageTakenBy ( entity, bldg ); HitData hit = entity.rollHitLocation( ToHitData.HIT_NORMAL, Compute.targetSideTable(curPos, nextPos, entity.getFacing(), false) ); phaseReport.append( this.damageEntity( entity, hit, toAttacker ) ) .append( "\n" ); entity.setPosition( nextPos ); doEntityDisplacementMinefieldCheck(entity, curPos, nextPos); curPos = nextPos; } // End buildings-suffer-too // Any infantry in the building take damage // equal to the building being charged. // ASSUMPTION: infantry take no damage from the // building absorbing damage from // Tanks and Mechs being charged. damageInfantryIn( bldg, chargeDamage ); // If a building still stands, then end the skid, // and add it to the list of affected buildings. if ( bldg.getCurrentCF() > 0 ) { stopTheSkid = true; this.addAffectedBldg( bldg, false ); } } // End handle-building. // Do we stay in the current hex and stop skidding? if ( stopTheSkid ) { break; } // is the next hex a rubble hex? rollTarget = entity.checkRubbleMove(step, nextHex, curPos, nextPos); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { doSkillCheckWhileMoving(entity, curPos, nextPos, rollTarget, true); if (entity.isProne()) { // if we fell, stop the skid (see bug 1115608) break; } } // is the next hex a swamp? rollTarget = entity.checkSwampMove(step, nextHex, curPos, nextPos); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { if (!doSkillCheckWhileMoving(entity, curPos, nextPos, rollTarget, false)){ entity.setStuck(true); phaseReport.append("\n").append( entity.getDisplayName()).append( " gets stuck in the swamp.\n"); // stay here and stop skidding, see bug 1115608 break; } } // Update the position and keep skidding. entity.setPosition( nextPos ); doEntityDisplacementMinefieldCheck(entity, curPos, nextPos); curPos = nextPos; phaseReport.append( " Skids into hex " ).append( curPos.getBoardNum() ).append( ".\n" ); // Get the next hex in the skid? nextPos = nextPos.translated( prevFacing ); nextHex = game.board.getHex( nextPos ); } // Handle the next skid hex. // If the skidding entity violates stacking, // displace targets until it doesn't. curPos = entity.getPosition(); target = Compute.stackingViolation (game, entity.getId(), curPos); while (target != null) { nextPos = Compute.getValidDisplacement (game, target.getId(), target.getPosition(), prevFacing); // ASSUMPTION // There should always be *somewhere* that // the target can go... last skid hex if // nothing else is available. if ( null == nextPos ) { // But I don't trust the assumption fully. // Report the error and try to continue. System.err.println( "The skid of " + entity.getShortName() + " should displace " + target.getShortName() + " in hex " + curPos.getBoardNum() + " but there is nowhere to go." ); break; } phaseReport.append( " " ); // indent displacement doEntityDisplacement(target, curPos, nextPos, null); doEntityDisplacementMinefieldCheck(entity, curPos, nextPos); target = Compute.stackingViolation( game, entity.getId(), curPos ); } // Mechs suffer damage for every hex skidded. if ( entity instanceof Mech ) { // Calculate one half falling damage times skid length. int damage = skidDistance * (int) Math.ceil(Math.round(entity.getWeight() / 10.0) / 2.0); // report skid damage phaseReport.append(" " ).append( entity.getDisplayName() ).append( " suffers " ).append( damage ).append( " damage from the skid."); // standard damage loop // All skid damage is to the front. while (damage > 0) { int cluster = Math.min(5, damage); HitData hit = entity.rollHitLocation(ToHitData.HIT_NORMAL, ToHitData.SIDE_FRONT); phaseReport.append(damageEntity(entity, hit, cluster)); damage -= cluster; } phaseReport.append( "\n" ); } // Clean up the entity if it has been destroyed. if ( entity.isDoomed() ) { entity.setDestroyed(true); game.moveToGraveyard(entity.getId()); send(createRemoveEntityPacket(entity.getId())); // The entity's movement is completed. return; } // Let the player know the ordeal is over. phaseReport.append( " Skid ends.\n" ); // set entity parameters curFacing = entity.getFacing(); curPos = entity.getPosition(); entity.setSecondaryFacing( curFacing ); // skid consumes all movement if (md.hasActiveMASC()) { mpUsed = entity.getRunMP(); } else { mpUsed = entity.getRunMPwithoutMASC(); } entity.moved = moveType; fellDuringMovement = true; distance = entity.delta_distance; break; } // End failed-skid-psr } // End need-skid-psr // check if we've moved into rubble rollTarget = entity.checkRubbleMove(step, curHex, lastPos, curPos); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { doSkillCheckWhileMoving(entity, lastPos, curPos, rollTarget, true); } // check if we've moved into a swamp rollTarget = entity.checkSwampMove(step, curHex, lastPos, curPos); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { if (!doSkillCheckWhileMoving(entity, lastPos, curPos, rollTarget, false)){ entity.setStuck(true); phaseReport.append("\n" ).append( entity.getDisplayName() ).append( " gets stuck in the swamp.\n"); break; } } // check to see if we are a mech and we've moved OUT of fire if (entity instanceof Mech) { if ( !lastPos.equals(curPos) && game.board.getHex(lastPos).containsTerrain(Terrains.FIRE) && ( step.getMovementType() != Entity.MOVE_JUMP // Bug #828741 -- jumping bypasses fire, but not on the first step // getMpUsed -- total MP used to this step // getMp -- MP used in this step // the difference will always be 0 on the "first step" of a jump, // and >0 on a step in the midst of a jump || ( 0 == step.getMpUsed() - step.getMp() ) ) ) { entity.heatBuildup+=2; phaseReport.append("\n" ).append( entity.getDisplayName() ).append( " passes through a fire. It will generate 2 more heat this round.\n"); } } // check to see if we are not a mech and we've moved INTO fire if (!(entity instanceof Mech)) { if ( game.board.getHex(curPos).containsTerrain(Terrains.FIRE) && !lastPos.equals(curPos) && step.getMovementType() != Entity.MOVE_JUMP ) { doFlamingDeath(entity); } } // check for extreme gravity movement if (!i.hasMoreElements() && !firstStep) { checkExtremeGravityMovement(entity, step, curPos, cachedGravityLimit); } // check for minefields. if ((!lastPos.equals(curPos) && (step.getMovementType() != Entity.MOVE_JUMP)) || ((overallMoveType == Entity.MOVE_JUMP) && (!i.hasMoreElements()))) { checkVibrabombs(entity, curPos, false, lastPos, curPos); if (game.containsMinefield(curPos)) { Enumeration minefields = game.getMinefields(curPos).elements(); while (minefields.hasMoreElements()) { Minefield mf = (Minefield) minefields.nextElement(); switch (mf.getType()) { case (Minefield.TYPE_CONVENTIONAL) : case (Minefield.TYPE_THUNDER) : case (Minefield.TYPE_THUNDER_INFERNO) : case (Minefield.TYPE_COMMAND_DETONATED) : if ((step.getMovementType() != Entity.MOVE_JUMP) || (!i.hasMoreElements())) enterMinefield(entity, mf, curPos, curPos, true); break; case (Minefield.TYPE_THUNDER_ACTIVE) : if ((step.getMovementType() != Entity.MOVE_JUMP) || (!i.hasMoreElements())) enterMinefield(entity, mf, curPos, curPos, true); else enterMinefield(entity, mf, curPos, curPos, true, 2); break; } } } } // infantry discovers minefields if they end their move // in a minefield. if (!lastPos.equals(curPos) && !i.hasMoreElements() && isInfantry) { if (game.containsMinefield(curPos)) { Player owner = entity.getOwner(); Enumeration minefields = game.getMinefields(curPos).elements(); while (minefields.hasMoreElements()) { Minefield mf = (Minefield) minefields.nextElement(); if (!owner.containsMinefield(mf)) { phaseReport.append(entity.getShortName() + " discovers a minefield.\n"); revealMinefield(owner, mf); } } } } // check if we've moved into water rollTarget = entity.checkWaterMove(step, curHex, lastPos, curPos, isPavementStep); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { // Swarmers need special handling. final int swarmerId = entity.getSwarmAttackerId(); boolean swarmerDone = true; Entity swarmer = null; if (Entity.NONE != swarmerId) { swarmer = game.getEntity( swarmerId ); swarmerDone = swarmer.isDone(); } // Now do the skill check. doSkillCheckWhileMoving(entity, lastPos, curPos, rollTarget, true); // Swarming infantry platoons may drown. if (curHex.terrainLevel(Terrains.WATER) > 1) { drownSwarmer(entity, curPos); } // Do we need to remove a game turn for the swarmer if (!swarmerDone && ( swarmer.isDoomed() || swarmer.isDestroyed() )) { // We have to diddle with the swarmer's // status to get its turn removed. swarmer.setDone( false ); swarmer.setUnloaded( false ); // Dead entities don't take turns. game.removeTurnFor( swarmer ); send( createTurnVectorPacket() ); // Return the original status. swarmer.setDone( true ); swarmer.setUnloaded( true ); } // check for inferno wash-off checkForWashedInfernos(entity, curPos); } // In water, may or may not be a new hex, neccessary to // check during movement, for breach damage, and always // set dry if appropriate //TODO: possibly make the locations local and set later doSetLocationsExposure(entity, curHex, isPavementStep, step.getMovementType() == Entity.MOVE_JUMP); // Handle loading units. if ( step.getType() == MovePath.STEP_LOAD ) { // Find the unit being loaded. Entity loaded = null; Enumeration entities = game.getEntities( curPos ); while ( entities.hasMoreElements() ) { // Is the other unit friendly and not the current entity? loaded = (Entity)entities.nextElement(); if ( entity.getOwner() == loaded.getOwner() && !entity.equals(loaded) ) { // The moving unit should be able to load the other // unit and the other should be able to have a turn. if ( !entity.canLoad(loaded) || !loaded.isSelectableThisTurn() ) { // Something is fishy in Denmark. System.err.println( entity.getShortName() + " can not load " + loaded.getShortName() ); loaded = null; } else { // Have the deployed unit load the indicated unit. this.loadUnit( entity, loaded ); // Stop looking. break; } } else { // Nope. Discard it. loaded = null; } } // Handle the next entity in this hex. // We were supposed to find someone to load. if ( loaded == null ) { System.err.println( "Could not find unit for " + entity.getShortName() + " to load in " + curPos ); } } // End STEP_LOAD // Handle unloading units. if ( step.getType() == MovePath.STEP_UNLOAD ) { Targetable unloaded = step.getTarget( game ); if ( !this.unloadUnit( entity, unloaded, curPos, curFacing ) ) { System.err.println( "Error! Server was told to unload " + unloaded.getDisplayName() + " from " + entity.getDisplayName() + " into " + curPos.getBoardNum() ); } } // Handle non-infantry moving into a building. if (entity.checkMovementInBuilding(lastPos, curPos, step, curHex, prevHex)) { // Get the building being exited. // TODO: allow units to climb on top of buildings. Building bldgExited = game.board.getBuildingAt( lastPos ); // Get the building being entered. // TODO: allow units to climb on top of buildings. Building bldgEntered = game.board.getBuildingAt( curPos ); // If we're not leaving a building, just handle the "entered". boolean collapsed = false; if ( bldgExited == null ) { collapsed = passBuildingWall( entity, bldgEntered, lastPos, curPos, distance, "entering" ); this.addAffectedBldg( bldgEntered, collapsed ); } // If we're moving withing the same building, just handle // the "within". else if ( bldgExited.equals( bldgEntered ) ) { collapsed = passBuildingWall( entity, bldgEntered, lastPos, curPos, distance, "moving in" ); this.addAffectedBldg( bldgEntered, collapsed ); } // If we have different buildings, roll for each. else if ( bldgExited != null && bldgEntered != null ) { collapsed = passBuildingWall( entity, bldgExited, lastPos, curPos, distance, "exiting" ); this.addAffectedBldg( bldgExited, collapsed ); collapsed = passBuildingWall( entity, bldgEntered, lastPos, curPos, distance, "entering" ); this.addAffectedBldg( bldgEntered, collapsed ); } // Otherwise, just handle the "exited". else { collapsed = passBuildingWall( entity, bldgExited, lastPos, curPos, distance, "exiting" ); this.addAffectedBldg( bldgExited, collapsed ); } // Clean up the entity if it has been destroyed. if ( entity.isDoomed() ) { entity.setDestroyed(true); game.moveToGraveyard(entity.getId()); send(createRemoveEntityPacket(entity.getId())); // The entity's movement is completed. return; } // TODO: what if a building collapses into rubble? } // did the entity just fall? if (!wasProne && entity.isProne()) { curFacing = entity.getFacing(); curPos = entity.getPosition(); mpUsed = step.getMpUsed(); fellDuringMovement = true; break; } // dropping prone intentionally? if (step.getType() == MovePath.STEP_GO_PRONE) { mpUsed = step.getMpUsed(); rollTarget = entity.checkDislodgeSwarmers(); if (rollTarget.getValue() == TargetRoll.CHECK_FALSE) { // Not being swarmed entity.setProne(true); // check to see if we washed off infernos checkForWashedInfernos(entity, curPos); break; } else { // Being swarmed entity.setPosition(curPos); if (doDislodgeSwarmerSkillCheck(entity, rollTarget, curPos)) { // Entity falls curFacing = entity.getFacing(); curPos = entity.getPosition(); fellDuringMovement = true; break; } } } // What the *heck* is this??? movePath.addElement (new Integer(curPos.hashCode() ^ (curFacing << 16))); // update lastPos, prevStep, prevFacing & prevHex lastPos = new Coords(curPos); prevStep = step; /* Bug 754610: Revert fix for bug 702735. if (prevHex != null && !curHex.equals(prevHex)) { */ if (!curHex.equals(prevHex)) { prevFacing = curFacing; } prevHex = curHex; firstStep = false; } // set entity parameters entity.setPosition(curPos); entity.setFacing(curFacing); entity.setSecondaryFacing(curFacing); entity.delta_distance = distance; entity.moved = moveType; entity.mpUsed = mpUsed; // if we ran with destroyed hip or gyro, we need a psr rollTarget = entity.checkRunningWithDamage(overallMoveType); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { doSkillCheckInPlace(entity, rollTarget); } // but the danger isn't over yet! landing from a jump can be risky! if (overallMoveType == Entity.MOVE_JUMP && !entity.isMakingDfa()) { // check for damaged criticals rollTarget = entity.checkLandingWithDamage(); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { doSkillCheckInPlace(entity, rollTarget); } // jumped into water? int waterLevel = game.board.getHex(curPos).terrainLevel(Terrains.WATER); rollTarget = entity.checkWaterMove(waterLevel); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { doSkillCheckInPlace(entity, rollTarget); } if (waterLevel > 1) { // Any swarming infantry will be destroyed. drownSwarmer(entity, curPos); } // jumped into swamp? maybe stuck! if (game.board.getHex(curPos).containsTerrain(Terrains.SWAMP)) { if (entity instanceof Mech) { entity.setStuck(true); phaseReport.append("\n" ).append( entity.getDisplayName() ).append( " jumps into the swamp and gets stuck.\n"); } else if (entity instanceof Infantry) { PilotingRollData roll = entity.getBasePilotingRoll(); roll.addModifier(5, "infantry jumping into swamp"); if (!doSkillCheckWhileMoving(entity, curPos, curPos, roll, false)) { entity.setStuck(true); phaseReport.append("\n" ).append( entity.getDisplayName() ).append( " gets stuck in the swamp.\n"); } } } // If the entity is being swarmed, jumping may dislodge the fleas. final int swarmerId = entity.getSwarmAttackerId(); if ( Entity.NONE != swarmerId ) { final Entity swarmer = game.getEntity( swarmerId ); final PilotingRollData roll = entity.getBasePilotingRoll(); // Add a +4 modifier. roll.addModifier( 4, "dislodge swarming infantry" ); // If the swarmer has Assault claws, give a 1 modifier. // We can stop looking when we find our first match. for ( Enumeration iter = swarmer.getMisc(); iter.hasMoreElements(); ) { Mounted mount = (Mounted) iter.nextElement(); EquipmentType equip = mount.getType(); if ( BattleArmor.ASSAULT_CLAW.equals (equip.getInternalName()) ) { roll.addModifier( 1, "swarmer has assault claws" ); break; } } // okay, print the info phaseReport.append("\n") .append( entity.getDisplayName() ) .append( " tries to dislodge swarming infantry.\n" ); // roll final int diceRoll = Compute.d6(2); phaseReport.append("Needs " ).append( roll.getValueAsString() ).append( " [" ).append( roll.getDesc() ).append( "]" ).append( ", rolls " ).append( diceRoll ).append( " : "); if (diceRoll < roll.getValue()) { phaseReport.append("fails.\n"); } else { // Dislodged swarmers don't get turns. game.removeTurnFor( swarmer ); send( createTurnVectorPacket() ); // Update the report and the swarmer's status. phaseReport.append("succeeds.\n"); entity.setSwarmAttackerId( Entity.NONE ); swarmer.setSwarmTargetId( Entity.NONE ); // Did the infantry fall into water? final IHex curHex = game.board.getHex(curPos); if ( curHex.terrainLevel(Terrains.WATER) > 0 ) { // Swarming infantry die. swarmer.setPosition( curPos ); phaseReport.append(" ") .append(swarmer.getDisplayName()) .append(" is dislodged and drowns!") .append(destroyEntity(swarmer, "a watery grave", false)); } else { // Swarming infantry take an 11 point hit. // ASSUMPTION : damage should not be doubled. phaseReport.append(" ") .append(swarmer.getDisplayName()) .append(" is dislodged and suffers 11 damage.") .append( damageEntity(swarmer, swarmer.rollHitLocation(ToHitData.HIT_NORMAL, ToHitData.SIDE_FRONT), 11) ) .append( "\n" ); swarmer.setPosition( curPos ); } entityUpdate( swarmerId ); } // End successful-PSR } // End try-to-dislodge-swarmers // one more check for inferno wash-off checkForWashedInfernos(entity, curPos); } // End entity-is-jumping // update entity's locations' exposure doSetLocationsExposure(entity, game.board.getHex(curPos), game.board.getHex(curPos).surface() <= entity.getElevation(), false); // should we give another turn to the entity to keep moving? if (fellDuringMovement && entity.mpUsed < entity.getRunMP() && entity.isSelectableThisTurn() && !entity.isDoomed()) { entity.applyDamage(); entity.setDone(false); GameTurn newTurn = new GameTurn.SpecificEntityTurn(entity.getOwner().getId(), entity.getId()); game.insertNextTurn(newTurn); // brief everybody on the turn update send(createTurnVectorPacket()); // let everyone know about what just happened roundReport.append(phaseReport.toString()); game.resetPhaseReport(); phaseReport = game.getPhaseReport(); //HACK send(createReportPacket()); } else { entity.setDone(true); } // If the entity is being swarmed, update the attacker's position. final int swarmerId = entity.getSwarmAttackerId(); if ( Entity.NONE != swarmerId ) { final Entity swarmer = game.getEntity( swarmerId ); swarmer.setPosition( curPos ); // If the hex is on fire, and the swarming infantry is // *not* Battle Armor, it drops off. if ( !(swarmer instanceof BattleArmor) && game.board.getHex(curPos).containsTerrain(Terrains.FIRE) ) { swarmer.setSwarmTargetId( Entity.NONE ); entity.setSwarmAttackerId( Entity.NONE ); phaseReport.append( "\n " ) .append( swarmer.getShortName() ) .append( " can't stand the fire's heat and drops off.\n" ); } entityUpdate( swarmerId ); } // Update the entitiy's position, // unless it is off the game map. if (!game.isOutOfGame(entity)) { if (entity.isDoomed()) { send(createRemoveEntityPacket(entity.getId(), entity.getRemovalCondition())); } else { entityUpdate( entity.getId(), movePath ); }; }; // if using double blind, update the player on new units he might see if (doBlind()) { send(entity.getOwner().getId(), createFilteredEntitiesPacket(entity.getOwner())); } // if we generated a charge attack, report it now if (charge != null) { send(createAttackPacket(charge, true)); } }
|
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/db64c0778bbea1399999fd25b589d242f8842761/Server.java/clean/megamek/src/megamek/server/Server.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
49,
26140,
12,
1943,
1522,
16,
9933,
743,
3481,
13,
288,
3639,
368,
866,
364,
284,
11182,
310,
3639,
309,
261,
1264,
18,
12298,
12,
7607,
743,
18,
26951,
67,
42,
900,
41,
3719,
288,
5411,
368,
8380,
711,
284,
1259,
326,
324,
4558,
298,
1518,
18,
5411,
6855,
4820,
18,
6923,
31458,
82,
6,
262,
18,
6923,
12,
1522,
18,
588,
20524,
1435,
5411,
262,
18,
6923,
12,
315,
284,
298,
281,
326,
324,
4558,
298,
1518,
8403,
82,
8863,
5411,
368,
2585,
326,
2836,
9331,
310,
1342,
275,
6215,
35,
5411,
727,
5589,
1342,
275,
6215,
273,
1522,
18,
588,
8835,
7537,
5621,
5411,
309,
261,
401,
5466,
275,
6215,
18,
291,
1921,
1435,
262,
288,
7734,
727,
13864,
1400,
273,
1342,
275,
6215,
18,
6274,
5621,
7734,
1323,
261,
1400,
18,
5332,
7417,
3471,
1435,
262,
288,
10792,
727,
3887,
1342,
14348,
273,
261,
1943,
13,
1400,
18,
4285,
1046,
5621,
10792,
368,
8380,
711,
284,
1259,
326,
324,
4558,
298,
1518,
18,
10792,
6855,
4820,
18,
6923,
12,
315,
282,
2597,
5926,
566,
281,
315,
262,
13491,
263,
6923,
12,
1342,
14348,
18,
588,
20524,
1435,
262,
13491,
263,
6923,
12,
315,
598,
518,
8403,
82,
6,
11272,
10792,
7920,
18,
4479,
1943,
12,
1342,
14348,
18,
26321,
9334,
4766,
4202,
3887,
18,
22122,
67,
706,
67,
10238,
862,
789,
11272,
10792,
1366,
12,
752,
3288,
1943,
6667,
12,
5466,
14348,
18,
26321,
9334,
4766,
10402,
3887,
18,
22122,
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,
1207,
49,
26140,
12,
1943,
1522,
16,
9933,
743,
3481,
13,
288,
3639,
368,
866,
364,
284,
11182,
310,
3639,
309,
261,
1264,
18,
12298,
12,
7607,
743,
18,
26951,
67,
42,
900,
41,
3719,
288,
5411,
368,
8380,
711,
284,
1259,
326,
324,
4558,
298,
1518,
18,
5411,
6855,
4820,
18,
6923,
31458,
82,
6,
262,
18,
6923,
12,
1522,
18,
588,
20524,
1435,
5411,
262,
18,
6923,
12,
315,
284,
298,
281,
326,
324,
4558,
298,
1518,
8403,
82,
8863,
5411,
368,
2585,
326,
2836,
9331,
310,
1342,
275,
6215,
35,
5411,
727,
5589,
1342,
275,
6215,
273,
1522,
18,
588,
8835,
7537,
5621,
5411,
309,
261,
401,
5466,
275,
6215,
18,
291,
1921,
2
] |
if (RDEBUG && (debuglevel > 6)) System.out.println("PT"+r+"="+intToString(t0)+intToString(t1)+intToString(t2)+intToString(t3));
|
if (RDEBUG && (debuglevel > 6)) System.out.println("PT"+r+ '=' +intToString(t0)+intToString(t1)+intToString(t2)+intToString(t3));
|
blockDecrypt (byte[] in, byte[] result, int inOffset, Object sessionKey) {if (RDEBUG) trace(IN, "blockDecrypt("+in+", "+inOffset+", "+sessionKey+")"); int[][] Kd = (int[][]) ((Object[]) sessionKey)[1]; // extract decryption round keys int ROUNDS = Kd.length - 1; int[] Kdr = Kd[0]; // ciphertext to ints + key int t0 = ((in[inOffset++] & 0xFF) << 24 | (in[inOffset++] & 0xFF) << 16 | (in[inOffset++] & 0xFF) << 8 | (in[inOffset++] & 0xFF) ) ^ Kdr[0]; int t1 = ((in[inOffset++] & 0xFF) << 24 | (in[inOffset++] & 0xFF) << 16 | (in[inOffset++] & 0xFF) << 8 | (in[inOffset++] & 0xFF) ) ^ Kdr[1]; int t2 = ((in[inOffset++] & 0xFF) << 24 | (in[inOffset++] & 0xFF) << 16 | (in[inOffset++] & 0xFF) << 8 | (in[inOffset++] & 0xFF) ) ^ Kdr[2]; int t3 = ((in[inOffset++] & 0xFF) << 24 | (in[inOffset++] & 0xFF) << 16 | (in[inOffset++] & 0xFF) << 8 | (in[inOffset++] & 0xFF) ) ^ Kdr[3]; int a0, a1, a2, a3; for (int r = 1; r < ROUNDS; r++) { // apply round transforms Kdr = Kd[r]; a0 = (T5[(t0 >>> 24) & 0xFF] ^ T6[(t3 >>> 16) & 0xFF] ^ T7[(t2 >>> 8) & 0xFF] ^ T8[ t1 & 0xFF] ) ^ Kdr[0]; a1 = (T5[(t1 >>> 24) & 0xFF] ^ T6[(t0 >>> 16) & 0xFF] ^ T7[(t3 >>> 8) & 0xFF] ^ T8[ t2 & 0xFF] ) ^ Kdr[1]; a2 = (T5[(t2 >>> 24) & 0xFF] ^ T6[(t1 >>> 16) & 0xFF] ^ T7[(t0 >>> 8) & 0xFF] ^ T8[ t3 & 0xFF] ) ^ Kdr[2]; a3 = (T5[(t3 >>> 24) & 0xFF] ^ T6[(t2 >>> 16) & 0xFF] ^ T7[(t1 >>> 8) & 0xFF] ^ T8[ t0 & 0xFF] ) ^ Kdr[3]; t0 = a0; t1 = a1; t2 = a2; t3 = a3;if (RDEBUG && (debuglevel > 6)) System.out.println("PT"+r+"="+intToString(t0)+intToString(t1)+intToString(t2)+intToString(t3)); } // last round is special Kdr = Kd[ROUNDS]; int tt = Kdr[0]; result[ 0] = (byte)(Si[(t0 >>> 24) & 0xFF] ^ (tt >>> 24)); result[ 1] = (byte)(Si[(t3 >>> 16) & 0xFF] ^ (tt >>> 16)); result[ 2] = (byte)(Si[(t2 >>> 8) & 0xFF] ^ (tt >>> 8)); result[ 3] = (byte)(Si[ t1 & 0xFF] ^ tt ); tt = Kdr[1]; result[ 4] = (byte)(Si[(t1 >>> 24) & 0xFF] ^ (tt >>> 24)); result[ 5] = (byte)(Si[(t0 >>> 16) & 0xFF] ^ (tt >>> 16)); result[ 6] = (byte)(Si[(t3 >>> 8) & 0xFF] ^ (tt >>> 8)); result[ 7] = (byte)(Si[ t2 & 0xFF] ^ tt ); tt = Kdr[2]; result[ 8] = (byte)(Si[(t2 >>> 24) & 0xFF] ^ (tt >>> 24)); result[ 9] = (byte)(Si[(t1 >>> 16) & 0xFF] ^ (tt >>> 16)); result[10] = (byte)(Si[(t0 >>> 8) & 0xFF] ^ (tt >>> 8)); result[11] = (byte)(Si[ t3 & 0xFF] ^ tt ); tt = Kdr[3]; result[12] = (byte)(Si[(t3 >>> 24) & 0xFF] ^ (tt >>> 24)); result[13] = (byte)(Si[(t2 >>> 16) & 0xFF] ^ (tt >>> 16)); result[14] = (byte)(Si[(t1 >>> 8) & 0xFF] ^ (tt >>> 8)); result[15] = (byte)(Si[ t0 & 0xFF] ^ tt );if (RDEBUG && (debuglevel > 6)) {System.out.println("PT="+toString(result));System.out.println();}if (RDEBUG) trace(OUT, "blockDecrypt()"); }
|
51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/62fd59041864b4ed1f43adc676de6bfb5ea977f3/Rijndael_Algorithm.java/buggy/src/freenet/crypt/ciphers/Rijndael_Algorithm.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1203,
17306,
261,
7229,
8526,
316,
16,
1160,
8526,
563,
16,
509,
316,
2335,
16,
1033,
26864,
13,
288,
430,
261,
54,
9394,
13,
2606,
12,
706,
16,
315,
2629,
17306,
2932,
15,
267,
15,
3113,
13773,
267,
2335,
15,
3113,
13773,
3184,
653,
9078,
2225,
1769,
3639,
509,
63,
6362,
65,
1475,
72,
273,
261,
474,
63,
6362,
5717,
14015,
921,
63,
5717,
26864,
25146,
21,
15533,
368,
2608,
27906,
3643,
1311,
3639,
509,
6525,
2124,
3948,
273,
1475,
72,
18,
2469,
300,
404,
31,
3639,
509,
8526,
1475,
3069,
273,
1475,
72,
63,
20,
15533,
3639,
368,
12657,
358,
15542,
397,
498,
3639,
509,
268,
20,
282,
273,
14015,
267,
63,
267,
2335,
9904,
65,
473,
374,
6356,
13,
2296,
4248,
571,
10792,
261,
267,
63,
267,
2335,
9904,
65,
473,
374,
6356,
13,
2296,
2872,
571,
10792,
261,
267,
63,
267,
2335,
9904,
65,
473,
374,
6356,
13,
2296,
225,
1725,
571,
10792,
261,
267,
63,
267,
2335,
9904,
65,
473,
374,
6356,
13,
3639,
262,
3602,
1475,
3069,
63,
20,
15533,
3639,
509,
268,
21,
282,
273,
14015,
267,
63,
267,
2335,
9904,
65,
473,
374,
6356,
13,
2296,
4248,
571,
10792,
261,
267,
63,
267,
2335,
9904,
65,
473,
374,
6356,
13,
2296,
2872,
571,
10792,
261,
267,
63,
267,
2335,
9904,
65,
473,
374,
6356,
13,
2296,
225,
1725,
571,
10792,
261,
267,
63,
267,
2335,
9904,
65,
473,
374,
6356,
13,
3639,
262,
3602,
1475,
3069,
63,
21,
15533,
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,
1203,
17306,
261,
7229,
8526,
316,
16,
1160,
8526,
563,
16,
509,
316,
2335,
16,
1033,
26864,
13,
288,
430,
261,
54,
9394,
13,
2606,
12,
706,
16,
315,
2629,
17306,
2932,
15,
267,
15,
3113,
13773,
267,
2335,
15,
3113,
13773,
3184,
653,
9078,
2225,
1769,
3639,
509,
63,
6362,
65,
1475,
72,
273,
261,
474,
63,
6362,
5717,
14015,
921,
63,
5717,
26864,
25146,
21,
15533,
368,
2608,
27906,
3643,
1311,
3639,
509,
6525,
2124,
3948,
273,
1475,
72,
18,
2469,
300,
404,
31,
3639,
509,
8526,
1475,
3069,
273,
1475,
72,
63,
20,
15533,
3639,
368,
12657,
358,
15542,
397,
498,
3639,
509,
268,
20,
282,
273,
14015,
267,
63,
267,
2335,
9904,
65,
473,
2
] |
List<FeeBO> feeList = new FeeBusinessService().retrieveCustomerFeesByCategaroyType(FeeCategory.ALLCUSTOMERS);
|
new FeeBusinessService().retrieveCustomerFeesByCategaroyType(FeeCategory.ALLCUSTOMERS);
|
public void testRetrieveCustomerFeesByCategaroyTypeFailure()throws Exception{ TestObjectFactory.simulateInvalidConnection(); try{ List<FeeBO> feeList = new FeeBusinessService().retrieveCustomerFeesByCategaroyType(FeeCategory.ALLCUSTOMERS); fail(); } catch (ServiceException e) { assertTrue(true); } }
|
45468 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45468/3e95bdaaa670d73603d0a72966a08f40c9cb2bd0/TestFeeBusinessService.java/buggy/mifos/test/org/mifos/application/fees/business/service/TestFeeBusinessService.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
5767,
8883,
2954,
281,
858,
39,
1287,
297,
13372,
559,
5247,
1435,
15069,
1185,
95,
202,
202,
4709,
921,
1733,
18,
9812,
6243,
1941,
1952,
5621,
202,
202,
698,
95,
202,
202,
682,
32,
14667,
5315,
34,
14036,
682,
273,
394,
30174,
13423,
1179,
7675,
17466,
8883,
2954,
281,
858,
39,
1287,
297,
13372,
559,
12,
14667,
4457,
18,
4685,
15136,
11367,
1769,
202,
202,
6870,
5621,
202,
202,
97,
1044,
261,
15133,
425,
13,
288,
1082,
202,
11231,
5510,
12,
3767,
1769,
6862,
202,
97,
1875,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
5767,
8883,
2954,
281,
858,
39,
1287,
297,
13372,
559,
5247,
1435,
15069,
1185,
95,
202,
202,
4709,
921,
1733,
18,
9812,
6243,
1941,
1952,
5621,
202,
202,
698,
95,
202,
202,
682,
32,
14667,
5315,
34,
14036,
682,
273,
394,
30174,
13423,
1179,
7675,
17466,
8883,
2954,
281,
858,
39,
1287,
297,
13372,
559,
12,
14667,
4457,
18,
4685,
15136,
11367,
1769,
202,
202,
6870,
5621,
202,
202,
97,
1044,
261,
15133,
425,
13,
288,
1082,
202,
11231,
5510,
12,
3767,
1769,
6862,
202,
97,
1875,
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
] |
new ToolReference(this, configElement);
|
ToolReference ref = new ToolReference(this, configElement); ref.resolveReferences();
|
public void reset(IConfigurationElement element) { // I just need to reset the tool references getLocalToolReferences().clear(); IConfigurationElement[] configElements = element.getChildren(); for (int l = 0; l < configElements.length; ++l) { IConfigurationElement configElement = configElements[l]; if (configElement.getName().equals(IConfiguration.TOOLREF_ELEMENT_NAME)) { new ToolReference(this, configElement); } } }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/fbf82be3cd92083961a50ede8f5acc5b373d3038/Configuration.java/buggy/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Configuration.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2715,
12,
45,
1750,
1046,
930,
13,
288,
202,
202,
759,
467,
2537,
1608,
358,
2715,
326,
5226,
5351,
202,
202,
588,
2042,
6364,
8221,
7675,
8507,
5621,
202,
202,
45,
1750,
1046,
8526,
642,
3471,
273,
930,
18,
588,
4212,
5621,
202,
202,
1884,
261,
474,
328,
273,
374,
31,
328,
411,
642,
3471,
18,
2469,
31,
965,
80,
13,
288,
1082,
202,
45,
1750,
1046,
642,
1046,
273,
642,
3471,
63,
80,
15533,
1082,
202,
430,
261,
1425,
1046,
18,
17994,
7675,
14963,
12,
45,
1750,
18,
26263,
10771,
67,
10976,
67,
1985,
3719,
288,
9506,
202,
2704,
13288,
2404,
12,
2211,
16,
642,
1046,
1769,
1082,
202,
97,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2715,
12,
45,
1750,
1046,
930,
13,
288,
202,
202,
759,
467,
2537,
1608,
358,
2715,
326,
5226,
5351,
202,
202,
588,
2042,
6364,
8221,
7675,
8507,
5621,
202,
202,
45,
1750,
1046,
8526,
642,
3471,
273,
930,
18,
588,
4212,
5621,
202,
202,
1884,
261,
474,
328,
273,
374,
31,
328,
411,
642,
3471,
18,
2469,
31,
965,
80,
13,
288,
1082,
202,
45,
1750,
1046,
642,
1046,
273,
642,
3471,
63,
80,
15533,
1082,
202,
430,
261,
1425,
1046,
18,
17994,
7675,
14963,
12,
45,
1750,
18,
26263,
10771,
67,
10976,
67,
1985,
3719,
288,
9506,
202,
2704,
13288,
2404,
12,
2211,
16,
642,
1046,
1769,
1082,
202,
97,
202,
202,
97,
202,
2
] |
public void insert_boolean(boolean value) {
|
public void insert_boolean(boolean value) {
|
public void insert_boolean(boolean value) { org.omg.CORBA.portable.OutputStream output = create_output_stream(); output.write_boolean(value); read_value(null, TypeCode.BOOLEAN); }
|
12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/5c788225030ea2bb15cb5f3f9696c52b755b6d54/Any.java/clean/modules/interop/src/java/org/apache/geronimo/interop/rmi/iiop/Any.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2243,
67,
6494,
12,
6494,
460,
13,
288,
3639,
2358,
18,
362,
75,
18,
9428,
12536,
18,
655,
429,
18,
4632,
876,
273,
752,
67,
2844,
67,
3256,
5621,
3639,
876,
18,
2626,
67,
6494,
12,
1132,
1769,
3639,
855,
67,
1132,
12,
2011,
16,
30332,
18,
17900,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2243,
67,
6494,
12,
6494,
460,
13,
288,
3639,
2358,
18,
362,
75,
18,
9428,
12536,
18,
655,
429,
18,
4632,
876,
273,
752,
67,
2844,
67,
3256,
5621,
3639,
876,
18,
2626,
67,
6494,
12,
1132,
1769,
3639,
855,
67,
1132,
12,
2011,
16,
30332,
18,
17900,
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
] |
client = new Socket("sleon.dyndns.org", 12345); PrintStream output = new PrintStream(client.getOutputStream()); output.println(node.getStatus()); output.close(); client.close();
|
if ( node != null) { client = new Socket("sleon.dyndns.org", 23415); PrintStream output = new PrintStream(client.getOutputStream()); output.println(node.getStatus()); output.close(); client.close(); }
|
public void run() { // Set up client socket try { //thread loop while(true){ client = new Socket("sleon.dyndns.org", 12345); PrintStream output = new PrintStream(client.getOutputStream()); output.println(node.getStatus()); output.close(); client.close(); try{ Thread.sleep(updateInterval); //how i love java }catch (InterruptedException e){ return; } } }catch (IOException e){ Logger.error(this, "Could not open connection to the uploadhost"); System.err.println("Could not open connection to the uploadhost"); return; } }
|
51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/4bc2d2c077b2fc6775fc426a18e5ef21f3cf8f8b/TestnetStatusUploader.java/buggy/src/freenet/node/TestnetStatusUploader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
1435,
288,
202,
202,
759,
1000,
731,
1004,
2987,
202,
202,
698,
202,
202,
95,
1082,
202,
759,
5930,
2798,
25083,
202,
17523,
12,
3767,
15329,
9506,
202,
2625,
273,
394,
8758,
2932,
87,
298,
265,
18,
28595,
14926,
18,
3341,
3113,
2593,
25574,
1769,
9506,
202,
5108,
1228,
876,
273,
394,
21677,
12,
2625,
18,
588,
4632,
10663,
9506,
202,
2844,
18,
8222,
12,
2159,
18,
588,
1482,
10663,
9506,
202,
2844,
18,
4412,
5621,
9506,
202,
2625,
18,
4412,
5621,
9506,
202,
698,
95,
6862,
202,
3830,
18,
19607,
12,
2725,
4006,
1769,
6862,
6862,
202,
759,
13606,
277,
437,
537,
2252,
4697,
202,
97,
14683,
261,
24485,
503,
425,
15329,
6862,
202,
2463,
31,
9506,
202,
97,
6862,
1082,
202,
97,
6862,
202,
97,
14683,
261,
14106,
425,
15329,
1082,
202,
3328,
18,
1636,
12,
2211,
16,
315,
4445,
486,
1696,
1459,
358,
326,
3617,
2564,
8863,
1082,
202,
3163,
18,
370,
18,
8222,
2932,
4445,
486,
1696,
1459,
358,
326,
3617,
2564,
8863,
1082,
202,
2463,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
1435,
288,
202,
202,
759,
1000,
731,
1004,
2987,
202,
202,
698,
202,
202,
95,
1082,
202,
759,
5930,
2798,
25083,
202,
17523,
12,
3767,
15329,
9506,
202,
2625,
273,
394,
8758,
2932,
87,
298,
265,
18,
28595,
14926,
18,
3341,
3113,
2593,
25574,
1769,
9506,
202,
5108,
1228,
876,
273,
394,
21677,
12,
2625,
18,
588,
4632,
10663,
9506,
202,
2844,
18,
8222,
12,
2159,
18,
588,
1482,
10663,
9506,
202,
2844,
18,
4412,
5621,
9506,
202,
2625,
18,
4412,
5621,
9506,
202,
698,
95,
6862,
202,
3830,
18,
19607,
12,
2725,
4006,
1769,
6862,
6862,
202,
759,
13606,
277,
437,
537,
2252,
4697,
202,
97,
14683,
261,
24485,
503,
425,
15329,
6862,
2
] |
try { msg = getMessageInternal(key, args); } catch (Exception e) { log.warn("Error while getting message with key " + key, e); }
|
try { msg = getMessageInternal(key, args); } catch (Exception e) { log.warn("Error while getting message with key '" + key + "'", e); }
|
public final String getMessage(String key, Object... args) { if (key == null) { throw new NullArgumentException("key"); } String msg = null; try { msg = getMessageInternal(key, args); } catch (Exception e) { log.warn("Error while getting message with key " + key, e); } if (msg == null) { if (log.isInfoEnabled()) { log.info("No message found for key '" + key + "'"); } } return msg; }
|
8463 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8463/1a2bcdf356a457b6a1e42e3daf29f5e28ea893bd/AbstractMessageRegister.java/buggy/leto/modules/core/src/main/java/org/eu/leto/core/AbstractMessageRegister.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
514,
2381,
12,
780,
498,
16,
1033,
2777,
833,
13,
288,
3639,
309,
261,
856,
422,
446,
13,
288,
5411,
604,
394,
4112,
1878,
2932,
856,
8863,
3639,
289,
3639,
514,
1234,
273,
446,
31,
3639,
775,
288,
5411,
1234,
273,
2381,
3061,
12,
856,
16,
833,
1769,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
613,
18,
8935,
2932,
668,
1323,
8742,
883,
598,
498,
315,
397,
498,
16,
425,
1769,
3639,
289,
3639,
309,
261,
3576,
422,
446,
13,
288,
5411,
309,
261,
1330,
18,
291,
966,
1526,
10756,
288,
7734,
613,
18,
1376,
2932,
2279,
883,
1392,
364,
498,
2119,
397,
498,
397,
5862,
1769,
5411,
289,
3639,
289,
3639,
327,
1234,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
514,
2381,
12,
780,
498,
16,
1033,
2777,
833,
13,
288,
3639,
309,
261,
856,
422,
446,
13,
288,
5411,
604,
394,
4112,
1878,
2932,
856,
8863,
3639,
289,
3639,
514,
1234,
273,
446,
31,
3639,
775,
288,
5411,
1234,
273,
2381,
3061,
12,
856,
16,
833,
1769,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
613,
18,
8935,
2932,
668,
1323,
8742,
883,
598,
498,
315,
397,
498,
16,
425,
1769,
3639,
289,
3639,
309,
261,
3576,
422,
446,
13,
288,
5411,
309,
261,
1330,
18,
291,
966,
1526,
10756,
288,
7734,
613,
18,
1376,
2932,
2279,
883,
1392,
364,
498,
2119,
397,
498,
397,
5862,
1769,
5411,
289,
3639,
289,
3639,
327,
1234,
2
] |
final PsiImportStatement[] importStatements = importList.getImportStatements();
|
if(importList == null){ return; } final PsiImportStatement[] importStatements = importList.getImportStatements();
|
public void visitClass(@NotNull PsiClass aClass) { // no call to super, so it doesn't drill down if (!(aClass.getParent() instanceof PsiJavaFile)) { return; } if(aClass.getContainingFile() instanceof JspFile){ return; } final PsiJavaFile file = (PsiJavaFile) aClass.getParent(); if(file == null) { return; } if (!file.getClasses()[0].equals(aClass)) { return; } final PsiImportList importList = file.getImportList(); final PsiImportStatement[] importStatements = importList.getImportStatements(); for(final PsiImportStatement importStatement : importStatements){ if(!importStatement.isOnDemand()){ registerError(importStatement); } } }
|
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/d6e7604c0e820eb6080db33dc4f7b731664f07e9/SingleClassImportInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/imports/SingleClassImportInspection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3757,
797,
26964,
5962,
453,
7722,
797,
20148,
13,
288,
5411,
368,
1158,
745,
358,
2240,
16,
1427,
518,
3302,
1404,
5081,
737,
2588,
5411,
309,
16051,
12,
69,
797,
18,
588,
3054,
1435,
1276,
453,
7722,
5852,
812,
3719,
288,
7734,
327,
31,
5411,
289,
5411,
309,
12,
69,
797,
18,
588,
24344,
812,
1435,
1276,
19300,
812,
15329,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
5852,
812,
585,
273,
261,
52,
7722,
5852,
812,
13,
20148,
18,
588,
3054,
5621,
5411,
309,
12,
768,
422,
446,
13,
5411,
288,
7734,
327,
31,
5411,
289,
5411,
309,
16051,
768,
18,
588,
4818,
1435,
63,
20,
8009,
14963,
12,
69,
797,
3719,
288,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
5010,
682,
1930,
682,
273,
585,
18,
588,
5010,
682,
5621,
5411,
309,
12,
5666,
682,
422,
446,
15329,
327,
31,
289,
727,
453,
7722,
5010,
3406,
8526,
1930,
14663,
273,
1930,
682,
18,
588,
5010,
14663,
5621,
5411,
364,
12,
6385,
453,
7722,
5010,
3406,
1930,
3406,
294,
1930,
14663,
15329,
7734,
309,
12,
5,
5666,
3406,
18,
291,
1398,
25461,
10756,
95,
10792,
1744,
668,
12,
5666,
3406,
1769,
7734,
289,
5411,
289,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3757,
797,
26964,
5962,
453,
7722,
797,
20148,
13,
288,
5411,
368,
1158,
745,
358,
2240,
16,
1427,
518,
3302,
1404,
5081,
737,
2588,
5411,
309,
16051,
12,
69,
797,
18,
588,
3054,
1435,
1276,
453,
7722,
5852,
812,
3719,
288,
7734,
327,
31,
5411,
289,
5411,
309,
12,
69,
797,
18,
588,
24344,
812,
1435,
1276,
19300,
812,
15329,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
5852,
812,
585,
273,
261,
52,
7722,
5852,
812,
13,
20148,
18,
588,
3054,
5621,
5411,
309,
12,
768,
422,
446,
13,
5411,
288,
7734,
327,
31,
5411,
289,
5411,
309,
16051,
768,
18,
588,
4818,
1435,
63,
20,
8009,
14963,
12,
69,
797,
3719,
288,
7734,
2
] |
this.declarations = new HashSet(declarations);
|
this.declarations = new HashSet<String>(declarations);
|
DeclarationVisitor(Set declarations){ super(); this.declarations = new HashSet(declarations); }
|
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/e4329a48065fe37b7b5d3d9883a02a38ec8f42fa/MergeParallelIfsPredicate.java/clean/plugins/IntentionPowerPak/src/com/siyeh/ipp/trivialif/MergeParallelIfsPredicate.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
16110,
4302,
7413,
12,
694,
12312,
15329,
5411,
2240,
5621,
5411,
333,
18,
8840,
9642,
273,
394,
6847,
32,
780,
34,
12,
8840,
9642,
1769,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
540,
16110,
4302,
7413,
12,
694,
12312,
15329,
5411,
2240,
5621,
5411,
333,
18,
8840,
9642,
273,
394,
6847,
32,
780,
34,
12,
8840,
9642,
1769,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
}
|
}
|
public static String jsFunction_substring(Context cx, Scriptable thisObj, Object[] args, Function funObj) { if (args.length < 1) args = ScriptRuntime.padArguments(args, 1); String target = ScriptRuntime.toString(thisObj); int length = target.length(); double start = ScriptRuntime.toInteger(args[0]); double end; if (start < 0) start = 0; else if (start > length) start = length; if (args.length == 1) { end = length; } else { end = ScriptRuntime.toInteger(args[1]); if (end < 0) end = 0; else if (end > length) end = length; // swap if end < start if (end < start) { if (cx.getLanguageVersion() != Context.VERSION_1_2) { double temp = start; start = end; end = temp; } else { // Emulate old JDK1.0 java.lang.String.substring() end = start; } } } return target.substring((int)start, (int)end); }
|
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/b6331020dcf96bb85dae57ee2a2ce947b6b0477a/NativeString.java/clean/js/rhino/src/org/mozilla/javascript/NativeString.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
3828,
2083,
67,
28023,
12,
1042,
9494,
16,
22780,
15261,
16,
4766,
2868,
1033,
8526,
833,
16,
4284,
9831,
2675,
13,
565,
288,
3639,
309,
261,
1968,
18,
2469,
411,
404,
13,
5411,
833,
273,
7739,
5576,
18,
6982,
4628,
12,
1968,
16,
404,
1769,
3639,
514,
1018,
273,
7739,
5576,
18,
10492,
12,
2211,
2675,
1769,
3639,
509,
769,
273,
1018,
18,
2469,
5621,
3639,
1645,
787,
273,
7739,
5576,
18,
869,
4522,
12,
1968,
63,
20,
19226,
3639,
1645,
679,
31,
202,
430,
261,
1937,
411,
374,
13,
202,
565,
787,
273,
374,
31,
202,
12107,
309,
261,
1937,
405,
769,
13,
202,
565,
787,
273,
769,
31,
202,
430,
261,
1968,
18,
2469,
422,
404,
13,
288,
202,
565,
679,
273,
769,
31,
202,
97,
469,
288,
5411,
679,
273,
7739,
5576,
18,
869,
4522,
12,
1968,
63,
21,
19226,
202,
565,
309,
261,
409,
411,
374,
13,
202,
202,
409,
273,
374,
31,
202,
565,
469,
309,
261,
409,
405,
769,
13,
202,
202,
409,
273,
769,
31,
5411,
368,
7720,
309,
679,
411,
787,
5411,
309,
261,
409,
411,
787,
13,
288,
7734,
309,
261,
71,
92,
18,
588,
3779,
1444,
1435,
480,
1772,
18,
5757,
67,
21,
67,
22,
13,
288,
10792,
1645,
1906,
273,
787,
31,
10792,
787,
273,
679,
31,
10792,
679,
273,
1906,
31,
7734,
289,
469,
288,
10792,
368,
7377,
6243,
1592,
24387,
21,
18,
20,
2252,
18,
4936,
18,
780,
18,
28023,
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,
514,
3828,
2083,
67,
28023,
12,
1042,
9494,
16,
22780,
15261,
16,
4766,
2868,
1033,
8526,
833,
16,
4284,
9831,
2675,
13,
565,
288,
3639,
309,
261,
1968,
18,
2469,
411,
404,
13,
5411,
833,
273,
7739,
5576,
18,
6982,
4628,
12,
1968,
16,
404,
1769,
3639,
514,
1018,
273,
7739,
5576,
18,
10492,
12,
2211,
2675,
1769,
3639,
509,
769,
273,
1018,
18,
2469,
5621,
3639,
1645,
787,
273,
7739,
5576,
18,
869,
4522,
12,
1968,
63,
20,
19226,
3639,
1645,
679,
31,
202,
430,
261,
1937,
411,
374,
13,
202,
565,
787,
273,
374,
31,
202,
12107,
309,
261,
1937,
405,
769,
13,
202,
565,
787,
273,
769,
31,
202,
430,
261,
1968,
18,
2
] |
/* package */ ShellPool getDetachedWindowPool() { return detachedWindowShells; }
|
/* package */ShellPool getDetachedWindowPool() { return detachedWindowShells; }
|
/* package */ ShellPool getDetachedWindowPool() { return detachedWindowShells; }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/97610ef9afbe6c924e048d8d60c2f4721860850b/WorkbenchWindow.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchWindow.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1748,
2181,
1195,
19433,
2864,
2343,
278,
2004,
3829,
2864,
1435,
288,
3639,
327,
22037,
3829,
13220,
87,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1748,
2181,
1195,
19433,
2864,
2343,
278,
2004,
3829,
2864,
1435,
288,
3639,
327,
22037,
3829,
13220,
87,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
log.debug("Communications error, closing connection: ", e); close();
|
/** * http: */ if (!"A non-blocking socket operation could not be completed immediately".equals(e.getMessage())) { log.warn("Communications error, closing connection: ", e); close(); }
|
private void serviceWrite() { log.trace("serviceWrite() triggered " + selectionKey); try { if (sendBuffer == null) { log.trace("Write had allready been serviced."); return; } long count = socketChannel.write(sendBuffer); log.trace("Wrote " + count); for (int i = 0; i < sendBuffer.length; i++) { if (sendBuffer[i].hasRemaining()) { // not all was delivered in this call setup selector // so we setup to finish sending async. log.trace("+OP_WRITE " + selectionKey); selectorManager.addInterestOps(selectionKey, SelectionKey.OP_WRITE); return; } } // release old buffers sendBuffer = null; log.trace("RELEASING " + sendMutex); sendMutex.release(); log.trace("RELEASED " + sendMutex); } catch (IOException e) { log.debug("Communications error, closing connection: ", e); close(); } finally { log.trace("serviceWrite() done."); } }
|
12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/f4695c894e279088fd34f5a71ae38bbc66507868/SocketProtocol.java/clean/modules/network/src/java/org/apache/geronimo/network/protocol/SocketProtocol.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1156,
3067,
1435,
288,
3639,
613,
18,
5129,
2932,
3278,
3067,
1435,
10861,
315,
397,
4421,
653,
1769,
3639,
775,
288,
5411,
309,
261,
4661,
1892,
422,
446,
13,
288,
7734,
613,
18,
5129,
2932,
3067,
9323,
777,
1672,
2118,
1156,
72,
1199,
1769,
7734,
327,
31,
5411,
289,
5411,
1525,
1056,
273,
2987,
2909,
18,
2626,
12,
4661,
1892,
1769,
5411,
613,
18,
5129,
2932,
59,
21436,
315,
397,
1056,
1769,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1366,
1892,
18,
2469,
31,
277,
27245,
288,
7734,
309,
261,
4661,
1892,
63,
77,
8009,
5332,
11429,
10756,
288,
10792,
368,
486,
777,
1703,
22112,
316,
333,
745,
3875,
3451,
10792,
368,
1427,
732,
3875,
358,
4076,
5431,
4326,
18,
10792,
613,
18,
5129,
2932,
15,
3665,
67,
11677,
315,
397,
4421,
653,
1769,
10792,
3451,
1318,
18,
1289,
29281,
8132,
12,
10705,
653,
16,
12977,
653,
18,
3665,
67,
11677,
1769,
10792,
327,
31,
7734,
289,
5411,
289,
5411,
368,
3992,
1592,
9664,
5411,
1366,
1892,
273,
446,
31,
5411,
613,
18,
5129,
2932,
862,
900,
3033,
1360,
315,
397,
1366,
11433,
1769,
5411,
1366,
11433,
18,
9340,
5621,
5411,
613,
18,
5129,
2932,
30762,
40,
315,
397,
1366,
11433,
1769,
3639,
289,
1044,
261,
14106,
425,
13,
288,
5411,
613,
18,
4148,
2932,
25219,
87,
555,
16,
7647,
1459,
30,
3104,
425,
1769,
5411,
1746,
5621,
3639,
289,
3095,
288,
5411,
613,
18,
5129,
2932,
3278,
3067,
1435,
2731,
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,
1156,
3067,
1435,
288,
3639,
613,
18,
5129,
2932,
3278,
3067,
1435,
10861,
315,
397,
4421,
653,
1769,
3639,
775,
288,
5411,
309,
261,
4661,
1892,
422,
446,
13,
288,
7734,
613,
18,
5129,
2932,
3067,
9323,
777,
1672,
2118,
1156,
72,
1199,
1769,
7734,
327,
31,
5411,
289,
5411,
1525,
1056,
273,
2987,
2909,
18,
2626,
12,
4661,
1892,
1769,
5411,
613,
18,
5129,
2932,
59,
21436,
315,
397,
1056,
1769,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1366,
1892,
18,
2469,
31,
277,
27245,
288,
7734,
309,
261,
4661,
1892,
63,
77,
8009,
5332,
11429,
10756,
288,
10792,
368,
486,
777,
1703,
22112,
316,
333,
745,
3875,
3451,
10792,
368,
1427,
2
] |
int nc = DataTools.bytesToInt(xmlChunk, 1, 4, littleEndian); String xml = new String(xmlChunk, 5, nc*2); xml = DataTools.stripString(xml);
|
int nc = in.readInt(); byte[] s = new byte[nc * 2]; in.read(s); String xml = DataTools.stripString(new String(s));
|
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); offsets = new Vector(); in = new RandomAccessFile(id, "r"); littleEndian = true; // read the header byte[] header = new byte[8]; in.read(header); if ((header[0] != 0x70) && (header[3] != 0x70)) { throw new FormatException(id + " is not a valid Leica LIF file"); } int chunkLength = DataTools.bytesToInt(header, 4, 4, littleEndian); // read and parse the XML description byte[] xmlChunk = new byte[chunkLength]; in.read(xmlChunk); if (xmlChunk[0] != 0x2a) { throw new FormatException("Invalid XML description"); } // number of Unicode characters in the XML block int nc = DataTools.bytesToInt(xmlChunk, 1, 4, littleEndian); String xml = new String(xmlChunk, 5, nc*2); xml = DataTools.stripString(xml); while (in.getFilePointer() < in.length()) { byte[] four = new byte[4]; in.read(four); int check = DataTools.bytesToInt(four, littleEndian); if (check != 0x70) { throw new FormatException("Invalid Memory Block"); } in.read(four); int memLength = DataTools.bytesToInt(four, littleEndian); if (in.read() != 0x2a) { throw new FormatException("Invalid Memory Description"); } in.read(four); int blockLength = DataTools.bytesToInt(four, littleEndian); if (in.read() != 0x2a) { throw new FormatException("Invalid Memory Description"); } in.read(four); int descrLength = DataTools.bytesToInt(four, littleEndian); byte[] memDescr = new byte[2*descrLength]; in.read(memDescr); String descr = new String(memDescr); descr = DataTools.stripString(descr); if (blockLength > 0) { offsets.add(new Long(in.getFilePointer())); } in.skipBytes(blockLength); } numImages = offsets.size(); initMetadata(xml); }
|
55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/2df09d33bfdc966378aae0cc09cb503afb983bc2/LIFReader.java/clean/loci/formats/in/LIFReader.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,
8738,
273,
394,
5589,
5621,
565,
316,
273,
394,
8072,
26933,
12,
350,
16,
315,
86,
8863,
565,
328,
10609,
273,
638,
31,
565,
368,
855,
326,
1446,
565,
1160,
8526,
1446,
273,
394,
1160,
63,
28,
15533,
565,
316,
18,
896,
12,
3374,
1769,
565,
309,
14015,
3374,
63,
20,
65,
480,
374,
92,
7301,
13,
597,
261,
3374,
63,
23,
65,
480,
374,
92,
7301,
3719,
288,
1377,
604,
394,
4077,
503,
12,
350,
397,
315,
353,
486,
279,
923,
3519,
26433,
511,
5501,
585,
8863,
565,
289,
565,
509,
2441,
1782,
273,
1910,
10348,
18,
3890,
17864,
12,
3374,
16,
1059,
16,
1059,
16,
328,
10609,
1769,
565,
368,
855,
471,
1109,
326,
3167,
2477,
565,
1160,
8526,
2025,
5579,
273,
394,
1160,
63,
6551,
1782,
15533,
565,
316,
18,
896,
12,
2902,
5579,
1769,
565,
309,
261,
2902,
5579,
63,
20,
65,
480,
374,
92,
22,
69,
13,
288,
1377,
604,
394,
4077,
503,
2932,
1941,
3167,
2477,
8863,
565,
289,
565,
368,
1300,
434,
9633,
3949,
316,
326,
3167,
1203,
565,
509,
8194,
273,
1910,
10348,
18,
3890,
17864,
12,
2902,
5579,
16,
404,
16,
1059,
16,
328,
10609,
1769,
565,
514,
2025,
273,
394,
514,
12,
2902,
5579,
16,
1381,
16,
8194,
14,
22,
1769,
565,
2025,
273,
1910,
10348,
18,
6406,
780,
12,
2902,
1769,
565,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
812,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
2240,
18,
2738,
812,
12,
350,
1769,
565,
8738,
273,
394,
5589,
5621,
565,
316,
273,
394,
8072,
26933,
12,
350,
16,
315,
86,
8863,
565,
328,
10609,
273,
638,
31,
565,
368,
855,
326,
1446,
565,
1160,
8526,
1446,
273,
394,
1160,
63,
28,
15533,
565,
316,
18,
896,
12,
3374,
1769,
565,
309,
14015,
3374,
63,
20,
65,
480,
374,
92,
7301,
13,
597,
261,
3374,
63,
23,
65,
480,
374,
92,
7301,
3719,
288,
1377,
604,
394,
4077,
503,
12,
350,
397,
315,
353,
486,
279,
923,
3519,
26433,
511,
5501,
585,
8863,
565,
289,
565,
509,
2441,
1782,
273,
2
] |
StringBuffer strBuf = new StringBuffer(s); char sub = strBuf.charAt(strBuf.length()-3); if (sub == '+' || sub == '-') { strBuf.setLength(strBuf.length()-3); if (subsecond) { strBuf = strBuf.append('0').append("GMT").append(s.substring(s.length()-3, s.length())).append(":00"); } else { strBuf = strBuf.append("GMT").append(s.substring(s.length()-3, s.length())).append(":00"); } } else if (subsecond) { strBuf = strBuf.append('0'); } s = strBuf.toString();
|
public Timestamp getTimestamp(int columnIndex) throws SQLException { String s = getString(columnIndex); if(s==null) return null; // This works, but it's commented out because Michael Stephenson's // solution is better still: //SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");// Modification by Jan Thomae String sub = s.substring(s.length() - 3, s.length()-2); if (sub.equals("+") || sub.equals("-")) { s = s.substring(0, s.length()-3) + "GMT"+ s.substring(s.length()-3, s.length())+":00"; }// ------- // Michael Stephenson's solution: SimpleDateFormat df = null;// Modification by Jan Thomae if (s.length()>27) { df = new SimpleDateFormat("yyyy-MM-dd HH:mm:sszzzzzzzzz"); } else // ------- if (s.length()>21 && s.indexOf('.') != -1) { df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSzzz"); } else if (s.length()>19 && s.indexOf('.') == -1) { df = new SimpleDateFormat("yyyy-MM-dd HH:MM:sszzz"); } else if (s.length()>19 && s.indexOf('.') != -1) { df = new SimpleDateFormat("yyyy-MM-dd HH:MM:ss.SS"); } else if (s.length()>10 && s.length()<=18) { df = new SimpleDateFormat("yyyy-MM-dd HH:MM:ss"); } else { df = new SimpleDateFormat("yyyy-MM-dd"); } try { return new Timestamp(df.parse(s).getTime()); } catch(ParseException e) { throw new PSQLException("postgresql.res.badtimestamp",new Integer(e.getErrorOffset()),s); } }
|
52628 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52628/475c1452b1f8f52a791fcea40be4b7f971afefeb/ResultSet.java/clean/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
6674,
609,
5503,
273,
394,
6674,
12,
87,
1769,
1149,
720,
273,
609,
5503,
18,
3001,
861,
12,
701,
5503,
18,
2469,
1435,
17,
23,
1769,
309,
261,
1717,
422,
10058,
747,
720,
422,
4014,
13,
288,
609,
5503,
18,
542,
1782,
12,
701,
5503,
18,
2469,
1435,
17,
23,
1769,
309,
261,
1717,
8538,
13,
225,
288,
609,
5503,
273,
609,
5503,
18,
6923,
2668,
20,
16063,
6923,
2932,
25315,
20387,
6923,
12,
87,
18,
28023,
12,
87,
18,
2469,
1435,
17,
23,
16,
272,
18,
2469,
10756,
2934,
6923,
2932,
30,
713,
8863,
289,
469,
288,
609,
5503,
273,
609,
5503,
18,
6923,
2932,
25315,
20387,
6923,
12,
87,
18,
28023,
12,
87,
18,
2469,
1435,
17,
23,
16,
272,
18,
2469,
10756,
2934,
6923,
2932,
30,
713,
8863,
289,
289,
469,
309,
261,
1717,
8538,
13,
288,
609,
5503,
273,
609,
5503,
18,
6923,
2668,
20,
8284,
289,
225,
272,
273,
609,
5503,
18,
10492,
5621,
225,
1071,
8159,
11940,
12,
474,
14882,
13,
1216,
6483,
1377,
6674,
609,
5503,
273,
394,
6674,
12,
87,
1769,
1149,
720,
273,
609,
5503,
18,
3001,
861,
12,
701,
5503,
18,
2469,
1435,
17,
23,
1769,
309,
261,
1717,
422,
10058,
747,
720,
422,
4014,
13,
288,
609,
5503,
18,
542,
1782,
12,
701,
5503,
18,
2469,
1435,
17,
23,
1769,
309,
261,
1717,
8538,
13,
225,
288,
609,
5503,
273,
609,
5503,
18,
6923,
2668,
20,
16063,
6923,
2932,
25315,
20387,
6923,
12,
87,
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,
4202,
6674,
609,
5503,
273,
394,
6674,
12,
87,
1769,
1149,
720,
273,
609,
5503,
18,
3001,
861,
12,
701,
5503,
18,
2469,
1435,
17,
23,
1769,
309,
261,
1717,
422,
10058,
747,
720,
422,
4014,
13,
288,
609,
5503,
18,
542,
1782,
12,
701,
5503,
18,
2469,
1435,
17,
23,
1769,
309,
261,
1717,
8538,
13,
225,
288,
609,
5503,
273,
609,
5503,
18,
6923,
2668,
20,
16063,
6923,
2932,
25315,
20387,
6923,
12,
87,
18,
28023,
12,
87,
18,
2469,
1435,
17,
23,
16,
272,
18,
2469,
10756,
2934,
6923,
2932,
30,
713,
8863,
289,
469,
288,
609,
5503,
273,
609,
5503,
18,
6923,
2932,
25315,
20387,
6923,
12,
87,
18,
28023,
12,
87,
18,
2469,
1435,
2
] |
|
super(); }
|
super(); }
|
protected RatioImpl() { super(); }
|
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/1d1e28c0f7853dd16bd3fe819770773ed4e61d20/RatioImpl.java/buggy/org.eclipse.gmf.notation/plugins/org.eclipse.gmf.runtime.notation/src/org/eclipse/gmf/runtime/notation/impl/RatioImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
534,
4197,
2828,
1435,
288,
202,
202,
9565,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
534,
4197,
2828,
1435,
288,
202,
202,
9565,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
lowPane.add(animate, cc.xyw(10,6,3, "right,center"));
|
lowPane.add(animate, cc.xy(10,6, "right,center"));
|
public CustomWindow(LociDataBrowser db, ImagePlus imp, ImageCanvas canvas) { super(imp, canvas); this.db = db; ow = null; String title = imp.getTitle(); this.setTitle(title.substring(title.lastIndexOf(File.separatorChar) + 1)); //setup which variables the sliders are set to zMap = 0; tMap = 1; cMap = 2; prevZ = 0; prevT = 1; setup = false; // create panel for image canvas Panel imagePane = new Panel() { public void paint(Graphics g) { // paint bounding box here instead of in ImageWindow directly Point loc = ic.getLocation(); Dimension csize = ic.getSize(); g.drawRect(loc.x - 1, loc.y - 1, csize.width + 1, csize.height + 1); } };// imagePane.setLayout(getLayout()); // ImageLayout// imagePane.setBackground(Color.white); // redo layout for master window remove(ic); imagePane.add(ic); // Z scroll bar label zLabel = new JLabel(zString); zLabel.setHorizontalTextPosition(JLabel.LEFT); if (!db.hasZ) zLabel.setEnabled(false); // T scroll bar label tLabel = new JLabel(tString); tLabel.setHorizontalTextPosition(JLabel.LEFT); if (!db.hasT) tLabel.setEnabled(false); // Z scroll bar zSliceSel = new JScrollBar(JScrollBar.HORIZONTAL, 1, 1, 1, db.hasZ ? db.numZ + 1 : 2); if (!db.hasZ) zSliceSel.setEnabled(false); zSliceSel.addAdjustmentListener(this); zSliceSel.setUnitIncrement(1); zSliceSel.setBlockIncrement(5); // T scroll bar tSliceSel = new JScrollBar(JScrollBar.HORIZONTAL, 1, 1, 1, db.hasT ? db.numT + 1 : 2); if (!db.hasT) tSliceSel.setEnabled(false); tSliceSel.addAdjustmentListener(this); tSliceSel.setUnitIncrement(1); tSliceSel.setBlockIncrement(5); // animate button animate = new JButton(ANIM_STRING); if (!db.hasT && !db.hasZ) animate.setEnabled(false); animate.addActionListener(this); // options button options = new JButton("Options"); options.setActionCommand("options"); options.addActionListener(this); options.setEnabled(true); // OME-XML button boolean canDoXML = true; try { // disable XML button if proper libraries are not installed Class.forName("org.openmicroscopy.xml.OMENode"); // ome-java.jar Class.forName("loci.ome.notebook.MetadataNotebook"); // ome-notebook.jar Class.forName("com.jgoodies.forms.layout.FormLayout"); // forms-1.0.4.jar } catch (Throwable e) { canDoXML = false; } xml = null; if (canDoXML) { xml = new JButton("Metadata"); xml.addActionListener(this); xml.setActionCommand("xml"); } channelBox = new JCheckBox("Transmitted"); cLabel = new JLabel("channel"); textColor = cLabel.getForeground(); SpinnerModel model = new SpinnerNumberModel(1, 1, db.numC, 1); channelSpin = new JSpinner(model); channelSpin.setEditor(new JSpinner.NumberEditor(channelSpin)); if(db.numC > 2) channelBox.setVisible(false); else { channelSpin.setVisible(false); cLabel.setForeground(Color.white); } // repack to take extra panel into account c = db.numC; if (db.numC * db.numT * db.numZ == imp.getStackSize()) { c = db.numC; } else c = 1; JPanel zPanel = new JPanel(new BorderLayout()); JPanel tPanel = new JPanel(new BorderLayout()); zPanel.add(zSliceSel,BorderLayout.CENTER); tPanel.add(tSliceSel,BorderLayout.CENTER); if(db.virtual) { zIndicator = new CacheIndicator(zSliceSel); tIndicator = new CacheIndicator(tSliceSel); zPanel.add(zIndicator,BorderLayout.SOUTH); tPanel.add(tIndicator,BorderLayout.SOUTH); } //setup the layout lowPane = new Panel(); FormLayout layout = new FormLayout( TAB + ",pref," + TAB + ",pref:grow," + TAB + ",pref," + TAB + ",pref," + TAB + ",pref," + TAB + ",pref," + TAB, TAB + ",pref," + TAB + ",pref," + TAB + ",pref," + TAB); lowPane.setLayout(layout); lowPane.setBackground(Color.white); cc = new CellConstraints(); lowPane.add(zLabel, cc.xy(2,2)); lowPane.add(zPanel, cc.xyw(4,2,5)); lowPane.add(channelBox, cc.xy(12,2)); lowPane.add(tLabel, cc.xy(2,4)); lowPane.add(tPanel, cc.xyw(4,4,5)); lowPane.add(cLabel, cc.xy(10,4)); lowPane.add(channelSpin, cc.xy(12,4)); lowPane.add(options, cc.xy(6,6)); if(xml != null) lowPane.add(xml, cc.xy(8,6)); lowPane.add(animate, cc.xyw(10,6,3, "right,center")); setC(2); setBackground(Color.white); FormLayout layout2 = new FormLayout( TAB + ",pref:grow," + TAB, TAB + "," + TAB + ",pref:grow," + TAB + ",pref," + TAB); setLayout(layout2); CellConstraints cc2 = new CellConstraints(); add(imagePane, cc2.xyw(1,3,3)); add(lowPane, cc2.xy(2,5)); //final GUI tasks pack(); showSlice(z, t, c); // listen for arrow key presses addKeyListener(this); ic.addKeyListener(this); }
|
55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/10b7736cc57ec6d68a6821b26159769bff1e9cb4/CustomWindow.java/buggy/loci/plugins/browser/CustomWindow.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
6082,
3829,
12,
1333,
77,
751,
9132,
1319,
16,
3421,
13207,
1646,
16,
3421,
12971,
5953,
13,
288,
565,
2240,
12,
14532,
16,
5953,
1769,
565,
333,
18,
1966,
273,
1319,
31,
565,
2523,
273,
446,
31,
565,
514,
2077,
273,
1646,
18,
588,
4247,
5621,
565,
333,
18,
542,
4247,
12,
2649,
18,
28023,
12,
2649,
18,
2722,
31985,
12,
812,
18,
11287,
2156,
13,
397,
404,
10019,
565,
368,
8401,
1492,
3152,
326,
2020,
24290,
854,
444,
358,
565,
998,
863,
273,
374,
31,
565,
268,
863,
273,
404,
31,
565,
276,
863,
273,
576,
31,
565,
2807,
62,
273,
374,
31,
565,
2807,
56,
273,
404,
31,
565,
3875,
273,
629,
31,
565,
368,
752,
6594,
364,
1316,
5953,
565,
23641,
1316,
8485,
273,
394,
23641,
1435,
288,
1377,
1071,
918,
12574,
12,
17558,
314,
13,
288,
3639,
368,
12574,
7552,
3919,
2674,
3560,
434,
316,
3421,
3829,
5122,
3639,
4686,
1515,
273,
13579,
18,
588,
2735,
5621,
3639,
13037,
276,
1467,
273,
13579,
18,
588,
1225,
5621,
3639,
314,
18,
9446,
6120,
12,
1829,
18,
92,
300,
404,
16,
1515,
18,
93,
300,
404,
16,
276,
1467,
18,
2819,
397,
404,
16,
276,
1467,
18,
4210,
397,
404,
1769,
1377,
289,
565,
289,
31,
759,
565,
1316,
8485,
18,
542,
3744,
12,
588,
3744,
10663,
368,
3421,
3744,
759,
565,
1316,
8485,
18,
542,
8199,
12,
2957,
18,
14739,
1769,
565,
368,
24524,
3511,
364,
4171,
2742,
565,
1206,
12,
335,
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,
6082,
3829,
12,
1333,
77,
751,
9132,
1319,
16,
3421,
13207,
1646,
16,
3421,
12971,
5953,
13,
288,
565,
2240,
12,
14532,
16,
5953,
1769,
565,
333,
18,
1966,
273,
1319,
31,
565,
2523,
273,
446,
31,
565,
514,
2077,
273,
1646,
18,
588,
4247,
5621,
565,
333,
18,
542,
4247,
12,
2649,
18,
28023,
12,
2649,
18,
2722,
31985,
12,
812,
18,
11287,
2156,
13,
397,
404,
10019,
565,
368,
8401,
1492,
3152,
326,
2020,
24290,
854,
444,
358,
565,
998,
863,
273,
374,
31,
565,
268,
863,
273,
404,
31,
565,
276,
863,
273,
576,
31,
565,
2807,
62,
273,
374,
31,
565,
2807,
56,
273,
404,
31,
565,
3875,
273,
629,
31,
565,
368,
2
] |
+ ") cannot be found ");
|
+ ") cannot be found ");
|
public static synchronized RecordFormat getRecordFormat(final String recordDescriptor, final AS400 as400) throws Exception { log.debug("Record descriptor :" + recordDescriptor); if (recordDescriptor == null) { throw new Exception("Failed to read record descriptor : recordDescriptor property is not set "); } InputStream input = null; RecordFormat recordFormat = null; try { input = IOUtils.getResourceAsStream(recordDescriptor, DQMessageUtils.class); if (input == null) { throw new Exception("Failed to read record descriptor (" + recordDescriptor + ") cannot be found "); } recordFormat = parse(input, as400); } finally { if (input != null) { input.close(); } } return recordFormat; }
|
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/787c2bcf9b47b232da7f6830d56817afa1981582/DQMessageUtils.java/buggy/transports/dq/src/main/java/org/mule/providers/dq/DQMessageUtils.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
3852,
5059,
1630,
11674,
1630,
12,
6385,
514,
1409,
3187,
16,
727,
5355,
16010,
487,
16010,
13,
3639,
1216,
1185,
565,
288,
3639,
613,
18,
4148,
2932,
2115,
4950,
20514,
397,
1409,
3187,
1769,
3639,
309,
261,
3366,
3187,
422,
446,
13,
3639,
288,
5411,
604,
394,
1185,
2932,
2925,
358,
855,
1409,
4950,
294,
1409,
3187,
1272,
353,
486,
444,
315,
1769,
3639,
289,
3639,
5037,
810,
273,
446,
31,
3639,
5059,
1630,
1409,
1630,
273,
446,
31,
3639,
775,
3639,
288,
5411,
810,
273,
18044,
18,
588,
1420,
17052,
12,
3366,
3187,
16,
463,
53,
1079,
1989,
18,
1106,
1769,
5411,
309,
261,
2630,
422,
446,
13,
5411,
288,
7734,
604,
394,
1185,
2932,
2925,
358,
855,
1409,
4950,
225,
7566,
397,
1409,
3187,
4766,
565,
397,
9369,
2780,
506,
1392,
315,
1769,
5411,
289,
5411,
1409,
1630,
273,
1109,
12,
2630,
16,
487,
16010,
1769,
3639,
289,
3639,
3095,
3639,
288,
5411,
309,
261,
2630,
480,
446,
13,
5411,
288,
7734,
810,
18,
4412,
5621,
5411,
289,
3639,
289,
3639,
327,
1409,
1630,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
3852,
5059,
1630,
11674,
1630,
12,
6385,
514,
1409,
3187,
16,
727,
5355,
16010,
487,
16010,
13,
3639,
1216,
1185,
565,
288,
3639,
613,
18,
4148,
2932,
2115,
4950,
20514,
397,
1409,
3187,
1769,
3639,
309,
261,
3366,
3187,
422,
446,
13,
3639,
288,
5411,
604,
394,
1185,
2932,
2925,
358,
855,
1409,
4950,
294,
1409,
3187,
1272,
353,
486,
444,
315,
1769,
3639,
289,
3639,
5037,
810,
273,
446,
31,
3639,
5059,
1630,
1409,
1630,
273,
446,
31,
3639,
775,
3639,
288,
5411,
810,
273,
18044,
18,
588,
1420,
17052,
12,
3366,
3187,
16,
463,
53,
1079,
1989,
18,
1106,
1769,
5411,
309,
261,
2630,
422,
446,
13,
5411,
288,
7734,
604,
394,
1185,
2932,
2
] |
protected abstract void newSessionRequest( ArgonAgent agent, Iterator iter );
|
protected abstract void newSessionRequest( ArgonAgent agent, Iterator iter, byte originalServerIntf );
|
protected abstract void newSessionRequest( ArgonAgent agent, Iterator iter );
|
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/71e0a0724f5136fd8522326c36b34c28c777fab1/ArgonHook.java/clean/mvvm/main/com/metavize/mvvm/argon/ArgonHook.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
8770,
918,
394,
2157,
691,
12,
14448,
265,
3630,
4040,
16,
4498,
1400,
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
] |
[
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
8770,
918,
394,
2157,
691,
12,
14448,
265,
3630,
4040,
16,
4498,
1400,
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
] |
fnCurrent = (OptFunctionNode)scriptOrFn;
|
fnCurrent = OptFunctionNode.get(scriptOrFn);
|
private void initBodyGeneration() { if (scriptOrFn.getType() == Token.FUNCTION) { fnCurrent = (OptFunctionNode)scriptOrFn; } else { fnCurrent = null; } isTopLevel = (scriptOrFn == codegen.scriptOrFnNodes[0]); inDirectCallFunction = (fnCurrent == null) ? false : fnCurrent.isTargetOfDirectCall(); hasVarsInRegs = (fnCurrent != null && !fnCurrent.requiresActivation()); locals = new boolean[MAX_LOCALS]; funObjLocal = 0; contextLocal = 1; variableObjectLocal = 2; thisObjLocal = 3; localsMax = (short) 4; // number of parms + "this" firstFreeLocal = 4; popvLocal = -1; argsLocal = -1; itsZeroArgArray = -1; itsOneArgArray = -1; scriptRegexpLocal = -1; epilogueLabel = -1; }
|
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/44e703307d6af6943b0437e6eaccbe2ac2521f18/Codegen.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
2250,
13842,
1435,
565,
288,
3639,
309,
261,
4263,
1162,
5372,
18,
588,
559,
1435,
422,
3155,
18,
7788,
13,
288,
5411,
2295,
3935,
273,
12056,
2083,
907,
18,
588,
12,
4263,
1162,
5372,
1769,
3639,
289,
469,
288,
5411,
2295,
3935,
273,
446,
31,
3639,
289,
3639,
353,
27046,
273,
261,
4263,
1162,
5372,
422,
23198,
18,
4263,
1162,
5372,
3205,
63,
20,
19226,
3639,
316,
5368,
1477,
2083,
273,
261,
4293,
3935,
422,
446,
13,
692,
629,
4766,
282,
294,
2295,
3935,
18,
291,
2326,
951,
5368,
1477,
5621,
3639,
711,
5555,
382,
426,
564,
273,
261,
4293,
3935,
480,
446,
597,
401,
4293,
3935,
18,
18942,
14857,
10663,
3639,
8985,
273,
394,
1250,
63,
6694,
67,
14922,
55,
15533,
3639,
9831,
2675,
2042,
273,
374,
31,
3639,
819,
2042,
273,
404,
31,
3639,
2190,
921,
2042,
273,
576,
31,
3639,
15261,
2042,
273,
890,
31,
3639,
8985,
2747,
273,
261,
6620,
13,
1059,
31,
225,
368,
1300,
434,
17902,
397,
315,
2211,
6,
3639,
1122,
9194,
2042,
273,
1059,
31,
3639,
1843,
90,
2042,
273,
300,
21,
31,
3639,
833,
2042,
273,
300,
21,
31,
3639,
2097,
7170,
4117,
1076,
273,
300,
21,
31,
3639,
2097,
3335,
4117,
1076,
273,
300,
21,
31,
3639,
2728,
14621,
2042,
273,
300,
21,
31,
3639,
5529,
21947,
344,
2224,
273,
300,
21,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
2250,
13842,
1435,
565,
288,
3639,
309,
261,
4263,
1162,
5372,
18,
588,
559,
1435,
422,
3155,
18,
7788,
13,
288,
5411,
2295,
3935,
273,
12056,
2083,
907,
18,
588,
12,
4263,
1162,
5372,
1769,
3639,
289,
469,
288,
5411,
2295,
3935,
273,
446,
31,
3639,
289,
3639,
353,
27046,
273,
261,
4263,
1162,
5372,
422,
23198,
18,
4263,
1162,
5372,
3205,
63,
20,
19226,
3639,
316,
5368,
1477,
2083,
273,
261,
4293,
3935,
422,
446,
13,
692,
629,
4766,
282,
294,
2295,
3935,
18,
291,
2326,
951,
5368,
1477,
5621,
3639,
711,
5555,
382,
426,
564,
273,
261,
4293,
3935,
480,
446,
597,
401,
4293,
3935,
18,
18942,
14857,
10663,
3639,
8985,
273,
394,
2
] |
body.statements().add(invocation);
|
bodyStatement= ASTNodes.asFormattedString(invocation, 0, delimiter);
|
public static MethodDeclaration createConstructorStub(ICompilationUnit unit, ASTRewrite rewrite, ImportRewrite imports, ITypeBinding typeBinding, AST ast, IMethodBinding superConstructor, IVariableBinding[] variableBindings, int modifiers, CodeGenerationSettings settings) throws CoreException { MethodDeclaration decl= ast.newMethodDeclaration(); decl.modifiers().addAll(ASTNodeFactory.newModifiers(ast, modifiers & ~Modifier.ABSTRACT & ~Modifier.NATIVE)); decl.setName(ast.newSimpleName(typeBinding.getName())); decl.setConstructor(true); List parameters= decl.parameters(); if (superConstructor != null) { ITypeBinding[] typeParams= superConstructor.getTypeParameters(); List typeParameters= decl.typeParameters(); for (int i= 0; i < typeParams.length; i++) { ITypeBinding curr= typeParams[i]; TypeParameter newTypeParam= ast.newTypeParameter(); newTypeParam.setName(ast.newSimpleName(curr.getName())); ITypeBinding[] typeBounds= curr.getTypeBounds(); if (typeBounds.length != 1 || !"java.lang.Object".equals(typeBounds[0].getQualifiedName())) {//$NON-NLS-1$ List newTypeBounds= newTypeParam.typeBounds(); for (int k= 0; k < typeBounds.length; k++) { newTypeBounds.add(imports.addImport(typeBounds[k], ast)); } } typeParameters.add(newTypeParam); } createParameters(unit, imports, ast, superConstructor, decl); List thrownExceptions= decl.thrownExceptions(); ITypeBinding[] excTypes= superConstructor.getExceptionTypes(); for (int i= 0; i < excTypes.length; i++) { String excTypeName= imports.addImport(excTypes[i]); thrownExceptions.add(ASTNodeFactory.newName(ast, excTypeName)); } } Block body= ast.newBlock(); decl.setBody(body); String delimiter= StubUtility.getLineDelimiterUsed(unit); if (superConstructor != null) { SuperConstructorInvocation invocation= ast.newSuperConstructorInvocation(); SingleVariableDeclaration varDecl= null; for (Iterator iterator= parameters.iterator(); iterator.hasNext();) { varDecl= (SingleVariableDeclaration) iterator.next(); invocation.arguments().add(ast.newSimpleName(varDecl.getName().getIdentifier())); } body.statements().add(invocation); } List prohibited= new ArrayList(); for (final Iterator iterator= parameters.iterator(); iterator.hasNext();) prohibited.add(((SingleVariableDeclaration) iterator.next()).getName().getIdentifier()); String param= null; List list= new ArrayList(prohibited); String[] excluded= null; for (int i= 0; i < variableBindings.length; i++) { SingleVariableDeclaration var= ast.newSingleVariableDeclaration(); var.setType(imports.addImport(variableBindings[i].getType(), ast)); if (Modifier.isFinal(variableBindings[i].getModifiers())) var.modifiers().add(ast.newModifier(ModifierKeyword.FINAL_KEYWORD)); excluded= new String[list.size()]; list.toArray(excluded); param= getParameterName(unit, variableBindings[i], excluded); list.add(param); var.setName(ast.newSimpleName(param)); parameters.add(var); } list= new ArrayList(prohibited); for (int i= 0; i < variableBindings.length; i++) { excluded= new String[list.size()]; list.toArray(excluded); final String paramName= getParameterName(unit, variableBindings[i], excluded); list.add(paramName); final String fieldName= variableBindings[i].getName(); Expression expression= null; if (paramName.equals(fieldName) || settings.useKeywordThis) { FieldAccess access= ast.newFieldAccess(); access.setExpression(ast.newThisExpression()); access.setName(ast.newSimpleName(fieldName)); expression= access; } else expression= ast.newSimpleName(fieldName); Assignment assignment= ast.newAssignment(); assignment.setLeftHandSide(expression); assignment.setRightHandSide(ast.newSimpleName(paramName)); assignment.setOperator(Assignment.Operator.ASSIGN); body.statements().add(ast.newExpressionStatement(assignment)); } if (settings != null && settings.createComments) { String string= CodeGeneration.getMethodComment(unit, typeBinding.getName(), decl, superConstructor, delimiter); if (string != null) { Javadoc javadoc= (Javadoc) rewrite.createStringPlaceholder(string, ASTNode.JAVADOC); decl.setJavadoc(javadoc); } } return decl; }
|
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/2c22b4c6729dc4c4e471cce396beda825ae73521/StubUtility2.java/buggy/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/StubUtility2.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
2985,
6094,
752,
6293,
11974,
12,
45,
19184,
2802,
2836,
16,
432,
3902,
12341,
10738,
16,
6164,
19618,
10095,
16,
467,
559,
5250,
618,
5250,
16,
9183,
3364,
16,
467,
1305,
5250,
2240,
6293,
16,
467,
3092,
5250,
8526,
2190,
10497,
16,
509,
10429,
16,
3356,
13842,
2628,
1947,
13,
1216,
30015,
288,
202,
202,
1305,
6094,
3496,
33,
3364,
18,
2704,
1305,
6094,
5621,
202,
202,
8840,
18,
15432,
7675,
1289,
1595,
12,
9053,
907,
1733,
18,
2704,
11948,
12,
689,
16,
10429,
473,
4871,
9829,
18,
26756,
473,
4871,
9829,
18,
50,
12992,
10019,
202,
202,
8840,
18,
542,
461,
12,
689,
18,
2704,
5784,
461,
12,
723,
5250,
18,
17994,
1435,
10019,
202,
202,
8840,
18,
542,
6293,
12,
3767,
1769,
202,
202,
682,
1472,
33,
3496,
18,
3977,
5621,
202,
202,
430,
261,
9565,
6293,
480,
446,
13,
288,
1082,
202,
45,
559,
5250,
8526,
618,
1370,
33,
2240,
6293,
18,
588,
559,
2402,
5621,
1082,
202,
682,
618,
2402,
33,
3496,
18,
20490,
5621,
1082,
202,
1884,
261,
474,
277,
33,
374,
31,
277,
411,
618,
1370,
18,
2469,
31,
277,
27245,
288,
9506,
202,
45,
559,
5250,
4306,
33,
618,
1370,
63,
77,
15533,
9506,
202,
16920,
23319,
786,
33,
3364,
18,
2704,
16920,
5621,
9506,
202,
2704,
559,
786,
18,
542,
461,
12,
689,
18,
2704,
5784,
461,
12,
17016,
18,
17994,
1435,
10019,
9506,
202,
45,
559,
5250,
8526,
618,
5694,
33,
4306,
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,
482,
760,
2985,
6094,
752,
6293,
11974,
12,
45,
19184,
2802,
2836,
16,
432,
3902,
12341,
10738,
16,
6164,
19618,
10095,
16,
467,
559,
5250,
618,
5250,
16,
9183,
3364,
16,
467,
1305,
5250,
2240,
6293,
16,
467,
3092,
5250,
8526,
2190,
10497,
16,
509,
10429,
16,
3356,
13842,
2628,
1947,
13,
1216,
30015,
288,
202,
202,
1305,
6094,
3496,
33,
3364,
18,
2704,
1305,
6094,
5621,
202,
202,
8840,
18,
15432,
7675,
1289,
1595,
12,
9053,
907,
1733,
18,
2704,
11948,
12,
689,
16,
10429,
473,
4871,
9829,
18,
26756,
473,
4871,
9829,
18,
50,
12992,
10019,
202,
202,
8840,
18,
542,
461,
12,
689,
18,
2704,
5784,
461,
12,
723,
5250,
18,
17994,
1435,
10019,
2
] |
private float flushLines() throws DocumentException { // checks if the ArrayList with the lines is not null if (lines == null) { return 0; } //add by Jin-Hsia Yang boolean newline=false; //end add by Jin-Hsia Yang // checks if a new Line has to be made. if (line != null && line.size() > 0) { lines.add(line); line = new PdfLine(indentLeft(), indentRight(), alignment, leading); //add by Jin-Hsia Yang newline=true; //end add by Jin-Hsia Yang } // checks if the ArrayList with the lines is empty if (lines.size() == 0) { return 0; } // initialisation of some parameters Object currentValues[] = new Object[2]; PdfFont currentFont = null; float displacement = 0; PdfLine l; PdfChunk chunk; Float lastBaseFactor = new Float(0); currentValues[1] = lastBaseFactor; // looping over all the lines for (Iterator i = lines.iterator(); i.hasNext(); ) { // this is a line in the loop l = (PdfLine) i.next(); if(isParagraphE && isNewpage && newline) { newline=false; text.moveText(l.indentLeft() - indentLeft() + listIndentLeft + paraIndent,-l.height()); } else { text.moveText(l.indentLeft() - indentLeft() + listIndentLeft, -l.height()); } // is the line preceeded by a symbol? if (l.listSymbol() != null) { chunk = l.listSymbol(); text.moveText(- l.listIndent(), 0); if (chunk.font().compareTo(currentFont) != 0) { currentFont = chunk.font(); text.setFontAndSize(currentFont.getFont(), currentFont.size()); } if (chunk.color() != null) { Color color = chunk.color(); text.setColorFill(color); text.showText(chunk.toString()); text.resetRGBColorFill(); } else if (chunk.isImage()) { Image image = chunk.getImage(); float matrix[] = image.matrix(); float xMarker = text.getXTLM(); float yMarker = text.getYTLM(); matrix[Image.CX] = xMarker + chunk.getImageOffsetX() - matrix[Image.CX]; matrix[Image.CY] = yMarker + chunk.getImageOffsetY() - matrix[Image.CY]; addImage(graphics, image, matrix[0], matrix[1], matrix[2], matrix[3], matrix[4], matrix[5]); } else { text.showText(chunk.toString()); } text.moveText(l.listIndent(), 0); } currentValues[0] = currentFont; writeLineToContent(l, text, graphics, currentValues); currentFont = (PdfFont)currentValues[0]; displacement += l.height(); if (indentLeft() - listIndentLeft != l.indentLeft()) { text.moveText(indentLeft() - l.indentLeft() - listIndentLeft, 0); } } lines = new ArrayList(); return displacement; }
|
3011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3011/ea669bc59eb2389cb630e339cea1333f49bb0550/PdfDocument.java/clean/itext/src/com/lowagie/text/pdf/PdfDocument.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1431,
3663,
5763,
1435,
1216,
4319,
503,
288,
7734,
368,
4271,
309,
326,
2407,
598,
326,
2362,
353,
486,
446,
3639,
309,
261,
3548,
422,
446,
13,
288,
5411,
327,
374,
31,
3639,
289,
7734,
368,
1289,
635,
804,
267,
17,
44,
87,
1155,
1624,
539,
3639,
1250,
9472,
33,
5743,
31,
3639,
368,
409,
527,
635,
804,
267,
17,
44,
87,
1155,
1624,
539,
7734,
368,
4271,
309,
279,
394,
5377,
711,
358,
506,
7165,
18,
3639,
309,
261,
1369,
480,
446,
597,
980,
18,
1467,
1435,
405,
374,
13,
288,
5411,
2362,
18,
1289,
12,
1369,
1769,
5411,
980,
273,
394,
9989,
1670,
12,
9355,
3910,
9334,
3504,
4726,
9334,
8710,
16,
7676,
1769,
13491,
368,
1289,
635,
804,
267,
17,
44,
87,
1155,
1624,
539,
5411,
9472,
33,
3767,
31,
5411,
368,
409,
527,
635,
804,
267,
17,
44,
87,
1155,
1624,
539,
10792,
289,
7734,
368,
4271,
309,
326,
2407,
598,
326,
2362,
353,
1008,
3639,
309,
261,
3548,
18,
1467,
1435,
422,
374,
13,
288,
5411,
327,
374,
31,
3639,
289,
7734,
368,
2172,
10742,
434,
2690,
1472,
3639,
1033,
783,
1972,
8526,
273,
394,
1033,
63,
22,
15533,
3639,
9989,
5711,
783,
5711,
273,
446,
31,
3639,
1431,
1015,
15917,
273,
374,
31,
3639,
9989,
1670,
328,
31,
3639,
9989,
5579,
2441,
31,
3639,
5450,
1142,
2171,
6837,
273,
394,
5450,
12,
20,
1769,
3639,
783,
1972,
63,
21,
65,
273,
1142,
2171,
6837,
31,
3639,
368,
25004,
1879,
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,
1431,
3663,
5763,
1435,
1216,
4319,
503,
288,
7734,
368,
4271,
309,
326,
2407,
598,
326,
2362,
353,
486,
446,
3639,
309,
261,
3548,
422,
446,
13,
288,
5411,
327,
374,
31,
3639,
289,
7734,
368,
1289,
635,
804,
267,
17,
44,
87,
1155,
1624,
539,
3639,
1250,
9472,
33,
5743,
31,
3639,
368,
409,
527,
635,
804,
267,
17,
44,
87,
1155,
1624,
539,
7734,
368,
4271,
309,
279,
394,
5377,
711,
358,
506,
7165,
18,
3639,
309,
261,
1369,
480,
446,
597,
980,
18,
1467,
1435,
405,
374,
13,
288,
5411,
2362,
18,
1289,
12,
1369,
1769,
5411,
980,
273,
394,
9989,
1670,
12,
9355,
3910,
9334,
3504,
4726,
9334,
8710,
16,
7676,
1769,
13491,
2
] |
||
setBounds((Bounds)newValue);
|
setBounds((Bounds) newValue);
|
public void eSet(EStructuralFeature eFeature, Object newValue) { switch (eDerivedStructuralFeatureID(eFeature)) { case LayoutPackage.LEGEND__CHILDREN: getChildren().clear(); getChildren().addAll((Collection)newValue); return; case LayoutPackage.LEGEND__BOUNDS: setBounds((Bounds)newValue); return; case LayoutPackage.LEGEND__ANCHOR: setAnchor((Anchor)newValue); return; case LayoutPackage.LEGEND__STRETCH: setStretch((Stretch)newValue); return; case LayoutPackage.LEGEND__INSETS: setInsets((Insets)newValue); return; case LayoutPackage.LEGEND__ROW: setRow(((Integer)newValue).intValue()); return; case LayoutPackage.LEGEND__COLUMN: setColumn(((Integer)newValue).intValue()); return; case LayoutPackage.LEGEND__ROWSPAN: setRowspan(((Integer)newValue).intValue()); return; case LayoutPackage.LEGEND__COLUMNSPAN: setColumnspan(((Integer)newValue).intValue()); return; case LayoutPackage.LEGEND__MIN_SIZE: setMinSize((Size)newValue); return; case LayoutPackage.LEGEND__OUTLINE: setOutline((LineAttributes)newValue); return; case LayoutPackage.LEGEND__BACKGROUND: setBackground((Fill)newValue); return; case LayoutPackage.LEGEND__VISIBLE: setVisible(((Boolean)newValue).booleanValue()); return; case LayoutPackage.LEGEND__TRIGGERS: getTriggers().clear(); getTriggers().addAll((Collection)newValue); return; case LayoutPackage.LEGEND__HORIZONTAL_SPACING: setHorizontalSpacing(((Integer)newValue).intValue()); return; case LayoutPackage.LEGEND__VERTICAL_SPACING: setVerticalSpacing(((Integer)newValue).intValue()); return; case LayoutPackage.LEGEND__CLIENT_AREA: setClientArea((ClientArea)newValue); return; case LayoutPackage.LEGEND__TEXT: setText((Text)newValue); return; case LayoutPackage.LEGEND__ORIENTATION: setOrientation((Orientation)newValue); return; case LayoutPackage.LEGEND__DIRECTION: setDirection((Direction)newValue); return; case LayoutPackage.LEGEND__SEPARATOR: setSeparator((LineAttributes)newValue); return; case LayoutPackage.LEGEND__POSITION: setPosition((Position)newValue); return; case LayoutPackage.LEGEND__ITEM_TYPE: setItemType((LegendItemType)newValue); return; } eDynamicSet(eFeature, newValue); }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/LegendImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/layout/impl/LegendImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
20199,
12,
41,
14372,
4595,
425,
4595,
16,
1033,
6129,
13,
565,
288,
3639,
1620,
261,
73,
21007,
14372,
4595,
734,
12,
73,
4595,
3719,
3639,
288,
5411,
648,
9995,
2261,
18,
19384,
4415,
972,
27043,
24296,
30,
7734,
10268,
7675,
8507,
5621,
7734,
10268,
7675,
1289,
1595,
12443,
2532,
13,
2704,
620,
1769,
7734,
327,
31,
5411,
648,
9995,
2261,
18,
19384,
4415,
972,
5315,
2124,
3948,
30,
7734,
444,
5694,
12443,
5694,
13,
6129,
1769,
7734,
327,
31,
5411,
648,
9995,
2261,
18,
19384,
4415,
972,
20360,
916,
30,
7734,
444,
11605,
12443,
11605,
13,
2704,
620,
1769,
7734,
327,
31,
5411,
648,
9995,
2261,
18,
19384,
4415,
972,
882,
10238,
1792,
30,
7734,
444,
510,
20783,
12443,
510,
20783,
13,
2704,
620,
1769,
7734,
327,
31,
5411,
648,
9995,
2261,
18,
19384,
4415,
972,
706,
28092,
30,
7734,
444,
382,
4424,
12443,
382,
4424,
13,
2704,
620,
1769,
7734,
327,
31,
5411,
648,
9995,
2261,
18,
19384,
4415,
972,
11226,
30,
7734,
444,
1999,
12443,
12,
4522,
13,
2704,
620,
2934,
474,
620,
10663,
7734,
327,
31,
5411,
648,
9995,
2261,
18,
19384,
4415,
972,
11009,
30,
7734,
25918,
12443,
12,
4522,
13,
2704,
620,
2934,
474,
620,
10663,
7734,
327,
31,
5411,
648,
9995,
2261,
18,
19384,
4415,
972,
28402,
30819,
30,
7734,
444,
1999,
3969,
12443,
12,
4522,
13,
2704,
620,
2934,
474,
620,
10663,
7734,
327,
31,
5411,
648,
9995,
2261,
18,
19384,
4415,
972,
11009,
3118,
1258,
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,
20199,
12,
41,
14372,
4595,
425,
4595,
16,
1033,
6129,
13,
565,
288,
3639,
1620,
261,
73,
21007,
14372,
4595,
734,
12,
73,
4595,
3719,
3639,
288,
5411,
648,
9995,
2261,
18,
19384,
4415,
972,
27043,
24296,
30,
7734,
10268,
7675,
8507,
5621,
7734,
10268,
7675,
1289,
1595,
12443,
2532,
13,
2704,
620,
1769,
7734,
327,
31,
5411,
648,
9995,
2261,
18,
19384,
4415,
972,
5315,
2124,
3948,
30,
7734,
444,
5694,
12443,
5694,
13,
6129,
1769,
7734,
327,
31,
5411,
648,
9995,
2261,
18,
19384,
4415,
972,
20360,
916,
30,
7734,
444,
11605,
12443,
11605,
13,
2704,
620,
1769,
7734,
327,
31,
5411,
648,
9995,
2261,
18,
19384,
4415,
972,
882,
10238,
1792,
30,
7734,
2
] |
public ActionForward showEmployeeList(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws FenixServiceException, FenixFilterException { final IUserView userView = SessionUtils.getUserView(request); YearMonth yearMonth = null; ViewState viewState = (ViewState) RenderUtils.getViewState(); if (viewState != null) { yearMonth = (YearMonth) viewState.getMetaObject().getObject(); } if (yearMonth == null) { yearMonth = new YearMonth(); yearMonth.setYear(new YearMonthDay().getYear()); yearMonth.setMonth(Month.values()[new YearMonthDay().getMonthOfYear() - 1]); } else if (yearMonth.getYear() > new YearMonthDay().getYear() || (yearMonth.getYear() == new YearMonthDay().getYear() && yearMonth.getMonth() .compareTo(Month.values()[new YearMonthDay().getMonthOfYear() - 1]) > 0)) { saveErrors(request, "error.invalidFutureDate"); yearMonth = new YearMonth(); yearMonth.setYear(new YearMonthDay().getYear()); yearMonth.setMonth(Month.values()[new YearMonthDay().getMonthOfYear() - 1]); request.setAttribute("yearMonth", yearMonth); return mapping.getInputForward(); } else if (yearMonth.getYear() < 2006) { saveErrors(request, "error.invalidPastDate"); request.setAttribute("yearMonth", yearMonth); return mapping.getInputForward(); } YearMonthDay beginDate = new YearMonthDay(yearMonth.getYear(), yearMonth.getMonth().ordinal() + 1, 01); YearMonthDay endDate = new YearMonthDay(yearMonth.getYear(), yearMonth.getMonth().ordinal() + 1, beginDate.dayOfMonth().getMaximumValue()); request.setAttribute("yearMonth", yearMonth); List<UnitEmployees> unitEmployeesList = new ArrayList<UnitEmployees>(); for (PersonFunction personFunction : userView.getPerson().getPersonFuntions(beginDate, endDate)) { if (personFunction.getFunction().getFunctionType() == FunctionType.ASSIDUOUSNESS_RESPONSIBLE) { // tenho acesso as pessoas numa nidade.... mas a funo pode ter outro prazo! List<Employee> employeeList = personFunction.getFunction().getUnit() .getAllWorkingEmployees(beginDate, endDate); if (!employeeList.isEmpty()) { UnitEmployees unitEmployees = new UnitEmployees(); unitEmployees.setUnit(personFunction.getFunction().getUnit()); unitEmployees.setEmployeeList(employeeList); Collections.sort(unitEmployees.getEmployeeList(), new BeanComparator( "employeeNumber")); unitEmployeesList.add(unitEmployees); } for (Unit unit : personFunction.getFunction().getUnit().getAllActiveSubUnits( new YearMonthDay())) { employeeList = unit.getAllWorkingEmployees(beginDate, endDate); if (!employeeList.isEmpty()) { UnitEmployees unitEmployees = new UnitEmployees(); unitEmployees.setUnit(unit); unitEmployees.setEmployeeList(employeeList); Collections.sort(unitEmployees.getEmployeeList(), new BeanComparator( "employeeNumber")); unitEmployeesList.add(unitEmployees); } } } } Collections.sort(unitEmployeesList, new BeanComparator("unit.name")); request.setAttribute("unitEmployeesList", unitEmployeesList); return mapping.findForward("show-employee-list"); }
|
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/98632edf46ebc34ecb51655d6a37d8b3f3ac520c/AssiduousnessResponsibleDispatchAction.java/buggy/src/net/sourceforge/fenixedu/presentationTier/Action/employee/AssiduousnessResponsibleDispatchAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1803,
8514,
4500,
41,
27520,
682,
12,
1803,
3233,
6770,
16,
1803,
1204,
687,
16,
2940,
18572,
2293,
16,
2940,
4745,
607,
500,
550,
281,
575,
13,
15069,
42,
275,
697,
15133,
16,
42,
275,
697,
1586,
503,
95,
6385,
45,
1299,
1767,
1355,
1767,
33,
2157,
1989,
18,
588,
1299,
1767,
12,
2293,
1769,
5593,
5445,
6874,
5445,
33,
2011,
31,
1767,
1119,
1945,
1119,
28657,
1767,
1119,
13,
3420,
1989,
18,
588,
1767,
1119,
5621,
430,
12,
1945,
1119,
5,
33,
2011,
15329,
6874,
5445,
28657,
5593,
5445,
13,
1945,
1119,
18,
588,
2781,
921,
7675,
588,
921,
5621,
97,
430,
12,
6874,
5445,
631,
2011,
15329,
6874,
5445,
33,
2704,
5593,
5445,
5621,
6874,
5445,
18,
542,
5593,
12,
2704,
5593,
5445,
4245,
7675,
588,
5593,
10663,
6874,
5445,
18,
542,
5445,
12,
5445,
18,
2372,
1435,
63,
2704,
5593,
5445,
4245,
7675,
588,
5445,
19091,
1435,
17,
21,
19226,
97,
12107,
430,
12,
6874,
5445,
18,
588,
5593,
1435,
34,
2704,
5593,
5445,
4245,
7675,
588,
5593,
1435,
20081,
12,
6874,
5445,
18,
588,
5593,
1435,
631,
2704,
5593,
5445,
4245,
7675,
588,
5593,
1435,
10,
10,
6874,
5445,
18,
588,
5445,
7675,
9877,
774,
12,
5445,
18,
2372,
1435,
63,
2704,
5593,
5445,
4245,
7675,
588,
5445,
19091,
1435,
17,
21,
5717,
34,
20,
3719,
95,
5688,
4229,
12,
2293,
10837,
1636,
18,
5387,
4118,
1626,
8863,
6874,
5445,
33,
2704,
5593,
5445,
5621,
6874,
5445,
18,
542,
5593,
12,
2704,
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,
1071,
1803,
8514,
4500,
41,
27520,
682,
12,
1803,
3233,
6770,
16,
1803,
1204,
687,
16,
2940,
18572,
2293,
16,
2940,
4745,
607,
500,
550,
281,
575,
13,
15069,
42,
275,
697,
15133,
16,
42,
275,
697,
1586,
503,
95,
6385,
45,
1299,
1767,
1355,
1767,
33,
2157,
1989,
18,
588,
1299,
1767,
12,
2293,
1769,
5593,
5445,
6874,
5445,
33,
2011,
31,
1767,
1119,
1945,
1119,
28657,
1767,
1119,
13,
3420,
1989,
18,
588,
1767,
1119,
5621,
430,
12,
1945,
1119,
5,
33,
2011,
15329,
6874,
5445,
28657,
5593,
5445,
13,
1945,
1119,
18,
588,
2781,
921,
7675,
588,
921,
5621,
97,
430,
12,
6874,
5445,
631,
2011,
15329,
6874,
5445,
33,
2704,
5593,
5445,
5621,
6874,
5445,
2
] |
||
Object[] args = new Object[] { constraintPropertyName, constraintOwningClass, propertyValue, new Integer(maxSize) }; if(propertyValue == null) { super.rejectValue(errors,MAX_LENGTH_CONSTRAINT + EXCEEDED_SUFFIX,args,getDefaultMessage(DEFAULT_INVALID_MAX_LENGTH_MESSAGE_CODE, args));
|
Object[] args = new Object[] { constraintPropertyName, constraintOwningClass, propertyValue, new Integer(maxSize) }; if(propertyValue == null) { super.rejectValue(errors,MAX_LENGTH_CONSTRAINT + EXCEEDED_SUFFIX,args,getDefaultMessage(DEFAULT_INVALID_MAX_LENGTH_MESSAGE_CODE, args));
|
protected void processValidate(Object target, Object propertyValue, Errors errors) { Object[] args = new Object[] { constraintPropertyName, constraintOwningClass, propertyValue, new Integer(maxSize) }; if(propertyValue == null) { super.rejectValue(errors,MAX_LENGTH_CONSTRAINT + EXCEEDED_SUFFIX,args,getDefaultMessage(DEFAULT_INVALID_MAX_LENGTH_MESSAGE_CODE, args)); } else if(propertyValue.getClass().isArray()) { int length = Array.getLength( propertyValue ); if(length > maxSize) { super.rejectValue(errors,MAX_LENGTH_CONSTRAINT + EXCEEDED_SUFFIX,args,getDefaultMessage(DEFAULT_INVALID_MAX_LENGTH_MESSAGE_CODE, args)); } } else if(propertyValue instanceof Collection) { if (((Collection) propertyValue).size() > maxSize) { super.rejectValue(errors, MAX_SIZE_CONSTRAINT + EXCEEDED_SUFFIX, args, getDefaultMessage(DEFAULT_INVALID_MAX_SIZE_MESSAGE_CODE, args)); } else if (propertyValue instanceof Number) { int numberSize = ((Number) propertyValue).intValue(); if (numberSize > maxSize) { super.rejectValue(errors, MAX_SIZE_CONSTRAINT + EXCEEDED_SUFFIX, args, getDefaultMessage(DEFAULT_INVALID_MAX_SIZE_MESSAGE_CODE, args)); } } } else if (propertyValue instanceof String) { if (((String) propertyValue).length() > maxSize) { super.rejectValue(errors, MAX_LENGTH_CONSTRAINT + EXCEEDED_SUFFIX, args, getDefaultMessage(DEFAULT_INVALID_MAX_LENGTH_MESSAGE_CODE, args)); } } }
|
50831 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50831/975905c7e8c55e5fe91c94dc583c4269318ca341/ConstrainedProperty.java/buggy/src/commons/org/codehaus/groovy/grails/validation/ConstrainedProperty.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1117,
918,
1207,
4270,
12,
921,
1018,
16,
1033,
12337,
16,
9372,
1334,
13,
288,
1082,
202,
921,
8526,
833,
273,
394,
1033,
8526,
288,
4954,
13073,
16,
4954,
3494,
2093,
797,
16,
12337,
16,
394,
2144,
12,
1896,
1225,
13,
289,
31,
1082,
202,
430,
12,
4468,
620,
422,
446,
13,
288,
9506,
202,
9565,
18,
24163,
620,
12,
4324,
16,
6694,
67,
7096,
67,
15199,
397,
5675,
26031,
67,
14964,
16,
1968,
16,
588,
1868,
1079,
12,
5280,
67,
9347,
67,
6694,
67,
7096,
67,
8723,
67,
5572,
16,
833,
10019,
5411,
289,
1082,
202,
12107,
309,
12,
4468,
620,
18,
588,
797,
7675,
291,
1076,
10756,
288,
9506,
202,
474,
769,
273,
1510,
18,
588,
1782,
12,
12337,
11272,
9506,
202,
430,
12,
2469,
405,
14777,
13,
288,
6862,
202,
9565,
18,
24163,
620,
12,
4324,
16,
6694,
67,
7096,
67,
15199,
397,
5675,
26031,
67,
14964,
16,
1968,
16,
588,
1868,
1079,
12,
5280,
67,
9347,
67,
6694,
67,
7096,
67,
8723,
67,
5572,
16,
833,
10019,
7734,
289,
1082,
202,
97,
1082,
202,
12107,
309,
12,
4468,
620,
1276,
2200,
13,
288,
7734,
309,
261,
12443,
2532,
13,
12337,
2934,
1467,
1435,
405,
14777,
13,
288,
10792,
2240,
18,
24163,
620,
12,
4324,
16,
4552,
67,
4574,
67,
15199,
397,
5675,
26031,
67,
14964,
16,
833,
16,
4829,
1079,
12,
5280,
67,
9347,
67,
6694,
67,
4574,
67,
8723,
67,
5572,
16,
833,
10019,
7734,
289,
469,
309,
261,
4468,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1117,
918,
1207,
4270,
12,
921,
1018,
16,
1033,
12337,
16,
9372,
1334,
13,
288,
1082,
202,
921,
8526,
833,
273,
394,
1033,
8526,
288,
4954,
13073,
16,
4954,
3494,
2093,
797,
16,
12337,
16,
394,
2144,
12,
1896,
1225,
13,
289,
31,
1082,
202,
430,
12,
4468,
620,
422,
446,
13,
288,
9506,
202,
9565,
18,
24163,
620,
12,
4324,
16,
6694,
67,
7096,
67,
15199,
397,
5675,
26031,
67,
14964,
16,
1968,
16,
588,
1868,
1079,
12,
5280,
67,
9347,
67,
6694,
67,
7096,
67,
8723,
67,
5572,
16,
833,
10019,
5411,
289,
1082,
202,
12107,
309,
12,
4468,
620,
18,
588,
797,
7675,
291,
1076,
10756,
288,
9506,
202,
474,
769,
273,
1510,
18,
2
] |
int shift = superIds.length; Object[] ids = new Object[shift + N];
|
int superLength = superIds.length; Object[] ids = new Object[N + superLength];
|
public Object[] getIds() { Object[] superIds = super.getIds(); if (dense == null) { return superIds; } int N = dense.length; long currentLength = length; if (N > currentLength) { N = (int)currentLength; } if (N == 0) { return superIds; } int shift = superIds.length; Object[] ids = new Object[shift + N]; // Make a copy of dense to be immune to removing // of array elems from other thread when calculating presentCount System.arraycopy(dense, 0, ids, shift, N); int presentCount = 0; for (int i = 0; i != N; ++i) { // Replace existing elements by their indexes if (ids[shift + i] != NOT_FOUND) { ids[shift + presentCount] = new Integer(i); ++presentCount; } } if (presentCount != N) { // dense contains deleted elems, need to shrink the result Object[] tmp = new Object[shift + presentCount]; System.arraycopy(ids, shift, tmp, shift, presentCount); ids = tmp; } System.arraycopy(superIds, 0, ids, 0, shift); return ids; }
|
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/ec7de4390833279cd471e2e09439c03951277118/NativeArray.java/buggy/js/rhino/src/org/mozilla/javascript/NativeArray.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
8526,
2634,
87,
1435,
565,
288,
3639,
1033,
8526,
2240,
2673,
273,
2240,
18,
588,
2673,
5621,
3639,
309,
261,
25942,
422,
446,
13,
288,
327,
2240,
2673,
31,
289,
3639,
509,
423,
273,
16963,
18,
2469,
31,
3639,
1525,
783,
1782,
273,
769,
31,
3639,
309,
261,
50,
405,
783,
1782,
13,
288,
5411,
423,
273,
261,
474,
13,
2972,
1782,
31,
3639,
289,
3639,
309,
261,
50,
422,
374,
13,
288,
327,
2240,
2673,
31,
289,
3639,
509,
4654,
273,
2240,
2673,
18,
2469,
31,
3639,
1033,
8526,
3258,
273,
394,
1033,
63,
4012,
397,
423,
15533,
3639,
368,
4344,
279,
1610,
434,
16963,
358,
506,
709,
81,
7556,
358,
9427,
3639,
368,
434,
526,
14733,
628,
1308,
2650,
1347,
21046,
3430,
1380,
3639,
2332,
18,
1126,
3530,
12,
25942,
16,
374,
16,
3258,
16,
4654,
16,
423,
1769,
3639,
509,
3430,
1380,
273,
374,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
480,
423,
31,
965,
77,
13,
288,
5411,
368,
6910,
2062,
2186,
635,
3675,
5596,
5411,
309,
261,
2232,
63,
4012,
397,
277,
65,
480,
4269,
67,
9294,
13,
288,
7734,
3258,
63,
4012,
397,
3430,
1380,
65,
273,
394,
2144,
12,
77,
1769,
7734,
965,
6706,
1380,
31,
5411,
289,
3639,
289,
3639,
309,
261,
6706,
1380,
480,
423,
13,
288,
5411,
368,
16963,
1914,
4282,
14733,
16,
1608,
358,
17697,
326,
563,
5411,
1033,
8526,
1853,
273,
394,
1033,
63,
4012,
397,
3430,
1380,
15533,
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,
8526,
2634,
87,
1435,
565,
288,
3639,
1033,
8526,
2240,
2673,
273,
2240,
18,
588,
2673,
5621,
3639,
309,
261,
25942,
422,
446,
13,
288,
327,
2240,
2673,
31,
289,
3639,
509,
423,
273,
16963,
18,
2469,
31,
3639,
1525,
783,
1782,
273,
769,
31,
3639,
309,
261,
50,
405,
783,
1782,
13,
288,
5411,
423,
273,
261,
474,
13,
2972,
1782,
31,
3639,
289,
3639,
309,
261,
50,
422,
374,
13,
288,
327,
2240,
2673,
31,
289,
3639,
509,
4654,
273,
2240,
2673,
18,
2469,
31,
3639,
1033,
8526,
3258,
273,
394,
1033,
63,
4012,
397,
423,
15533,
3639,
368,
4344,
279,
1610,
434,
16963,
358,
506,
709,
81,
7556,
358,
9427,
3639,
368,
434,
2
] |
monitor .subTask(MarkerMessages.MarkerView_searching_for_markers); SubProgressMonitor subMonitor = new SubProgressMonitor(monitor, 10);
|
monitor.subTask(MarkerMessages.MarkerView_searching_for_markers); SubProgressMonitor subMonitor = new SubProgressMonitor(monitor, 10);
|
private void buildAllMarkers( IElementCollector collector, IProgressMonitor monitor) { int markerLimit = view.getMarkerLimit(); monitor.beginTask(MarkerMessages.MarkerView_19, markerLimit == -1 ? 60 : 100); try { monitor.subTask(MarkerMessages.MarkerView_waiting_on_changes); if (monitor.isCanceled()) { return; } monitor .subTask(MarkerMessages.MarkerView_searching_for_markers); SubProgressMonitor subMonitor = new SubProgressMonitor(monitor, 10); lastMarkers = MarkerList.compute(view.getEnabledFilters(), subMonitor, true); if (monitor.isCanceled()) return; view.refreshMarkerCounts(monitor); } catch (CoreException e) { IDEWorkbenchPlugin.getDefault().getLog().log(e.getStatus()); lastMarkers = new MarkerList(); return; } if (monitor.isCanceled()) { return; } // Exit immediately if the markers have changed in the meantime. if (markerLimit != -1) { monitor.subTask(MarkerMessages.MarkerView_18); SubProgressMonitor mon = new SubProgressMonitor(monitor, 40); lastMarkers = SortUtil.getFirst(lastMarkers, (TableSorter) view .getViewer().getSorter(), markerLimit, mon); if (monitor.isCanceled()) return; } if(lastMarkers.getSize() == 0){ monitor.done(); return; } monitor.subTask(MarkerMessages.MarkerView_queueing_updates); SubProgressMonitor sub = new SubProgressMonitor(monitor, 50); if (view.isHierarchalMode()) { view.getTableSorter().sort(view.getViewer(), lastMarkers); MarkerCategory[] categories = buildHierarchy(lastMarkers, 0, lastMarkers.getSize() - 1, 0, null); if (categories == null)// Just add the markers collector.add(lastMarkers.toArray(), sub); else collector.add(categories, sub); } else collector.add(lastMarkers.toArray(), sub); if (monitor.isCanceled()) return; monitor.done(); }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/229c44b72ac5a176a7c4d6328bcc38d5cf41c6c3/MarkerAdapter.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerAdapter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1361,
1595,
21644,
12,
1082,
202,
45,
1046,
7134,
8543,
16,
467,
5491,
7187,
6438,
13,
288,
202,
202,
474,
5373,
3039,
273,
1476,
18,
588,
7078,
3039,
5621,
202,
202,
10259,
18,
10086,
2174,
12,
7078,
5058,
18,
7078,
1767,
67,
3657,
16,
9506,
202,
11145,
3039,
422,
300,
21,
692,
4752,
294,
2130,
1769,
202,
202,
698,
288,
1082,
202,
10259,
18,
1717,
2174,
12,
7078,
5058,
18,
7078,
1767,
67,
20241,
67,
265,
67,
6329,
1769,
1082,
202,
430,
261,
10259,
18,
291,
23163,
10756,
288,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
10259,
6862,
202,
18,
1717,
2174,
12,
7078,
5058,
18,
7078,
1767,
67,
3072,
310,
67,
1884,
67,
22807,
1769,
1082,
202,
1676,
5491,
7187,
720,
7187,
273,
394,
2592,
5491,
7187,
12,
10259,
16,
6862,
202,
2163,
1769,
1082,
202,
2722,
21644,
273,
14742,
682,
18,
9200,
12,
1945,
18,
588,
1526,
5422,
9334,
6862,
202,
1717,
7187,
16,
638,
1769,
1082,
202,
430,
261,
10259,
18,
291,
23163,
10756,
9506,
202,
2463,
31,
1082,
202,
1945,
18,
9144,
7078,
9211,
12,
10259,
1769,
202,
202,
97,
1044,
261,
25341,
425,
13,
288,
1082,
202,
10385,
2421,
22144,
3773,
18,
588,
1868,
7675,
588,
1343,
7675,
1330,
12,
73,
18,
588,
1482,
10663,
1082,
202,
2722,
21644,
273,
394,
14742,
682,
5621,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
430,
261,
10259,
18,
291,
23163,
10756,
288,
1082,
202,
2463,
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,
918,
1361,
1595,
21644,
12,
1082,
202,
45,
1046,
7134,
8543,
16,
467,
5491,
7187,
6438,
13,
288,
202,
202,
474,
5373,
3039,
273,
1476,
18,
588,
7078,
3039,
5621,
202,
202,
10259,
18,
10086,
2174,
12,
7078,
5058,
18,
7078,
1767,
67,
3657,
16,
9506,
202,
11145,
3039,
422,
300,
21,
692,
4752,
294,
2130,
1769,
202,
202,
698,
288,
1082,
202,
10259,
18,
1717,
2174,
12,
7078,
5058,
18,
7078,
1767,
67,
20241,
67,
265,
67,
6329,
1769,
1082,
202,
430,
261,
10259,
18,
291,
23163,
10756,
288,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
10259,
6862,
202,
18,
1717,
2174,
12,
7078,
5058,
18,
7078,
1767,
67,
3072,
310,
67,
1884,
2
] |
public final Symbol symbol () { return sym; }
|
public final String symbol () { return sym; }
|
public final Symbol symbol () { return sym; }
|
36870 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36870/9933571afc04a317d6c4f5d01a969d3b5695a14e/Declaration.java/buggy/kawa/lang/Declaration.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
8565,
3273,
1832,
288,
327,
5382,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
727,
8565,
3273,
1832,
288,
327,
5382,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.