rem stringlengths 1 53.3k | add stringlengths 0 80.5k | context stringlengths 6 326k | meta stringlengths 141 403 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
masks[i] &= ~COMPUTED_MASK; masks[i] |= (b) ? COMPUTED_MASK : 0; | if (b) masks[i] |= COMPUTED_MASK; else masks[i] &= ~COMPUTED_MASK; | public void putComputed(int i, boolean b) { masks[i] &= ~COMPUTED_MASK; masks[i] |= (b) ? COMPUTED_MASK : 0; } | 46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/8d03ce5e4f1f836a7a182162a820e4f42e2f60de/StyleMap.java/clean/sources/org/apache/batik/css/engine/StyleMap.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1378,
17934,
12,
474,
277,
16,
1250,
324,
13,
288,
3639,
20931,
63,
77,
65,
12058,
4871,
10057,
57,
6404,
67,
11704,
31,
3639,
20931,
63,
77,
65,
5626,
261,
70,
13,
692,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1378,
17934,
12,
474,
277,
16,
1250,
324,
13,
288,
3639,
20931,
63,
77,
65,
12058,
4871,
10057,
57,
6404,
67,
11704,
31,
3639,
20931,
63,
77,
65,
5626,
261,
70,
13,
692,
13... |
private void updateVerifierControl(int decompiledLine) { | protected void updateVerifierControl(int decompiledLine) { | private void updateVerifierControl(int decompiledLine) { lvtTable.removeAll(); stackTable.removeAll(); String[][][] frame = lastDecompiledResult.getFrameTables( decompiledLine, showQualifiedNames); if (frame != null) { for (int i = 0; i < frame[0].length; ++i) { if (frame[0][i] != null) { new TableItem(lvtTable, SWT.NONE).setText(frame[0][i]); } } for (int i = 0; i < frame[1].length; ++i) { if (frame[1][i] != null) { new TableItem(stackTable, SWT.NONE).setText(frame[1][i]); } } lvtTable.getColumn(0).pack(); lvtTable.getColumn(1).pack(); lvtTable.getColumn(2).pack(); stackTable.getColumn(0).pack(); stackTable.getColumn(1).pack(); } else { // lvtControl.setText(""); // stackControl.setText(""); } tableControl.setSelection(decompiledLine); } | 2697 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2697/ac0834dfd80b120c573481251d075c707235b683/BytecodeOutlineView.java/clean/eclipse/plugin/src/de/loskutov/bco/views/BytecodeOutlineView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1089,
17758,
3367,
12,
474,
443,
19397,
1670,
13,
288,
3639,
5362,
88,
1388,
18,
4479,
1595,
5621,
3639,
2110,
1388,
18,
4479,
1595,
5621,
3639,
514,
63,
6362,
6362,
65,
2623,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1089,
17758,
3367,
12,
474,
443,
19397,
1670,
13,
288,
3639,
5362,
88,
1388,
18,
4479,
1595,
5621,
3639,
2110,
1388,
18,
4479,
1595,
5621,
3639,
514,
63,
6362,
6362,
65,
2623,
... |
if (ChainBuilderAgent.DEBUG) { | /*if (ChainBuilderAgent.DEBUG) { | public void mouseDragged(PInputEvent e) { if (ChainBuilderAgent.DEBUG) { System.err.println("CHAIN HANDLER:got a drag event in chain canvas"); System.err.println("mouse dragged..."+e.getPickedNode()); } mouseMoved(e); super.mouseDragged(e); } | 13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/869da38edf32c7e711340685a28d8c8e84694f92/ChainCreationEventHandler.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainCreationEventHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
7644,
11728,
2423,
12,
52,
1210,
1133,
425,
13,
288,
202,
202,
430,
261,
3893,
1263,
3630,
18,
9394,
13,
288,
1082,
202,
3163,
18,
370,
18,
8222,
2932,
1792,
6964,
24166,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7644,
11728,
2423,
12,
52,
1210,
1133,
425,
13,
288,
202,
202,
430,
261,
3893,
1263,
3630,
18,
9394,
13,
288,
1082,
202,
3163,
18,
370,
18,
8222,
2932,
1792,
6964,
24166,... |
public void setLongFileMode(int longFileMode) { | public void setLongFileMode( int longFileMode ) { | public void setLongFileMode(int longFileMode) { this.longFileMode = longFileMode; } | 55907 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55907/4da7a225ba9c01ca94805923e06e3fb2d46bf201/TarOutputStream.java/buggy/plexus-archiver/src/main/java/org/codehaus/plexus/archiver/tar/TarOutputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
3708,
812,
2309,
12,
509,
1525,
812,
2309,
262,
288,
3639,
333,
18,
5748,
812,
2309,
273,
1525,
812,
2309,
31,
565,
289,
2,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
3708,
812,
2309,
12,
509,
1525,
812,
2309,
262,
288,
3639,
333,
18,
5748,
812,
2309,
273,
1525,
812,
2309,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if (sizeZ == 1) { | if (zSize == 1) { | private void setDimensions(int[][] dims) throws FormatException, IOException { // first set X and Y // this is relatively easy - we can just take the maximum value int maxX = 0; int maxY = 0; for (int i=0; i<dims.length; i++) { if (dims[i][0] > maxX) { maxX = dims[i][0]; } if (dims[i][1] > maxY) { maxY = dims[i][1]; } } for (int i=0; i<dimensions.length; i++) { if (dimensions[i] == 0) dimensions[i]++; } // now the tricky part - setting Z, C and T // first we'll get a list of the prefix blocks Vector prefixes = new Vector(); int i = 0; String prefix = fp.getPrefix(i); while (prefix != null) { prefixes.add(prefix); i++; prefix = fp.getPrefix(i); } int[] counts = fp.getCount(); int sizeZ = 1; int sizeC = 1; int sizeT = 1; String ordering = ""; for (int j=0; j<counts.length; j++) { // which dimension is this? int zndx = -1; int cndx = -1; int tndx = -1; String p = (String) prefixes.get(j); for (int k=0; k<Z.length; k++) { if (p.indexOf(Z[k]) != -1) { zndx = k; } } if (counts[j] <= 4) { for (int k=0; k<C.length; k++) { if (p.indexOf(C[k]) != -1) { cndx = k; } } } for (int k=0; k<T.length; k++) { if (p.indexOf(T[k]) != -1) { tndx = k; } } if (zndx != -1 || cndx != -1 || tndx != -1) { // the largest of these three is the dimension we will choose int zpos = zndx == -1 ? -1 : p.indexOf(Z[zndx]); int cpos = cndx == -1 ? -1 : p.indexOf(C[cndx]); int tpos = tndx == -1 ? -1 : p.indexOf(T[tndx]); int max = zpos; if (cpos > max) max = cpos; if (tpos > max) max = tpos; if (max == zpos) { ordering += "Z"; sizeZ = counts[j]; } else if (max == cpos) { if (sizeC == 1 && !isRGB(currentId)) { ordering += "C"; sizeC = counts[j]; } else { if (sizeZ == 1) { ordering += "Z"; sizeZ = counts[j]; } else if (sizeT == 1) { ordering += "T"; sizeT = counts[j]; } else sizeC *= counts[j]; } } else { ordering += "T"; sizeT = counts[j]; } } else { // our simple check failed, so let's try some more complex stuff // if the count is 2 or 3, it's probably a C size if (counts[j] == 2 || counts[j] == 3) { if (!varyZ && !varyC && !varyT) { if (counts[j] != 1) { // we already set this dimension if (sizeZ == 1) { sizeZ = sizeC; ordering += "Z"; } else if (sizeT == 1) { sizeT = sizeC; ordering += "T"; } } if (ordering.indexOf("C") == -1) ordering += "C"; sizeC = counts[j]; } } else { // the most likely choice is whichever dimension is currently set to 1 if (dimensions[2] == 1) { ordering += "Z"; sizeZ = counts[j]; } else if (dimensions[4] == 1) { ordering += "T"; sizeT = counts[j]; } } } } // reset the dimensions, preserving internal sizes dimensions[3] *= sizeC; if (sizeZ > 1 && dimensions[2] > 1) { if (dimensions[4] == 1) { dimensions[4] = dimensions[2]; dimensions[2] = sizeZ; } else dimensions[2] *= sizeZ; } else dimensions[2] *= sizeZ; if (sizeT > 1 && dimensions[4] > 1) { if (dimensions[2] == 1) { dimensions[2] = dimensions[4]; dimensions[4] = sizeT; } else dimensions[4] *= sizeT; } else dimensions[4] *= sizeT; // make sure ordering is right String begin = ""; String readerOrder = reader.getDimensionOrder(currentId); for (int j=0; j<readerOrder.length(); j++) { if (ordering.indexOf(readerOrder.substring(j, j+1)) == -1) { begin += readerOrder.substring(j, j+1); } } ordering = begin + ordering; order = ordering.substring(0, 5); } | 46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/054bd26b1432b6733cf1a54342b04ae97fa3a07c/FileStitcher.java/buggy/loci/formats/FileStitcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
444,
10796,
12,
474,
63,
6362,
65,
9914,
13,
1216,
4077,
503,
16,
1860,
288,
565,
368,
1122,
444,
1139,
471,
1624,
565,
368,
333,
353,
1279,
17526,
12779,
300,
732,
848,
2537... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
10796,
12,
474,
63,
6362,
65,
9914,
13,
1216,
4077,
503,
16,
1860,
288,
565,
368,
1122,
444,
1139,
471,
1624,
565,
368,
333,
353,
1279,
17526,
12779,
300,
732,
848,
2537... |
public void generateService(OMFactory fac, OMElement defintions) throws Exception { OMElement service = fac.createOMElement(SERVICE_LOCAL_NAME, wsdl); defintions.addChild(service); service.addAttribute(ATTRIBUTE_NAME, axisService.getName(), null); generateSOAP11Port(fac, service); generateSOAP12Port(fac, service); addPolicy(PolicyInclude.SERVICE_POLICY, axisService.getPolicyInclude(), service, fac); if (generateHttp) { generateHTTPPort(fac, service); } } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/ba54d5aaf13444359652c993d6c219b6e3c87cfb/AxisService2OM.java/buggy/modules/core/src/org/apache/axis2/description/AxisService2OM.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2103,
1179,
12,
1872,
1733,
5853,
16,
27573,
531,
12310,
1652,
474,
1115,
13,
1216,
1185,
288,
3639,
531,
12310,
1156,
273,
5853,
18,
2640,
51,
12310,
12,
12426,
67,
14922,
67,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2103,
1179,
12,
1872,
1733,
5853,
16,
27573,
531,
12310,
1652,
474,
1115,
13,
1216,
1185,
288,
3639,
531,
12310,
1156,
273,
5853,
18,
2640,
51,
12310,
12,
12426,
67,
14922,
67,... | ||
documentFilter.remove(getBypass(), offset, length); | f.remove(getBypass(), offset, length); } finally { writeUnlock(); } | public void remove(int offset, int length) throws BadLocationException { if (documentFilter == null) removeImpl(offset, length); else documentFilter.remove(getBypass(), offset, length); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/ba862f89183b5347853381927a04e1e399fae5db/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1206,
12,
474,
1384,
16,
509,
769,
13,
1216,
6107,
2735,
503,
225,
288,
565,
309,
261,
5457,
1586,
422,
446,
13,
1377,
1206,
2828,
12,
3348,
16,
769,
1769,
565,
469,
1377,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1206,
12,
474,
1384,
16,
509,
769,
13,
1216,
6107,
2735,
503,
225,
288,
565,
309,
261,
5457,
1586,
422,
446,
13,
1377,
1206,
2828,
12,
3348,
16,
769,
1769,
565,
469,
1377,
... |
int retopaque = (int) ( ( retalpha ) * 256.0 ); return (double) ( ( retopaque << 24 ) & ( (int) retrgb ) ); | int retopaque = (int) ( ( retalpha ) * 255.9 ); return (double) ( ( retopaque << 24 ) | ( (int) retrgb ) ); | public double attr( int attr, double value, int prim ) { if ( attr == GRF__COLOUR ) { // Treat the colour attribute specially - instead of just // forwarding the call to the attribute method, we split the // value into an RGB part (bits 0-23) which gets forwarded to // atribute(GRF__COLOUR,,) and an alpha part (bits 24-31) which // get forwarded to attribute(GRF__ALPHA,,). double retrgb; double retalpha; if ( value != AstObject.AST__BAD ) { int ivalue = (int) value; double rgb = (double) ( ivalue & 0x00ffffff ); int opaque = ( ivalue & 0xff000000 ) >>> 24; double alpha = ( opaque / 255.0 ); retrgb = attribute( GRF__COLOUR, rgb, prim ); retalpha = attribute( GRF__ALPHA, alpha, prim ); } else { retrgb = attribute( GRF__COLOUR, AstObject.AST__BAD, prim ); retalpha = attribute( GRF__ALPHA, AstObject.AST__BAD, prim ); } int retopaque = (int) ( ( retalpha ) * 256.0 ); return (double) ( ( retopaque << 24 ) & ( (int) retrgb ) ); } else { return attribute( attr, value, prim ); } } | 48494 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48494/68bd290b25dbf47b4a68c8ed0c694061b459d757/DefaultGrf.java/clean/jniast/src/main/uk/ac/starlink/ast/grf/DefaultGrf.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1645,
1604,
12,
509,
1604,
16,
1645,
460,
16,
509,
15610,
262,
565,
288,
3639,
309,
261,
1604,
422,
611,
12918,
972,
3865,
1502,
1099,
262,
288,
5411,
368,
26564,
326,
15046,
1566,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1645,
1604,
12,
509,
1604,
16,
1645,
460,
16,
509,
15610,
262,
565,
288,
3639,
309,
261,
1604,
422,
611,
12918,
972,
3865,
1502,
1099,
262,
288,
5411,
368,
26564,
326,
15046,
1566,
... |
16, 17, 18, 0, | 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 45, 0, 0, 46, 47, 48, 49, 0, 50, 59, 51, 52, 53, 54, 55, 56, 58, 0, 0, 0, 57, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 396, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 280, 280, 280, 0, 0, 0, 280, 280, 0, 280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 280, 280, 0, 280, 280, 280, 280, 280, 0, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 58, 0, 0, 0, 0, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 0, 0, 280, 280, 280, 3, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 45, 412, 0, 261, 47, 48, 49, 0, 50, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, | private static final short[] yyTable3() { return new short[] { 0, 0, 188, 0, 186, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 187, 187, 188, 188, 0, 0, 188, 188, 188, 188, 188, 0, 188, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 188, 188, 188, 0, 188, 188, 0, 0, 0, 0, 0, 0, 0, 0, 0, 190, 0, 0, 0, 0, 0, 0, 0, 0, 0, 190, 0, 0, 0, 0, 0, 0, 0, 0, 0, 188, 188, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 190, 190, 0, 0, 190, 190, 190, 190, 190, 0, 190, 0, 0, 0, 188, 188, 0, 0, 0, 0, 0, 190, 190, 190, 0, 190, 190, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 190, 190, 0, 0, 0, 0, 0, 187, 187, 187, 0, 0, 187, 187, 187, 0, 187, 0, 212, 0, 0, 0, 0, 0, 0, 0, 187, 187, 212, 0, 0, 190, 190, 0, 0, 187, 187, 0, 187, 187, 187, 187, 187, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 212, 0, 0, 212, 0, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 212, 212, 187, 187, 0, 212, 0, 187, 0, 0, 0, 0, 187, 0, 0, 0, 0, 0, 0, 0, 188, 188, 188, 0, 0, 188, 188, 188, 0, 188, 0, 0, 0, 0, 0, 212, 0, 0, 0, 188, 188, 0, 0, 0, 0, 0, 0, 0, 188, 188, 0, 188, 188, 188, 188, 188, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 212, 0, 0, 0, 0, 0, 0, 0, 0, 0, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 0, 0, 188, 188, 190, 190, 190, 188, 0, 190, 190, 190, 188, 190, 0, 0, 0, 0, 0, 0, 0, 0, 0, 190, 190, 0, 0, 0, 0, 0, 0, 0, 190, 190, 0, 190, 190, 190, 190, 190, 0, 0, 0, 0, 0, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, 0, 0, 0, 0, 0, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 0, 0, 190, 190, 0, 0, 0, 190, 0, 191, 191, 0, 190, 191, 191, 191, 191, 191, 0, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, 191, 191, 0, 191, 191, 0, 0, 0, 0, 0, 0, 212, 212, 212, 184, 0, 212, 212, 212, 0, 212, 0, 0, 0, 184, 0, 0, 0, 0, 0, 212, 212, 0, 0, 191, 191, 0, 0, 0, 212, 212, 0, 212, 212, 212, 212, 212, 0, 0, 0, 0, 0, 184, 0, 0, 184, 0, 184, 184, 184, 0, 0, 0, 0, 0, 191, 191, 0, 0, 0, 0, 0, 184, 184, 184, 212, 184, 184, 212, 212, 0, 0, 0, 0, 0, 0, 0, 212, 0, 0, 0, 185, 212, 0, 0, 0, 0, 0, 0, 0, 0, 185, 0, 0, 0, 0, 0, 184, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185, 0, 0, 185, 0, 185, 185, 185, 0, 184, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185, 185, 185, 0, 185, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, 191, 191, 0, 0, 191, 191, 191, 0, 191, 0, 0, 185, 185, 0, 0, 0, 0, 0, 191, 191, 0, 0, 0, 0, 0, 0, 0, 191, 191, 0, 191, 191, 191, 191, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 0, 0, 191, 191, 184, 184, 184, 191, 0, 184, 184, 184, 191, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 184, 184, 0, 0, 0, 0, 0, 0, 0, 184, 184, 0, 184, 184, 184, 184, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 0, 0, 184, 184, 0, 0, 0, 184, 185, 185, 185, 0, 184, 185, 185, 185, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185, 185, 0, 0, 0, 0, 0, 0, 0, 185, 185, 0, 185, 185, 185, 185, 185, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 0, 0, 185, 185, 0, 209, 0, 185, 209, 0, 0, 209, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 209, 209, 209, 0, 209, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 0, 0, 0, 0, 0, 0, 334, 329, 0, 209, 209, 332, 330, 0, 331, 0, 333, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 0, 326, 210, 325, 324, 210, 0, 0, 0, 0, 0, 0, 209, 209, 0, 0, 0, 0, 0, 210, 210, 210, 0, 210, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 328, 0, 0, 196, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 0, 0, 0, 0, 0, 210, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 327, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 0, 0, 196, 0, 0, 196, 0, 0, 210, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 196, 196, 0, 196, 196, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 334, 329, 0, 0, 0, 332, 330, 0, 331, 0, 333, 0, 0, 0, 0, 196, 196, 0, 0, 0, 0, 0, 0, 326, 0, 325, 0, 0, 0, 0, 0, 0, 0, 0, 209, 209, 209, 0, 0, 209, 209, 209, 0, 209, 0, 0, 196, 196, 0, 0, 0, 0, 0, 209, 209, 0, 0, 328, 0, 0, 0, 0, 209, 209, 0, 209, 209, 209, 209, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 327, 0, 0, 0, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 0, 0, 209, 209, 210, 210, 210, 209, 0, 210, 210, 210, 209, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 210, 0, 0, 0, 0, 0, 0, 0, 210, 210, 0, 210, 210, 210, 210, 210, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 0, 0, 210, 210, 0, 0, 0, 210, 196, 196, 196, 0, 210, 196, 196, 196, 0, 196, 0, 194, 0, 0, 0, 0, 0, 0, 0, 196, 196, 194, 0, 0, 0, 0, 0, 0, 196, 196, 0, 196, 196, 196, 196, 196, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 194, 0, 0, 194, 0, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 194, 194, 194, 0, 194, 194, 0, 196, 0, 0, 0, 0, 196, 0, 0, 195, 0, 0, 0, 0, 0, 0, 0, 0, 0, 195, 0, 0, 309, 310, 311, 312, 313, 314, 315, 194, 194, 318, 319, 0, 0, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 195, 0, 0, 195, 0, 0, 0, 0, 0, 0, 194, 194, 0, 0, 0, 0, 0, 195, 195, 195, 0, 195, 195, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 199, 0, 0, 0, 0, 0, 0, 0, 0, 0, 199, 0, 0, 0, 0, 0, 195, 195, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 199, 0, 0, 199, 0, 0, 195, 195, 0, 0, 0, 0, 0, 0, 0, 0, 0, 199, 199, 199, 0, 199, 199, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 199, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 194, 194, 194, 0, 0, 194, 194, 194, 0, 194, 0, 0, 0, 199, 0, 0, 0, 0, 0, 194, 194, 0, 177, 0, 185, 0, 0, 0, 194, 194, 0, 194, 194, 194, 194, 194, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 0, 0, 0, 0, 195, 195, 195, 194, 0, 195, 195, 195, 194, 195, 0, 0, 0, 0, 0, 0, 0, 0, 0, 195, 195, 0, 0, 0, 0, 0, 0, 0, 195, 195, 201, 195, 195, 195, 195, 195, 0, 0, 0, 0, 201, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 0, 0, 201, 0, 0, 201, 0, 195, 199, 199, 199, 0, 195, 199, 199, 199, 0, 199, 0, 201, 201, 201, 0, 201, 201, 0, 0, 199, 199, 0, 0, 0, 0, 0, 0, 0, 199, 199, 198, 199, 199, 199, 199, 199, 0, 0, 0, 0, 198, 0, 0, 0, 0, 0, 201, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 0, 0, 198, 0, 0, 198, 0, 199, 0, 201, 0, 0, 199, 515, 516, 0, 0, 517, 0, 198, 198, 198, 0, 198, 198, 160, 161, 162, 163, 164, 165, 0, 166, 167, 200, 0, 168, 0, 0, 0, 169, 170, 171, 172, 200, 0, 0, 0, 0, 0, 0, 0, 0, 173, 198, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 200, 0, 0, 200, 0, 0, 0, 0, 0, 0, 0, 198, 0, 0, 0, 0, 0, 200, 200, 200, 0, 200, 200, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 200, 203, 0, 0, 0, 0, 0, 0, 0, 0, 0, 203, 0, 0, 0, 0, 0, 0, 0, 201, 201, 201, 0, 0, 201, 201, 201, 0, 201, 0, 0, 0, 200, 0, 0, 0, 0, 0, 201, 201, 0, 0, 203, 0, 0, 203, 0, 201, 201, 0, 201, 201, 201, 201, 201, 0, 0, 0, 0, 203, 203, 0, 0, 0, 203, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 0, 0, 0, 0, 0, 0, 203, 201, 198, 198, 198, 0, 201, 198, 198, 198, 0, 198, 0, 0, 0, 0, 0, 0, 0, 0, 0, 198, 198, 0, 0, 0, 0, 0, 0, 0, 198, 198, 203, 198, 198, 198, 198, 198, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 0, 0, 0, 0, 200, 200, 200, 198, 0, 200, 200, 200, 198, 200, 0, 204, 0, 0, 0, 0, 0, 0, 0, 200, 200, 204, 0, 0, 0, 0, 0, 0, 200, 200, 0, 200, 200, 200, 200, 200, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 204, 0, 0, 204, 0, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 204, 204, 0, 0, 0, 204, 0, 200, 0, 0, 0, 0, 200, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 203, 203, 203, 211, 0, 203, 203, 203, 0, 203, 204, 0, 0, 211, 0, 0, 0, 0, 0, 203, 203, 0, 0, 0, 0, 0, 0, 0, 203, 203, 0, 203, 203, 203, 203, 203, 0, 0, 0, 0, 0, 263, 204, 0, 211, 0, 0, 211, 0, 0, 0, 263, 0, 0, 0, 0, 0, 0, 0, 0, 0, 211, 211, 203, 203, 0, 211, 203, 203, 0, 0, 0, 0, 0, 0, 0, 203, 0, 0, 0, 205, 203, 263, 0, 0, 262, 0, 0, 0, 0, 205, 0, 0, 0, 0, 0, 211, 0, 0, 263, 263, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 205, 0, 0, 205, 0, 0, 0, 211, 0, 0, 206, 0, 0, 0, 0, 0, 0, 205, 205, 0, 206, 0, 205, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 263, 0, 0, 0, 0, 0, 206, 205, 0, 206, 0, 0, 0, 204, 204, 204, 182, 0, 204, 204, 204, 0, 204, 206, 206, 0, 182, 0, 206, 0, 0, 0, 204, 204, 0, 0, 0, 0, 0, 205, 0, 204, 204, 0, 204, 204, 204, 204, 204, 0, 0, 0, 0, 0, 183, 0, 0, 182, 206, 0, 182, 0, 0, 0, 183, 0, 0, 0, 0, 0, 0, 0, 0, 0, 182, 182, 204, 204, 0, 182, 204, 204, 0, 0, 0, 0, 0, 0, 0, 204, 206, 0, 0, 0, 204, 183, 0, 0, 183, 211, 211, 211, 0, 0, 211, 211, 211, 0, 211, 182, 0, 0, 183, 183, 0, 0, 0, 183, 211, 211, 0, 0, 0, 0, 0, 0, 0, 211, 211, 0, 211, 211, 211, 211, 211, 0, 0, 263, 263, 263, 0, 182, 263, 263, 263, 0, 263, 183, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 211, 211, 0, 0, 211, 211, 263, 263, 263, 263, 263, 0, 0, 211, 205, 205, 205, 183, 211, 205, 205, 205, 0, 205, 0, 0, 0, 0, 0, 0, 0, 0, 0, 205, 205, 0, 0, 0, 0, 0, 0, 0, 205, 205, 0, 205, 205, 205, 205, 205, 0, 263, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 206, 206, 206, 0, 0, 206, 206, 206, 0, 206, 0, 0, 205, 205, 0, 0, 205, 205, 0, 206, 206, 0, 0, 0, 0, 205, 0, 0, 206, 206, 205, 206, 206, 206, 206, 206, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 182, 182, 182, 0, 0, 182, 182, 182, 0, 182, 0, 0, 206, 206, 0, 0, 206, 206, 0, 182, 182, 0, 0, 0, 0, 206, 0, 0, 182, 182, 206, 182, 182, 182, 182, 182, 217, 0, 183, 183, 183, 0, 0, 183, 183, 183, 217, 183, 0, 0, 0, 0, 0, 0, 0, 0, 0, 183, 183, 0, 0, 0, 0, 0, 0, 0, 183, 183, 0, 183, 183, 183, 183, 183, 181, 0, 182, 217, 0, 0, 217, 182, 0, 0, 181, 0, 0, 0, 0, 0, 0, 0, 0, 0, 217, 217, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 174, 183, 181, 0, 0, 181, 183, 0, 0, 0, 174, 0, 0, 0, 0, 0, 217, 0, 0, 181, 181, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 214, 0, 174, 0, 0, 174, 0, 0, 0, 217, 214, 0, 0, 0, 0, 181, 0, 0, 0, 174, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 180, 0, 0, 214, 0, 0, 214, 0, 0, 181, 180, 0, 0, 0, 0, 0, 174, 0, 0, 0, 214, 214, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 215, 0, 180, 0, 0, 180, 0, 0, 0, 174, 215, 0, 0, 0, 0, 0, 214, 0, 0, 180, 180, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 215, 0, 0, 215, 0, 0, 0, 214, 0, 0, 0, 0, 0, 180, 0, 0, 0, 215, 215, 0, 0, 0, 0, 0, 0, 0, 0, 0, 217, 217, 217, 0, 0, 217, 217, 217, 0, 217, 0, 0, 0, 0, 0, 0, 0, 180, 0, 217, 217, 0, 0, 0, 215, 0, 0, 0, 217, 217, 0, 217, 217, 217, 217, 217, 0, 0, 181, 181, 181, 0, 0, 181, 181, 181, 0, 181, 0, 0, 0, 0, 0, 0, 0, 0, 215, 181, 181, 0, 0, 0, 0, 0, 0, 0, 181, 181, 0, 181, 181, 181, 181, 181, 0, 0, 217, 174, 174, 174, 0, 217, 174, 174, 174, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 174, 174, 0, 0, 0, 0, 0, 0, 0, 174, 174, 0, 174, 174, 174, 174, 174, 0, 181, 0, 214, 214, 214, 181, 0, 214, 214, 214, 0, 214, 0, 0, 0, 0, 0, 0, 0, 0, 0, 214, 214, 0, 0, 0, 0, 0, 0, 0, 214, 214, 0, 214, 214, 214, 214, 214, 0, 174, 180, 180, 180, 0, 174, 180, 180, 180, 0, 180, 0, 0, 0, 0, 0, 0, 0, 0, 0, 180, 180, 0, 0, 0, 0, 0, 0, 0, 180, 180, 0, 180, 180, 180, 180, 180, 0, 0, 214, 215, 215, 215, 178, 214, 215, 215, 215, 0, 215, 0, 0, 0, 178, 0, 0, 0, 0, 0, 215, 215, 0, 0, 0, 0, 0, 0, 0, 215, 215, 0, 215, 215, 215, 215, 215, 0, 180, 0, 179, 0, 0, 180, 0, 178, 0, 0, 178, 0, 179, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 178, 178, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 215, 0, 0, 0, 179, 215, 0, 179, 0, 0, 0, 0, 0, 0, 176, 0, 0, 0, 0, 0, 178, 179, 179, 0, 176, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0, 178, 0, 0, 176, 179, 0, 176, 0, 177, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 176, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 173, 179, 0, 0, 177, 0, 0, 177, 0, 0, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 177, 177, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 0, 0, 0, 173, 0, 0, 173, 0, 175, 0, 0, 0, 0, 0, 176, 0, 0, 0, 177, 0, 173, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 0, 175, 0, 0, 0, 0, 0, 0, 0, 177, 0, 0, 0, 0, 173, 175, 175, 0, 0, 0, 0, 0, 0, 178, 178, 178, 0, 0, 178, 178, 178, 0, 178, 0, 0, 0, 0, 0, 0, 261, 0, 0, 178, 178, 0, 0, 173, 0, 0, 261, 175, 178, 178, 0, 178, 178, 178, 178, 178, 179, 179, 179, 0, 0, 179, 179, 179, 0, 179, 0, 0, 0, 0, 0, 0, 0, 0, 0, 179, 179, 261, 0, 175, 261, 0, 0, 0, 179, 179, 0, 179, 179, 179, 179, 179, 0, 0, 261, 261, 178, 0, 0, 0, 0, 178, 0, 0, 0, 0, 0, 176, 176, 176, 0, 0, 176, 176, 176, 0, 176, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 176, 0, 261, 0, 0, 179, 0, 0, 176, 176, 179, 176, 176, 176, 176, 176, 177, 177, 177, 0, 0, 177, 177, 177, 0, 177, 0, 0, 0, 0, 0, 0, 0, 0, 261, 177, 177, 0, 0, 0, 0, 0, 0, 0, 177, 177, 0, 177, 177, 177, 177, 177, 0, 173, 173, 173, 176, 0, 173, 173, 173, 176, 173, 0, 0, 0, 0, 0, 0, 172, 0, 0, 173, 173, 0, 0, 0, 0, 0, 172, 0, 173, 173, 0, 173, 173, 173, 173, 173, 175, 175, 175, 177, 0, 175, 175, 175, 177, 175, 0, 0, 0, 0, 0, 0, 262, 0, 0, 175, 175, 172, 0, 0, 172, 0, 262, 0, 175, 175, 0, 175, 175, 175, 175, 175, 0, 0, 172, 172, 173, 0, 0, 0, 0, 173, 334, 329, 0, 0, 0, 332, 330, 0, 331, 0, 333, 262, 0, 0, 262, 0, 0, 0, 0, 0, 0, 0, 0, 326, 0, 325, 0, 172, 262, 262, 175, 0, 0, 0, 0, 175, 261, 261, 261, 318, 0, 261, 261, 261, 0, 261, 0, 0, 0, 318, 0, 0, 0, 0, 0, 261, 261, 328, 0, 172, 0, 0, 0, 262, 261, 261, 0, 261, 261, 261, 261, 261, 0, 0, 0, 0, 318, 318, 0, 0, 318, 318, 318, 318, 318, 318, 318, 327, 0, 0, 0, 0, 0, 0, 0, 262, 0, 318, 318, 318, 0, 318, 318, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 261, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 172, 319, 318, 0, 0, 318, 0, 0, 0, 0, 0, 319, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 172, 0, 0, 217, 318, 318, 0, 319, 319, 0, 0, 319, 319, 319, 319, 319, 319, 319, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 319, 319, 319, 0, 319, 319, 0, 0, 0, 172, 172, 172, 0, 0, 172, 172, 172, 0, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 172, 172, 0, 0, 0, 319, 0, 0, 319, 172, 172, 0, 172, 172, 172, 172, 0, 262, 262, 262, 0, 0, 262, 262, 262, 0, 262, 0, 172, 0, 0, 0, 0, 0, 0, 0, 262, 262, 319, 319, 0, 0, 0, 0, 0, 262, 262, 0, 262, 262, 262, 262, 262, 0, 0, 0, 0, 172, 0, 0, 0, 0, 172, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 0, 0, 0, 322, 323, 0, 0, 0, 318, 318, 318, 0, 0, 318, 318, 318, 0, 318, 0, 0, 262, 0, 0, 0, 0, 0, 0, 318, 0, 0, 0, 0, 0, 0, 0, 0, 318, 318, 0, 318, 318, 318, 318, 318, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 0, 0, 318, 318, 318, 0, 0, 318, 0, 0, 172, 172, 172, 0, 0, 0, 172, 172, 0, 172, 0, 319, 319, 319, 0, 0, 319, 319, 319, 0, 319, 0, 0, 0, 0, 0, 0, 0, 172, 172, 319, 172, 172, 172, 172, 0, 0, 0, 0, 319, 319, 0, 319, 319, 319, 319, 319, 0, 283, 0, 0, 0, 0, 0, 0, 0, 0, 0, 283, 0, 0, 0, 0, 0, 0, 0, 0, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 0, 0, 319, 319, 319, 283, 283, 319, 0, 283, 283, 283, 283, 283, 283, 283, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 283, 283, 283, 0, 283, 283, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 334, 329, 0, 0, 0, 332, 330, 0, 331, 423, 333, 0, 0, 0, 0, 283, 0, 0, 283, 423, 0, 0, 0, 326, 0, 325, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 423, 423, 283, 283, 423, 423, 423, 74, 423, 423, 423, 328, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 423, 423, 82, 423, 423, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 273, 0, 327, 0, 0, 0, 0, 0, 0, 0, 273, 0, 0, 0, 0, 423, 0, 40, 423, 0, 0, 0, 0, 0, 0, 0, 0, 40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 273, 273, 0, 0, 273, 273, 273, 81, 273, 273, 273, 423, 423, 0, 0, 0, 0, 0, 0, 0, 0, 40, 273, 273, 89, 273, 273, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 40, 40, 0, 0, 0, 0, 0, 0, 0, 0, 54, 0, 0, 0, 0, 0, 273, 0, 0, 273, 54, 0, 0, 0, 0, 0, 283, 283, 283, 0, 0, 283, 283, 283, 0, 283, 0, 0, 0, 0, 0, 0, 0, 0, 0, 283, 0, 0, 0, 273, 273, 54, 0, 0, 283, 283, 0, 283, 283, 283, 283, 283, 0, 0, 0, 0, 0, 40, 54, 54, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 0, 0, 283, 283, 283, 42, 0, 283, 54, 0, 0, 0, 0, 0, 0, 42, 423, 423, 423, 0, 0, 0, 423, 423, 0, 423, 309, 310, 311, 312, 313, 314, 315, 316, 0, 318, 319, 0, 0, 0, 54, 322, 323, 0, 423, 423, 42, 423, 423, 423, 423, 423, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42, 42, 0, 0, 0, 0, 0, 0, 0, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 0, 0, 423, 423, 423, 0, 424, 273, 273, 273, 0, 0, 0, 273, 273, 0, 273, 0, 0, 0, 0, 0, 0, 0, 40, 40, 40, 0, 0, 40, 40, 40, 0, 40, 0, 273, 273, 0, 273, 273, 273, 273, 273, 40, 279, 42, 0, 0, 0, 0, 0, 0, 40, 40, 279, 40, 40, 40, 40, 40, 0, 0, 0, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 0, 0, 273, 273, 273, 279, 279, 0, 0, 279, 279, 279, 80, 279, 279, 279, 54, 54, 54, 0, 0, 54, 54, 54, 0, 54, 0, 279, 279, 88, 279, 279, 0, 0, 0, 54, 54, 0, 0, 0, 0, 0, 280, 0, 54, 54, 0, 54, 54, 54, 54, 54, 280, 0, 0, 0, 0, 0, 0, 279, 0, 0, 279, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 280, 280, 0, 0, 280, 280, 280, 75, 280, 280, 280, 0, 0, 279, 279, 0, 0, 0, 0, 0, 0, 0, 280, 280, 83, 280, 280, 42, 42, 42, 0, 0, 42, 42, 42, 0, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0, 0, 0, 0, 0, 0, 280, 42, 42, 280, 42, 42, 42, 42, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 58, 0, 0, 0, 0, 0, 4, 5, 6, 0, 8, 280, 280, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 102, 34, 35, 36, 103, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 279, 279, 279, 0, 0, 0, 279, 279, 0, 279, 105, 0, 0, 106, 47, 48, 49, 0, 59, 0, 51, 52, 53, 54, 55, 56, 58, 0, 279, 279, 107, 279, 279, 279, 279, 279, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 0, 0, 279, 279, 279, 280, 280, 280, 0, 0, 0, 280, 280, 0, 280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 280, 280, 0, 280, 280, 280, 280, 280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 0, 0, 58, 0, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 0, 0, 280, 280, 280, 3, 4, 5, 6, 7, 8, 396, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, }; } | 46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/f5c9a1ebd775712f2dc086acfce1a14a123ec632/YyTables.java/buggy/src/org/jruby/parser/YyTables.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1388,
23,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
5411,
374,
16,
565,
374,
16,
225,
404,
5482,
16,
565,
374,
16,
225,
404,
5292,
16,
565,
374,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1388,
23,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
5411,
374,
16,
565,
374,
16,
225,
404,
5482,
16,
565,
374,
16,
225,
404,
5292,
16,
565,
374,
16... |
} else | } else { | protected void setSelectedFilter(SelectionChangedEvent event) { ISelection selection = event.getSelection(); if (selection instanceof IStructuredSelection) { Collection list = ((IStructuredSelection) selection).toList(); MarkerFilter[] selected = new MarkerFilter[list.size()]; list.toArray(selected); selectedFilters = selected; } else selectedFilters = new MarkerFilter[0]; updateUIFromFilter(); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/DialogMarkerFilter.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogMarkerFilter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
23006,
1586,
12,
6233,
27553,
871,
13,
288,
202,
202,
45,
6233,
4421,
273,
871,
18,
588,
6233,
5621,
202,
202,
430,
261,
10705,
1276,
467,
30733,
6233,
13,
288,
1082,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
23006,
1586,
12,
6233,
27553,
871,
13,
288,
202,
202,
45,
6233,
4421,
273,
871,
18,
588,
6233,
5621,
202,
202,
430,
261,
10705,
1276,
467,
30733,
6233,
13,
288,
1082,
20... |
else if (override_val.equalsIgnoreCase("false")) | else if ("false".equalsIgnoreCase(override_val)) | protected int getOverrideValue(XMLElement f) throws CompilerException { int override = PackFile.OVERRIDE_UPDATE; String override_val = f.getAttribute("override"); if (override_val != null) { if (override_val.equalsIgnoreCase("true")) { override = PackFile.OVERRIDE_TRUE; } else if (override_val.equalsIgnoreCase("false")) { override = PackFile.OVERRIDE_FALSE; } else if (override_val.equalsIgnoreCase("asktrue")) { override = PackFile.OVERRIDE_ASK_TRUE; } else if (override_val.equalsIgnoreCase("askfalse")) { override = PackFile.OVERRIDE_ASK_FALSE; } else if (override_val.equalsIgnoreCase("update")) { override = PackFile.OVERRIDE_UPDATE; } else parseError(f, "invalid value for attribute \"override\""); } return override; } | 58440 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58440/98333eede78b9ac1131e72aef96a4d63b6ae031f/CompilerConfig.java/clean/izpack-src/trunk/src/lib/com/izforge/izpack/compiler/CompilerConfig.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
509,
336,
6618,
620,
12,
15223,
284,
13,
1216,
28227,
565,
288,
3639,
509,
3849,
273,
7930,
812,
18,
31514,
67,
8217,
31,
3639,
514,
3849,
67,
1125,
273,
284,
18,
588,
1499,
2932,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
509,
336,
6618,
620,
12,
15223,
284,
13,
1216,
28227,
565,
288,
3639,
509,
3849,
273,
7930,
812,
18,
31514,
67,
8217,
31,
3639,
514,
3849,
67,
1125,
273,
284,
18,
588,
1499,
2932,... |
wordRelation.addWord(order); expandNumberAt(numberString, i, wordRelation); | wordRelation.addWord(tokenItem,order); expandNumberAt(numberString, i, wordRelation,tokenItem); | private static void expandLargeNumber(String numberString, String order, int numberZeroes, WordRelation wordRelation) { int numberDigits = numberString.length(); // parse out the prefix, e.g., "113" in "113,000" int i = numberDigits - numberZeroes; String part = numberString.substring(0, i); // get how many thousands/millions/billions Item oldTail = wordRelation.getTail(); expandNumber(part, wordRelation); if (wordRelation.getTail() == oldTail) { expandNumberAt(numberString, i, wordRelation); } else { wordRelation.addWord(order); expandNumberAt(numberString, i, wordRelation); } } | 49846 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49846/460d07833503253a5c476790f8921bd1e3c702a9/NumberExpander.java/clean/java/de/dfki/lt/mary/modules/en/NumberExpander.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
4542,
20020,
1854,
12,
780,
1300,
780,
16,
25083,
225,
514,
1353,
16,
25083,
225,
509,
1300,
7170,
281,
16,
25083,
225,
9926,
3963,
2076,
3963,
13,
288,
202,
474,
1300,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
4542,
20020,
1854,
12,
780,
1300,
780,
16,
25083,
225,
514,
1353,
16,
25083,
225,
509,
1300,
7170,
281,
16,
25083,
225,
9926,
3963,
2076,
3963,
13,
288,
202,
474,
1300,
... |
AffineTransform t; if (transform == null) { transform = new java.awt.geom.AffineTransform(); | Rectangle2D bounds = layout.getBounds(); double tx = location.getX(); double ty = location.getY(); if (anchor == Anchor.MIDDLE) { tx -= bounds.getWidth()/2; } else if (anchor == Anchor.END) { tx -= bounds.getWidth(); | public Shape getOutline(){ // HACK, until we change getBounds to take // GraphicsNodeRenderContext java.awt.font.TextLayout layout = new java.awt.font.TextLayout(aci, new java.awt.font.FontRenderContext(new AffineTransform(), true, true)); AffineTransform t; if (transform == null) { transform = new java.awt.geom.AffineTransform(); } t = transform; t.translate(location.getX(), location.getY()); return layout.getOutline(t); } | 45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/dbd352a943d9d391b96962dbd2f7c5101daee24d/ConcreteTextNode.java/clean/sources/org/apache/batik/refimpl/gvt/ConcreteTextNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
12383,
336,
21805,
1435,
95,
3639,
368,
670,
3649,
16,
3180,
732,
2549,
22107,
358,
4862,
3639,
368,
16830,
907,
3420,
1042,
3639,
2252,
18,
2219,
88,
18,
5776,
18,
1528,
3744,
3511... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12383,
336,
21805,
1435,
95,
3639,
368,
670,
3649,
16,
3180,
732,
2549,
22107,
358,
4862,
3639,
368,
16830,
907,
3420,
1042,
3639,
2252,
18,
2219,
88,
18,
5776,
18,
1528,
3744,
3511... |
log("Javadoc args: " + cmd.getArguments(), Project.MSG_VERBOSE); | log("Javadoc args: " + cmd, Project.MSG_VERBOSE); | public void execute() throws BuildException { if ("javadoc2".equals(taskType)) { log("!! javadoc2 is deprecated. Use javadoc instead. !!"); } if (sourcePath == null || destDir == null ) { String msg = "sourcePath and destDir attributes must be set!"; throw new BuildException(msg); } log("Generating Javadoc", Project.MSG_INFO); cmd.setExecutable("javadoc");// ------------------------------------------------ general javadoc arguments if (classpath == null) classpath = Path.systemClasspath; if ( (!javadoc1) || (sourcePath == null) ) { cmd.createArgument().setValue("-classpath"); cmd.createArgument().setPath(classpath); if (sourcePath != null) { cmd.createArgument().setValue("-sourcepath"); cmd.createArgument().setPath(sourcePath); } } else { cmd.createArgument().setValue("-classpath"); cmd.createArgument().setValue(sourcePath.toString() + System.getProperty("path.separator") + classpath.toString()); } if (version && doclet == null) cmd.createArgument().setValue("-version"); if (author && doclet == null) cmd.createArgument().setValue("-author");// --------------------------------- javadoc2 arguments for default doclet// XXX: how do we handle a custom doclet? if (!javadoc1) { if (doclet != null) { if (doclet.getName() == null) { throw new BuildException("The doclet name must be specified.", location); } else { cmd.createArgument().setValue("-doclet"); cmd.createArgument().setValue(doclet.getName()); if (doclet.getPath() != null) { cmd.createArgument().setValue("-docletpath"); cmd.createArgument().setPath(doclet.getPath()); } for (Enumeration e = doclet.getParams(); e.hasMoreElements();) { DocletParam param = (DocletParam)e.nextElement(); if (param.getName() == null) { throw new BuildException("Doclet parameters must have a name"); } cmd.createArgument().setValue(param.getName()); if (param.getValue() != null) { cmd.createArgument().setValue(param.getValue()); } } } } if (bootclasspath != null) { cmd.createArgument().setValue("-bootclasspath"); cmd.createArgument().setPath(bootclasspath); } // add the links arguments if (links.size() != 0) { for (Enumeration e = links.elements(); e.hasMoreElements(); ) { LinkArgument la = (LinkArgument)e.nextElement(); if (la.getHref() == null) { throw new BuildException("Links must provide the URL to the external class documentation."); } if (la.isLinkOffline()) { String packageListLocation = la.getPackagelistLoc(); if (packageListLocation == null) { throw new BuildException("The package list location for link " + la.getHref() + " must be provided because the link is offline"); } cmd.createArgument().setValue("-linkoffline"); cmd.createArgument().setValue(la.getHref()); cmd.createArgument().setValue(packageListLocation); } else { cmd.createArgument().setValue("-link"); cmd.createArgument().setValue(la.getHref()); } } } // add the single group arguments // Javadoc 1.2 rules: // Multiple -group args allowed. // Each arg includes 3 strings: -group [name] [packagelist]. // Elements in [packagelist] are colon-delimited. // An element in [packagelist] may end with the * wildcard. // Ant javadoc task rules for group attribute: // Args are comma-delimited. // Each arg is 2 space-delimited strings. // E.g., group="XSLT_Packages org.apache.xalan.xslt*,XPath_Packages orgapache.xalan.xpath*" if (group != null) { StringTokenizer tok = new StringTokenizer(group, ",", false); while (tok.hasMoreTokens()) { String grp = tok.nextToken().trim(); int space = grp.indexOf(" "); if (space > 0){ String name = grp.substring(0, space); String pkgList = grp.substring(space + 1); cmd.createArgument().setValue("-group"); cmd.createArgument().setValue(name); cmd.createArgument().setValue(pkgList); } } } // add the group arguments if (groups.size() != 0) { for (Enumeration e = groups.elements(); e.hasMoreElements(); ) { GroupArgument ga = (GroupArgument)e.nextElement(); String title = ga.getTitle(); String packages = ga.getPackages(); if (title == null || packages == null) { throw new BuildException("The title and packages must be specified for group elements."); } cmd.createArgument().setValue("-group"); cmd.createArgument().setValue(title); cmd.createArgument().setValue(packages); } } } if ((packageNames != null) && (packageNames.length() > 0)) { Vector packages = new Vector(); StringTokenizer tok = new StringTokenizer(packageNames, ",", false); while (tok.hasMoreTokens()) { String name = tok.nextToken().trim(); if (name.endsWith(".*")) { packages.addElement(name); } else { cmd.createArgument().setValue(name); } } if (packages.size() > 0) { evaluatePackages(sourcePath, packages); } } if ((sourceFiles != null) && (sourceFiles.length() > 0)) { StringTokenizer tok = new StringTokenizer(sourceFiles, ",", false); while (tok.hasMoreTokens()) { cmd.createArgument().setValue(tok.nextToken().trim()); } } if (packageList != null) { cmd.createArgument().setValue("@" + packageList); } log("Javadoc args: " + cmd.getArguments(), Project.MSG_VERBOSE); log("Javadoc execution", Project.MSG_INFO); JavadocOutputStream out = new JavadocOutputStream(Project.MSG_INFO); JavadocOutputStream err = new JavadocOutputStream(Project.MSG_WARN); Execute exe = new Execute(new PumpStreamHandler(out, err)); exe.setAntRun(project); exe.setWorkingDirectory(project.getBaseDir()); try { exe.setCommandline(cmd.getCommandline()); exe.execute(); } catch (IOException e) { throw new BuildException("Javadoc failed: " + e, e, location); } finally { out.logFlush(); err.logFlush(); try { out.close(); err.close(); } catch (IOException e) {} } } | 639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/0dd985bc2a3584f478eebc7c1a25f24aa559f1ac/Javadoc.java/clean/src/main/org/apache/tools/ant/taskdefs/Javadoc.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
1216,
18463,
288,
3639,
309,
7566,
78,
4805,
22,
9654,
14963,
12,
4146,
559,
3719,
288,
5411,
613,
2932,
8548,
30829,
22,
353,
6849,
18,
2672,
30829,
3560,
18,
401,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
1216,
18463,
288,
3639,
309,
7566,
78,
4805,
22,
9654,
14963,
12,
4146,
559,
3719,
288,
5411,
613,
2932,
8548,
30829,
22,
353,
6849,
18,
2672,
30829,
3560,
18,
401,... |
System.out.println("CFlowTest.step2"); | public void step2() { System.out.println("CFlowTest.step2"); log("step2 "); } | 7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/44395ae6f1bc25dd7c1e9ba497dc6ed779ba0b8c/CFlowTest.java/buggy/aspectwerkz3/src/test/test/CFlowTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2235,
22,
1435,
288,
9079,
613,
2932,
4119,
22,
315,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2235,
22,
1435,
288,
9079,
613,
2932,
4119,
22,
315,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... | |
if (!tJustDoneConsensus) { | if (!tJustDoneConsensus) { | private void parseLine(String poLine) throws SAXException{ poLine = poLine.toUpperCase(); if ( (poLine.startsWith("QUERY:")) || (poLine.startsWith("SBJCT:")) ) { oSt = new StringTokenizer(poLine,":"); //there should be two tokens at this point if (oSt.countTokens() != 2) { throw (new SAXException( "Failed to parse a line in a BlastLikeAlignment" + " due it having an unexpected format." + " The line is shown below.\n" + poLine)); } //get here if Query line OK //skip first token (i.e. "Query") oSt.nextToken(); //next token is the alignment - make it uppercase. oSeq = oSt.nextToken().trim(); //System.out.println(oSeq); //To get numbers robustly, tokenize on letters, gaps, and unknowns oSt = new StringTokenizer(oSeq," ABCDEFGHIJKLMNOPQRSTUVWXYZ-*"); //System.out.println("Token Count----->" + oSt.countTokens()); //throw exception if there number of tokens is not two //(these correspond to start and stop ids if (oSt.countTokens() != 2) { throw (new SAXException( "Failed to parse a line of an alignment due to it having" + " an unexpected character.")); } //here if tokens for start and stop OK oStartId.setLength(0); oStartId.append(oSt.nextToken().trim()); oStopId.setLength(0); oStopId.append(oSt.nextToken().trim()); //System.out.println("StartId="+oStartId+" : "+"StopId="+oStopId); //To get sequence robustly, tokenize on numbers only oSt = new StringTokenizer(oSeq,"0123456789"); //System.out.println("Token Count----->" + oSt.countTokens()); if (oSt.countTokens() != 1) { throw (new SAXException( "Failed to parse a line of an alignment due to it having" + " an unexpected character.")); } oParsedSeq = oSt.nextToken().trim(); //System.out.println(oParsedSeq); //get info for consensus only on Query: lines iOffset = poLine.indexOf(oParsedSeq); iEnd = iOffset + oParsedSeq.length(); //System.out.println("Offset="+iOffset+" : End="+iEnd); //end if this is a query or sbjct line } else { //here if on a consensus sequence line //only time should get here is if //a Query: line has just been parsed. //deal with software that doesn't output spaces to end of //consensus line if (iEnd <= poLine.length()) { oParsedSeq = poLine.substring(iOffset,iEnd); } else { //could fix this by padding with white-space //currently this problem is a known BUG/FEATURE. throw (new SAXException( "Failed to parse what the framework supposes " + " to be a consensus line in an alignment due to " + "the source program not outputing expected white space." + " Tried to access character " + iEnd + " in a String " + "of length " + poLine.length() + ". The String is show " + "below. If it is not a consensus line, the parser " + "has become confused due to the presense of unknown " + "content in the output.\n" + poLine)); } //System.out.println("|"+oParsedSeq+"|"); } //get startIds for query and subject if (iState == ON_FIRST_SEGMENT) { //here if on first block of an alignment if (poLine.startsWith("QUERY:")) { oQueryStartId.append(oStartId); oQueryStopId.append(oStopId); oQuery.append(oParsedSeq); tJustDoneQuery = true; tJustDoneConsensus = false; tJustDoneHit = false; return; } if (poLine.startsWith("SBJCT:")) { oHitStartId.append(oStartId); oHitStopId.append(oStopId); oHit.append(oParsedSeq); if (!tJustDoneConsensus) { //handle rare case of a totally blank //consensus line -- currently known BUG/FEATURE //implement this with StringBuffer(char[],int,int) //and a template array of blanks throw (new SAXException( "Failed parsing the consensus line of an alignment." + " Cannot currently deal with consensus lines that" + " are blank.")); } tJustDoneQuery = false; tJustDoneConsensus = false; tJustDoneHit = true; //here finished with block this.changeState(DONE_FIRST_SEGMENT); return; } oMatchConsensus.append(oParsedSeq); tJustDoneQuery = false; tJustDoneConsensus = true; tJustDoneHit = false; } //end if onFirstSegment //if inside the alignment, set the stopids each time //so that they are correct for multi-block alignments if (iState == DONE_FIRST_SEGMENT) { if (poLine.startsWith("QUERY:")) { oQueryStopId.setLength(0); oQueryStopId.append(oStopId); oQuery.append(oParsedSeq); return; } if (poLine.startsWith("SBJCT:")) { oHitStopId.setLength(0); oHitStopId.append(oStopId); oHit.append(oParsedSeq); //here finished with block return; } //get here if on a match consensus oMatchConsensus.append(oParsedSeq); return; } //end if inAlignment } | 50115 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50115/92f84ab151886beb3641bfe55aedf381e952e8b3/BlastLikeAlignmentSAXParser.java/clean/src/org/biojava/bio/program/sax/BlastLikeAlignmentSAXParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1109,
1670,
12,
780,
8275,
1670,
13,
1216,
14366,
95,
565,
8275,
1670,
273,
8275,
1670,
18,
869,
8915,
5621,
565,
309,
261,
261,
1631,
1670,
18,
17514,
1190,
2932,
10753,
2773,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1109,
1670,
12,
780,
8275,
1670,
13,
1216,
14366,
95,
565,
8275,
1670,
273,
8275,
1670,
18,
869,
8915,
5621,
565,
309,
261,
261,
1631,
1670,
18,
17514,
1190,
2932,
10753,
2773,... |
if( N == -1) | if ( N == -1 ) | public boolean evaluate(Object value, Object n, boolean calculatePercent) throws DataException { if( FilterPassController.getForceReset() ) { doReset(); FilterPassController.setForceReset( false ); } if( N == -1) { try{ if( calculatePercent ) { double temp = Double.valueOf( n.toString() ).doubleValue()/100; if( temp > 1 || temp < 0) throw new DataException(ResourceConstants.INVALID_TOP_BOTTOM_PERCENT_ARGUMENT); N = (int)Math.round( temp*getRowCount() ); }else N = Double.valueOf( n.toString() ).intValue(); }catch (NumberFormatException e) { } //If the exception is thrown in abrove code, then the value of N should //remains "-1" if( N < 0 ) throw new DataException(ResourceConstants.INVALID_TOP_BOTTOM_N_ARGUMENT); } if ( getPassLevel( ) == FIRST_PASS ) { return doFirstPass( value ); } else if ( getPassLevel( ) == SECOND_PASS ) { return doSecondPass( ); } return false; } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/54d8c65fe9f2486c85ada2ee8ab32a3a85c1606d/NEvaluator.java/clean/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/script/NEvaluator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
5956,
12,
921,
460,
16,
1033,
290,
16,
1250,
4604,
8410,
13,
1216,
1910,
503,
202,
95,
202,
202,
430,
12,
4008,
6433,
2933,
18,
588,
10997,
7013,
1435,
262,
202,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
5956,
12,
921,
460,
16,
1033,
290,
16,
1250,
4604,
8410,
13,
1216,
1910,
503,
202,
95,
202,
202,
430,
12,
4008,
6433,
2933,
18,
588,
10997,
7013,
1435,
262,
202,
202,
... |
ListIterator i = epeople.listIterator(); while(i.hasNext()) { EPerson e2 = (EPerson)i.next(); if( e.getID() == e2.getID() ) { i.remove(); epeoplechanged = true; } } | if (epeople.remove(e)) epeoplechanged = true; | public void removeMember(EPerson e) { ListIterator i = epeople.listIterator(); // find and remove the eperson while(i.hasNext()) { EPerson e2 = (EPerson)i.next(); if( e.getID() == e2.getID() ) { // match, remove, and set epeople changed flag i.remove(); epeoplechanged = true; } } } | 25205 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25205/c4fd0f82585f7e096b6d0916fd382f2bb8d4b56f/Group.java/clean/dspace/src/org/dspace/eperson/Group.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
4419,
12,
41,
8346,
425,
13,
565,
288,
3639,
987,
3198,
277,
273,
425,
28035,
18,
1098,
3198,
5621,
3639,
368,
1104,
471,
1206,
326,
5529,
3565,
3639,
1323,
12,
77,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
4419,
12,
41,
8346,
425,
13,
565,
288,
3639,
987,
3198,
277,
273,
425,
28035,
18,
1098,
3198,
5621,
3639,
368,
1104,
471,
1206,
326,
5529,
3565,
3639,
1323,
12,
77,
18,... |
proxySettings = TasksUiPlugin.getDefault().getProxySettings(); | protected void setUp() throws Exception { super.setUp(); manager = TasksUiPlugin.getRepositoryManager(); manager.clearRepositories(TasksUiPlugin.getDefault().getRepositoriesFilePath()); proxySettings = TasksUiPlugin.getDefault().getProxySettings(); data = TestFixture.init010(); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/101ff7c2d10bb2298dc26374711a5c44d3a01761/TracAttachmentHandlerTest.java/clean/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracAttachmentHandlerTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
24292,
1435,
1216,
1185,
288,
202,
202,
9565,
18,
542,
1211,
5621,
202,
202,
4181,
273,
20350,
13943,
3773,
18,
588,
3305,
1318,
5621,
202,
202,
4181,
18,
8507,
18429,
12,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
24292,
1435,
1216,
1185,
288,
202,
202,
9565,
18,
542,
1211,
5621,
202,
202,
4181,
273,
20350,
13943,
3773,
18,
588,
3305,
1318,
5621,
202,
202,
4181,
18,
8507,
18429,
12,... | |
int level = RubyFixnum.fix2int(value.toRubyObject()); | int level = RubyFixnum.fix2int(value); | public IRubyObject set(IRubyObject value) { int level = RubyFixnum.fix2int(value.toRubyObject()); if (level < ruby.getSafeLevel()) { throw new SecurityException("tried to downgrade level from " + ruby.getSafeLevel() + " to " + level); } ruby.setSafeLevel(level); // thread.setSafeLevel(level); return value; } | 47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/f235ab756f32ea9496f8f880066b46ad95ebb692/RubyGlobal.java/buggy/org/jruby/RubyGlobal.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
15908,
10340,
921,
444,
12,
7937,
10340,
921,
460,
13,
288,
5411,
509,
1801,
273,
19817,
8585,
2107,
18,
904,
22,
474,
12,
1132,
1769,
5411,
309,
261,
2815,
411,
22155,
18,
588,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
15908,
10340,
921,
444,
12,
7937,
10340,
921,
460,
13,
288,
5411,
509,
1801,
273,
19817,
8585,
2107,
18,
904,
22,
474,
12,
1132,
1769,
5411,
309,
261,
2815,
411,
22155,
18,
588,
9... |
if(status != NOT_FINISHED) throw new IllegalStateException("finish() called with "+code+" when was already "+status); | private void finish(int code, PeerNode next) { Logger.minor(this, "Finished: "+code+" on "+this, new Exception("debug")); if(status != NOT_FINISHED) throw new IllegalStateException("finish() called with "+code+" when was already "+status); synchronized(this) { setStatusTime = System.currentTimeMillis(); if(code == ROUTE_NOT_FOUND && !sentRequest) code = ROUTE_REALLY_NOT_FOUND; status = code; notifyAll(); Logger.minor(this, "Set status code: "+getStatusString()+" on "+uid); // Now wait for transfers, or for downstream transfer notifications. if(cw != null) { while(!allTransfersCompleted) { try { wait(10*1000); } catch (InterruptedException e) { // Try again } } } else { Logger.minor(this, "No completion waiter"); // There weren't any transfers allTransfersCompleted = true; } notifyAll(); } if(code != TIMED_OUT && code != GENERATED_REJECTED_OVERLOAD && code != INTERNAL_ERROR && code != ROUTE_REALLY_NOT_FOUND) { Logger.minor(this, "CHK insert cost "+getTotalSentBytes()+"/"+getTotalReceivedBytes()+" bytes ("+code+")"); (source == null ? node.localChkInsertBytesSentAverage : node.remoteChkInsertBytesSentAverage) .report(getTotalSentBytes()); (source == null ? node.localChkInsertBytesReceivedAverage : node.remoteChkInsertBytesReceivedAverage) .report(getTotalReceivedBytes()); } Logger.minor(this, "Returning from finish()"); } | 52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/18bdac5b045940cab8c77eb1e775cefcdda23e0a/CHKInsertSender.java/buggy/src/freenet/node/CHKInsertSender.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
12,
2327,
480,
4269,
67,
23259,
2056,
13,
604,
394,
5477,
2932,
13749,
1435,
2566,
598,
13773,
710,
9078,
1347,
1703,
1818,
13773,
2327,
1769,
225,
309,
12,
2327,
480,
4269,
67,
23259,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
12,
2327,
480,
4269,
67,
23259,
2056,
13,
604,
394,
5477,
2932,
13749,
1435,
2566,
598,
13773,
710,
9078,
1347,
1703,
1818,
13773,
2327,
1769,
225,
309,
12,
2327,
480,
4269,
67,
23259,
20... | |
fields.add(new String[] { "Publisher", "publisher", null }); fields.add(new String[] { "Citation", "identifier", "citation" }); fields.add(new String[] { "Series/Report no.", "relation", | fields.add(new String[] { LocaleSupport.getLocalizedMessage(pageContext, "org.dspace.app.webui.jsptag.ItemTag.publisher"), "publisher", null }); fields.add(new String[] { LocaleSupport.getLocalizedMessage(pageContext, "org.dspace.app.webui.jsptag.ItemTag.citation"), "identifier", "citation" }); fields.add(new String[] { LocaleSupport.getLocalizedMessage(pageContext, "org.dspace.app.webui.jsptag.ItemTag.series"), "relation", | private void renderDefault() throws IOException, java.sql.SQLException { JspWriter out = pageContext.getOut(); // Build up a list of things to display. // To display a DC field from the item, do // fields.add(new String[] {"Display Name", "element", "qualifier"}); // (or "qualifier" as null for unqualified) // to display an actual value without getting it from the item, do // fields.add(new String[] {"Display Name", "The value to display") List fields = new LinkedList(); // Title - special case, if there is no title, use "Untitled" DCValue[] titleDC = item.getDC("title", null, Item.ANY); if (titleDC.length == 0) { fields.add(new String[] { "Title", "Untitled" }); } else { fields.add(new String[] { "Title", "title", null }); } fields.add(new String[] { "Other Titles", "title", "alternative" }); fields.add(new String[] { "Authors", "contributor", Item.ANY }); fields.add(new String[] { "Keywords", "subject", null }); // Date issued DCValue[] dateIssued = item.getDC("date", "issued", Item.ANY); DCDate dd = null; if (dateIssued.length > 0) { dd = new DCDate(dateIssued[0].value); } String displayDate = UIUtil.displayDate(dd, false, false); fields.add(new String[] { "Issue Date", displayDate }); fields.add(new String[] { "Publisher", "publisher", null }); fields.add(new String[] { "Citation", "identifier", "citation" }); fields.add(new String[] { "Series/Report no.", "relation", "ispartofseries" }); // Truncate abstract DCValue[] abstrDC = item.getDC("description", "abstract", Item.ANY); if (abstrDC.length > 0) { String abstr = abstrDC[0].value; if (abstr.length() > 1000) { abstr = abstr.substring(0, 1000) + "..."; } fields.add(new String[] { "Abstract", abstr }); } fields.add(new String[] { "Description", "description", null }); fields.add(new String[] { "Gov't Doc # ", "identifier", "govdoc" }); fields.add(new String[] { "URI", "identifier", "uri" }); fields.add(new String[] { "ISBN", "identifier", "isbn" }); fields.add(new String[] { "ISSN", "identifier", "issn" }); fields.add(new String[] { "ISMN", "identifier", "ismn" }); fields.add(new String[] { "Other Identifiers", "identifier", null }); HttpServletRequest request = (HttpServletRequest) pageContext .getRequest(); out.println("<center><table class=\"itemDisplayTable\">"); Iterator fieldIterator = fields.iterator(); while (fieldIterator.hasNext()) { String[] fieldData = (String[]) fieldIterator.next(); DCValue[] values; if (fieldData.length == 2) { // Value direct from field data DCValue v = new DCValue(); v.value = fieldData[1]; values = new DCValue[1]; values[0] = v; } else { // Grab the value from the item values = item.getDC(fieldData[1], fieldData[2], Item.ANY); } // Only display the field if we have an actual value if (values.length > 0) { out.print("<tr><td class=\"metadataFieldLabel\">"); out.print(fieldData[0]); out.print(": </td><td class=\"metadataFieldValue\">"); out.print(Utils.addEntities(values[0].value)); for (int j = 1; j < values.length; j++) { out.print("<br>"); out.print(Utils.addEntities(values[j].value)); } out.println("</td></tr>"); } } listCollections(); out.println("</table></center><br>"); listBitstreams(); out.println("<br><br>"); showLicence(); } | 1868 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1868/22d85d1df34eed227975b6e94ba17893121fac13/ItemTag.java/buggy/dspace/src/org/dspace/app/webui/jsptag/ItemTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1743,
1868,
1435,
1216,
1860,
16,
2252,
18,
4669,
18,
23116,
565,
288,
3639,
19300,
2289,
596,
273,
21442,
18,
588,
1182,
5621,
3639,
368,
3998,
731,
279,
666,
434,
9198,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1743,
1868,
1435,
1216,
1860,
16,
2252,
18,
4669,
18,
23116,
565,
288,
3639,
19300,
2289,
596,
273,
21442,
18,
588,
1182,
5621,
3639,
368,
3998,
731,
279,
666,
434,
9198,
358,
... |
private void initializeFrame() { this.frame = new Frame("MegaMek Client"); menuBar.addActionListener( this ); menuBar.setGame( this.game ); frame.setMenuBar( menuBar ); if (Settings.windowSizeHeight != 0) { frame.setLocation(Settings.windowPosX, Settings.windowPosY); frame.setSize(Settings.windowSizeWidth, Settings.windowSizeHeight); } else { frame.setSize(800, 600); } frame.setBackground(SystemColor.menu); frame.setForeground(SystemColor.menuText); frame.setIconImage(frame.getToolkit().getImage("data/images/megamek-icon.gif")); // when frame closes, save settings and clean up. frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { frame.setVisible(false); saveSettings(); die(); } }); } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/a9ed297cb5081fb025a01868efe86e5f185402e3/Client.java/buggy/megamek/src/megamek/client/Client.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
6459,
11160,
3219,
1435,
95,
2211,
18,
3789,
33,
2704,
3219,
2932,
49,
11061,
49,
3839,
1227,
8863,
5414,
5190,
18,
1289,
1803,
2223,
12,
2211,
1769,
5414,
5190,
18,
542,
12496,
12,
2211... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
6459,
11160,
3219,
1435,
95,
2211,
18,
3789,
33,
2704,
3219,
2932,
49,
11061,
49,
3839,
1227,
8863,
5414,
5190,
18,
1289,
1803,
2223,
12,
2211,
1769,
5414,
5190,
18,
542,
12496,
12,
2211... | ||
throw new RangeError(runtime, inspect().toString() + " out of range."); | throw new RangeError(getRuntime(), inspect().toString() + " out of range."); | public long[] getBeginLength(long limit, boolean truncate, boolean isStrict) { long beginLong = RubyNumeric.num2long(begin); long endLong = RubyNumeric.num2long(end); if (! isExclusive) { endLong++; } if (beginLong < 0) { beginLong += limit; if (beginLong < 0) { if (isStrict) { throw new RangeError(runtime, inspect().toString() + " out of range."); } return null; } } if (truncate && beginLong > limit) { if (isStrict) { throw new RangeError(runtime, inspect().toString() + " out of range."); } return null; } if (truncate && endLong > limit) { endLong = limit; } if (endLong < 0 || (!isExclusive && endLong == 0)) { endLong += limit; if (endLong < 0) { if (isStrict) { throw new RangeError(runtime, inspect().toString() + " out of range."); } return null; } } if (beginLong > endLong) { if (isStrict) { throw new RangeError(runtime, inspect().toString() + " out of range."); } return null; } return new long[] { beginLong, endLong - beginLong }; } | 50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyRange.java/buggy/src/org/jruby/RubyRange.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1525,
8526,
25282,
1782,
12,
5748,
1800,
16,
1250,
10310,
16,
1250,
353,
14809,
13,
288,
3639,
1525,
2376,
3708,
273,
19817,
9902,
18,
2107,
22,
5748,
12,
10086,
1769,
3639,
1525,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1525,
8526,
25282,
1782,
12,
5748,
1800,
16,
1250,
10310,
16,
1250,
353,
14809,
13,
288,
3639,
1525,
2376,
3708,
273,
19817,
9902,
18,
2107,
22,
5748,
12,
10086,
1769,
3639,
1525,
6... |
System.out.println("Default (no arguments) is '-c 1'"); System.out.println("\nReport errors only in logs: ChecksumChecker -e"); | System.out.println("\nReport all processing (verbose)(default reports only errors): ChecksumChecker -v"); System.out.println("\nDefault (no arguments) is equivalent to '-c 1'"); | private static void printHelp(Options options) { HelpFormatter myhelp = new HelpFormatter(); myhelp.printHelp("Checksum Checker\n", options); System.out .println("\nSpecify a duration for checker process, using s(seconds)," + "m(minutes), or h(hours): ChecksumChecker -d 30s" + " OR ChecksumChecker -d 30m" + " OR ChecksumChecker -d 2h"); System.out .println("\nSpecify bitstream IDs: ChecksumChecker -b 13 15 17 20"); System.out.println("\nLoop through all bitstreams: " + "ChecksumChecker -l"); System.out .println("\nLoop through all bitstreams continuously: ChecksumChecker -L"); System.out .println("\nCheck a defined number of bitstreams: ChecksumChecker -c 10"); System.out.println("Default (no arguments) is '-c 1'"); System.out.println("\nReport errors only in logs: ChecksumChecker -e"); System.exit(0); } | 51882 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51882/6c35684c85aea40f564514743cf353881f53e165/ChecksumChecker.java/buggy/dspace/src/org/dspace/app/checker/ChecksumChecker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
1172,
6696,
12,
1320,
702,
13,
565,
288,
3639,
11288,
5074,
3399,
5201,
273,
394,
11288,
5074,
5621,
3639,
3399,
5201,
18,
1188,
6696,
2932,
10723,
31577,
64,
82,
3113,
70... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
1172,
6696,
12,
1320,
702,
13,
565,
288,
3639,
11288,
5074,
3399,
5201,
273,
394,
11288,
5074,
5621,
3639,
3399,
5201,
18,
1188,
6696,
2932,
10723,
31577,
64,
82,
3113,
70... |
"var key=Ltest0048/Test<*>;.var [in Test [in [Working copy] Test.java [in test0048 [in src2 [in Resolve]]]]]", | "var declaringSignature=Ltest0048/Test<*>; signature=null [in Test [in [Working copy] Test.java [in test0048 [in src2 [in Resolve]]]]]", | public void test0048() throws JavaModelException { this.wc = getWorkingCopy( "/Resolve/src2/test0048/Test.java", "package test0048;\n" + "public class Test<T1> {\n" + " public String var;\n" + " void foo() {\n" + " Test<?> t = new Test<String>;\n" + " t.var = null;\n" + " }\n" + "}"); String str = wc.getSource(); String selection = "var"; int start = str.lastIndexOf(selection); int length = selection.length(); IJavaElement[] elements = wc.codeSelect(start, length); assertElementsEqual( "Unexpected elements", "var key=Ltest0048/Test<*>;.var [in Test [in [Working copy] Test.java [in test0048 [in src2 [in Resolve]]]]]", elements );} | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/562f566c1c2b8bfedaad7117a5b53ae2f781bec9/ResolveTests_1_5.java/buggy/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/ResolveTests_1_5.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
1842,
713,
8875,
1435,
1216,
5110,
1488,
503,
288,
202,
2211,
18,
27594,
273,
336,
14836,
2951,
12,
1082,
202,
6,
19,
8460,
19,
4816,
22,
19,
3813,
713,
8875,
19,
4709,
18,
6290,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
1842,
713,
8875,
1435,
1216,
5110,
1488,
503,
288,
202,
2211,
18,
27594,
273,
336,
14836,
2951,
12,
1082,
202,
6,
19,
8460,
19,
4816,
22,
19,
3813,
713,
8875,
19,
4709,
18,
6290,
... |
return getFile("mapred.local.dir", name + File.separator + subdir); | return getFile("mapred.local.dir", subdir + File.separator + name); | public File getLocalFile(String subdir, String name) throws IOException { return getFile("mapred.local.dir", name + File.separator + subdir); } | 51718 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51718/b7fa0d8b7421622f3ec524111b5561b3a7788f6c/JobConf.java/buggy/src/java/org/apache/hadoop/mapred/JobConf.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1387,
6993,
812,
12,
780,
16921,
16,
514,
508,
13,
1216,
1860,
288,
565,
327,
6034,
2932,
1458,
1118,
18,
3729,
18,
1214,
3113,
16921,
397,
1387,
18,
11287,
397,
508,
1769,
225,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1387,
6993,
812,
12,
780,
16921,
16,
514,
508,
13,
1216,
1860,
288,
565,
327,
6034,
2932,
1458,
1118,
18,
3729,
18,
1214,
3113,
16921,
397,
1387,
18,
11287,
397,
508,
1769,
225,
2... |
int size = m_board.getSize(); | public void initSize() { m_lastMove = null; m_field = new Field[m_board.getSize()][m_board.getSize()]; removeAll(); int size = m_board.getSize(); setLayout(new GridLayout(size + 2, size + 2)); addColumnLabels(); for (int y = size - 1; y >= 0; --y) { String yLabel = Integer.toString(y + 1); add(new JLabel(yLabel, JLabel.CENTER)); for (int x = 0; x < size; ++x) { go.Point p = m_board.getPoint(x, y); Field field = new Field(this, p, m_board.isHandicap(p)); add(field); m_field[x][y] = field; } add(new JLabel(yLabel, JLabel.CENTER)); } addColumnLabels(); newGame(); revalidate(); repaint(); } | 2255 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2255/c65e110a6cb0c977679bc969485468cf4820bbcf/Board.java/clean/src/gui/Board.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
1225,
1435,
565,
288,
3639,
312,
67,
2722,
7607,
273,
446,
31,
3639,
312,
67,
1518,
273,
394,
2286,
63,
81,
67,
3752,
18,
588,
1225,
1435,
6362,
81,
67,
3752,
18,
588... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1208,
1225,
1435,
565,
288,
3639,
312,
67,
2722,
7607,
273,
446,
31,
3639,
312,
67,
1518,
273,
394,
2286,
63,
81,
67,
3752,
18,
588,
1225,
1435,
6362,
81,
67,
3752,
18,
588... | |
throw new IllegalArgumentException("Bad sort order: " + sortOrder); | throw new IllegalArgumentException("Bad sort order: " + groupBy); | private Comparator getGroupComparator(String sortOrder) { if (sortOrder.equals(BY_CLASS)) { return bugInstanceClassComparator; } else if (sortOrder.equals(BY_PACKAGE)) { return bugInstancePackageComparator; } else if (sortOrder.equals(BY_CATEGORY)) { return bugInstanceTypeComparator; } else throw new IllegalArgumentException("Bad sort order: " + sortOrder); } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/90102c11e692616f20e5537d0acfeb0b692ad5f3/FindBugsFrame.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
13359,
11751,
5559,
12,
780,
19050,
13,
288,
202,
430,
261,
3804,
2448,
18,
14963,
12,
6486,
67,
5237,
3719,
288,
202,
565,
327,
7934,
1442,
797,
5559,
31,
202,
97,
469,
309,
261,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
13359,
11751,
5559,
12,
780,
19050,
13,
288,
202,
430,
261,
3804,
2448,
18,
14963,
12,
6486,
67,
5237,
3719,
288,
202,
565,
327,
7934,
1442,
797,
5559,
31,
202,
97,
469,
309,
261,... |
Mock session = getMockSession(); | Mock session = MuleTestUtils.getMockSession(); | public void testSelectiveConsumer() throws Exception { Mock session = getMockSession(); UMOComponent testComponent = getTestComponent(getTestDescriptor("test", Apple.class.getName())); UMOInboundMessageRouter messageRouter = new InboundMessageRouter(); SelectiveConsumer router = new SelectiveConsumer(); messageRouter.addRouter(router); messageRouter.setCatchAllStrategy(new LoggingCatchAllStrategy()); PayloadTypeFilter filter = new PayloadTypeFilter(String.class); router.setFilter(filter); assertEquals(filter, router.getFilter()); UMOMessage message = new MuleMessage("test event"); UMOEndpoint endpoint = getTestEndpoint("Test1Provider", UMOEndpoint.ENDPOINT_TYPE_SENDER); UMOEvent event = new MuleEvent(message, endpoint, (UMOSession) session.proxy(), false); assertTrue(router.isMatch(event)); session.expect("dispatchEvent", C.eq(event)); session.expectAndReturn("getComponent", testComponent); messageRouter.route(event); session.verify(); event = new MuleEvent(message, endpoint, (UMOSession) session.proxy(), true); session.expectAndReturn("sendEvent", C.eq(event), message); session.expectAndReturn("getComponent", testComponent); UMOMessage result = messageRouter.route(event); assertNotNull(result); assertEquals(message, result); session.verify(); session.expectAndReturn("getComponent", testComponent); session.expectAndReturn("toString", ""); message = new MuleMessage(new Exception()); event = new MuleEvent(message, endpoint, (UMOSession) session.proxy(), false); assertTrue(!router.isMatch(event)); messageRouter.route(event); session.verify(); } | 28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/b656e0806058d87c5db05880209b51a8d57416d0/SelectiveConsumerTestCase.java/clean/mule/src/test/java/org/mule/test/routing/inbound/SelectiveConsumerTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3391,
688,
5869,
1435,
1216,
1185,
565,
288,
3639,
7867,
1339,
273,
490,
725,
4709,
1989,
18,
588,
9865,
2157,
5621,
3639,
587,
5980,
1841,
1842,
1841,
273,
29384,
1841,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3391,
688,
5869,
1435,
1216,
1185,
565,
288,
3639,
7867,
1339,
273,
490,
725,
4709,
1989,
18,
588,
9865,
2157,
5621,
3639,
587,
5980,
1841,
1842,
1841,
273,
29384,
1841,
... |
public Message create( String beginString, String msgType ) { if("0".equals(msgType)) { return new quickfix.fix44.Heartbeat(); } if("A".equals(msgType)) { return new quickfix.fix44.Logon(); } if("1".equals(msgType)) { return new quickfix.fix44.TestRequest(); } if("2".equals(msgType)) { return new quickfix.fix44.ResendRequest(); } if("3".equals(msgType)) { return new quickfix.fix44.Reject(); } if("4".equals(msgType)) { return new quickfix.fix44.SequenceReset(); } if("5".equals(msgType)) { return new quickfix.fix44.Logout(); } if("j".equals(msgType)) { return new quickfix.fix44.BusinessMessageReject(); } if("BE".equals(msgType)) { return new quickfix.fix44.UserRequest(); } if("BF".equals(msgType)) { return new quickfix.fix44.UserResponse(); } if("7".equals(msgType)) { return new quickfix.fix44.Advertisement(); } if("6".equals(msgType)) { return new quickfix.fix44.IndicationOfInterest(); } if("B".equals(msgType)) { return new quickfix.fix44.News(); } if("C".equals(msgType)) { return new quickfix.fix44.Email(); } if("R".equals(msgType)) { return new quickfix.fix44.QuoteRequest(); } if("AJ".equals(msgType)) { return new quickfix.fix44.QuoteResponse(); } if("AG".equals(msgType)) { return new quickfix.fix44.QuoteRequestReject(); } if("AH".equals(msgType)) { return new quickfix.fix44.RFQRequest(); } if("S".equals(msgType)) { return new quickfix.fix44.Quote(); } if("Z".equals(msgType)) { return new quickfix.fix44.QuoteCancel(); } if("a".equals(msgType)) { return new quickfix.fix44.QuoteStatusRequest(); } if("AI".equals(msgType)) { return new quickfix.fix44.QuoteStatusReport(); } if("i".equals(msgType)) { return new quickfix.fix44.MassQuote(); } if("b".equals(msgType)) { return new quickfix.fix44.MassQuoteAcknowledgement(); } if("V".equals(msgType)) { return new quickfix.fix44.MarketDataRequest(); } if("W".equals(msgType)) { return new quickfix.fix44.MarketDataSnapshotFullRefresh(); } if("X".equals(msgType)) { return new quickfix.fix44.MarketDataIncrementalRefresh(); } if("Y".equals(msgType)) { return new quickfix.fix44.MarketDataRequestReject(); } if("c".equals(msgType)) { return new quickfix.fix44.SecurityDefinitionRequest(); } if("d".equals(msgType)) { return new quickfix.fix44.SecurityDefinition(); } if("v".equals(msgType)) { return new quickfix.fix44.SecurityTypeRequest(); } if("w".equals(msgType)) { return new quickfix.fix44.SecurityTypes(); } if("x".equals(msgType)) { return new quickfix.fix44.SecurityListRequest(); } if("y".equals(msgType)) { return new quickfix.fix44.SecurityList(); } if("z".equals(msgType)) { return new quickfix.fix44.DerivativeSecurityListRequest(); } if("AA".equals(msgType)) { return new quickfix.fix44.DerivativeSecurityList(); } if("e".equals(msgType)) { return new quickfix.fix44.SecurityStatusRequest(); } if("f".equals(msgType)) { return new quickfix.fix44.SecurityStatus(); } if("g".equals(msgType)) { return new quickfix.fix44.TradingSessionStatusRequest(); } if("h".equals(msgType)) { return new quickfix.fix44.TradingSessionStatus(); } if("D".equals(msgType)) { return new quickfix.fix44.NewOrderSingle(); } if("8".equals(msgType)) { return new quickfix.fix44.ExecutionReport(); } if("Q".equals(msgType)) { return new quickfix.fix44.DontKnowTrade(); } if("G".equals(msgType)) { return new quickfix.fix44.OrderCancelReplaceRequest(); } if("F".equals(msgType)) { return new quickfix.fix44.OrderCancelRequest(); } if("9".equals(msgType)) { return new quickfix.fix44.OrderCancelReject(); } if("H".equals(msgType)) { return new quickfix.fix44.OrderStatusRequest(); } if("q".equals(msgType)) { return new quickfix.fix44.OrderMassCancelRequest(); } if("r".equals(msgType)) { return new quickfix.fix44.OrderMassCancelReport(); } if("AF".equals(msgType)) { return new quickfix.fix44.OrderMassStatusRequest(); } if("s".equals(msgType)) { return new quickfix.fix44.NewOrderCross(); } if("t".equals(msgType)) { return new quickfix.fix44.CrossOrderCancelReplaceRequest(); } if("u".equals(msgType)) { return new quickfix.fix44.CrossOrderCancelRequest(); } if("AB".equals(msgType)) { return new quickfix.fix44.NewOrderMultileg(); } if("AC".equals(msgType)) { return new quickfix.fix44.MultilegOrderCancelReplaceRequest(); } if("k".equals(msgType)) { return new quickfix.fix44.BidRequest(); } if("l".equals(msgType)) { return new quickfix.fix44.BidResponse(); } if("E".equals(msgType)) { return new quickfix.fix44.NewOrderList(); } if("m".equals(msgType)) { return new quickfix.fix44.ListStrikePrice(); } if("N".equals(msgType)) { return new quickfix.fix44.ListStatus(); } if("L".equals(msgType)) { return new quickfix.fix44.ListExecute(); } if("K".equals(msgType)) { return new quickfix.fix44.ListCancelRequest(); } if("M".equals(msgType)) { return new quickfix.fix44.ListStatusRequest(); } if("J".equals(msgType)) { return new quickfix.fix44.AllocationInstruction(); } if("P".equals(msgType)) { return new quickfix.fix44.AllocationInstructionAck(); } if("AS".equals(msgType)) { return new quickfix.fix44.AllocationReport(); } if("AT".equals(msgType)) { return new quickfix.fix44.AllocationReportAck(); } if("AK".equals(msgType)) { return new quickfix.fix44.Confirmation(); } if("AU".equals(msgType)) { return new quickfix.fix44.ConfirmationAck(); } if("BH".equals(msgType)) { return new quickfix.fix44.ConfirmationRequest(); } if("T".equals(msgType)) { return new quickfix.fix44.SettlementInstructions(); } if("AV".equals(msgType)) { return new quickfix.fix44.SettlementInstructionRequest(); } if("AD".equals(msgType)) { return new quickfix.fix44.TradeCaptureReportRequest(); } if("AQ".equals(msgType)) { return new quickfix.fix44.TradeCaptureReportRequestAck(); } if("AE".equals(msgType)) { return new quickfix.fix44.TradeCaptureReport(); } if("AR".equals(msgType)) { return new quickfix.fix44.TradeCaptureReportAck(); } if("o".equals(msgType)) { return new quickfix.fix44.RegistrationInstructions(); } if("p".equals(msgType)) { return new quickfix.fix44.RegistrationInstructionsResponse(); } if("AL".equals(msgType)) { return new quickfix.fix44.PositionMaintenanceRequest(); } if("AM".equals(msgType)) { return new quickfix.fix44.PositionMaintenanceReport(); } if("AN".equals(msgType)) { return new quickfix.fix44.RequestForPositions(); } if("AO".equals(msgType)) { return new quickfix.fix44.RequestForPositionsAck(); } if("AP".equals(msgType)) { return new quickfix.fix44.PositionReport(); } if("AW".equals(msgType)) { return new quickfix.fix44.AssignmentReport(); } if("AX".equals(msgType)) { return new quickfix.fix44.CollateralRequest(); } if("AY".equals(msgType)) { return new quickfix.fix44.CollateralAssignment(); } if("AZ".equals(msgType)) { return new quickfix.fix44.CollateralResponse(); } if("BA".equals(msgType)) { return new quickfix.fix44.CollateralReport(); } if("BB".equals(msgType)) { return new quickfix.fix44.CollateralInquiry(); } if("BG".equals(msgType)) { return new quickfix.fix44.CollateralInquiryAck(); } return new quickfix.fix44.Message(); } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/1550773ed3d856616a145b520aada7f5e496c228/MessageFactory.java/buggy/src/java/src/quickfix/fix44/MessageFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2350,
752,
12,
514,
2376,
780,
16,
514,
1234,
559,
262,
288,
282,
309,
2932,
20,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
9549,
904,
18,
904,
6334,
18,
15894,
5621,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2350,
752,
12,
514,
2376,
780,
16,
514,
1234,
559,
262,
288,
282,
309,
2932,
20,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
9549,
904,
18,
904,
6334,
18,
15894,
5621,
... | ||
AST tmp265_AST_in = (AST)_t; | AST tmp264_AST_in = (AST)_t; | public final void block_opt(AST _t) throws RecognitionException { AST block_opt_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Block_iterator: { AST __t230 = _t; AST tmp265_AST_in = (AST)_t; match(_t,Block_iterator); _t = _t.getFirstChild(); field(_t); _t = _retTree; AST tmp266_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getNextSibling(); expression(_t); _t = _retTree; AST tmp267_AST_in = (AST)_t; match(_t,TO); _t = _t.getNextSibling(); expression(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case BY: { AST tmp268_AST_in = (AST)_t; match(_t,BY); _t = _t.getNextSibling(); constant(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t230; _t = _t.getNextSibling(); break; } case QUERYTUNING: { querytuningphrase(_t); _t = _retTree; break; } case WHILE: { AST __t232 = _t; AST tmp269_AST_in = (AST)_t; match(_t,WHILE); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t232; _t = _t.getNextSibling(); break; } case TRANSACTION: { AST tmp270_AST_in = (AST)_t; match(_t,TRANSACTION); _t = _t.getNextSibling(); break; } case ON: { on___phrase(_t); _t = _retTree; break; } case WITH: { framephrase(_t); _t = _retTree; break; } case BREAK: { AST tmp271_AST_in = (AST)_t; match(_t,BREAK); _t = _t.getNextSibling(); break; } case BY: { AST __t233 = _t; AST tmp272_AST_in = (AST)_t; match(_t,BY); _t = _t.getFirstChild(); expression(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case DESCENDING: { AST tmp273_AST_in = (AST)_t; match(_t,DESCENDING); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t233; _t = _t.getNextSibling(); break; } case COLLATE: { collatephrase(_t); _t = _retTree; break; } case GROUP: { AST __t235 = _t; AST tmp274_AST_in = (AST)_t; match(_t,GROUP); _t = _t.getFirstChild(); { int _cnt239=0; _loop239: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==BY)) { AST __t237 = _t; AST tmp275_AST_in = (AST)_t; match(_t,BY); _t = _t.getFirstChild(); expression(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case DESCENDING: { AST tmp276_AST_in = (AST)_t; match(_t,DESCENDING); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t237; _t = _t.getNextSibling(); } else { if ( _cnt239>=1 ) { break _loop239; } else {throw new NoViableAltException(_t);} } _cnt239++; } while (true); } _t = __t235; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser03.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1203,
67,
3838,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1203,
67,
3838,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1203,
67,
3838,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1203,
67,
3838,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
... |
else { filechooser.setSelectedFile(f); filechooser.approveSelection(); closeDialog(); } | else { filechooser.setSelectedFile(f); filechooser.approveSelection(); closeDialog(); } | public void actionPerformed(ActionEvent e) { Object obj = filelist.getSelectedValue(); if (obj != null) { File f = filechooser.getFileSystemView().createFileObject(obj .toString()); if (filechooser.isTraversable(f) && filechooser.getFileSelectionMode() == JFileChooser.FILES_ONLY) filechooser.setCurrentDirectory(f); else { filechooser.setSelectedFile(f); filechooser.approveSelection(); closeDialog(); } } } | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/d03b7ded9dacd5a74a8420d7dade451079b17d89/BasicFileChooserUI.java/clean/libraries/javalib/javax/swing/plaf/basic/BasicFileChooserUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
565,
288,
1377,
1033,
1081,
273,
26204,
18,
588,
7416,
620,
5621,
1377,
309,
261,
2603,
480,
446,
13,
3639,
288,
202,
225,
1387,
284,
273,
585... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
565,
288,
1377,
1033,
1081,
273,
26204,
18,
588,
7416,
620,
5621,
1377,
309,
261,
2603,
480,
446,
13,
3639,
288,
202,
225,
1387,
284,
273,
585... |
jj_la1[70] = jj_gen; | jj_la1[71] = jj_gen; | final public Statement SwitchStatement() throws ParseException { Expression test; SwitchCase tempCase; LinkedList<SwitchCase> caseList = new LinkedList<SwitchCase>(); Token first = getToken(1); jj_consume_token(SWITCH); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LPAREN: jj_consume_token(LPAREN); break; default: jj_la1[67] = jj_gen; _errorChar('('); } test = Expression(")"); jj_consume_token(RPAREN); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LBRACE: jj_consume_token(LBRACE); break; default: jj_la1[68] = jj_gen; _errorChar('{'); } label_14: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case CASE: case _DEFAULT: ; break; default: jj_la1[69] = jj_gen; break label_14; } tempCase = SwitchCase(); caseList.add(tempCase); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case RBRACE: jj_consume_token(RBRACE); break; default: jj_la1[70] = jj_gen; _errorChar('}'); } {if (true) return new SwitchStatement(_loc(first), test, caseList.toArray(new SwitchCase[0]));} throw new Error("Missing return statement in function"); } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/8e9d6d4a3458f4fb8d197d118149328dfb2ae150/ACParser.java/clean/drjava/src/edu/rice/cs/drjava/model/autocomplete/parser/ACParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
8056,
13967,
3406,
1435,
1216,
10616,
288,
225,
5371,
1842,
31,
225,
13967,
2449,
1906,
2449,
31,
225,
10688,
32,
10200,
2449,
34,
648,
682,
273,
394,
10688,
32,
10200,
2449,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
8056,
13967,
3406,
1435,
1216,
10616,
288,
225,
5371,
1842,
31,
225,
13967,
2449,
1906,
2449,
31,
225,
10688,
32,
10200,
2449,
34,
648,
682,
273,
394,
10688,
32,
10200,
2449,
3... |
retEnv = SunRound2Client.sendMsg(util, url, soapAction); | retEnv = client.sendMsg(util, url, soapAction); | public void testR2BaseEchoHexBinary() throws AxisFault { url = "http://www.whitemesa.net/interop/std"; soapAction = "http://soapinterop.org/"; util = new Round2EchoHexBinaryClientUtil(); retEnv = SunRound2Client.sendMsg(util, url, soapAction); tempPath = resFilePath + "WMBaseHexBinaryRes.xml"; compare(retEnv, tempPath); } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/95f09abc768fee06d65b12836e31273ac0e15eb3/WMRound2InteropTest.java/clean/modules/integration/itest/test/interop/whitemesa/round2/WMRound2InteropTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
54,
22,
2171,
19704,
7037,
5905,
1435,
1216,
15509,
7083,
288,
3639,
880,
273,
315,
2505,
2207,
5591,
18,
3350,
1726,
281,
69,
18,
2758,
19,
30376,
19,
5084,
14432,
3639,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
54,
22,
2171,
19704,
7037,
5905,
1435,
1216,
15509,
7083,
288,
3639,
880,
273,
315,
2505,
2207,
5591,
18,
3350,
1726,
281,
69,
18,
2758,
19,
30376,
19,
5084,
14432,
3639,... |
public LifecycleCallback(LifecycleCallbackHandler hh, LifecycleCallbackMetadata hm) { m_metadata = hm; m_callback = new Callback(hm.getMethod(), hm.isStatic(), hh.getComponentManager()); | public LifecycleCallback(LifecycleCallbackHandler hh, String initialState, String finalState, String method, boolean isStatic) { if (initialState.equals("VALID")) { m_initialState = InstanceManager.VALID; } if (initialState.equals("INVALID")) { m_initialState = InstanceManager.INVALID; } if (finalState.equals("VALID")) { m_finalState = InstanceManager.VALID; } if (finalState.equals("INVALID")) { m_finalState = InstanceManager.INVALID; } m_method = method; m_callback = new Callback(method, isStatic, hh.getInstanceManager()); | public LifecycleCallback(LifecycleCallbackHandler hh, LifecycleCallbackMetadata hm) { m_metadata = hm; m_callback = new Callback(hm.getMethod(), hm.isStatic(), hh.getComponentManager()); } | 45948 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45948/d229001e440fb0347d56e6cc3a6e65308dcdb431/LifecycleCallback.java/clean/ipojo/src/main/java/org/apache/felix/ipojo/handlers/lifecycle/callback/LifecycleCallback.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
14283,
2428,
12,
9977,
2428,
1503,
18629,
16,
14283,
2428,
2277,
16349,
13,
288,
3639,
312,
67,
4165,
273,
16349,
31,
3639,
312,
67,
3394,
273,
394,
8444,
12,
76,
81,
18,
588,
130... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
14283,
2428,
12,
9977,
2428,
1503,
18629,
16,
14283,
2428,
2277,
16349,
13,
288,
3639,
312,
67,
4165,
273,
16349,
31,
3639,
312,
67,
3394,
273,
394,
8444,
12,
76,
81,
18,
588,
130... |
getLogger().debug("Tiff encoding done."); | log.debug("Tiff encoding done."); | public void stopRenderer() throws IOException { super.stopRenderer(); getLogger().debug("Starting Tiff encoding ..."); //Set resolution float pixSzMM = userAgent.getPixelUnitToMillimeter(); // num Pixs in 100 Meters int numPix = (int)(((1000 * 100) / pixSzMM) + 0.5); int denom = 100 * 100; // Centimeters per 100 Meters; long [] rational = {numPix, denom}; TIFFField [] fields = { new TIFFField(TIFFImageDecoder.TIFF_RESOLUTION_UNIT, TIFFField.TIFF_SHORT, 1, new char[] {(char)3}), new TIFFField(TIFFImageDecoder.TIFF_X_RESOLUTION, TIFFField.TIFF_RATIONAL, 1, new long[][] {rational}), new TIFFField(TIFFImageDecoder.TIFF_Y_RESOLUTION, TIFFField.TIFF_RATIONAL, 1, new long[][] {rational}) }; renderParams.setExtraFields(fields); // Creates encoder TIFFImageEncoder enc = new TIFFImageEncoder(outputStream, renderParams); // Creates lazy iterator over generated page images Iterator pageImagesItr = new LazyPageImagesIterator(getNumberOfPages()); // The first image to be passed to enc RenderedImage first = (RenderedImage) pageImagesItr.next(); // The other images are set to the renderParams renderParams.setExtraImages(pageImagesItr); // Start encoding enc.encode(first); // Cleaning outputStream.flush(); clearViewportList(); getLogger().debug("Tiff encoding done."); } | 5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/990f5e0aee12f2b62f6a961dec312bb3eb5f3e56/TIFFRenderer.java/clean/src/java/org/apache/fop/render/bitmap/TIFFRenderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2132,
6747,
1435,
1216,
1860,
288,
3639,
2240,
18,
5681,
6747,
5621,
3639,
7156,
7675,
4148,
2932,
11715,
399,
3048,
2688,
1372,
8863,
3639,
368,
694,
7861,
3639,
1431,
11871,
55... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2132,
6747,
1435,
1216,
1860,
288,
3639,
2240,
18,
5681,
6747,
5621,
3639,
7156,
7675,
4148,
2932,
11715,
399,
3048,
2688,
1372,
8863,
3639,
368,
694,
7861,
3639,
1431,
11871,
55... |
page.setPerspective(persp); } | page.setPerspective(persp); } | private static void replaceCurrentPerspective(IPerspectiveDescriptor persp) { //Get the active page. IWorkbenchWindow window = PlatformUI.getWorkbench() .getActiveWorkbenchWindow(); if (window == null) { return; } IWorkbenchPage page = window.getActivePage(); if (page == null) { return; } // Set the perspective. page.setPerspective(persp); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/53cada7d6d0463cdcb3aed320ea380f4aae64087/BasicNewProjectResourceWizard.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/newresource/BasicNewProjectResourceWizard.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
1453,
3935,
14781,
16772,
12,
2579,
414,
16772,
3187,
13508,
84,
13,
288,
3639,
368,
967,
326,
2695,
1363,
18,
3639,
467,
2421,
22144,
3829,
2742,
273,
11810,
5370,
18,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
1453,
3935,
14781,
16772,
12,
2579,
414,
16772,
3187,
13508,
84,
13,
288,
3639,
368,
967,
326,
2695,
1363,
18,
3639,
467,
2421,
22144,
3829,
2742,
273,
11810,
5370,
18,
58... |
initialDocumentToSubmit = createDocumentToSubmit(currentNode, currentInstance); containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(model, false)); final boolean instanceSatisfiesValidRequired = isDocumentSatisfiesValidRequired(initialDocumentToSubmit); if (!instanceSatisfiesValidRequired) { if (XFormsServer.logger.isDebugEnabled()) { final LocationDocumentResult documentResult = new LocationDocumentResult(); final TransformerHandler identity = TransformerUtils.getIdentityTransformerHandler(); identity.setResult(documentResult); currentInstance.read(identity); final String documentString = Dom4jUtils.domToString(documentResult.getDocument()); XFormsServer.logger.debug("XForms - instance document or subset thereof cannot be submitted:\n" + documentString); | final Document backupInstanceDocument = currentInstance.getDocument(); try { initialDocumentToSubmit = createDocumentToSubmit(currentNode, currentInstance); currentInstance.setInstanceDocument(initialDocumentToSubmit); containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(model, false)); final boolean instanceSatisfiesValidRequired = isDocumentSatisfiesValidRequired(initialDocumentToSubmit); if (!instanceSatisfiesValidRequired) { { currentInstance.readOut(); ; } if (XFormsServer.logger.isDebugEnabled()) { final LocationDocumentResult documentResult = new LocationDocumentResult(); final TransformerHandler identity = TransformerUtils.getIdentityTransformerHandler(); identity.setResult(documentResult); currentInstance.read(identity); final String documentString = Dom4jUtils.domToString(documentResult.getDocument()); XFormsServer.logger.debug("XForms - instance document or subset thereof cannot be submitted:\n" + documentString); } throw new OXFException("xforms:submission: instance to submit does not satisfy valid and/or required model item properties."); | public void performDefaultAction(PipelineContext pipelineContext, XFormsEvent event) { final String eventName = event.getEventName(); if (XFormsEvents.XFORMS_SUBMIT.equals(eventName) || XFormsEvents.XXFORMS_SUBMIT.equals(eventName)) { // 11.1 The xforms-submit Event // Bubbles: Yes / Cancelable: Yes / Context Info: None boolean isDeferredSubmissionSecondPass = false; try { // Make sure submission element info is extracted extractSubmissionElement(); final boolean isReplaceAll = replace.equals(XFormsConstants.XFORMS_SUBMIT_REPLACE_ALL); final boolean isHandlingOptimizedGet = XFormsUtils.isOptimizeGetAllSubmission() && XFormsSubmissionUtils.isGet(method) && isReplaceAll; //noinspection UnnecessaryLocalVariable final boolean isDeferredSubmission = isReplaceAll; final boolean isDeferredSubmissionFirstPass = isDeferredSubmission && XFormsEvents.XFORMS_SUBMIT.equals(eventName) && !isHandlingOptimizedGet; isDeferredSubmissionSecondPass = isDeferredSubmission && !isDeferredSubmissionFirstPass; // Select node based on ref or bind final XFormsControls xformsControls = containingDocument.getXFormsControls(); xformsControls.setBinding(pipelineContext, submissionElement); // FIXME: the submission element is not a control... final Node currentNode = xformsControls.getCurrentSingleNode(); if (!(currentNode instanceof Document || currentNode instanceof Element)) { throw new OXFException("xforms:submission: single-node binding must refer to a document node or an element."); } final XFormsInstance currentInstance = xformsControls.getCurrentInstance(); final Document initialDocumentToSubmit; if (!isDeferredSubmissionSecondPass) { // Create document to submit initialDocumentToSubmit = createDocumentToSubmit(currentNode, currentInstance); // Revalidate instance containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(model, false)); // TODO: The "false" attribute is no longer used. The above will cause events to be // sent out. Check if the validation state can really change. If so, find a // solution. // "no notification events are marked for dispatching due to this operation" // Check that there are no validation errors final boolean instanceSatisfiesValidRequired = isDocumentSatisfiesValidRequired(initialDocumentToSubmit); if (!instanceSatisfiesValidRequired) { if (XFormsServer.logger.isDebugEnabled()) { final LocationDocumentResult documentResult = new LocationDocumentResult(); final TransformerHandler identity = TransformerUtils.getIdentityTransformerHandler(); identity.setResult(documentResult); currentInstance.read(identity); final String documentString = Dom4jUtils.domToString(documentResult.getDocument()); XFormsServer.logger.debug("XForms - instance document or subset thereof cannot be submitted:\n" + documentString); } throw new OXFException("xforms:submission: instance to submit does not satisfy valid and/or required model item properties."); } } else { initialDocumentToSubmit = null; } // Deferred submission: end of the first pass if (isDeferredSubmissionFirstPass) { // When replace="all", we wait for the submission of an XXFormsSubmissionEvent from the client containingDocument.setClientActiveSubmission(this); return; } final Document documentToSubmit; if (isDeferredSubmissionSecondPass) { // Handle uploaded files if any final Element filesElement = (event instanceof XXFormsSubmissionEvent) ? ((XXFormsSubmissionEvent) event).getFilesElement() : null; if (filesElement != null) { for (Iterator i = filesElement.elements().iterator(); i.hasNext();) { final Element parameterElement = (Element) i.next(); final String name = parameterElement.element("name").getTextTrim(); final Element valueElement = parameterElement.element("value"); final String value = valueElement.getTextTrim(); final String paramValueType = Dom4jUtils.qNameToexplodedQName(Dom4jUtils.extractAttributeValueQName(valueElement, XMLConstants.XSI_TYPE_QNAME)); final String filename = parameterElement.element("filename").getTextTrim(); final String mediatype = parameterElement.element("content-type").getTextTrim(); final String size = parameterElement.element("content-length").getTextTrim(); final XFormsControls.UploadControlInfo uploadControl = (XFormsControls.UploadControlInfo) containingDocument.getObjectById(pipelineContext, name); if (uploadControl != null) { // in case of xforms:repeat, the name of the template will not match an existing control // Set value into the instance xformsControls.setBinding(pipelineContext, uploadControl); { final Node currentSingleNode = xformsControls.getCurrentSingleNode(); XFormsInstance.setValueForNode(pipelineContext, currentSingleNode, value, paramValueType); } // Handle filename if any if (uploadControl.getFilenameElement() != null) { xformsControls.pushBinding(pipelineContext, uploadControl.getFilenameElement()); final Node currentSingleNode = xformsControls.getCurrentSingleNode(); XFormsInstance.setValueForNode(pipelineContext, currentSingleNode, filename, null); xformsControls.popBinding(); } // Handle mediatype if any if (uploadControl.getMediatypeElement() != null) { xformsControls.pushBinding(pipelineContext, uploadControl.getMediatypeElement()); final Node currentSingleNode = xformsControls.getCurrentSingleNode(); XFormsInstance.setValueForNode(pipelineContext, currentSingleNode, mediatype, null); xformsControls.popBinding(); } // Handle file size if any if (uploadControl.getSizeElement() != null) { xformsControls.pushBinding(pipelineContext, uploadControl.getSizeElement()); final Node currentSingleNode = xformsControls.getCurrentSingleNode(); XFormsInstance.setValueForNode(pipelineContext, currentSingleNode, size, null); xformsControls.popBinding(); } } } } // Create document to submit documentToSubmit = createDocumentToSubmit(currentNode, currentInstance); // Revalidate instance containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(model, false)); // TODO: The "false" attribute is no longer used. The above will cause events to be // sent out. Check if the validation state can really change. If so, find a // solution. // "no notification events are marked for dispatching due to this operation" // Check that there are no validation errors final boolean instanceSatisfiesValidRequired = isDocumentSatisfiesValidRequired(documentToSubmit); if (!instanceSatisfiesValidRequired) {// currentInstance.readOut();// FIXME: DEBUG throw new OXFException("xforms:submission: instance to submit does not satisfy valid and/or required model item properties."); } } else { // Don't recreate document documentToSubmit = initialDocumentToSubmit; } // Serialize // To support: application/xml, application/x-www-form-urlencoded, multipart/related, multipart/form-data final byte[] serializedInstance; final String serializedInstanceString; { if (XFormsSubmissionUtils.isPost(method) || XFormsSubmissionUtils.isPut(method)) { try { final Transformer identity = TransformerUtils.getIdentityTransformer(); TransformerUtils.applyOutputProperties(identity, "xml", version, null, null, encoding, omitxmldeclaration, standalone, indent, 4); // TODO: use cdata-section-elements final ByteArrayOutputStream os = new ByteArrayOutputStream(); identity.transform(new DocumentSource(documentToSubmit), new StreamResult(os)); serializedInstance = os.toByteArray(); } catch (Exception e) { throw new OXFException("xforms:submission: exception while serializing instance to XML.", e); } serializedInstanceString = null; } else if (XFormsSubmissionUtils.isGet(method)) { // Perform "application/x-www-form-urlencoded" serialization serializedInstanceString = createWwwFormUrlEncoded(documentToSubmit); serializedInstance = null; } else if (method.equals("multipart-post")) { // TODO throw new OXFException("xforms:submission: submission method not yet implemented: " + method); } else if (method.equals("form-data-post")) { // TODO throw new OXFException("xforms:submission: submission method not yet implemented: " + method); } else if (method.equals("urlencoded-post")) { throw new OXFException("xforms:submission: deprecated submission method requested: " + method); } else { throw new OXFException("xforms:submission: invalid submission method requested: " + method); } } final ExternalContext externalContext = (ExternalContext) pipelineContext.getAttribute(PipelineContext.EXTERNAL_CONTEXT); // Result information ConnectionResult connectionResult = null; try { if (isHandlingOptimizedGet) { // GET with replace="all": we can optimize and tell the client to just load the URL connectionResult = doOptimizedGet(pipelineContext, serializedInstanceString); } else if (!NetUtils.urlHasProtocol(action) && (externalContext.getRequest().getContainerType().equals("portlet") || (externalContext.getRequest().getContainerType().equals("servlet") && (XFormsUtils.isOptimizeLocalSubmission() || isMethodOptimizedLocalSubmission()) && isReplaceAll))) { // This is an "optimized" submission, i.e. one that does not use an actual // protocol handler to access the resource // NOTE: Optimizing with include() for servlets doesn't allow detecting // errors caused by the included resource, so we don't allow this for now. // NOTE: For portlets, paths are served directly by the portlet, NOT as // resources. // Current limitations: // o Portlets cannot access resources outside the portlet except by using absolute URLs // o Servlets cannot access resources on the same serer but not in the current application // except by using absolute URLs final URI resolvedURI = XFormsUtils.resolveURI(submissionElement, action); connectionResult = XFormsSubmissionUtils.doOptimized(pipelineContext, externalContext, this, method, resolvedURI.toString(), mediatype, isReplaceAll, serializedInstance, serializedInstanceString); } else { // This is a regular remote submission going through a protocol handler // Absolute URLs or absolute paths are allowed to a local servlet final String resolvedURL = XFormsUtils.resolveURL(containingDocument, pipelineContext, submissionElement, false, action); connectionResult = XFormsSubmissionUtils.doRegular(pipelineContext, externalContext, method, resolvedURL, mediatype, isReplaceAll, serializedInstance, serializedInstanceString); } if (!connectionResult.dontHandleResponse) { // Handle response if (connectionResult.resultCode == 200) { // Sucessful response final boolean hasContent; { if (connectionResult.resultInputStream == null) { hasContent = false; } else { if (!connectionResult.resultInputStream.markSupported()) connectionResult.resultInputStream = new BufferedInputStream(connectionResult.resultInputStream); connectionResult.resultInputStream.mark(1); hasContent = connectionResult.resultInputStream.read() != -1; connectionResult.resultInputStream.reset(); } } if (hasContent) { // There is a body if (isReplaceAll) { // When we get here, we are in a mode where we need to send the reply // directly to an external context, if any. // "the event xforms-submit-done is dispatched" containingDocument.dispatchEvent(pipelineContext, new XFormsSubmitDoneEvent(XFormsModelSubmission.this)); final ExternalContext.Response response = externalContext.getResponse(); // Forward headers to response if (connectionResult.resultHeaders != null) { for (Iterator i = connectionResult.resultHeaders.entrySet().iterator(); i.hasNext();) { final Map.Entry currentEntry = (Map.Entry) i.next(); final String headerName = (String) currentEntry.getKey(); final List headerValues = (List) currentEntry.getValue(); if (headerName != null && headerValues != null) { for (Iterator j = headerValues.iterator(); j.hasNext();) { response.addHeader(headerName, (String) j.next()); } } } } // Forward content to response NetUtils.copyStream(connectionResult.resultInputStream, response.getOutputStream()); } else if (replace.equals(XFormsConstants.XFORMS_SUBMIT_REPLACE_INSTANCE)) { final ByteArrayOutputStream resultByteArrayOutputStream = new ByteArrayOutputStream(); NetUtils.copyStream(connectionResult.resultInputStream, resultByteArrayOutputStream); byte[] submissionResponse = resultByteArrayOutputStream.toByteArray(); if (ProcessorUtils.isXMLContentType(connectionResult.resultMediaType)) { // Handling of XML media type try { final Transformer identity = TransformerUtils.getIdentityTransformer(); final LocationDocumentResult documentResult = new LocationDocumentResult(); identity.transform(new StreamSource(new ByteArrayInputStream(submissionResponse)), documentResult); final Document resultingInstanceDocument = documentResult.getDocument(); // Set new instance document to replace the one submitted final XFormsInstance replaceInstance = (replaceInstanceId == null) ? currentInstance : model.getInstance(replaceInstanceId); if (replaceInstance == null) { containingDocument.dispatchEvent(pipelineContext, new XFormsBindingExceptionEvent(XFormsModelSubmission.this)); } else { // Get repeat index information just before insertion final Map previousRepeatIdToIndex; { final Map map = xformsControls.getCurrentControlsState().getRepeatIdToIndex(); previousRepeatIdToIndex = (map == null) ? null : new HashMap(map); } // Set new instance replaceInstance.setInstanceDocument(resultingInstanceDocument); // Mark all values as changed so that refresh sends appropriate events XFormsUtils.markAllValuesChanged(replaceInstance.getDocument()); // Rebuild ControlsState xformsControls.rebuildCurrentControlsState(pipelineContext); // "Once the XML instance data has been replaced, // the rebuild, recalculate, revalidate and refresh // operations are performed on the model, without // dispatching events to invoke those four // operations." model.doRebuild(pipelineContext); model.doRecalculate(pipelineContext); model.doRevalidate(pipelineContext); model.doRefresh(pipelineContext); // Update repeat indexes if necessary // The idea is that if a repeat index was set to 0 // (which can only happen when a repeat node-set is // empty) and instance replacement causes the // node-set to be non-empty, then the repeat index // must be set to the initial repeat index for that // repeat. if (previousRepeatIdToIndex != null) { final XFormsControls.ControlsState currentControlsState = xformsControls.getCurrentControlsState(); final Map currentRepeatIdToIndex = currentControlsState.getRepeatIdToIndex(); final Map intialRepeatIdToIndex = currentControlsState.getDefaultRepeatIdToIndex(); final Map effectiveRepeatIdToIterations = currentControlsState.getEffectiveRepeatIdToIterations(); if (currentRepeatIdToIndex != null && currentRepeatIdToIndex.size() != 0) { for (Iterator i = previousRepeatIdToIndex.entrySet().iterator(); i.hasNext();) { final Map.Entry currentEntry = (Map.Entry) i.next(); final String repeatId = (String) currentEntry.getKey(); final Integer previouslIndex = (Integer) currentEntry.getValue();// final Integer newIndex = (Integer) currentRepeatIdToIndex.get(repeatId); final Integer newIterations = (Integer) effectiveRepeatIdToIterations.get(repeatId); if (previouslIndex.intValue() == 0 && newIterations.intValue() > 0) { // Set index to defaul value final Integer initialRepeatIndex = (Integer) intialRepeatIdToIndex.get(repeatId);// XFormsActionInterpreter.executeSetindexAction(pipelineContext, containingDocument, repeatId, initialRepeatIndex.toString()); // TODO: Here we need to check that the index is within bounds and to send the appropriate events currentControlsState.updateRepeatIndex(repeatId, initialRepeatIndex.intValue()); } else { // Just reset index and make sure it is within bounds// XFormsActionInterpreter.executeSetindexAction(pipelineContext, containingDocument, repeatId, previousRepeatIndex.toString()); // TODO: Here we need to check that the index is within bounds and to send the appropriate events// final Integer previousRepeatIndex = (Integer) previousRepeatIdToIndex.get(repeatId);// currentControlsState.updateRepeatIndex(repeatId, previousRepeatIndex.intValue()); final Integer initialRepeatIndex = (Integer) intialRepeatIdToIndex.get(repeatId); currentControlsState.updateRepeatIndex(repeatId, initialRepeatIndex.intValue()); } // TODO: Adjust controls ids that could have gone out of bounds? // adjustRepeatIndexes(pipelineContext, xformsControls); } } } // Notify that submission is done containingDocument.dispatchEvent(pipelineContext, new XFormsSubmitDoneEvent(XFormsModelSubmission.this)); } } catch (Exception e) { throw new OXFException("xforms:submission: exception while serializing XML to instance.", e); } } else { // Other media type throw new OXFException("Body received with non-XML media type for replace=\"instance\": " + connectionResult.resultMediaType); } } else if (replace.equals(XFormsConstants.XFORMS_SUBMIT_REPLACE_NONE)) { // Just notify that processing is terminated containingDocument.dispatchEvent(pipelineContext, new XFormsSubmitDoneEvent(XFormsModelSubmission.this)); } else { throw new OXFException("xforms:submission: invalid replace attribute: " + replace); } } else { // There is no body, notify that processing is terminated containingDocument.dispatchEvent(pipelineContext, new XFormsSubmitDoneEvent(XFormsModelSubmission.this)); } } else if (connectionResult.resultCode == 302 || connectionResult.resultCode == 301) { // Got a redirect final ExternalContext.Response response = externalContext.getResponse(); // Forward headers to response // TODO: this is duplicated from above if (connectionResult.resultHeaders != null) { for (Iterator i = connectionResult.resultHeaders.entrySet().iterator(); i.hasNext();) { final Map.Entry currentEntry = (Map.Entry) i.next(); final String headerName = (String) currentEntry.getKey(); final List headerValues = (List) currentEntry.getValue(); if (headerName != null && headerValues != null) { for (Iterator j = headerValues.iterator(); j.hasNext();) { response.addHeader(headerName, (String) j.next()); } } } } // Forward redirect response.setStatus(connectionResult.resultCode); } else { // Error code received throw new OXFException("Error code received when submitting instance: " + connectionResult.resultCode); } } } finally { // Clean-up if (connectionResult != null) { connectionResult.close(); } } } catch (Throwable e) { if (isDeferredSubmissionSecondPass && XFormsUtils.isOptimizePostAllSubmission()) { // It doesn't serve any purpose here to dispatch an event, so we just propagate the exception throw new OXFException(e); } else { // Any exception will cause an error event to be dispatched containingDocument.dispatchEvent(pipelineContext, new XFormsSubmitErrorEvent(XFormsModelSubmission.this, action, e)); } } } else if (XFormsEvents.XFORMS_BINDING_EXCEPTION.equals(eventName)) { // The default action for this event results in the following: Fatal error. throw new OXFException("Binding exception."); } } | 54445 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54445/0d1166505c8e2f5bfe7c24e43c908b331cb9f07a/XFormsModelSubmission.java/clean/src/java/org/orbeon/oxf/xforms/XFormsModelSubmission.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3073,
1868,
1803,
12,
8798,
1042,
5873,
1042,
16,
1139,
18529,
1133,
871,
13,
288,
3639,
727,
514,
7933,
273,
871,
18,
588,
24320,
5621,
3639,
309,
261,
60,
18529,
3783,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3073,
1868,
1803,
12,
8798,
1042,
5873,
1042,
16,
1139,
18529,
1133,
871,
13,
288,
3639,
727,
514,
7933,
273,
871,
18,
588,
24320,
5621,
3639,
309,
261,
60,
18529,
3783,
18,
... |
} else roll.addModifier(TargetRoll.CHECK_FALSE,"Check false"); | } else roll.addModifier(TargetRoll.CHECK_FALSE,"Check false: Entity did not use more MPs walking/running than possible at 1G"); | public PilotingRollData checkMovedTooFast(MoveStep step) { PilotingRollData roll = getBasePilotingRoll(); switch (step.getMovementType()) { case Entity.MOVE_WALK: case Entity.MOVE_RUN: if (step.getMpUsed() > (int)Math.ceil(getOriginalWalkMP() * 1.5)) { roll.append(new PilotingRollData(getId(), 0, "used more MPs than at 1G possible")); } else roll.addModifier(TargetRoll.CHECK_FALSE,"Check false"); break; case Entity.MOVE_JUMP: if (step.getMpUsed() > getOriginalJumpMP()) { roll.append(new PilotingRollData(getId(), 0, "used more MPs than at 1G possible")); } else roll.addModifier(TargetRoll.CHECK_FALSE,"Check false"); break; } return roll; } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/c5d6a3c5fb1730d7ddcc4a38249f0decb6b71887/Entity.java/buggy/megamek/src/megamek/common/Entity.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
453,
330,
17128,
24194,
751,
866,
25317,
10703,
12305,
12,
7607,
4160,
2235,
13,
288,
3639,
453,
330,
17128,
24194,
751,
5824,
273,
8297,
52,
330,
17128,
24194,
5621,
3639,
1620,
261,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
453,
330,
17128,
24194,
751,
866,
25317,
10703,
12305,
12,
7607,
4160,
2235,
13,
288,
3639,
453,
330,
17128,
24194,
751,
5824,
273,
8297,
52,
330,
17128,
24194,
5621,
3639,
1620,
261,... |
m_localhost = InetAddress.getByName("127.0.0.1"); | m_localhost = InetAddress.getByName(m_ip); | protected void setUp() throws Exception { MockLogAppender.setupLogging(); m_anticipator = new EventAnticipator(); m_eventMgr = new MockEventIpcManager(); m_eventMgr.setEventAnticipator(m_anticipator); m_localhost = InetAddress.getByName("127.0.0.1"); String eventconf = "<events xmlns=\"http://xmlns.opennms.org/xsd/eventconf\">\n" + " <global>\n" + " <security>\n" + " <doNotOverride>logmsg</doNotOverride>\n" + " <doNotOverride>operaction</doNotOverride>\n" + " <doNotOverride>autoaction</doNotOverride>\n" + " <doNotOverride>tticket</doNotOverride>\n" + " <doNotOverride>script</doNotOverride>\n" + " </security>\n" + " </global>\n" + "\n" + " <event>\n" + " <mask>\n" + " <maskelement>\n" + " <mename>id</mename>\n" + " <mevalue>.1.3.6.1.2.1.15.7</mevalue>\n" + " </maskelement>\n" + " <maskelement>\n" + " <mename>generic</mename>\n" + " <mevalue>6</mevalue>\n" + " </maskelement>\n" + " <maskelement>\n" + " <mename>specific</mename>\n" + " <mevalue>1</mevalue>\n" + " </maskelement>\n" + " </mask>\n" + " <uei>uei.opennms.org/IETF/BGP/traps/bgpEstablished</uei>\n" + " <event-label>BGP4-MIB defined trap event: bgpEstablished</event-label>\n" + " <descr><p>The BGP Established event is generated when\n" + " the BGP FSM enters the ESTABLISHED state.</p><table>\n" + " <tr><td><b>\n" + " bgpPeerLastError</b></td><td>%parm[#1]%\n" + " </td><td><p;></p></td;></tr><tr><td><b>\n" + " bgpPeerState</b></td><td>%parm[#2]%\n" + " </td><td><p;>\n" + " idle(1) connect(2) active(3) opensent(4) openconfirm(5) established(6)</p>\n" + " </td;></tr></table>\n" + " </descr>\n" + " <logmsg dest='logndisplay'><p>BGP Event: FSM entered connected state.</p></logmsg>\n" + " <severity>Normal</severity>\n" + " </event>\n" + "\n" + " <event>\n" + " <mask>\n" + " <maskelement>\n" + " <mename>id</mename>\n" + " <mevalue>.1.3.6.1.2.1.15.7</mevalue>\n" + " </maskelement>\n" + " <maskelement>\n" + " <mename>generic</mename>\n" + " <mevalue>6</mevalue>\n" + " </maskelement>\n" + " <maskelement>\n" + " <mename>specific</mename>\n" + " <mevalue>2</mevalue>\n" + " </maskelement>\n" + " </mask>\n" + " <uei>uei.opennms.org/IETF/BGP/traps/bgpBackwardTransition</uei>\n" + " <event-label>BGP4-MIB defined trap event: bgpBackwardTransition</event-label>\n" + " <descr><p>The BGPBackwardTransition Event is generated\n" + " when the BGP FSM moves from a higher numbered\n" + " state to a lower numbered state.</p><table>\n" + " <tr><td><b>\n" + " bgpPeerLastError</b></td><td>%parm[#1]%\n" + " </td><td><p;></p></td;></tr><tr><td><b>\n" + " bgpPeerState</b></td><td>%parm[#2]%\n" + " </td><td><p;>\n" + " idle(1) connect(2) active(3) opensent(4) openconfirm(5) established(6)</p>\n" + " </td;></tr></table>\n" + " </descr>\n" + " <logmsg dest='discardtraps'><p>BGP Event: FSM Backward Transistion.</p></logmsg>\n" + " <severity>Warning</severity>\n" + " </event>\n" + "\n" + " <event>\n" + " <mask>\n" + " <maskelement>\n" + " <mename>generic</mename>\n" + " <mevalue>0</mevalue>\n" + " </maskelement>\n" + " </mask>\n" + " <uei>uei.opennms.org/generic/traps/SNMP_Cold_Start</uei>\n" + " <event-label>OpenNMS-defined trap event: SNMP_Cold_Start</event-label>\n" + " <descr>\n" + " <p>A coldStart trap signifies that the sending\n" + " protocol entity is reinitializing itself such that the\n" + " agent's configuration or the protocol entity implementation\n" + " may be altered.</p>\n" + " </descr>\n" + " <logmsg dest='logndisplay'>\n" + " Agent Up with Possible Changes (coldStart Trap)\n" + " enterprise:%id% (%id%) args(%parm[##]%):%parm[all]%\n" + " </logmsg>\n" + " <severity>Normal</severity>\n" + " </event>\n" + "</events>"; StringReader reader = new StringReader(eventconf); EventConfigurationManager.loadConfiguration(reader); } | 11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/ce9ed6240bad3deba8bd4d91751317d5f3585491/TrapHandlerTest.java/buggy/opennms-services/src/test/java/org/opennms/netmgt/trapd/TrapHandlerTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
24292,
1435,
1216,
1185,
288,
3639,
7867,
1343,
17302,
18,
8401,
7735,
5621,
7734,
312,
67,
9941,
625,
639,
273,
394,
2587,
14925,
24629,
639,
5621,
3639,
312,
67,
2575,
9455,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
24292,
1435,
1216,
1185,
288,
3639,
7867,
1343,
17302,
18,
8401,
7735,
5621,
7734,
312,
67,
9941,
625,
639,
273,
394,
2587,
14925,
24629,
639,
5621,
3639,
312,
67,
2575,
9455,
... |
return ((Attr)node).getOwnerElement(); | return ((Attr)n).getOwnerElement(); | public Iterator getParentAxisIterator (Object contextNode) { Node node = (Node)contextNode; if (node.getNodeType() == Node.ATTRIBUTE_NODE) { return new NodeIterator (node) { protected Node getFirstNode (Node node) { // FIXME: assumes castability. return ((Attr)node).getOwnerElement(); } protected Node getNextNode (Node node) { return null; } }; } else { return new NodeIterator (node) { protected Node getFirstNode (Node node) { return node.getParentNode(); } protected Node getNextNode (Node node) { return null; } }; } } | 5646 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5646/b8a5f9984d98ed626f3f36e2b17f1db5c65bb588/DocumentNavigator.java/buggy/src/java/main/org/jaxen/dom/DocumentNavigator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4498,
5089,
6558,
3198,
261,
921,
819,
907,
13,
565,
288,
3639,
2029,
756,
273,
261,
907,
13,
2472,
907,
31,
3639,
309,
261,
2159,
18,
588,
15101,
1435,
422,
2029,
18,
11616,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4498,
5089,
6558,
3198,
261,
921,
819,
907,
13,
565,
288,
3639,
2029,
756,
273,
261,
907,
13,
2472,
907,
31,
3639,
309,
261,
2159,
18,
588,
15101,
1435,
422,
2029,
18,
11616,
67,
... |
String value = requireAttribute(element,attribute); | String value = requireAttribute(element, attribute); | protected boolean requireYesNoAttribute(XMLElement element, String attribute) throws CompilerException { String value = requireAttribute(element,attribute); if (value.equalsIgnoreCase("yes")) return true; if (value.equalsIgnoreCase("no")) return false; parseError(element, "<"+element.getName()+"> invalid attribute '"+ attribute+"': Expected (yes|no)"); return false; // never happens } | 46579 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46579/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
1250,
2583,
22352,
2279,
1499,
12,
15223,
930,
16,
514,
1566,
13,
565,
1216,
28227,
225,
288,
565,
514,
460,
273,
2583,
1499,
12,
2956,
16,
1566,
1769,
565,
309,
261,
1132,
18,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
1250,
2583,
22352,
2279,
1499,
12,
15223,
930,
16,
514,
1566,
13,
565,
1216,
28227,
225,
288,
565,
514,
460,
273,
2583,
1499,
12,
2956,
16,
1566,
1769,
565,
309,
261,
1132,
18,
14... |
return actionMethod.invoke(target, new Object[] {val}); | return actionMethod.invoke(target, null); } catch(InvocationTargetException ite) { throw new RuntimeException(ite.getCause()); } catch(IllegalAccessException iae) { throw (InternalError) new InternalError("Non-public method was invoked.").initCause(iae); } | public Object invoke(Object proxy, Method method, Object[] arguments) throws Exception { // Do we actually need the proxy? if (method == null) throw new RuntimeException("Invoking null method"); // Listener methods that weren't specified are ignored. If listenerMethod // is null, then all listener methods are processed. if (listenerMethod != null && !method.getName().equals(listenerMethod)) return null; // Extract the first arg from arguments and do getProperty on arg if (arguments == null || arguments.length == 0) return null; Object event = arguments[0]; // We hope :-) // Obtain the property XXX propertyType keeps showing up null - why? // because the object inside getProperty changes, but the ref variable // can't change this way, dolt! need a better way to get both values out // - need method and object to do the invoke and get return type Object v[] = getProperty(event, property); Object val = v[0]; Class propertyType = (Class) v[1]; // Find the actual method of target to invoke. We can't do this in the // constructor since we don't know the type of the property we extracted // from the event then. // // action can be either a property or a method. Sun's docs seem to imply // that action should be treated as a property first, and then a method, // but don't specifically say it. // // XXX check what happens with native type wrappers. The better thing to // do is look at the return type of the method Method actionMethod; try { // Look for a property setter for action. actionMethod = target.getClass().getMethod("set" + capitalize(action), new Class[] {propertyType}); } catch (NoSuchMethodException e) { // If action as property didn't work, try as method. try { actionMethod = target.getClass().getMethod(action, new Class[] {propertyType}); } catch (NoSuchMethodException e1) { // When event property is null, we may call action with no args if (property == null) { actionMethod = target.getClass().getMethod(action, null); return actionMethod.invoke(target, null); } else throw e1; } } // Invoke target.action(property) return actionMethod.invoke(target, new Object[] {val}); } | 25337 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25337/4560ec84d1941b7d1dc387ca2fa2087617053271/EventHandler.java/buggy/libjava/java/beans/EventHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
4356,
12,
921,
2889,
16,
2985,
707,
16,
1033,
8526,
1775,
13,
565,
1216,
1185,
225,
288,
565,
368,
2256,
732,
6013,
1608,
326,
2889,
35,
565,
309,
261,
2039,
422,
446,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
4356,
12,
921,
2889,
16,
2985,
707,
16,
1033,
8526,
1775,
13,
565,
1216,
1185,
225,
288,
565,
368,
2256,
732,
6013,
1608,
326,
2889,
35,
565,
309,
261,
2039,
422,
446,
13,
... |
public void informations_colis1() { String barre_code,temp=""; int Ok=0; // Tant que le code barre saisi n'est pas valide ou null ( pour la cration d'un nouveau colis) //On affiche la fenetre douchette do{ barre_code = douchette(); temp = barre_code; AccesBDDColis rechercher_colis=new AccesBDDColis(); AccesBDDChargement rechercher_chargement=new AccesBDDChargement(); //Si on veut crer un nouveau colis if (barre_code==null || barre_code.length()==0) { col = new Colis(); Ok = 1; } //Si on veut chercher un colis ou un chargement dans la Bdd else{ try{ new Integer(temp.trim()); int i = Integer.parseInt(temp); try { //on cherche un colis dans la Bdd col = rechercher_colis.rechercherCode_barre(i); //Si le colis existe on quitte la boucle if(col!=null){ Ok =1; } //Si le code barre n'existe pas, on va rechercher un chargement else{ //charg = rechercher_chargement. //Si il n'existe ni colis ni chargement avec ce code barre : JOptionPane.showMessageDialog(this,"Le code barre ne correspond aucun colis ou chargement.","Message d'avertissement",JOptionPane.ERROR_MESSAGE); } } catch (SQLException e) { e.printStackTrace(); } } //Si le code barre n'est pas un chiffre catch(NumberFormatException e){ JOptionPane.showMessageDialog(this,"Le code barre ne correspond aucun colis ou chargement.","Message d'avertissement",JOptionPane.ERROR_MESSAGE); } } }while(Ok == 0); // tant que le code barre n'est pas valide ou null //On reaffiche tout le contenu graphique contenu.removeAll(); contenu.validate(); create_graphique(); contenu.validate(); repaint(); int de; String id=""; int error = 1; //On va chercher les colis prsents dans le chargement( Si un chargement a dja t rentr) ajout_chargement(); //Si on veut saisir un nouveau colis. if (col.getCode_barre()==null) { //cration du code barre do{ for (int i = 0; i< 9;i++) { Random r = new Random(); de = r.nextInt(10); id = id + de; } }while(error==0); // On affiche toutes les donnes vierges create = 0; informations_vierge(); code_barre.setText(id); date_envoie.setText(new Timestamp(System.currentTimeMillis()).toLocaleString()); } //Si on vrifie un colis else { create = 1; code_barre.setEnabled(false); code_barre.setText(col.getCode_barre()); forme_colis.setEnabled(false); modele_colis.setEnabled(false); fragilite_colis.setEnabled(false); fragilite_colis.setSelectedIndex(col.getFragilite().intValue()); largeur.setEnabled(false); hauteur.setEnabled(false); profondeur.setEnabled(false); poids.setEnabled(false); poids.setText(col.getPoids().toString()); date_envoie.setEnabled(false); date_envoie.setText(col.getDate().toLocaleString()); donnees_dest.setEnabled(false); donnees_exp.setEnabled(false); voir_incident.setVisible(true); //On rcupre les infos dans la Bdd et on les affiche // On cherche les infos sur le modle du colis AccesBDDModelesColis test3=new AccesBDDModelesColis(); try{ modelecolis = test3.rechercher(col.getModele().getId()); } catch(SQLException e2){ System.out.println(e2.getMessage()); } //On affiche les infos sur le modle de colis forme_colis.setSelectedIndex(modelecolis.getForme().intValue()); modele_colis.setEnabled(false); modele_colis.setSelectedIndex(modelecolis.getModele().intValue()); largeur.setText(modelecolis.getLargeur().toString()); hauteur.setText(modelecolis.getHauteur().toString()); profondeur.setText(modelecolis.getProfondeur().toString()); //On cherche les infos sur le destinataire AccesBDDPersonne test1=new AccesBDDPersonne(); try{ destinataire = test1.rechercher(col.getDestinataire().getId()); } catch(SQLException e2){ System.out.println(e2.getMessage()); } //On cherche les infos sur l'adresse du destinataire AccesBDDLocalisation test2=new AccesBDDLocalisation(); try{ localisation1 = test2.rechercher(destinataire.getLocalisation().getId()); } catch(SQLException e2){ System.out.println(e2.getMessage()); } //On affiche les donnes du destinataire donnees_dest.setText(destinataire.getNom()+ " "+ destinataire.getPrenom()+ "\n"+ localisation1.getAdresse()+ "\n"+ localisation1.getCodePostal()+ " "+ localisation1.getVille()+ "\n"+destinataire.getMail()); //On cherche les infos sur l'expditeur try{ expediteur = test1.rechercher(col.getExpediteur().getId()); } catch(SQLException e2){ System.out.println(e2.getMessage()); } //On cherche les infos sur l'adresse de l'expditeur try{ localisation2 = test2.rechercher(expediteur.getLocalisation().getId()); } catch(SQLException e2){ System.out.println(e2.getMessage()); } //On affiche les infos de l'expditeur donnees_exp.setText(expediteur.getNom()+ " "+ expediteur.getPrenom()+ "\n"+ localisation2.getAdresse()+ "\n"+ localisation2.getCodePostal()+ " "+ localisation2.getVille()+ "\n"+expediteur.getMail()); //On liste les incidents qu'il y a eu sur le colis Vector liste_incidents = new Vector(); AccesBDDIncident test5=new AccesBDDIncident(); try { liste_incidents = test5.lister_colis(col.getId()); //On ajoute les incidents dans le tableau for(int i=0;i<liste_incidents.size();i++){ ajouterInc((Incident)liste_incidents.get(i)); } } catch (SQLException e) { e.printStackTrace(); } } contenu.validate(); } | 56849 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56849/fb14221fa03714ffa15dc712c2d4898144af5e42/Entree_Fenetre_colis.java/buggy/trunk/ihm/entree/Entree_Fenetre_colis.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6459,
267,
687,
1012,
67,
1293,
291,
21,
1435,
202,
95,
202,
202,
780,
3215,
266,
67,
710,
16,
5814,
1546,
14432,
202,
202,
474,
8809,
33,
20,
31,
202,
202,
759,
56,
970,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6459,
267,
687,
1012,
67,
1293,
291,
21,
1435,
202,
95,
202,
202,
780,
3215,
266,
67,
710,
16,
5814,
1546,
14432,
202,
202,
474,
8809,
33,
20,
31,
202,
202,
759,
56,
970,
... | ||
}}); | } | public void widgetDisposed(DisposeEvent e) { if (!treeIsDisposed) { Object data = item.getData(); if (usingElementMap() && data != null) { unmapElement(data, item); } } }}); | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/72b02dfa9a75652d45af68d329d447e0e8bbe40d/TreeViewer.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TreeViewer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
3604,
1669,
7423,
12,
1669,
4150,
1133,
425,
13,
288,
6862,
202,
430,
16051,
3413,
2520,
1669,
7423,
13,
288,
25083,
202,
921,
501,
273,
761,
18,
588,
751,
5621,
25083,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
3604,
1669,
7423,
12,
1669,
4150,
1133,
425,
13,
288,
6862,
202,
430,
16051,
3413,
2520,
1669,
7423,
13,
288,
25083,
202,
921,
501,
273,
761,
18,
588,
751,
5621,
25083,
... |
throw new GrouperShellException(eNSNF); | GrouperShell.error(i, eNSNF); | protected static Stem addStem( Interpreter i, String parent, String extn, String displayExtn ) throws GrouperShellException { try { GrouperSession s = GrouperShell.getSession(i); Stem nsP = null; if (parent == null) { nsP = StemFinder.findRootStem(s); } else { nsP = StemFinder.findByName(s, parent); } return nsP.addChildStem(extn, displayExtn); } catch (InsufficientPrivilegeException eIP) { throw new GrouperShellException(eIP); } catch (StemAddException eNSA) { throw new GrouperShellException(eNSA); } catch (StemNotFoundException eNSNF) { throw new GrouperShellException(eNSNF); } } // protected static Stem addStem(i, parent, extn, displayExtn) | 5235 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5235/30851413764c0ab36008f24bc8c626a632356f1c/StemHelper.java/clean/grouper/contrib/cdg/src/cdg/com/devclue/grouper/shell/StemHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
760,
348,
874,
527,
28771,
12,
565,
5294,
11599,
277,
16,
514,
982,
16,
514,
1110,
82,
16,
514,
2562,
2482,
82,
225,
262,
377,
1216,
225,
3756,
264,
13220,
503,
225,
288,
565,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
760,
348,
874,
527,
28771,
12,
565,
5294,
11599,
277,
16,
514,
982,
16,
514,
1110,
82,
16,
514,
2562,
2482,
82,
225,
262,
377,
1216,
225,
3756,
264,
13220,
503,
225,
288,
565,
7... |
return self.getRuntime().newString("tag:yaml.org,2002:map"); | String className = self.getType().getName(); if("Hash".equals(className)) { return self.getRuntime().newString("tag:yaml.org,2002:map"); } else { return self.getRuntime().newString("tag:yaml.org,2002:map:" + className); } | public IRubyObject method1(ThreadContext context, IRubyObject self, IRubyObject[] args) { return self.getRuntime().newString("tag:yaml.org,2002:map"); } | 45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/121d8287e0a8d27aa18bbefd10a9ebf08fe51d8d/RubyYAML.java/clean/src/org/jruby/RubyYAML.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
15908,
10340,
921,
707,
21,
12,
3830,
1042,
819,
16,
15908,
10340,
921,
365,
16,
15908,
10340,
921,
8526,
833,
13,
288,
5411,
514,
2658,
273,
365,
18,
588,
559,
7675,
17994,
5621,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
15908,
10340,
921,
707,
21,
12,
3830,
1042,
819,
16,
15908,
10340,
921,
365,
16,
15908,
10340,
921,
8526,
833,
13,
288,
5411,
514,
2658,
273,
365,
18,
588,
559,
7675,
17994,
5621,
... |
interpreter.evaluate(reader); | interpreter.evaluate(reader, desc); | public void loadScripts() { org.apache.batik.script.Window window = null; NodeList scripts = document.getElementsByTagNameNS (SVGConstants.SVG_NAMESPACE_URI, SVGConstants.SVG_SCRIPT_TAG); int len = scripts.getLength(); if (len == 0) { return; } Set languages = new HashSet(); for (int i = 0; i < len; i++) { Element script = (Element)scripts.item(i); String type = script.getAttributeNS (null, SVGConstants.SVG_TYPE_ATTRIBUTE); if (type.length() == 0) { type = SVGConstants.SVG_SCRIPT_TYPE_DEFAULT_VALUE; } // // Java code invocation. // if (type.equals(SVGConstants.SVG_SCRIPT_TYPE_JAVA)) { try { String href = XLinkSupport.getXLinkHref(script); ParsedURL purl = new ParsedURL (XMLBaseSupport.getCascadedXMLBase(script), href); checkCompatibleScriptURL(type, purl); DocumentJarClassLoader cll; URL docURL = null; try { docURL = new URL(docPURL.toString()); } catch (MalformedURLException mue) { /* nothing just let docURL be null */ } cll = new DocumentJarClassLoader (new URL(purl.toString()), docURL); // Get the 'Script-Handler' entry in the manifest. URL url = cll.findResource("META-INF/MANIFEST.MF"); if (url == null) { continue; } Manifest man = new Manifest(url.openStream()); String sh; sh = man.getMainAttributes().getValue("Script-Handler"); if (sh == null) { continue; } // Run the script handler. ScriptHandler h; h = (ScriptHandler)cll.loadClass(sh).newInstance(); if (window == null) { window = createWindow(); } h.run(document, window); } catch (Exception e) { if (userAgent != null) { userAgent.displayError(e); } } continue; } // // Scripting language invocation. // Interpreter interpreter = bridgeContext.getInterpreter(type); if (interpreter == null) { UserAgent ua = bridgeContext.getUserAgent(); if (ua != null) { ua.displayError(new Exception("Unknown language: "+type)); } return; } if (!languages.contains(type)) { languages.add(type); initializeEnvironment(interpreter, type); } try { String href = XLinkSupport.getXLinkHref(script); Reader reader; if (href.length() > 0) { // External script. ParsedURL purl = new ParsedURL (XMLBaseSupport.getCascadedXMLBase(script), href); checkCompatibleScriptURL(type, purl); reader = new InputStreamReader(purl.openStream()); } else { // Inline script. Node n = script.getFirstChild(); if (n != null) { StringBuffer sb = new StringBuffer(); while (n != null) { sb.append(n.getNodeValue()); n = n.getNextSibling(); } reader = new StringReader(sb.toString()); } else { continue; } } interpreter.evaluate(reader); } catch (IOException e) { if (userAgent != null) { userAgent.displayError(e); } return; } catch (InterpreterException e) { handleInterpreterException(e); return; } catch (SecurityException e) { if (userAgent != null) { userAgent.displayError(e); } } } } | 45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/78c299529028b9eb1e15f01b8a7c676554b12d6a/BaseScriptingEnvironment.java/clean/sources/org/apache/batik/bridge/BaseScriptingEnvironment.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1262,
15041,
1435,
288,
3639,
2358,
18,
19211,
18,
28260,
1766,
18,
4263,
18,
3829,
2742,
273,
446,
31,
3639,
16781,
8873,
273,
1668,
18,
588,
3471,
10401,
3156,
5411,
261,
265... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1262,
15041,
1435,
288,
3639,
2358,
18,
19211,
18,
28260,
1766,
18,
4263,
18,
3829,
2742,
273,
446,
31,
3639,
16781,
8873,
273,
1668,
18,
588,
3471,
10401,
3156,
5411,
261,
265... |
public IRubyObject specificEval(RubyModule mod, IRubyObject[] args) { ThreadContext tc = getRuntime().getCurrentContext(); if (tc.isBlockGiven()) { if (args.length > 0) { throw getRuntime().newArgumentError(args.length, 0); } return yieldUnder(mod); } if (args.length == 0) { throw getRuntime().newArgumentError("block not supplied"); } else if (args.length > 3) { String lastFuncName = tc.getFrameLastFunc(); throw getRuntime().newArgumentError( "wrong # of arguments: " + lastFuncName + "(src) or " + lastFuncName + "{..}"); } /* if (ruby.getSecurityLevel() >= 4) { Check_Type(argv[0], T_STRING); } else { Check_SafeStr(argv[0]); } */ IRubyObject file = args.length > 1 ? args[1] : getRuntime().newString("(eval)"); IRubyObject line = args.length > 2 ? args[2] : RubyFixnum.one(getRuntime()); Visibility savedVisibility = tc.getCurrentVisibility(); tc.setCurrentVisibility(Visibility.PUBLIC); try { return evalUnder(mod, args[0], file, line); } finally { tc.setCurrentVisibility(savedVisibility); } } | 47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
2923,
13904,
12,
54,
10340,
3120,
681,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
4884,
1042,
1715,
273,
18814,
7675,
588,
3935,
1042,
5621,
7734,
309,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
2923,
13904,
12,
54,
10340,
3120,
681,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
4884,
1042,
1715,
273,
18814,
7675,
588,
3935,
1042,
5621,
7734,
309,
261,
... | ||
if ( StringUtils.isEmpty( childScm.getDeveloperConnection() ) && !StringUtils.isEmpty( parentScm.getDeveloperConnection() ) ) | if ( StringUtils.isEmpty( childScm.getDeveloperConnection() ) && !StringUtils.isEmpty( parentScm.getDeveloperConnection() ) ) | public void assembleModelInheritance( Model child, Model parent ) { // Pom version if ( child.getModelVersion() == null ) { child.setModelVersion( parent.getModelVersion() ); } // Group id if ( child.getGroupId() == null ) { child.setGroupId( parent.getGroupId() ); } // artifactId if ( child.getArtifactId() == null ) { child.setArtifactId( parent.getArtifactId() ); } // name if ( child.getName() == null ) { child.setName( parent.getName() ); } // currentVersion if ( child.getVersion() == null ) { child.setVersion( parent.getVersion() ); } // inceptionYear if ( child.getInceptionYear() == null ) { child.setInceptionYear( parent.getInceptionYear() ); } // Name if ( child.getPackage() == null ) { child.setPackage( parent.getPackage() ); } // url if ( child.getUrl() == null ) { child.setUrl( parent.getUrl() ); } // ---------------------------------------------------------------------- // Distribution // ---------------------------------------------------------------------- if ( child.getDistributionManagement() == null ) { child.setDistributionManagement( parent.getDistributionManagement() ); } // issueManagement if ( child.getIssueManagement() == null ) { child.setIssueManagement( parent.getIssueManagement() ); } // Short description if ( child.getShortDescription() == null ) { child.setShortDescription( parent.getShortDescription() ); } // Short description if ( child.getDescription() == null ) { child.setDescription( parent.getDescription() ); } // Organization if ( child.getOrganization() == null ) { child.setOrganization( parent.getOrganization() ); } // Scm if ( parent.getScm() != null ) { Scm parentScm = parent.getScm(); Scm childScm = child.getScm(); if ( childScm == null ) { childScm = new Scm(); child.setScm( childScm ); } if ( StringUtils.isEmpty( childScm.getConnection() ) && !StringUtils.isEmpty( parentScm.getConnection() ) ) { childScm.setConnection( parentScm.getConnection() + "/" + child.getArtifactId() ); } if ( StringUtils.isEmpty( childScm.getDeveloperConnection() ) && !StringUtils.isEmpty( parentScm.getDeveloperConnection() ) ) { childScm.setDeveloperConnection( parentScm.getDeveloperConnection() + "/" + child.getArtifactId() ); } if ( StringUtils.isEmpty( childScm.getUrl() ) ) { childScm.setUrl( parentScm.getUrl() ); } if ( parentScm.getBranches() != null ) { childScm.getBranches().addAll( parentScm.getBranches() ); } } // ciManagement if ( child.getCiManagement() == null ) { child.setCiManagement( parent.getCiManagement() ); } // developers if ( child.getDevelopers().size() == 0 ) { child.setDevelopers( parent.getDevelopers() ); } // developers if ( child.getContributors().size() == 0 ) { child.setContributors( parent.getContributors() ); } // mailingLists if ( child.getMailingLists().size() == 0 ) { child.setMailingLists( parent.getMailingLists() ); } // reports if ( child.getReports().size() == 0 ) { child.setReports( parent.getReports() ); } // Build if ( child.getBuild() == null ) { child.setBuild( parent.getBuild() ); } else { // The build has been set but we want to step in here and fill in // values // that have not been set by the child. if ( child.getBuild().getDirectory() == null ) { child.getBuild().setDirectory( parent.getBuild().getDirectory() ); } if ( child.getBuild().getSourceDirectory() == null ) { child.getBuild().setSourceDirectory( parent.getBuild().getSourceDirectory() ); } if ( child.getBuild().getUnitTestSourceDirectory() == null ) { child.getBuild().setUnitTestSourceDirectory( parent.getBuild().getUnitTestSourceDirectory() ); } if ( child.getBuild().getAspectSourceDirectory() == null ) { child.getBuild().setAspectSourceDirectory( parent.getBuild().getAspectSourceDirectory() ); } if ( child.getBuild().getOutput() == null ) { child.getBuild().setOutput( parent.getBuild().getOutput() ); } if ( child.getBuild().getTestOutput() == null ) { child.getBuild().setTestOutput( parent.getBuild().getTestOutput() ); } List resources = child.getBuild().getResources(); if ( resources == null || resources.isEmpty() ) { child.getBuild().setResources( parent.getBuild().getResources() ); } if ( child.getBuild().getUnitTest() == null ) { child.getBuild().setUnitTest( parent.getBuild().getUnitTest() ); } else { if ( child.getBuild().getUnitTest().getIncludes().size() == 0 ) { child.getBuild().getUnitTest().setIncludes( parent.getBuild().getUnitTest().getIncludes() ); } if ( child.getBuild().getUnitTest().getExcludes().size() == 0 ) { child.getBuild().getUnitTest().setExcludes( parent.getBuild().getUnitTest().getExcludes() ); } List testResources = child.getBuild().getUnitTest().getResources(); if ( testResources == null || testResources.isEmpty() ) { child.getBuild().getUnitTest().setResources( parent.getBuild().getUnitTest().getResources() ); } } } // Dependencies :: aggregate List dependencies = parent.getDependencies(); for ( Iterator iterator = dependencies.iterator(); iterator.hasNext(); ) { Dependency dependency = (Dependency) iterator.next(); child.addDependency( dependency ); } // PreGoals :: aggregate List preGoals = parent.getPreGoals(); for ( Iterator iterator = preGoals.iterator(); iterator.hasNext(); ) { PreGoal preGoal = (PreGoal) iterator.next(); child.addPreGoal( preGoal ); } // PostGoals :: aggregate List postGoals = parent.getPostGoals(); for ( Iterator iterator = postGoals.iterator(); iterator.hasNext(); ) { PostGoal postGoal = (PostGoal) iterator.next(); child.addPostGoal( postGoal ); } // Repositories :: aggregate List parentRepositories = parent.getRepositories(); List childRepositories = child.getRepositories(); for ( Iterator iterator = parentRepositories.iterator(); iterator.hasNext(); ) { Repository repository = (Repository) iterator.next(); if ( !childRepositories.contains( repository ) ) { child.addRepository( repository ); } } // Plugins :: aggregate List parentPlugins = parent.getPlugins(); List childPlugins = child.getPlugins(); for ( Iterator iterator = parentPlugins.iterator(); iterator.hasNext(); ) { Plugin plugin = (Plugin) iterator.next(); if ( !childPlugins.contains( plugin ) ) { child.addPlugin( plugin ); } } DependencyManagement parentDepMgmt = parent.getDependencyManagement(); DependencyManagement childDepMgmt = child.getDependencyManagement(); if(parentDepMgmt != null) { if(childDepMgmt == null) { child.setDependencyManagement(parentDepMgmt); } else { List parentDeps = parentDepMgmt.getDependencies(); Map mappedParentDeps = new TreeMap(); for ( Iterator it = parentDeps.iterator(); it.hasNext(); ) { Dependency dep = (Dependency) it.next(); mappedParentDeps.put(dep.getManagementKey(), dep); } List deps = new ArrayList(parentDeps); for ( Iterator it = childDepMgmt.getDependencies().iterator(); it.hasNext(); ) { Dependency dep = (Dependency) it.next(); if(!mappedParentDeps.containsKey(dep.getManagementKey())) { deps.add(dep); } } childDepMgmt.setDependencies(deps); } } } | 48791 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48791/2ce3a6cbde640081b1a8892e57498b24f5baa1ba/DefaultModelInheritanceAssembler.java/buggy/maven-core/src/main/java/org/apache/maven/project/inheritance/DefaultModelInheritanceAssembler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
19540,
1488,
28255,
12,
3164,
1151,
16,
3164,
982,
262,
565,
288,
3639,
368,
453,
362,
1177,
3639,
309,
261,
1151,
18,
588,
1488,
1444,
1435,
422,
446,
262,
3639,
288,
5411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19540,
1488,
28255,
12,
3164,
1151,
16,
3164,
982,
262,
565,
288,
3639,
368,
453,
362,
1177,
3639,
309,
261,
1151,
18,
588,
1488,
1444,
1435,
422,
446,
262,
3639,
288,
5411,
... |
refArray[i] = new Editor(); | refArray[i] = new InnerEditor(ref, inputArray[i], descArray[i]); | private IEditorReference[] openMultiEditor(final IEditorReference ref, final MultiEditor part, final EditorDescriptor desc, final MultiEditorInput input, final boolean setVisible) throws PartInitException { String[] editorArray = input.getEditors(); IEditorInput[] inputArray = input.getInput(); //find all descriptors EditorDescriptor[] descArray = new EditorDescriptor[editorArray.length]; IEditorReference refArray[] = new IEditorReference[editorArray.length]; IEditorPart partArray[] = new IEditorPart[editorArray.length]; IEditorRegistry reg = getEditorRegistry(); for (int i = 0; i < editorArray.length; i++) { EditorDescriptor innerDesc = (EditorDescriptor) reg .findEditor(editorArray[i]); if (innerDesc == null) throw new PartInitException( NLS.bind(WorkbenchMessages.EditorManager_unknownEditorIDMessage, editorArray[i] )); descArray[i] = innerDesc; partArray[i] = createPart(descArray[i]); refArray[i] = new Editor(); createSite(ref, partArray[i], descArray[i], inputArray[i]); ((Editor) refArray[i]).setPart(partArray[i]); } part.setChildren(partArray); return refArray; } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/e63fb57c60e1285097cb8d21d56f8acdff80e7de/EditorManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
467,
6946,
2404,
8526,
1696,
5002,
6946,
12,
6385,
467,
6946,
2404,
1278,
16,
5411,
727,
5991,
6946,
1087,
16,
727,
18451,
3187,
3044,
16,
5411,
727,
5991,
6946,
1210,
810,
16,
727,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
6946,
2404,
8526,
1696,
5002,
6946,
12,
6385,
467,
6946,
2404,
1278,
16,
5411,
727,
5991,
6946,
1087,
16,
727,
18451,
3187,
3044,
16,
5411,
727,
5991,
6946,
1210,
810,
16,
727,... |
if ( _cnt518>=1 ) { break _loop518; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());} | if ( _cnt520>=1 ) { break _loop520; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());} | protected final void mS(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { int _ttype; Token _token=null; int _begin=text.length(); _ttype = S; int _saveIndex; { int _cnt518=0; _loop518: do { if ((LA(1)=='\t'||LA(1)=='\n'||LA(1)=='\r'||LA(1)==' ')) { { switch ( LA(1)) { case ' ': { match(' '); break; } case '\n': { match('\n'); break; } case '\r': { match('\r'); break; } case '\t': { match('\t'); break; } default: { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } } } else { if ( _cnt518>=1 ) { break _loop518; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());} } _cnt518++; } while (true); } if ( _createToken && _token==null && _ttype!=Token.SKIP ) { _token = makeToken(_ttype); _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); } _returnToken = _token; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/ce8b3af89ca1836e7de5c4b3c7110a9e9001a4e4/XQueryLexer.java/clean/src/org/exist/xquery/parser/XQueryLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
918,
312,
55,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
33,
2011,
31,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
918,
312,
55,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
33,
2011,
31,... |
myCellRole = "" + (myCell.getUserObject(EditorCell.ROLE)); | myCellRole = "" + (EditorUtil.getCellRole(myCell)); | public CellProperties(EditorCell cell) { myCell = cell; myCellText = null; if (myCell instanceof EditorCell_Label) { myCellText = ((EditorCell_Label) myCell).getText(); if (myCellText == null || myCellText.length() == 0) myCellText = ((EditorCell_Label) myCell).getNullText(); } myCellKind = NameUtil.shortNameFromLongName(myCell.getClass().getName()); myCellWidth = myCell.getWidth() + ""; myCellHeight = myCell.getHeight() + ""; myCellEffectiveWidth = myCell.getEffectiveWidth() + ""; myRootCell = (myCell.getEditorContext().getNodeEditorComponent().getRootCell() == myCell)?"Yes":"No"; myCellID = (String) (myCell.getUserObject(EditorCell.CELL_ID)); myCellNumber = "" + (myCell.getUserObject(EditorCell.NUMBER)); myCellRole = "" + (myCell.getUserObject(EditorCell.ROLE)); mySNode = myCell.getSNode(); String name = mySNode.getName(); name = name != null ? name : "<no name>"; myCellSNode = mySNode == null ? "no node" : name + " (" + mySNode.getConceptName() + ") [" + mySNode.getId() + "]"; } | 14939 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14939/9a64b03ddb77be6e5541ba7fba2ab4c3bcd0ee92/CellProperties.java/buggy/source/jetbrains/mps/nodeEditor/CellProperties.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
8614,
2297,
12,
6946,
4020,
2484,
13,
288,
565,
3399,
4020,
273,
2484,
31,
565,
3399,
4020,
1528,
273,
446,
31,
565,
309,
261,
4811,
4020,
1276,
18451,
4020,
67,
2224,
13,
288,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
8614,
2297,
12,
6946,
4020,
2484,
13,
288,
565,
3399,
4020,
273,
2484,
31,
565,
3399,
4020,
1528,
273,
446,
31,
565,
309,
261,
4811,
4020,
1276,
18451,
4020,
67,
2224,
13,
288,
13... |
public ChargeAttackAction(int entityId, int targetType, int targetId, Coords targetPos) { super(entityId, targetType, targetId, targetPos); | public ChargeAttackAction(Entity attacker, Targetable target) { this(attacker.getId(), target.getTargetType(), target.getTargetId(), target.getPosition()); | public ChargeAttackAction(int entityId, int targetType, int targetId, Coords targetPos) { super(entityId, targetType, targetId, targetPos); } | 4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/03092122adb113d090a52ecdde7d904aa84ea147/ChargeAttackAction.java/buggy/megamek/src/megamek/common/actions/ChargeAttackAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3703,
908,
3075,
484,
1803,
12,
474,
15052,
16,
509,
16065,
16,
509,
27729,
16,
10320,
87,
1018,
1616,
13,
288,
3639,
2240,
12,
1096,
548,
16,
16065,
16,
27729,
16,
1018,
1616,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3703,
908,
3075,
484,
1803,
12,
474,
15052,
16,
509,
16065,
16,
509,
27729,
16,
10320,
87,
1018,
1616,
13,
288,
3639,
2240,
12,
1096,
548,
16,
16065,
16,
27729,
16,
1018,
1616,
17... |
ivRenderer.ungroupPrimitive(tre, true); | ivRenderer.ungroupPrimitive( tre, true ); | public void drawText( TextRenderEvent tre ) throws ChartException { ivRenderer.groupPrimitive(tre, true); SVGTextRenderer tr = SVGTextRenderer.instance( (SVGDisplayServer) _ids ); switch ( tre.getAction( ) ) { case TextRenderEvent.UNDEFINED : throw new ChartException( ChartDeviceExtensionPlugin.ID, ChartException.RENDERING, "exception.missing.text.render.action", //$NON-NLS-1$ Messages.getResourceBundle( getULocale( ) ) ); case TextRenderEvent.RENDER_SHADOW_AT_LOCATION : tr.renderShadowAtLocation( this, tre.getTextPosition( ), tre.getLocation( ), tre.getLabel( ) ); break; case TextRenderEvent.RENDER_TEXT_AT_LOCATION : tr.renderTextAtLocation( this, tre.getTextPosition( ), tre.getLocation( ), tre.getLabel( ) ); break; case TextRenderEvent.RENDER_TEXT_IN_BLOCK : tr.renderTextInBlock( this, tre.getBlockBounds( ), tre.getBlockAlignment( ), tre.getLabel( ) ); break; } ivRenderer.ungroupPrimitive(tre, true); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/1cb055a94d0be6592f772701e9d73d66322c6253/SVGRendererImpl.java/buggy/chart/org.eclipse.birt.chart.device.svg/src/org/eclipse/birt/chart/device/svg/SVGRendererImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3724,
1528,
12,
3867,
3420,
1133,
9787,
262,
1216,
14804,
503,
202,
95,
202,
202,
427,
6747,
18,
1655,
9840,
12,
27427,
16,
638,
1769,
202,
202,
26531,
1528,
6747,
433,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3724,
1528,
12,
3867,
3420,
1133,
9787,
262,
1216,
14804,
503,
202,
95,
202,
202,
427,
6747,
18,
1655,
9840,
12,
27427,
16,
638,
1769,
202,
202,
26531,
1528,
6747,
433,
2... |
return valueMap.entrySet().iterator(); | return new ArrayList(valueMap.entrySet()).iterator(); | private Iterator entryIterator() { //return new ArrayList(valueMap.entrySet()).iterator(); //in general we either want to modify the map or make sure we don't when we use this, so skip the copy return valueMap.entrySet().iterator(); } | 45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/ca0297671a9134bbd35c936224da11609c37fa62/RubyHash.java/clean/org/jruby/RubyHash.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
4498,
1241,
3198,
1435,
288,
202,
202,
759,
2463,
394,
2407,
12,
1132,
863,
18,
4099,
694,
1435,
2934,
9838,
5621,
202,
202,
759,
267,
7470,
732,
3344,
2545,
358,
5612,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
4498,
1241,
3198,
1435,
288,
202,
202,
759,
2463,
394,
2407,
12,
1132,
863,
18,
4099,
694,
1435,
2934,
9838,
5621,
202,
202,
759,
267,
7470,
732,
3344,
2545,
358,
5612,
326,
... |
super.performDefaults(); } | IPreferenceStore store = getIDEPreferenceStore(); autoSaveAllButton .setSelection(store .getDefaultBoolean(IDEInternalPreferences.SAVE_ALL_BEFORE_BUILD)); refreshButton .setSelection(store .getDefaultBoolean(IDEInternalPreferences.REFRESH_WORKSPACE_ON_STARTUP)); launchPromptButton.setSelection(true); exitPromptButton .setSelection(store .getDefaultBoolean(IDEInternalPreferences.EXIT_PROMPT_ON_CLOSE_LAST_WINDOW)); showTasks.setSelection(store .getBoolean(IDEInternalPreferences.SHOW_TASKS_ON_BUILD)); saveInterval.loadDefault(); boolean autoRefresh = ResourcesPlugin.getPlugin().getPluginPreferences().getDefaultBoolean( ResourcesPlugin.PREF_AUTO_REFRESH); autoRefreshButton.setSelection(autoRefresh); super.performDefaults(); } | protected void performDefaults() { // core holds onto this preference. boolean autoBuild = ResourcesPlugin.getPlugin().getPluginPreferences().getDefaultBoolean(ResourcesPlugin.PREF_AUTO_BUILDING); autoBuildButton.setSelection(autoBuild); IPreferenceStore store = getIDEPreferenceStore(); autoSaveAllButton.setSelection(store.getDefaultBoolean(IDEInternalPreferences.SAVE_ALL_BEFORE_BUILD)); refreshButton.setSelection(store.getDefaultBoolean(IDEInternalPreferences.REFRESH_WORKSPACE_ON_STARTUP)); launchPromptButton.setSelection(true); exitPromptButton.setSelection(store.getDefaultBoolean(IDEInternalPreferences.EXIT_PROMPT_ON_CLOSE_LAST_WINDOW)); showTasks.setSelection(store.getBoolean(IDEInternalPreferences.SHOW_TASKS_ON_BUILD)); saveInterval.loadDefault(); super.performDefaults(); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/d9f077f11edb05a527f887adc8741e37bc3a1982/IDEWorkbenchPreferencePage.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/IDEWorkbenchPreferencePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
3073,
7019,
1435,
288,
202,
202,
759,
2922,
14798,
10170,
333,
11555,
18,
202,
202,
6494,
3656,
3116,
273,
8128,
3773,
18,
588,
3773,
7675,
588,
3773,
12377,
7675,
588,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
3073,
7019,
1435,
288,
202,
202,
759,
2922,
14798,
10170,
333,
11555,
18,
202,
202,
6494,
3656,
3116,
273,
8128,
3773,
18,
588,
3773,
7675,
588,
3773,
12377,
7675,
588,
18... |
if (WorkbenchActivityHelper.filterItem(viewDescriptor)) return null; | if (WorkbenchActivityHelper.filterItem(viewDescriptor)) { return null; } | private LayoutPart createView(String partID) throws PartInitException { if (partID.equals(ID_EDITOR_AREA)) { return editorFolder; } IViewDescriptor viewDescriptor = viewFactory.getViewRegistry() .find(ViewFactory.extractPrimaryId(partID)); if (WorkbenchActivityHelper.filterItem(viewDescriptor)) return null; return LayoutHelper.createView(getViewFactory(), partID); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/PageLayout.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PageLayout.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
9995,
1988,
15193,
12,
780,
1087,
734,
13,
1216,
6393,
2570,
503,
288,
3639,
309,
261,
2680,
734,
18,
14963,
12,
734,
67,
13208,
67,
20933,
3719,
288,
5411,
327,
4858,
3899,
31,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
9995,
1988,
15193,
12,
780,
1087,
734,
13,
1216,
6393,
2570,
503,
288,
3639,
309,
261,
2680,
734,
18,
14963,
12,
734,
67,
13208,
67,
20933,
3719,
288,
5411,
327,
4858,
3899,
31,
3... |
null, "setOnmousemove"); | null, "setOnmousemoveExpr"); | public PropertyDescriptor[] getPropertyDescriptors() { PropertyDescriptor[] result = new PropertyDescriptor[26]; try { result[0] = new PropertyDescriptor("accesskey", ELSubmitTag.class, null, "setAccesskey"); result[1] = new PropertyDescriptor("alt", ELSubmitTag.class, null, "setAlt"); result[2] = new PropertyDescriptor("altKey", ELSubmitTag.class, null, "setAltKey"); // This attribute has a non-standard mapping. result[3] = new PropertyDescriptor("disabled", ELSubmitTag.class, null, "setDisabledExpr"); // This attribute has a non-standard mapping. result[4] = new PropertyDescriptor("indexed", ELSubmitTag.class, null, "setIndexedExpr"); result[5] = new PropertyDescriptor("onblur", ELSubmitTag.class, null, "setOnblur"); result[6] = new PropertyDescriptor("onchange", ELSubmitTag.class, null, "setOnchange"); result[7] = new PropertyDescriptor("onclick", ELSubmitTag.class, null, "setOnclick"); result[8] = new PropertyDescriptor("ondblclick", ELSubmitTag.class, null, "setOndblclick"); result[9] = new PropertyDescriptor("onfocus", ELSubmitTag.class, null, "setOnfocus"); result[10] = new PropertyDescriptor("onkeydown", ELSubmitTag.class, null, "setOnkeydown"); result[11] = new PropertyDescriptor("onkeypress", ELSubmitTag.class, null, "setOnkeypress"); result[12] = new PropertyDescriptor("onkeyup", ELSubmitTag.class, null, "setOnkeyup"); result[13] = new PropertyDescriptor("onmousedown", ELSubmitTag.class, null, "setOnmousedown"); result[14] = new PropertyDescriptor("onmousemove", ELSubmitTag.class, null, "setOnmousemove"); result[15] = new PropertyDescriptor("onmouseout", ELSubmitTag.class, null, "setOnmouseout"); result[16] = new PropertyDescriptor("onmouseover", ELSubmitTag.class, null, "setOnmouseover"); result[17] = new PropertyDescriptor("onmouseup", ELSubmitTag.class, null, "setOnmouseup"); result[18] = new PropertyDescriptor("property", ELSubmitTag.class, null, "setProperty"); result[19] = new PropertyDescriptor("style", ELSubmitTag.class, null, "setStyle"); result[20] = new PropertyDescriptor("styleClass", ELSubmitTag.class, null, "setStyleClass"); result[21] = new PropertyDescriptor("styleId", ELSubmitTag.class, null, "setStyleId"); result[22] = new PropertyDescriptor("tabindex", ELSubmitTag.class, null, "setTabindex"); result[23] = new PropertyDescriptor("title", ELSubmitTag.class, null, "setTitle"); result[24] = new PropertyDescriptor("titleKey", ELSubmitTag.class, null, "setTitleKey"); result[25] = new PropertyDescriptor("value", ELSubmitTag.class, null, "setValue"); } catch (IntrospectionException ex) { ex.printStackTrace(); } return (result); } | 2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/db064e19656421b94aaf753550935d95f44bd5f9/ELSubmitTagBeanInfo.java/clean/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELSubmitTagBeanInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
225,
26761,
8526,
3911,
12705,
1435,
565,
288,
3639,
26761,
8526,
225,
563,
282,
273,
394,
26761,
63,
5558,
15533,
3639,
775,
288,
5411,
563,
63,
20,
65,
273,
394,
26761,
2932,
3860... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
26761,
8526,
3911,
12705,
1435,
565,
288,
3639,
26761,
8526,
225,
563,
282,
273,
394,
26761,
63,
5558,
15533,
3639,
775,
288,
5411,
563,
63,
20,
65,
273,
394,
26761,
2932,
3860... |
myPrefetchingRelationshipKeyPaths = new PropertyListSet(); | myPrefetchingRelationshipKeyPaths = new TreeSet(); | public void removePrefetchingRelationshipKeyPath(String _prefetchingRelationshipKeyPath, boolean _fireEvents) { if (_fireEvents) { Set oldPrefetchingRelationshipKeyPaths = myPrefetchingRelationshipKeyPaths; if (oldPrefetchingRelationshipKeyPaths != null) { myPrefetchingRelationshipKeyPaths = new PropertyListSet(); myPrefetchingRelationshipKeyPaths.addAll(oldPrefetchingRelationshipKeyPaths); myPrefetchingRelationshipKeyPaths.remove(_prefetchingRelationshipKeyPath); } firePropertyChange(EOFetchSpecification.PREFETCHING_RELATIONSHIP_KEY_PATHS, oldPrefetchingRelationshipKeyPaths, myPrefetchingRelationshipKeyPaths); } else { myPrefetchingRelationshipKeyPaths.remove(_prefetchingRelationshipKeyPath); } } | 47899 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47899/8124a2eab3b65cb02a74dc08a8def0fb75ca9f7d/EOFetchSpecification.java/clean/wolips/plugins/org.objectstyle.wolips.eomodeler/java/org/objectstyle/wolips/eomodeler/model/EOFetchSpecification.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1206,
25591,
310,
8180,
653,
743,
12,
780,
389,
1484,
5754,
310,
8180,
653,
743,
16,
1250,
389,
12179,
3783,
13,
288,
565,
309,
261,
67,
12179,
3783,
13,
288,
1377,
1000,
159... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1206,
25591,
310,
8180,
653,
743,
12,
780,
389,
1484,
5754,
310,
8180,
653,
743,
16,
1250,
389,
12179,
3783,
13,
288,
565,
309,
261,
67,
12179,
3783,
13,
288,
1377,
1000,
159... |
Tile tile = event.getTile(); if (tile != null) { editor.setCurrentTile(tile); } | editor.setCurrentTile(event.getTile()); | public void tileSelected(TileSelectionEvent event) { Tile tile = event.getTile(); if (tile != null) { editor.setCurrentTile(tile); } } | 6621 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6621/8cf53681079451ebb6164f93f48bf0d706a1e200/TilePaletteDialog.java/clean/src/tiled/mapeditor/dialogs/TilePaletteDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4769,
7416,
12,
9337,
6233,
1133,
871,
13,
288,
3639,
13791,
4769,
273,
871,
18,
588,
9337,
5621,
3639,
309,
261,
15368,
480,
446,
13,
288,
5411,
4858,
18,
542,
3935,
9337,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4769,
7416,
12,
9337,
6233,
1133,
871,
13,
288,
3639,
13791,
4769,
273,
871,
18,
588,
9337,
5621,
3639,
309,
261,
15368,
480,
446,
13,
288,
5411,
4858,
18,
542,
3935,
9337,
1... |
case 3: { String s = yytext(); w.write(s); if(debug) log("Matched whitespace: "+s); } case 48: break; case 22: { String s = yytext(); if(debug) log("Ignoring unrecognizable url: "+s); w.write("/* Ignoring unmatchable URL */url()"); } case 49: break; case 27: | case 26: | public Yytoken yylex() throws java.io.IOException { int zzInput; int zzAction; // cached fields: int zzCurrentPosL; int zzMarkedPosL; int zzEndReadL = zzEndRead; char [] zzBufferL = zzBuffer; char [] zzCMapL = ZZ_CMAP; int [] zzTransL = ZZ_TRANS; int [] zzRowMapL = ZZ_ROWMAP; int [] zzAttrL = ZZ_ATTRIBUTE; while (true) { zzMarkedPosL = zzMarkedPos; zzAction = -1; zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL; zzState = zzLexicalState; zzForAction: { while (true) { if (zzCurrentPosL < zzEndReadL) zzInput = zzBufferL[zzCurrentPosL++]; else if (zzAtEOF) { zzInput = YYEOF; break zzForAction; } else { // store back cached positions zzCurrentPos = zzCurrentPosL; zzMarkedPos = zzMarkedPosL; boolean eof = zzRefill(); // get translated positions and possibly new buffer zzCurrentPosL = zzCurrentPos; zzMarkedPosL = zzMarkedPos; zzBufferL = zzBuffer; zzEndReadL = zzEndRead; if (eof) { zzInput = YYEOF; break zzForAction; } else { zzInput = zzBufferL[zzCurrentPosL++]; } } int zzNext = zzTransL[ zzRowMapL[zzState] + zzCMapL[zzInput] ]; if (zzNext == -1) break zzForAction; zzState = zzNext; int zzAttributes = zzAttrL[zzState]; if ( (zzAttributes & 1) == 1 ) { zzAction = zzState; zzMarkedPosL = zzCurrentPosL; if ( (zzAttributes & 8) == 8 ) break zzForAction; } } } // store back cached position zzMarkedPos = zzMarkedPosL; switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) { case 18: { String s = yytext(); w.write(s); if(debug) log("Matched unicode: "+s); } case 31: break; case 8: { String s = yytext(); w.write(s); if(debug) log("Matched close braces: "+s); } case 32: break; case 21: { String s = yytext(); w.write(s); if(debug) log("Matched HTML comment: "+s); } case 33: break; case 15: { String s = yytext(); w.write(s); if(debug) log("Matched ~=: "+s); } case 34: break; case 12: { String s = yytext(); if(debug) log("Matched string: "+s); if(paranoidStringCheck && s.indexOf(':') != -1) { w.write("/* Deleted disallowed string */"); log("Deleted disallowed string: "+s); } else { w.write(s); } } case 35: break; case 24: { String s = yytext(); w.write(s); if(debug) log("Matched @page: "+s); } case 36: break; case 13: { String s = yytext(); w.write(s); if(debug) log("Matched number: "+s); } case 37: break; case 1: { String s = yytext(); char c = s.charAt(0); log("Matched anything: "+yytext()+" - ignoring"); w.write("/* ignored unmatched char: "+c+" */"); // single char cannot break out of comment } case 38: break; case 6: { String s = yytext(); w.write(s); if(debug) log("Matched semicolon: "+s); } case 39: break; case 19: { String s = yytext(); if(debug) log("Got hexcolor: "+s); w.write(s); } case 40: break; case 7: { String s = yytext(); w.write(s); if(debug) log("Matched open braces: "+s); } case 41: break; case 26: { String s = yytext(); s = s.substring("@media".length()).trim(); w.write("@media "+s+" "); if(debug) log("Matched @media: "+s); } case 42: break; case 2: { String s = yytext(); w.write(s); if(debug) log("Matched ident: "+s); } case 43: break; case 23: { String s = yytext(); w.write(s); if(debug) log("Matched unicode range: "+s); } case 44: break; case 28: { String s = yytext(); w.write(s); if(debug) log("Matched @font-face: "+s); } case 45: break; case 9: { String s = yytext(); if(s.startsWith("url")) throwError("Invalid contents of url()"); w.write(s); if(debug) log("Matched function start: "+s); } case 46: break; case 17: { String s = yytext(); w.write(s); if(debug) log("Matched HTML comment: "+s); } case 47: break; case 3: { String s = yytext(); w.write(s); if(debug) log("Matched whitespace: "+s); } case 48: break; case 22: { String s = yytext(); if(debug) log("Ignoring unrecognizable url: "+s); w.write("/* Ignoring unmatchable URL */url()"); } case 49: break; case 27: { String s = yytext(); if(debug) log("Found @import: "+s); s = s.substring("@import".length()); s = s.trim(); DecodedStringThingy dst = new DecodedStringThingy(s); s = dst.data; if(debug) log("URL: "+s); s = processImportURL(s); dst.data = s; if(debug) log("Processed URL: "+s); if(dst.quote == ' ') dst.quote = '\"'; if (!(s == null || s.equals(""))) { if(debug) log("URL now: "+s); s = "@import "+dst.toString(); if(debug) log("Writing: "+s); w.write(s); } else if(debug) log("Dropped @import"); } case 50: break; case 29: { String s = yytext(); w.write(s); if(debug) log("Matched important: "+s); } case 51: break; case 20: { String s = yytext(); StringBuffer sb = new StringBuffer(s.length()); sb.append("/* "); boolean inPrefix = true; for(int i=2;i<s.length()-2;i++) { char c = s.charAt(i); if(inPrefix && Character.isWhitespace(c)) { continue; } inPrefix = false; if(Character.isDigit(c) || Character.isWhitespace(c) || Character.isLetter(c) || c == '.' || c == '_' || c == '-') { // No @, no !, etc; IE has been known to do things with comments // in CSS, and other browsers may too sb.append(c); } } while(Character.isWhitespace(sb.charAt(sb.length()-1))) sb.deleteCharAt(sb.length()-1); sb.append(" */"); w.write(sb.toString()); if(debug) log("Matched comment: "+s+" -> "+sb.toString()); } case 52: break; case 25: { // This is horrible. However it seems that there is no other way to do it with either jflex or CUP, as {URL} cannot be an unambiguous token :( String s = yytext(); if(debug) log("Recognized URL: "+s); DecodedStringThingy dst = new DecodedStringThingy(s); if(!dst.url) { throw new IllegalStateException("parsing url().. isn't a url()"); } if(dst.suffix.length() > 0) { yypushback(dst.suffix.length()); dst.suffix = ""; } s = dst.data; if(debug) log("URL now: "+s); s = processURL(s); dst.data = s; if(s == null || s.equals("")) { if(debug) log("URL invalid"); w.write("url()"); } else { s = dst.toString(); if(debug) log("Writing: "+s); w.write(s); } } case 53: break; case 11: { String s = yytext(); w.write(s); if(debug) log("Matched measurement: "+s); } case 54: break; case 16: { String s = yytext(); w.write(s); if(debug) log("Matched |=: "+s); } case 55: break; case 30: { String s = yytext(); detectedCharset = s; if(debug) log("Matched and ignoring charset: "+s); // Ignore } case 56: break; case 10: { if(postBadImportFlag) { // Ignore postBadImportFlag = false; if(debug) log("Ignoring mediums list because after bad import: "+ yytext()); } else { String s = yytext(); w.write(s); if(debug) log("Matched and passing on mediums list: "+s); } } case 57: break; case 4: { String s = yytext(); w.write(s); if(debug) log("Matched single char: "+s); } case 58: break; case 14: { String s = yytext(); w.write(s); if(debug) log("Matched #name: "+s); } case 59: break; case 5: { String s = yytext(); w.write(s); if(debug) log("Matched function end: "+s); } case 60: break; default: if (zzInput == YYEOF && zzStartRead == zzCurrentPos) { zzAtEOF = true; return null; } else { zzScanError(ZZ_NO_MATCH); } } } } | 50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/e8996198a75deffbf4dc9e1ed08d3120115f4fa9/CSSTokenizerFilter.java/buggy/src/freenet/clients/http/filter/CSSTokenizerFilter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1624,
93,
2316,
677,
1362,
92,
1435,
1216,
2252,
18,
1594,
18,
14106,
288,
565,
509,
11273,
1210,
31,
565,
509,
11273,
1803,
31,
565,
368,
3472,
1466,
30,
565,
509,
11273,
3935,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1624,
93,
2316,
677,
1362,
92,
1435,
1216,
2252,
18,
1594,
18,
14106,
288,
565,
509,
11273,
1210,
31,
565,
509,
11273,
1803,
31,
565,
368,
3472,
1466,
30,
565,
509,
11273,
3935,
1... |
iCodeTop = addByte((byte) TokenStream.DUP, iCodeTop); | iCodeTop = addByte(TokenStream.DUP, iCodeTop); | private int generateICode(Node node, int iCodeTop) { int type = node.getType(); Node child = node.getFirstChild(); Node firstChild = child; switch (type) { case TokenStream.FUNCTION : { iCodeTop = addByte((byte) TokenStream.CLOSURE, iCodeTop); Node fn = (Node) node.getProp(Node.FUNCTION_PROP); Short index = (Short) fn.getProp(Node.FUNCTION_PROP); iCodeTop = addByte((byte)(index.shortValue() >> 8), iCodeTop); iCodeTop = addByte((byte)(index.shortValue() & 0xff), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.SCRIPT : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { if (child.getType() != TokenStream.FUNCTION) iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.CASE : iCodeTop = updateLineNumber(node, iCodeTop); child = child.getNextSibling(); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.LABEL : case TokenStream.WITH : case TokenStream.LOOP : case TokenStream.DEFAULT : case TokenStream.BLOCK : case TokenStream.VOID : case TokenStream.NOP : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.COMMA : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); break; case TokenStream.SWITCH : { iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; /* reminder - below we construct new GOTO nodes that aren't linked into the tree just for the purpose of having a node to pass to the addGoto routine. (Parallels codegen here). Seems unnecessary. */ Vector cases = (Vector) node.getProp(Node.CASES_PROP); for (int i = 0; i < cases.size(); i++) { Node thisCase = (Node)cases.elementAt(i); Node first = thisCase.getFirstChild(); // the case expression is the firstmost child // the rest will be generated when the case // statements are encountered as siblings of // the switch statement. iCodeTop = generateICode(first, iCodeTop); iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.SHEQ, iCodeTop); Node target = new Node(TokenStream.TARGET); thisCase.addChildAfter(target, first); Node branch = new Node(TokenStream.IFEQ); branch.putProp(Node.TARGET_PROP, target); iCodeTop = addGoto(branch, TokenStream.IFEQ, iCodeTop); itsStackDepth--; } Node defaultNode = (Node) node.getProp(Node.DEFAULT_PROP); if (defaultNode != null) { Node defaultTarget = new Node(TokenStream.TARGET); defaultNode.getFirstChild().addChildToFront(defaultTarget); Node branch = new Node(TokenStream.GOTO); branch.putProp(Node.TARGET_PROP, defaultTarget); iCodeTop = addGoto(branch, TokenStream.GOTO, iCodeTop); } Node breakTarget = (Node) node.getProp(Node.BREAK_PROP); Node branch = new Node(TokenStream.GOTO); branch.putProp(Node.TARGET_PROP, breakTarget); iCodeTop = addGoto(branch, TokenStream.GOTO, iCodeTop); } break; case TokenStream.TARGET : { Object lblObect = node.getProp(Node.LABEL_PROP); if (lblObect == null) { int label = markLabel(acquireLabel(), iCodeTop); node.putProp(Node.LABEL_PROP, new Integer(label)); } else { int label = ((Integer)lblObect).intValue(); markLabel(label, iCodeTop); } // if this target has a FINALLY_PROP, it is a JSR target // and so has a PC value on the top of the stack if (node.getProp(Node.FINALLY_PROP) != null) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.EQOP : case TokenStream.RELOP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int op = node.getInt(); if (version == Context.VERSION_1_2) { if (op == TokenStream.EQ) op = TokenStream.SHEQ; else if (op == TokenStream.NE) op = TokenStream.SHNE; } iCodeTop = addByte((byte) op, iCodeTop); itsStackDepth--; } break; case TokenStream.NEW : case TokenStream.CALL : { if (itsSourceFile != null && (itsData.itsSourceFile == null || ! itsSourceFile.equals(itsData.itsSourceFile))) itsData.itsSourceFile = itsSourceFile; iCodeTop = addByte((byte)TokenStream.SOURCEFILE, iCodeTop); int childCount = 0; short nameIndex = -1; while (child != null) { iCodeTop = generateICode(child, iCodeTop); if (nameIndex == -1) { if (child.getType() == TokenStream.NAME) nameIndex = (short)(itsData.itsStringTableIndex - 1); else if (child.getType() == TokenStream.GETPROP) nameIndex = (short)(itsData.itsStringTableIndex - 1); } child = child.getNextSibling(); childCount++; } if (node.getProp(Node.SPECIALCALL_PROP) != null) { // embed line number and source filename iCodeTop = addByte((byte) TokenStream.CALLSPECIAL, iCodeTop); iCodeTop = addByte((byte)(itsLineNumber >> 8), iCodeTop); iCodeTop = addByte((byte)(itsLineNumber & 0xff), iCodeTop); iCodeTop = addString(itsSourceFile, iCodeTop); } else { iCodeTop = addByte((byte) type, iCodeTop); iCodeTop = addByte((byte)(nameIndex >> 8), iCodeTop); iCodeTop = addByte((byte)(nameIndex & 0xFF), iCodeTop); } itsStackDepth -= (childCount - 1); // always a result value // subtract from child count to account for [thisObj &] fun if (type == TokenStream.NEW) childCount -= 1; else childCount -= 2; iCodeTop = addByte((byte)(childCount >> 8), iCodeTop); iCodeTop = addByte((byte)(childCount & 0xff), iCodeTop); if (childCount > itsData.itsMaxArgs) itsData.itsMaxArgs = childCount; iCodeTop = addByte((byte)TokenStream.SOURCEFILE, iCodeTop); } break; case TokenStream.NEWLOCAL : case TokenStream.NEWTEMP : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); } break; case TokenStream.USELOCAL : { if (node.getProp(Node.TARGET_PROP) != null) iCodeTop = addByte((byte) TokenStream.RETSUB, iCodeTop); else { iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } Node temp = (Node) node.getProp(Node.LOCAL_PROP); iCodeTop = addLocalRef(temp, iCodeTop); } break; case TokenStream.USETEMP : { iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); Node temp = (Node) node.getProp(Node.TEMP_PROP); iCodeTop = addLocalRef(temp, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.IFEQ : case TokenStream.IFNE : iCodeTop = generateICode(child, iCodeTop); itsStackDepth--; // after the conditional GOTO, really // fall thru... case TokenStream.GOTO : iCodeTop = addGoto(node, (byte) type, iCodeTop); break; case TokenStream.JSR : { /* mark the target with a FINALLY_PROP to indicate that it will have an incoming PC value on the top of the stack. !!! This only works if the target follows the JSR in the tree. !!! */ Node target = (Node)(node.getProp(Node.TARGET_PROP)); target.putProp(Node.FINALLY_PROP, node); iCodeTop = addGoto(node, TokenStream.GOSUB, iCodeTop); } break; case TokenStream.AND : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int falseTarget = acquireLabel(); iCodeTop = addGoto(falseTarget, TokenStream.IFNE, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); markLabel(falseTarget, iCodeTop); } break; case TokenStream.OR : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int trueTarget = acquireLabel(); iCodeTop = addGoto(trueTarget, TokenStream.IFEQ, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); markLabel(trueTarget, iCodeTop); } break; case TokenStream.GETPROP : { iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte((byte) TokenStream.GETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte((byte) TokenStream.GETSCOPEPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.GETPROP, iCodeTop); itsStackDepth--; } } break; case TokenStream.DELPROP : case TokenStream.BITAND : case TokenStream.BITOR : case TokenStream.BITXOR : case TokenStream.LSH : case TokenStream.RSH : case TokenStream.URSH : case TokenStream.ADD : case TokenStream.SUB : case TokenStream.MOD : case TokenStream.DIV : case TokenStream.MUL : case TokenStream.GETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth--; break; case TokenStream.CONVERT : { iCodeTop = generateICode(child, iCodeTop); Object toType = node.getProp(Node.TYPE_PROP); if (toType == ScriptRuntime.NumberClass) iCodeTop = addByte((byte) TokenStream.POS, iCodeTop); else badTree(node); } break; case TokenStream.UNARYOP : iCodeTop = generateICode(child, iCodeTop); switch (node.getInt()) { case TokenStream.VOID : iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); iCodeTop = addByte((byte) TokenStream.UNDEFINED, iCodeTop); break; case TokenStream.NOT : { int trueTarget = acquireLabel(); int beyond = acquireLabel(); iCodeTop = addGoto(trueTarget, TokenStream.IFEQ, iCodeTop); iCodeTop = addByte((byte) TokenStream.TRUE, iCodeTop); iCodeTop = addGoto(beyond, TokenStream.GOTO, iCodeTop); markLabel(trueTarget, iCodeTop); iCodeTop = addByte((byte) TokenStream.FALSE, iCodeTop); markLabel(beyond, iCodeTop); } break; case TokenStream.BITNOT : iCodeTop = addByte((byte) TokenStream.BITNOT, iCodeTop); break; case TokenStream.TYPEOF : iCodeTop = addByte((byte) TokenStream.TYPEOF, iCodeTop); break; case TokenStream.SUB : iCodeTop = addByte((byte) TokenStream.NEG, iCodeTop); break; case TokenStream.ADD : iCodeTop = addByte((byte) TokenStream.POS, iCodeTop); break; default: badTree(node); break; } break; case TokenStream.SETPROP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte((byte) TokenStream.SETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte((byte) TokenStream.SETPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.SETPROP, iCodeTop); itsStackDepth -= 2; } } break; case TokenStream.SETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth -= 2; break; case TokenStream.SETNAME : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.SETNAME, iCodeTop); iCodeTop = addString(firstChild.getString(), iCodeTop); itsStackDepth--; break; case TokenStream.TYPEOF : { String name = node.getString(); int index = -1; // use typeofname if an activation frame exists // since the vars all exist there instead of in jregs if (itsInFunctionFlag && !itsData.itsNeedsActivation) index = itsVariableTable.getOrdinal(name); if (index == -1) { iCodeTop = addByte((byte) TokenStream.TYPEOFNAME, iCodeTop); iCodeTop = addString(name, iCodeTop); } else { iCodeTop = addByte((byte) TokenStream.GETVAR, iCodeTop); iCodeTop = addByte((byte) index, iCodeTop); iCodeTop = addByte((byte) TokenStream.TYPEOF, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.PARENT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.GETPARENT, iCodeTop); break; case TokenStream.GETBASE : case TokenStream.BINDNAME : case TokenStream.NAME : case TokenStream.STRING : iCodeTop = addByte((byte) type, iCodeTop); iCodeTop = addString(node.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.INC : case TokenStream.DEC : { int childType = child.getType(); switch (childType) { case TokenStream.GETVAR : { String name = child.getString(); if (itsData.itsNeedsActivation) { iCodeTop = addByte((byte) TokenStream.SCOPE, iCodeTop); iCodeTop = addByte((byte) TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC), iCodeTop); itsStackDepth--; } else { iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.VARINC : TokenStream.VARDEC), iCodeTop); int i = itsVariableTable.getOrdinal(name); iCodeTop = addByte((byte)i, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.GETPROP : case TokenStream.GETELEM : { Node getPropChild = child.getFirstChild(); iCodeTop = generateICode(getPropChild, iCodeTop); getPropChild = getPropChild.getNextSibling(); iCodeTop = generateICode(getPropChild, iCodeTop); if (childType == TokenStream.GETPROP) iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC), iCodeTop); else iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.ELEMINC : TokenStream.ELEMDEC), iCodeTop); itsStackDepth--; } break; default : { iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.NAMEINC : TokenStream.NAMEDEC), iCodeTop); iCodeTop = addString(child.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } } break; case TokenStream.NUMBER : { double num = node.getDouble(); if (num == 0.0) { iCodeTop = addByte((byte) TokenStream.ZERO, iCodeTop); } else if (num == 1.0) { iCodeTop = addByte((byte) TokenStream.ONE, iCodeTop); } else { iCodeTop = addByte((byte) TokenStream.NUMBER, iCodeTop); iCodeTop = addNumber(num, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case TokenStream.POP : case TokenStream.POPV : iCodeTop = updateLineNumber(node, iCodeTop); case TokenStream.ENTERWITH : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth--; break; case TokenStream.GETTHIS : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); break; case TokenStream.NEWSCOPE : iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.LEAVEWITH : iCodeTop = addByte((byte) type, iCodeTop); break; case TokenStream.TRY : { itsTryDepth++; if (itsTryDepth > itsData.itsMaxTryDepth) itsData.itsMaxTryDepth = itsTryDepth; Node catchTarget = (Node)node.getProp(Node.TARGET_PROP); Node finallyTarget = (Node)node.getProp(Node.FINALLY_PROP); if (catchTarget == null) { iCodeTop = addByte((byte) TokenStream.TRY, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); } else iCodeTop = addGoto(node, TokenStream.TRY, iCodeTop); int finallyHandler = 0; if (finallyTarget != null) { finallyHandler = acquireLabel(); int theLabel = finallyHandler & 0x7FFFFFFF; itsLabelTable[theLabel].addFixup(iCodeTop); } iCodeTop = addByte((byte)0, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); Node lastChild = null; /* when we encounter the child of the catchTarget, we set the stackDepth to 1 to account for the incoming exception object. */ boolean insertedEndTry = false; while (child != null) { if (catchTarget != null && lastChild == catchTarget) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } /* When the following child is the catchTarget (or the finallyTarget if there are no catches), the current child is the goto at the end of the try statemets, we need to emit the endtry before that goto. */ Node nextSibling = child.getNextSibling(); if (!insertedEndTry && nextSibling != null && (nextSibling == catchTarget || nextSibling == finallyTarget)) { iCodeTop = addByte((byte) TokenStream.ENDTRY, iCodeTop); insertedEndTry = true; } iCodeTop = generateICode(child, iCodeTop); lastChild = child; child = child.getNextSibling(); } itsStackDepth = 0; if (finallyTarget != null) { // normal flow goes around the finally handler stublet int skippy = acquireLabel(); iCodeTop = addGoto(skippy, TokenStream.GOTO, iCodeTop); // on entry the stack will have the exception object markLabel(finallyHandler, iCodeTop); itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); Integer finallyLabel = (Integer)(finallyTarget.getProp(Node.LABEL_PROP)); iCodeTop = addGoto(finallyLabel.intValue(), TokenStream.GOSUB, iCodeTop); iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.JTHROW, iCodeTop); itsStackDepth = 0; markLabel(skippy, iCodeTop); } itsTryDepth--; } break; case TokenStream.THROW : iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.THROW, iCodeTop); itsStackDepth--; break; case TokenStream.RETURN : iCodeTop = updateLineNumber(node, iCodeTop); if (child != null) iCodeTop = generateICode(child, iCodeTop); else { iCodeTop = addByte((byte) TokenStream.UNDEFINED, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } iCodeTop = addGoto(node, TokenStream.RETURN, iCodeTop); itsStackDepth--; break; case TokenStream.GETVAR : { String name = node.getString(); if (itsData.itsNeedsActivation) { // SETVAR handled this by turning into a SETPROP, but // we can't do that to a GETVAR without manufacturing // bogus children. Instead we use a special op to // push the current scope. iCodeTop = addByte((byte) TokenStream.SCOPE, iCodeTop); iCodeTop = addByte((byte) TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) TokenStream.GETPROP, iCodeTop); itsStackDepth--; } else { int index = itsVariableTable.getOrdinal(name); iCodeTop = addByte((byte) TokenStream.GETVAR, iCodeTop); iCodeTop = addByte((byte)index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.SETVAR : { if (itsData.itsNeedsActivation) { child.setType(TokenStream.BINDNAME); node.setType(TokenStream.SETNAME); iCodeTop = generateICode(node, iCodeTop); } else { String name = child.getString(); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int index = itsVariableTable.getOrdinal(name); iCodeTop = addByte((byte) TokenStream.SETVAR, iCodeTop); iCodeTop = addByte((byte)index, iCodeTop); } } break; case TokenStream.PRIMARY: iCodeTop = addByte((byte) node.getInt(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.ENUMINIT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.ENUMINIT, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); itsStackDepth--; break; case TokenStream.ENUMNEXT : { iCodeTop = addByte((byte) TokenStream.ENUMNEXT, iCodeTop); Node init = (Node)node.getProp(Node.ENUM_PROP); iCodeTop = addLocalRef(init, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.ENUMDONE : // could release the local here?? break; case TokenStream.OBJECT : { Node regexp = (Node) node.getProp(Node.REGEXP_PROP); int index = ((Integer)(regexp.getProp( Node.REGEXP_PROP))).intValue(); iCodeTop = addByte((byte) TokenStream.OBJECT, iCodeTop); iCodeTop = addByte((byte)(index >> 8), iCodeTop); iCodeTop = addByte((byte)(index & 0xff), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; default : badTree(node); break; } return iCodeTop; } | 11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/f6c346cc7699c007b0b9b27d9c3cdb5446052c64/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
2103,
45,
1085,
12,
907,
756,
16,
509,
277,
1085,
3401,
13,
288,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
2103,
45,
1085,
12,
907,
756,
16,
509,
277,
1085,
3401,
13,
288,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3639,
... |
triggerSequence = null; | keySequence = null; | protected Control createButtonBar(Composite parent) { // Create a composite for the button bar contents. final Composite composite = new Composite(parent, SWT.NONE); composite.setLayout(new GridLayout()); composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); composite.setBackground(parent.getBackground()); /* * Figure out which key is used to open the key assist. If no key, then * just return. */ final Collection keyBindings = bindingService .getActiveBindingsFor("org.eclipse.ui.window.showKeyAssist"); //$NON-NLS-1$ final Iterator keyBindingItr = keyBindings.iterator(); final KeySequence currentState = keyBindingState.getCurrentSequence(); final int prefixSize = currentState.getKeyStrokes().size(); // Try to find the first possible matching key binding. TriggerSequence triggerSequence = null; while (keyBindingItr.hasNext()) { triggerSequence = (TriggerSequence) keyBindingItr.next(); // Now just double-check to make sure the key is still possible. if (prefixSize > 0) { if (triggerSequence.startsWith(currentState, false)) { /* * Okay, so we have a partial match. Replace the key binding * with the required suffix completion. */ final List newKeyStrokes = new ArrayList(triggerSequence .getTriggers()); for (int i = 0; i < prefixSize; i++) { newKeyStrokes.remove(0); } triggerSequence = KeySequence.getInstance(newKeyStrokes); break; } /* * The prefix doesn't match, so null out the key binding and try * again. */ triggerSequence = null; continue; } // There is no prefix, so just grab the first. break; } if (triggerSequence == null) { return composite; // couldn't find a suitable key binding } // Create a horizontal separator line // Looks silly in this dialog, but might be useful in the general case. // final Label separator = new Label(composite, SWT.SEPARATOR // | SWT.HORIZONTAL | SWT.LINE_DOT); // separator.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); // Create the text widget final Label text = new Label(composite, SWT.NONE); text.setLayoutData(new GridData(SWT.END, SWT.CENTER, true, false)); text.setBackground(composite.getBackground()); text.setText(MessageFormat.format(Util.translateString(RESOURCE_BUNDLE, "openPreferencePage"), //$NON-NLS-1$ new Object[] { triggerSequence.format() })); return composite; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/419e3fe3a65aaac0eb4f974d711712853ff084e6/KeyAssistDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/KeyAssistDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8888,
752,
3616,
5190,
12,
9400,
982,
13,
288,
202,
202,
759,
1788,
279,
9635,
364,
326,
3568,
4653,
2939,
18,
202,
202,
6385,
14728,
9635,
273,
394,
14728,
12,
2938,
16,
348... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8888,
752,
3616,
5190,
12,
9400,
982,
13,
288,
202,
202,
759,
1788,
279,
9635,
364,
326,
3568,
4653,
2939,
18,
202,
202,
6385,
14728,
9635,
273,
394,
14728,
12,
2938,
16,
348... |
MylarUiPlugin.getDefault().getPreferenceStore().setValue(ID, on); | ContextUiPlugin.getDefault().getPreferenceStore().setValue(ID, on); | public void update(boolean on) { setChecked(on); MylarUiPlugin.getDefault().getPreferenceStore().setValue(ID, on); ISelectionService service = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getSelectionService(); if (on) { service.addPostSelectionListener(selectionTracker); } else { service.removePostSelectionListener(selectionTracker); } } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/b23efbfef800ff6f85224f036d6a11e9fab7acba/LinkActiveSearchWithEditorAction.java/buggy/org.eclipse.mylyn.ide.ui/src/org/eclipse/mylyn/internal/ide/ui/actions/LinkActiveSearchWithEditorAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
12,
6494,
603,
13,
288,
202,
202,
542,
11454,
12,
265,
1769,
202,
202,
12062,
7901,
13943,
3773,
18,
588,
1868,
7675,
588,
9624,
2257,
7675,
542,
620,
12,
734,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
12,
6494,
603,
13,
288,
202,
202,
542,
11454,
12,
265,
1769,
202,
202,
12062,
7901,
13943,
3773,
18,
588,
1868,
7675,
588,
9624,
2257,
7675,
542,
620,
12,
734,
16,
... |
console.setLayout(new BorderLayout()); | console.getContentPane().setLayout(new BorderLayout()); | public static void main(String[] args) { final IRBConsole console = new IRBConsole("JRuby IRB Console"); PipedInputStream pipeIn = new PipedInputStream(); console.setLayout(new BorderLayout()); console.setSize(700, 600); JEditorPane text = new JTextPane(); text.setMargin(new Insets(8,8,8,8)); text.setCaretColor(new Color(0xa4, 0x00, 0x00)); text.setBackground(new Color(0xf2, 0xf2, 0xf2)); text.setForeground(new Color(0xa4, 0x00, 0x00)); Font font = console.findFont("Monospaced", Font.PLAIN, 14, new String[] {"Monaco", "Andale Mono"}); text.setFont(font); JScrollPane pane = new JScrollPane(); pane.setViewportView(text); pane.setBorder(BorderFactory.createLineBorder(Color.darkGray)); console.add(pane); console.validate(); TextAreaReadline tar = new TextAreaReadline(text, " Welcome to the JRuby IRB Console \n\n"); final IRuby runtime = Ruby.newInstance(pipeIn, new PrintStream(tar), new PrintStream(tar), false); IRubyObject argumentArray = runtime.newArray(JavaUtil.convertJavaArrayToRuby(runtime, args)); runtime.defineGlobalConstant("ARGV", argumentArray); runtime.getGlobalVariables().defineReadonly("$*", new ValueAccessor(argumentArray)); runtime.getGlobalVariables().defineReadonly("$$", new ValueAccessor(runtime.newFixnum(System.identityHashCode(runtime)))); runtime.getLoadService().init(new ArrayList()); tar.hookIntoRuntime(runtime); Thread t2 = new Thread() { public void run() { console.setVisible(true); runtime.evalScript("require 'irb'; require 'irb/completion'; IRB.start"); } }; t2.start(); try { t2.join(); } catch (InterruptedException ie) { // ignore } System.exit(0); } | 45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/a757121012744f77b135696456ba9a8170135244/IRBConsole.java/clean/src/org/jruby/demo/IRBConsole.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
3639,
727,
15908,
38,
10215,
2983,
273,
394,
15908,
38,
10215,
2932,
46,
54,
10340,
15908,
38,
9657,
8863,
3639,
29305,
329,
4348,
6010,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2774,
12,
780,
8526,
833,
13,
288,
3639,
727,
15908,
38,
10215,
2983,
273,
394,
15908,
38,
10215,
2932,
46,
54,
10340,
15908,
38,
9657,
8863,
3639,
29305,
329,
4348,
6010,... |
else | } else { | protected String getTargetTypeParameter() { if( notEmpty( _targetType ) ) return "/target:" + _targetType; else return null; } | 17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/b95d90a13da3fb8d362982bc84652f1e03e8325e/CSharp.java/buggy/proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/dotnet/CSharp.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
8571,
16920,
1435,
565,
288,
3639,
309,
12,
21263,
12,
389,
3299,
559,
262,
262,
5411,
327,
2206,
3299,
2773,
397,
389,
3299,
559,
31,
3639,
289,
469,
288,
5411,
327,
446,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
8571,
16920,
1435,
565,
288,
3639,
309,
12,
21263,
12,
389,
3299,
559,
262,
262,
5411,
327,
2206,
3299,
2773,
397,
389,
3299,
559,
31,
3639,
289,
469,
288,
5411,
327,
446,
31... |
rsvc.error( ( left == null ? "Left" : "Right" ) | rsvc.error( ( left == null ? "Left" : "Right" ) | public Object value( InternalContextAdapter context) throws MethodInvocationException { /* * get the two addends */ Object left = jjtGetChild(0).value( context ); Object right = jjtGetChild(1).value( context ); /* * if either is null, lets log and bail */ if (left == null || right == null) { rsvc.error( ( left == null ? "Left" : "Right" ) + " side (" + jjtGetChild( (left == null? 0 : 1) ).literal() + ") of addition operation has null value." + " Operation not possible. " + context.getCurrentTemplateName() + " [line " + getLine() + ", column " + getColumn() + "]"); return null; } /* * if not an Integer, not much we can do either */ if ( !( left instanceof Integer ) || !( right instanceof Integer )) { rsvc.error( ( !( left instanceof Integer ) ? "Left" : "Right" ) + " side of addition operation is not a valid type. " + "Currently only integers (1,2,3...) and Integer type is supported. " + context.getCurrentTemplateName() + " [line " + getLine() + ", column " + getColumn() + "]"); return null; } return new Integer( ( (Integer) left ).intValue() + ( (Integer) right ).intValue() ); } | 55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/d0480bc70ab3efce5f04a5de514ce6322a1dff24/ASTAddNode.java/clean/src/java/org/apache/velocity/runtime/parser/node/ASTAddNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
460,
12,
3186,
1042,
4216,
819,
13,
3639,
1216,
2985,
9267,
503,
565,
288,
3639,
1748,
540,
380,
225,
336,
326,
2795,
527,
5839,
540,
1195,
3639,
1033,
2002,
273,
10684,
88,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
460,
12,
3186,
1042,
4216,
819,
13,
3639,
1216,
2985,
9267,
503,
565,
288,
3639,
1748,
540,
380,
225,
336,
326,
2795,
527,
5839,
540,
1195,
3639,
1033,
2002,
273,
10684,
88,
... |
nameL = new Label("Name (no tile selected)", Label.CENTER); typeL = new Label("Type (no tile selected)", Label.CENTER); hexC = new HexCanvas(); elevL = new Label("Elevation:", Label.RIGHT); elevC = new Choice(); for(int i = 9; i > -6; i--) { elevC.add("" + i); | addKeyListener(this); canHex = new HexCanvas(); labElev = new Label("Elev:", Label.RIGHT); texElev = new TextField("0", 1); texElev.addActionListener(this); butElevUp = new Button("U"); butElevUp.addActionListener(this); butElevDown = new Button("D"); butElevDown.addActionListener(this); labTerrain = new Label("Terrain:", Label.LEFT); lisTerrain = new java.awt.List(6); lisTerrain.addItemListener(this); refreshTerrainList(); butDelTerrain = new Button("Remove Terrain"); butDelTerrain.addActionListener(this); choTerrainType = new Choice(); for (int i = 1; i < Terrain.SIZE; i++) { choTerrainType.add(Terrain.getName(i)); | public BoardEditor(Frame frame, Board board, BoardView1 bv) { this.frame = frame; this.board = board; this.bv = bv; board.newData(0, 0, new Hex[0]); frame.setTitle("MegaMek Editor : Unnamed"); nameL = new Label("Name (no tile selected)", Label.CENTER); typeL = new Label("Type (no tile selected)", Label.CENTER); hexC = new HexCanvas(); elevL = new Label("Elevation:", Label.RIGHT); elevC = new Choice(); for(int i = 9; i > -6; i--) { elevC.add("" + i); } elevC.select("0"); elevC.addItemListener(this); loadedL = new Label("Hexes Loaded:", Label.LEFT); loadedList = new List(10); loadedList.addItemListener(this); refreshTerrainList(); loadHexesB = new Button("Load More Hexes..."); loadHexesB.setActionCommand("hexes_load"); loadHexesB.addActionListener(this); clearUnusedB = new Button("Clear Unused Hexes"); clearUnusedB.setActionCommand("hexes_clear"); clearUnusedB.addActionListener(this); boardL = new Label("Board:", Label.LEFT); boardNewB = new Button("New..."); boardNewB.setActionCommand("board_new"); boardNewB.addActionListener(this); boardLoadB = new Button("Load..."); boardLoadB.setActionCommand("board_load"); boardLoadB.addActionListener(this); boardSaveB = new Button("Save"); boardSaveB.setActionCommand("board_save"); boardSaveB.addActionListener(this); boardSaveAsB = new Button("Save As..."); boardSaveAsB.setActionCommand("board_saveas"); boardSaveAsB.addActionListener(this); blankL = new Label("", Label.CENTER); GridBagLayout gridbag = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); setLayout(gridbag); c.fill = GridBagConstraints.HORIZONTAL; c.weightx = 0.0; c.weighty = 0.0; c.insets = new Insets(4, 4, 1, 1); c.gridwidth = GridBagConstraints.REMAINDER; addBag(nameL, gridbag, c); addBag(hexC, gridbag, c); addBag(typeL, gridbag, c); c.gridwidth = 1; addBag(elevL, gridbag, c); c.gridwidth = GridBagConstraints.REMAINDER; addBag(elevC, gridbag, c); addBag(loadedL, gridbag, c); addBag(loadedList, gridbag, c); addBag(loadHexesB, gridbag, c); addBag(clearUnusedB, gridbag, c); c.weightx = 1.0; c.weighty = 1.0; addBag(blankL, gridbag, c); c.weightx = 0.0; c.weighty = 0.0; addBag(boardL, gridbag, c); c.gridwidth = 1; addBag(boardNewB, gridbag, c); c.gridwidth = GridBagConstraints.REMAINDER; addBag(boardLoadB, gridbag, c); c.gridwidth = 1; addBag(boardSaveB, gridbag, c); c.gridwidth = GridBagConstraints.REMAINDER; addBag(boardSaveAsB, gridbag, c); } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/3045e322f5d70e8d851c863279a5680bed754e84/BoardEditor.java/buggy/megamek/src/megamek/client/ui/AWT/BoardEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
17980,
1060,
6946,
12,
3219,
2623,
16,
17980,
1060,
11094,
16,
17980,
1060,
1767,
21,
18021,
13,
288,
3639,
333,
18,
3789,
273,
2623,
31,
3639,
333,
18,
3752,
273,
11094,
31,
3639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17980,
1060,
6946,
12,
3219,
2623,
16,
17980,
1060,
11094,
16,
17980,
1060,
1767,
21,
18021,
13,
288,
3639,
333,
18,
3789,
273,
2623,
31,
3639,
333,
18,
3752,
273,
11094,
31,
3639,
... |
Set<FileFilter> filters = new TreeSet<FileFilter>( new Comparator<FileFilter>(){ public int compare(FileFilter f1, FileFilter f2) { return f1.getPreferredExtension().compareTo(f2.getPreferredExtension()); }}); | Set<FileFilter> filters = new LinkedHashSet<FileFilter>(); | private FileFilter[] createFileFilters() { //get existing writer formats String writerFormats[] = ImageIO.getWriterFormatNames(); //usually [bmp, jpeg, jpg, png, wbmp] String[] known = new String[]{"bmp","jpeg","jpg","png", "wbmp"}; //get remaining formats ignoring case Set<String> special = new HashSet<String>(); outer: for (int i = 0; i < writerFormats.length; i++) { final String ext = writerFormats[i].toLowerCase(); for (int j = 0; j < known.length; j++) { if (known[j].equals(ext)) continue outer; } special.add(ext); } //ordered set of file filters (lexicographically order of preferred extension) Set<FileFilter> filters = new TreeSet<FileFilter>( new Comparator<FileFilter>(){ public int compare(FileFilter f1, FileFilter f2) { return f1.getPreferredExtension().compareTo(f2.getPreferredExtension()); }}); //add known filter filters.add(new FileFilter("BMP Image", "bmp")); filters.add(new FileFilter("Wireless BMP Image", "wbmp")); filters.add(new FileFilter("JPEG Image", "jpg", "jpeg")); filters.add(new FileFilter("PNG Image", "png")); //add tiff filter if writer exists try { Class.forName("javax.media.jai.JAI"); filters.add(new FileFilter("TIFF Image", "tiff", "tif")); } catch (ClassNotFoundException e) {} //add filters for special writer formats for (String s : special) filters.add(new FileFilter(s.toUpperCase()+" Image", s)); //convert to (ordered) array FileFilter[] ff = new FileFilter[filters.size()]; return filters.toArray(ff); } | 25476 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25476/d806af473c5d9ed9506713ec6d5cbefcd51e8452/ExportImage.java/buggy/src-ui/de/jreality/ui/viewerapp/actions/file/ExportImage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1387,
1586,
8526,
21266,
5422,
1435,
288,
3639,
368,
588,
2062,
2633,
6449,
565,
514,
2633,
8976,
8526,
273,
3421,
4294,
18,
588,
2289,
1630,
1557,
5621,
565,
368,
407,
3452,
306,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1387,
1586,
8526,
21266,
5422,
1435,
288,
3639,
368,
588,
2062,
2633,
6449,
565,
514,
2633,
8976,
8526,
273,
3421,
4294,
18,
588,
2289,
1630,
1557,
5621,
565,
368,
407,
3452,
306,
7... |
m_vecAreaInfo.add( new AreaInfo(iWordStart, m_iNextStart, iWScount, ipd)); | vecAreaInfo.add( new AreaInfo(iWordStart, iNextStart, iWScount, ipd)); | private BreakPoss makeBreakPoss(short iWordStart, MinOptMax spaceIPD, int wordDim, SpaceSpecifier leadingSpace, SpaceSpecifier trailingSpace, int flags, short iWScount) { MinOptMax ipd = new MinOptMax(wordDim); ipd.add(spaceIPD); if (m_ipdTotal != null) { ipd.add(m_ipdTotal); // sum of all words so far in line } // Note: break position now stores total size to here // Position is the index of the info for this word in the vector m_vecAreaInfo.add( new AreaInfo(iWordStart, m_iNextStart, iWScount, ipd)); BreakPoss bp = new BreakPoss( new LeafPosition(this, m_vecAreaInfo.size() - 1)); m_ipdTotal = ipd; if ((flags & BreakPoss.HYPHENATED) != 0) { // Add the hyphen size, but don't change total IPD! bp.setStackingSize( MinOptMax.add(ipd, new MinOptMax(m_hyphIPD))); } else { bp.setStackingSize(ipd); } // TODO: make this correct (see Keiron's vertical alignment code) bp.setNonStackingSize(new MinOptMax(textInfo.lineHeight)); /* Set max ascender and descender (offset from baseline), * used for calculating the bpd of the line area containing * this text. */ //bp.setDescender(textInfo.fs.getDescender()); //bp.setAscender(textInfo.fs.getAscender()); if (m_iNextStart == chars.length) { flags |= BreakPoss.ISLAST; setFinished(true); } bp.setFlag(flags); if (trailingSpace != null) { bp.setTrailingSpace(trailingSpace); } else { bp.setTrailingSpace(new SpaceSpecifier(false)); } if (leadingSpace != null) { bp.setLeadingSpace(leadingSpace); } else { bp.setLeadingSpace(new SpaceSpecifier(false)); } return bp; } | 5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/a62f977d812bb273863a574255920ca141eec969/TextLayoutManager.java/clean/src/org/apache/fop/layoutmgr/TextLayoutManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
17030,
1616,
87,
1221,
7634,
1616,
87,
12,
6620,
277,
3944,
1685,
16,
4766,
565,
5444,
6179,
2747,
3476,
2579,
40,
16,
509,
2076,
5225,
16,
4766,
565,
14059,
21416,
7676,
3819,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
17030,
1616,
87,
1221,
7634,
1616,
87,
12,
6620,
277,
3944,
1685,
16,
4766,
565,
5444,
6179,
2747,
3476,
2579,
40,
16,
509,
2076,
5225,
16,
4766,
565,
14059,
21416,
7676,
3819,
16,
... |
dataV = this.getReplyLevelCode(req, dataV, imagePath) ; | dataV = this.getReplyLevelCode(req, dataV, imagePath) ; | public String preParse (HttpServletRequest req, String[] DBArr, Vector tagsV, File htmlCodeFile, String imagePath) throws ServletException, IOException { String htmlStr = "" ; try { // Lets get the url to the servlets directory String servletHome = MetaInfo.getServletPath(req) ; // Lets get the part of the expert html File templateLib = super.getExternalTemplateFolder(req) ; File expertHtmFile = new File(templateLib, "CONF_EXPERT.HTM") ; // Lets get the nbr of cols int nbrOfCols = Integer.parseInt(DBArr[0]) ; //log("Number of cols: " + nbrOfCols) ; // Lets build an tagsArray with the tags from the DBarr, if // null was passed to us instead of a vector if( tagsV == null) { tagsV = new Vector() ; for(int k = 1; k<nbrOfCols; k++) { tagsV.add(DBArr[k]) ; // log("Counter: "+ k + " Tagvrde: " + DBArr[k] ) ; } } // Lets do for all records... for(int i = nbrOfCols+1; i<DBArr.length; i += nbrOfCols) { String oneParsedRecordStr = "" ; Vector dataV = new Vector() ; // Lets do for one record... Get all fields for that record // Lets go through the array and see if we can found an '\n' and // Replace it with a <BR> for(int j=i; j<i+nbrOfCols ; j++) { StringBuffer b = new StringBuffer(DBArr[j]) ; String s = this.replace(b, '\n' , "<BR>" ).toString() ; // String s = Html.replace(b, '\n' , "<BR>" ).toString() ; dataV.add(s) ; // dataV.add(DBArr[j]) ; } // End of one records for // Lets check if the user is some kind of "Master" eg. if he's // reply_level is equal to 1 and add the code returned to data. dataV = this.getReplyLevelCode(req, dataV, imagePath) ; // Ok, Lets go through this vector and see if we can found a '\n' and // Replace it with a <BR> //StringBuffer strBuff = new StringBuffer(dataV.toString()) ; //strBuff = Html.replace(strBuff, "'\'", "<BR>") ; //dataV = Html.replace(dataV, '\n', "<BR>") ; //log("RadKoll: " + dataV.toString() ) ; // Lets parse one record oneParsedRecordStr = this.parseOneRecord(tagsV, dataV, htmlCodeFile) ; htmlStr += oneParsedRecordStr ; // log("Ett record: " + oneParsedRecordStr); } // end of the big for } catch(Exception e) { log("Error in Preparse") ; return null ; } return htmlStr ; } // End of | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/a270627916b37a677a391dd9f45c54d3d6f12503/ConfReply.java/clean/servlets/conf/ConfReply.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
675,
3201,
261,
2940,
18572,
1111,
16,
514,
8526,
2383,
5715,
16,
5589,
2342,
58,
16,
202,
202,
812,
1729,
1085,
812,
16,
514,
29181,
13,
225,
1216,
16517,
16,
1860,
288,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
675,
3201,
261,
2940,
18572,
1111,
16,
514,
8526,
2383,
5715,
16,
5589,
2342,
58,
16,
202,
202,
812,
1729,
1085,
812,
16,
514,
29181,
13,
225,
1216,
16517,
16,
1860,
288,... |
return eDynamicIsSet( eFeature ); | return super.eIsSet( featureID ); | public boolean eIsSet( EStructuralFeature eFeature ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case AttributePackage.INTERACTIVITY__ENABLE : return isSetEnable( ); case AttributePackage.INTERACTIVITY__LEGEND_BEHAVIOR : return isSetLegendBehavior( ); } return eDynamicIsSet( eFeature ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/036e8c78765730b146e5854b9d6c397a296fed86/InteractivityImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/InteractivityImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
20372,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
3601,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
20372,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
3601,
22... |
|| propertyName.equals( StyleHandle.BORDER_BOTTOM_WIDTH_PROP ) | public void elementChanged( DesignElementHandle focus, NotificationEvent ev ) { PropertyEvent event = (PropertyEvent) ev; String propertyName = event.getPropertyName( ); if ( propertyName.equals( StyleHandle.BORDER_TOP_WIDTH_PROP ) || propertyName.equals( StyleHandle.BORDER_LEFT_WIDTH_PROP ) || propertyName.equals( StyleHandle.BORDER_BOTTOM_WIDTH_PROP ) || propertyName.equals( StyleHandle.BORDER_RIGHT_WIDTH_PROP ) ) { load( ); } } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/5524fdf49f84912e89c89e44e114c4b0ff5f090e/BorderPropertyDescriptor.java/buggy/UI/org.eclipse.birt.report.designer.ui.views/src/org/eclipse/birt/report/designer/internal/ui/views/attributes/widget/BorderPropertyDescriptor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
930,
5033,
12,
29703,
1046,
3259,
7155,
16,
8050,
1133,
2113,
262,
202,
95,
202,
202,
1396,
1133,
871,
273,
261,
1396,
1133,
13,
2113,
31,
202,
202,
780,
5470,
273,
871,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
930,
5033,
12,
29703,
1046,
3259,
7155,
16,
8050,
1133,
2113,
262,
202,
95,
202,
202,
1396,
1133,
871,
273,
261,
1396,
1133,
13,
2113,
31,
202,
202,
780,
5470,
273,
871,
... | |
return new DefaultScriptSecurity(scriptType, scriptURL, docURL); | return new DefaultScriptSecurity (scriptType, scriptPURL, docPURL); | public ScriptSecurity getScriptSecurity(String scriptType, URL scriptURL, URL docURL){ if (scripts.indexOf(scriptType) == -1){ return new NoLoadScriptSecurity(scriptType); } else { if (constrain){ return new DefaultScriptSecurity(scriptType, scriptURL, docURL); } else { return new RelaxedScriptSecurity(scriptType, scriptURL, docURL); } } } | 46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/b3bfbdc9cdab85ed31fcac017fd38c721cc6713e/ScriptSelfTest.java/clean/test-sources/org/apache/batik/bridge/ScriptSelfTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
7739,
4368,
22611,
4368,
12,
780,
2728,
559,
16,
4766,
7734,
1976,
2728,
1785,
16,
4766,
7734,
1976,
997,
1785,
15329,
5411,
309,
261,
12827,
18,
31806,
12,
4263,
559,
13,
422,
300,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
7739,
4368,
22611,
4368,
12,
780,
2728,
559,
16,
4766,
7734,
1976,
2728,
1785,
16,
4766,
7734,
1976,
997,
1785,
15329,
5411,
309,
261,
12827,
18,
31806,
12,
4263,
559,
13,
422,
300,... |
int endOffset = startOffset + ev.getLength(); | protected void forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent ev, Shape shape, ViewFactory vf) { int count = getViewCount(); if (count > 0) { int startOffset = ev.getOffset(); int endOffset = startOffset + ev.getLength(); int startIndex = getViewIndex(startOffset, Position.Bias.Backward); int endIndex = getViewIndex(endOffset, Position.Bias.Forward); int index = -1; int addLength = -1; if (ec != null) { index = ec.getIndex(); addLength = ec.getChildrenAdded().length; } if (startIndex >= 0 && endIndex >= 0) { for (int i = startIndex; i <= endIndex; i++) { // Skip newly added child views. if (index >= 0 && i >= index && i < (index+addLength)) continue; View child = getView(i); forwardUpdateToView(child, ev, shape, vf); } } } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/View.java/clean/core/src/classpath/javax/javax/swing/text/View.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
5104,
1891,
12,
2519,
1133,
18,
1046,
3043,
6557,
16,
1171,
9079,
4319,
1133,
2113,
16,
12383,
2179,
16,
4441,
1733,
28902,
13,
225,
288,
565,
509,
1056,
273,
8893,
1380,
5621,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5104,
1891,
12,
2519,
1133,
18,
1046,
3043,
6557,
16,
1171,
9079,
4319,
1133,
2113,
16,
12383,
2179,
16,
4441,
1733,
28902,
13,
225,
288,
565,
509,
1056,
273,
8893,
1380,
5621,... | |
new LocalTime(10, 20, 30, -1, JULIAN); | new LocalTime(10, 20, 30, -1, JULIAN_LONDON); | public void testConstructor_int_int_int_int_Chronology() throws Throwable { LocalTime test = new LocalTime(10, 20, 30, 40, JULIAN); assertEquals(JULIAN_UTC, test.getChronology()); assertEquals(10, test.getHourOfDay()); assertEquals(20, test.getMinuteOfHour()); assertEquals(30, test.getSecondOfMinute()); assertEquals(40, test.getMillisOfSecond()); try { new LocalTime(-1, 20, 30, 40, JULIAN); fail(); } catch (IllegalArgumentException ex) {} try { new LocalTime(24, 20, 30, 40, JULIAN); fail(); } catch (IllegalArgumentException ex) {} try { new LocalTime(10, -1, 30, 40, JULIAN); fail(); } catch (IllegalArgumentException ex) {} try { new LocalTime(10, 60, 30, 40, JULIAN); fail(); } catch (IllegalArgumentException ex) {} try { new LocalTime(10, 20, -1, 40, JULIAN); fail(); } catch (IllegalArgumentException ex) {} try { new LocalTime(10, 20, 60, 40, JULIAN); fail(); } catch (IllegalArgumentException ex) {} try { new LocalTime(10, 20, 30, -1, JULIAN); fail(); } catch (IllegalArgumentException ex) {} try { new LocalTime(10, 20, 30, 1000, JULIAN); fail(); } catch (IllegalArgumentException ex) {} } | 52681 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52681/d4998c7904a9a9c5380904e1f744bbc67e397745/TestLocalTime_Constructors.java/buggy/JodaTime/src/test/org/joda/time/TestLocalTime_Constructors.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
6293,
67,
474,
67,
474,
67,
474,
67,
474,
67,
23809,
1435,
1216,
4206,
288,
3639,
25515,
1842,
273,
394,
25515,
12,
2163,
16,
4200,
16,
5196,
16,
8063,
16,
804,
1506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6293,
67,
474,
67,
474,
67,
474,
67,
474,
67,
23809,
1435,
1216,
4206,
288,
3639,
25515,
1842,
273,
394,
25515,
12,
2163,
16,
4200,
16,
5196,
16,
8063,
16,
804,
1506,
... |
Main.debug("Applet " + appletName + " id=" + appletID + " initialized."); Main.debug("app.setSize(appletSize);"); app.setSize(appletSize); | app.setSize(appletSize); | public void run() { //this order is very important and took a long time //to figure out- don't modify it unless there are //real bug fixes // till 2002 09 18 // commented out the synchronized block because // it leads to a deadlock of the JVM with // j2re 1.4.1 //synchronized( me ) { active = true; try { appletClass = loader.loadClass( className ); } catch (Exception e) { Main.kjas_err("Class could not be loaded: " + className, e); } if( appletClass == null ) { Main.info( "Could not load applet class " + className); panel.showFailed(); return; } try { synchronized (appletClass) { Main.debug("Applet " + appletName + " id=" + appletID + " instantiating..."); app = (Applet) appletClass.newInstance(); Main.debug("Applet " + appletName + " id=" + appletID + " instantiated."); } app.setStub( me ); } catch( InstantiationException e ) { Main.kjas_err( "Could not instantiate applet", e ); panel.showFailed(); return; } catch( IllegalAccessException e ) { Main.kjas_err( "Could not instantiate applet", e ); panel.showFailed(); return; } //} // synchronized app.setVisible(false); Main.debug("panel.add( \"Center\", app );"); panel.setApplet( app ); Main.debug("app.setSize(appletSize);"); app.setSize(appletSize); context.showStatus("Initializing Applet " + appletName + " ..."); Main.debug("Applet " + appletName + " id=" + appletID + " initializing..."); try { app.init(); } catch (Error e) { Main.info("Error " + e.toString() + " during applet initialization"); e.printStackTrace(); return; } loader.removeStatusListener(panel); app.setVisible(true); Main.debug("Applet " + appletName + " id=" + appletID + " initialized."); Main.debug("app.setSize(appletSize);"); app.setSize(appletSize); app.validate(); Main.debug("app.setVisible(true);"); app.setVisible(true); Main.debug("panel.setVisible(true);"); panel.setVisible(true); Main.debug("setVisible(true);"); setVisible(true); //repaint(1L); //panel.repaint(1L); //--Main.debug("app.repaint(1L);"); app.repaint(0L); context.showStatus("Starting Applet " + appletName + " ..."); // create a new thread, so we know, when the applet was started Main.debug("Applet " + appletName + " id=" + appletID + " starting..."); Thread appletThread = new KJASAppletThread(app, "KJAS-Applet-" + appletID + "-" + appletName); panel.stopAnimation(); appletThread.start(); Main.debug("Applet " + appletName + " id=" + appletID + " started."); context.showStatus("Applet " + appletName + " started."); //setVisible(true); } | 45545 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45545/3ea62068168d1d5e148e98e6c40ca7f4f9a004b0/KJASAppletStub.java/clean/khtml/java/org/kde/kjas/server/KJASAppletStub.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
1086,
1435,
288,
7734,
368,
2211,
1353,
353,
8572,
10802,
471,
23151,
279,
1525,
813,
7734,
368,
869,
7837,
596,
17,
2727,
1404,
5612,
518,
3308,
1915,
854,
7734,
368,
7688,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
1086,
1435,
288,
7734,
368,
2211,
1353,
353,
8572,
10802,
471,
23151,
279,
1525,
813,
7734,
368,
869,
7837,
596,
17,
2727,
1404,
5612,
518,
3308,
1915,
854,
7734,
368,
7688,
7... |
Scriptable so = context.toObject(obj, global); | Scriptable so = Context.toObject(obj, global); | public Object get(Object obj, String propname) { if ((obj == null) || (propname == null)) { return null; } String prototypeName = app.getPrototypeName(obj); if ("user".equalsIgnoreCase(prototypeName) && "password".equalsIgnoreCase(propname)) { return "[macro access to password property not allowed]"; } // if this is a HopObject, check if the property is defined // in the type.properties db-mapping. if (obj instanceof INode) { DbMapping dbm = app.getDbMapping(prototypeName); if (dbm != null) { Relation rel = dbm.propertyToRelation(propname); if ((rel == null) || !rel.isPrimitive()) { return "[property \"" + propname + "\" is not defined for " + prototypeName + "]"; } } } Scriptable so = context.toObject(obj, global); try { Object prop = so.get(propname, so); if ((prop == null) || (prop == Undefined.instance)) { return null; } else if (prop instanceof NativeJavaObject) { return ((NativeJavaObject) prop).unwrap(); } else { return prop; } } catch (Exception esx) { // System.err.println ("Error in getProperty: "+esx); return null; } } | 46029 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46029/2f39d4f9080cbaa258e99279b7b1c5a043cd34e3/RhinoEngine.java/clean/src/helma/scripting/rhino/RhinoEngine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
336,
12,
921,
1081,
16,
514,
2270,
529,
13,
288,
3639,
309,
14015,
2603,
422,
446,
13,
747,
261,
5986,
529,
422,
446,
3719,
288,
5411,
327,
446,
31,
3639,
289,
3639,
514,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
336,
12,
921,
1081,
16,
514,
2270,
529,
13,
288,
3639,
309,
14015,
2603,
422,
446,
13,
747,
261,
5986,
529,
422,
446,
3719,
288,
5411,
327,
446,
31,
3639,
289,
3639,
514,
... |
if (undo != null) { | if (compoundEdit != null) { compoundEdit.addEdit(e.getEdit()); } else if (undo != null) { | public void undoableEditHappened(UndoableEditEvent e) { if (undo != null) { undo.addEdit(e.getEdit()); undoAction.updateUndoState(); redoAction.updateRedoState(); } } | 8833 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8833/5e137a70ed86abcf800133fce5e0bc821ae7c55a/Editor.java/buggy/app/Editor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
6647,
1071,
918,
15436,
429,
4666,
44,
438,
1907,
329,
12,
31224,
429,
4666,
1133,
425,
13,
288,
5411,
309,
261,
22585,
4666,
480,
446,
13,
288,
11360,
4666,
18,
1289,
4666,
12,
73,
18,
588,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
6647,
1071,
918,
15436,
429,
4666,
44,
438,
1907,
329,
12,
31224,
429,
4666,
1133,
425,
13,
288,
5411,
309,
261,
22585,
4666,
480,
446,
13,
288,
11360,
4666,
18,
1289,
4666,
12,
73,
18,
588,... |
if (tt != ts.EOF && tt != ts.EOL && tt != ts.SEMI && tt != ts.RC) { | if (tt != ts.EOF && tt != ts.EOL && tt != ts.SEMI && tt != ts.RC && !(tt == ts.PRIMARY && ts.getOp() == ts.THIS)) { | private Object statementHelper(TokenStream ts, Source source) throws IOException, JavaScriptException { Object pn = null; // If skipsemi == true, don't add SEMI + EOL to source at the // end of this statment. For compound statements, IF/FOR etc. boolean skipsemi = false; int tt; int lastExprType = 0; // For wellTerminated. 0 to avoid warning. tt = ts.getToken(); switch(tt) { case ts.IF: { skipsemi = true; source.append((char)ts.IF); int lineno = ts.getLineno(); Object cond = condition(ts, source); source.append((char)ts.LC); source.append((char)ts.EOL); Object ifTrue = statement(ts, source); Object ifFalse = null; if (ts.matchToken(ts.ELSE)) { source.append((char)ts.RC); source.append((char)ts.ELSE); source.append((char)ts.LC); source.append((char)ts.EOL); ifFalse = statement(ts, source); } source.append((char)ts.RC); source.append((char)ts.EOL); pn = nf.createIf(cond, ifTrue, ifFalse, lineno); break; } case ts.SWITCH: { skipsemi = true; source.append((char)ts.SWITCH); pn = nf.createSwitch(ts.getLineno()); Object cur_case = null; // to kill warning Object case_statements; mustMatchToken(ts, ts.LP, "msg.no.paren.switch"); source.append((char)ts.LP); nf.addChildToBack(pn, expr(ts, source, false)); mustMatchToken(ts, ts.RP, "msg.no.paren.after.switch"); source.append((char)ts.RP); mustMatchToken(ts, ts.LC, "msg.no.brace.switch"); source.append((char)ts.LC); source.append((char)ts.EOL); while ((tt = ts.getToken()) != ts.RC && tt != ts.EOF) { switch(tt) { case ts.CASE: source.append((char)ts.CASE); cur_case = nf.createUnary(ts.CASE, expr(ts, source, false)); source.append((char)ts.COLON); source.append((char)ts.EOL); break; case ts.DEFAULT: cur_case = nf.createLeaf(ts.DEFAULT); source.append((char)ts.DEFAULT); source.append((char)ts.COLON); source.append((char)ts.EOL); // XXX check that there isn't more than one default break; default: reportError(ts, "msg.bad.switch"); break; } mustMatchToken(ts, ts.COLON, "msg.no.colon.case"); case_statements = nf.createLeaf(TokenStream.BLOCK); while ((tt = ts.peekToken()) != ts.RC && tt != ts.CASE && tt != ts.DEFAULT && tt != ts.EOF) { nf.addChildToBack(case_statements, statement(ts, source)); } // assert cur_case nf.addChildToBack(cur_case, case_statements); nf.addChildToBack(pn, cur_case); } source.append((char)ts.RC); source.append((char)ts.EOL); break; } case ts.WHILE: { skipsemi = true; source.append((char)ts.WHILE); int lineno = ts.getLineno(); Object cond = condition(ts, source); source.append((char)ts.LC); source.append((char)ts.EOL); Object body = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); pn = nf.createWhile(cond, body, lineno); break; } case ts.DO: { source.append((char)ts.DO); source.append((char)ts.LC); source.append((char)ts.EOL); int lineno = ts.getLineno(); Object body = statement(ts, source); source.append((char)ts.RC); mustMatchToken(ts, ts.WHILE, "msg.no.while.do"); source.append((char)ts.WHILE); Object cond = condition(ts, source); pn = nf.createDoWhile(body, cond, lineno); break; } case ts.FOR: { skipsemi = true; source.append((char)ts.FOR); int lineno = ts.getLineno(); Object init; // Node init is also foo in 'foo in Object' Object cond; // Node cond is also object in 'foo in Object' Object incr = null; // to kill warning Object body; mustMatchToken(ts, ts.LP, "msg.no.paren.for"); source.append((char)ts.LP); tt = ts.peekToken(); if (tt == ts.SEMI) { init = nf.createLeaf(ts.VOID); } else { if (tt == ts.VAR) { // set init to a var list or initial ts.getToken(); // throw away the 'var' token init = variables(ts, source, true); } else { init = expr(ts, source, true); } } tt = ts.peekToken(); if (tt == ts.RELOP && ts.getOp() == ts.IN) { ts.matchToken(ts.RELOP); source.append((char)ts.IN); // 'cond' is the object over which we're iterating cond = expr(ts, source, false); } else { // ordinary for loop mustMatchToken(ts, ts.SEMI, "msg.no.semi.for"); source.append((char)ts.SEMI); if (ts.peekToken() == ts.SEMI) { // no loop condition cond = nf.createLeaf(ts.VOID); } else { cond = expr(ts, source, false); } mustMatchToken(ts, ts.SEMI, "msg.no.semi.for.cond"); source.append((char)ts.SEMI); if (ts.peekToken() == ts.RP) { incr = nf.createLeaf(ts.VOID); } else { incr = expr(ts, source, false); } } mustMatchToken(ts, ts.RP, "msg.no.paren.for.ctrl"); source.append((char)ts.RP); source.append((char)ts.LC); source.append((char)ts.EOL); body = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); if (incr == null) { // cond could be null if 'in obj' got eaten by the init node. pn = nf.createForIn(init, cond, body, lineno); } else { pn = nf.createFor(init, cond, incr, body, lineno); } break; } case ts.TRY: { int lineno = ts.getLineno(); Object tryblock; Object catchblocks = null; Object finallyblock = null; skipsemi = true; source.append((char)ts.TRY); source.append((char)ts.LC); source.append((char)ts.EOL); tryblock = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); catchblocks = nf.createLeaf(TokenStream.BLOCK); int peek = ts.peekToken(); if (peek == ts.CATCH) { while (ts.matchToken(ts.CATCH)) { source.append((char)ts.CATCH); mustMatchToken(ts, ts.LP, "msg.no.paren.catch"); source.append((char)ts.LP); mustMatchToken(ts, ts.NAME, "msg.bad.catchcond"); String varName = ts.getString(); source.addString(ts.NAME, varName); Object catchCond = null; if (implementsCatchCond && ts.matchToken(ts.COLON)) { source.append((char)ts.COLON); catchCond = expr(ts, source, false); } mustMatchToken(ts, ts.RP, "msg.bad.catchcond"); source.append((char)ts.RP); mustMatchToken(ts, ts.LC, "msg.no.brace.catchblock"); source.append((char)ts.LC); source.append((char)ts.EOL); nf.addChildToBack(catchblocks, nf.createCatch(varName, catchCond, statements(ts, source), ts.getLineno())); mustMatchToken(ts, ts.RC, "msg.no.brace.after.body"); source.append((char)ts.RC); source.append((char)ts.EOL); } } else if (peek != ts.FINALLY) { mustMatchToken(ts, ts.FINALLY, "msg.try.no.catchfinally"); } if (ts.matchToken(ts.FINALLY)) { source.append((char)ts.FINALLY); source.append((char)ts.LC); source.append((char)ts.EOL); finallyblock = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); } pn = nf.createTryCatchFinally(tryblock, catchblocks, finallyblock, lineno); break; } case ts.THROW: { int lineno = ts.getLineno(); source.append((char)ts.THROW); pn = nf.createThrow(expr(ts, source, false), lineno); if (lineno == ts.getLineno()) wellTerminated(ts, ts.ERROR); break; } case ts.BREAK: { int lineno = ts.getLineno(); source.append((char)ts.BREAK); // matchLabel only matches if there is one String label = matchLabel(ts); if (label != null) { source.addString(ts.NAME, label); } pn = nf.createBreak(label, lineno); break; } case ts.CONTINUE: { int lineno = ts.getLineno(); source.append((char)ts.CONTINUE); // matchLabel only matches if there is one String label = matchLabel(ts); if (label != null) { source.addString(ts.NAME, label); } pn = nf.createContinue(label, lineno); break; } case ts.WITH: { skipsemi = true; source.append((char)ts.WITH); int lineno = ts.getLineno(); mustMatchToken(ts, ts.LP, "msg.no.paren.with"); source.append((char)ts.LP); Object obj = expr(ts, source, false); mustMatchToken(ts, ts.RP, "msg.no.paren.after.with"); source.append((char)ts.RP); source.append((char)ts.LC); source.append((char)ts.EOL); Object body = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); pn = nf.createWith(obj, body, lineno); break; } case ts.VAR: { int lineno = ts.getLineno(); pn = variables(ts, source, false); if (ts.getLineno() == lineno) wellTerminated(ts, ts.ERROR); break; } case ts.RETURN: { Object retExpr = null; int lineno = 0; source.append((char)ts.RETURN); // bail if we're not in a (toplevel) function if ((ts.flags & ts.TSF_FUNCTION) == 0) reportError(ts, "msg.bad.return"); /* This is ugly, but we don't want to require a semicolon. */ ts.flags |= ts.TSF_REGEXP; tt = ts.peekTokenSameLine(); ts.flags &= ~ts.TSF_REGEXP; if (tt != ts.EOF && tt != ts.EOL && tt != ts.SEMI && tt != ts.RC) { lineno = ts.getLineno(); retExpr = expr(ts, source, false); if (ts.getLineno() == lineno) wellTerminated(ts, ts.ERROR); ts.flags |= ts.TSF_RETURN_EXPR; } else { ts.flags |= ts.TSF_RETURN_VOID; } if ((ts.flags & (ts.TSF_RETURN_EXPR | ts.TSF_RETURN_VOID)) == (ts.TSF_RETURN_EXPR | ts.TSF_RETURN_VOID)) reportError(ts, "msg.fn.retval"); // XXX ASSERT pn pn = nf.createReturn(retExpr, lineno); break; } case ts.LC: skipsemi = true; pn = statements(ts, source); mustMatchToken(ts, ts.RC, "msg.no.brace.block"); break; case ts.ERROR: reportError(ts, "msg.scanner.caught.error"); // Fall thru, to have a node for error recovery to work on case ts.EOL: case ts.SEMI: pn = nf.createLeaf(ts.VOID); skipsemi = true; break; default: { lastExprType = tt; int tokenno = ts.getTokenno(); ts.ungetToken(tt); int lineno = ts.getLineno(); pn = expr(ts, source, false); if (ts.peekToken() == ts.COLON) { /* check that the last thing the tokenizer returned was a * NAME and that only one token was consumed. */ if (lastExprType != ts.NAME || (ts.getTokenno() != tokenno)) reportError(ts, "msg.bad.label"); ts.getToken(); // eat the COLON /* in the C source, the label is associated with the * statement that follows: * nf.addChildToBack(pn, statement(ts)); */ String name = ts.getString(); pn = nf.createLabel(name, lineno); // depend on decompiling lookahead to guess that that // last name was a label. source.append((char)ts.COLON); source.append((char)ts.EOL); return pn; } pn = nf.createExprStatement(pn, lineno); /* * Check explicitly against (multi-line) function * statement. * lastExprEndLine is a hack to fix an * automatic semicolon insertion problem with function * expressions; the ts.getLineno() == lineno check was * firing after a function definition even though the * next statement was on a new line, because * speculative getToken calls advanced the line number * even when they didn't succeed. */ if (ts.getLineno() == lineno || (lastExprType == ts.FUNCTION && ts.getLineno() == lastExprEndLine)) { wellTerminated(ts, lastExprType); } break; } } ts.matchToken(ts.SEMI); if (!skipsemi) { source.append((char)ts.SEMI); source.append((char)ts.EOL); } return pn; } | 47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/7b356f28dc70a29a83bd20fd8531240905b10ee9/Parser.java/buggy/org/mozilla/javascript/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
3021,
2276,
12,
1345,
1228,
3742,
16,
4998,
1084,
13,
3639,
1216,
1860,
16,
11905,
503,
565,
288,
3639,
1033,
11059,
273,
446,
31,
3639,
368,
971,
2488,
307,
9197,
422,
638,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3021,
2276,
12,
1345,
1228,
3742,
16,
4998,
1084,
13,
3639,
1216,
1860,
16,
11905,
503,
565,
288,
3639,
1033,
11059,
273,
446,
31,
3639,
368,
971,
2488,
307,
9197,
422,
638,
... |
if (myMouseInside) | if (myMouseInside) { | public Paint getOutlinePaint() { if (myMouseInside) return getHighlightOutlineColor(); else if (mySelected) return getSelectedOutlineColor(); else return myOutlineColor; } | 11319 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11319/5a27ee0fb244c1de62fe044d34d5e1838dacefef/Lozenge.java/buggy/datagrabber/src/org/cougaar/mlm/ui/newtpfdd/gui/component/Lozenge.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
30001,
336,
21805,
12699,
1435,
288,
202,
430,
261,
4811,
9186,
18619,
13,
202,
565,
327,
7628,
2031,
5099,
21805,
2957,
5621,
202,
12107,
309,
261,
4811,
7416,
13,
202,
565,
327,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
30001,
336,
21805,
12699,
1435,
288,
202,
430,
261,
4811,
9186,
18619,
13,
202,
565,
327,
7628,
2031,
5099,
21805,
2957,
5621,
202,
12107,
309,
261,
4811,
7416,
13,
202,
565,
327,
1... |
table2dc.put("ItemsBySubject", item.getDC("subject", Item.ANY, Item.ANY)); | table2dc.put("ItemsBySubject", item .getDC("subject", Item.ANY, Item.ANY)); | public static void itemAdded(Context context, Item item) throws SQLException { // add all parent communities to communities2item table Community[] parents = item.getCommunities(); for (int j = 0; j < parents.length; j++) { TableRow row = DatabaseManager.create(context, "Communities2Item"); row.setColumn("item_id", item.getID()); row.setColumn("community_id", parents[j].getID()); DatabaseManager.update(context, row); } Map table2dc = new HashMap(); table2dc.put("ItemsByTitle", item.getDC("title", null, Item.ANY)); table2dc.put("ItemsByAuthor", item.getDC("creator", null, Item.ANY)); table2dc.put("ItemsByDate", item.getDC("date", "issued", Item.ANY)); table2dc.put("ItemsByDateAccessioned", item.getDC("date", "accessioned", Item.ANY)); // TODO: Get from config? (Richard Jones patch?) table2dc.put("ItemsBySubject", item.getDC("subject", Item.ANY, Item.ANY)); for (Iterator iterator = table2dc.keySet().iterator(); iterator .hasNext();) { String table = (String) iterator.next(); DCValue[] dc = (DCValue[]) table2dc.get(table); for (int i = 0; i < dc.length; i++) { TableRow row = DatabaseManager.create(context, table); row.setColumn("item_id", item.getID()); String value = dc[i].value; if ("ItemsByDateAccessioned".equals(table)) { row.setColumn("date_accessioned", value); } else if ("ItemsByDate".equals(table)) { row.setColumn("date_issued", value); } else if ("ItemsByAuthor".equals(table)) { // author name, and normalized sorting name // (which for now is simple lower-case) row.setColumn("author", value); row.setColumn("sort_author", value.toLowerCase()); } else if ("ItemsByTitle".equals(table)) { String title = NormalizedTitle.normalize(value, dc[i].language); row.setColumn("title", value); row.setColumn("sort_title", title.toLowerCase()); } else if ("ItemsBySubject".equals(table)) { row.setColumn("subject", value); row.setColumn("sort_subject", value.toLowerCase()); } DatabaseManager.update(context, row); } } } | 1868 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1868/36e0aff656ae4c75308793a5e6744544f92e9646/Browse.java/clean/dspace/src/org/dspace/browse/Browse.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
761,
8602,
12,
1042,
819,
16,
4342,
761,
13,
5411,
1216,
6483,
565,
288,
3639,
368,
527,
777,
982,
8391,
1961,
358,
8391,
1961,
22,
1726,
1014,
3639,
16854,
13352,
8526,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
761,
8602,
12,
1042,
819,
16,
4342,
761,
13,
5411,
1216,
6483,
565,
288,
3639,
368,
527,
777,
982,
8391,
1961,
358,
8391,
1961,
22,
1726,
1014,
3639,
16854,
13352,
8526,
... |
listenerList.add (ListDataListener.class, listener); | listenerList.add(ListDataListener.class, listener); | public void addListDataListener(ListDataListener listener) { listenerList.add (ListDataListener.class, listener); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/0788b89b7368770a1157f825d60dd8c5a9df183e/AbstractListModel.java/clean/core/src/classpath/javax/javax/swing/AbstractListModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
527,
682,
751,
2223,
12,
682,
751,
2223,
2991,
13,
282,
288,
565,
2991,
682,
18,
1289,
12,
682,
751,
2223,
18,
1106,
16,
2991,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
527,
682,
751,
2223,
12,
682,
751,
2223,
2991,
13,
282,
288,
565,
2991,
682,
18,
1289,
12,
682,
751,
2223,
18,
1106,
16,
2991,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-1... |
cat.error("Not contained in XMI: " + it.next()); | LOG.error("Not contained in XMI: " + it.next()); | private void logNotContainedElements(XMIWriter xmiwriter) { if (xmiwriter != null) { Iterator it = xmiwriter.getNotContainedElements().iterator(); while (it.hasNext()) cat.error("Not contained in XMI: " + it.next()); } } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/56eeb0d4d18fb3e553e32d15e2c45dccd76eb958/ProjectMemberModel.java/buggy/src_new/org/argouml/uml/ProjectMemberModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
613,
1248,
660,
8707,
3471,
12,
60,
7492,
2289,
619,
9197,
6299,
13,
288,
3639,
309,
261,
92,
9197,
6299,
480,
446,
13,
288,
5411,
4498,
518,
273,
619,
9197,
6299,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
613,
1248,
660,
8707,
3471,
12,
60,
7492,
2289,
619,
9197,
6299,
13,
288,
3639,
309,
261,
92,
9197,
6299,
480,
446,
13,
288,
5411,
4498,
518,
273,
619,
9197,
6299,
18,
588,
... |
0, 0, 0, 0, 787, 0, 0, 106, 47, 48, | 0, 0, 0, 0, 276, 0, 0, 106, 47, 48, | private static final short[] yyTable4() { return new short[] { 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 45, 58, 0, 46, 47, 48, 49, 0, 50, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 3, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 45, 233, 0, 261, 47, 48, 49, 0, 50, 412, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 0, 0, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 233, 0, 0, 0, 0, 45, 0, 0, 46, 47, 48, 49, 0, 50, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 0, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 45, 0, 0, 46, 47, 48, 49, 0, 50, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 0, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 231, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 231, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 414, 48, 49, 0, 231, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 611, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 615, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 611, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 804, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 808, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 812, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 867, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 251, 0, 0, 58, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 869, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 881, 232, 51, 52, 53, 54, 55, 56, 0, 251, 251, 251, 57, 251, 0, 0, 0, 251, 251, 0, 0, 0, 251, 0, 251, 251, 251, 251, 251, 251, 251, 0, 0, 0, 0, 251, 251, 251, 251, 251, 251, 251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 0, 251, 251, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 251, 0, 0, 251, 251, 251, 251, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 4, 5, 6, 251, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 266, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 526, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 526, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 593, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 483, 0, 0, 0, 0, 0, 0, 483, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 641, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 483, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 769, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 798, 0, 51, 52, 53, 54, 55, 56, 0, 483, 483, 483, 57, 483, 0, 0, 0, 483, 483, 0, 0, 0, 483, 0, 483, 483, 483, 483, 483, 483, 483, 0, 0, 0, 0, 483, 483, 483, 483, 483, 483, 483, 0, 0, 0, 0, 0, 0, 0, 0, 0, 483, 0, 0, 483, 483, 483, 483, 483, 483, 483, 483, 483, 483, 0, 483, 483, 0, 483, 483, 59, 0, 0, 213, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 483, 0, 0, 483, 483, 483, 483, 0, 0, 0, 483, 483, 483, 483, 483, 483, 0, 4, 5, 6, 483, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 213, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 207, 0, 0, 106, 47, 48, 49, 0, 47, 0, 51, 52, 53, 54, 55, 56, 0, 213, 213, 213, 57, 213, 0, 0, 0, 213, 213, 0, 0, 0, 213, 0, 213, 213, 213, 213, 213, 213, 213, 47, 0, 0, 0, 213, 213, 213, 213, 213, 213, 213, 0, 0, 0, 0, 0, 0, 47, 47, 0, 213, 0, 0, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 0, 213, 213, 0, 213, 213, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 213, 0, 0, 213, 213, 213, 213, 175, 0, 174, 213, 213, 213, 213, 213, 213, 0, 0, 0, 0, 213, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 47, 47, 47, 0, 0, 47, 47, 47, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 47, 47, 0, 47, 47, 47, 47, 47, 0, 0, 0, 0, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 251, 0, 199, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 173, 0, 200, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 0, 0, 199, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 183, 178, 0, 186, 0, 181, 179, 0, 180, 173, 182, 200, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 176, 182, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 35, 36, 159, 38, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 116, 117, 118, 119, 120, 121, 122, 123, 0, 173, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 281, 282, 199, 283, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 183, 178, 0, 0, 0, 181, 179, 0, 180, 173, 182, 0, 0, 0, 520, 516, 0, 0, 521, 0, 0, 0, 0, 175, 0, 174, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 183, 178, 0, 0, 0, 181, 179, 0, 180, 173, 182, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 177, 184, 185, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 0, 0, 199, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 173, 0, 0, 0, 0, 546, 509, 0, 0, 547, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 584, 509, 0, 0, 585, 0, 0, 0, 0, 173, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 587, 516, 0, 173, 588, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 183, 178, 0, 0, 0, 181, 179, 0, 180, 173, 182, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 177, 184, 185, 175, 0, 174, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 175, 0, 174, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 177, 184, 185, 175, 0, 174, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 175, 0, 174, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 177, 184, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 602, 509, 0, 0, 603, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 605, 516, 0, 0, 606, 0, 0, 0, 0, 173, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 643, 509, 0, 173, 644, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 646, 516, 0, 0, 647, 0, 0, 0, 0, 173, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 857, 509, 0, 173, 858, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 860, 516, 0, 0, 861, 0, 0, 0, 0, 173, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 4, 5, 6, 0, 8, 0, 0, 173, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 102, 34, 35, 36, 103, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 104, 0, 0, 105, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 107, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 224, 0, 0, 46, 47, 48, 49, 0, 50, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 107, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 276, 0, 0, 349, 47, 48, 49, 0, 350, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 107, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 276, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 107, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 787, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 107, }; } | 45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/f5c9a1ebd775712f2dc086acfce1a14a123ec632/YyTables.java/buggy/src/org/jruby/parser/YyTables.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1388,
24,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
5411,
374,
16,
565,
374,
16,
565,
374,
16,
282,
5342,
16,
282,
4200,
16,
282,
9035,
16,
282,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1388,
24,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
5411,
374,
16,
565,
374,
16,
565,
374,
16,
282,
5342,
16,
282,
4200,
16,
282,
9035,
16,
282,
11... |
m_remoteAddr = addr; | remoteAddr = addr; | public void setClientAddress(InetAddress addr) { m_remoteAddr = addr; } | 48500 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48500/f8bdbb2dab0d67be139dd05d6110e466306c8868/FtpRequestImpl.java/buggy/src/java/org/apache/ftpserver/FtpRequestImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26001,
1887,
12,
382,
278,
1887,
3091,
13,
288,
3639,
30184,
273,
3091,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26001,
1887,
12,
382,
278,
1887,
3091,
13,
288,
3639,
30184,
273,
3091,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if (actionsetId.equals(id)) itemsToRemove.add(items[i]); | if (actionsetId.equals(id)) { itemsToRemove.add(items[i]); } | private void revokeActionSetFromToolbar(IToolBarManager toolbarMgr, String actionsetId) { IContributionItem[] items = toolbarMgr.getItems(); ArrayList itemsToRemove = new ArrayList(); String id; for (int i = 0; i < items.length; i++) { id = items[i].getId(); if (id.equals(actionsetId)) { itemsToRemove.add(items[i]); continue; } if (items[i] instanceof PluginActionCoolBarContributionItem) { id = ((PluginActionCoolBarContributionItem) items[i]) .getActionSetId(); if (actionsetId.equals(id)) itemsToRemove.add(items[i]); } else if (items[i] instanceof ActionContributionItem) { id = ((ActionContributionItem) items[i]).getId(); if (actionsetId.equals(id)) itemsToRemove.add(items[i]); } else if (items[i] instanceof GroupMarker) { id = ((GroupMarker) items[i]).getId(); if (actionsetId.equals(id)) itemsToRemove.add(items[i]); } } Iterator iter = itemsToRemove.iterator(); while (iter.hasNext()) toolbarMgr.remove((IContributionItem) iter.next()); toolbarMgr.update(true); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/PluginActionSetBuilder.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PluginActionSetBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
18007,
1803,
694,
1265,
17907,
12,
45,
6364,
5190,
1318,
12748,
9455,
16,
7734,
514,
1301,
542,
548,
13,
288,
5411,
467,
442,
4027,
1180,
8526,
1516,
273,
12748,
9455,
18,
588,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18007,
1803,
694,
1265,
17907,
12,
45,
6364,
5190,
1318,
12748,
9455,
16,
7734,
514,
1301,
542,
548,
13,
288,
5411,
467,
442,
4027,
1180,
8526,
1516,
273,
12748,
9455,
18,
588,... |
} | private void constructFromInputStream(InputStreamReader treeInputStream) throws IOException { int lineNum = 2; int depthMarker; BufferedReader bReader = new BufferedReader(treeInputStream); JreepadNode babyNode; children = new Vector(); Stack nodeStack = new Stack(); nodeStack.push(this); int hjtFileFormat = -1; String dtLine, nodeLine, titleLine, depthLine; StringBuffer currentContent; String currentLine = bReader.readLine(); // Read the first line, check for treepadness if((currentLine.toLowerCase().startsWith("<treepad") && currentLine.endsWith(">")) ) { hjtFileFormat = 1; } else if((currentLine.toLowerCase().startsWith("<hj-treepad") && currentLine.endsWith(">")) ) { hjtFileFormat = 2; } else { throw new IOException("\"<Treepad>\" tag not found at beginning of file!\n(This can be caused by having the wrong character set specified.)"); } dtLine = "dt=text"; while( (hjtFileFormat == 2 || (dtLine = bReader.readLine())!=null) && (nodeLine = bReader.readLine())!=null && (titleLine = bReader.readLine())!=null && (depthLine = bReader.readLine())!=null) { // Read "dt=text" [or error] - NB THE OLDER FORMAT DOESN'T INCLUDE THIS LINE SO WE SKIP IT if(dtLine.equals("") && nodeLine.startsWith("<bmarks>")) throw new IOException("This is not a Treepad-Lite-compatible file!\n\nFiles created in more advanced versions of Treepad\ncontain features that are not available in Jreepad."); if(hjtFileFormat != 2) if(! (dtLine.toLowerCase().startsWith("dt=text"))) throw new IOException("Unrecognised node dt format at line " + lineNum + ": " + dtLine); // Read "<node>" [or error] if(! (nodeLine.toLowerCase().startsWith("<node>"))) throw new IOException("Unrecognised node format at line " + (lineNum+1) + ": " + nodeLine);// System.out.println("Found node (depth " + depthLine + "): " + titleLine); lineNum += 4; // Read THE CONTENT! [loop until we find "<end node> 5P9i0s8y19Z"] currentContent = new StringBuffer(); while((currentLine = bReader.readLine())!=null && !currentLine.equals("<end node> 5P9i0s8y19Z")) { currentContent.append(currentLine + lineSeparator); lineNum++; } // Now, having established the content and the title and the depth, we'll create the child babyNode = new JreepadNode(titleLine, currentContent.substring(0, Math.max(currentContent.length()-2,0)), (JreepadNode)(nodeStack.peek()));// babyNode = new JreepadNode(titleLine, currentContent.toString()); if(depthLine.equals("0")) { this.title = titleLine; this.content = currentContent.toString(); } else { depthMarker = Integer.parseInt(depthLine); while(nodeStack.size()>depthMarker) nodeStack.pop(); // System.out.println(" Adding it to a "); ((JreepadNode)(nodeStack.peek())).addChild(babyNode); nodeStack.push(babyNode); // Remember THE LEVEL! [single integer: 0 is root node, 1 is children of root, etc.] // Now add the correct node to the right point in the tree } } } // End of constructor from FileInputStream | 6364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6364/8c5e55c0d3808a1585418f3545c02fded2202381/JreepadNode.java/clean/jreepad/src/jreepad/JreepadNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
4872,
1265,
4348,
12,
4348,
2514,
2151,
4348,
13,
1216,
1860,
225,
288,
565,
509,
980,
2578,
273,
576,
31,
565,
509,
3598,
7078,
31,
565,
10633,
324,
2514,
273,
394,
10633,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4872,
1265,
4348,
12,
4348,
2514,
2151,
4348,
13,
1216,
1860,
225,
288,
565,
509,
980,
2578,
273,
576,
31,
565,
509,
3598,
7078,
31,
565,
10633,
324,
2514,
273,
394,
10633,
1... | |
.discoverService(serviceName, props, 1); | .discoverService(serviceName, props, 2); | String discoverService(IpServiceDiscovery discoveryIf, String serviceName) throws TpCommonExceptions, P_UNKNOWN_SERVICE_TYPE, P_ILLEGAL_SERVICE_TYPE, P_INVALID_PROPERTY, P_ACCESS_DENIED { // Create a list of service properties that indicates what kind of // service we are looking for. In our case the service is identified // only by its name.// TpServiceProperty prop = new TpServiceProperty("Service Name",// new String[] { serviceName }); TpServiceProperty[] props = new TpServiceProperty[0]; // Obtain a service ID of the service /*********************************************************************** * Do the OSA invocation: discoverService() **********************************************************************/ TpService[] svcList = discoveryIf .discoverService(serviceName, props, 1); // Return the service ID of the service return svcList[0].ServiceID; } | 9163 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9163/36f1c1bd58950f5780ad08cd52db56cf3c131ebc/ApplicationFramework.java/clean/gccs/src/group5/client/ApplicationFramework.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
780,
10372,
1179,
12,
5273,
1179,
11918,
11030,
2047,
16,
514,
6773,
13,
1082,
202,
15069,
28738,
6517,
11416,
16,
453,
67,
14737,
67,
12426,
67,
2399,
16,
1082,
202,
52,
67,
2627,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
780,
10372,
1179,
12,
5273,
1179,
11918,
11030,
2047,
16,
514,
6773,
13,
1082,
202,
15069,
28738,
6517,
11416,
16,
453,
67,
14737,
67,
12426,
67,
2399,
16,
1082,
202,
52,
67,
2627,
... |
case Id_toLocaleString: return realThis(thisObj, f). jsFunction_toLocaleString(toBase(args, 0)); | case Id_toFixed: return realThis(thisObj, f). jsFunction_toFixed(cx, args); | public Object execMethod (int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { switch (methodId) { case Id_constructor: return jsConstructor(args, thisObj == null); case Id_toString: return realThis(thisObj, f). jsFunction_toString(toBase(args, 0)); case Id_valueOf: return wrap_double(realThis(thisObj, f). jsFunction_valueOf()); case Id_toLocaleString: return realThis(thisObj, f). jsFunction_toLocaleString(toBase(args, 0)); case Id_toFixed: return realThis(thisObj, f).jsFunction_toFixed(cx, args); case Id_toExponential: return realThis(thisObj, f).jsFunction_toExponential(cx, args); case Id_toPrecision: return realThis(thisObj, f).jsFunction_toPrecision(cx, args); } return super.execMethod(methodId, f, cx, scope, thisObj, args); } | 12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/35caf7c2bb93872680ae16e34746d94fe1e533e3/NativeNumber.java/clean/js/rhino/src/org/mozilla/javascript/NativeNumber.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
284,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
284,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
... |
case 156: | public final void caseClause() throws RecognitionException, TokenStreamException, XPathException { returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST caseClause_AST = null; String varName; org.exist.xquery.parser.XQueryAST tmp150_AST = null; tmp150_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp150_AST); match(LITERAL_case); { switch ( LA(1)) { case DOLLAR: { caseVar(); astFactory.addASTChild(currentAST, returnAST); break; } case NCNAME: case LITERAL_xquery: case LITERAL_version: case LITERAL_module: case LITERAL_namespace: case LITERAL_import: case LITERAL_declare: case LITERAL_default: case LITERAL_xmlspace: case LITERAL_ordering: case LITERAL_construction: case LITERAL_function: case LITERAL_variable: case LITERAL_encoding: case LITERAL_collation: case LITERAL_element: case LITERAL_preserve: case LITERAL_strip: case LITERAL_ordered: case LITERAL_unordered: case LITERAL_at: case LITERAL_as: case LITERAL_empty: case LITERAL_item: case LITERAL_for: case LITERAL_let: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_order: case LITERAL_by: case LITERAL_typeswitch: case LITERAL_then: case LITERAL_else: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_of: case LITERAL_cast: case LITERAL_is: case LITERAL_isnot: case LITERAL_to: case LITERAL_div: case LITERAL_mod: case LITERAL_union: case LITERAL_intersect: case LITERAL_except: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 138: case 139: case LITERAL_document: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 151: case 152: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 156: case 157: case LITERAL_collection: case LITERAL_preceding: { break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } sequenceType(); astFactory.addASTChild(currentAST, returnAST); match(LITERAL_return); exprSingle(); astFactory.addASTChild(currentAST, returnAST); caseClause_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; returnAST = caseClause_AST; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/b1f955b7f1cec4172ad3be7bd2855bd3cca3e6f2/XQueryParser.java/clean/src/org/exist/xquery/parser/XQueryParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
648,
7044,
1435,
1216,
9539,
16,
3155,
1228,
503,
16,
10172,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
648,
7044,
1435,
1216,
9539,
16,
3155,
1228,
503,
16,
10172,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
56... | |
public org.quickfix.field.UnderlyingMaturityDate getUnderlyingMaturityDate() throws FieldNotFound { org.quickfix.field.UnderlyingMaturityDate value = new org.quickfix.field.UnderlyingMaturityDate(); | public quickfix.field.UnderlyingMaturityDate getUnderlyingMaturityDate() throws FieldNotFound { quickfix.field.UnderlyingMaturityDate value = new quickfix.field.UnderlyingMaturityDate(); | public org.quickfix.field.UnderlyingMaturityDate getUnderlyingMaturityDate() throws FieldNotFound { org.quickfix.field.UnderlyingMaturityDate value = new org.quickfix.field.UnderlyingMaturityDate(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/MarketDataSnapshotFullRefresh.java/buggy/src/java/src/quickfix/fix44/MarketDataSnapshotFullRefresh.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
15947,
2336,
1626,
10833,
765,
6291,
15947,
2336,
1626,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
15947,
2336,
1626,
10833,
765,
6291,
15947,
2336,
1626,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
... |
t.select(Utilities.getRowStart(t, newDot), Utilities.getRowEnd(t, newDot)); | { setDot(Utilities.getRowStart(t, newDot)); moveDot( Utilities.getRowEnd(t, newDot)); } | public void mouseClicked(MouseEvent event) { int count = event.getClickCount(); if (count >= 2) { int newDot = getComponent().viewToModel(event.getPoint()); JTextComponent t = getComponent(); try { if (count == 3) t.select(Utilities.getRowStart(t, newDot), Utilities.getRowEnd(t, newDot)); else { int nextWord = Utilities.getNextWord(t, newDot); // When the mouse points at the offset of the first character // in a word Utilities().getPreviousWord will not return that // word but we want to select that. We have to use // Utilities.nextWord() to get it. if (newDot == nextWord) t.select(nextWord, Utilities.getNextWord(t, nextWord)); else { int previousWord = Utilities.getPreviousWord(t, newDot); int previousWordEnd = Utilities.getWordEnd(t, previousWord); // If the user clicked in the space between two words, // then select the space. if (newDot >= previousWordEnd && newDot <= nextWord) t.select(previousWordEnd, nextWord); // Otherwise select the word under the mouse pointer. else t.select(previousWord, previousWordEnd); } } } catch(BadLocationException ble) { // TODO: Swallowing ok here? } dot = newDot; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/DefaultCaret.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultCaret.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
7644,
27633,
12,
9186,
1133,
871,
13,
225,
288,
565,
509,
1056,
273,
871,
18,
588,
6563,
1380,
5621,
3639,
309,
261,
1883,
1545,
576,
13,
1377,
288,
3639,
509,
394,
10412,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7644,
27633,
12,
9186,
1133,
871,
13,
225,
288,
565,
509,
1056,
273,
871,
18,
588,
6563,
1380,
5621,
3639,
309,
261,
1883,
1545,
576,
13,
1377,
288,
3639,
509,
394,
10412,
27... |
public static void unzipFiles(File zippedfile, String destPath) throws FileNotFoundException, IOException { | public static List<File> unzipFiles(File zippedfile, String destPath) throws FileNotFoundException, IOException { ZipFile zipFile = new ZipFile(zippedfile); | public static void unzipFiles(File zippedfile, String destPath) throws FileNotFoundException, IOException { ZipFile zipFile = new ZipFile(zippedfile); Enumeration entries = zipFile.entries(); while (entries.hasMoreElements()) { ZipEntry entry = (ZipEntry) entries.nextElement(); if (entry.isDirectory()) continue; InputStream inputStream = zipFile.getInputStream(entry); FileOutputStream outStream = new FileOutputStream(destPath + File.separator + entry.getName()); copyByteStream(inputStream, outStream); } } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/fe8bf309190b9417e5cfeb9e4a0be7351019f841/ZipFileUtil.java/buggy/org.eclipse.mylyn.context.core/src/org/eclipse/mylyn/internal/context/core/util/ZipFileUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
20259,
2697,
12,
812,
3144,
1845,
768,
16,
514,
22459,
13,
1216,
13707,
16,
1860,
288,
1082,
202,
29394,
19450,
273,
394,
18364,
12,
4450,
1845,
768,
1769,
1082,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20259,
2697,
12,
812,
3144,
1845,
768,
16,
514,
22459,
13,
1216,
13707,
16,
1860,
288,
1082,
202,
29394,
19450,
273,
394,
18364,
12,
4450,
1845,
768,
1769,
1082,
202,
... |
stringBuffer.append(TEXT_12); | stringBuffer.append(TEXT_13); | public String generate(Object argument) { StringBuffer stringBuffer = new StringBuffer(); GenDiagram genDiagram = (GenDiagram) argument; stringBuffer.append(TEXT_1); stringBuffer.append(genDiagram.getEditorPackageName()); stringBuffer.append(TEXT_2); ImportUtil importManager = new ImportUtil(genDiagram.getEditorPackageName()); stringBuffer.append(TEXT_3); importManager.markImportLocation(stringBuffer); stringBuffer.append(TEXT_4); stringBuffer.append(genDiagram.getElementChooserClassName()); stringBuffer.append(TEXT_5); stringBuffer.append(genDiagram.getElementChooserClassName()); stringBuffer.append(TEXT_6); for (Iterator it = genDiagram.getContainsShortcutsTo().iterator(); it.hasNext();) { String nextFileExtension = (String) it.next(); stringBuffer.append(TEXT_7); stringBuffer.append(nextFileExtension); stringBuffer.append(TEXT_8); stringBuffer.append(it.hasNext() ? "||" : ";"); } stringBuffer.append(TEXT_9); stringBuffer.append(importManager.getImportedName(genDiagram.getPluginQualifiedClassName())); stringBuffer.append(TEXT_10); stringBuffer.append(importManager.getImportedName(genDiagram.getPluginQualifiedClassName())); stringBuffer.append(TEXT_11); importManager.emitSortedImports(); stringBuffer.append(TEXT_12); return stringBuffer.toString(); } | 7409 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7409/0bf1a833628aff43b1383f77062929555c4d1879/ElementChooserGenerator.java/buggy/plugins/org.eclipse.gmf.codegen/src-templates/org/eclipse/gmf/codegen/templates/editor/ElementChooserGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
2103,
12,
921,
1237,
13,
225,
288,
565,
6674,
533,
1892,
273,
394,
6674,
5621,
565,
10938,
14058,
1940,
3157,
14058,
1940,
273,
261,
7642,
14058,
1940,
13,
1237,
31,
565,
533,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
2103,
12,
921,
1237,
13,
225,
288,
565,
6674,
533,
1892,
273,
394,
6674,
5621,
565,
10938,
14058,
1940,
3157,
14058,
1940,
273,
261,
7642,
14058,
1940,
13,
1237,
31,
565,
533,
... |
if (arect.intersects(srect) == false) return null; Rectangle2D.intersect(srect, arect, srect); | RenderedImage ri = null; if (arect.intersects(srect) == true) { Rectangle2D.intersect(srect, arect, srect); RenderContext srcRC = new RenderContext(usr2dev, srect, rh); ri = src.createRendering(srcRC); | public RenderedImage createRendering(RenderContext rc) { RenderingHints rh = rc.getRenderingHints(); if (rh == null) rh = new RenderingHints(null); Filter src = getSource(); Shape aoi = rc.getAreaOfInterest(); if(aoi == null){ aoi = getBounds2D(); } // We only depend on our source for stuff that is inside // our bounds and his bounds (remember our bounds may be // tighter than his in one or both directions). Rectangle2D srect = src.getBounds2D(); Rectangle2D rect = getBounds2D(); Rectangle2D arect = aoi.getBounds2D(); // System.out.println("Rects Src:" + srect + // "My: " + rect + // "AOI: " + arect); if (arect.intersects(rect) == false) return null; Rectangle2D.intersect(arect, rect, arect); if (arect.intersects(srect) == false) return null; Rectangle2D.intersect(srect, arect, srect); if((srect.getWidth() <= 0) || (srect.getHeight() <= 0)) return null; AffineTransform at = rc.getTransform(); RenderContext srcRC = new RenderContext(at, srect, rh); RenderedImage ri = src.createRendering(srcRC); if(ri == null) return null; CachableRed cr = RenderedImageCachableRed.wrap(ri); arect = at.createTransformedShape(arect).getBounds2D(); // System.out.println("Pad rect : " + arect); // Use arect (my bounds intersect area of interest) cr = new PadRed(cr, arect.getBounds(), padMode, rh); return cr; } | 45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/8309088af3a51d18cd5ca8ee80fca8997e73ca54/PadRable8Bit.java/buggy/sources/org/apache/batik/ext/awt/image/renderable/PadRable8Bit.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6987,
329,
2040,
752,
14261,
12,
3420,
1042,
4519,
13,
288,
3639,
22391,
6259,
273,
4519,
18,
588,
14261,
13368,
5621,
3639,
309,
261,
30138,
422,
446,
13,
6259,
273,
394,
22391,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6987,
329,
2040,
752,
14261,
12,
3420,
1042,
4519,
13,
288,
3639,
22391,
6259,
273,
4519,
18,
588,
14261,
13368,
5621,
3639,
309,
261,
30138,
422,
446,
13,
6259,
273,
394,
22391,
12... |
ip = new ShortProcessor(w, h, s, null); if (stackS == null) stackS = new ImageStack(w, h); stackS.addSlice(fileName + ":" + (i + 1), ip); } else if (tt == DataBuffer.TYPE_FLOAT) { float[] f = ImageTools.getFloats(img)[0]; if (f.length > w*h) { float[] tmp = f; f = new float[w*h]; System.arraycopy(tmp, 0, f, 0, f.length); | else if (tt == DataBuffer.TYPE_FLOAT) { float[] f = ImageTools.getFloats(img)[0]; if (f.length > w*h) { float[] tmp = f; f = new float[w*h]; System.arraycopy(tmp, 0, f, 0, f.length); } ip = new FloatProcessor(w, h, f, null); if (stackF == null) stackF = new ImageStack(w, h); stackF.addSlice(fileName + ":" + (j + 1), ip); | public synchronized void run(String arg) { success = false; boolean quiet = !"".equals(arg); String id = null; ImageReader reader = new ImageReader(); String mergeString = "Merge channels"; String splitString = "Open each channel in its own window"; String metadataString = "Display associated metadata"; String stitchString = "Stitch files with similar names"; if ((new File(arg)).exists()) { id = arg; // we still want to prompt for channel merge/split GenericDialog gd = new GenericDialog("LOCI Bio-Formats Import Options"); gd.addCheckbox(mergeString, mergeChannels); gd.addCheckbox(splitString, splitWindows); gd.addCheckbox(metadataString, showMetadata); gd.addCheckbox(stitchString, stitchFiles); gd.showDialog(); mergeChannels = gd.getNextBoolean(); splitWindows = gd.getNextBoolean(); showMetadata = gd.getNextBoolean(); stitchFiles = gd.getNextBoolean(); } else { JFileChooser chooser = reader.getFileChooser(); String dir = OpenDialog.getDefaultDirectory(); if (dir != null) chooser.setCurrentDirectory(new File(dir)); // add some additional options to the file chooser JPanel panel = new JPanel(); panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS)); merge = new JCheckBox(mergeString, mergeChannels); newWindows = new JCheckBox(splitString, splitWindows); showMeta = new JCheckBox(metadataString, showMetadata); stitching = new JCheckBox(stitchString, stitchFiles); merge.addItemListener(this); newWindows.addItemListener(this); showMeta.addItemListener(this); stitching.addItemListener(this); panel.add(merge); panel.add(newWindows); panel.add(showMeta); panel.add(stitching); chooser.setAccessory(panel); int rval = chooser.showOpenDialog(null); if (rval == JFileChooser.APPROVE_OPTION) { final File file = chooser.getSelectedFile(); if (file != null) { id = file.getAbsolutePath(); OpenDialog.setDefaultDirectory( chooser.getCurrentDirectory().getPath()); } } } if (id == null) return; String fileName = id.substring(id.lastIndexOf(File.separator) + 1); IJ.showStatus("Opening " + fileName); try { FormatReader r = (FormatReader) reader.getReader(id); FileStitcher fs = new FileStitcher(r); ChannelMerger cm = new ChannelMerger(stitchFiles ? fs : r); cm.setSeparated(!mergeChannels); try { OMEXMLMetadataStore store = new OMEXMLMetadataStore(); store.createRoot(); cm.setMetadataStore(store); } catch (Throwable t) { } int num = cm.getImageCount(id); if (showMetadata) { Hashtable meta = cm.getMetadata(id); MetadataPane mp = new MetadataPane(meta); JFrame frame = new JFrame(id + " Metadata"); frame.setContentPane(mp); frame.pack(); frame.setVisible(true); frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); } ImageStack stackB = null, stackS = null, stackF = null, stackO = null; long start = System.currentTimeMillis(); long time = start; int channels = cm.getSizeC(id); FileInfo fi = new FileInfo(); try { fi.description = ((OMEXMLMetadataStore) cm.getMetadataStore(id)).dumpXML(); } catch (Throwable t) { } for (int i=0; i<num; i++) { // limit message update rate long clock = System.currentTimeMillis(); if (clock - time >= 50) { IJ.showStatus("Reading plane " + (i + 1) + "/" + num); time = clock; } IJ.showProgress((double) i / num); BufferedImage img = cm.openImage(id, i); img = ImageTools.padImage(img, cm.getSizeX(id), cm.getSizeY(id)); ImageProcessor ip = null; WritableRaster raster = img.getRaster(); int c = raster.getNumBands(); int tt = raster.getTransferType(); int w = img.getWidth(), h = img.getHeight(); if (c == 1) { if (tt == DataBuffer.TYPE_BYTE) { byte[] b = ImageTools.getBytes(img)[0]; if (b.length > w*h) { byte[] tmp = b; b = new byte[w*h]; System.arraycopy(tmp, 0, b, 0, b.length); } ip = new ByteProcessor(w, h, b, null); if (stackB == null) stackB = new ImageStack(w, h); stackB.addSlice(fileName + ":" + (i + 1), ip); } else if (tt == DataBuffer.TYPE_USHORT) { short[] s = ImageTools.getShorts(img)[0]; if (s.length > w*h) { short[] tmp = s; s = new short[w*h]; System.arraycopy(tmp, 0, s, 0, s.length); } ip = new ShortProcessor(w, h, s, null); if (stackS == null) stackS = new ImageStack(w, h); stackS.addSlice(fileName + ":" + (i + 1), ip); } else if (tt == DataBuffer.TYPE_FLOAT) { float[] f = ImageTools.getFloats(img)[0]; if (f.length > w*h) { float[] tmp = f; f = new float[w*h]; System.arraycopy(tmp, 0, f, 0, f.length); } ip = new FloatProcessor(w, h, f, null); if (stackF == null) stackF = new ImageStack(w, h); stackF.addSlice(fileName + ":" + (i + 1), ip); } } if (ip == null) { ip = new ImagePlus(null, img).getProcessor(); // slow if (stackO == null) stackO = new ImageStack(w, h); stackO.addSlice(fileName + ":" + (i + 1), ip); } } IJ.showStatus("Creating image"); IJ.showProgress(1); ImagePlus ip = null; if (stackB != null) { if (!mergeChannels && splitWindows) { slice(stackB, fileName, channels, fi); } else ip = new ImagePlus(fileName, stackB); } if (stackS != null) { if (!mergeChannels && splitWindows) { slice(stackS, fileName, channels, fi); } else ip = new ImagePlus(fileName, stackS); } if (stackF != null) { if (!mergeChannels && splitWindows) { slice(stackF, fileName, channels, fi); } else ip = new ImagePlus(fileName, stackF); } if (stackO != null) { if (!mergeChannels && splitWindows) { slice(stackO, fileName, channels, fi); } else ip = new ImagePlus(fileName, stackO); } if (ip != null) ip.setFileInfo(fi); if (ip != null) ip.show(); long end = System.currentTimeMillis(); double elapsed = (end - start) / 1000.0; if (num == 1) IJ.showStatus(elapsed + " seconds"); else { long average = (end - start) / num; IJ.showStatus("LOCI Bio-Formats : " + elapsed + " seconds (" + average + " ms per plane)"); } success = true; mergeChannels = true; splitWindows = false; } catch (Exception exc) { exc.printStackTrace(); IJ.showStatus(""); if (!quiet) { String msg = exc.getMessage(); IJ.showMessage("LOCI Bio-Formats", "Sorry, there was a problem " + "reading the data" + (msg == null ? "." : (": " + msg))); } } } | 49800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49800/f10429bbdbd92f11ec6dd4620ea838d1dd11457f/LociImporter.java/clean/loci/plugins/LociImporter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
918,
1086,
12,
780,
1501,
13,
288,
565,
2216,
273,
629,
31,
565,
1250,
10902,
273,
401,
3660,
18,
14963,
12,
3175,
1769,
565,
514,
612,
273,
446,
31,
565,
3421,
2514,
2949,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3852,
918,
1086,
12,
780,
1501,
13,
288,
565,
2216,
273,
629,
31,
565,
1250,
10902,
273,
401,
3660,
18,
14963,
12,
3175,
1769,
565,
514,
612,
273,
446,
31,
565,
3421,
2514,
2949,
... |
IActionFilter filter = null; if (object instanceof IActionFilter) filter = (IActionFilter) object; else if (object instanceof IAdaptable) filter = (IActionFilter) ((IAdaptable) object) .getAdapter(IActionFilter.class); return filter; } | IActionFilter filter = null; if (object instanceof IActionFilter) filter = (IActionFilter) object; else if (object instanceof IAdaptable) filter = (IActionFilter) ((IAdaptable) object) .getAdapter(IActionFilter.class); return filter; } | private IActionFilter getActionFilter(Object object) { IActionFilter filter = null; if (object instanceof IActionFilter) filter = (IActionFilter) object; else if (object instanceof IAdaptable) filter = (IActionFilter) ((IAdaptable) object) .getAdapter(IActionFilter.class); return filter; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/5cfb5f88a049bbc9efcf0fade7d5687d0ec50ed3/ActionExpression.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ActionExpression.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
467,
1803,
1586,
12473,
1586,
12,
921,
733,
13,
288,
5411,
467,
1803,
1586,
1034,
273,
446,
31,
5411,
309,
261,
1612,
1276,
467,
1803,
1586,
13,
7734,
1034,
273,
261,
45,
1803,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
1803,
1586,
12473,
1586,
12,
921,
733,
13,
288,
5411,
467,
1803,
1586,
1034,
273,
446,
31,
5411,
309,
261,
1612,
1276,
467,
1803,
1586,
13,
7734,
1034,
273,
261,
45,
1803,
15... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.