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 |
|---|---|---|---|---|---|---|
PreparedStatement pstmt = con.prepareStatement("INSERT INTO ##updateCount1 (data) VALUES (?)");
|
PreparedStatement pstmt = con.prepareStatement("INSERT INTO #updateCount1 (data) VALUES (?)");
|
public void testUpdateCount1() throws Exception { int count = 500; Statement stmt = con.createStatement(); stmt.execute("CREATE TABLE ##updateCount1 (data INT)"); stmt.close(); PreparedStatement pstmt = con.prepareStatement("INSERT INTO ##updateCount1 (data) VALUES (?)"); for (int i = 1; i <= count; i++) { pstmt.setInt(1, i); assertEquals(1, pstmt.executeUpdate()); } pstmt.close(); stmt = con.createStatement(); ResultSet rs = stmt.executeQuery("SELECT COUNT(*) FROM ##updateCount1"); assertTrue(rs.next()); assertEquals(count, rs.getInt(1)); assertFalse(rs.next()); stmt.close(); rs.close(); pstmt = con.prepareStatement("DELETE FROM ##updateCount1"); assertEquals(count, pstmt.executeUpdate()); pstmt.close(); }
|
5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/93bb993d42543a9ead4cdd949b33895244cc0ee8/PreparedStatementTest.java/clean/src/test/net/sourceforge/jtds/test/PreparedStatementTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1891,
1380,
21,
1435,
1216,
1185,
288,
377,
202,
474,
1056,
273,
6604,
31,
377,
202,
3639,
8056,
3480,
273,
356,
18,
2640,
3406,
5621,
3639,
3480,
18,
8837,
2932,
9344,
7567,
7541,
2725,
1380,
21,
261,
892,
6137,
2225,
1769,
3639,
3480,
18,
4412,
5621,
3639,
16913,
293,
10589,
273,
356,
18,
9366,
3406,
2932,
11356,
12421,
468,
2725,
1380,
21,
261,
892,
13,
13477,
13590,
2225,
1769,
3639,
364,
261,
474,
277,
273,
404,
31,
277,
1648,
1056,
31,
277,
27245,
288,
5411,
293,
10589,
18,
542,
1702,
12,
21,
16,
277,
1769,
5411,
1815,
8867,
12,
21,
16,
293,
10589,
18,
8837,
1891,
10663,
3639,
289,
3639,
293,
10589,
18,
4412,
5621,
3639,
3480,
273,
356,
18,
2640,
3406,
5621,
3639,
10842,
3597,
273,
3480,
18,
8837,
1138,
2932,
4803,
12666,
24099,
4571,
7541,
2725,
1380,
21,
8863,
3639,
1815,
5510,
12,
5453,
18,
4285,
10663,
3639,
1815,
8867,
12,
1883,
16,
3597,
18,
588,
1702,
12,
21,
10019,
3639,
1815,
8381,
12,
5453,
18,
4285,
10663,
3639,
3480,
18,
4412,
5621,
3639,
3597,
18,
4412,
5621,
3639,
293,
10589,
273,
356,
18,
9366,
3406,
2932,
6460,
4571,
7541,
2725,
1380,
21,
8863,
3639,
1815,
8867,
12,
1883,
16,
293,
10589,
18,
8837,
1891,
10663,
3639,
293,
10589,
18,
4412,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1891,
1380,
21,
1435,
1216,
1185,
288,
377,
202,
474,
1056,
273,
6604,
31,
377,
202,
3639,
8056,
3480,
273,
356,
18,
2640,
3406,
5621,
3639,
3480,
18,
8837,
2932,
9344,
7567,
7541,
2725,
1380,
21,
261,
892,
6137,
2225,
1769,
3639,
3480,
18,
4412,
5621,
3639,
16913,
293,
10589,
273,
356,
18,
9366,
3406,
2932,
11356,
12421,
468,
2725,
1380,
21,
261,
892,
13,
13477,
13590,
2225,
1769,
3639,
364,
261,
474,
277,
273,
404,
31,
277,
1648,
1056,
31,
277,
27245,
288,
5411,
293,
10589,
18,
542,
1702,
12,
21,
16,
277,
1769,
5411,
1815,
8867,
12,
21,
16,
293,
10589,
18,
8837,
1891,
10663,
3639,
289,
3639,
293,
10589,
18,
4412,
5621,
2
] |
if ( block.attachment != null && block.attachment.equals( "fixed" ) ) {
|
if ( block.attachment == IdentValue.FIXED ) {
|
public static void paint( Context c, Box block ) { // don't draw if the backgrounds are turned off if ( !Configuration.isTrue( "xr.renderer.draw.backgrounds", true ) ) { return; } int width = block.getWidth(); int height = block.getHeight(); Border border = c.getCurrentStyle().getBorderWidth( width, height ); if ( border == null ) { return; } Border margin = c.getCurrentStyle().getMarginWidth( width, height ); Rectangle box = new Rectangle( block.x + margin.left + border.left, block.y + margin.top + border.top, block.width - margin.left - margin.right - border.left - border.right, block.height - margin.top - border.top - border.bottom - margin.bottom ); // paint the background Color background_color = BoxRendering.getBackgroundColor( c, block ); if ( background_color != null ) { // skip transparent background if ( !background_color.equals( transparent ) ) { //TODO. make conf controlled Uu.p("filling a background"); c.getGraphics().setColor( background_color ); c.getGraphics().fillRect( box.x, box.y, box.width, box.height ); } } int xoff = 0; int yoff = 0; if ( block.attachment != null && block.attachment.equals( "fixed" ) ) { yoff = c.getCanvas().getLocation().y; //TODO. make conf controlled Uu.p("setting the clip rect for fixed background"); c.getGraphics().setClip( c.getCanvas().getVisibleRect() ); } if ( block.background_image != null ) { int left_insets = box.x; int top_insets = box.y; int back_width = box.width; int back_height = box.height; Rectangle2D oldclip = (Rectangle2D)c.getGraphics().getClip(); Rectangle new_clip = new Rectangle( left_insets, top_insets, back_width, back_height ); c.getGraphics().setClip( oldclip.createIntersection( new_clip ) ); int iw = block.background_image.getWidth( null ); int ih = block.background_image.getHeight( null ); // handle image position offsets /* * KEEP JMM (11/16) * xoff = block width - image width * pos * pos = 0 * block width = 300 * image width = 100 * if pos = 0 then * xoff = 0 * if pos = 1 then * xoff = 200 */ xoff += (int)( (double)( back_width - iw ) * (double)( (double)block.background_position_horizontal / (double)100 ) ); yoff -= (int)( (double)( back_height - ih ) * (double)( (double)block.background_position_vertical / (double)100 ) ); // tile the image as appropriate // do fixed tile image boolean horiz = false; boolean vert = false; if ( block.repeat.equals( "repeat-Xx" ) ) { horiz = true; vert = false; } if ( block.repeat.equals( "repeat-y" ) ) { horiz = false; vert = true; } if ( block.repeat.equals( "repeat" ) ) { horiz = true; vert = true; } //TODO. make conf controlled Uu.p("filling background with an image"); // fixed tiled image if ( block.attachment != null && block.attachment.equals( "fixed" ) ) { tileFill( c.getGraphics(), block.background_image, new Rectangle( left_insets, top_insets, back_width, back_height ), xoff, -yoff, horiz, vert ); } else { // do normal tile image tileFill( c.getGraphics(), block.background_image, new Rectangle( left_insets, top_insets, back_width, back_height ), xoff, -yoff, horiz, vert ); } //TODO. make conf controlled Uu.p("setting the clip rect"); c.getGraphics().setClip( oldclip ); } }
|
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/a605863fc3cc1fcc7ccc20120bffcf5bc507cadd/BackgroundPainter.java/clean/src/java/org/xhtmlrenderer/render/BackgroundPainter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
12574,
12,
1772,
276,
16,
8549,
1203,
262,
288,
3639,
368,
2727,
1404,
3724,
309,
326,
5412,
87,
854,
21826,
3397,
3639,
309,
261,
401,
1750,
18,
291,
5510,
12,
315,
92,
86,
18,
14374,
18,
9446,
18,
9342,
87,
3113,
638,
262,
262,
288,
5411,
327,
31,
3639,
289,
3639,
509,
1835,
273,
1203,
18,
588,
2384,
5621,
3639,
509,
2072,
273,
1203,
18,
588,
2686,
5621,
3639,
13525,
5795,
273,
276,
18,
588,
3935,
2885,
7675,
588,
8107,
2384,
12,
1835,
16,
2072,
11272,
3639,
309,
261,
5795,
422,
446,
262,
288,
5411,
327,
31,
3639,
289,
3639,
13525,
7333,
273,
276,
18,
588,
3935,
2885,
7675,
588,
9524,
2384,
12,
1835,
16,
2072,
11272,
3639,
13264,
3919,
273,
394,
13264,
12,
1203,
18,
92,
397,
7333,
18,
4482,
397,
5795,
18,
4482,
16,
7734,
1203,
18,
93,
397,
7333,
18,
3669,
397,
5795,
18,
3669,
16,
7734,
1203,
18,
2819,
300,
7333,
18,
4482,
300,
7333,
18,
4083,
300,
5795,
18,
4482,
300,
5795,
18,
4083,
16,
7734,
1203,
18,
4210,
300,
7333,
18,
3669,
300,
5795,
18,
3669,
300,
5795,
18,
9176,
300,
7333,
18,
9176,
11272,
3639,
368,
12574,
326,
5412,
3639,
5563,
5412,
67,
3266,
273,
8549,
14261,
18,
588,
21699,
12,
276,
16,
1203,
11272,
3639,
309,
261,
5412,
67,
3266,
480,
446,
262,
288,
5411,
368,
2488,
17270,
5412,
5411,
309,
261,
401,
9342,
67,
3266,
18,
14963,
12,
17270,
262,
262,
288,
7734,
368,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
12574,
12,
1772,
276,
16,
8549,
1203,
262,
288,
3639,
368,
2727,
1404,
3724,
309,
326,
5412,
87,
854,
21826,
3397,
3639,
309,
261,
401,
1750,
18,
291,
5510,
12,
315,
92,
86,
18,
14374,
18,
9446,
18,
9342,
87,
3113,
638,
262,
262,
288,
5411,
327,
31,
3639,
289,
3639,
509,
1835,
273,
1203,
18,
588,
2384,
5621,
3639,
509,
2072,
273,
1203,
18,
588,
2686,
5621,
3639,
13525,
5795,
273,
276,
18,
588,
3935,
2885,
7675,
588,
8107,
2384,
12,
1835,
16,
2072,
11272,
3639,
309,
261,
5795,
422,
446,
262,
288,
5411,
327,
31,
3639,
289,
3639,
13525,
7333,
273,
276,
18,
588,
3935,
2885,
7675,
588,
9524,
2384,
12,
1835,
16,
2
] |
if (typeDef == null) { final AntFileImpl antFile = (AntFileImpl)file; if (!antFile.getSecondPassMade()) { antFile.invokeSecondPass(); continue; }
|
} if (typeDef != null) { AntElementCreator antElementCreator = ourAntTypeToKnownAntElementCreatorMap.get(typeDef.getClassName()); if (antElementCreator != null) { return antElementCreator.create(parent, tag);
|
public static AntElement createAntElement(final AntElement parent, final XmlElement element) { instantiate(); if (element instanceof XmlComment) return new AntCommentImpl(parent, element); if (!(element instanceof XmlTag)) return null; XmlTag tag = (XmlTag)element; AntTypeDefinition typeDef = null; final AntTypeId id = new AntTypeId(tag.getName()); final AntFile file = parent.getAntFile(); while (true) { if (parent instanceof AntStructuredElement) { final AntTypeDefinition parentDef = ((AntStructuredElement)parent).getTypeDefinition(); if (parentDef != null) { final String className = parentDef.getNestedClassName(id); if (className != null) { typeDef = file.getBaseTypeDefinition(className); } } } if (typeDef == null) { for (AntTypeDefinition def : file.getBaseTypeDefinitions()) { if (id.equals(def.getTypeId())) { typeDef = def; break; } } } if (typeDef == null) { final AntFileImpl antFile = (AntFileImpl)file; if (!antFile.getSecondPassMade()) { antFile.invokeSecondPass(); continue; } } else { AntElementCreator antElementCreator = ourAntTypeToKnownAntElementCreatorMap.get(typeDef.getClassName()); if (antElementCreator != null) { return antElementCreator.create(parent, tag); } if (typeDef.isTask()) { return new AntTaskImpl(parent, tag, typeDef); } } return new AntStructuredElementImpl(parent, tag, typeDef); } }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/8db64e6f6295a85b1ed9bb2320343787f08b11ba/AntElementFactory.java/buggy/plugins/ant/src/com/intellij/lang/ant/psi/impl/AntElementFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
18830,
1046,
752,
14925,
1046,
12,
6385,
18830,
1046,
982,
16,
727,
15412,
930,
13,
288,
565,
10275,
5621,
565,
309,
261,
2956,
1276,
5714,
4469,
13,
327,
394,
18830,
4469,
2828,
12,
2938,
16,
930,
1769,
565,
309,
16051,
12,
2956,
1276,
5714,
1805,
3719,
327,
446,
31,
565,
5714,
1805,
1047,
273,
261,
4432,
1805,
13,
2956,
31,
565,
18830,
559,
1852,
618,
3262,
273,
446,
31,
565,
727,
18830,
11731,
612,
273,
394,
18830,
11731,
12,
2692,
18,
17994,
10663,
565,
727,
18830,
812,
585,
273,
982,
18,
588,
14925,
812,
5621,
565,
1323,
261,
3767,
13,
288,
1377,
309,
261,
2938,
1276,
18830,
30733,
1046,
13,
288,
3639,
727,
18830,
559,
1852,
982,
3262,
273,
14015,
14925,
30733,
1046,
13,
2938,
2934,
588,
559,
1852,
5621,
3639,
309,
261,
2938,
3262,
480,
446,
13,
288,
1850,
727,
514,
2658,
273,
982,
3262,
18,
588,
8649,
3834,
12,
350,
1769,
1850,
309,
261,
12434,
480,
446,
13,
288,
5411,
618,
3262,
273,
585,
18,
588,
2171,
559,
1852,
12,
12434,
1769,
1850,
289,
3639,
289,
1377,
289,
1377,
309,
261,
723,
3262,
422,
446,
13,
288,
3639,
364,
261,
14925,
559,
1852,
1652,
294,
585,
18,
588,
2171,
559,
7130,
10756,
288,
1850,
309,
261,
350,
18,
14963,
12,
536,
18,
588,
11731,
1435,
3719,
288,
5411,
618,
3262,
273,
1652,
31,
5411,
898,
31,
1850,
289,
3639,
289,
1377,
289,
1377,
309,
261,
723,
3262,
422,
446,
13,
288,
3639,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
18830,
1046,
752,
14925,
1046,
12,
6385,
18830,
1046,
982,
16,
727,
15412,
930,
13,
288,
565,
10275,
5621,
565,
309,
261,
2956,
1276,
5714,
4469,
13,
327,
394,
18830,
4469,
2828,
12,
2938,
16,
930,
1769,
565,
309,
16051,
12,
2956,
1276,
5714,
1805,
3719,
327,
446,
31,
565,
5714,
1805,
1047,
273,
261,
4432,
1805,
13,
2956,
31,
565,
18830,
559,
1852,
618,
3262,
273,
446,
31,
565,
727,
18830,
11731,
612,
273,
394,
18830,
11731,
12,
2692,
18,
17994,
10663,
565,
727,
18830,
812,
585,
273,
982,
18,
588,
14925,
812,
5621,
565,
1323,
261,
3767,
13,
288,
1377,
309,
261,
2938,
1276,
18830,
30733,
1046,
13,
288,
3639,
727,
18830,
559,
1852,
2
] |
sb.append('&'); sb.append(URLEncoder.encode(key)); sb.append('='); sb.append(URLEncoder.encode(values[i]));
|
url.append('&'); url.append(URLEncoder.encode(key)); url.append('='); url.append(URLEncoder.encode(values[i]));
|
public static URL computeURL(PageContext pageContext, String forward, String href, String page, Map params, String anchor, boolean redirect) throws MalformedURLException { // Validate that exactly one specifier was included int n = 0; if (forward != null) n++; if (href != null) n++; if (page != null) n++; if (n != 1) throw new MalformedURLException (messages.getMessage("computeURL.specifier")); // Calculate the appropriate URL URL url = null; if (forward != null) { ActionForwards forwards = (ActionForwards) pageContext.getAttribute(Action.FORWARDS_KEY, PageContext.APPLICATION_SCOPE); if (forwards == null) throw new MalformedURLException (messages.getMessage("computeURL.forwards")); ActionForward af = forwards.findForward(forward); if (af == null) throw new MalformedURLException (messages.getMessage("computeURL.forward", forward)); HttpServletRequest request = (HttpServletRequest) pageContext.getRequest(); url = absoluteURL(request, af.getPath()); } else if (href != null) { url = new URL(href); } else /* if (page != null) */ { HttpServletRequest request = (HttpServletRequest) pageContext.getRequest(); url = absoluteURL(request, page); } // Add anchor if requested (replacing any existing anchor) if (anchor != null) { String temp = url.toString(); int hash = temp.indexOf('#'); if (hash >= 0) temp = temp.substring(0, hash); StringBuffer sb = new StringBuffer(temp); sb.append('#'); sb.append(URLEncoder.encode(anchor)); url = new URL(sb.toString()); } // Add dynamic parameters if requested if ((params != null) && (params.size() > 0)) { // Save any existing anchor String temp = url.toString(); int hash = temp.indexOf('#'); if (hash >= 0) { anchor = temp.substring(hash + 1); temp = temp.substring(0, hash); } else anchor = null; // Add the required request parameters boolean question = temp.indexOf('?') >= 0; StringBuffer sb = new StringBuffer(temp); Iterator keys = params.keySet().iterator(); while (keys.hasNext()) { String key = (String) keys.next(); Object value = params.get(key); if (value == null) { if (!question) { sb.append('?'); question = true; } else sb.append('&'); sb.append(URLEncoder.encode(key)); sb.append('='); // Interpret null as "no value" } else if (value instanceof String) { if (!question) { sb.append('?'); question = true; } else sb.append('&'); sb.append(URLEncoder.encode(key)); sb.append('='); sb.append(URLEncoder.encode((String) value)); } else /* if (value instanceof String[]) */ { String values[] = (String[]) value; for (int i = 0; i < values.length; i++) { if (!question) { sb.append('?'); question = true; } else sb.append('&'); sb.append(URLEncoder.encode(key)); sb.append('='); sb.append(URLEncoder.encode(values[i])); } } } // Re-add the saved anchor (if any) if (anchor != null) { sb.append('#'); sb.append(anchor); } // Update to the completed URL url = new URL(sb.toString()); } // Perform URL rewriting to include our session ID (if any) if (pageContext.getSession() != null) { HttpServletResponse response = (HttpServletResponse) pageContext.getResponse(); if (redirect) url = new URL(response.encodeRedirectURL(url.toString())); else url = new URL(response.encodeURL(url.toString())); } return (url); }
|
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/efc69a235670660e4697d7a0f65847d4941b6e9b/RequestUtils.java/buggy/src/share/org/apache/struts/util/RequestUtils.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1976,
3671,
1785,
12,
1964,
1042,
21442,
16,
514,
5104,
16,
4766,
514,
3897,
16,
514,
1363,
16,
4766,
1635,
859,
16,
514,
6984,
16,
1250,
3136,
13,
3639,
1216,
20710,
288,
3639,
368,
3554,
716,
8950,
1245,
24562,
1703,
5849,
3639,
509,
290,
273,
374,
31,
3639,
309,
261,
11565,
480,
446,
13,
5411,
290,
9904,
31,
3639,
309,
261,
7547,
480,
446,
13,
5411,
290,
9904,
31,
3639,
309,
261,
2433,
480,
446,
13,
5411,
290,
9904,
31,
3639,
309,
261,
82,
480,
404,
13,
5411,
604,
394,
20710,
7734,
261,
6833,
18,
24906,
2932,
9200,
1785,
18,
2793,
1251,
7923,
1769,
3639,
368,
9029,
326,
5505,
1976,
3639,
1976,
880,
273,
446,
31,
3639,
309,
261,
11565,
480,
446,
13,
288,
5411,
4382,
1290,
6397,
24578,
273,
261,
1803,
1290,
6397,
13,
7734,
21442,
18,
588,
1499,
12,
1803,
18,
7473,
16777,
3948,
67,
3297,
16,
29159,
3460,
1042,
18,
25039,
67,
19444,
1769,
5411,
309,
261,
1884,
6397,
422,
446,
13,
7734,
604,
394,
20710,
10792,
261,
6833,
18,
24906,
2932,
9200,
1785,
18,
1884,
6397,
7923,
1769,
5411,
4382,
8514,
10073,
273,
24578,
18,
4720,
8514,
12,
11565,
1769,
5411,
309,
261,
1727,
422,
446,
13,
7734,
604,
394,
20710,
10792,
261,
6833,
18,
24906,
2932,
9200,
1785,
18,
11565,
3113,
5104,
10019,
5411,
9984,
590,
273,
7734,
261,
2940,
18572,
13,
21442,
18,
588,
691,
5621,
5411,
880,
273,
4967,
1785,
12,
2293,
16,
10073,
18,
588,
743,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1976,
3671,
1785,
12,
1964,
1042,
21442,
16,
514,
5104,
16,
4766,
514,
3897,
16,
514,
1363,
16,
4766,
1635,
859,
16,
514,
6984,
16,
1250,
3136,
13,
3639,
1216,
20710,
288,
3639,
368,
3554,
716,
8950,
1245,
24562,
1703,
5849,
3639,
509,
290,
273,
374,
31,
3639,
309,
261,
11565,
480,
446,
13,
5411,
290,
9904,
31,
3639,
309,
261,
7547,
480,
446,
13,
5411,
290,
9904,
31,
3639,
309,
261,
2433,
480,
446,
13,
5411,
290,
9904,
31,
3639,
309,
261,
82,
480,
404,
13,
5411,
604,
394,
20710,
7734,
261,
6833,
18,
24906,
2932,
9200,
1785,
18,
2793,
1251,
7923,
1769,
3639,
368,
9029,
326,
5505,
1976,
3639,
1976,
880,
273,
446,
31,
2
] |
root.doCreateDirectory(1, p("dir")); root.doCreateFile(2, p("dir/file"), null);
|
root.doCreateDirectory(1, p("/dir")); root.doCreateFile(2, p("/dir/file"), null);
|
public void testRenamingDirectoryWithContent() { root.doCreateDirectory(1, p("dir")); root.doCreateFile(2, p("dir/file"), null); root.doRename(p("dir"), "new dir"); assertTrue(root.hasEntry(p("new dir"))); assertTrue(root.hasEntry(p("new dir/file"))); assertFalse(root.hasEntry(p("dir"))); assertFalse(root.hasEntry(p("dir/file"))); }
|
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/8a6fdbc15b3cd4aaa232cf2026aa4a60418c162a/RootEntryDirectoriesTest.java/clean/LocalVcs/test/com/intellij/localvcs/RootEntryDirectoriesTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
16290,
7772,
2853,
1190,
1350,
1435,
288,
565,
1365,
18,
2896,
1684,
2853,
12,
21,
16,
293,
2932,
1214,
7923,
1769,
565,
1365,
18,
2896,
1684,
812,
12,
22,
16,
293,
2932,
1214,
19,
768,
6,
3631,
446,
1769,
565,
1365,
18,
2896,
16019,
12,
84,
2932,
1214,
6,
3631,
315,
2704,
1577,
8863,
565,
1815,
5510,
12,
3085,
18,
5332,
1622,
12,
84,
2932,
2704,
1577,
6,
3719,
1769,
565,
1815,
5510,
12,
3085,
18,
5332,
1622,
12,
84,
2932,
2704,
1577,
19,
768,
6,
3719,
1769,
565,
1815,
8381,
12,
3085,
18,
5332,
1622,
12,
84,
2932,
1214,
6,
3719,
1769,
565,
1815,
8381,
12,
3085,
18,
5332,
1622,
12,
84,
2932,
1214,
19,
768,
6,
3719,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
16290,
7772,
2853,
1190,
1350,
1435,
288,
565,
1365,
18,
2896,
1684,
2853,
12,
21,
16,
293,
2932,
1214,
7923,
1769,
565,
1365,
18,
2896,
1684,
812,
12,
22,
16,
293,
2932,
1214,
19,
768,
6,
3631,
446,
1769,
565,
1365,
18,
2896,
16019,
12,
84,
2932,
1214,
6,
3631,
315,
2704,
1577,
8863,
565,
1815,
5510,
12,
3085,
18,
5332,
1622,
12,
84,
2932,
2704,
1577,
6,
3719,
1769,
565,
1815,
5510,
12,
3085,
18,
5332,
1622,
12,
84,
2932,
2704,
1577,
19,
768,
6,
3719,
1769,
565,
1815,
8381,
12,
3085,
18,
5332,
1622,
12,
84,
2932,
1214,
6,
3719,
1769,
565,
1815,
8381,
12,
3085,
18,
5332,
1622,
12,
84,
2932,
1214,
2
] |
return readTuples(con);
|
return readTuples(con, partialResult, newPartialResult);
|
public List readTuples(DataSource dataSource) { Connection con; try { con = dataSource.getConnection(); } catch (SQLException e) { throw Util.newInternal(e, "could not connect to DB"); } try { return readTuples(con); } finally { try { con.close(); } catch (SQLException e) { throw Util.newInternal(e, "could not close connection"); } } }
|
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/c96a8a3e21235aea0cdadc7c3d06501ba8de4111/SqlTupleReader.java/clean/src/main/mondrian/rolap/SqlTupleReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
855,
25813,
12,
8597,
10233,
13,
288,
3639,
4050,
356,
31,
3639,
775,
288,
5411,
356,
273,
10233,
18,
588,
1952,
5621,
3639,
289,
1044,
261,
23116,
425,
13,
288,
5411,
604,
3564,
18,
2704,
3061,
12,
73,
16,
315,
15195,
486,
3077,
358,
2383,
8863,
3639,
289,
3639,
775,
288,
5411,
327,
855,
25813,
12,
591,
16,
4702,
1253,
16,
394,
9447,
1253,
1769,
3639,
289,
3095,
288,
5411,
775,
288,
7734,
356,
18,
4412,
5621,
5411,
289,
1044,
261,
23116,
425,
13,
288,
7734,
604,
3564,
18,
2704,
3061,
12,
73,
16,
315,
15195,
486,
1746,
1459,
8863,
5411,
289,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
855,
25813,
12,
8597,
10233,
13,
288,
3639,
4050,
356,
31,
3639,
775,
288,
5411,
356,
273,
10233,
18,
588,
1952,
5621,
3639,
289,
1044,
261,
23116,
425,
13,
288,
5411,
604,
3564,
18,
2704,
3061,
12,
73,
16,
315,
15195,
486,
3077,
358,
2383,
8863,
3639,
289,
3639,
775,
288,
5411,
327,
855,
25813,
12,
591,
16,
4702,
1253,
16,
394,
9447,
1253,
1769,
3639,
289,
3095,
288,
5411,
775,
288,
7734,
356,
18,
4412,
5621,
5411,
289,
1044,
261,
23116,
425,
13,
288,
7734,
604,
3564,
18,
2704,
3061,
12,
73,
16,
315,
15195,
486,
1746,
1459,
8863,
5411,
289,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
throw new MessageInvalidException(ProtocolErrorMessage.FILE_PARSE_ERROR, "IO error while retrieving ref file <"+fileString+">: "+e.getMessage(), null);
|
throw new MessageInvalidException(ProtocolErrorMessage.FILE_PARSE_ERROR, "IO error while retrieving ref file <"+fileString+">: "+e.getMessage(), null, false);
|
public void run(FCPConnectionHandler handler, Node node) throws MessageInvalidException { String urlString = fs.get("URL"); String fileString = fs.get("File"); StringBuffer ref = null; BufferedReader in; if(urlString != null) { try { URL url = new URL(urlString); URLConnection uc = url.openConnection(); in = new BufferedReader( new InputStreamReader(uc.getInputStream())); ref = new StringBuffer(1024); String line; while((line = in.readLine()) != null) { line = line.trim(); ref.append( line ).append('\n'); } in.close(); } catch (MalformedURLException e) { throw new MessageInvalidException(ProtocolErrorMessage.URL_PARSE_ERROR, "Error parsing ref URL <"+urlString+">: "+e.getMessage(), null); } catch (IOException e) { throw new MessageInvalidException(ProtocolErrorMessage.URL_PARSE_ERROR, "IO error while retrieving ref URL <"+urlString+">: "+e.getMessage(), null); } ref = new StringBuffer(ref.toString().trim()); if(ref == null) { throw new MessageInvalidException(ProtocolErrorMessage.REF_PARSE_ERROR, "Error parsing ref from URL <"+urlString+ '>', null); } if(ref.equals("")) { throw new MessageInvalidException(ProtocolErrorMessage.REF_PARSE_ERROR, "Error parsing ref from URL <"+urlString+ '>', null); } try { fs = new SimpleFieldSet(ref.toString()); } catch (IOException e) { throw new MessageInvalidException(ProtocolErrorMessage.REF_PARSE_ERROR, "Error parsing ref from URL <"+urlString+">: "+e.getMessage(), null); } } else if(fileString != null) { File f = new File(fileString); if(!f.isFile()) { throw new MessageInvalidException(ProtocolErrorMessage.NOT_A_FILE_ERROR, "The given ref file path <"+fileString+"> is not a file", null); } try { in = new BufferedReader(new FileReader(f)); ref = new StringBuffer(1024); String line; while((line = in.readLine()) != null) { line = line.trim(); ref.append( line ).append('\n'); } in.close(); } catch (FileNotFoundException e) { throw new MessageInvalidException(ProtocolErrorMessage.FILE_NOT_FOUND, "File not found when retrieving ref file <"+fileString+">: "+e.getMessage(), null); } catch (IOException e) { throw new MessageInvalidException(ProtocolErrorMessage.FILE_PARSE_ERROR, "IO error while retrieving ref file <"+fileString+">: "+e.getMessage(), null); } ref = new StringBuffer(ref.toString().trim()); if(ref == null) { throw new MessageInvalidException(ProtocolErrorMessage.REF_PARSE_ERROR, "Error parsing ref from file <"+fileString+ '>', null); } if(ref.equals("")) { throw new MessageInvalidException(ProtocolErrorMessage.REF_PARSE_ERROR, "Error parsing ref from file <"+fileString+ '>', null); } try { fs = new SimpleFieldSet(ref.toString()); } catch (IOException e) { throw new MessageInvalidException(ProtocolErrorMessage.REF_PARSE_ERROR, "Error parsing ref from file <"+fileString+">: "+e.getMessage(), null); } } PeerNode pn; try { pn = new PeerNode(fs, node, false); } catch (FSParseException e) { throw new MessageInvalidException(ProtocolErrorMessage.REF_PARSE_ERROR, "Error parsing retrieved ref: "+e.getMessage(), null); } catch (PeerParseException e) { throw new MessageInvalidException(ProtocolErrorMessage.REF_PARSE_ERROR, "Error parsing retrieved ref: "+e.getMessage(), null); } catch (ReferenceSignatureVerificationException e) { // TODO: maybe a special ProtocolErrorMessage ? throw new MessageInvalidException(ProtocolErrorMessage.REF_PARSE_ERROR, "Error parsing retrieved ref: "+e.getMessage(), null); } // **FIXME** Handle duplicates somehow maybe? What about when node.addDarknetConnection() fails for some reason? if(node.addDarknetConnection(pn)) System.out.println("Added peer: "+pn); handler.outputHandler.queue(new Peer(pn, true, true)); }
|
46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/bbb3c23ec38ea1c7abb48040a17f5fc7932248bc/AddPeer.java/clean/src/freenet/node/fcp/AddPeer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
12,
42,
4258,
1952,
1503,
1838,
16,
2029,
756,
13,
1216,
2350,
1941,
503,
288,
202,
202,
780,
29374,
273,
2662,
18,
588,
2932,
1785,
8863,
202,
202,
780,
585,
780,
273,
2662,
18,
588,
2932,
812,
8863,
202,
202,
780,
1892,
1278,
273,
446,
31,
202,
202,
17947,
2514,
316,
31,
202,
202,
430,
12,
718,
780,
480,
446,
13,
288,
1082,
202,
698,
288,
9506,
202,
1785,
880,
273,
394,
1976,
12,
718,
780,
1769,
9506,
202,
14790,
6232,
273,
880,
18,
3190,
1952,
5621,
9506,
202,
267,
273,
394,
10633,
12,
394,
15322,
12,
5286,
18,
588,
4348,
1435,
10019,
9506,
202,
1734,
273,
394,
6674,
12,
2163,
3247,
1769,
9506,
202,
780,
980,
31,
9506,
202,
17523,
12443,
1369,
273,
316,
18,
896,
1670,
10756,
480,
446,
13,
288,
6862,
202,
1369,
273,
980,
18,
5290,
5621,
6862,
202,
1734,
18,
6923,
12,
980,
262,
18,
6923,
2668,
64,
82,
8284,
9506,
202,
97,
9506,
202,
267,
18,
4412,
5621,
1082,
202,
97,
1044,
261,
18695,
20160,
425,
13,
288,
9506,
202,
12849,
394,
2350,
1941,
503,
12,
5752,
14935,
18,
1785,
67,
21045,
67,
3589,
16,
315,
668,
5811,
1278,
1976,
411,
6,
15,
718,
780,
15,
6441,
30,
13773,
73,
18,
24906,
9334,
446,
1769,
1082,
202,
97,
1044,
261,
14106,
425,
13,
288,
9506,
202,
12849,
394,
2350,
1941,
503,
12,
5752,
14935,
18,
1785,
67,
21045,
67,
3589,
16,
315,
4294,
555,
1323,
17146,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
12,
42,
4258,
1952,
1503,
1838,
16,
2029,
756,
13,
1216,
2350,
1941,
503,
288,
202,
202,
780,
29374,
273,
2662,
18,
588,
2932,
1785,
8863,
202,
202,
780,
585,
780,
273,
2662,
18,
588,
2932,
812,
8863,
202,
202,
780,
1892,
1278,
273,
446,
31,
202,
202,
17947,
2514,
316,
31,
202,
202,
430,
12,
718,
780,
480,
446,
13,
288,
1082,
202,
698,
288,
9506,
202,
1785,
880,
273,
394,
1976,
12,
718,
780,
1769,
9506,
202,
14790,
6232,
273,
880,
18,
3190,
1952,
5621,
9506,
202,
267,
273,
394,
10633,
12,
394,
15322,
12,
5286,
18,
588,
4348,
1435,
10019,
9506,
202,
1734,
273,
394,
6674,
12,
2163,
3247,
1769,
9506,
2
] |
pack(); }
|
pack(); }
|
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; lbSelectTask = new javax.swing.JLabel(); cmbSelectTask = new javax.swing.JComboBox(); lbSelectTime = new javax.swing.JLabel(); spHours = new javax.swing.JSpinner(); lbColumn1 = new javax.swing.JLabel(); spMinutes = new javax.swing.JSpinner(); lbColumn2 = new javax.swing.JLabel(); spSeconds = new javax.swing.JSpinner(); pnButtons = new javax.swing.JPanel(); btOK = new javax.swing.JButton(); btCancel = new javax.swing.JButton(); getContentPane().setLayout(new java.awt.GridBagLayout()); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setTitle(Translator.getTranslation("MOVETIMEDIALOG.SELECT_TASK")); lbSelectTask.setDisplayedMnemonic(Translator.getMnemonic("MOVETIMEDIALOG.SELECT_TASK")); lbSelectTask.setLabelFor(cmbSelectTask); lbSelectTask.setText(Translator.getTranslation("MOVETIMEDIALOG.SELECT_TASK")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 6; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); getContentPane().add(lbSelectTask, gridBagConstraints); cmbSelectTask.setToolTipText(Translator.getTranslation("MOVETIMEDIALOG.SELECT_TASK_TOOLTIP")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridy = 1; gridBagConstraints.gridwidth = 6; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); getContentPane().add(cmbSelectTask, gridBagConstraints); lbSelectTime.setDisplayedMnemonic(Translator.getMnemonic("MOVETIMEDIALOG.SELECT_TIME")); lbSelectTime.setLabelFor(spHours); lbSelectTime.setText(Translator.getTranslation("MOVETIMEDIALOG.SELECT_TIME")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridy = 2; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); getContentPane().add(lbSelectTime, gridBagConstraints); spHours.setToolTipText(Translator.getTranslation("MOVETIMEDIALOG.HOURS_TOOLTIP")); spHours.setPreferredSize(new java.awt.Dimension(50, 20)); spHours.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { spHoursStateChanged(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridy = 2; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); getContentPane().add(spHours, gridBagConstraints); lbColumn1.setText(":"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridy = 2; getContentPane().add(lbColumn1, gridBagConstraints); spMinutes.setToolTipText(Translator.getTranslation("MOVETIMEDIALOG.MINUTES_TOOLTIP")); spMinutes.setPreferredSize(new java.awt.Dimension(50, 20)); spMinutes.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { spMinutesStateChanged(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridy = 2; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); getContentPane().add(spMinutes, gridBagConstraints); lbColumn2.setText(":"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridy = 2; getContentPane().add(lbColumn2, gridBagConstraints); spSeconds.setToolTipText(Translator.getTranslation("MOVETIMEDIALOG.SECONDS_TOOLTIP")); spSeconds.setPreferredSize(new java.awt.Dimension(50, 20)); spSeconds.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { spSecondsStateChanged(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridy = 2; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); getContentPane().add(spSeconds, gridBagConstraints); btOK.setMnemonic(Translator.getMnemonic("MOVETIMEDIALOG.BT_OK")); btOK.setText(Translator.getTranslation("MOVETIMEDIALOG.BT_OK")); btOK.setToolTipText(Translator.getTranslation("MOVETIMEDIALOG.BT_OK_TOOLTIP")); btOK.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btOKActionPerformed(evt); } }); pnButtons.add(btOK); btCancel.setMnemonic(Translator.getMnemonic("MOVETIMEDIALOG.BT_CANCEL")); btCancel.setText(Translator.getTranslation("MOVETIMEDIALOG.BT_CANCEL")); btCancel.setToolTipText(Translator.getTranslation("MOVETIMEDIALOG.BT_CANCEL_TOOLTIP")); btCancel.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btCancelActionPerformed(evt); } }); pnButtons.add(btCancel); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridy = 3; gridBagConstraints.gridwidth = 6; getContentPane().add(pnButtons, gridBagConstraints); pack(); }
|
4241 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4241/55a351a59e0962eefc717bd7f3b6e9f1cc48b14f/MoveTimeDialog.java/buggy/src/org/cesilko/rachota/gui/MoveTimeDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
7171,
1435,
288,
3639,
2252,
18,
2219,
88,
18,
6313,
6852,
8747,
31,
3639,
7831,
3391,
2174,
273,
394,
6863,
18,
5328,
310,
18,
46,
2224,
5621,
3639,
276,
1627,
3391,
2174,
273,
394,
6863,
18,
5328,
310,
18,
46,
22199,
5621,
3639,
7831,
3391,
950,
273,
394,
6863,
18,
5328,
310,
18,
46,
2224,
5621,
3639,
1694,
14910,
273,
394,
6863,
18,
5328,
310,
18,
46,
31676,
5621,
3639,
7831,
1494,
21,
273,
394,
6863,
18,
5328,
310,
18,
46,
2224,
5621,
3639,
1694,
13050,
273,
394,
6863,
18,
5328,
310,
18,
46,
31676,
5621,
3639,
7831,
1494,
22,
273,
394,
6863,
18,
5328,
310,
18,
46,
2224,
5621,
3639,
1694,
6762,
273,
394,
6863,
18,
5328,
310,
18,
46,
31676,
5621,
3639,
11059,
14388,
273,
394,
6863,
18,
5328,
310,
18,
46,
5537,
5621,
3639,
10921,
3141,
273,
394,
6863,
18,
5328,
310,
18,
46,
3616,
5621,
3639,
10921,
6691,
273,
394,
6863,
18,
5328,
310,
18,
46,
3616,
5621,
3639,
5154,
8485,
7675,
542,
3744,
12,
2704,
2252,
18,
2219,
88,
18,
6313,
5013,
3744,
10663,
3639,
9277,
4605,
2988,
12,
28384,
18,
5328,
310,
18,
3829,
2918,
18,
13498,
23757,
67,
673,
67,
13384,
1769,
3639,
14109,
12,
12233,
18,
588,
6717,
2932,
5980,
58,
15537,
2565,
18683,
18,
4803,
67,
15580,
7923,
1769,
3639,
7831,
3391,
2174,
18,
542,
4236,
329,
29668,
20918,
12,
12233,
18,
588,
29668,
20918,
2932,
5980,
58,
15537,
2565,
18683,
18,
4803,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
7171,
1435,
288,
3639,
2252,
18,
2219,
88,
18,
6313,
6852,
8747,
31,
3639,
7831,
3391,
2174,
273,
394,
6863,
18,
5328,
310,
18,
46,
2224,
5621,
3639,
276,
1627,
3391,
2174,
273,
394,
6863,
18,
5328,
310,
18,
46,
22199,
5621,
3639,
7831,
3391,
950,
273,
394,
6863,
18,
5328,
310,
18,
46,
2224,
5621,
3639,
1694,
14910,
273,
394,
6863,
18,
5328,
310,
18,
46,
31676,
5621,
3639,
7831,
1494,
21,
273,
394,
6863,
18,
5328,
310,
18,
46,
2224,
5621,
3639,
1694,
13050,
273,
394,
6863,
18,
5328,
310,
18,
46,
31676,
5621,
3639,
7831,
1494,
22,
273,
394,
6863,
18,
5328,
310,
18,
46,
2224,
5621,
3639,
1694,
6762,
273,
394,
2
] |
while (today <= endIdx) { lowest = inReal[trailingIdx++]; highest = lowest; for (i = trailingIdx; i <= today; i++) { tmp = inReal[i]; if (tmp < lowest) lowest = tmp; else if (tmp > highest) highest = tmp; }
|
public TA_RetCode MIDPOINT(int startIdx, int endIdx, double inReal[], int optInTimePeriod, MInteger outBegIdx, MInteger outNbElement, double outReal[]) { double lowest, highest, tmp; int outIdx, nbInitialElementNeeded; int trailingIdx, today, i; if (startIdx < 0) return TA_RetCode.TA_OUT_OF_RANGE_START_INDEX; if ((endIdx < 0) || (endIdx < startIdx)) return TA_RetCode.TA_OUT_OF_RANGE_END_INDEX; if ((int) optInTimePeriod == (Integer.MIN_VALUE )) optInTimePeriod = 14; else if (((int) optInTimePeriod < 2) || ((int) optInTimePeriod > 100000)) return TA_RetCode.TA_BAD_PARAM; nbInitialElementNeeded = (optInTimePeriod - 1); if (startIdx < nbInitialElementNeeded) startIdx = nbInitialElementNeeded; if (startIdx > endIdx) { outBegIdx.value = 0; outNbElement.value = 0; return TA_RetCode.TA_SUCCESS; } outIdx = 0; today = startIdx; trailingIdx = startIdx - nbInitialElementNeeded; while (today <= endIdx) { lowest = inReal[trailingIdx++]; highest = lowest; for (i = trailingIdx; i <= today; i++) { tmp = inReal[i]; if (tmp < lowest) lowest = tmp; else if (tmp > highest) highest = tmp; } outReal[outIdx++] = (highest + lowest) / 2.0; today++; } outBegIdx.value = startIdx; outNbElement.value = outIdx; return TA_RetCode.TA_SUCCESS; }
|
2365 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2365/8c26ea7a2c59f9148f3db0db7ab39ed48689e601/Core.java/buggy/ta-lib/java/src/TA/Lib/Core.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
399,
37,
67,
7055,
1085,
490,
734,
8941,
12,
474,
27108,
16,
509,
679,
4223,
16,
1645,
316,
6955,
63,
6487,
1082,
202,
474,
2153,
382,
26540,
16,
490,
4522,
596,
24059,
4223,
16,
490,
4522,
596,
22816,
1046,
16,
1082,
202,
9056,
29205,
63,
5717,
288,
202,
202,
9056,
11981,
16,
9742,
16,
1853,
31,
202,
202,
474,
596,
4223,
16,
4264,
4435,
1046,
11449,
31,
202,
202,
474,
7341,
4223,
16,
10074,
16,
277,
31,
202,
202,
430,
261,
1937,
4223,
411,
374,
13,
1082,
202,
2463,
399,
37,
67,
7055,
1085,
18,
9833,
67,
5069,
67,
3932,
67,
15928,
67,
7570,
67,
9199,
31,
202,
202,
430,
14015,
409,
4223,
411,
374,
13,
747,
261,
409,
4223,
411,
27108,
3719,
1082,
202,
2463,
399,
37,
67,
7055,
1085,
18,
9833,
67,
5069,
67,
3932,
67,
15928,
67,
4415,
67,
9199,
31,
202,
202,
430,
14015,
474,
13,
2153,
382,
26540,
422,
261,
4522,
18,
6236,
67,
4051,
8623,
1082,
202,
3838,
382,
26540,
273,
5045,
31,
202,
202,
12107,
309,
261,
12443,
474,
13,
2153,
382,
26540,
411,
576,
13,
9506,
202,
20081,
14015,
474,
13,
2153,
382,
26540,
405,
25259,
3719,
1082,
202,
2463,
399,
37,
67,
7055,
1085,
18,
9833,
67,
16234,
67,
8388,
31,
202,
202,
6423,
4435,
1046,
11449,
273,
261,
3838,
382,
26540,
300,
404,
1769,
202,
202,
430,
261,
1937,
4223,
411,
4264,
4435,
1046,
11449,
13,
1082,
202,
1937,
4223,
273,
4264,
4435,
1046,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
399,
37,
67,
7055,
1085,
490,
734,
8941,
12,
474,
27108,
16,
509,
679,
4223,
16,
1645,
316,
6955,
63,
6487,
1082,
202,
474,
2153,
382,
26540,
16,
490,
4522,
596,
24059,
4223,
16,
490,
4522,
596,
22816,
1046,
16,
1082,
202,
9056,
29205,
63,
5717,
288,
202,
202,
9056,
11981,
16,
9742,
16,
1853,
31,
202,
202,
474,
596,
4223,
16,
4264,
4435,
1046,
11449,
31,
202,
202,
474,
7341,
4223,
16,
10074,
16,
277,
31,
202,
202,
430,
261,
1937,
4223,
411,
374,
13,
1082,
202,
2463,
399,
37,
67,
7055,
1085,
18,
9833,
67,
5069,
67,
3932,
67,
15928,
67,
7570,
67,
9199,
31,
202,
202,
430,
14015,
409,
4223,
411,
374,
13,
2
] |
|
if ("onlyGroup".equals(showInRoster) && !groups.isEmpty()) {
|
if ("onlyGroup".equals(showInRoster)) {
|
public boolean isSharedGroupVisible(Group sharedGroup, Collection<Group> groups) { Map<String, String> properties = sharedGroup.getProperties(); String showInRoster = properties.get("sharedRoster.showInRoster"); if ("everybody".equals(showInRoster)) { return true; } if ("onlyGroup".equals(showInRoster) && !groups.isEmpty()) { Collection<String> groupNames = new ArrayList<String>(groups.size()); for (Group group : groups) { groupNames.add(group.getName()); } Collection<String> visibleGroups = parseGroupNames(properties.get("sharedRoster.groupList")); return !Collections.disjoint(visibleGroups, groupNames); } return false; }
|
6312 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6312/53e6ae314290b5b32441ec29b230219de782ee21/RosterManager.java/buggy/src/java/org/jivesoftware/wildfire/roster/RosterManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
7887,
1114,
6207,
12,
1114,
5116,
1114,
16,
2200,
32,
1114,
34,
3252,
13,
288,
3639,
1635,
32,
780,
16,
514,
34,
1790,
273,
5116,
1114,
18,
588,
2297,
5621,
3639,
514,
2405,
382,
54,
29811,
273,
1790,
18,
588,
2932,
11574,
54,
29811,
18,
4500,
382,
54,
29811,
8863,
3639,
309,
7566,
20434,
3432,
9654,
14963,
12,
4500,
382,
54,
29811,
3719,
288,
5411,
327,
638,
31,
3639,
289,
3639,
309,
7566,
3700,
1114,
9654,
14963,
12,
4500,
382,
54,
29811,
3719,
288,
5411,
2200,
32,
780,
34,
1041,
1557,
273,
394,
2407,
32,
780,
34,
12,
4650,
18,
1467,
10663,
5411,
364,
261,
1114,
1041,
294,
3252,
13,
288,
7734,
1041,
1557,
18,
1289,
12,
1655,
18,
17994,
10663,
5411,
289,
5411,
2200,
32,
780,
34,
6021,
3621,
273,
10792,
1109,
1114,
1557,
12,
4738,
18,
588,
2932,
11574,
54,
29811,
18,
1655,
682,
7923,
1769,
5411,
327,
401,
15150,
18,
2251,
16452,
12,
8613,
3621,
16,
1041,
1557,
1769,
3639,
289,
3639,
327,
629,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
7887,
1114,
6207,
12,
1114,
5116,
1114,
16,
2200,
32,
1114,
34,
3252,
13,
288,
3639,
1635,
32,
780,
16,
514,
34,
1790,
273,
5116,
1114,
18,
588,
2297,
5621,
3639,
514,
2405,
382,
54,
29811,
273,
1790,
18,
588,
2932,
11574,
54,
29811,
18,
4500,
382,
54,
29811,
8863,
3639,
309,
7566,
20434,
3432,
9654,
14963,
12,
4500,
382,
54,
29811,
3719,
288,
5411,
327,
638,
31,
3639,
289,
3639,
309,
7566,
3700,
1114,
9654,
14963,
12,
4500,
382,
54,
29811,
3719,
288,
5411,
2200,
32,
780,
34,
1041,
1557,
273,
394,
2407,
32,
780,
34,
12,
4650,
18,
1467,
10663,
5411,
364,
261,
1114,
1041,
294,
3252,
13,
288,
7734,
1041,
1557,
18,
2
] |
if (resources == null) return res;
|
if (resources == null || resources.length==0) return res;
|
public Resource getWSDLResource(WebServiceDescription webService) { if (webService == null) return null; String wsdlFileName = webService.getWsdlFile(); Resource res = null; IVirtualResource[] resources = ComponentCore.createResources(WorkbenchResourceHelper.getFile(webService)); if (resources == null) return res; WSDDArtifactEdit artifactEdit = getExistingWSDDArtifactEdit(resources[0].getComponent().getProject()); if (artifactEdit!=null) res = artifactEdit.getWsdlResource(wsdlFileName); return res; }
|
8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/2c5498a08deb118f218f3ce47022912dc412d66e/WebServicesManager.java/clean/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/helper/WebServicesManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2591,
336,
2651,
8914,
1420,
12,
31946,
3291,
3311,
1179,
13,
288,
202,
202,
430,
261,
4875,
1179,
422,
446,
13,
1082,
202,
2463,
446,
31,
202,
202,
780,
17642,
4771,
273,
3311,
1179,
18,
588,
15444,
5761,
812,
5621,
202,
202,
1420,
400,
273,
446,
31,
202,
202,
45,
6466,
1420,
8526,
2703,
273,
5435,
4670,
18,
2640,
3805,
12,
2421,
22144,
1420,
2276,
18,
29925,
12,
4875,
1179,
10019,
202,
202,
430,
261,
4683,
422,
446,
13,
327,
400,
31,
202,
202,
2651,
5698,
7581,
4666,
6462,
4666,
273,
336,
9895,
2651,
5698,
7581,
4666,
12,
4683,
63,
20,
8009,
588,
1841,
7675,
588,
4109,
10663,
202,
202,
430,
261,
17706,
4666,
5,
33,
2011,
13,
1875,
202,
455,
273,
6462,
4666,
18,
588,
15444,
5761,
1420,
12,
4749,
5761,
4771,
1769,
202,
202,
2463,
400,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2591,
336,
2651,
8914,
1420,
12,
31946,
3291,
3311,
1179,
13,
288,
202,
202,
430,
261,
4875,
1179,
422,
446,
13,
1082,
202,
2463,
446,
31,
202,
202,
780,
17642,
4771,
273,
3311,
1179,
18,
588,
15444,
5761,
812,
5621,
202,
202,
1420,
400,
273,
446,
31,
202,
202,
45,
6466,
1420,
8526,
2703,
273,
5435,
4670,
18,
2640,
3805,
12,
2421,
22144,
1420,
2276,
18,
29925,
12,
4875,
1179,
10019,
202,
202,
430,
261,
4683,
422,
446,
13,
327,
400,
31,
202,
202,
2651,
5698,
7581,
4666,
6462,
4666,
273,
336,
9895,
2651,
5698,
7581,
4666,
12,
4683,
63,
20,
8009,
588,
1841,
7675,
588,
4109,
10663,
202,
202,
430,
261,
17706,
4666,
5,
33,
2
] |
this.browser.putValue(Action.MNEMONIC_KEY, new Integer(getString("Menu.BrowserMnemonic").charAt(0)));
|
this.browser.putValue(Action.MNEMONIC_KEY, Integer.valueOf(getString("Menu.BrowserMnemonic").charAt(0)));
|
TrayMenuBuilder(final SystemApplication application) { super(); this.application = application; this.browser = new AbstractAction(getString("Menu.Browser")) { private static final long serialVersionUID = 1; public void actionPerformed(final ActionEvent e) { application.runRestoreBrowser(); }}; this.browser.putValue(Action.MNEMONIC_KEY, new Integer(getString("Menu.BrowserMnemonic").charAt(0))); if(application.isDevelopmentMode()) { this.restart = new AbstractAction(getString("Menu.Restart")) { private static final long serialVersionUID = 1; public void actionPerformed(final ActionEvent e) { application.runRestartPlatform(); } }; this.restart.putValue(Action.MNEMONIC_KEY, new Integer(getString("Menu.RestartMnemonic").charAt(0))); } else { this.restart = null; } this.exit = new AbstractAction(getString("Menu.Exit")) { private static final long serialVersionUID = 1; public void actionPerformed(final ActionEvent e) { application.runExitPlatform(); }}; this.exit.putValue(Action.MNEMONIC_KEY, new Integer(getString("Menu.ExitMnemonic").charAt(0))); }
|
53635 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53635/b48d5f12cfbd55a079090b6bb3853ec3e1ca1f28/TrayMenuBuilder.java/buggy/client-ui/src/main/java/com/thinkparity/ophelia/browser/application/system/tray/TrayMenuBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
399,
435,
4599,
1263,
12,
6385,
2332,
3208,
2521,
13,
288,
3639,
2240,
5621,
3639,
333,
18,
3685,
273,
2521,
31,
3639,
333,
18,
11213,
273,
394,
4115,
1803,
12,
588,
780,
2932,
4599,
18,
9132,
6,
3719,
288,
5411,
3238,
760,
727,
1525,
30244,
273,
404,
31,
5411,
1071,
918,
26100,
12,
6385,
19641,
425,
13,
288,
7734,
2521,
18,
2681,
10874,
9132,
5621,
5411,
10523,
31,
3639,
333,
18,
11213,
18,
458,
620,
12,
1803,
18,
49,
50,
3375,
673,
2871,
67,
3297,
16,
2144,
18,
1132,
951,
12,
588,
780,
2932,
4599,
18,
9132,
29668,
20918,
20387,
3001,
861,
12,
20,
3719,
1769,
3639,
309,
12,
3685,
18,
291,
26438,
2309,
10756,
288,
5411,
333,
18,
19164,
273,
394,
4115,
1803,
12,
588,
780,
2932,
4599,
18,
15057,
6,
3719,
288,
7734,
3238,
760,
727,
1525,
30244,
273,
404,
31,
7734,
1071,
918,
26100,
12,
6385,
19641,
425,
13,
288,
10792,
2521,
18,
2681,
15057,
8201,
5621,
7734,
289,
5411,
289,
31,
5411,
333,
18,
19164,
18,
458,
620,
12,
1803,
18,
49,
50,
3375,
673,
2871,
67,
3297,
16,
394,
2144,
12,
588,
780,
2932,
4599,
18,
15057,
29668,
20918,
20387,
3001,
861,
12,
20,
3719,
1769,
3639,
289,
3639,
469,
288,
333,
18,
19164,
273,
446,
31,
289,
3639,
333,
18,
8593,
273,
394,
4115,
1803,
12,
588,
780,
2932,
4599,
18,
6767,
6,
3719,
288,
5411,
3238,
760,
727,
1525,
30244,
273,
404,
31,
5411,
1071,
918,
26100,
12,
6385,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
399,
435,
4599,
1263,
12,
6385,
2332,
3208,
2521,
13,
288,
3639,
2240,
5621,
3639,
333,
18,
3685,
273,
2521,
31,
3639,
333,
18,
11213,
273,
394,
4115,
1803,
12,
588,
780,
2932,
4599,
18,
9132,
6,
3719,
288,
5411,
3238,
760,
727,
1525,
30244,
273,
404,
31,
5411,
1071,
918,
26100,
12,
6385,
19641,
425,
13,
288,
7734,
2521,
18,
2681,
10874,
9132,
5621,
5411,
10523,
31,
3639,
333,
18,
11213,
18,
458,
620,
12,
1803,
18,
49,
50,
3375,
673,
2871,
67,
3297,
16,
2144,
18,
1132,
951,
12,
588,
780,
2932,
4599,
18,
9132,
29668,
20918,
20387,
3001,
861,
12,
20,
3719,
1769,
3639,
309,
12,
3685,
18,
291,
26438,
2309,
10756,
288,
5411,
333,
2
] |
public PacketBuilder(RouterContext ctx, UDPTransport transport) {
|
public PacketBuilder(I2PAppContext ctx) {
|
public PacketBuilder(RouterContext ctx, UDPTransport transport) { _context = ctx; _log = ctx.logManager().getLog(PacketBuilder.class); _transport = transport; }
|
27493 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27493/9e5fe7d2b6b1021feed75ebf5156f3ae8688026f/PacketBuilder.java/clean/router/java/src/net/i2p/router/transport/udp/PacketBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
11114,
1263,
12,
45,
22,
52,
3371,
1042,
1103,
13,
288,
3639,
389,
2472,
273,
1103,
31,
3639,
389,
1330,
273,
1103,
18,
1330,
1318,
7675,
588,
1343,
12,
6667,
1263,
18,
1106,
1769,
3639,
389,
13049,
273,
4736,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
11114,
1263,
12,
45,
22,
52,
3371,
1042,
1103,
13,
288,
3639,
389,
2472,
273,
1103,
31,
3639,
389,
1330,
273,
1103,
18,
1330,
1318,
7675,
588,
1343,
12,
6667,
1263,
18,
1106,
1769,
3639,
389,
13049,
273,
4736,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
private final boolean drawRaster (ColorModel cm, Raster r, AffineTransform imageToUser, Color bgcolor) { if (r == null) return false; SampleModel sm = r.getSampleModel (); DataBuffer db = r.getDataBuffer (); if (db == null || sm == null) return false; if (cm == null) cm = ColorModel.getRGBdefault (); double[] i2u = new double[6]; if (imageToUser != null) imageToUser.getMatrix(i2u); else { i2u[0] = 1; i2u[1] = 0; i2u[2] = 0; i2u[3] = 1; i2u[4] = 0; i2u[5] = 0; } int pixels[] = null; if (sm.getDataType () == DataBuffer.TYPE_INT && db instanceof DataBufferInt && db.getNumBanks () == 1) { // single bank, ARGB-ints buffer in sRGB space DataBufferInt dbi = (DataBufferInt)db; pixels = dbi.getData (); } else pixels = r.getPixels (0, 0, r.getWidth (), r.getHeight (), pixels); ColorSpace cs = cm.getColorSpace (); if (cs != null && cs.getType () != ColorSpace.CS_sRGB) { int pixels2[] = new int[pixels.length]; for (int i = 0; i < pixels2.length; i++) pixels2[i] = cm.getRGB (pixels[i]); pixels = pixels2; } // change all transparent pixels in the image to the // specified bgcolor if (cm.hasAlpha()) { if (bgcolor != null) for (int i = 0; i < pixels.length; i++) { if (cm.getAlpha (pixels[i]) == 0) pixels[i] = bgcolor.getRGB (); } } else for (int i = 0; i < pixels.length; i++) pixels[i] |= 0xFF000000; drawPixels (pixels, r.getWidth (), r.getHeight (), r.getWidth (), i2u); if (isBufferedImageGraphics ()) updateBufferedImage(); return true; }
|
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/bef34bda2204726d6cecbf5422e100bc663abc3e/GdkGraphics2D.java/buggy/libraries/javalib/gnu/java/awt/peer/gtk/GdkGraphics2D.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
727,
1250,
3724,
18637,
261,
2957,
1488,
5003,
16,
30757,
436,
16,
19694,
23906,
558,
4059,
1316,
774,
1299,
16,
19694,
5563,
31509,
13,
225,
288,
565,
309,
261,
86,
422,
446,
13,
1377,
327,
629,
31,
565,
11474,
1488,
3029,
273,
436,
18,
588,
8504,
1488,
261,
1769,
565,
1910,
1892,
1319,
273,
436,
18,
588,
751,
1892,
261,
1769,
565,
309,
261,
1966,
422,
446,
747,
3029,
422,
446,
13,
1377,
327,
629,
31,
565,
309,
261,
7670,
422,
446,
13,
1377,
5003,
273,
5563,
1488,
18,
588,
11343,
1886,
261,
1769,
565,
1645,
8526,
277,
22,
89,
273,
394,
1645,
63,
26,
15533,
565,
309,
261,
2730,
774,
1299,
480,
446,
13,
1377,
1316,
774,
1299,
18,
588,
4635,
12,
77,
22,
89,
1769,
565,
469,
1377,
288,
3639,
277,
22,
89,
63,
20,
65,
273,
404,
31,
277,
22,
89,
63,
21,
65,
273,
374,
31,
3639,
277,
22,
89,
63,
22,
65,
273,
374,
31,
277,
22,
89,
63,
23,
65,
273,
404,
31,
3639,
277,
22,
89,
63,
24,
65,
273,
374,
31,
277,
22,
89,
63,
25,
65,
273,
374,
31,
1377,
289,
565,
509,
8948,
8526,
273,
446,
31,
565,
309,
261,
4808,
18,
588,
6273,
1832,
422,
1910,
1892,
18,
2399,
67,
3217,
597,
3639,
1319,
1276,
1910,
1892,
1702,
597,
3639,
1319,
18,
588,
2578,
16040,
87,
1832,
422,
404,
13,
1377,
288,
3639,
368,
2202,
11218,
16,
6052,
5887,
17,
28142,
1613,
316,
272,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
727,
1250,
3724,
18637,
261,
2957,
1488,
5003,
16,
30757,
436,
16,
19694,
23906,
558,
4059,
1316,
774,
1299,
16,
19694,
5563,
31509,
13,
225,
288,
565,
309,
261,
86,
422,
446,
13,
1377,
327,
629,
31,
565,
11474,
1488,
3029,
273,
436,
18,
588,
8504,
1488,
261,
1769,
565,
1910,
1892,
1319,
273,
436,
18,
588,
751,
1892,
261,
1769,
565,
309,
261,
1966,
422,
446,
747,
3029,
422,
446,
13,
1377,
327,
629,
31,
565,
309,
261,
7670,
422,
446,
13,
1377,
5003,
273,
5563,
1488,
18,
588,
11343,
1886,
261,
1769,
565,
1645,
8526,
277,
22,
89,
273,
394,
1645,
63,
26,
15533,
565,
309,
261,
2730,
774,
1299,
480,
446,
13,
1377,
1316,
2
] |
||
AbstractExpression expr = (AbstractExpression)iter.next(); if (!expr.isEnabledFor(obj))
|
AbstractExpression expr = (AbstractExpression) iter.next(); if (!expr.isEnabledFor(object))
|
public boolean isEnabledFor(Object obj) { Iterator iter = list.iterator(); while (iter.hasNext()) { AbstractExpression expr = (AbstractExpression)iter.next(); if (!expr.isEnabledFor(obj)) return false; } return true; }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/5a7207e86843def9001d641c82b7f76fd7c9d57f/ActionExpression.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ActionExpression.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1250,
12047,
1290,
12,
921,
1081,
13,
288,
1082,
202,
3198,
1400,
273,
666,
18,
9838,
5621,
1082,
202,
17523,
261,
2165,
18,
5332,
2134,
10756,
288,
9506,
202,
7469,
2300,
3065,
273,
261,
7469,
2300,
13,
2165,
18,
4285,
5621,
9506,
202,
430,
16051,
8638,
18,
291,
1526,
1290,
12,
2603,
3719,
6862,
202,
2463,
629,
31,
1082,
202,
97,
1082,
202,
2463,
638,
31,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1250,
12047,
1290,
12,
921,
1081,
13,
288,
1082,
202,
3198,
1400,
273,
666,
18,
9838,
5621,
1082,
202,
17523,
261,
2165,
18,
5332,
2134,
10756,
288,
9506,
202,
7469,
2300,
3065,
273,
261,
7469,
2300,
13,
2165,
18,
4285,
5621,
9506,
202,
430,
16051,
8638,
18,
291,
1526,
1290,
12,
2603,
3719,
6862,
202,
2463,
629,
31,
1082,
202,
97,
1082,
202,
2463,
638,
31,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
property = nf.createNumber(n);
|
property = ScriptRuntime.getIndexObject(n);
|
private Object primaryExpr() throws IOException, ParserException { int tt; Object pn; ts.flags |= ts.TSF_REGEXP; tt = ts.getToken(); ts.flags &= ~ts.TSF_REGEXP; switch(tt) { case Token.FUNCTION: return function(FunctionNode.FUNCTION_EXPRESSION); case Token.LB: { decompiler.addToken(Token.LB); pn = nf.createLeaf(Token.ARRAYLIT); ts.flags |= ts.TSF_REGEXP; boolean matched = ts.matchToken(Token.RB); ts.flags &= ~ts.TSF_REGEXP; if (!matched) { boolean first = true; do { ts.flags |= ts.TSF_REGEXP; tt = ts.peekToken(); ts.flags &= ~ts.TSF_REGEXP; if (!first) decompiler.addToken(Token.COMMA); else first = false; if (tt == Token.RB) { // to fix [,,,].length behavior... break; } if (tt == Token.COMMA) { nf.addChildToBack(pn, nf.createLeaf(Token.UNDEFINED)); } else { nf.addChildToBack(pn, assignExpr(false)); } } while (ts.matchToken(Token.COMMA)); mustMatchToken(Token.RB, "msg.no.bracket.arg"); } decompiler.addToken(Token.RB); return nf.createArrayLiteral(pn); } case Token.LC: { pn = nf.createLeaf(Token.OBJLIT); decompiler.addToken(Token.LC); if (!ts.matchToken(Token.RC)) { boolean first = true; commaloop: do { Object property; if (!first) decompiler.addToken(Token.COMMA); else first = false; tt = ts.getToken(); switch(tt) { // map NAMEs to STRINGs in object literal context. case Token.NAME: case Token.STRING: String s = ts.getString(); decompiler.addName(s); property = nf.createString(ts.getString()); break; case Token.NUMBER: double n = ts.getNumber(); decompiler.addNumber(n); property = nf.createNumber(n); break; case Token.RC: // trailing comma is OK. ts.ungetToken(tt); break commaloop; default: reportError("msg.bad.prop"); break commaloop; } mustMatchToken(Token.COLON, "msg.no.colon.prop"); // OBJLIT is used as ':' in object literal for // decompilation to solve spacing ambiguity. decompiler.addToken(Token.OBJLIT); nf.addChildToBack(pn, property); nf.addChildToBack(pn, assignExpr(false)); } while (ts.matchToken(Token.COMMA)); mustMatchToken(Token.RC, "msg.no.brace.prop"); } decompiler.addToken(Token.RC); return nf.createObjectLiteral(pn); } case Token.LP: /* Brendan's IR-jsparse.c makes a new node tagged with * TOK_LP here... I'm not sure I understand why. Isn't * the grouping already implicit in the structure of the * parse tree? also TOK_LP is already overloaded (I * think) in the C IR as 'function call.' */ decompiler.addToken(Token.LP); pn = expr(false); decompiler.addToken(Token.RP); mustMatchToken(Token.RP, "msg.no.paren"); return pn; case Token.NAME: String name = ts.getString(); decompiler.addName(name); return nf.createName(name); case Token.NUMBER: double n = ts.getNumber(); decompiler.addNumber(n); return nf.createNumber(n); case Token.STRING: String s = ts.getString(); decompiler.addString(s); return nf.createString(s); case Token.REGEXP: { String flags = ts.regExpFlags; ts.regExpFlags = null; String re = ts.getString(); decompiler.addRegexp(re, flags); int index = currentScriptOrFn.addRegexp(re, flags); return nf.createRegExp(index); } case Token.NULL: case Token.THIS: case Token.FALSE: case Token.TRUE: decompiler.addToken(tt); return nf.createLeaf(tt); case Token.RESERVED: reportError("msg.reserved.id"); break; case Token.ERROR: /* the scanner or one of its subroutines reported the error. */ break; default: reportError("msg.syntax"); break; } return null; // should never reach here }
|
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/37be8f9cfb362f40c2f19056693cb9e21cb13bcb/Parser.java/clean/js/rhino/src/org/mozilla/javascript/Parser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
3354,
4742,
1435,
3639,
1216,
1860,
16,
27990,
565,
288,
3639,
509,
3574,
31,
3639,
1033,
11059,
31,
3639,
3742,
18,
7133,
5626,
3742,
18,
8047,
42,
67,
28225,
31,
3639,
3574,
273,
3742,
18,
588,
1345,
5621,
3639,
3742,
18,
7133,
12058,
4871,
3428,
18,
8047,
42,
67,
28225,
31,
3639,
1620,
12,
748,
13,
288,
3639,
648,
3155,
18,
7788,
30,
5411,
327,
445,
12,
2083,
907,
18,
7788,
67,
19111,
1769,
3639,
648,
3155,
18,
12995,
30,
5411,
288,
7734,
443,
9576,
18,
1289,
1345,
12,
1345,
18,
12995,
1769,
7734,
11059,
273,
13958,
18,
2640,
9858,
12,
1345,
18,
8552,
15716,
1769,
7734,
3742,
18,
7133,
5626,
3742,
18,
8047,
42,
67,
28225,
31,
7734,
1250,
4847,
273,
3742,
18,
1916,
1345,
12,
1345,
18,
19437,
1769,
7734,
3742,
18,
7133,
12058,
4871,
3428,
18,
8047,
42,
67,
28225,
31,
7734,
309,
16051,
11073,
13,
288,
10792,
1250,
1122,
273,
638,
31,
10792,
741,
288,
13491,
3742,
18,
7133,
5626,
3742,
18,
8047,
42,
67,
28225,
31,
13491,
3574,
273,
3742,
18,
347,
3839,
1345,
5621,
13491,
3742,
18,
7133,
12058,
4871,
3428,
18,
8047,
42,
67,
28225,
31,
13491,
309,
16051,
3645,
13,
18701,
443,
9576,
18,
1289,
1345,
12,
1345,
18,
4208,
5535,
1769,
13491,
469,
18701,
1122,
273,
629,
31,
13491,
309,
261,
748,
422,
3155,
18,
19437,
13,
288,
225,
368,
358,
2917,
306,
16408,
16,
8009,
2469,
6885,
2777,
18701,
898,
31,
13491,
289,
13491,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
3354,
4742,
1435,
3639,
1216,
1860,
16,
27990,
565,
288,
3639,
509,
3574,
31,
3639,
1033,
11059,
31,
3639,
3742,
18,
7133,
5626,
3742,
18,
8047,
42,
67,
28225,
31,
3639,
3574,
273,
3742,
18,
588,
1345,
5621,
3639,
3742,
18,
7133,
12058,
4871,
3428,
18,
8047,
42,
67,
28225,
31,
3639,
1620,
12,
748,
13,
288,
3639,
648,
3155,
18,
7788,
30,
5411,
327,
445,
12,
2083,
907,
18,
7788,
67,
19111,
1769,
3639,
648,
3155,
18,
12995,
30,
5411,
288,
7734,
443,
9576,
18,
1289,
1345,
12,
1345,
18,
12995,
1769,
7734,
11059,
273,
13958,
18,
2640,
9858,
12,
1345,
18,
8552,
15716,
1769,
7734,
3742,
18,
7133,
5626,
3742,
18,
8047,
42,
67,
2
] |
protected void aboutToLaunch(final String message) { String msg = ResourceUtil.getFormattedString("TestRunnerViewPart.message.launching", message); //$NON-NLS-1$// setInfoMessage(msg); firePropertyChange(IWorkbenchPart.PROP_TITLE); }
|
55140 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55140/939c2626f5ef7c6550d3a506ac6dd14b7667f498/TestRunnerViewPart.java/clean/src/main/org/testng/eclipse/ui/TestRunnerViewPart.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
6459,
21071,
774,
9569,
12,
6385,
780,
2150,
15329,
780,
3576,
33,
1420,
1304,
18,
588,
18298,
780,
2932,
4709,
9709,
1767,
1988,
18,
2150,
18,
20738,
310,
3113,
2150,
1769,
759,
8,
3993,
17,
5106,
17,
21,
8,
759,
542,
966,
1079,
12,
3576,
1769,
12179,
1396,
3043,
12,
45,
2421,
22144,
1988,
18,
15811,
67,
14123,
1769,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
6459,
21071,
774,
9569,
12,
6385,
780,
2150,
15329,
780,
3576,
33,
1420,
1304,
18,
588,
18298,
780,
2932,
4709,
9709,
1767,
1988,
18,
2150,
18,
20738,
310,
3113,
2150,
1769,
759,
8,
3993,
17,
5106,
17,
21,
8,
759,
542,
966,
1079,
12,
3576,
1769,
12179,
1396,
3043,
12,
45,
2421,
22144,
1988,
18,
15811,
67,
14123,
1769,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
||
Evaluator evaluator, BetaLeftMemory childMemory) { this.extractor = extractor; this.declaration = declaration; this.column = declaration.getColumn(); this.childMemory = childMemory; this.memoryMap = new HashMap();
|
Evaluator evaluator) { this( extractor, declaration, evaluator, null );
|
public ObjectEqualConstrLeftMemory(FieldExtractor extractor, Declaration declaration, Evaluator evaluator, BetaLeftMemory childMemory) { this.extractor = extractor; this.declaration = declaration; this.column = declaration.getColumn(); this.childMemory = childMemory; this.memoryMap = new HashMap(); }
|
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/028f5b1a49bbc18d24283f8ac03e561837e56065/ObjectEqualConstrLeftMemory.java/buggy/drools-core/src/main/java/org/drools/reteoo/beta/ObjectEqualConstrLeftMemory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
5812,
442,
701,
3910,
6031,
12,
974,
10958,
14031,
16,
4766,
4202,
16110,
4302,
8266,
16,
4766,
4202,
31956,
18256,
16,
4766,
4202,
16393,
3910,
6031,
1151,
6031,
13,
288,
3639,
333,
18,
26108,
273,
14031,
31,
3639,
333,
18,
22448,
273,
8266,
31,
3639,
333,
18,
2827,
273,
8266,
18,
588,
1494,
5621,
3639,
333,
18,
3624,
6031,
273,
1151,
6031,
31,
3639,
333,
18,
7858,
863,
273,
394,
4317,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
5812,
442,
701,
3910,
6031,
12,
974,
10958,
14031,
16,
4766,
4202,
16110,
4302,
8266,
16,
4766,
4202,
31956,
18256,
16,
4766,
4202,
16393,
3910,
6031,
1151,
6031,
13,
288,
3639,
333,
18,
26108,
273,
14031,
31,
3639,
333,
18,
22448,
273,
8266,
31,
3639,
333,
18,
2827,
273,
8266,
18,
588,
1494,
5621,
3639,
333,
18,
3624,
6031,
273,
1151,
6031,
31,
3639,
333,
18,
7858,
863,
273,
394,
4317,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
protected String constructVersion( ArtifactRepositoryMetadata metadata )
|
protected String constructVersion( ArtifactMetadata metadata )
|
protected String constructVersion( ArtifactRepositoryMetadata metadata ) { String version = metadata.getBaseVersion(); Snapshot snapshot = metadata.getSnapshot(); if ( snapshot != null ) { if ( snapshot.getTimestamp() != null && snapshot.getBuildNumber() > 0 ) { String newVersion = snapshot.getTimestamp() + "-" + snapshot.getBuildNumber(); if ( version != null ) { version = StringUtils.replace( version, "SNAPSHOT", newVersion ); } else { version = newVersion; } } } return version; }
|
1315 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1315/cb2370199b6cf0c1c62bf36d568ac386780ff12f/SnapshotTransformation.java/buggy/maven-artifact-manager/src/main/java/org/apache/maven/artifact/transform/SnapshotTransformation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
4872,
1444,
12,
14022,
2277,
1982,
262,
565,
288,
3639,
514,
1177,
273,
1982,
18,
588,
2171,
1444,
5621,
3639,
10030,
4439,
273,
1982,
18,
588,
4568,
5621,
3639,
309,
261,
4439,
480,
446,
262,
3639,
288,
5411,
309,
261,
4439,
18,
588,
4921,
1435,
480,
446,
597,
4439,
18,
588,
3116,
1854,
1435,
405,
374,
262,
5411,
288,
7734,
514,
28906,
273,
4439,
18,
588,
4921,
1435,
397,
7514,
397,
4439,
18,
588,
3116,
1854,
5621,
7734,
309,
261,
1177,
480,
446,
262,
7734,
288,
10792,
1177,
273,
5778,
18,
2079,
12,
1177,
16,
315,
13653,
31667,
3113,
28906,
11272,
7734,
289,
7734,
469,
7734,
288,
10792,
1177,
273,
28906,
31,
7734,
289,
5411,
289,
3639,
289,
3639,
327,
1177,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
4872,
1444,
12,
14022,
2277,
1982,
262,
565,
288,
3639,
514,
1177,
273,
1982,
18,
588,
2171,
1444,
5621,
3639,
10030,
4439,
273,
1982,
18,
588,
4568,
5621,
3639,
309,
261,
4439,
480,
446,
262,
3639,
288,
5411,
309,
261,
4439,
18,
588,
4921,
1435,
480,
446,
597,
4439,
18,
588,
3116,
1854,
1435,
405,
374,
262,
5411,
288,
7734,
514,
28906,
273,
4439,
18,
588,
4921,
1435,
397,
7514,
397,
4439,
18,
588,
3116,
1854,
5621,
7734,
309,
261,
1177,
480,
446,
262,
7734,
288,
10792,
1177,
273,
5778,
18,
2079,
12,
1177,
16,
315,
13653,
31667,
3113,
28906,
11272,
7734,
289,
7734,
469,
7734,
288,
10792,
1177,
273,
28906,
31,
7734,
289,
5411,
289,
2
] |
Map attrs = getMap(args, 1);
|
Map<String, Object> attrs = getMap(args, 1);
|
private void doModifyConfig(String[] args) throws ServiceException, ArgException { if (args.length < 3) { usage(); } else { Map attrs = getMap(args, 1); mProvisioning.getConfig().modifyAttrs(attrs, true); } }
|
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/c3ae2538baa5b2aaeeb9c98990b663054e0206c4/ProvUtil.java/clean/ZimbraServer/src/java/com/zimbra/cs/account/ProvUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
741,
11047,
809,
12,
780,
8526,
833,
13,
1216,
16489,
16,
14448,
503,
288,
3639,
309,
261,
1968,
18,
2469,
411,
890,
13,
288,
5411,
4084,
5621,
3639,
289,
469,
288,
5411,
1635,
32,
780,
16,
1033,
34,
3422,
273,
15489,
12,
1968,
16,
404,
1769,
5411,
312,
17485,
18,
588,
809,
7675,
17042,
8262,
12,
7039,
16,
638,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
741,
11047,
809,
12,
780,
8526,
833,
13,
1216,
16489,
16,
14448,
503,
288,
3639,
309,
261,
1968,
18,
2469,
411,
890,
13,
288,
5411,
4084,
5621,
3639,
289,
469,
288,
5411,
1635,
32,
780,
16,
1033,
34,
3422,
273,
15489,
12,
1968,
16,
404,
1769,
5411,
312,
17485,
18,
588,
809,
7675,
17042,
8262,
12,
7039,
16,
638,
1769,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
gd.grabExcessHorizontalSpace= false;
|
gd.grabExcessHorizontalSpace= true;
|
protected static GridData gridDataForText(int span) { GridData gd= new GridData(); gd.horizontalAlignment= GridData.FILL; gd.grabExcessHorizontalSpace= false; gd.horizontalSpan= span; return gd; }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/727981016342909a60563ab3a2643b578ab380e3/StringDialogField.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/wizards/dialogfields/StringDialogField.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
760,
7145,
751,
3068,
751,
1290,
1528,
12,
474,
4548,
13,
288,
202,
202,
6313,
751,
15551,
33,
394,
7145,
751,
5621,
202,
202,
19016,
18,
18396,
11535,
33,
7145,
751,
18,
29818,
31,
202,
202,
19016,
18,
2752,
70,
424,
614,
14457,
3819,
33,
629,
31,
202,
202,
19016,
18,
18396,
6952,
33,
4548,
31,
202,
202,
2463,
15551,
31,
202,
97,
202,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
760,
7145,
751,
3068,
751,
1290,
1528,
12,
474,
4548,
13,
288,
202,
202,
6313,
751,
15551,
33,
394,
7145,
751,
5621,
202,
202,
19016,
18,
18396,
11535,
33,
7145,
751,
18,
29818,
31,
202,
202,
19016,
18,
2752,
70,
424,
614,
14457,
3819,
33,
629,
31,
202,
202,
19016,
18,
18396,
6952,
33,
4548,
31,
202,
202,
2463,
15551,
31,
202,
97,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
ref = reftext.replaceAll(".*?((?:[\\w,\\.]+\\=[\\w,\\.:\\-_\\ ]+)|(?:End)).*(?:\\r?\\n)*", "$1\n");
|
ref = reftext.replaceAll(".*?((?:[\\w,\\.]+\\=[^\r\n]+)|(?:End)).*(?:\\r?\\n)*", "$1\n");
|
public void handlePost(URI uri, Bucket data, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { if(data.size() > 1024*1024) { this.writeReply(ctx, 400, "text/plain", "Too big", "Too much data, darknet toadlet limited to 1MB"); return; } byte[] d = BucketTools.toByteArray(data); String s = new String(d, "us-ascii"); HTTPRequest request; try { request = new HTTPRequest("/", s); } catch (URISyntaxException e) { Logger.error(this, "Impossible: "+e, e); return; } if (request.getParam("connect").length() > 0) { // connect to a new node String urltext = request.getParam("url"); urltext = urltext.trim(); String reftext = request.getParam("ref"); reftext = reftext.trim(); String ref = new String(""); if (urltext.length() > 0) { // fetch reference from a URL try { URL url = new URL(urltext); URLConnection uc = url.openConnection(); BufferedReader in = new BufferedReader( new InputStreamReader(uc.getInputStream())); String line; while ( (line = in.readLine()) != null) { ref += line+"\n"; } } catch (Exception e) { this.sendErrorPage(ctx, 200, "Failed to add node", "Unable to retrieve node reference from "+urltext+"."); } } else if (reftext.length() > 0) { // read directly from post data // this slightly scary looking regexp chops any extra characters off the beginning or ends of lines and removes extra line breaks ref = reftext.replaceAll(".*?((?:[\\w,\\.]+\\=[\\w,\\.:\\-_\\ ]+)|(?:End)).*(?:\\r?\\n)*", "$1\n"); if (ref.endsWith("\n")) { ref = ref.substring(0, ref.length() - 1); } } else { this.sendErrorPage(ctx, 200, "Failed to add node", "Could not detect either a node reference or a URL. Please <a href=\".\">Try again</a>."); return; } // we have a node reference in ref SimpleFieldSet fs; try { fs = new SimpleFieldSet(ref, false); } catch (IOException e) { this.sendErrorPage(ctx, 200, "Failed to add node", "Unable to parse the given text: <pre>"+ref+"</pre> as a node reference: "+e+" Please <a href=\".\">Try again</a>."); return; } PeerNode pn; try { pn = new PeerNode(fs, this.node); } catch (FSParseException e1) { this.sendErrorPage(ctx, 200, "Failed to add node", "Unable to parse the given text: <pre>"+ref+"</pre> as a node reference: "+e1+". Please <a href=\".\">Try again</a>."); return; } catch (PeerParseException e1) { this.sendErrorPage(ctx, 200, "Failed to add node", "Unable to parse the given text: <pre>"+ref+"</pre> as a node reference: "+e1+". Please <a href=\".\">Try again</a>."); return; } if(!this.node.addDarknetConnection(pn)) { this.sendErrorPage(ctx, 200, "Failed to add node", "We already have the given reference. Return to the connections page <a href=\".\">here</a>."); } } else if (request.isParameterSet("disconnect")) { //int hashcode = Integer.decode(request.getParam("node")).intValue(); PeerNode[] peerNodes = node.getDarknetConnections(); for(int i = 0; i < peerNodes.length; i++) { if (request.isParameterSet("delete_node_"+peerNodes[i].hashCode())) { this.node.removeDarknetConnection(peerNodes[i]); } } } this.handleGet(uri, ctx); }
|
52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/cb4646571c2e05d6baada96f366e1abc10f0cc9e/DarknetConnectionsToadlet.java/buggy/src/freenet/clients/http/DarknetConnectionsToadlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
3349,
12,
3098,
2003,
16,
7408,
501,
16,
2974,
361,
1810,
1042,
1103,
13,
1216,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
16,
9942,
503,
288,
202,
202,
430,
12,
892,
18,
1467,
1435,
405,
6250,
14,
2163,
3247,
13,
288,
1082,
202,
2211,
18,
2626,
7817,
12,
5900,
16,
7409,
16,
315,
955,
19,
7446,
3113,
315,
10703,
5446,
3113,
315,
10703,
9816,
501,
16,
23433,
2758,
358,
361,
1810,
13594,
358,
404,
7969,
8863,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
7229,
8526,
302,
273,
7408,
10348,
18,
869,
8826,
12,
892,
1769,
202,
202,
780,
272,
273,
394,
514,
12,
72,
16,
315,
407,
17,
9184,
8863,
202,
202,
23891,
590,
31,
202,
202,
698,
288,
1082,
202,
2293,
273,
394,
25238,
2932,
19,
3113,
272,
1769,
202,
202,
97,
1044,
261,
3098,
14714,
425,
13,
288,
1082,
202,
3328,
18,
1636,
12,
2211,
16,
315,
1170,
12708,
30,
13773,
73,
16,
425,
1769,
1082,
202,
2463,
31,
202,
202,
97,
9506,
202,
430,
261,
2293,
18,
588,
786,
2932,
3612,
20387,
2469,
1435,
405,
374,
13,
288,
1082,
202,
759,
3077,
358,
279,
394,
756,
1082,
202,
780,
880,
955,
273,
590,
18,
588,
786,
2932,
718,
8863,
1082,
202,
718,
955,
273,
880,
955,
18,
5290,
5621,
1082,
202,
780,
1278,
955,
273,
590,
18,
588,
786,
2932,
1734,
8863,
1082,
202,
1734,
955,
273,
1278,
955,
18,
5290,
5621,
25083,
202,
780,
1278,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
3349,
12,
3098,
2003,
16,
7408,
501,
16,
2974,
361,
1810,
1042,
1103,
13,
1216,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
16,
9942,
503,
288,
202,
202,
430,
12,
892,
18,
1467,
1435,
405,
6250,
14,
2163,
3247,
13,
288,
1082,
202,
2211,
18,
2626,
7817,
12,
5900,
16,
7409,
16,
315,
955,
19,
7446,
3113,
315,
10703,
5446,
3113,
315,
10703,
9816,
501,
16,
23433,
2758,
358,
361,
1810,
13594,
358,
404,
7969,
8863,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
7229,
8526,
302,
273,
7408,
10348,
18,
869,
8826,
12,
892,
1769,
202,
202,
780,
272,
273,
394,
514,
12,
72,
16,
315,
407,
17,
9184,
8863,
202,
2
] |
WritableRaster wr = rasterCM.createCompatibleWritableRaster(32, 32);
|
WritableRaster wr; wr = rasterCM.createCompatibleWritableRaster(32, 32);
|
public PatternPaintContext(ColorModel destCM, AffineTransform usr2dev, RenderingHints hints, Filter tile, Rectangle2D patternRegion, Rectangle2D userBounds, boolean overflow) { if(usr2dev == null){ throw new IllegalArgumentException(); } if(hints == null){ hints = new RenderingHints(null); } if(tile == null){ throw new IllegalArgumentException(); } // System.out.println("UsrB: " + userBounds); // System.out.println("PatB: " + patternRegion); // System.out.println("Tile: " + tile); TileRable tileRable = new TileRable8Bit(tile, userBounds, patternRegion, overflow); RenderContext rc = new RenderContext(usr2dev, userBounds, hints); tiled = tileRable.createRendering(rc); // System.out.println("tileRed: " + tiled); // org.apache.batik.test.gvt.ImageDisplay.showImage("Tiled: ", tiled); //System.out.println("Created rendering"); if(tiled != null) rasterCM = tiled.getColorModel(); else { //System.out.println("Tile was null"); rasterCM = ColorModel.getRGBdefault(); WritableRaster wr = rasterCM.createCompatibleWritableRaster(32, 32); tiled = new BufferedImage(rasterCM, wr, false, null); } }
|
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/42418b02da48b9d42298e4c2e547b361b162fe80/PatternPaintContext.java/clean/sources/org/apache/batik/gvt/PatternPaintContext.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6830,
12699,
1042,
12,
2957,
1488,
1377,
1570,
9611,
16,
1171,
9079,
23906,
558,
4059,
16575,
22,
5206,
16,
1171,
9079,
22391,
225,
13442,
16,
1171,
9079,
4008,
1850,
4769,
16,
1171,
9079,
13264,
22,
40,
377,
1936,
5165,
16,
1171,
9079,
13264,
22,
40,
377,
729,
5694,
16,
1171,
9079,
1250,
540,
9391,
13,
288,
3639,
309,
12,
13640,
22,
5206,
422,
446,
15329,
5411,
604,
394,
2754,
5621,
3639,
289,
3639,
309,
12,
24598,
422,
446,
15329,
5411,
13442,
273,
394,
22391,
12,
2011,
1769,
3639,
289,
3639,
309,
12,
15368,
422,
446,
15329,
5411,
604,
394,
2754,
5621,
3639,
289,
3639,
368,
2332,
18,
659,
18,
8222,
2932,
3477,
86,
38,
30,
315,
397,
729,
5694,
1769,
3639,
368,
2332,
18,
659,
18,
8222,
2932,
22834,
38,
30,
315,
397,
1936,
5165,
1769,
3639,
368,
2332,
18,
659,
18,
8222,
2932,
9337,
30,
315,
397,
4769,
1769,
3639,
13791,
54,
429,
4769,
54,
429,
273,
394,
13791,
54,
429,
28,
5775,
12,
15368,
16,
4766,
7734,
729,
5694,
16,
4766,
7734,
1936,
5165,
16,
4766,
7734,
9391,
1769,
3639,
6987,
1042,
4519,
273,
394,
6987,
1042,
12,
13640,
22,
5206,
16,
225,
729,
5694,
16,
13442,
1769,
3639,
268,
1411,
273,
4769,
54,
429,
18,
2640,
14261,
12,
1310,
1769,
3639,
368,
2332,
18,
659,
18,
8222,
2932,
15368,
3715,
30,
315,
397,
268,
1411,
1769,
3639,
368,
2358,
18,
19211,
18,
28260,
1766,
18,
3813,
18,
75,
11734,
18,
2040,
4236,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6830,
12699,
1042,
12,
2957,
1488,
1377,
1570,
9611,
16,
1171,
9079,
23906,
558,
4059,
16575,
22,
5206,
16,
1171,
9079,
22391,
225,
13442,
16,
1171,
9079,
4008,
1850,
4769,
16,
1171,
9079,
13264,
22,
40,
377,
1936,
5165,
16,
1171,
9079,
13264,
22,
40,
377,
729,
5694,
16,
1171,
9079,
1250,
540,
9391,
13,
288,
3639,
309,
12,
13640,
22,
5206,
422,
446,
15329,
5411,
604,
394,
2754,
5621,
3639,
289,
3639,
309,
12,
24598,
422,
446,
15329,
5411,
13442,
273,
394,
22391,
12,
2011,
1769,
3639,
289,
3639,
309,
12,
15368,
422,
446,
15329,
5411,
604,
394,
2754,
5621,
3639,
289,
3639,
368,
2332,
18,
659,
18,
8222,
2932,
3477,
86,
38,
30,
315,
397,
2
] |
public final RubyFixnum hash() { return RubyFixnum.newFixnum(getRuby(), hashCode());
|
public RubyFixnum hash() { return RubyFixnum.newFixnum(ruby, System.identityHashCode(this));
|
public final RubyFixnum hash() { return RubyFixnum.newFixnum(getRuby(), hashCode()); }
|
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/7f0907240b4b4a4379424377e971ed0ca23f1dcb/RubyObject.java/buggy/org/jruby/RubyObject.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
19817,
8585,
2107,
1651,
1435,
288,
3639,
327,
19817,
8585,
2107,
18,
2704,
8585,
2107,
12,
588,
54,
10340,
9334,
13374,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
19817,
8585,
2107,
1651,
1435,
288,
3639,
327,
19817,
8585,
2107,
18,
2704,
8585,
2107,
12,
588,
54,
10340,
9334,
13374,
10663,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
private static Font getDefaultFont(Control control) { String fontName = "DEFAULT_FONT_" + control.getClass().getName(); //$NON-NLS-1$ if (JFaceResources.getFontRegistry().hasValueFor(fontName)) return JFaceResources.getFontRegistry().get(fontName); Font cached = control.getFont(); control.setFont(null); Font defaultFont = control.getFont(); control.setFont(cached); JFaceResources.getFontRegistry().put( fontName, defaultFont.getFontData()); return defaultFont; }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/b55db1f8df03ebade4e59f55f97c8c3917057362/Dialog.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/Dialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
11365,
270,
395,
2126,
5711,
588,
1868,
5711,
12,
3367,
7098,
15329,
202,
202,
780,
5776,
461,
1546,
5280,
67,
25221,
9548,
15,
7098,
18,
588,
797,
7675,
17994,
5621,
759,
8,
3993,
17,
5106,
17,
21,
8,
202,
202,
430,
12,
46,
11824,
3805,
18,
588,
5711,
4243,
7675,
5332,
620,
1290,
12,
5776,
461,
3719,
1082,
202,
2463,
46,
11824,
3805,
18,
588,
5711,
4243,
7675,
588,
12,
5776,
461,
1769,
202,
202,
5711,
7097,
33,
7098,
18,
588,
5711,
5621,
202,
202,
7098,
18,
542,
5711,
12,
2011,
1769,
202,
202,
5711,
1886,
5711,
33,
7098,
18,
588,
5711,
5621,
202,
202,
7098,
18,
542,
5711,
12,
7097,
1769,
202,
202,
46,
11824,
3805,
18,
588,
5711,
4243,
7675,
458,
12,
1082,
202,
5776,
461,
16,
1082,
202,
1886,
5711,
18,
588,
5711,
751,
10663,
202,
202,
2463,
1886,
5711,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
11365,
270,
395,
2126,
5711,
588,
1868,
5711,
12,
3367,
7098,
15329,
202,
202,
780,
5776,
461,
1546,
5280,
67,
25221,
9548,
15,
7098,
18,
588,
797,
7675,
17994,
5621,
759,
8,
3993,
17,
5106,
17,
21,
8,
202,
202,
430,
12,
46,
11824,
3805,
18,
588,
5711,
4243,
7675,
5332,
620,
1290,
12,
5776,
461,
3719,
1082,
202,
2463,
46,
11824,
3805,
18,
588,
5711,
4243,
7675,
588,
12,
5776,
461,
1769,
202,
202,
5711,
7097,
33,
7098,
18,
588,
5711,
5621,
202,
202,
7098,
18,
542,
5711,
12,
2011,
1769,
202,
202,
5711,
1886,
5711,
33,
7098,
18,
588,
5711,
5621,
202,
202,
7098,
18,
542,
5711,
12,
7097,
1769,
202,
202,
46,
11824,
3805,
2
] |
||
ren.ResetCameraClippingRange();
|
resetCameraClippingRange();
|
public void mouseDragged(MouseEvent e) { if (ren.VisibleActorCount() == 0) return; int x = e.getX(); int y = e.getY(); // rotate if (this.InteractionMode == 1) { cam.Azimuth(lastX - x); cam.Elevation(y - lastY); cam.OrthogonalizeViewUp(); ren.ResetCameraClippingRange(); if (this.LightFollowCamera == 1) { lgt.SetPosition(cam.GetPosition()); lgt.SetFocalPoint(cam.GetFocalPoint()); } } // translate if (this.InteractionMode == 2) { double FPoint[]; double PPoint[]; double APoint[] = new double[3]; double RPoint[]; double focalDepth; // get the current focal point and position FPoint = cam.GetFocalPoint(); PPoint = cam.GetPosition(); // calculate the focal depth since we'll be using it a lot ren.SetWorldPoint(FPoint[0],FPoint[1],FPoint[2],1.0); ren.WorldToDisplay(); focalDepth = ren.GetDisplayPoint()[2]; APoint[0] = rw.GetSize()[0]/2.0 + (x - lastX); APoint[1] = rw.GetSize()[1]/2.0 - (y - lastY); APoint[2] = focalDepth; ren.SetDisplayPoint(APoint); ren.DisplayToWorld(); RPoint = ren.GetWorldPoint(); if (RPoint[3] != 0.0) { RPoint[0] = RPoint[0]/RPoint[3]; RPoint[1] = RPoint[1]/RPoint[3]; RPoint[2] = RPoint[2]/RPoint[3]; } /* * Compute a translation vector, moving everything 1/2 * the distance to the cursor. (Arbitrary scale factor) */ cam.SetFocalPoint( (FPoint[0]-RPoint[0])/2.0 + FPoint[0], (FPoint[1]-RPoint[1])/2.0 + FPoint[1], (FPoint[2]-RPoint[2])/2.0 + FPoint[2]); cam.SetPosition( (FPoint[0]-RPoint[0])/2.0 + PPoint[0], (FPoint[1]-RPoint[1])/2.0 + PPoint[1], (FPoint[2]-RPoint[2])/2.0 + PPoint[2]); ren.ResetCameraClippingRange(); } // zoom if (this.InteractionMode == 3) { double zoomFactor; double clippingRange[]; zoomFactor = Math.pow(1.02,(y - lastY)); if (cam.GetParallelProjection() == 1) { cam.SetParallelScale(cam.GetParallelScale()/zoomFactor); } else { cam.Dolly(zoomFactor); ren.ResetCameraClippingRange(); } } lastX = x; lastY = y; this.Render(); }
|
46031 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46031/2c779895c4bd7ff06a234a9fdf06da154aacf4b9/vtkPanel.java/clean/Wrapping/Java/vtkPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
7644,
11728,
2423,
12,
9186,
1133,
425,
13,
565,
288,
1377,
309,
261,
1187,
18,
6207,
17876,
1380,
1435,
422,
374,
13,
327,
31,
1377,
509,
619,
273,
425,
18,
588,
60,
5621,
1377,
509,
677,
273,
425,
18,
588,
61,
5621,
1377,
368,
8534,
1377,
309,
261,
2211,
18,
17419,
2309,
422,
404,
13,
3639,
288,
3639,
5861,
18,
37,
94,
15968,
12,
2722,
60,
300,
619,
1769,
3639,
5861,
18,
17274,
7112,
12,
93,
300,
1142,
61,
1769,
3639,
5861,
18,
1162,
451,
28396,
554,
1767,
1211,
5621,
3639,
2715,
16521,
15339,
1382,
2655,
5621,
3639,
309,
261,
2211,
18,
12128,
8328,
16521,
422,
404,
13,
1850,
288,
1850,
328,
4521,
18,
694,
2555,
12,
20133,
18,
967,
2555,
10663,
1850,
328,
4521,
18,
694,
42,
23735,
2148,
12,
20133,
18,
967,
42,
23735,
2148,
10663,
1850,
289,
3639,
289,
1377,
368,
4204,
1377,
309,
261,
2211,
18,
17419,
2309,
422,
576,
13,
3639,
288,
3639,
1645,
225,
478,
2148,
8526,
31,
3639,
1645,
225,
453,
2148,
8526,
31,
3639,
1645,
225,
432,
2148,
8526,
273,
394,
1645,
63,
23,
15533,
3639,
1645,
225,
534,
2148,
8526,
31,
3639,
1645,
284,
23735,
6148,
31,
7734,
368,
336,
326,
783,
284,
23735,
1634,
471,
1754,
3639,
478,
2148,
273,
5861,
18,
967,
42,
23735,
2148,
5621,
3639,
453,
2148,
273,
5861,
18,
967,
2555,
5621,
7734,
368,
4604,
326,
284,
23735,
3598,
3241,
732,
5614,
506,
1450,
518,
279,
17417,
3639,
1654,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
7644,
11728,
2423,
12,
9186,
1133,
425,
13,
565,
288,
1377,
309,
261,
1187,
18,
6207,
17876,
1380,
1435,
422,
374,
13,
327,
31,
1377,
509,
619,
273,
425,
18,
588,
60,
5621,
1377,
509,
677,
273,
425,
18,
588,
61,
5621,
1377,
368,
8534,
1377,
309,
261,
2211,
18,
17419,
2309,
422,
404,
13,
3639,
288,
3639,
5861,
18,
37,
94,
15968,
12,
2722,
60,
300,
619,
1769,
3639,
5861,
18,
17274,
7112,
12,
93,
300,
1142,
61,
1769,
3639,
5861,
18,
1162,
451,
28396,
554,
1767,
1211,
5621,
3639,
2715,
16521,
15339,
1382,
2655,
5621,
3639,
309,
261,
2211,
18,
12128,
8328,
16521,
422,
404,
13,
1850,
288,
1850,
328,
4521,
18,
694,
2555,
2
] |
(_action[0] != _selection.x || _action[1] != _selection.y)) {
|
(_action[1] != _selection.x || _action[2] != _selection.y)) {
|
protected boolean handleClickToMove (int tx, int ty) { // or if we're clicking in our move set or on our selected piece if (!_moveSet.contains(tx, ty) && (_selection == null || _selection.x != tx || _selection.y != ty)) { log.info("Rejecting move +" + tx + "+" + ty + " moves:" + _moveSet); return false; } // store the coordinates toward which we wish to move _action = new int[] { _selection.pieceId, tx, ty, -1 }; // clear any previous attack set clearAttackSet(); // reduce the highlighted move tiles to just the selected tile PointSet moves = new PointSet(); moves.add(tx, ty); highlightTiles(moves, _selection.isFlyer()); // display our potential attacks PointSet attacks = new PointSet(); _bangobj.board.computeAttacks(_selection.getMinFireDistance(), _selection.getMaxFireDistance(), tx, ty, attacks); _attackSet.clear(); pruneAttackSet(attacks, moves, _attackSet); // if there are no valid attacks, assume they're just moving (but // do nothing if they're not even moving) if (_attackSet.size() == 0 && (_action[0] != _selection.x || _action[1] != _selection.y)) { executeAction(); _attackSet.clear(); } else { log.info("Waiting for attack selection (" + tx + ", " + ty + ")"); } return true; }
|
8059 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8059/1e68f9956d937db03288daead2d98f31a8af30fc/BangBoardView.java/clean/src/java/com/threerings/bang/game/client/BangBoardView.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
1640,
6563,
774,
7607,
261,
474,
2229,
16,
509,
13806,
13,
565,
288,
3639,
368,
578,
309,
732,
4565,
4682,
310,
316,
3134,
3635,
444,
578,
603,
3134,
3170,
11151,
3639,
309,
16051,
67,
8501,
694,
18,
12298,
12,
978,
16,
13806,
13,
597,
5411,
261,
67,
10705,
422,
446,
747,
389,
10705,
18,
92,
480,
2229,
747,
389,
10705,
18,
93,
480,
13806,
3719,
288,
5411,
613,
18,
1376,
2932,
21705,
310,
3635,
397,
6,
397,
2229,
397,
17487,
397,
13806,
397,
315,
13934,
2773,
397,
389,
8501,
694,
1769,
5411,
327,
629,
31,
3639,
289,
3639,
368,
1707,
326,
5513,
358,
2913,
1492,
732,
14302,
358,
3635,
3639,
389,
1128,
273,
394,
509,
8526,
288,
389,
10705,
18,
30100,
548,
16,
2229,
16,
13806,
16,
300,
21,
289,
31,
3639,
368,
2424,
1281,
2416,
13843,
444,
3639,
2424,
3075,
484,
694,
5621,
3639,
368,
5459,
326,
24375,
3635,
12568,
358,
2537,
326,
3170,
4769,
3639,
4686,
694,
13934,
273,
394,
4686,
694,
5621,
3639,
13934,
18,
1289,
12,
978,
16,
13806,
1769,
3639,
8839,
27669,
12,
81,
10829,
16,
389,
10705,
18,
291,
42,
715,
264,
10663,
3639,
368,
2562,
3134,
8555,
28444,
3639,
4686,
694,
28444,
273,
394,
4686,
694,
5621,
3639,
389,
70,
539,
2603,
18,
3752,
18,
9200,
3075,
22098,
24899,
10705,
18,
588,
2930,
9723,
7200,
9334,
4766,
1377,
389,
10705,
18,
588,
2747,
9723,
7200,
9334,
4766,
1377,
2229,
16,
13806,
16,
28444,
1769,
3639,
389,
4558,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
1640,
6563,
774,
7607,
261,
474,
2229,
16,
509,
13806,
13,
565,
288,
3639,
368,
578,
309,
732,
4565,
4682,
310,
316,
3134,
3635,
444,
578,
603,
3134,
3170,
11151,
3639,
309,
16051,
67,
8501,
694,
18,
12298,
12,
978,
16,
13806,
13,
597,
5411,
261,
67,
10705,
422,
446,
747,
389,
10705,
18,
92,
480,
2229,
747,
389,
10705,
18,
93,
480,
13806,
3719,
288,
5411,
613,
18,
1376,
2932,
21705,
310,
3635,
397,
6,
397,
2229,
397,
17487,
397,
13806,
397,
315,
13934,
2773,
397,
389,
8501,
694,
1769,
5411,
327,
629,
31,
3639,
289,
3639,
368,
1707,
326,
5513,
358,
2913,
1492,
732,
14302,
358,
3635,
3639,
389,
1128,
273,
394,
509,
8526,
2
] |
messages.add(msgType); }
|
messages.add(msgType); }
|
private void addMsgType(String msgType) { messages.add(msgType); }
|
52526 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52526/f89d9cc48710a8f8d3611f93c5b99eae17788636/DataDictionary.java/buggy/src/quickfix/DataDictionary.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
527,
3332,
559,
12,
780,
1234,
559,
13,
288,
202,
202,
6833,
18,
1289,
12,
3576,
559,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
527,
3332,
559,
12,
780,
1234,
559,
13,
288,
202,
202,
6833,
18,
1289,
12,
3576,
559,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
} catch(Throwable e) { throw new SQLNestedException("Connect failed", e);
|
} catch(NoSuchElementException e) { throw new SQLNestedException("Cannot get a connection, pool exhausted", e); } catch(RuntimeException e) { throw e; } catch(Exception e) { throw new SQLNestedException("Cannot get a connection, general error", e);
|
public Connection connect(String url, Properties info) throws SQLException { if(acceptsURL(url)) { ObjectPool pool = getConnectionPool(url.substring(URL_PREFIX_LEN)); if(null == pool) { throw new SQLException("No pool found for " + url + "."); } else { try { return (Connection)(pool.borrowObject()); } catch(SQLException e) { throw e; } catch(Throwable e) { throw new SQLNestedException("Connect failed", e); } } } else { return null; } }
|
50976 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50976/39fdf4ebf8042fb5bf8d85fe7b1acae40cb47c2b/PoolingDriver.java/clean/src/java/org/apache/commons/dbcp/PoolingDriver.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4050,
3077,
12,
780,
880,
16,
6183,
1123,
13,
1216,
6483,
288,
3639,
309,
12,
9436,
87,
1785,
12,
718,
3719,
288,
5411,
1033,
2864,
2845,
273,
6742,
2864,
12,
718,
18,
28023,
12,
1785,
67,
6307,
67,
13017,
10019,
5411,
309,
12,
2011,
422,
2845,
13,
288,
7734,
604,
394,
6483,
2932,
2279,
2845,
1392,
364,
315,
397,
880,
397,
4585,
1769,
5411,
289,
469,
288,
7734,
775,
288,
10792,
327,
261,
1952,
21433,
6011,
18,
70,
15318,
921,
10663,
7734,
289,
1044,
12,
23116,
425,
13,
288,
10792,
604,
425,
31,
7734,
289,
1044,
12,
15155,
425,
13,
288,
10792,
604,
394,
3063,
8649,
503,
2932,
5215,
2535,
3113,
425,
1769,
7734,
289,
5411,
289,
3639,
289,
469,
288,
5411,
327,
446,
31,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4050,
3077,
12,
780,
880,
16,
6183,
1123,
13,
1216,
6483,
288,
3639,
309,
12,
9436,
87,
1785,
12,
718,
3719,
288,
5411,
1033,
2864,
2845,
273,
6742,
2864,
12,
718,
18,
28023,
12,
1785,
67,
6307,
67,
13017,
10019,
5411,
309,
12,
2011,
422,
2845,
13,
288,
7734,
604,
394,
6483,
2932,
2279,
2845,
1392,
364,
315,
397,
880,
397,
4585,
1769,
5411,
289,
469,
288,
7734,
775,
288,
10792,
327,
261,
1952,
21433,
6011,
18,
70,
15318,
921,
10663,
7734,
289,
1044,
12,
23116,
425,
13,
288,
10792,
604,
425,
31,
7734,
289,
1044,
12,
15155,
425,
13,
288,
10792,
604,
394,
3063,
8649,
503,
2932,
5215,
2535,
3113,
425,
1769,
7734,
289,
5411,
289,
2
] |
tiFileRun.setToolTipText("Run this job");
|
tiFileRun.setToolTipText(Messages.getString("Chef.ToolBarButton.RunThisJob.ToolTip"));
|
private void addBar() { tBar = new ToolBar(shell, SWT.HORIZONTAL | SWT.FLAT ); //tBar.setSize(200, 20); final ToolItem tiFileNew = new ToolItem(tBar, SWT.PUSH); final Image imFileNew = new Image(disp, getClass().getResourceAsStream(Const.IMAGE_DIRECTORY+"new.png")); tiFileNew.setImage(imFileNew); tiFileNew.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { newFile(); }}); tiFileNew.setToolTipText("New file, clear all settings"); final ToolItem tiFileOpen = new ToolItem(tBar, SWT.PUSH); final Image imFileOpen = new Image(disp, getClass().getResourceAsStream(Const.IMAGE_DIRECTORY+"open.png")); tiFileOpen.setImage(imFileOpen); tiFileOpen.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { openFile(false); }}); tiFileOpen.setToolTipText("Open file"); final ToolItem tiFileSave = new ToolItem(tBar, SWT.PUSH); final Image imFileSave = new Image(disp, getClass().getResourceAsStream(Const.IMAGE_DIRECTORY+"save.png")); tiFileSave.setImage(imFileSave); tiFileSave.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { saveFile(); }}); tiFileSave.setToolTipText("Save current file"); final ToolItem tiFileSaveAs = new ToolItem(tBar, SWT.PUSH); final Image imFileSaveAs = new Image(disp, getClass().getResourceAsStream(Const.IMAGE_DIRECTORY+"saveas.png")); tiFileSaveAs.setImage(imFileSaveAs); tiFileSaveAs.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { saveFileAs(); }}); tiFileSaveAs.setToolTipText("Save file with different name"); new ToolItem(tBar, SWT.SEPARATOR); final ToolItem tiFilePrint = new ToolItem(tBar, SWT.PUSH); final Image imFilePrint = new Image(disp, getClass().getResourceAsStream(Const.IMAGE_DIRECTORY+"print.png")); tiFilePrint.setImage(imFilePrint); tiFilePrint.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { printFile(); }}); tiFilePrint.setToolTipText("Print"); new ToolItem(tBar, SWT.SEPARATOR); final ToolItem tiFileRun = new ToolItem(tBar, SWT.PUSH); final Image imFileRun = new Image(disp, getClass().getResourceAsStream(Const.IMAGE_DIRECTORY+"run.png")); tiFileRun.setImage(imFileRun); tiFileRun.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { tabfolder.setSelection(1); cheflog.startstop(); }}); tiFileRun.setToolTipText("Run this job"); new ToolItem(tBar, SWT.SEPARATOR); final ToolItem tiSQL = new ToolItem(tBar, SWT.PUSH); final Image imSQL = new Image(disp, getClass().getResourceAsStream(Const.IMAGE_DIRECTORY+"SQLbutton.png")); tiSQL.setImage(imSQL); tiSQL.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { getSQL(); }}); tiSQL.setToolTipText("Generate the SQL needed to run this job"); tBar.addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent e) { imFileNew.dispose(); imFileOpen.dispose(); imFileSave.dispose(); imFileSaveAs.dispose(); } } ); tBar.addKeyListener(defKeys); tBar.pack(); }
|
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/466ea40abc95c39a5103fe3a9a74262a61dce808/Chef.java/buggy/src/be/ibridge/kettle/chef/Chef.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
527,
5190,
1435,
202,
95,
202,
202,
88,
5190,
273,
394,
13288,
5190,
12,
10304,
16,
348,
8588,
18,
44,
20344,
571,
348,
8588,
18,
42,
12190,
11272,
202,
202,
759,
88,
5190,
18,
542,
1225,
12,
6976,
16,
4200,
1769,
202,
202,
6385,
13288,
1180,
11374,
812,
1908,
273,
394,
13288,
1180,
12,
88,
5190,
16,
348,
8588,
18,
30348,
1769,
202,
202,
6385,
3421,
709,
812,
1908,
273,
394,
3421,
12,
25453,
16,
2900,
7675,
588,
1420,
17052,
12,
9661,
18,
13603,
67,
17229,
9078,
2704,
18,
6446,
7923,
1769,
3196,
202,
9096,
812,
1908,
18,
542,
2040,
12,
381,
812,
1908,
1769,
202,
202,
9096,
812,
1908,
18,
1289,
6233,
2223,
12,
2704,
12977,
4216,
1435,
288,
1071,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
20592,
5621,
10523,
1769,
202,
202,
9096,
812,
1908,
18,
542,
29250,
1528,
2932,
1908,
585,
16,
2424,
777,
1947,
8863,
202,
202,
6385,
13288,
1180,
11374,
812,
3678,
273,
394,
13288,
1180,
12,
88,
5190,
16,
348,
8588,
18,
30348,
1769,
202,
202,
6385,
3421,
709,
812,
3678,
273,
394,
3421,
12,
25453,
16,
2900,
7675,
588,
1420,
17052,
12,
9661,
18,
13603,
67,
17229,
9078,
3190,
18,
6446,
7923,
1769,
3196,
202,
9096,
812,
3678,
18,
542,
2040,
12,
381,
812,
3678,
1769,
202,
202,
9096,
812,
3678,
18,
1289,
6233,
2223,
12,
2704,
12977,
4216,
1435,
288,
1071,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
31622,
12,
5743,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
527,
5190,
1435,
202,
95,
202,
202,
88,
5190,
273,
394,
13288,
5190,
12,
10304,
16,
348,
8588,
18,
44,
20344,
571,
348,
8588,
18,
42,
12190,
11272,
202,
202,
759,
88,
5190,
18,
542,
1225,
12,
6976,
16,
4200,
1769,
202,
202,
6385,
13288,
1180,
11374,
812,
1908,
273,
394,
13288,
1180,
12,
88,
5190,
16,
348,
8588,
18,
30348,
1769,
202,
202,
6385,
3421,
709,
812,
1908,
273,
394,
3421,
12,
25453,
16,
2900,
7675,
588,
1420,
17052,
12,
9661,
18,
13603,
67,
17229,
9078,
2704,
18,
6446,
7923,
1769,
3196,
202,
9096,
812,
1908,
18,
542,
2040,
12,
381,
812,
1908,
1769,
202,
202,
9096,
812,
1908,
18,
1289,
6233,
2223,
12,
2
] |
public ReflectionCallback( Class type, String methodName, Class[] argumentTypes, boolean isRestArgs, boolean isStaticMethod, Arity arity) {
|
public ReflectionCallback(Class type, String methodName, Class[] argumentTypes, boolean isRestArgs, boolean isStaticMethod, Arity arity) {
|
public ReflectionCallback( Class type, String methodName, Class[] argumentTypes, boolean isRestArgs, boolean isStaticMethod, Arity arity) { super(type, methodName, argumentTypes, isRestArgs, isStaticMethod, arity); if (isStaticMethod) { Class[] types = new Class[argumentTypes.length + 1]; System.arraycopy(argumentTypes, 0, types, 1, argumentTypes.length); types[0] = IRubyObject.class; argumentTypes = types; } try { this.method = type.getMethod(methodName, argumentTypes); } catch (NoSuchMethodException e) { throw new RuntimeException( "NoSuchMethodException: Cannot get method \"" + methodName + "\" in class \"" + type.getName() + "\" by Reflection."); } catch (SecurityException e) { throw new RuntimeException( "SecurityException: Cannot get method \"" + methodName + "\" in class \"" + type.getName() + "\" by Reflection."); } }
|
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/765ab8f2eeed4e7c0c131b35b7ecadb0ee2855fd/ReflectionCallback.java/buggy/src/org/jruby/runtime/callback/ReflectionCallback.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5685,
2428,
12,
3639,
1659,
618,
16,
3639,
514,
4918,
16,
3639,
1659,
8526,
1237,
2016,
16,
3639,
1250,
353,
5188,
2615,
16,
3639,
1250,
16116,
1305,
16,
3639,
1201,
560,
19353,
13,
565,
288,
3639,
2240,
12,
723,
16,
4918,
16,
1237,
2016,
16,
353,
5188,
2615,
16,
16116,
1305,
16,
19353,
1769,
377,
202,
430,
261,
291,
5788,
1305,
13,
288,
377,
202,
202,
797,
8526,
1953,
273,
394,
1659,
63,
3446,
2016,
18,
2469,
397,
404,
15533,
377,
202,
202,
3163,
18,
1126,
3530,
12,
3446,
2016,
16,
374,
16,
1953,
16,
404,
16,
1237,
2016,
18,
2469,
1769,
377,
202,
202,
2352,
63,
20,
65,
273,
15908,
10340,
921,
18,
1106,
31,
377,
202,
202,
3446,
2016,
273,
1953,
31,
377,
202,
97,
377,
202,
698,
288,
5411,
333,
18,
2039,
273,
618,
18,
588,
1305,
12,
2039,
461,
16,
1237,
2016,
1769,
3639,
289,
1044,
261,
28341,
14513,
425,
13,
288,
5411,
604,
394,
3235,
12,
7734,
315,
28341,
14513,
30,
14143,
336,
707,
11843,
10792,
397,
4918,
10792,
397,
7023,
316,
667,
11843,
10792,
397,
618,
18,
17994,
1435,
10792,
397,
7023,
635,
5685,
1199,
1769,
3639,
289,
1044,
261,
24918,
425,
13,
288,
5411,
604,
394,
3235,
12,
7734,
315,
24918,
30,
14143,
336,
707,
11843,
10792,
397,
4918,
10792,
397,
7023,
316,
667,
11843,
10792,
397,
618,
18,
17994,
1435,
10792,
397,
7023,
635,
5685,
1199,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5685,
2428,
12,
3639,
1659,
618,
16,
3639,
514,
4918,
16,
3639,
1659,
8526,
1237,
2016,
16,
3639,
1250,
353,
5188,
2615,
16,
3639,
1250,
16116,
1305,
16,
3639,
1201,
560,
19353,
13,
565,
288,
3639,
2240,
12,
723,
16,
4918,
16,
1237,
2016,
16,
353,
5188,
2615,
16,
16116,
1305,
16,
19353,
1769,
377,
202,
430,
261,
291,
5788,
1305,
13,
288,
377,
202,
202,
797,
8526,
1953,
273,
394,
1659,
63,
3446,
2016,
18,
2469,
397,
404,
15533,
377,
202,
202,
3163,
18,
1126,
3530,
12,
3446,
2016,
16,
374,
16,
1953,
16,
404,
16,
1237,
2016,
18,
2469,
1769,
377,
202,
202,
2352,
63,
20,
65,
273,
15908,
10340,
921,
18,
1106,
31,
377,
2
] |
public void transferInstruction(InstructionHandle handle, ValueNumberFrame fact) throws DataflowAnalysisException {
|
public void transferInstruction(InstructionHandle handle, BasicBlock basicBlock, ValueNumberFrame fact) throws DataflowAnalysisException {
|
public void transferInstruction(InstructionHandle handle, ValueNumberFrame fact) throws DataflowAnalysisException { ValueNumberFrameModelingVisitor visitor = new ValueNumberFrameModelingVisitor(fact, methodGen.getConstantPool(), factory, cache); Instruction ins = handle.getInstruction(); ins.accept(visitor); }
|
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/8abe2a41af0d2369521560baf1f1a4024245cc6a/ValueNumberAnalysis.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/ValueNumberAnalysis.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
7412,
11983,
12,
11983,
3259,
1640,
16,
1445,
1854,
3219,
5410,
13,
1216,
1910,
2426,
9418,
503,
288,
202,
202,
620,
1854,
3219,
1488,
310,
7413,
8000,
273,
394,
1445,
1854,
3219,
1488,
310,
7413,
12,
3493,
16,
707,
7642,
18,
588,
6902,
2864,
9334,
3272,
16,
1247,
1769,
202,
202,
11983,
2763,
273,
1640,
18,
588,
11983,
5621,
202,
202,
2679,
18,
9436,
12,
3516,
1811,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
7412,
11983,
12,
11983,
3259,
1640,
16,
1445,
1854,
3219,
5410,
13,
1216,
1910,
2426,
9418,
503,
288,
202,
202,
620,
1854,
3219,
1488,
310,
7413,
8000,
273,
394,
1445,
1854,
3219,
1488,
310,
7413,
12,
3493,
16,
707,
7642,
18,
588,
6902,
2864,
9334,
3272,
16,
1247,
1769,
202,
202,
11983,
2763,
273,
1640,
18,
588,
11983,
5621,
202,
202,
2679,
18,
9436,
12,
3516,
1811,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void testWaitPolicyForever() throws Exception { assertEquals(0, _activeTasks.get()); // wait forever LastRejectedWaitPolicy policy = new LastRejectedWaitPolicy(-1, TimeUnit.SECONDS); _executor.setRejectedExecutionHandler(policy); // 1 runs immediately this.execute(_executor, new SleepyTask("hans", 1000)); // 2 is queued this.execute(_executor, new SleepyTask("franz", 1000)); // 3 is initially rejected but waits forever Runnable s3 = new SleepyTask("beavis", 1000); this.execute(_executor, s3); // last one should have been queued boolean allFinished = _executor.awaitTermination(4000, TimeUnit.MILLISECONDS); assertFalse(allFinished); assertSame(s3, policy.lastRejectedRunnable()); assertEquals(0, _activeTasks.get()); // shutdown & try again _executor.shutdown(); allFinished = _executor.awaitTermination(4000, TimeUnit.MILLISECONDS); assertTrue(allFinished); assertSame(s3, policy.lastRejectedRunnable()); assertEquals(0, _activeTasks.get()); }
|
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/91155ae9250addb8e72823849d135a0b673bd049/WaitPolicyTestCase.java/buggy/src/test/java/org/mule/test/util/concurrent/WaitPolicyTestCase.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
225,
918,
225,
1842,
5480,
2582,
13573,
502,
1435,
225,
1216,
225,
1185,
3639,
288,
7734,
1815,
8867,
12,
20,
16,
225,
389,
3535,
6685,
18,
588,
10663,
7734,
368,
225,
2529,
225,
21238,
7734,
6825,
19902,
5480,
2582,
225,
3329,
225,
273,
225,
394,
225,
6825,
19902,
5480,
2582,
19236,
21,
16,
225,
9206,
18,
11609,
1769,
7734,
389,
21097,
18,
542,
19902,
3210,
1503,
12,
5086,
1769,
7734,
368,
225,
404,
225,
7597,
225,
7636,
7734,
333,
18,
8837,
24899,
21097,
16,
225,
394,
225,
15129,
93,
2174,
2932,
76,
634,
3113,
225,
4336,
10019,
7734,
368,
225,
576,
225,
353,
225,
12234,
7734,
333,
18,
8837,
24899,
21097,
16,
225,
394,
225,
15129,
93,
2174,
2932,
74,
2450,
94,
3113,
225,
4336,
10019,
7734,
368,
225,
890,
225,
353,
225,
22458,
225,
11876,
225,
1496,
225,
16248,
225,
21238,
7734,
10254,
225,
272,
23,
225,
273,
225,
394,
225,
15129,
93,
2174,
2932,
2196,
842,
291,
3113,
225,
4336,
1769,
7734,
333,
18,
8837,
24899,
21097,
16,
225,
272,
23,
1769,
7734,
368,
225,
1142,
225,
1245,
225,
1410,
225,
1240,
225,
2118,
225,
12234,
7734,
1250,
225,
777,
10577,
225,
273,
225,
389,
21097,
18,
30515,
16516,
12,
24,
3784,
16,
225,
9206,
18,
25437,
11609,
1769,
7734,
1815,
8381,
12,
454,
10577,
1769,
7734,
1815,
8650,
12,
87,
23,
16,
225,
3329,
18,
2722,
19902,
20013,
10663,
7734,
1815,
8867,
12,
20,
16,
225,
389,
3535,
6685,
18,
588,
10663,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
225,
918,
225,
1842,
5480,
2582,
13573,
502,
1435,
225,
1216,
225,
1185,
3639,
288,
7734,
1815,
8867,
12,
20,
16,
225,
389,
3535,
6685,
18,
588,
10663,
7734,
368,
225,
2529,
225,
21238,
7734,
6825,
19902,
5480,
2582,
225,
3329,
225,
273,
225,
394,
225,
6825,
19902,
5480,
2582,
19236,
21,
16,
225,
9206,
18,
11609,
1769,
7734,
389,
21097,
18,
542,
19902,
3210,
1503,
12,
5086,
1769,
7734,
368,
225,
404,
225,
7597,
225,
7636,
7734,
333,
18,
8837,
24899,
21097,
16,
225,
394,
225,
15129,
93,
2174,
2932,
76,
634,
3113,
225,
4336,
10019,
7734,
368,
225,
576,
225,
353,
225,
12234,
7734,
333,
18,
8837,
24899,
21097,
16,
225,
394,
225,
15129,
93,
2
] |
||
javaCommand.append(bootClasspath);
|
javaCommand.append(checkWhiteSpaces(bootClasspath));
|
protected String buildJavaCommand() { StringBuffer javaCommand = new StringBuffer(); // append java command if (javaPath == null) { javaCommand.append("java"); } else { javaCommand.append(javaPath); } if (bootClasspath != null) { javaCommand.append(" -Xbootclasspath:"); javaCommand.append(bootClasspath); javaCommand.append(" "); } // append jvmParameters if (jvmParameters != null) { javaCommand.append(" " + jvmParameters); } // append classpath if ((classpath != null) && (classpath.length() > 0)) { javaCommand.append(" -cp "); javaCommand.append(classpath); } // append policy option if (policyFile != null) { javaCommand.append(POLICY_OPTION); javaCommand.append(policyFile); } // append log4j option if (log4jFile != null) { javaCommand.append(LOG4J_OPTION); javaCommand.append(log4jFile); } // append proactive policy File // if (securityFile != null) { // javaCommand.append(PROACTIVE_POLICYFILE_OPTION); // javaCommand.append(securityFile); // }// else if (System.getProperty("proactive.runtime.security") != null) { // javaCommand.append(PROACTIVE_POLICYFILE_OPTION); // javaCommand.append(System.getProperty("proactive.runtime.security")); // } // append classname javaCommand.append(" "); javaCommand.append(classname); if (logger.isDebugEnabled()) { logger.debug("JVMProcessImpl.buildJavaCommand() Parameters " + parameters); } if (parameters != null) { javaCommand.append(" "); javaCommand.append(parameters); } if (logger.isDebugEnabled()) { logger.debug(javaCommand.toString()); } if (logger.isDebugEnabled()) { logger.debug(javaCommand.toString() + "\n"); } if (logger.isDebugEnabled()) { logger.debug("JVMProcessImpl.buildJavaCommand() " + javaCommand); } return javaCommand.toString(); }
|
50951 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50951/0a1e13992609b7e4b984e6bc3c79af652f043446/JVMProcessImpl.java/clean/src/org/objectweb/proactive/core/process/JVMProcessImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
1361,
5852,
2189,
1435,
288,
3639,
6674,
2252,
2189,
273,
394,
6674,
5621,
3639,
368,
714,
2252,
1296,
3639,
309,
261,
6290,
743,
422,
446,
13,
288,
5411,
2252,
2189,
18,
6923,
2932,
6290,
8863,
3639,
289,
469,
288,
5411,
2252,
2189,
18,
6923,
12,
6290,
743,
1769,
3639,
289,
3639,
309,
261,
7137,
17461,
480,
446,
13,
288,
5411,
2252,
2189,
18,
6923,
2932,
300,
60,
7137,
26302,
2773,
1769,
5411,
2252,
2189,
18,
6923,
12,
1893,
13407,
12077,
12,
7137,
17461,
10019,
5411,
2252,
2189,
18,
6923,
2932,
315,
1769,
3639,
289,
3639,
368,
714,
13555,
2402,
3639,
309,
261,
78,
3489,
2402,
480,
446,
13,
288,
5411,
2252,
2189,
18,
6923,
2932,
315,
397,
13555,
2402,
1769,
3639,
289,
3639,
368,
714,
10006,
3639,
309,
14015,
26302,
480,
446,
13,
597,
261,
26302,
18,
2469,
1435,
405,
374,
3719,
288,
5411,
2252,
2189,
18,
6923,
2932,
300,
4057,
315,
1769,
5411,
2252,
2189,
18,
6923,
12,
26302,
1769,
3639,
289,
3639,
368,
714,
3329,
1456,
3639,
309,
261,
5086,
812,
480,
446,
13,
288,
5411,
2252,
2189,
18,
6923,
12,
26366,
67,
7425,
1769,
5411,
2252,
2189,
18,
6923,
12,
5086,
812,
1769,
3639,
289,
3639,
368,
714,
613,
24,
78,
1456,
3639,
309,
261,
1330,
24,
78,
812,
480,
446,
13,
288,
5411,
2252,
2189,
18,
6923,
12,
4842,
24,
46,
67,
7425,
1769,
5411,
2252,
2189,
18,
6923,
12,
1330,
24,
78,
812,
1769,
3639,
289,
3639,
368,
714,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
1361,
5852,
2189,
1435,
288,
3639,
6674,
2252,
2189,
273,
394,
6674,
5621,
3639,
368,
714,
2252,
1296,
3639,
309,
261,
6290,
743,
422,
446,
13,
288,
5411,
2252,
2189,
18,
6923,
2932,
6290,
8863,
3639,
289,
469,
288,
5411,
2252,
2189,
18,
6923,
12,
6290,
743,
1769,
3639,
289,
3639,
309,
261,
7137,
17461,
480,
446,
13,
288,
5411,
2252,
2189,
18,
6923,
2932,
300,
60,
7137,
26302,
2773,
1769,
5411,
2252,
2189,
18,
6923,
12,
1893,
13407,
12077,
12,
7137,
17461,
10019,
5411,
2252,
2189,
18,
6923,
2932,
315,
1769,
3639,
289,
3639,
368,
714,
13555,
2402,
3639,
309,
261,
78,
3489,
2402,
480,
446,
13,
288,
5411,
2252,
2189,
18,
6923,
2932,
315,
2
] |
for ( Iterator itor = getDataSetList( handle.getContainer( ) ) .iterator( ); itor.hasNext( ); )
|
for ( Iterator itor = getDataSetList( handle.getContainer( ) ).iterator( ); itor.hasNext( ); )
|
public static List getDataSetList( DesignElementHandle handle ) { List dataSetList = new ArrayList( ); if ( handle instanceof ReportElementHandle ) { if ( handle instanceof ReportItemHandle ) { DesignElementHandle dataSet = ( (ReportItemHandle) handle ) .getDataSet( ); if ( dataSet != null && !dataSetList.contains( dataSet ) ) { dataSetList.add( dataSet ); } } for ( Iterator itor = getDataSetList( handle.getContainer( ) ) .iterator( ); itor.hasNext( ); ) { DesignElementHandle dataSet = (DesignElementHandle) itor.next( ); if ( !dataSetList.contains( dataSet ) ) { dataSetList.add( dataSet ); } } } return dataSetList; }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/65c31b53af468bafee3d7b3a9d5249824989932a/DEUtil.java/clean/UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/util/DEUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
987,
4303,
694,
682,
12,
29703,
1046,
3259,
1640,
262,
202,
95,
202,
202,
682,
14837,
682,
273,
394,
2407,
12,
11272,
202,
202,
430,
261,
1640,
1276,
8706,
1046,
3259,
262,
202,
202,
95,
1082,
202,
430,
261,
1640,
1276,
8706,
1180,
3259,
262,
1082,
202,
95,
9506,
202,
15478,
1046,
3259,
14837,
273,
261,
261,
4820,
1180,
3259,
13,
1640,
262,
25083,
202,
18,
588,
13676,
12,
11272,
9506,
202,
430,
261,
14837,
480,
446,
597,
401,
892,
694,
682,
18,
12298,
12,
14837,
262,
262,
9506,
202,
95,
6862,
202,
892,
694,
682,
18,
1289,
12,
14837,
11272,
9506,
202,
97,
1082,
202,
97,
1082,
202,
1884,
261,
4498,
518,
280,
273,
4303,
694,
682,
12,
1640,
18,
588,
2170,
12,
262,
262,
6862,
202,
18,
9838,
12,
11272,
518,
280,
18,
5332,
2134,
12,
11272,
262,
1082,
202,
95,
9506,
202,
15478,
1046,
3259,
14837,
273,
261,
15478,
1046,
3259,
13,
518,
280,
18,
4285,
12,
11272,
9506,
202,
430,
261,
401,
892,
694,
682,
18,
12298,
12,
14837,
262,
262,
9506,
202,
95,
6862,
202,
892,
694,
682,
18,
1289,
12,
14837,
11272,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
14837,
682,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
987,
4303,
694,
682,
12,
29703,
1046,
3259,
1640,
262,
202,
95,
202,
202,
682,
14837,
682,
273,
394,
2407,
12,
11272,
202,
202,
430,
261,
1640,
1276,
8706,
1046,
3259,
262,
202,
202,
95,
1082,
202,
430,
261,
1640,
1276,
8706,
1180,
3259,
262,
1082,
202,
95,
9506,
202,
15478,
1046,
3259,
14837,
273,
261,
261,
4820,
1180,
3259,
13,
1640,
262,
25083,
202,
18,
588,
13676,
12,
11272,
9506,
202,
430,
261,
14837,
480,
446,
597,
401,
892,
694,
682,
18,
12298,
12,
14837,
262,
262,
9506,
202,
95,
6862,
202,
892,
694,
682,
18,
1289,
12,
14837,
11272,
9506,
202,
97,
1082,
202,
97,
1082,
202,
1884,
261,
4498,
518,
280,
273,
2
] |
Set<CallbackGenerator> seenGen = new HashSet<CallbackGenerator>(); CodeEmitter se = ce.getStaticHook(); se.new_instance(THREAD_LOCAL); se.dup(); se.invoke_constructor(THREAD_LOCAL, CSTRUCT_NULL); se.putfield(THREAD_CALLBACKS_FIELD); CallbackGenerator.Context context = new CallbackGenerator.Context() { public int getOriginalModifiers(MethodInfo method) { return originalModifiers.get(method); } public int getIndex(MethodInfo method) { return indexes.get(method); } public void emitCallback(CodeEmitter e, int index) { emitCurrentCallback(e, index); } public Signature getImplSignature(MethodInfo method) { return rename(method.getSignature(), (Integer)positions.get(method)); } public CodeEmitter beginMethod(ClassEmitter ce, MethodInfo method) { CodeEmitter e = EmitUtils.begin_method(ce, method); if (!interceptDuringConstruction && !TypeUtils.isAbstract(method.getModifiers())) { Label constructed = e.make_label(); e.load_this(); e.getfield(CONSTRUCTED_FIELD); e.if_jump(e.NE, constructed); e.load_this(); e.load_args(); e.super_invoke(); e.return_value(); e.mark(constructed); } return e; } }; for (int i = 0; i < callbackTypes.length; i++) { CallbackGenerator gen = generators[i]; if (!seenGen.contains(gen)) { seenGen.add(gen); final List<MethodInfo> fmethods = groups.get(gen); if (fmethods != null) { try { gen.generate(ce, context, fmethods); gen.generateStatic(se, context, fmethods); } catch (RuntimeException x) { throw x; } catch (Exception x) { throw new CodeGenerationException(x); } } }
|
return e; } }; for (int i = 0; i < callbackTypes.length; i++) { CallbackGenerator gen = generators[i]; if (!seenGen.contains(gen)) { seenGen.add(gen); final List<MethodInfo> fmethods = groups.get(gen); if (fmethods != null) { try { gen.generate(ce, context, fmethods); gen.generateStatic(se, context, fmethods); } catch (RuntimeException x) { throw x; } catch (Exception x) { throw new CodeGenerationException(x); }
|
private void emitMethods(final ClassEmitter ce, List methods, List<Method> actualMethods) { CallbackGenerator[] generators = CallbackInfo.getGenerators(callbackTypes); Map<CallbackGenerator,List<MethodInfo>> groups = new HashMap<CallbackGenerator, List<MethodInfo>>(); final Map<MethodInfo,Integer> indexes = new HashMap<MethodInfo, Integer>(); final Map<MethodInfo,Integer> originalModifiers = new HashMap<MethodInfo, Integer>(); final Map positions = CollectionUtils.getIndexMap(methods); Iterator it1 = methods.iterator(); Iterator<Method> it2 = (actualMethods != null) ? actualMethods.iterator() : null; while (it1.hasNext()) { MethodInfo method = (MethodInfo)it1.next(); Method actualMethod = (it2 != null) ? it2.next() : null; int index = filter.accept(actualMethod); if (index >= callbackTypes.length) { throw new IllegalArgumentException("Callback filter returned an index that is too large: " + index); } originalModifiers.put(method, (actualMethod != null) ? actualMethod.getModifiers() : method.getModifiers()); indexes.put(method, index); List<MethodInfo> group = groups.get(generators[index]); if (group == null) { groups.put(generators[index], group = new ArrayList<MethodInfo>(methods.size())); } group.add(method); } Set<CallbackGenerator> seenGen = new HashSet<CallbackGenerator>(); CodeEmitter se = ce.getStaticHook(); se.new_instance(THREAD_LOCAL); se.dup(); se.invoke_constructor(THREAD_LOCAL, CSTRUCT_NULL); se.putfield(THREAD_CALLBACKS_FIELD); CallbackGenerator.Context context = new CallbackGenerator.Context() { public int getOriginalModifiers(MethodInfo method) { return originalModifiers.get(method); } public int getIndex(MethodInfo method) { return indexes.get(method); } public void emitCallback(CodeEmitter e, int index) { emitCurrentCallback(e, index); } public Signature getImplSignature(MethodInfo method) { return rename(method.getSignature(), (Integer)positions.get(method)); } public CodeEmitter beginMethod(ClassEmitter ce, MethodInfo method) { CodeEmitter e = EmitUtils.begin_method(ce, method); if (!interceptDuringConstruction && !TypeUtils.isAbstract(method.getModifiers())) { Label constructed = e.make_label(); e.load_this(); e.getfield(CONSTRUCTED_FIELD); e.if_jump(e.NE, constructed); e.load_this(); e.load_args(); e.super_invoke(); e.return_value(); e.mark(constructed); } return e; } }; for (int i = 0; i < callbackTypes.length; i++) { CallbackGenerator gen = generators[i]; if (!seenGen.contains(gen)) { seenGen.add(gen); final List<MethodInfo> fmethods = groups.get(gen); if (fmethods != null) { try { gen.generate(ce, context, fmethods); gen.generateStatic(se, context, fmethods); } catch (RuntimeException x) { throw x; } catch (Exception x) { throw new CodeGenerationException(x); } } } } se.return_value(); se.end_method(); }
|
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/4c632c609488fb8900f7eb5390cd16cbaaf04adf/AdvancedEnhancer.java/clean/source/net/sf/cglib/proxy/AdvancedEnhancer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3626,
4712,
12,
6385,
1659,
13476,
5898,
16,
987,
2590,
16,
987,
32,
1305,
34,
3214,
4712,
13,
288,
3639,
8444,
3908,
8526,
13327,
273,
8444,
966,
18,
588,
31452,
12,
3394,
2016,
1769,
3639,
1635,
32,
2428,
3908,
16,
682,
32,
1305,
966,
9778,
3252,
273,
394,
4317,
32,
2428,
3908,
16,
987,
32,
1305,
966,
9778,
5621,
3639,
727,
1635,
32,
1305,
966,
16,
4522,
34,
5596,
273,
394,
4317,
32,
1305,
966,
16,
2144,
34,
5621,
3639,
727,
1635,
32,
1305,
966,
16,
4522,
34,
2282,
11948,
273,
394,
4317,
32,
1305,
966,
16,
2144,
34,
5621,
3639,
727,
1635,
6865,
273,
26777,
18,
588,
1016,
863,
12,
5163,
1769,
3639,
4498,
518,
21,
273,
2590,
18,
9838,
5621,
3639,
4498,
32,
1305,
34,
518,
22,
273,
261,
18672,
4712,
480,
446,
13,
692,
3214,
4712,
18,
9838,
1435,
294,
446,
31,
3639,
1323,
261,
305,
21,
18,
5332,
2134,
10756,
288,
5411,
2985,
966,
707,
273,
261,
1305,
966,
13,
305,
21,
18,
4285,
5621,
5411,
2985,
3214,
1305,
273,
261,
305,
22,
480,
446,
13,
692,
518,
22,
18,
4285,
1435,
294,
446,
31,
5411,
509,
770,
273,
1034,
18,
9436,
12,
18672,
1305,
1769,
5411,
309,
261,
1615,
1545,
1348,
2016,
18,
2469,
13,
288,
7734,
604,
394,
2754,
2932,
2428,
1034,
2106,
392,
770,
716,
353,
4885,
7876,
30,
315,
397,
770,
1769,
5411,
289,
5411,
2282,
11948,
18,
458,
12,
2039,
16,
261,
18672,
1305,
480,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3626,
4712,
12,
6385,
1659,
13476,
5898,
16,
987,
2590,
16,
987,
32,
1305,
34,
3214,
4712,
13,
288,
3639,
8444,
3908,
8526,
13327,
273,
8444,
966,
18,
588,
31452,
12,
3394,
2016,
1769,
3639,
1635,
32,
2428,
3908,
16,
682,
32,
1305,
966,
9778,
3252,
273,
394,
4317,
32,
2428,
3908,
16,
987,
32,
1305,
966,
9778,
5621,
3639,
727,
1635,
32,
1305,
966,
16,
4522,
34,
5596,
273,
394,
4317,
32,
1305,
966,
16,
2144,
34,
5621,
3639,
727,
1635,
32,
1305,
966,
16,
4522,
34,
2282,
11948,
273,
394,
4317,
32,
1305,
966,
16,
2144,
34,
5621,
3639,
727,
1635,
6865,
273,
26777,
18,
588,
1016,
863,
12,
5163,
1769,
3639,
4498,
518,
2
] |
protected void populateTableList( String schemaName ,TreeItem schemaTreeItem ) { if ( schemaTreeItem != null ) { removeTreeItem( schemaTreeItem ); } String namePattern = null; String[] tableType = null; cachedSearchTxt = searchTxt.getText( ); namePattern = SQLUtility.getTailoredSearchText( searchTxt.getText( ) ); String dbtype = getSelectedDbType( ); cachedDbType = dbtype; if ( dbtype != null ) { if ( DbType.TABLE_STRING.equalsIgnoreCase( dbtype ) || DbType.VIEW_STRING.equalsIgnoreCase( dbtype ) ) { tableType = new String[]{ dbtype }; } } String catalogName = metaDataProvider.getCatalog(); ArrayList tableList = new ArrayList(); ResultSet tablesRs = null; ArrayList procedureRs = null; if (schemaName != null && schemaName.trim().length() > 0) { // For each schema Get the List of Tables { if( metaDataProvider.isProcedureSupported() ) procedureRs = metaDataProvider.getAllProcedure( catalogName, schemaName, namePattern ); if( !DbType.PROCEDURE_STRING.equalsIgnoreCase(dbtype)) tablesRs = metaDataProvider.getAlltables(catalogName,schemaName,namePattern,tableType); tableList = new ArrayList(); try { // Create the schema Node Image image = tableImage; if ( tablesRs != null ) { int numberOfTable; Preferences preferences = JdbcPlugin.getDefault( ).getPluginPreferences( ); if ( preferences.contains( DateSetPreferencePage.USER_MAX_NUM_OF_TABLE_EACH_SCHEMA ) ) { numberOfTable = preferences.getInt( DateSetPreferencePage.USER_MAX_NUM_OF_TABLE_EACH_SCHEMA ); } else { numberOfTable = DateSetPreferencePage.DEFAULT_MAX_NUM_OF_TABLE_EACH_SCHEMA; preferences.setValue( DateSetPreferencePage.USER_MAX_NUM_OF_TABLE_EACH_SCHEMA, numberOfTable ); } int count = 0; while ( tablesRs.next( ) && count < numberOfTable) { // tablesRs.getString("TABLE_NAME") must be called // before // tablesRs.getString("TABLE_TYPE"). This is because // once using JDBC-ODBC-SQLSERVER // the index of "TABLE_NAME" is higher than that of // "TABLE_TYPE".And when connection // is built using JDBC-ODBC-SQLSERVER the // ResultSet.getString() method, if being called // use a low index, then called using a high index, // will result in an exception. String tableName = tablesRs.getString( "TABLE_NAME" ); String type = tablesRs.getString( "TABLE_TYPE" ); if ( type.equalsIgnoreCase( "SYSTEM TABLE" ) ) continue; int dbType = DbObject.TABLE_TYPE; if ( type.equalsIgnoreCase( "TABLE" ) ) { image = tableImage; dbType = DbObject.TABLE_TYPE; } else if ( type.equalsIgnoreCase( "VIEW" ) ) { image = viewImage; dbType = DbObject.VIEW_TYPE; } DbObject dbObject = new DbObject( getTableNameWithSchema( schemaName, tableName ), tableName, dbType, image ); tableList.add( dbObject ); count ++; } } if ( needToCreateProcedureNode( dbtype, procedureRs )) { String fullyQualifiedTableName = "STORED PROCEDURES"; if ( schemaName != null && schemaName.trim( ).length( ) > 0 ) { fullyQualifiedTableName = schemaName + "." + "STORED PROCEDURES"; } DbObject dbObject = new DbObject( fullyQualifiedTableName,"STORED PROCEDURES", DbObject.PROCEDURE_TYPE, tableImage); tableList.add( dbObject ); } if ( schemaTreeItem != null ) { TreeItem item[] = Utility.createTreeItems( schemaTreeItem, tableList, SWT.NONE, null ); //expand table TreeItem if ( expandDbObjectsTree && item != null && item.length > 0 ) { availableDbObjectsTree.showItem( item[0] ); } } } catch(SQLException e) { e.printStackTrace(); } } } }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/cb59eec61fac3f70118834d4b7418d08c64f26a0/SQLDataSetEditorPage.java/buggy/data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/editors/SQLDataSetEditorPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
6490,
1388,
682,
12,
514,
21960,
269,
2471,
1180,
1963,
2471,
1180,
262,
202,
95,
202,
202,
430,
261,
1963,
2471,
1180,
480,
446,
262,
202,
202,
95,
1082,
202,
4479,
2471,
1180,
12,
1963,
2471,
1180,
11272,
202,
202,
97,
202,
202,
780,
508,
3234,
273,
446,
31,
202,
202,
780,
8526,
1014,
559,
273,
446,
31,
202,
202,
7097,
2979,
21811,
273,
1623,
21811,
18,
588,
1528,
12,
11272,
202,
202,
529,
3234,
273,
3063,
6497,
18,
588,
12363,
7653,
2979,
1528,
12,
1623,
21811,
18,
588,
1528,
12,
262,
11272,
1082,
21114,
202,
780,
1319,
723,
273,
16625,
4331,
559,
12,
11272,
202,
202,
7097,
4331,
559,
273,
1319,
723,
31,
202,
202,
430,
261,
1319,
723,
480,
446,
262,
202,
202,
95,
1082,
202,
430,
261,
8408,
559,
18,
7775,
67,
5804,
18,
14963,
5556,
12,
1319,
723,
262,
6862,
202,
20081,
8408,
559,
18,
12145,
67,
5804,
18,
14963,
5556,
12,
1319,
723,
262,
262,
1082,
202,
95,
9506,
202,
2121,
559,
273,
394,
514,
63,
7073,
6862,
202,
1966,
723,
9506,
202,
20451,
1082,
202,
97,
202,
202,
97,
202,
565,
514,
6222,
461,
273,
11651,
2249,
18,
588,
9769,
5621,
202,
202,
19558,
1014,
682,
273,
394,
2407,
5621,
1082,
202,
13198,
4606,
18880,
273,
446,
31,
202,
202,
19558,
12131,
18880,
273,
446,
31,
202,
202,
430,
261,
4821,
461,
480,
446,
597,
21960,
18,
5290,
7675,
2469,
1435,
405,
374,
13,
202,
202,
95,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
6490,
1388,
682,
12,
514,
21960,
269,
2471,
1180,
1963,
2471,
1180,
262,
202,
95,
202,
202,
430,
261,
1963,
2471,
1180,
480,
446,
262,
202,
202,
95,
1082,
202,
4479,
2471,
1180,
12,
1963,
2471,
1180,
11272,
202,
202,
97,
202,
202,
780,
508,
3234,
273,
446,
31,
202,
202,
780,
8526,
1014,
559,
273,
446,
31,
202,
202,
7097,
2979,
21811,
273,
1623,
21811,
18,
588,
1528,
12,
11272,
202,
202,
529,
3234,
273,
3063,
6497,
18,
588,
12363,
7653,
2979,
1528,
12,
1623,
21811,
18,
588,
1528,
12,
262,
11272,
1082,
21114,
202,
780,
1319,
723,
273,
16625,
4331,
559,
12,
11272,
202,
202,
7097,
4331,
559,
273,
1319,
723,
31,
202,
2
] |
||
TableSorter sorter = getTableSorter();
|
TableComparator sorter = getTableSorter();
|
private void resortTable(final TreeColumn column, final IField field, IProgressMonitor monitor) { TableSorter sorter = getTableSorter(); monitor.beginTask(MarkerMessages.sortDialog_title, 100); monitor.worked(10); if (field.equals(sorter.getTopField())) sorter.reverseTopPriority(); else sorter.setTopPriority(field); monitor.worked(15); PlatformUI.getWorkbench().getDisplay().asyncExec( new Runnable() { /* * (non-Javadoc) * * @see java.lang.Runnable#run() */ public void run() { viewer.refresh(); updateDirectionIndicator(column); } }); monitor.done(); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/b34bac03ab70048a4b238ebb6ad2383d1ae284b3/TableView.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TableView.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
1152,
918,
400,
499,
1388,
12,
6385,
4902,
1494,
1057,
16,
6862,
202,
6385,
467,
974,
652,
16,
467,
5491,
7187,
6438,
13,
288,
9506,
202,
1388,
24952,
19867,
273,
5638,
24952,
5621,
9506,
202,
10259,
18,
10086,
2174,
12,
7078,
5058,
18,
3804,
6353,
67,
2649,
16,
2130,
1769,
9506,
202,
10259,
18,
1252,
329,
12,
2163,
1769,
9506,
202,
430,
261,
1518,
18,
14963,
12,
2467,
387,
18,
588,
3401,
974,
1435,
3719,
6862,
202,
2467,
387,
18,
9845,
3401,
8183,
5621,
9506,
202,
12107,
6862,
202,
2467,
387,
18,
542,
3401,
8183,
12,
1518,
1769,
9506,
202,
10259,
18,
1252,
329,
12,
3600,
1769,
9506,
202,
8201,
5370,
18,
588,
2421,
22144,
7675,
588,
4236,
7675,
3810,
1905,
12,
25083,
202,
2704,
10254,
1435,
288,
6862,
1082,
202,
20308,
6862,
9506,
380,
261,
5836,
17,
24060,
13,
6862,
9506,
380,
20982,
380,
632,
5946,
2252,
18,
4936,
18,
20013,
7,
2681,
1435,
6862,
9506,
1195,
6862,
1082,
202,
482,
918,
1086,
1435,
288,
6862,
9506,
202,
25256,
18,
9144,
5621,
6862,
9506,
202,
2725,
8212,
13140,
12,
2827,
1769,
6862,
1082,
202,
97,
25083,
202,
22938,
9506,
202,
10259,
18,
8734,
5621,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
1152,
918,
400,
499,
1388,
12,
6385,
4902,
1494,
1057,
16,
6862,
202,
6385,
467,
974,
652,
16,
467,
5491,
7187,
6438,
13,
288,
9506,
202,
1388,
24952,
19867,
273,
5638,
24952,
5621,
9506,
202,
10259,
18,
10086,
2174,
12,
7078,
5058,
18,
3804,
6353,
67,
2649,
16,
2130,
1769,
9506,
202,
10259,
18,
1252,
329,
12,
2163,
1769,
9506,
202,
430,
261,
1518,
18,
14963,
12,
2467,
387,
18,
588,
3401,
974,
1435,
3719,
6862,
202,
2467,
387,
18,
9845,
3401,
8183,
5621,
9506,
202,
12107,
6862,
202,
2467,
387,
18,
542,
3401,
8183,
12,
1518,
1769,
9506,
202,
10259,
18,
1252,
329,
12,
3600,
1769,
9506,
202,
8201,
5370,
18,
588,
2421,
22144,
7675,
588,
2
] |
jj_la1[87] = jj_gen;
|
jj_la1[89] = jj_gen;
|
final public TryStatement tryStatement() throws ParseException { Token t, u; Node tryBlock; Node catchBlock; List<CatchStatement> catches = new LinkedList<CatchStatement>(); FormalParameter formal; Node finallyBlock = null; int el = 0, ec = 0; try { t = jj_consume_token(TRY); tryBlock = block(); label_27: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case CATCH: ; break; default: jj_la1[86] = jj_gen; break label_27; } u = jj_consume_token(CATCH); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LPAREN: jj_consume_token(LPAREN); break; default: jj_la1[87] = jj_gen; _errorChar('('); } formal = formalParameter(); jj_consume_token(RPAREN); catchBlock = block(); el = catchBlock.getEndLine(); ec = catchBlock.getEndColumn(); catches.add(new CatchStatement(formal, catchBlock, filename, u.beginLine, u.beginColumn, el, ec)); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case FINALLY: jj_consume_token(FINALLY); finallyBlock = block(); el = finallyBlock.getEndLine(); ec = finallyBlock.getEndColumn(); break; default: jj_la1[88] = jj_gen; ; } if (finallyBlock == null && catches.size() == 0) { {if (true) throw new ParseError(reader.getMessage("try.without.catch", null), filename, t.beginLine, t.beginColumn);} } {if (true) return new TryStatement(tryBlock, catches, finallyBlock, filename, t.beginLine, t.beginColumn, el, ec);} } catch (ParseException pe) { _throwParseException(pe,"Invalid try statement"); } throw new Error("Missing return statement in function"); }
|
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/0b7f9842c42a34509d077a5e1d655daf0b8192d6/Parser.java/clean/dynamicjava/src/koala/dynamicjava/parser/Parser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
6161,
3406,
775,
3406,
1435,
1216,
10616,
288,
565,
3155,
6647,
268,
16,
582,
31,
565,
2029,
5411,
775,
1768,
31,
565,
2029,
5411,
1044,
1768,
31,
565,
987,
32,
14842,
3406,
34,
1377,
1044,
281,
273,
394,
10688,
32,
14842,
3406,
34,
5621,
565,
478,
1687,
1662,
25739,
31,
565,
2029,
5411,
3095,
1768,
273,
446,
31,
565,
509,
2398,
415,
273,
374,
16,
6557,
273,
374,
31,
565,
775,
288,
1377,
268,
273,
10684,
67,
21224,
67,
2316,
12,
17805,
1769,
1377,
775,
1768,
273,
1203,
5621,
1377,
1433,
67,
5324,
30,
1377,
1323,
261,
3767,
13,
288,
3639,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
9945,
78,
78,
67,
496,
79,
13332,
78,
78,
67,
496,
79,
13,
288,
3639,
648,
385,
5858,
30,
1850,
274,
1850,
898,
31,
3639,
805,
30,
1850,
10684,
67,
11821,
21,
63,
5292,
65,
273,
10684,
67,
4507,
31,
1850,
898,
1433,
67,
5324,
31,
3639,
289,
3639,
582,
273,
10684,
67,
21224,
67,
2316,
12,
39,
5858,
1769,
3639,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
9945,
78,
78,
67,
496,
79,
13332,
78,
78,
67,
496,
79,
13,
288,
3639,
648,
511,
15111,
30,
1850,
10684,
67,
21224,
67,
2316,
12,
48,
15111,
1769,
1850,
898,
31,
3639,
805,
30,
1850,
10684,
67,
11821,
21,
63,
6675,
65,
273,
10684,
67,
4507,
31,
1850,
389,
1636,
2156,
2668,
2668,
1769,
3639,
289,
3639,
25739,
273,
25739,
1662,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
6161,
3406,
775,
3406,
1435,
1216,
10616,
288,
565,
3155,
6647,
268,
16,
582,
31,
565,
2029,
5411,
775,
1768,
31,
565,
2029,
5411,
1044,
1768,
31,
565,
987,
32,
14842,
3406,
34,
1377,
1044,
281,
273,
394,
10688,
32,
14842,
3406,
34,
5621,
565,
478,
1687,
1662,
25739,
31,
565,
2029,
5411,
3095,
1768,
273,
446,
31,
565,
509,
2398,
415,
273,
374,
16,
6557,
273,
374,
31,
565,
775,
288,
1377,
268,
273,
10684,
67,
21224,
67,
2316,
12,
17805,
1769,
1377,
775,
1768,
273,
1203,
5621,
1377,
1433,
67,
5324,
30,
1377,
1323,
261,
3767,
13,
288,
3639,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
9945,
78,
78,
67,
496,
2
] |
this.useNewParser = useNewParser;
|
getPluginPreferences().setValue(PREF_USE_NEW_PARSER, useNewParser); savePluginPreferences();
|
public void setUseNewParser(boolean useNewParser) { this.useNewParser = useNewParser; }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/e31f920f10e68aac60b67dd963f77f191871437a/CCorePlugin.java/clean/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CCorePlugin.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
24581,
1908,
2678,
12,
6494,
999,
1908,
2678,
13,
288,
202,
202,
2211,
18,
1202,
1908,
2678,
273,
999,
1908,
2678,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
24581,
1908,
2678,
12,
6494,
999,
1908,
2678,
13,
288,
202,
202,
2211,
18,
1202,
1908,
2678,
273,
999,
1908,
2678,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return isHolderType(parameterType);
|
return DescriptionBuilderUtils.isHolderType(parameterType);
|
public boolean isHolderType() { return isHolderType(parameterType); }
|
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/4482e633bd00a9419b23d52a57140fc5ee58d516/ParameterDescriptionComposite.java/buggy/modules/metadata/src/org/apache/axis2/jaxws/description/builder/ParameterDescriptionComposite.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
6064,
559,
1435,
288,
3639,
327,
6507,
1263,
1989,
18,
291,
6064,
559,
12,
6775,
559,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
6064,
559,
1435,
288,
3639,
327,
6507,
1263,
1989,
18,
291,
6064,
559,
12,
6775,
559,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return new JavaSpacePropertyProcessor(((JavaBlock)child2).getFirstTreeNode(), mySettings).getResult();
|
return new JavaSpacePropertyProcessor(AbstractJavaBlock.getTreeNode(child2), mySettings).getResult();
|
public SpaceProperty getSpaceProperty(Block child1, Block child2) { return new JavaSpacePropertyProcessor(((JavaBlock)child2).getFirstTreeNode(), mySettings).getResult(); }
|
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/90ad545bef2fb9c0a33cedda8dd5751939bfeef8/SynteticCodeBlock.java/buggy/source/com/intellij/psi/formatter/newXmlFormatter/java/SynteticCodeBlock.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
14059,
1396,
1322,
909,
1396,
12,
1768,
1151,
21,
16,
3914,
1151,
22,
13,
288,
565,
327,
394,
5110,
3819,
1396,
5164,
12,
7469,
5852,
1768,
18,
588,
12513,
12,
3624,
22,
3631,
3399,
2628,
2934,
588,
1253,
5621,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
14059,
1396,
1322,
909,
1396,
12,
1768,
1151,
21,
16,
3914,
1151,
22,
13,
288,
565,
327,
394,
5110,
3819,
1396,
5164,
12,
7469,
5852,
1768,
18,
588,
12513,
12,
3624,
22,
3631,
3399,
2628,
2934,
588,
1253,
5621,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
{ inInclude = true; }
|
inInclude = true;
|
public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } buf = null; len = 0; if (walker != null) { Node c = walker.getCurrentNode(); Node n = null; if (c.getNodeType() == Node.ELEMENT_NODE) { boolean isStartElement = !seen.contains(c); if (isStartElement) { seen.add(c); current = c; event = XMLStreamConstants.START_ELEMENT; return event; } else if (backtracking) { n = walker.nextSibling(); if (n != null) backtracking = false; } else { n = walker.firstChild(); if (n == null) n = walker.nextSibling(); } } else { n = walker.firstChild(); if (n == null) n = walker.nextSibling(); } if (n == null) { current = walker.parentNode(); if (current != null && current.getNodeType() == Node.ELEMENT_NODE) { // end-element backtracking = true; event = XMLStreamConstants.END_ELEMENT; return event; } else { walker = null; current = null; } } else { current = n; switch (n.getNodeType()) { case Node.ELEMENT_NODE: return next(); case Node.TEXT_NODE: String text = n.getNodeValue(); buf = text.toCharArray(); len = buf.length; event = isSpace(buf, len) ? XMLStreamConstants.SPACE : XMLStreamConstants.CHARACTERS; return event; case Node.CDATA_SECTION_NODE: event = XMLStreamConstants.CDATA; return event; case Node.COMMENT_NODE: event = XMLStreamConstants.COMMENT; return event; case Node.PROCESSING_INSTRUCTION_NODE: event = XMLStreamConstants.PROCESSING_INSTRUCTION; return event; case Node.ENTITY_REFERENCE_NODE: event = XMLStreamConstants.ENTITY_REFERENCE; return event; default: throw new IllegalStateException(); } } } if (result != null) { switch (result.getResultType()) { case XPathResult.BOOLEAN_TYPE: boolean bval = result.getBooleanValue(); String btext = bval ? "true" : "false"; buf = btext.toCharArray(); len = buf.length; result = null; event = XMLStreamConstants.CHARACTERS; return event; case XPathResult.NUMBER_TYPE: double nval = result.getNumberValue(); String ntext = new Double(nval).toString(); buf = ntext.toCharArray(); len = buf.length; result = null; event = XMLStreamConstants.CHARACTERS; return event; case XPathResult.STRING_TYPE: String stext = result.getStringValue(); buf = stext.toCharArray(); len = buf.length; result = null; event = isSpace(buf, len) ? XMLStreamConstants.SPACE : XMLStreamConstants.CHARACTERS; return event; case XPathResult.ANY_UNORDERED_NODE_TYPE: case XPathResult.FIRST_ORDERED_NODE_TYPE: Node n1 = result.getSingleNodeValue(); Document d1 = getDocument(n1); walker = getDocumentTraversal(d1) .createTreeWalker(n1, SHOW_FLAGS, null, expandERefs); result = null; return next(); case XPathResult.ORDERED_NODE_ITERATOR_TYPE: case XPathResult.UNORDERED_NODE_ITERATOR_TYPE: Node n2 = result.iterateNext(); if (n2 == null) { result = null; return next(); } Document d2 = getDocument(n2); walker = getDocumentTraversal(d2) .createTreeWalker(n2, SHOW_FLAGS, null, expandERefs); return next(); case XPathResult.ORDERED_NODE_SNAPSHOT_TYPE: case XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE: Node n3 = result.snapshotItem(snapshotIndex++); if (n3 == null) { result = null; return next(); } Document d3 = getDocument(n3); walker = getDocumentTraversal(d3) .createTreeWalker(n3, SHOW_FLAGS, null, expandERefs); return next(); default: throw new IllegalStateException(); } } if (includedText != null) { // fill buffer if (buf == null) buf = new char[2048]; try { len = includedText.read(buf, 0, buf.length); if (len == -1) { includedText = null; buf = null; return next(); } // chars or space? return (event = isSpace(buf, len) ? XMLStreamConstants.SPACE : XMLStreamConstants.CHARACTERS); } catch (IOException e) { XMLStreamException e2 = new XMLStreamException(e.getMessage()); e2.initCause(e); throw e2; } } event = super.next(); switch (event) { case XMLStreamConstants.START_ELEMENT: String uri = getNamespaceURI(); if (XINCLUDE_NS_URI.equals(uri)) { String localName = getLocalName(); if ("include".equals(localName)) { href = getAttributeValue(null, "href"); String parse = getAttributeValue(null, "parse"); String xpointer = getAttributeValue(null, "xpointer"); String encoding = getAttributeValue(null, "encoding"); String accept = getAttributeValue(null, "accept"); String acceptLanguage = getAttributeValue(null, "accept-language"); if (includeResource(href, parse, xpointer, encoding, accept, acceptLanguage)) { // Skip to xi:include end-element event int depth = 0; while (depth >= 0) { event = super.next(); switch (event) { case XMLStreamConstants.START_ELEMENT: depth++; break; case XMLStreamConstants.END_ELEMENT: depth--; } } // Return next event return next(); } else { inInclude = true; } } else if (inInclude && "fallback".equals(localName)) { if (!seenFallback) inFallback = seenFallback = true; else throw new XMLStreamException("duplicate xi:fallback element"); } else if (inInclude) { throw new XMLStreamException("illegal xi element '" + localName + "'"); } } break; case XMLStreamConstants.END_ELEMENT: String uri2 = getNamespaceURI(); if (XINCLUDE_NS_URI.equals(uri2)) { String localName = getLocalName(); if ("include".equals(localName)) { if (!seenFallback && included) { String msg = "Unable to read " + href + " and no xi:fallback element present"; throw new XMLStreamException(msg); } included = false; href = null; inInclude = inFallback = seenFallback = false; } else if ("fallback".equals(localName)) inFallback = false; } break; } if (inInclude && !inFallback) return next(); return event; }
|
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/e5c817a4efbf34f20c6b017369c0b6d8ef42e5ae/XIncludeFilter.java/buggy/gnu/xml/stream/XIncludeFilter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
1024,
1435,
565,
1216,
21526,
225,
288,
565,
309,
261,
7330,
11617,
13,
1377,
288,
3639,
16029,
273,
629,
31,
3639,
327,
871,
31,
1377,
289,
565,
1681,
273,
446,
31,
565,
562,
273,
374,
31,
565,
309,
261,
11348,
264,
480,
446,
13,
1377,
288,
3639,
2029,
276,
273,
14810,
18,
588,
3935,
907,
5621,
3639,
2029,
290,
273,
446,
31,
3639,
309,
261,
71,
18,
588,
15101,
1435,
422,
2029,
18,
10976,
67,
8744,
13,
1850,
288,
5411,
1250,
353,
1685,
1046,
273,
401,
15156,
18,
12298,
12,
71,
1769,
5411,
309,
261,
291,
1685,
1046,
13,
2868,
288,
7734,
5881,
18,
1289,
12,
71,
1769,
7734,
783,
273,
276,
31,
7734,
871,
273,
15595,
2918,
18,
7570,
67,
10976,
31,
7734,
327,
871,
31,
2868,
289,
5411,
469,
309,
261,
823,
6440,
13,
2868,
288,
7734,
290,
273,
14810,
18,
4285,
10291,
5621,
7734,
309,
261,
82,
480,
446,
13,
5375,
6888,
273,
629,
31,
2868,
289,
5411,
469,
2868,
288,
7734,
290,
273,
14810,
18,
3645,
1763,
5621,
7734,
309,
261,
82,
422,
446,
13,
5375,
290,
273,
14810,
18,
4285,
10291,
5621,
2868,
289,
1850,
289,
3639,
469,
1850,
288,
5411,
290,
273,
14810,
18,
3645,
1763,
5621,
5411,
309,
261,
82,
422,
446,
13,
2868,
290,
273,
14810,
18,
4285,
10291,
5621,
1850,
289,
3639,
309,
261,
82,
422,
446,
13,
1850,
288,
5411,
783,
273,
14810,
18,
2938,
907,
5621,
5411,
309,
261,
2972,
480,
446,
597,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
1024,
1435,
565,
1216,
21526,
225,
288,
565,
309,
261,
7330,
11617,
13,
1377,
288,
3639,
16029,
273,
629,
31,
3639,
327,
871,
31,
1377,
289,
565,
1681,
273,
446,
31,
565,
562,
273,
374,
31,
565,
309,
261,
11348,
264,
480,
446,
13,
1377,
288,
3639,
2029,
276,
273,
14810,
18,
588,
3935,
907,
5621,
3639,
2029,
290,
273,
446,
31,
3639,
309,
261,
71,
18,
588,
15101,
1435,
422,
2029,
18,
10976,
67,
8744,
13,
1850,
288,
5411,
1250,
353,
1685,
1046,
273,
401,
15156,
18,
12298,
12,
71,
1769,
5411,
309,
261,
291,
1685,
1046,
13,
2868,
288,
7734,
5881,
18,
1289,
12,
71,
1769,
7734,
783,
273,
276,
31,
7734,
871,
273,
2
] |
Node.Target target = node.target;
|
Node target = node.target;
|
private void visitGOTO(Node.Jump node, int type, Node child) { Node.Target target = node.target; if (type == Token.IFEQ || type == Token.IFNE) { if (child == null) throw Codegen.badTree(); int targetLabel = getTargetLabel(target); int fallThruLabel = cfw.acquireLabel(); if (type == Token.IFEQ) generateIfJump(child, node, targetLabel, fallThruLabel); else generateIfJump(child, node, fallThruLabel, targetLabel); cfw.markLabel(fallThruLabel); } else { if (type == Token.JSR) addGoto(target, ByteCode.JSR); else addGoto(target, ByteCode.GOTO); } }
|
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/00c3a706bf401545154202d57d1edaa0e2f9b8b8/Codegen.java/clean/src/org/mozilla/javascript/optimizer/Codegen.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3757,
43,
27019,
12,
907,
18,
26743,
756,
16,
509,
618,
16,
2029,
1151,
13,
565,
288,
3639,
2029,
1018,
273,
756,
18,
3299,
31,
3639,
309,
261,
723,
422,
3155,
18,
5501,
27247,
747,
618,
422,
3155,
18,
5501,
5407,
13,
288,
5411,
309,
261,
3624,
422,
446,
13,
604,
3356,
4507,
18,
8759,
2471,
5621,
5411,
509,
1018,
2224,
273,
8571,
2224,
12,
3299,
1769,
5411,
509,
4159,
1315,
8653,
2224,
273,
6080,
91,
18,
1077,
1039,
2224,
5621,
5411,
309,
261,
723,
422,
3155,
18,
5501,
27247,
13,
7734,
2103,
2047,
26743,
12,
3624,
16,
756,
16,
1018,
2224,
16,
4159,
1315,
8653,
2224,
1769,
5411,
469,
7734,
2103,
2047,
26743,
12,
3624,
16,
756,
16,
4159,
1315,
8653,
2224,
16,
1018,
2224,
1769,
5411,
6080,
91,
18,
3355,
2224,
12,
25602,
1315,
8653,
2224,
1769,
3639,
289,
469,
288,
5411,
309,
261,
723,
422,
3155,
18,
6479,
54,
13,
7734,
527,
43,
6302,
12,
3299,
16,
3506,
1085,
18,
6479,
54,
1769,
5411,
469,
7734,
527,
43,
6302,
12,
3299,
16,
3506,
1085,
18,
43,
27019,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3757,
43,
27019,
12,
907,
18,
26743,
756,
16,
509,
618,
16,
2029,
1151,
13,
565,
288,
3639,
2029,
1018,
273,
756,
18,
3299,
31,
3639,
309,
261,
723,
422,
3155,
18,
5501,
27247,
747,
618,
422,
3155,
18,
5501,
5407,
13,
288,
5411,
309,
261,
3624,
422,
446,
13,
604,
3356,
4507,
18,
8759,
2471,
5621,
5411,
509,
1018,
2224,
273,
8571,
2224,
12,
3299,
1769,
5411,
509,
4159,
1315,
8653,
2224,
273,
6080,
91,
18,
1077,
1039,
2224,
5621,
5411,
309,
261,
723,
422,
3155,
18,
5501,
27247,
13,
7734,
2103,
2047,
26743,
12,
3624,
16,
756,
16,
1018,
2224,
16,
4159,
1315,
8653,
2224,
1769,
5411,
469,
7734,
2103,
2047,
26743,
12,
3624,
2
] |
" AND resource_filter = " + Constants.ITEM + " AND resource_filter_arg in " +
|
" AND container_type_id = " + Constants.ITEM + " AND container_id in " +
|
private static TableRowIterator policyLookup(Context c, int resource_type, int resource_id, int action_id) throws SQLException { String myquery = ""; // get the policies eonly for this object (rare) TableRowIterator specific_policies = DatabaseManager.query(c, "resourcepolicy", "SELECT resourcepolicy.* FROM resourcepolicy WHERE" + " resource_type_id=" + resource_type + " AND action_id=" + action_id + " AND resource_id=" + resource_id );/* // find all policies specific to this object String myquery = "SELECT * from ResourcePolicy where" + " resource_type_id = " + resource_type + " AND action_id = " + action_id + " AND resource_id = " + resource_id; DatabaseBeanIterator specific_policies = ResourcePolicy.query(myquery); DatabaseBeanIterator item_policies = null; DatabaseBeanIterator collection_policies = null;*/ if (resource_type == Constants.BITSTREAM) { // if there are item specific policies, they have // the highest priority - return them if (specific_policies.hasNext()) { return specific_policies; } // need to look for policies from containing items myquery = "SELECT * from ResourcePolicy where" + " resource_type_id = " + resource_type + " AND action_id = " + action_id + " AND resource_filter = " + Constants.ITEM + " AND resource_filter_arg in " + "(select item_id from Item2Bundle where bundle_id in" + "(select bundle_id from Bundle2Bitstream where " + " bitstream_id = " + resource_id + "))"; TableRowIterator item_policies = DatabaseManager.query(c, "resourcepolicy", myquery ); if (item_policies.hasNext()) { return item_policies; } // now look for policies from containing collections myquery = "SELECT * from ResourcePolicy where" + " resource_type_id = " + resource_type + " AND action_id = " + action_id + " AND resource_filter = " + Constants.COLLECTION + " AND resource_filter_arg in " + "(select collection_id from Collection2Item where" + " item_id in " + "(select item_id from Item2Bundle where bundle_id in" + "(select bundle_id from Bundle2Bitstream where " + " bitstream_id = " + resource_id + ")))"; TableRowIterator collection_policies = DatabaseManager.query(c, "resourcepolicy", myquery ); if (collection_policies.hasNext()) { return collection_policies; } } // bundles use the same permissions as bitstreams? // inheriting from items and collections if (resource_type == Constants.BUNDLE) { if (specific_policies.hasNext()) { return specific_policies; } // need to look for policies from containing items myquery = "SELECT * from ResourcePolicy where" + " resource_type_id = " + resource_type + " AND action_id = " + action_id + " AND resource_filter = " + Constants.ITEM + " AND resource_filter_arg in " + "(select item_id from Item2Bundle where " + " bundle_id = " + resource_id + ")"; TableRowIterator item_policies = DatabaseManager.query(c, "resourcepolicy", myquery ); if (item_policies.hasNext()) { return item_policies; } // now look for policies from containing collections myquery = "SELECT * from ResourcePolicy where" + " resource_type_id = " + resource_type + " AND action_id = " + action_id + " AND resource_filter = " + Constants.COLLECTION + " AND resource_filter_arg in " + "(select collection_id from Collection2Item where" + " item_id in " + "(select item_id from Item2Bundle where " + " bundle_id =" + resource_id + "))"; TableRowIterator collection_policies = DatabaseManager.query(c, "resourcepolicy", myquery ); if (collection_policies.hasNext()) { return collection_policies; } } // items just inherit from collections if (resource_type == Constants.ITEM) { if (specific_policies.hasNext()) { return specific_policies; } myquery = "SELECT * from ResourcePolicy where" + " resource_type_id = " + resource_type + " AND action_id = " + action_id + " AND resource_filter = " + Constants.COLLECTION + " AND resource_filter_arg in " + "(select collection_id from Collection2Item where" + " item_id = " + resource_id + ")"; TableRowIterator collection_policies = DatabaseManager.query(c, "resourcepolicy", myquery ); if (collection_policies.hasNext()) { return collection_policies; } } // end of special inheritance - handle any other // type return specific_policies; }
|
31338 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31338/25c111afaa1f5e74f536b77770b15ee76ec8e3f4/AuthorizeManager.java/buggy/dspace/src/org/dspace/authorize/AuthorizeManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
3555,
1999,
3198,
3329,
6609,
12,
1042,
276,
16,
509,
1058,
67,
723,
16,
509,
1058,
67,
350,
16,
509,
1301,
67,
350,
13,
3639,
1216,
6483,
565,
288,
3639,
514,
3399,
2271,
273,
1408,
31,
3639,
368,
336,
326,
8923,
425,
3700,
364,
333,
733,
261,
354,
266,
13,
3639,
3555,
1999,
3198,
2923,
67,
17407,
273,
5130,
1318,
18,
2271,
12,
71,
16,
5411,
315,
3146,
5086,
3113,
5411,
315,
4803,
1058,
5086,
4509,
4571,
1058,
5086,
4852,
6,
397,
5411,
315,
1058,
67,
723,
67,
350,
1546,
397,
1058,
67,
723,
397,
5411,
315,
4116,
1301,
67,
350,
1546,
397,
1301,
67,
350,
397,
5411,
315,
4116,
1058,
67,
350,
1546,
397,
1058,
67,
350,
11272,
20308,
3639,
368,
1104,
777,
8923,
2923,
358,
333,
733,
3639,
514,
3399,
2271,
273,
315,
4803,
380,
628,
2591,
2582,
1625,
6,
397,
5411,
315,
1058,
67,
723,
67,
350,
273,
315,
397,
1058,
67,
723,
397,
5411,
315,
4116,
1301,
67,
350,
273,
315,
397,
1301,
67,
350,
397,
5411,
315,
4116,
1058,
67,
350,
273,
315,
397,
1058,
67,
350,
31,
3639,
5130,
3381,
3198,
2923,
67,
17407,
273,
2591,
2582,
18,
2271,
12,
4811,
2271,
1769,
3639,
5130,
3381,
3198,
761,
67,
17407,
273,
446,
31,
3639,
5130,
3381,
3198,
1849,
67,
17407,
273,
446,
31,
5549,
3639,
309,
261,
3146,
67,
723,
422,
5245,
18,
15650,
13693,
13,
3639,
288,
5411,
368,
309,
1915,
854,
761,
2923,
8923,
16,
2898,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
3555,
1999,
3198,
3329,
6609,
12,
1042,
276,
16,
509,
1058,
67,
723,
16,
509,
1058,
67,
350,
16,
509,
1301,
67,
350,
13,
3639,
1216,
6483,
565,
288,
3639,
514,
3399,
2271,
273,
1408,
31,
3639,
368,
336,
326,
8923,
425,
3700,
364,
333,
733,
261,
354,
266,
13,
3639,
3555,
1999,
3198,
2923,
67,
17407,
273,
5130,
1318,
18,
2271,
12,
71,
16,
5411,
315,
3146,
5086,
3113,
5411,
315,
4803,
1058,
5086,
4509,
4571,
1058,
5086,
4852,
6,
397,
5411,
315,
1058,
67,
723,
67,
350,
1546,
397,
1058,
67,
723,
397,
5411,
315,
4116,
1301,
67,
350,
1546,
397,
1301,
67,
350,
397,
5411,
315,
4116,
1058,
67,
350,
1546,
397,
1058,
2
] |
"select {[Measures].[Org Salary], [Measures].[Count]} on columns,\n" +
|
"select {[Measures].[Org Salary], [Measures].[Count]} on columns,\n" +
|
public void testOneAboveLeaf() { // Rebecca Kanagaki has 2 direct reports, and they have no reports assertQueryReturns( "select {[Measures].[Org Salary], [Measures].[Count]} on columns,\n" + " {[Employees].[All Employees].[Sheri Nowmer].[Rebecca Kanagaki]} on rows\n" + "from [HR]", "Axis #0:\n" + "{}\n" + "Axis #1:\n" + "{[Measures].[Org Salary]}\n" + "{[Measures].[Count]}\n" + "Axis #2:\n" + "{[Employees].[All Employees].[Sheri Nowmer].[Rebecca Kanagaki]}\n" + "Row #0: $234.36\n" + "Row #0: 24\n"); }
|
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/aa6a5b6c7e27f66d87e2f1758ac150e336b69d84/ParentChildHierarchyTest.java/clean/testsrc/main/mondrian/test/ParentChildHierarchyTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3335,
25477,
9858,
1435,
288,
3639,
368,
868,
70,
557,
5353,
1475,
940,
581,
77,
711,
576,
2657,
10557,
16,
471,
2898,
1240,
1158,
10557,
3639,
1815,
1138,
1356,
12,
7734,
315,
4025,
288,
63,
23177,
1823,
8009,
63,
6001,
348,
287,
814,
6487,
306,
23177,
1823,
8009,
63,
1380,
18322,
603,
2168,
17211,
82,
6,
397,
7734,
315,
288,
63,
41,
23377,
25521,
8009,
63,
1595,
512,
23377,
25521,
8009,
63,
1555,
264,
77,
4494,
6592,
8009,
63,
426,
70,
557,
5353,
1475,
940,
581,
77,
18322,
603,
2595,
64,
82,
6,
397,
7734,
315,
2080,
306,
15024,
65,
3113,
7734,
315,
6558,
468,
20,
5581,
82,
6,
397,
7734,
7421,
64,
82,
6,
397,
7734,
315,
6558,
468,
21,
5581,
82,
6,
397,
7734,
4144,
63,
23177,
1823,
8009,
63,
6001,
348,
287,
814,
65,
6280,
82,
6,
397,
7734,
4144,
63,
23177,
1823,
8009,
63,
1380,
65,
6280,
82,
6,
397,
7734,
315,
6558,
468,
22,
5581,
82,
6,
397,
7734,
4144,
63,
41,
23377,
25521,
8009,
63,
1595,
512,
23377,
25521,
8009,
63,
1555,
264,
77,
4494,
6592,
8009,
63,
426,
70,
557,
5353,
1475,
940,
581,
77,
65,
6280,
82,
6,
397,
7734,
315,
1999,
468,
20,
30,
271,
17959,
18,
5718,
64,
82,
6,
397,
7734,
315,
1999,
468,
20,
30,
4248,
64,
82,
8863,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3335,
25477,
9858,
1435,
288,
3639,
368,
868,
70,
557,
5353,
1475,
940,
581,
77,
711,
576,
2657,
10557,
16,
471,
2898,
1240,
1158,
10557,
3639,
1815,
1138,
1356,
12,
7734,
315,
4025,
288,
63,
23177,
1823,
8009,
63,
6001,
348,
287,
814,
6487,
306,
23177,
1823,
8009,
63,
1380,
18322,
603,
2168,
17211,
82,
6,
397,
7734,
315,
288,
63,
41,
23377,
25521,
8009,
63,
1595,
512,
23377,
25521,
8009,
63,
1555,
264,
77,
4494,
6592,
8009,
63,
426,
70,
557,
5353,
1475,
940,
581,
77,
18322,
603,
2595,
64,
82,
6,
397,
7734,
315,
2080,
306,
15024,
65,
3113,
7734,
315,
6558,
468,
20,
5581,
82,
6,
397,
7734,
7421,
64,
82,
6,
2
] |
Main.printUsage();
|
Main.printUsage(outStream); shouldRunInterpreter = false;
|
private void processArgument() { String argument = arguments[argumentIndex]; FOR : for (characterIndex = 1; characterIndex < argument.length(); characterIndex++) { switch (argument.charAt(characterIndex)) { case 'h' : Main.printUsage(); break; case 'I' : loadPaths.add(grabValue(" -I must be followed by a directory name to add to lib path")); break FOR; case 'r' : requiredLibraries.add(grabValue("-r must be followed by a package to require")); break FOR; case 'e' : inlineScript.append(grabValue(" -e must be followed by an expression to evaluate")); inlineScript.append('\n'); break FOR; case 'b' : benchmarking = true; break; case 'p' : assumePrinting = true; assumeLoop = true; break; case 'n' : assumeLoop = true; break; case 'a' : split = true; break; case 'l' : processLineEnds = true; break; case 'v' : verbose = true; setShowVersion(true); break; case 'w' : verbose = true; break; case '-' : if (argument.equals("--version")) { setShowVersion(true); break FOR; } else { if (argument.equals("--")) { // ruby interpreter compatibilty // Usage: ruby [switches] [--] [programfile] [arguments]) break FOR; } } default : System.err.println("unknown option " + argument.charAt(characterIndex)); systemExit(); } } }
|
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/f321a7dc6c9f0229cc5266d9c2923a04a755be60/CommandlineParser.java/clean/src/org/jruby/util/CommandlineParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
1379,
1435,
288,
3639,
514,
1237,
273,
1775,
63,
3446,
1016,
15533,
3639,
12108,
294,
364,
261,
11560,
1016,
273,
404,
31,
3351,
1016,
411,
1237,
18,
2469,
5621,
3351,
1016,
27245,
288,
5411,
1620,
261,
3446,
18,
3001,
861,
12,
11560,
1016,
3719,
288,
7734,
648,
296,
76,
11,
294,
10792,
12740,
18,
1188,
5357,
12,
659,
1228,
1769,
1410,
1997,
30010,
273,
629,
31,
10792,
898,
31,
7734,
648,
296,
45,
11,
294,
10792,
1262,
4466,
18,
1289,
12,
2752,
70,
620,
2932,
300,
45,
1297,
506,
10860,
635,
279,
1867,
508,
358,
527,
358,
2561,
589,
7923,
1769,
10792,
898,
12108,
31,
7734,
648,
296,
86,
11,
294,
10792,
1931,
31909,
18,
1289,
12,
2752,
70,
620,
2932,
17,
86,
1297,
506,
10860,
635,
279,
2181,
358,
2583,
7923,
1769,
10792,
898,
12108,
31,
7734,
648,
296,
73,
11,
294,
10792,
6370,
3651,
18,
6923,
12,
2752,
70,
620,
2932,
300,
73,
1297,
506,
10860,
635,
392,
2652,
358,
5956,
7923,
1769,
10792,
6370,
3651,
18,
6923,
2668,
64,
82,
8284,
10792,
898,
12108,
31,
7734,
648,
296,
70,
11,
294,
10792,
14128,
310,
273,
638,
31,
10792,
898,
31,
7734,
648,
296,
84,
11,
294,
10792,
6750,
5108,
310,
273,
638,
31,
10792,
6750,
6452,
273,
638,
31,
10792,
898,
31,
7734,
648,
296,
82,
11,
294,
10792,
6750,
6452,
273,
638,
31,
10792,
898,
31,
7734,
648,
296,
69,
11,
294,
10792,
1416,
273,
638,
31,
10792,
898,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
1379,
1435,
288,
3639,
514,
1237,
273,
1775,
63,
3446,
1016,
15533,
3639,
12108,
294,
364,
261,
11560,
1016,
273,
404,
31,
3351,
1016,
411,
1237,
18,
2469,
5621,
3351,
1016,
27245,
288,
5411,
1620,
261,
3446,
18,
3001,
861,
12,
11560,
1016,
3719,
288,
7734,
648,
296,
76,
11,
294,
10792,
12740,
18,
1188,
5357,
12,
659,
1228,
1769,
1410,
1997,
30010,
273,
629,
31,
10792,
898,
31,
7734,
648,
296,
45,
11,
294,
10792,
1262,
4466,
18,
1289,
12,
2752,
70,
620,
2932,
300,
45,
1297,
506,
10860,
635,
279,
1867,
508,
358,
527,
358,
2561,
589,
7923,
1769,
10792,
898,
12108,
31,
7734,
648,
296,
86,
11,
294,
10792,
1931,
31909,
18,
2
] |
try { bos.close(); bos.writeTo(result); } catch (IOException inner) { }
|
public void displayFileDiff(String path, File file1, File file2, String rev1, String rev2, String mimeType1, String mimeType2, OutputStream result) throws SVNException { path = getDisplayPath(path); int i = 0; for(; i < myAnchorPath1.length() && i < myAnchorPath2.length() && myAnchorPath1.charAt(i) == myAnchorPath2.charAt(i); i++) {} if (i < myAnchorPath1.length() || i < myAnchorPath2.length()) { if (i == myAnchorPath1.length()) { i = myAnchorPath1.length() - 1; } for(; i > 0 && myAnchorPath1.charAt(i) != '/'; i--) {} } String p1 = myAnchorPath1.substring(i) ; String p2 = myAnchorPath2.substring(i); if (p1.length() == 0) { p1 = path; } else if (p1.charAt(0) == '/') { p1 = path + "\t(..." + p1 + ")"; } else { p1 = path + "\t(.../" + p1 + ")"; } if (p2.length() == 0) { p2 = path; } else if (p2.charAt(0) == '/') { p2 = path + "\t(..." + p2 + ")"; } else { p2 = path + "\t(.../" + p2 + ")"; } // if anchor1 is the same as anchor2 just use path. // if anchor1 differs from anchor2 => // condence anchors (get common root and remainings). rev1 = rev1 == null ? WC_REVISION_LABEL : rev1; rev2 = rev2 == null ? WC_REVISION_LABEL : rev2; ByteArrayOutputStream bos = new ByteArrayOutputStream(); try { if (displayHeader(bos, path, file2 == null)) { bos.close(); bos.writeTo(result); return; } } catch (IOException e) { try { bos.close(); bos.writeTo(result); } catch (IOException inner) { } SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, e.getLocalizedMessage()); SVNErrorManager.error(err, e); } if (!isForcedBinaryDiff() && (SVNProperty.isBinaryMimeType(mimeType1) || SVNProperty.isBinaryMimeType(mimeType2))) { try { displayBinary(bos, mimeType1, mimeType2); } catch (IOException e) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, e.getLocalizedMessage()); SVNErrorManager.error(err, e); } finally { try { bos.close(); bos.writeTo(result); } catch (IOException e) { } } return; } if (file1 == file2 && file1 == null) { try { bos.close(); bos.writeTo(result); } catch (IOException e) { } return; } // put header fields. try { displayHeaderFields(bos, p1, rev1, p2, rev2); } catch (IOException e) { try { bos.close(); bos.writeTo(result); } catch (IOException inner) { } SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, e.getLocalizedMessage()); SVNErrorManager.error(err, e); } String header; try { bos.close(); header = bos.toString(); } catch (IOException inner) { header = ""; } InputStream is1 = null; InputStream is2 = null; try { is1 = file1 == null ? EMPTY_FILE_IS : SVNFileUtil.openFileForReading(file1); is2 = file2 == null ? EMPTY_FILE_IS : SVNFileUtil.openFileForReading(file2); QDiffUniGenerator.setup(); Map properties = new HashMap(); properties.put(QDiffGeneratorFactory.IGNORE_EOL_PROPERTY, Boolean.valueOf(getDiffOptions().isIgnoreEOLStyle())); if (getDiffOptions().isIgnoreAllWhitespace()) { properties.put(QDiffGeneratorFactory.IGNORE_SPACE_PROPERTY, QDiffGeneratorFactory.IGNORE_ALL_SPACE); } else if (getDiffOptions().isIgnoreAmountOfWhitespace()) { properties.put(QDiffGeneratorFactory.IGNORE_SPACE_PROPERTY, QDiffGeneratorFactory.IGNORE_SPACE_CHANGE); } QDiffGenerator generator = new QDiffUniGenerator(properties, header); Writer writer = new OutputStreamWriter(result, getEncoding()); QDiffManager.generateTextDiff(is1, is2, getEncoding(), writer, generator); writer.flush(); } catch (IOException e) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, e.getLocalizedMessage()); SVNErrorManager.error(err, e); } finally { SVNFileUtil.closeFile(is1); SVNFileUtil.closeFile(is2); } }
|
2776 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2776/7272aea4f40aa52b3bab884651581ec038dfa114/DefaultSVNDiffGenerator.java/clean/svnkit/src/org/tmatesoft/svn/core/wc/DefaultSVNDiffGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2562,
812,
5938,
12,
780,
589,
16,
1387,
585,
21,
16,
1387,
585,
22,
16,
5411,
514,
5588,
21,
16,
514,
5588,
22,
16,
514,
10707,
21,
16,
514,
10707,
22,
16,
8962,
563,
13,
1216,
29537,
50,
503,
288,
3639,
589,
273,
13854,
743,
12,
803,
1769,
3639,
509,
277,
273,
374,
31,
3639,
364,
12,
31,
277,
411,
3399,
11605,
743,
21,
18,
2469,
1435,
597,
277,
411,
3399,
11605,
743,
22,
18,
2469,
1435,
597,
5411,
3399,
11605,
743,
21,
18,
3001,
861,
12,
77,
13,
422,
3399,
11605,
743,
22,
18,
3001,
861,
12,
77,
1769,
277,
27245,
2618,
3639,
309,
261,
77,
411,
3399,
11605,
743,
21,
18,
2469,
1435,
747,
277,
411,
3399,
11605,
743,
22,
18,
2469,
10756,
288,
5411,
309,
261,
77,
422,
3399,
11605,
743,
21,
18,
2469,
10756,
288,
7734,
277,
273,
3399,
11605,
743,
21,
18,
2469,
1435,
300,
404,
31,
5411,
289,
5411,
364,
12,
31,
277,
405,
374,
597,
3399,
11605,
743,
21,
18,
3001,
861,
12,
77,
13,
480,
2023,
31,
277,
413,
13,
2618,
3639,
289,
3639,
514,
293,
21,
273,
3399,
11605,
743,
21,
18,
28023,
12,
77,
13,
274,
3639,
514,
293,
22,
273,
3399,
11605,
743,
22,
18,
28023,
12,
77,
1769,
7734,
309,
261,
84,
21,
18,
2469,
1435,
422,
374,
13,
288,
5411,
293,
21,
273,
589,
31,
3639,
289,
469,
309,
261,
84,
21,
18,
3001,
861,
12,
20,
13,
422,
2023,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2562,
812,
5938,
12,
780,
589,
16,
1387,
585,
21,
16,
1387,
585,
22,
16,
5411,
514,
5588,
21,
16,
514,
5588,
22,
16,
514,
10707,
21,
16,
514,
10707,
22,
16,
8962,
563,
13,
1216,
29537,
50,
503,
288,
3639,
589,
273,
13854,
743,
12,
803,
1769,
3639,
509,
277,
273,
374,
31,
3639,
364,
12,
31,
277,
411,
3399,
11605,
743,
21,
18,
2469,
1435,
597,
277,
411,
3399,
11605,
743,
22,
18,
2469,
1435,
597,
5411,
3399,
11605,
743,
21,
18,
3001,
861,
12,
77,
13,
422,
3399,
11605,
743,
22,
18,
3001,
861,
12,
77,
1769,
277,
27245,
2618,
3639,
309,
261,
77,
411,
3399,
11605,
743,
21,
18,
2469,
1435,
747,
2
] |
|
RubySymbol classname = RubySymbol.newSymbol(runtime, getMetaClass().getName());
|
RubySymbol classname = RubySymbol.newSymbol(getRuntime(), getMetaClass().getName());
|
public void marshalTo(MarshalStream output) throws java.io.IOException { output.write('o'); RubySymbol classname = RubySymbol.newSymbol(runtime, getMetaClass().getName()); output.dumpObject(classname); if (getInstanceVariables() == null) { output.dumpInt(0); } else { output.dumpInt(getInstanceVariables().size()); Iterator iter = instanceVariableNames(); while (iter.hasNext()) { String name = (String) iter.next(); IRubyObject value = getInstanceVariable(name); output.dumpObject(RubySymbol.newSymbol(runtime, name)); output.dumpObject(value); } } }
|
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyObject.java/clean/src/org/jruby/RubyObject.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
10893,
774,
12,
8105,
1228,
876,
13,
1216,
2252,
18,
1594,
18,
14106,
288,
3639,
876,
18,
2626,
2668,
83,
8284,
3639,
19817,
5335,
7479,
273,
19817,
5335,
18,
2704,
5335,
12,
588,
5576,
9334,
11312,
797,
7675,
17994,
10663,
3639,
876,
18,
8481,
921,
12,
18340,
1769,
3639,
309,
261,
588,
1442,
6158,
1435,
422,
446,
13,
288,
5411,
876,
18,
8481,
1702,
12,
20,
1769,
3639,
289,
469,
288,
5411,
876,
18,
8481,
1702,
12,
588,
1442,
6158,
7675,
1467,
10663,
5411,
4498,
1400,
273,
791,
3092,
1557,
5621,
5411,
1323,
261,
2165,
18,
5332,
2134,
10756,
288,
7734,
514,
508,
273,
261,
780,
13,
1400,
18,
4285,
5621,
7734,
15908,
10340,
921,
460,
273,
3694,
3092,
12,
529,
1769,
7734,
876,
18,
8481,
921,
12,
54,
10340,
5335,
18,
2704,
5335,
12,
9448,
16,
508,
10019,
7734,
876,
18,
8481,
921,
12,
1132,
1769,
5411,
289,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10893,
774,
12,
8105,
1228,
876,
13,
1216,
2252,
18,
1594,
18,
14106,
288,
3639,
876,
18,
2626,
2668,
83,
8284,
3639,
19817,
5335,
7479,
273,
19817,
5335,
18,
2704,
5335,
12,
588,
5576,
9334,
11312,
797,
7675,
17994,
10663,
3639,
876,
18,
8481,
921,
12,
18340,
1769,
3639,
309,
261,
588,
1442,
6158,
1435,
422,
446,
13,
288,
5411,
876,
18,
8481,
1702,
12,
20,
1769,
3639,
289,
469,
288,
5411,
876,
18,
8481,
1702,
12,
588,
1442,
6158,
7675,
1467,
10663,
5411,
4498,
1400,
273,
791,
3092,
1557,
5621,
5411,
1323,
261,
2165,
18,
5332,
2134,
10756,
288,
7734,
514,
508,
273,
261,
780,
13,
1400,
18,
4285,
5621,
7734,
15908,
10340,
921,
460,
2
] |
default :
|
default:
|
public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { if (eContainerFeatureID >= 0) { switch (eContainerFeatureID) { case CommonarchivePackage.CLIENT_MODULE_REF__EAR_FILE : return eContainer.eInverseRemove(this, CommonarchivePackage.EAR_FILE__MODULE_REFS, EARFile.class, msgs); default : return eDynamicBasicRemoveFromContainer(msgs); } } return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); }
|
8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/ebce0dfcf980c405fd07c019b6f4466152262cb7/ClientModuleRefImpl.java/clean/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/ClientModuleRefImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
27050,
425,
8252,
3288,
1265,
2170,
12,
4386,
3893,
8733,
13,
288,
202,
202,
430,
261,
73,
2170,
4595,
734,
1545,
374,
13,
288,
1082,
202,
9610,
261,
73,
2170,
4595,
734,
13,
288,
9506,
202,
3593,
5658,
10686,
2261,
18,
11935,
67,
12194,
67,
10771,
972,
9250,
67,
3776,
294,
6862,
202,
2463,
425,
2170,
18,
73,
16376,
3288,
12,
2211,
16,
5658,
10686,
2261,
18,
9250,
67,
3776,
972,
12194,
67,
862,
4931,
16,
512,
985,
812,
18,
1106,
16,
8733,
1769,
9506,
202,
1886,
294,
6862,
202,
2463,
425,
9791,
8252,
3288,
1265,
2170,
12,
27439,
1769,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
425,
2170,
18,
73,
16376,
3288,
12,
2211,
16,
512,
3665,
24595,
67,
18257,
67,
8369,
300,
425,
2170,
4595,
734,
16,
446,
16,
8733,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
27050,
425,
8252,
3288,
1265,
2170,
12,
4386,
3893,
8733,
13,
288,
202,
202,
430,
261,
73,
2170,
4595,
734,
1545,
374,
13,
288,
1082,
202,
9610,
261,
73,
2170,
4595,
734,
13,
288,
9506,
202,
3593,
5658,
10686,
2261,
18,
11935,
67,
12194,
67,
10771,
972,
9250,
67,
3776,
294,
6862,
202,
2463,
425,
2170,
18,
73,
16376,
3288,
12,
2211,
16,
5658,
10686,
2261,
18,
9250,
67,
3776,
972,
12194,
67,
862,
4931,
16,
512,
985,
812,
18,
1106,
16,
8733,
1769,
9506,
202,
1886,
294,
6862,
202,
2463,
425,
9791,
8252,
3288,
1265,
2170,
12,
27439,
1769,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
425,
2170,
18,
73,
16376,
3288,
12,
2
] |
performApply(); }
|
performApply(); }
|
public void widgetSelected(SelectionEvent e) { performApply(); }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/d9eff5582653c44716bb626b9a40c2d82ad2b401/PreferencePage.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/preference/PreferencePage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
10792,
3073,
7001,
5621,
7734,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
10792,
3073,
7001,
5621,
7734,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
protected void setProperty(final Context _context, final String _name, final String _value) throws Exception {
|
protected void setProperty(final String _name, final String _value) throws CacheReloadException {
|
protected void setProperty(final Context _context, final String _name, final String _value) throws Exception { if (_name.startsWith("AccessCheckClass")) { addAccessCheck(_value); } else if ("Icon".equals(_name)) { setIcon(RequestHandler.replaceMacrosInUrl(_value)); } else if ("Tree".equals(_name)) { setTreeMenuName(_value); } else if (_name.startsWith("UniqueKey")) { addUniqueKey(_value); } else if (_name.equals("ViewAttribute")) {// setViewAttribute(_context, _value); } else { super.setProperty(_name, _value); } }
|
50266 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50266/398deca4d2f670170df358e7685a3efeb32cab57/Type.java/clean/kernel/src/main/java/org/efaps/admin/datamodel/Type.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
7486,
12,
6385,
514,
389,
529,
16,
727,
514,
389,
1132,
13,
1216,
4379,
13013,
503,
225,
288,
565,
309,
261,
67,
529,
18,
17514,
1190,
2932,
1862,
1564,
797,
6,
3719,
225,
288,
1377,
527,
1862,
1564,
24899,
1132,
1769,
565,
289,
469,
309,
7566,
5554,
9654,
14963,
24899,
529,
3719,
225,
288,
1377,
21481,
12,
28773,
18,
2079,
9990,
6973,
382,
1489,
24899,
1132,
10019,
565,
289,
469,
309,
7566,
2471,
9654,
14963,
24899,
529,
3719,
225,
288,
1377,
444,
2471,
4599,
461,
24899,
1132,
1769,
565,
289,
469,
309,
261,
67,
529,
18,
17514,
1190,
2932,
6303,
653,
6,
3719,
225,
288,
1377,
527,
6303,
653,
24899,
1132,
1769,
565,
289,
469,
309,
261,
67,
529,
18,
14963,
2932,
1767,
1499,
6,
3719,
225,
288,
759,
1377,
19923,
1499,
24899,
2472,
16,
389,
1132,
1769,
565,
289,
469,
225,
288,
1377,
2240,
18,
542,
1396,
24899,
529,
16,
389,
1132,
1769,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
7486,
12,
6385,
514,
389,
529,
16,
727,
514,
389,
1132,
13,
1216,
4379,
13013,
503,
225,
288,
565,
309,
261,
67,
529,
18,
17514,
1190,
2932,
1862,
1564,
797,
6,
3719,
225,
288,
1377,
527,
1862,
1564,
24899,
1132,
1769,
565,
289,
469,
309,
7566,
5554,
9654,
14963,
24899,
529,
3719,
225,
288,
1377,
21481,
12,
28773,
18,
2079,
9990,
6973,
382,
1489,
24899,
1132,
10019,
565,
289,
469,
309,
7566,
2471,
9654,
14963,
24899,
529,
3719,
225,
288,
1377,
444,
2471,
4599,
461,
24899,
1132,
1769,
565,
289,
469,
309,
261,
67,
529,
18,
17514,
1190,
2932,
6303,
653,
6,
3719,
225,
288,
1377,
527,
6303,
653,
24899,
1132,
1769,
565,
289,
469,
309,
2
] |
if(start instanceof CompositeElement && (isStrongWhitespaceHolder(start.getElementType()) || slopeSide && start.getUserData(UNCLOSED_ELEMENT_PROPERTY) != null)){
|
if (start instanceof CompositeElement && (isStrongWhitespaceHolder(start.getElementType()) || slopeSide && start.getUserData(UNCLOSED_ELEMENT_PROPERTY) != null)) {
|
private static void initStrongWhitespaceHolder(CommonParentState commonParent, ASTNode start, boolean slopeSide) { if(start instanceof CompositeElement && (isStrongWhitespaceHolder(start.getElementType()) || slopeSide && start.getUserData(UNCLOSED_ELEMENT_PROPERTY) != null)){ commonParent.strongWhiteSpaceHolder = (CompositeElement)start; commonParent.isStrongElementOnRisingSlope = slopeSide; } }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/db4365e72e5685d16ed28252776f5e0da7a3f32a/ParseUtil.java/clean/source/com/intellij/psi/impl/source/parsing/ParseUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
918,
1208,
1585,
932,
9431,
6064,
12,
6517,
3054,
1119,
2975,
3054,
16,
9183,
907,
787,
16,
1250,
17543,
8895,
13,
288,
565,
309,
12,
1937,
1276,
14728,
1046,
4202,
597,
261,
291,
1585,
932,
9431,
6064,
12,
1937,
18,
588,
17481,
10756,
6647,
747,
17543,
8895,
597,
787,
18,
588,
19265,
12,
2124,
28475,
67,
10976,
67,
9900,
13,
480,
446,
3719,
95,
1377,
2975,
3054,
18,
9110,
23108,
6064,
273,
261,
9400,
1046,
13,
1937,
31,
1377,
2975,
3054,
18,
291,
1585,
932,
1046,
1398,
54,
13734,
55,
12232,
273,
17543,
8895,
31,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
918,
1208,
1585,
932,
9431,
6064,
12,
6517,
3054,
1119,
2975,
3054,
16,
9183,
907,
787,
16,
1250,
17543,
8895,
13,
288,
565,
309,
12,
1937,
1276,
14728,
1046,
4202,
597,
261,
291,
1585,
932,
9431,
6064,
12,
1937,
18,
588,
17481,
10756,
6647,
747,
17543,
8895,
597,
787,
18,
588,
19265,
12,
2124,
28475,
67,
10976,
67,
9900,
13,
480,
446,
3719,
95,
1377,
2975,
3054,
18,
9110,
23108,
6064,
273,
261,
9400,
1046,
13,
1937,
31,
1377,
2975,
3054,
18,
291,
1585,
932,
1046,
1398,
54,
13734,
55,
12232,
273,
17543,
8895,
31,
565,
289,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
case 8:
|
case 'B':
|
public final static VmArrayClass getPrimitiveArrayClass(int type) { switch (type) { case 4: return BooleanArrayClass; case 8: return ByteArrayClass; case 5: return CharArrayClass; case 9: return ShortArrayClass; case 10: return IntArrayClass; case 6: return FloatArrayClass; case 11: return LongArrayClass; case 7: return DoubleArrayClass; default: throw new IllegalArgumentException("Unknown type " + type); } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50abd4639810e6237e6fdcf2d287d93f4f1e7387/VmType.java/buggy/core/src/core/org/jnode/vm/classmgr/VmType.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
760,
776,
81,
1076,
797,
8248,
5025,
1076,
797,
12,
474,
618,
13,
288,
202,
202,
9610,
261,
723,
13,
288,
202,
202,
3593,
1059,
30,
1082,
202,
2463,
3411,
1076,
797,
31,
202,
202,
3593,
1725,
30,
1082,
202,
2463,
7964,
797,
31,
202,
202,
3593,
1381,
30,
1082,
202,
2463,
3703,
1076,
797,
31,
202,
202,
3593,
2468,
30,
1082,
202,
2463,
7925,
1076,
797,
31,
202,
202,
3593,
1728,
30,
1082,
202,
2463,
3094,
1076,
797,
31,
202,
202,
3593,
1666,
30,
1082,
202,
2463,
5450,
1076,
797,
31,
202,
202,
3593,
4648,
30,
1082,
202,
2463,
3407,
1076,
797,
31,
202,
202,
3593,
2371,
30,
1082,
202,
2463,
3698,
1076,
797,
31,
202,
202,
1886,
30,
1082,
202,
12849,
394,
2754,
2932,
4874,
618,
315,
397,
618,
1769,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
760,
776,
81,
1076,
797,
8248,
5025,
1076,
797,
12,
474,
618,
13,
288,
202,
202,
9610,
261,
723,
13,
288,
202,
202,
3593,
1059,
30,
1082,
202,
2463,
3411,
1076,
797,
31,
202,
202,
3593,
1725,
30,
1082,
202,
2463,
7964,
797,
31,
202,
202,
3593,
1381,
30,
1082,
202,
2463,
3703,
1076,
797,
31,
202,
202,
3593,
2468,
30,
1082,
202,
2463,
7925,
1076,
797,
31,
202,
202,
3593,
1728,
30,
1082,
202,
2463,
3094,
1076,
797,
31,
202,
202,
3593,
1666,
30,
1082,
202,
2463,
5450,
1076,
797,
31,
202,
202,
3593,
4648,
30,
1082,
202,
2463,
3407,
1076,
797,
31,
202,
202,
3593,
2371,
30,
1082,
202,
2463,
3698,
1076,
797,
2
] |
if (init) { if (node.getPrevious() != null && node.getPrevious().isFilterTrace()) { if (filterInfo.remaining > 0) { for (int i = 0; i < filterInfo.remaining * Util.getTypeSize(node.getFilter().getInputType()); i++) { RouteIns ins = new RouteIns(tile); ins.addRoute(rawChip.getTile(((FilterTraceNode)node.getPrevious()).getX(), ((FilterTraceNode)node.getPrevious()).getY()), tile); tile.getSwitchCode().appendIns(ins, init); }
|
if (init && filterInfo.remaining > 0) { for (int i = 0; i < filterInfo.remaining * Util.getTypeSize(node.getFilter().getInputType()); i++) { if (node.getPrevious().isFilterTrace()) { RouteIns ins = new RouteIns(tile); ins.addRoute(rawChip.getTile(((FilterTraceNode)node.getPrevious()).getX(), ((FilterTraceNode)node.getPrevious()).getY()), tile); tile.getSwitchCode().appendIns(ins, init); } else if (KjcOptions.magicdram) { InputTraceNode input = (InputTraceNode)node.getPrevious(); createMagicDramLoad(input, node, init, rawChip);
|
private static void createSwitchCodeBuffered(FilterTraceNode node, Trace parent, FilterInfo filterInfo, boolean init, RawTile tile, RawChip rawChip, int mult) { //create the switch code for each firing createSwitchCode(node, parent, filterInfo, init, false, tile, rawChip, mult); //now we must take care of the remaining items on the input tape //after the initialization phase if the upstream filter produces more than //we consume in init if (init) { if (node.getPrevious() != null && node.getPrevious().isFilterTrace()) { if (filterInfo.remaining > 0) { for (int i = 0; i < filterInfo.remaining * Util.getTypeSize(node.getFilter().getInputType()); i++) { RouteIns ins = new RouteIns(tile); //add the route from the source tile to this //tile's compute processor ins.addRoute(rawChip.getTile(((FilterTraceNode)node.getPrevious()).getX(), ((FilterTraceNode)node.getPrevious()).getY()), tile); tile.getSwitchCode().appendIns(ins, init); } } } } }
|
47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/837d7c534bc8642df91fcf2f27a1ef1a7084eb58/Rawify.java/buggy/streams/src/at/dms/kjc/spacetime/Rawify.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
752,
10200,
1085,
17947,
12,
1586,
3448,
907,
756,
16,
2677,
982,
16,
15106,
4008,
966,
1034,
966,
16,
6862,
1082,
1250,
1208,
16,
6576,
9337,
4769,
16,
6862,
1082,
6576,
782,
625,
1831,
782,
625,
16,
509,
1778,
13,
377,
288,
202,
759,
2640,
326,
1620,
981,
364,
1517,
30253,
225,
202,
2640,
10200,
1085,
12,
2159,
16,
982,
16,
1034,
966,
16,
1208,
16,
629,
16,
4769,
16,
1831,
782,
625,
16,
1778,
1769,
202,
202,
759,
3338,
732,
1297,
4862,
7671,
434,
326,
4463,
1516,
603,
326,
810,
268,
1273,
225,
202,
759,
5205,
326,
10313,
6855,
309,
326,
13505,
1034,
15505,
1898,
2353,
202,
759,
1814,
7865,
316,
1208,
202,
430,
261,
2738,
13,
288,
202,
565,
309,
261,
2159,
18,
588,
8351,
1435,
480,
446,
597,
202,
202,
2159,
18,
588,
8351,
7675,
291,
1586,
3448,
10756,
288,
9506,
202,
430,
261,
2188,
966,
18,
17956,
405,
374,
13,
288,
1082,
565,
364,
261,
474,
277,
273,
374,
31,
4697,
277,
411,
1034,
966,
18,
17956,
380,
3564,
18,
588,
559,
1225,
12,
2159,
18,
588,
1586,
7675,
588,
1210,
559,
10663,
4697,
277,
27245,
288,
1082,
202,
3255,
5048,
2763,
273,
394,
5179,
5048,
12,
15368,
1769,
1082,
202,
759,
1289,
326,
1946,
628,
326,
1084,
4769,
358,
333,
1082,
202,
759,
15368,
1807,
3671,
6659,
1082,
202,
2679,
18,
1289,
3255,
12,
1899,
782,
625,
18,
588,
9337,
12443,
12,
1586,
3448,
907,
13,
2159,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
752,
10200,
1085,
17947,
12,
1586,
3448,
907,
756,
16,
2677,
982,
16,
15106,
4008,
966,
1034,
966,
16,
6862,
1082,
1250,
1208,
16,
6576,
9337,
4769,
16,
6862,
1082,
6576,
782,
625,
1831,
782,
625,
16,
509,
1778,
13,
377,
288,
202,
759,
2640,
326,
1620,
981,
364,
1517,
30253,
225,
202,
2640,
10200,
1085,
12,
2159,
16,
982,
16,
1034,
966,
16,
1208,
16,
629,
16,
4769,
16,
1831,
782,
625,
16,
1778,
1769,
202,
202,
759,
3338,
732,
1297,
4862,
7671,
434,
326,
4463,
1516,
603,
326,
810,
268,
1273,
225,
202,
759,
5205,
326,
10313,
6855,
309,
326,
13505,
1034,
15505,
1898,
2353,
202,
759,
1814,
7865,
316,
1208,
202,
430,
2
] |
pageProlog.append("<html><head>"); pageProlog.append("<style type=\"text/css\">"); pageProlog.append(getBodyStyle(useColorBG)); pageProlog.append("</style>"); appendStyleSheetURL(pageProlog, styleSheetURL); pageProlog.append("</head>"); pageProlog.append("<body>"); buffer.insert(position, pageProlog.toString());
|
pageProlog.append("<html>"); appendStyleSheetURL(pageProlog, styleSheetURL); pageProlog.append("<body text=\"#000000\" bgcolor=\""); appendColor(pageProlog, bgRGB); pageProlog.append("\">"); buffer.insert(position, pageProlog.toString()); }
|
public static void insertPageProlog(StringBuffer buffer, int position, URL styleSheetURL, boolean useColorBG) { StringBuffer pageProlog= new StringBuffer(300); pageProlog.append("<html><head>"); //$NON-NLS-1$ pageProlog.append("<style type=\"text/css\">"); //$NON-NLS-1$ pageProlog.append(getBodyStyle(useColorBG)); pageProlog.append("</style>"); //$NON-NLS-1$ appendStyleSheetURL(pageProlog, styleSheetURL); pageProlog.append("</head>"); //$NON-NLS-1$ pageProlog.append("<body>"); //$NON-NLS-1$ buffer.insert(position, pageProlog.toString()); }
|
14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/b5fdd794ee05f31d85c8cede14b73670272143ae/HTMLPrinter.java/clean/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/text/HTMLPrinter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2243,
1964,
626,
1330,
12,
780,
1892,
1613,
16,
509,
1754,
16,
1976,
2154,
8229,
1785,
16,
1250,
999,
2957,
30098,
13,
288,
202,
202,
780,
1892,
1363,
626,
1330,
33,
394,
6674,
12,
19249,
1769,
202,
202,
2433,
626,
1330,
18,
6923,
2932,
32,
2620,
4438,
1978,
2984,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
2433,
626,
1330,
18,
6923,
2932,
32,
4060,
618,
5189,
955,
19,
5212,
21121,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
2433,
626,
1330,
18,
6923,
12,
588,
2250,
2885,
12,
1202,
2957,
30098,
10019,
202,
202,
2433,
626,
1330,
18,
6923,
2932,
1757,
4060,
2984,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
6923,
2885,
8229,
1785,
12,
2433,
626,
1330,
16,
2154,
8229,
1785,
1769,
202,
202,
2433,
626,
1330,
18,
6923,
2932,
1757,
1978,
2984,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
2433,
626,
1330,
18,
6923,
2932,
32,
3432,
2984,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
4106,
18,
6387,
12,
3276,
16,
225,
1363,
626,
1330,
18,
10492,
10663,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2243,
1964,
626,
1330,
12,
780,
1892,
1613,
16,
509,
1754,
16,
1976,
2154,
8229,
1785,
16,
1250,
999,
2957,
30098,
13,
288,
202,
202,
780,
1892,
1363,
626,
1330,
33,
394,
6674,
12,
19249,
1769,
202,
202,
2433,
626,
1330,
18,
6923,
2932,
32,
2620,
4438,
1978,
2984,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
2433,
626,
1330,
18,
6923,
2932,
32,
4060,
618,
5189,
955,
19,
5212,
21121,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
2433,
626,
1330,
18,
6923,
12,
588,
2250,
2885,
12,
1202,
2957,
30098,
10019,
202,
202,
2433,
626,
1330,
18,
6923,
2932,
1757,
4060,
2984,
1769,
4329,
3993,
17,
5106,
17,
2
] |
UnresolvedType collectionType = UnresolvedType.forName("java.util.Collection<E>");
|
UnresolvedType collectionType = UnresolvedType.forName("java.util.Collection"); ResolvedType rt= world.resolve(collectionType).getRawType().resolve(world); ResolvedMember[] methods = world.resolve(collectionType).getDeclaredMethods(); int i = findMethod("toArray", methods); assertTrue("Couldn't find 'toArray' in the set of methods? "+methods,i != -1); String expectedSignature = "T[] java.util.Collection.toArray(T[])"; assertTrue("Expected signature of '"+expectedSignature+"' but it was '"+methods[i],methods[i].toString().equals(expectedSignature));
|
public void testResolveGeneric() { UnresolvedType collectionType = UnresolvedType.forName("java.util.Collection<E>");// ResolvedType rt= world.resolve(collectionType);// ResolvedMember[] methods = world.resolve(collectionType).getDeclaredMethods();// assertTrue(findMethod("toArray", methods) != -1); }
|
53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/749461102f3d5b4d89cf0b1ad744be97e161951b/TestJava5ReflectionBasedReferenceTypeDelegate.java/clean/weaver5/java5-testsrc/org/aspectj/weaver/TestJava5ReflectionBasedReferenceTypeDelegate.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
8460,
7014,
1435,
288,
202,
202,
984,
11792,
559,
1849,
559,
273,
1351,
11792,
559,
18,
1884,
461,
2932,
6290,
18,
1367,
18,
2532,
32,
41,
2984,
1769,
759,
202,
202,
12793,
559,
8253,
33,
9117,
18,
10828,
12,
5548,
559,
1769,
759,
202,
202,
12793,
4419,
8526,
2590,
273,
9117,
18,
10828,
12,
5548,
559,
2934,
588,
18888,
4712,
5621,
759,
202,
202,
11231,
5510,
12,
4720,
1305,
2932,
31447,
3113,
2590,
13,
480,
300,
21,
1769,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
8460,
7014,
1435,
288,
202,
202,
984,
11792,
559,
1849,
559,
273,
1351,
11792,
559,
18,
1884,
461,
2932,
6290,
18,
1367,
18,
2532,
32,
41,
2984,
1769,
759,
202,
202,
12793,
559,
8253,
33,
9117,
18,
10828,
12,
5548,
559,
1769,
759,
202,
202,
12793,
4419,
8526,
2590,
273,
9117,
18,
10828,
12,
5548,
559,
2934,
588,
18888,
4712,
5621,
759,
202,
202,
11231,
5510,
12,
4720,
1305,
2932,
31447,
3113,
2590,
13,
480,
300,
21,
1769,
1082,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
throw new ReturnJump(runtime.getNil());
|
result = runtime.getNil();
|
public void visitForNode(ForNode iVisited) { threadContext.getBlockStack().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode()), self); threadContext.getIterStack().push(Iter.ITER_PRE); try { while (true) { try { ISourcePosition position = threadContext.getPosition(); Block tmpBlock = ArgsUtil.beginCallArgs(runtime); IRubyObject recv = null; try { recv = eval(iVisited.getIterNode()); } finally { threadContext.setPosition(position); ArgsUtil.endCallArgs(runtime, tmpBlock); } result = recv.getInternalClass().call(recv, "each", null, CallType.NORMAL); return; } catch (RetryJump rExcptn) { } } /* } catch (ReturnJump rExcptn) { result = rExcptn.getReturnValue(); */ } catch (BreakJump bExcptn) { // result = runtime.getNil(); throw new ReturnJump(runtime.getNil()); } finally { runtime.getIterStack().pop(); runtime.getBlockStack().pop(); } }
|
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/2498daa752f173b4b6559c0df4a40f716bdc23d7/EvaluateVisitor.java/clean/org/jruby/evaluator/EvaluateVisitor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
31058,
12,
31058,
277,
30019,
13,
288,
3639,
2650,
1042,
18,
588,
1768,
2624,
7675,
6206,
12,
77,
30019,
18,
588,
1537,
907,
9334,
394,
18176,
1305,
12,
77,
30019,
18,
588,
2250,
907,
1435,
3631,
365,
1769,
3639,
2650,
1042,
18,
588,
2360,
2624,
7675,
6206,
12,
2360,
18,
11844,
67,
3670,
1769,
3639,
775,
288,
5411,
1323,
261,
3767,
13,
288,
7734,
775,
288,
10792,
467,
1830,
2555,
1754,
273,
2650,
1042,
18,
588,
2555,
5621,
10792,
3914,
1853,
1768,
273,
6634,
1304,
18,
10086,
1477,
2615,
12,
9448,
1769,
10792,
15908,
10340,
921,
10665,
273,
446,
31,
10792,
775,
288,
13491,
10665,
273,
5302,
12,
77,
30019,
18,
588,
2360,
907,
10663,
10792,
289,
3095,
288,
13491,
2650,
1042,
18,
542,
2555,
12,
3276,
1769,
13491,
6634,
1304,
18,
409,
1477,
2615,
12,
9448,
16,
1853,
1768,
1769,
10792,
289,
10792,
563,
273,
10665,
18,
588,
3061,
797,
7675,
1991,
12,
18334,
16,
315,
13798,
3113,
446,
16,
3049,
559,
18,
15480,
1769,
10792,
327,
31,
7734,
289,
1044,
261,
7539,
26743,
436,
29924,
337,
82,
13,
288,
7734,
289,
5411,
289,
3639,
1748,
289,
1044,
261,
990,
26743,
436,
29924,
337,
82,
13,
288,
5411,
563,
273,
436,
29924,
337,
82,
18,
588,
19092,
5621,
1195,
3639,
289,
1044,
261,
7634,
26743,
324,
29924,
337,
82,
13,
288,
5411,
368,
563,
273,
3099,
18,
588,
12616,
5621,
6647,
563,
273,
3099,
18,
588,
12616,
5621,
3639,
289,
3095,
288,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
31058,
12,
31058,
277,
30019,
13,
288,
3639,
2650,
1042,
18,
588,
1768,
2624,
7675,
6206,
12,
77,
30019,
18,
588,
1537,
907,
9334,
394,
18176,
1305,
12,
77,
30019,
18,
588,
2250,
907,
1435,
3631,
365,
1769,
3639,
2650,
1042,
18,
588,
2360,
2624,
7675,
6206,
12,
2360,
18,
11844,
67,
3670,
1769,
3639,
775,
288,
5411,
1323,
261,
3767,
13,
288,
7734,
775,
288,
10792,
467,
1830,
2555,
1754,
273,
2650,
1042,
18,
588,
2555,
5621,
10792,
3914,
1853,
1768,
273,
6634,
1304,
18,
10086,
1477,
2615,
12,
9448,
1769,
10792,
15908,
10340,
921,
10665,
273,
446,
31,
10792,
775,
288,
13491,
10665,
273,
5302,
12,
77,
30019,
18,
588,
2360,
907,
10663,
2
] |
CompletionStatus.COMPLETED_NO );
|
CompletionStatus.COMPLETED_NO );
|
private void p_invoke() throws SystemException { binaryReply response = submit(); ReplyHeader rh = response.header.create_reply_header(); cdrBufInput input = response.getStream(); input.setOrb(orb); rh.read(input); // The stream must be aligned sinve v1.2, but only once. boolean align = response.header.version.since_inclusive(1, 2); switch (rh.reply_status) { case ReplyHeader.NO_EXCEPTION : NamedValue arg; // Read return value, if set. if (m_result != null) { if (align) { input.align(8); align = false; } m_result.value().read_value(input, m_result.value().type()); } // Read returned parameters, if set. if (m_args != null) for (int i = 0; i < m_args.count(); i++) { try { arg = m_args.item(i); // Both ARG_INOUT and ARG_OUT have this binary flag set. if ((arg.flags() & ARG_OUT.value) != 0) { if (align) { input.align(8); align = false; } arg.value().read_value(input, arg.value().type()); } } catch (Bounds ex) { Unexpected.error(ex); } } break; case ReplyHeader.SYSTEM_EXCEPTION : if (align) { input.align(8); align = false; } SystemException exception = ObjectCreator.readSystemException(input); m_environment.exception(exception); throw exception; case ReplyHeader.USER_EXCEPTION : if (align) { input.align(8); align = false; } // Prepare an Any that will hold the exception. gnuAny exc = new gnuAny(); exc.insert_Streamable(new streamReadyHolder(input)); UnknownUserException unuex = new UnknownUserException(exc); m_environment.exception(unuex); break; case ReplyHeader.LOCATION_FORWARD_PERM : case ReplyHeader.LOCATION_FORWARD : if (response.header.version.since_inclusive(1, 2)) input.align(8); IOR forwarded = new IOR(); try { forwarded._read_no_endian(input); } catch (IOException ex) { new MARSHAL("Cant read forwarding info", 5103, CompletionStatus.COMPLETED_NO ); } setIor(forwarded); // Repeat with the forwarded information. p_invoke(); return; default : throw new MARSHAL("Unknow reply status", 8100 + rh.reply_status, CompletionStatus.COMPLETED_NO ); } }
|
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/0c6db14fe37c570414a6f9d9ea41538675363ecc/gnuRequest.java/buggy/gnu/CORBA/gnuRequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
293,
67,
14407,
1435,
1171,
1216,
26731,
225,
288,
565,
3112,
7817,
766,
273,
4879,
5621,
565,
16202,
1864,
6259,
273,
766,
18,
3374,
18,
2640,
67,
10629,
67,
3374,
5621,
565,
276,
3069,
5503,
1210,
810,
273,
766,
18,
588,
1228,
5621,
565,
810,
18,
542,
1162,
70,
12,
16640,
1769,
565,
6259,
18,
896,
12,
2630,
1769,
565,
368,
1021,
1407,
1297,
506,
13939,
5367,
537,
331,
21,
18,
22,
16,
1496,
1338,
3647,
18,
565,
1250,
5689,
273,
766,
18,
3374,
18,
1589,
18,
9256,
67,
267,
9173,
12,
21,
16,
576,
1769,
565,
1620,
261,
30138,
18,
10629,
67,
2327,
13,
1377,
288,
3639,
648,
16202,
1864,
18,
3417,
67,
12658,
294,
1850,
9796,
620,
1501,
31,
1850,
368,
2720,
327,
460,
16,
309,
444,
18,
1850,
309,
261,
81,
67,
2088,
480,
446,
13,
5411,
288,
2868,
309,
261,
7989,
13,
7734,
288,
5375,
810,
18,
7989,
12,
28,
1769,
5375,
5689,
273,
629,
31,
7734,
289,
2868,
312,
67,
2088,
18,
1132,
7675,
896,
67,
1132,
12,
2630,
16,
312,
67,
2088,
18,
1132,
7675,
723,
10663,
5411,
289,
1850,
368,
2720,
2106,
1472,
16,
309,
444,
18,
1850,
309,
261,
81,
67,
1968,
480,
446,
13,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
312,
67,
1968,
18,
1883,
5621,
277,
27245,
2868,
288,
7734,
775,
5375,
288,
10792,
1501,
273,
312,
67,
1968,
18,
1726,
12,
77,
1769,
10792,
368,
19118,
13984,
67,
706,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
293,
67,
14407,
1435,
1171,
1216,
26731,
225,
288,
565,
3112,
7817,
766,
273,
4879,
5621,
565,
16202,
1864,
6259,
273,
766,
18,
3374,
18,
2640,
67,
10629,
67,
3374,
5621,
565,
276,
3069,
5503,
1210,
810,
273,
766,
18,
588,
1228,
5621,
565,
810,
18,
542,
1162,
70,
12,
16640,
1769,
565,
6259,
18,
896,
12,
2630,
1769,
565,
368,
1021,
1407,
1297,
506,
13939,
5367,
537,
331,
21,
18,
22,
16,
1496,
1338,
3647,
18,
565,
1250,
5689,
273,
766,
18,
3374,
18,
1589,
18,
9256,
67,
267,
9173,
12,
21,
16,
576,
1769,
565,
1620,
261,
30138,
18,
10629,
67,
2327,
13,
1377,
288,
3639,
648,
16202,
1864,
18,
3417,
67,
12658,
294,
2
] |
}else{ rsq = ((PairwiseLinkage)dpTable.getLDStats(v1Index, v2Index)).getRSquared();
|
if(pl == null) { rsq = 0; } else { rsq =pl.getRSquared();
|
public LocusCorrelation getCorrelation(VariantSequence v1, VariantSequence v2) { if(v1 == v2) { return new LocusCorrelation(null,1); } if (v1 instanceof SNP && v2 instanceof SNP){ //we are comparing two snps int v1Index = ((Integer)indicesByVarSeq.get(v1)).intValue(); int v2Index = ((Integer)indicesByVarSeq.get(v2)).intValue(); double rsq; if (v1Index > v2Index){ rsq =((PairwiseLinkage)dpTable.getLDStats(v2Index, v1Index)).getRSquared(); }else{ rsq = ((PairwiseLinkage)dpTable.getLDStats(v1Index, v2Index)).getRSquared(); } LocusCorrelation lc = new LocusCorrelation(null,rsq); return lc; }else{ //we are comparing a snp vs. a block SNP theSNP; Block theBlock; if (v1 instanceof SNP){ theSNP = (SNP) v1; theBlock = (Block) v2; }else{ theSNP = (SNP) v2; theBlock = (Block) v1; } Comparison c = new Comparison(theSNP, theBlock); if (lcByComparison.containsKey(c)){ return (LocusCorrelation) lcByComparison.get(c); } Allele curBestAllele = null; double curBestRsq = 0; int[][] genos = new int[phasedCache.length][theBlock.getMarkerCount()+1]; for (int i = 0; i < phasedCache.length; i++){ //create a temporary set of mini hap genotypes with theSNP as the first marker and theBlock's markers as the rest genos[i][0] = phasedCache[i].getGeno()[((Integer)phasedCacheIndicesByVarSeq.get(theSNP)).intValue()]; for (int j = 1; j < theBlock.getMarkerCount()+1; j++){ genos[i][j] = phasedCache[i].getGeno()[((Integer)phasedCacheIndicesByVarSeq.get(theBlock.getSNP(j-1))).intValue()]; } } for (int i = 0; i < genos.length; i++){ double aa=0,ab=0,bb=0,ba=0; StringBuffer sb = new StringBuffer(); for (int j = 1; j < genos[i].length; j++){ sb.append(genos[i][j]); } String curHapStr = sb.toString(); for (int j = 0; j < genos.length; j++){ sb = new StringBuffer(); for (int k = 1; k < genos[j].length; k++){ sb.append(genos[j][k]); } String testHapStr = sb.toString(); if (genos[j][0] == genos[0][0]){ if (!curHapStr.equals(testHapStr)){ ab += phasedCache[j].getPercentage(); }else{ aa += phasedCache[j].getPercentage(); } }else{ if (!curHapStr.equals(testHapStr)){ bb += phasedCache[j].getPercentage(); }else{ ba += phasedCache[j].getPercentage(); } } } //p is snp's freq, q is hap's freq double p = aa+ab; double q = ba+aa; //round to 5 decimal places. double rsq = ((double)Math.round(100000*Math.pow((aa*bb - ab*ba),2)/(p*(1-p)*q*(1-q))))/100000; if (rsq > curBestRsq){ curBestAllele = new Allele(theBlock,curHapStr); curBestRsq = rsq; } } LocusCorrelation lc = new LocusCorrelation(curBestAllele, curBestRsq); lcByComparison.put(new Comparison(theSNP, theBlock),lc); return (lc); } }
|
51222 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51222/851a2a560298d973623200860baeaba398542c68/HaploviewAlleleCorrelator.java/buggy/edu/mit/wi/haploview/tagger/HaploviewAlleleCorrelator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2851,
407,
31685,
18399,
5488,
12,
9356,
4021,
331,
21,
16,
17122,
4021,
331,
22,
13,
288,
3639,
309,
12,
90,
21,
422,
331,
22,
13,
288,
5411,
327,
394,
2851,
407,
31685,
12,
2011,
16,
21,
1769,
3639,
289,
3639,
309,
261,
90,
21,
1276,
14204,
52,
597,
331,
22,
1276,
14204,
52,
15329,
5411,
368,
1814,
854,
17553,
2795,
4556,
1121,
5411,
509,
331,
21,
1016,
273,
14015,
4522,
13,
6836,
858,
1537,
6926,
18,
588,
12,
90,
21,
13,
2934,
474,
620,
5621,
5411,
509,
331,
22,
1016,
273,
14015,
4522,
13,
6836,
858,
1537,
6926,
18,
588,
12,
90,
22,
13,
2934,
474,
620,
5621,
5411,
1645,
3597,
85,
31,
5411,
309,
261,
90,
21,
1016,
405,
331,
22,
1016,
15329,
7734,
3597,
85,
273,
12443,
4154,
2460,
2098,
410,
13,
9295,
1388,
18,
588,
12069,
4195,
12,
90,
22,
1016,
16,
13491,
331,
21,
1016,
13,
2934,
588,
13225,
11903,
5621,
5411,
289,
12107,
95,
7734,
3597,
85,
273,
14015,
4154,
2460,
2098,
410,
13,
9295,
1388,
18,
588,
12069,
4195,
12,
90,
21,
1016,
16,
13491,
331,
22,
1016,
13,
2934,
588,
13225,
11903,
5621,
5411,
289,
5411,
2851,
407,
31685,
9109,
273,
394,
2851,
407,
31685,
12,
2011,
16,
5453,
85,
1769,
5411,
327,
9109,
31,
3639,
289,
12107,
95,
5411,
368,
1814,
854,
17553,
279,
28648,
6195,
18,
279,
1203,
5411,
14204,
52,
326,
13653,
52,
31,
5411,
3914,
326,
1768,
31,
5411,
309,
261,
90,
21,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2851,
407,
31685,
18399,
5488,
12,
9356,
4021,
331,
21,
16,
17122,
4021,
331,
22,
13,
288,
3639,
309,
12,
90,
21,
422,
331,
22,
13,
288,
5411,
327,
394,
2851,
407,
31685,
12,
2011,
16,
21,
1769,
3639,
289,
3639,
309,
261,
90,
21,
1276,
14204,
52,
597,
331,
22,
1276,
14204,
52,
15329,
5411,
368,
1814,
854,
17553,
2795,
4556,
1121,
5411,
509,
331,
21,
1016,
273,
14015,
4522,
13,
6836,
858,
1537,
6926,
18,
588,
12,
90,
21,
13,
2934,
474,
620,
5621,
5411,
509,
331,
22,
1016,
273,
14015,
4522,
13,
6836,
858,
1537,
6926,
18,
588,
12,
90,
22,
13,
2934,
474,
620,
5621,
5411,
1645,
3597,
85,
31,
5411,
309,
261,
2
] |
_mediaType = mediaType;
|
_mediaType = mediaType;
|
public void setMediaType( String mediaType ) { _mediaType = mediaType; }
|
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/cd53b656c8781337491709c662fe224c44d1ef7d/OutputFormat.java/buggy/src/org/apache/xml/serialize/OutputFormat.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
20870,
12,
514,
14740,
262,
565,
288,
202,
67,
5829,
559,
273,
14740,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
20870,
12,
514,
14740,
262,
565,
288,
202,
67,
5829,
559,
273,
14740,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public long getTimeCompleted();
|
long getTimeCompleted();
|
public long getTimeCompleted();
|
9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/edfbbd9ac4b0509913ee0d047a6b893c082271af/HappinessChangeEvent.java/clean/csmart/src/org/cougaar/tools/csmart/ldm/event/HappinessChangeEvent.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1525,
6135,
9556,
5621,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1525,
6135,
9556,
5621,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
clearMessageBox();
|
private void slideDown() { setIdleTime(0, false); slidingUp = false; slidingDown = true; clearMessageBox(); }
|
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/7f192cc2b55006876b142de3bc22ccaed9151cbf/ChatterBox2.java/clean/megamek/src/megamek/client/ChatterBox2.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
12701,
4164,
1435,
288,
202,
202,
542,
13834,
950,
12,
20,
16,
629,
1769,
202,
202,
2069,
10415,
1211,
273,
629,
31,
202,
202,
2069,
10415,
4164,
273,
638,
31,
202,
202,
8507,
27647,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
12701,
4164,
1435,
288,
202,
202,
542,
13834,
950,
12,
20,
16,
629,
1769,
202,
202,
2069,
10415,
1211,
273,
629,
31,
202,
202,
2069,
10415,
4164,
273,
638,
31,
202,
202,
8507,
27647,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
private void readFileIDs() throws IOException, BioException { fileIDToRAF = new RAF[5]; fileCount = 0; for (Iterator i = metaData.keys().iterator(); i.hasNext(); ) { String key = (String) i.next(); if (key.startsWith("fileid_")) { int indx = Integer.parseInt(key.substring("fileid_".length())); String fileLine = (String) metaData.getProperty(key); int tab = fileLine.indexOf("\t"); File file = new File(fileLine.substring(0, tab)); RAF raf = new RAF(file, "r"); long length = Long.parseLong(fileLine.substring(tab+1)); if (file.length() != length) { throw new BioException("File changed length: " + file); } if (indx >= fileCount) { // beyond end if (indx >= fileIDToRAF.length) { // beyond array end RAF[] tmpr = new RAF[indx]; System.arraycopy(fileIDToRAF, 0, tmpr, 0, fileIDToRAF.length); fileIDToRAF = tmpr; } fileCount = indx; } //System.out.println(indx + " " + file); fileIDToRAF[indx] = raf; } } }
|
50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/b0e8b4962e26363f7bd8c43891fc78d51340c5f3/BioStore.java/buggy/src/org/biojava/bio/program/indexdb/BioStore.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
6459,
896,
812,
5103,
1435,
15069,
14106,
16,
38,
1594,
503,
95,
768,
734,
774,
2849,
42,
33,
2704,
2849,
42,
63,
25,
15533,
768,
1380,
33,
20,
31,
1884,
12,
3198,
77,
33,
3901,
751,
18,
2452,
7675,
9838,
5621,
77,
18,
5332,
2134,
5621,
15329,
780,
856,
28657,
780,
13,
77,
18,
4285,
5621,
430,
12,
856,
18,
17514,
1190,
2932,
768,
350,
9548,
3719,
95,
474,
728,
92,
33,
4522,
18,
2670,
1702,
12,
856,
18,
28023,
2932,
768,
350,
9548,
18,
2469,
1435,
10019,
780,
768,
1670,
28657,
780,
13,
3901,
751,
18,
588,
1396,
12,
856,
1769,
474,
7032,
33,
768,
1670,
18,
31806,
31458,
88,
8863,
812,
768,
33,
2704,
812,
12,
768,
1670,
18,
28023,
12,
20,
16,
7032,
10019,
2849,
42,
13308,
33,
2704,
2849,
42,
12,
768,
10837,
86,
8863,
5748,
2469,
33,
3708,
18,
2670,
3708,
12,
768,
1670,
18,
28023,
12,
7032,
15,
21,
10019,
430,
12,
768,
18,
2469,
1435,
5,
33,
2469,
15329,
12849,
2704,
38,
1594,
503,
2932,
812,
6703,
2469,
2773,
15,
768,
1769,
97,
430,
12,
728,
92,
34,
33,
768,
1380,
15329,
759,
70,
17029,
409,
430,
12,
728,
92,
34,
33,
768,
734,
774,
2849,
42,
18,
2469,
15329,
759,
70,
17029,
1126,
409,
2849,
42,
8526,
16925,
683,
33,
2704,
2849,
42,
63,
728,
92,
15533,
3163,
18,
1126,
3530,
12,
768,
734,
774,
2849,
42,
16,
20,
16,
16925,
683,
16,
20,
16,
768,
734,
774,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
6459,
896,
812,
5103,
1435,
15069,
14106,
16,
38,
1594,
503,
95,
768,
734,
774,
2849,
42,
33,
2704,
2849,
42,
63,
25,
15533,
768,
1380,
33,
20,
31,
1884,
12,
3198,
77,
33,
3901,
751,
18,
2452,
7675,
9838,
5621,
77,
18,
5332,
2134,
5621,
15329,
780,
856,
28657,
780,
13,
77,
18,
4285,
5621,
430,
12,
856,
18,
17514,
1190,
2932,
768,
350,
9548,
3719,
95,
474,
728,
92,
33,
4522,
18,
2670,
1702,
12,
856,
18,
28023,
2932,
768,
350,
9548,
18,
2469,
1435,
10019,
780,
768,
1670,
28657,
780,
13,
3901,
751,
18,
588,
1396,
12,
856,
1769,
474,
7032,
33,
768,
1670,
18,
31806,
31458,
88,
8863,
812,
768,
33,
2704,
812,
12,
2
] |
||
newScanline*width, width);
|
newScanline*(width+pad), width); for (int i=0; i<pad; i++) { buf[newScanline*(width+pad) + width + i] = 0; }
|
public void save(String id, Image image, boolean last) throws FormatException, IOException { if (image == null) { throw new FormatException("Image is null"); } BufferedImage img = ImageTools.makeImage(image); // get the width and height of the image int width = img.getWidth(); int height = img.getHeight(); // retrieve pixel data for this plane byte[] buf = ImageTools.getPixels(img, width, height); // reorder the scanlines byte[] temp = buf; buf = new byte[temp.length]; int newScanline = height - 1; for (int oldScanline=0; oldScanline<height; oldScanline++) { System.arraycopy(temp, oldScanline*width, buf, newScanline*width, width); newScanline--; } if (!id.equals(currentId)) { // -- write the header -- offsets = new Vector(); currentId = id; out = new RandomAccessFile(id, "rw"); created = (int) System.currentTimeMillis(); numWritten++; // -- write the first header -- DataTools.writeReverseInt(out, 8); DataTools.writeString(out, "wide"); // -- write the first plane of pixel data (mdat) -- numBytes = buf.length; byteCountOffset = out.getFilePointer(); DataTools.writeReverseInt(out, numBytes + 8); DataTools.writeString(out, "mdat"); out.write(buf); offsets.add(new Integer(16)); } else { // update the number of pixel bytes written int planeOffset = numBytes; numBytes += buf.length; out.seek(byteCountOffset); DataTools.writeReverseInt(out, numBytes + 8); // write this plane's pixel data out.seek(out.length()); out.write(buf); offsets.add(new Integer(planeOffset + 16)); numWritten++; } if (last) { int duration = numWritten * 50; int timeScale = 100; // -- write moov atom -- int atomLength = 685 + 8*numWritten; DataTools.writeReverseInt(out, atomLength); DataTools.writeString(out, "moov"); // -- write mvhd atom -- DataTools.writeReverseInt(out, 108); DataTools.writeString(out, "mvhd"); DataTools.writeReverseShort(out, 0); // version DataTools.writeReverseShort(out, 0); // flags DataTools.writeReverseInt(out, created); // creation time DataTools.writeReverseInt(out, (int) System.currentTimeMillis()); DataTools.writeReverseInt(out, timeScale); // time scale DataTools.writeReverseInt(out, duration); // duration out.write(new byte[] {0, 1, 0, 0}); // preferred rate & volume out.write(new byte[] {0, -1, 0, 0, 0, 0, 0, 0, 0, 0}); // reserved // 3x3 matrix - unsure of significance DataTools.writeReverseInt(out, 1); DataTools.writeReverseInt(out, 0); DataTools.writeReverseInt(out, 0); DataTools.writeReverseInt(out, 0); DataTools.writeReverseInt(out, 1); DataTools.writeReverseInt(out, 0); DataTools.writeReverseInt(out, 0); DataTools.writeReverseInt(out, 0); DataTools.writeReverseInt(out, 16384); DataTools.writeReverseShort(out, 0); // not sure what this is DataTools.writeReverseInt(out, 0); // preview duration DataTools.writeReverseInt(out, 0); // preview time DataTools.writeReverseInt(out, 0); // poster time DataTools.writeReverseInt(out, 0); // selection time DataTools.writeReverseInt(out, 0); // selection duration DataTools.writeReverseInt(out, 0); // current time DataTools.writeReverseInt(out, 2); // next track's id // -- write trak atom -- atomLength -= 116; DataTools.writeReverseInt(out, atomLength); DataTools.writeString(out, "trak"); // -- write tkhd atom -- DataTools.writeReverseInt(out, 92); DataTools.writeString(out, "tkhd"); DataTools.writeReverseShort(out, 0); // version DataTools.writeReverseShort(out, 15); // flags DataTools.writeReverseInt(out, created); // creation time DataTools.writeReverseInt(out, (int) System.currentTimeMillis()); DataTools.writeReverseInt(out, 1); // track id DataTools.writeReverseInt(out, 0); // reserved DataTools.writeReverseInt(out, duration); // duration DataTools.writeReverseInt(out, 0); // reserved DataTools.writeReverseInt(out, 0); // reserved DataTools.writeReverseShort(out, 0); // reserved DataTools.writeReverseInt(out, 0); // unknown // 3x3 matrix - unsure of significance DataTools.writeReverseInt(out, 1); DataTools.writeReverseInt(out, 0); DataTools.writeReverseInt(out, 0); DataTools.writeReverseInt(out, 0); DataTools.writeReverseInt(out, 1); DataTools.writeReverseInt(out, 0); DataTools.writeReverseInt(out, 0); DataTools.writeReverseInt(out, 0); DataTools.writeReverseInt(out, 16384); DataTools.writeReverseInt(out, width); // image width DataTools.writeReverseInt(out, height); // image height DataTools.writeReverseShort(out, 0); // reserved // -- write edts atom -- DataTools.writeReverseInt(out, 36); DataTools.writeString(out, "edts"); // -- write elst atom -- DataTools.writeReverseInt(out, 28); DataTools.writeString(out, "elst"); DataTools.writeReverseShort(out, 0); // version DataTools.writeReverseShort(out, 0); // flags DataTools.writeReverseInt(out, 1); // number of entries in the table DataTools.writeReverseInt(out, duration); // duration DataTools.writeReverseShort(out, 0); // time DataTools.writeReverseInt(out, 1); // rate DataTools.writeReverseShort(out, 0); // unknown // -- write mdia atom -- atomLength -= 136; DataTools.writeReverseInt(out, atomLength); DataTools.writeString(out, "mdia"); // -- write mdhd atom -- DataTools.writeReverseInt(out, 32); DataTools.writeString(out, "mdhd"); DataTools.writeReverseShort(out, 0); // version DataTools.writeReverseShort(out, 0); // flags DataTools.writeReverseInt(out, created); // creation time DataTools.writeReverseInt(out, (int) System.currentTimeMillis()); DataTools.writeReverseInt(out, timeScale); // time scale DataTools.writeReverseInt(out, duration); // duration DataTools.writeReverseShort(out, 0); // language DataTools.writeReverseShort(out, 0); // quality // -- write hdlr atom -- DataTools.writeReverseInt(out, 58); DataTools.writeString(out, "hdlr"); DataTools.writeReverseShort(out, 0); // version DataTools.writeReverseShort(out, 0); // flags DataTools.writeString(out, "mhlr"); DataTools.writeString(out, "vide"); DataTools.writeString(out, "appl"); out.write(new byte[] {16, 0, 0, 0, 0, 1, 1, 11, 25}); DataTools.writeString(out, "Apple Video Media Handler"); // -- write minf atom -- atomLength -= 98; DataTools.writeReverseInt(out, atomLength); DataTools.writeString(out, "minf"); // -- write vmhd atom -- DataTools.writeReverseInt(out, 20); DataTools.writeString(out, "vmhd"); DataTools.writeReverseShort(out, 0); // version DataTools.writeReverseShort(out, 1); // flags DataTools.writeReverseShort(out, 64); // graphics mode DataTools.writeReverseShort(out, 32768); // opcolor 1 DataTools.writeReverseShort(out, 32768); // opcolor 2 DataTools.writeReverseShort(out, 32768); // opcolor 3 // -- write hdlr atom -- DataTools.writeReverseInt(out, 57); DataTools.writeString(out, "hdlr"); DataTools.writeReverseShort(out, 0); // version DataTools.writeReverseShort(out, 0); // flags DataTools.writeString(out, "dhlr"); DataTools.writeString(out, "alis"); DataTools.writeString(out, "appl"); out.write(new byte[] {16, 0, 0, 1, 0, 1, 1, 31, 24}); DataTools.writeString(out, "Apple Alias Data Handler"); // -- write dinf atom -- DataTools.writeReverseInt(out, 36); DataTools.writeString(out, "dinf"); // -- write dref atom -- DataTools.writeReverseInt(out, 28); DataTools.writeString(out, "dref"); DataTools.writeReverseShort(out, 0); // version DataTools.writeReverseShort(out, 0); // flags DataTools.writeReverseShort(out, 0); // version 2 DataTools.writeReverseShort(out, 1); // flags 2 out.write(new byte[] {0, 0, 0, 12}); DataTools.writeString(out, "alis"); DataTools.writeReverseShort(out, 0); // version 3 DataTools.writeReverseShort(out, 1); // flags 3 // -- write stbl atom -- atomLength -= 121; DataTools.writeReverseInt(out, atomLength); DataTools.writeString(out, "stbl"); // -- write stsd atom -- DataTools.writeReverseInt(out, 118); DataTools.writeString(out, "stsd"); DataTools.writeReverseShort(out, 0); // version DataTools.writeReverseShort(out, 0); // flags DataTools.writeReverseInt(out, 1); // number of entries in the table out.write(new byte[] {0, 0, 0, 102}); DataTools.writeString(out, "raw "); // codec out.write(new byte[] {0, 0, 0, 0, 0, 0}); // reserved DataTools.writeReverseShort(out, 1); // data reference DataTools.writeReverseShort(out, 1); // version DataTools.writeReverseShort(out, 1); // revision DataTools.writeString(out, "appl"); DataTools.writeReverseInt(out, 0); // temporal quality DataTools.writeReverseInt(out, 768); // spatial quality DataTools.writeReverseShort(out, width); // image width DataTools.writeReverseShort(out, height); // image height out.write(new byte[] {0, 72, 0, 0}); // horizontal dpi out.write(new byte[] {0, 72, 0, 0}); // vertical dpi DataTools.writeReverseInt(out, 0); // data size DataTools.writeReverseShort(out, 1); // frames per sample DataTools.writeReverseShort(out, 12); // length of compressor name DataTools.writeString(out, "Uncompressed"); // compressor name DataTools.writeReverseInt(out, 8); // unknown DataTools.writeReverseInt(out, 8); // unknown DataTools.writeReverseInt(out, 8); // unknown DataTools.writeReverseInt(out, 8); // unknown DataTools.writeReverseInt(out, 8); // unknown DataTools.writeReverseShort(out, 8); // bits per pixel DataTools.writeReverseInt(out, 65535); // ctab ID out.write(new byte[] {12, 103, 97, 108}); // gamma out.write(new byte[] {97, 1, -52, -52, 0, 0, 0, 0}); // unknown // -- write stts atom -- DataTools.writeReverseInt(out, 24); DataTools.writeString(out, "stts"); DataTools.writeReverseShort(out, 0); // version DataTools.writeReverseShort(out, 0); // flags DataTools.writeReverseInt(out, 1); // number of entries in the table DataTools.writeReverseInt(out, numWritten); // number of planes DataTools.writeReverseInt(out, 50); // duration // -- write stsc atom -- DataTools.writeReverseInt(out, 28); DataTools.writeString(out, "stsc"); DataTools.writeReverseShort(out, 0); // version DataTools.writeReverseShort(out, 0); // flags DataTools.writeReverseInt(out, 1); // number of entries in the table DataTools.writeReverseInt(out, 1); // chunk DataTools.writeReverseInt(out, 1); // samples DataTools.writeReverseInt(out, 1); // id // -- write stsz atom -- DataTools.writeReverseInt(out, 20 + 4*numWritten); DataTools.writeString(out, "stsz"); DataTools.writeReverseShort(out, 0); // version DataTools.writeReverseShort(out, 0); // flags DataTools.writeReverseInt(out, 0); // sample size DataTools.writeReverseInt(out, numWritten); // number of planes for (int i=0; i<numWritten; i++) { DataTools.writeReverseInt(out, width*height); // sample size } // -- write stco atom -- DataTools.writeReverseInt(out, 16 + 4*numWritten); DataTools.writeString(out, "stco"); DataTools.writeReverseShort(out, 0); // version DataTools.writeReverseShort(out, 0); // flags DataTools.writeReverseInt(out, numWritten); // number of planes for (int i=0; i<numWritten; i++) { // write the plane offset DataTools.writeReverseInt(out, ((Integer) offsets.get(i)).intValue()); } out.close(); } }
|
49800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49800/449c40b5fa95264737791ccad22a0b1909e422de/QTWriter.java/buggy/loci/formats/QTWriter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1923,
12,
780,
612,
16,
3421,
1316,
16,
1250,
1142,
13,
565,
1216,
4077,
503,
16,
1860,
225,
288,
565,
309,
261,
2730,
422,
446,
13,
288,
1377,
604,
394,
4077,
503,
2932,
2040,
353,
446,
8863,
565,
289,
565,
12362,
3774,
273,
3421,
10348,
18,
6540,
2040,
12,
2730,
1769,
565,
368,
336,
326,
1835,
471,
2072,
434,
326,
1316,
565,
509,
1835,
273,
3774,
18,
588,
2384,
5621,
565,
509,
2072,
273,
3774,
18,
588,
2686,
5621,
565,
368,
4614,
4957,
501,
364,
333,
11017,
565,
1160,
8526,
1681,
273,
3421,
10348,
18,
588,
18079,
12,
6081,
16,
1835,
16,
2072,
1769,
565,
368,
19427,
326,
4135,
3548,
565,
1160,
8526,
1906,
273,
1681,
31,
565,
1681,
273,
394,
1160,
63,
5814,
18,
2469,
15533,
565,
509,
394,
7972,
1369,
273,
2072,
300,
404,
31,
565,
364,
261,
474,
1592,
7972,
1369,
33,
20,
31,
1592,
7972,
1369,
32,
4210,
31,
1592,
7972,
1369,
27245,
288,
1377,
2332,
18,
1126,
3530,
12,
5814,
16,
1592,
7972,
1369,
14,
2819,
16,
1681,
16,
3639,
394,
7972,
1369,
21556,
2819,
15,
6982,
3631,
1835,
1769,
565,
364,
261,
474,
277,
33,
20,
31,
277,
32,
6982,
31,
277,
27245,
288,
1681,
63,
2704,
7972,
1369,
21556,
2819,
15,
6982,
13,
397,
1835,
397,
277,
65,
273,
374,
31,
289,
4202,
394,
7972,
1369,
413,
31,
565,
289,
565,
309,
16051,
350,
18,
14963,
12,
2972,
548,
3719,
288,
1377,
368,
1493,
1045,
326,
1446,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1923,
12,
780,
612,
16,
3421,
1316,
16,
1250,
1142,
13,
565,
1216,
4077,
503,
16,
1860,
225,
288,
565,
309,
261,
2730,
422,
446,
13,
288,
1377,
604,
394,
4077,
503,
2932,
2040,
353,
446,
8863,
565,
289,
565,
12362,
3774,
273,
3421,
10348,
18,
6540,
2040,
12,
2730,
1769,
565,
368,
336,
326,
1835,
471,
2072,
434,
326,
1316,
565,
509,
1835,
273,
3774,
18,
588,
2384,
5621,
565,
509,
2072,
273,
3774,
18,
588,
2686,
5621,
565,
368,
4614,
4957,
501,
364,
333,
11017,
565,
1160,
8526,
1681,
273,
3421,
10348,
18,
588,
18079,
12,
6081,
16,
1835,
16,
2072,
1769,
565,
368,
19427,
326,
4135,
3548,
565,
1160,
8526,
1906,
273,
1681,
2
] |
public List getPomsScanningBundleArchivesFolder() {
|
public List getPomsScanningBundleArchivesFolder() throws IOException {
|
public List getPomsScanningBundleArchivesFolder() { String urlAddress = getURLForBundlesArchives(); return getPomProxies(urlAddress, HTML_IWBAR_START_PATTERN); }
|
10079 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10079/61612928ac2d403c43d3a5db4187c42574fff161/RepositoryBrowser.java/buggy/src/java/com/idega/manager/business/RepositoryBrowser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
987,
1689,
25390,
1541,
10903,
3405,
12269,
3606,
3899,
1435,
288,
202,
202,
780,
880,
1887,
273,
19341,
1290,
16151,
12269,
3606,
5621,
202,
202,
2463,
1689,
362,
21488,
12,
718,
1887,
16,
3982,
67,
45,
59,
21908,
67,
7570,
67,
10831,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
987,
1689,
25390,
1541,
10903,
3405,
12269,
3606,
3899,
1435,
288,
202,
202,
780,
880,
1887,
273,
19341,
1290,
16151,
12269,
3606,
5621,
202,
202,
2463,
1689,
362,
21488,
12,
718,
1887,
16,
3982,
67,
45,
59,
21908,
67,
7570,
67,
10831,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
throw new Exception("Column " + newColumn.getName() + " in new table has NOT NULL " + "constraint, however this column " + "did not exist before and there is " + "no null replacement for this " + "column");
|
String message = "Column " + newColumn.getName() + " in new table has NOT NULL " + "constraint, however this column " + "did not exist before and there is " + "no null replacement for this " + "column"; if (m_ignore_notnull) { m_out.println(message + ". Ignoring due to '-N'"); } else { throw new Exception(message); }
|
public void changeTable(String table, List oldColumns, List newColumns) throws Exception { Statement st = m_dbconnection.createStatement(); TreeMap columnChanges = new TreeMap(); String[] oldColumnNames = new String[oldColumns.size()]; int i; Iterator j; if (m_changed.contains(table)) { return; } m_changed.add(table); m_out.println("SCHEMA DOES NOT MATCH"); m_out.println(" - differences:"); // XXX This doesn't check for old column rows that don't exist // in newColumns. for (j = newColumns.iterator(); j.hasNext(); ) { Column newColumn = (Column) j.next(); Column oldColumn = findColumn(oldColumns, newColumn.getName()); if (oldColumn == null || !newColumn.equals(oldColumn)) { m_out.println(" - column \"" + newColumn.getName() + "\" is different"); } if (!columnChanges.containsKey(newColumn.getName())) { columnChanges.put(newColumn.getName(), new ColumnChange()); } ColumnChange columnChange = (ColumnChange) columnChanges.get(newColumn.getName()); columnChange.setColumn(newColumn); /* * If the new column has a NOT NULL constraint, set a null * replace value for the column. Throw an exception if it * is possible for null data to be inserted into the new * column. This would happen if there is not a null * replacement and the column either didn't exist before or * it did NOT have the NOT NULL constraint before. */ if (newColumn.isNotNull()) { if (newColumn.getName().equals("eventsource")) { columnChange.setNullReplace("OpenNMS.Eventd"); } else if (newColumn.getName().equals("svcregainedeventid") && table.equals("outages")) { columnChange.setNullReplace(new Integer(0)); } else if (newColumn.getName().equals("eventid") && table.equals("notifications")) { columnChange.setNullReplace(new Integer(0)); } else if (oldColumn == null) { throw new Exception("Column " + newColumn.getName() + " in new table has NOT NULL " + "constraint, however this column " + "did not exist before and there is " + "no null replacement for this " + "column"); } else if (!oldColumn.isNotNull()) { throw new Exception("Column " + newColumn.getName() + " in new table has NOT NULL " + "constraint, however this column " + "did not have the NOT NULL " + "constraint before and there is " + "no null replacement for this " + "column"); } } } i = 0; for (j = oldColumns.iterator(); j.hasNext(); i++) { Column oldColumn = (Column) j.next(); oldColumnNames[i] = oldColumn.getName(); if (columnChanges.containsKey(oldColumn.getName())) { ColumnChange columnChange = (ColumnChange) columnChanges.get(oldColumn.getName()); Column newColumn = (Column) columnChange.getColumn(); if (newColumn.getType().indexOf("timestamp") != -1) { columnChange.setUpgradeTimestamp(true); } } else { m_out.println(" * WARNING: column \"" + oldColumn.getName() + "\" exists in the " + "database but is not in the new schema. " + "REMOVING COLUMN"); } } String tmpTable = table + "_old_" + System.currentTimeMillis(); try { if (tableExists(tmpTable)) { st.execute("DROP TABLE " + tmpTable + m_cascade); } m_out.print(" - creating temporary table... "); st.execute("CREATE TABLE " + tmpTable + " AS SELECT " + join(", ", oldColumnNames) + " FROM " + table); m_out.println("done"); st.execute("DROP TABLE " + table + m_cascade); m_out.print(" - creating new '" + table + "' table... "); st.execute("CREATE TABLE " + table + "(" + getTableFromSQL(table) + ")"); m_out.println("done"); transformData(table, tmpTable, columnChanges, oldColumnNames); st.execute("GRANT ALL ON " + table + " TO " + m_user); m_out.print(" - optimizing table " + table + "... "); st.execute("VACUUM ANALYZE " + table); m_out.println("DONE"); } catch (Exception e) { try { m_dbconnection.commit(); m_dbconnection.setAutoCommit(true); } catch (Exception e_ignore) { // ignore } try { if (tableExists(table)) { st.execute("DROP TABLE " + table + m_cascade); } st.execute("CREATE TABLE " + table + " AS SELECT " + join(", ", oldColumnNames) + " FROM " + tmpTable); } catch (SQLException se) { throw new Exception("Got SQLException while trying to " + "revert table changes due to original " + "error: " + e + "\n" + "SQLException while reverting table: " + se, e); } m_out.println("FAILED! Old data restored, however indexes and " + "constraints on this table were not re-added"); throw e; } // We don't care if dropping the tmp table fails since we've // completed copying it, so it's outside of the try/catch block above. st.execute("DROP TABLE " + tmpTable); m_out.println(" - completed updating table... "); }
|
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/0059e1b658e7fd6bb858bc954708043cfa4b4b00/Installer.java/buggy/src/install/org/opennms/install/Installer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2549,
1388,
12,
780,
1014,
16,
987,
1592,
3380,
16,
987,
394,
3380,
13,
202,
15069,
1185,
288,
202,
3406,
384,
273,
312,
67,
1966,
4071,
18,
2640,
3406,
5621,
202,
2471,
863,
1057,
7173,
273,
394,
16381,
5621,
202,
780,
8526,
1592,
20718,
273,
394,
514,
63,
1673,
3380,
18,
1467,
1435,
15533,
202,
474,
277,
31,
202,
3198,
525,
31,
4202,
202,
430,
261,
81,
67,
6703,
18,
12298,
12,
2121,
3719,
288,
202,
565,
327,
31,
202,
97,
202,
81,
67,
6703,
18,
1289,
12,
2121,
1769,
202,
81,
67,
659,
18,
8222,
2932,
14233,
5467,
3991,
4269,
16585,
8863,
202,
81,
67,
659,
18,
8222,
2932,
565,
300,
16440,
2773,
1769,
202,
759,
11329,
1220,
3302,
1404,
866,
364,
1592,
1057,
2595,
716,
2727,
1404,
1005,
202,
759,
377,
316,
394,
3380,
18,
202,
1884,
261,
78,
273,
394,
3380,
18,
9838,
5621,
525,
18,
5332,
2134,
5621,
262,
288,
202,
565,
4753,
394,
1494,
273,
261,
1494,
13,
525,
18,
4285,
5621,
202,
565,
4753,
1592,
1494,
273,
1104,
1494,
12,
1673,
3380,
16,
25083,
225,
394,
1494,
18,
17994,
10663,
202,
565,
309,
261,
1673,
1494,
422,
446,
747,
401,
2704,
1494,
18,
14963,
12,
1673,
1494,
3719,
288,
202,
202,
81,
67,
659,
18,
8222,
2932,
1377,
300,
1057,
11843,
397,
394,
1494,
18,
17994,
1435,
397,
6862,
282,
7023,
353,
3775,
8863,
202,
565,
289,
202,
565,
309,
16051,
2827,
7173,
18,
12298,
653,
12,
2704,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2549,
1388,
12,
780,
1014,
16,
987,
1592,
3380,
16,
987,
394,
3380,
13,
202,
15069,
1185,
288,
202,
3406,
384,
273,
312,
67,
1966,
4071,
18,
2640,
3406,
5621,
202,
2471,
863,
1057,
7173,
273,
394,
16381,
5621,
202,
780,
8526,
1592,
20718,
273,
394,
514,
63,
1673,
3380,
18,
1467,
1435,
15533,
202,
474,
277,
31,
202,
3198,
525,
31,
4202,
202,
430,
261,
81,
67,
6703,
18,
12298,
12,
2121,
3719,
288,
202,
565,
327,
31,
202,
97,
202,
81,
67,
6703,
18,
1289,
12,
2121,
1769,
202,
81,
67,
659,
18,
8222,
2932,
14233,
5467,
3991,
4269,
16585,
8863,
202,
81,
67,
659,
18,
8222,
2932,
565,
300,
16440,
2773,
1769,
202,
2
] |
String ticketId = initiateAuthentication(attributes, null, null, false);
|
String redirectURL = initiateAuthentication(attributes, "http: String ticketId = redirectURL.substring(redirectURL.lastIndexOf("id=")+3);
|
public String directNonInteractiveAuthentication(String[] attributes, String username, String password) throws RemoteException { // Basic parameter check. if (username == null) throw new RemoteException("User name cannot be NULL"); if (password == null) throw new RemoteException("Password cannot be NULL"); try { // Create session and check the client identity. String ticketId = initiateAuthentication(attributes, null, null, false); Session session = sessionStore.getSessionLogin(ticketId); validateClient(ctx.getUserPrincipal(), session); // Is the client allowed to do direct authentication at all? if (!session.getWebService().allowDirectAuthentication()) { log.warning("Web service '"+ctx.getUserPrincipal()+"' not allowed to use direct authentication"); throw new RemoteException("Web service '"+ctx.getUserPrincipal()+"' not allowed to use direct authentication"); } // Create credentials and do authentication. if (session.authenticateUser(new Credentials(username, password))) return session.getID(); else return null; } catch (BackendException e) { log.severe("BackendException caught and re-thrown as RemoteException"); throw new RemoteException("BackendException caught and re-thrown as RemoteException"); } catch (SessionException e) { log.severe("SessionException caught and re-thrown as RemoteException"); throw new RemoteException("SessionException caught and re-thrown as RemoteException"); } }
|
1637 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1637/fc5cce66d6d89350458c3cb0836559f57e8e4805/AuthenticationImpl.java/clean/moria/src/no/feide/moria/service/AuthenticationImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2657,
3989,
26442,
6492,
12,
780,
8526,
1677,
16,
514,
2718,
16,
514,
2201,
13,
565,
1216,
18361,
288,
377,
202,
565,
202,
377,
202,
759,
7651,
1569,
866,
18,
377,
202,
430,
261,
5053,
422,
446,
13,
377,
202,
202,
12849,
394,
18361,
2932,
1299,
508,
2780,
506,
3206,
8863,
377,
202,
430,
261,
3664,
422,
446,
13,
377,
202,
202,
12849,
394,
18361,
2932,
3913,
2780,
506,
3206,
8863,
377,
202,
377,
202,
698,
288,
377,
202,
202,
759,
1788,
1339,
471,
866,
326,
1004,
4215,
18,
540,
202,
780,
9322,
548,
273,
18711,
6492,
12,
4350,
16,
446,
16,
446,
16,
629,
1769,
377,
202,
202,
2157,
1339,
273,
1339,
2257,
18,
588,
2157,
5358,
12,
16282,
548,
1769,
377,
202,
202,
5662,
1227,
12,
5900,
18,
588,
1299,
9155,
9334,
1339,
1769,
377,
202,
202,
759,
2585,
326,
1004,
2935,
358,
741,
2657,
5107,
622,
777,
35,
377,
202,
202,
430,
16051,
3184,
18,
588,
31946,
7675,
5965,
5368,
6492,
10756,
288,
377,
1082,
202,
1330,
18,
8551,
2932,
4079,
1156,
2119,
15,
5900,
18,
588,
1299,
9155,
1435,
15,
5187,
486,
2935,
358,
999,
2657,
5107,
8863,
377,
1082,
202,
12849,
394,
18361,
2932,
4079,
1156,
2119,
15,
5900,
18,
588,
1299,
9155,
1435,
15,
5187,
486,
2935,
358,
999,
2657,
5107,
8863,
377,
202,
202,
97,
377,
1082,
377,
202,
202,
759,
1788,
4448,
471,
741,
5107,
18,
377,
202,
202,
430,
261,
3184,
18,
22035,
1299,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2657,
3989,
26442,
6492,
12,
780,
8526,
1677,
16,
514,
2718,
16,
514,
2201,
13,
565,
1216,
18361,
288,
377,
202,
565,
202,
377,
202,
759,
7651,
1569,
866,
18,
377,
202,
430,
261,
5053,
422,
446,
13,
377,
202,
202,
12849,
394,
18361,
2932,
1299,
508,
2780,
506,
3206,
8863,
377,
202,
430,
261,
3664,
422,
446,
13,
377,
202,
202,
12849,
394,
18361,
2932,
3913,
2780,
506,
3206,
8863,
377,
202,
377,
202,
698,
288,
377,
202,
202,
759,
1788,
1339,
471,
866,
326,
1004,
4215,
18,
540,
202,
780,
9322,
548,
273,
18711,
6492,
12,
4350,
16,
446,
16,
446,
16,
629,
1769,
377,
202,
202,
2157,
1339,
273,
1339,
2257,
18,
588,
2
] |
public SimpleProgressMessage(String identifier, SplitfileProgressEvent event) {
|
public SimpleProgressMessage(String identifier, boolean global, SplitfileProgressEvent event) {
|
public SimpleProgressMessage(String identifier, SplitfileProgressEvent event) { this.ident = identifier; this.event = event; }
|
50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/bbb3c23ec38ea1c7abb48040a17f5fc7932248bc/SimpleProgressMessage.java/clean/src/freenet/node/fcp/SimpleProgressMessage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4477,
5491,
1079,
12,
780,
2756,
16,
5385,
768,
5491,
1133,
871,
13,
288,
202,
202,
2211,
18,
6392,
273,
2756,
31,
202,
202,
2211,
18,
2575,
273,
871,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4477,
5491,
1079,
12,
780,
2756,
16,
5385,
768,
5491,
1133,
871,
13,
288,
202,
202,
2211,
18,
6392,
273,
2756,
31,
202,
202,
2211,
18,
2575,
273,
871,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return m_files.length;
|
return mFiles.length;
|
public int getFileCount () { return m_files.length; }
|
49828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49828/cbf4fdde1d7d8afd142b81b56ee9dec64ba46a6d/FileFinder.java/buggy/modules/tweek/java/org/vrjuggler/tweek/beans/FileFinder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
509,
6034,
1380,
1832,
282,
288,
1377,
327,
312,
2697,
18,
2469,
31,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
509,
6034,
1380,
1832,
282,
288,
1377,
327,
312,
2697,
18,
2469,
31,
282,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void replaceRange (String text, int start, int end)
|
public void replaceRange (String str, int start, int end)
|
public void replaceRange (String text, int start, int end) { TextAreaPeer peer = (TextAreaPeer) getPeer (); if (peer == null) return; peer.replaceRange (text, start, end); }
|
25352 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25352/3fe1c14284ce32b79d0e66441aec6a45a77ff684/TextArea.java/buggy/libjava/java/awt/TextArea.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1453,
2655,
261,
780,
609,
16,
509,
787,
16,
509,
679,
13,
225,
288,
565,
3867,
5484,
6813,
4261,
273,
261,
1528,
5484,
6813,
13,
29875,
261,
1769,
565,
309,
261,
12210,
422,
446,
13,
1377,
327,
31,
565,
4261,
18,
2079,
2655,
261,
955,
16,
787,
16,
679,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1453,
2655,
261,
780,
609,
16,
509,
787,
16,
509,
679,
13,
225,
288,
565,
3867,
5484,
6813,
4261,
273,
261,
1528,
5484,
6813,
13,
29875,
261,
1769,
565,
309,
261,
12210,
422,
446,
13,
1377,
327,
31,
565,
4261,
18,
2079,
2655,
261,
955,
16,
787,
16,
679,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
private AnAction processActionElement(Element element, final ClassLoader loader, PluginId pluginId) { final Application app = ApplicationManager.getApplication(); final IdeaPluginDescriptor plugin = app.getPlugin(pluginId); @NonNls final String resBundleName = plugin != null ? plugin.getResourceBundleBaseName() : ACTIONS_BUNDLE; ResourceBundle bundle = null; if (resBundleName != null) { bundle = ResourceBundle.getBundle(resBundleName, Locale.getDefault(), loader); } if (LOG.isDebugEnabled()) { LOG.debug("enter: processActionElement(" + element.getName() + ")"); } if (!ACTION_ELEMENT_NAME.equals(element.getName())) { LOG.error("unexpected name of element \"" + element.getName() + "\""); return null; } String className = element.getAttributeValue(CLASS_ATTR_NAME); if (className == null || className.length() == 0) { LOG.error("action element should have specified \"class\" attribute"); return null; } // read ID and register loaded action String id = element.getAttributeValue(ID_ATTR_NAME); if (id == null || id.length() == 0) { LOG.error("ID of the action cannot be an empty string"); return null; } if (Boolean.valueOf(element.getAttributeValue(INTERNAL_ATTR_NAME)).booleanValue() && !ApplicationManagerEx.getApplicationEx().isInternal()) { myNotRegisteredInternalActionIds.add(id); return null; } String text = loadTextForElement(element, bundle, id, ACTION_ELEMENT_NAME); if (text == null) { @NonNls String message = "'text' attribute is mandatory (action ID=" + id + ";" + (plugin == null ? "" : " plugin path: "+plugin.getPath()) + ")"; LOG.error(message); return null; } ActionStub stub = new ActionStub(className, id, text, loader); Presentation presentation = stub.getTemplatePresentation(); presentation.setText(text); // description presentation.setDescription(loadDescriptionForElement(element, bundle, id, ACTION_ELEMENT_NAME)); // icon setIcon(element.getAttributeValue(ICON_ATTR_NAME), className, loader, presentation); // process all links and key bindings if any for (final Object o : element.getChildren()) { Element e = (Element)o; if (ADD_TO_GROUP_ELEMENT_NAME.equals(e.getName())) { processAddToGroupNode(stub, e); } else if (SHORTCUT_ELEMENT_NAME.equals(e.getName())) { processKeyboardShortcutNode(e, id); } else if (MOUSE_SHORTCUT_ELEMENT_NAME.equals(e.getName())) { processMouseShortcutNode(e, id); } else { LOG.error("unexpected name of element \"" + e.getName() + "\""); return null; } } if (element.getAttributeValue(USE_SHORTCUT_OF_ATTR_NAME) != null) { ((KeymapManagerEx)myKeymapManager).bindShortcuts(element.getAttributeValue(USE_SHORTCUT_OF_ATTR_NAME), id); } // register action registerAction(id, stub, pluginId); return stub; }
|
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/4972de74093751aa507c641e7a852c8feb15d5e3/ActionManagerImpl.java/clean/action-system/impl/com/intellij/openapi/actionSystem/impl/ActionManagerImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
979,
1803,
2567,
1803,
1046,
12,
1046,
2956,
16,
6385,
7805,
6714,
16,
3773,
548,
4094,
548,
15329,
6385,
3208,
2910,
33,
3208,
1318,
18,
588,
3208,
5621,
6385,
45,
323,
69,
3773,
3187,
4094,
33,
2910,
18,
588,
3773,
12,
4094,
548,
1769,
36,
3989,
50,
3251,
6385,
780,
455,
3405,
461,
33,
4094,
5,
33,
2011,
35,
4094,
18,
588,
18731,
29907,
13332,
12249,
55,
67,
30245,
31,
18731,
9991,
33,
2011,
31,
430,
12,
455,
3405,
461,
5,
33,
2011,
15329,
9991,
33,
18731,
18,
588,
3405,
12,
455,
3405,
461,
16,
3916,
18,
588,
1868,
9334,
6714,
1769,
97,
430,
12,
4842,
18,
291,
2829,
1526,
10756,
95,
4842,
18,
4148,
2932,
2328,
30,
2567,
1803,
1046,
2932,
15,
2956,
18,
17994,
1435,
9078,
2225,
1769,
97,
430,
12,
5,
12249,
67,
10976,
67,
1985,
18,
14963,
12,
2956,
18,
17994,
1435,
3719,
95,
4842,
18,
1636,
2932,
21248,
529,
792,
2956,
8530,
15,
2956,
18,
17994,
1435,
9078,
8530,
1769,
2463,
2011,
31,
97,
780,
12434,
33,
2956,
18,
588,
14942,
12,
5237,
67,
12043,
67,
1985,
1769,
430,
12,
12434,
631,
2011,
20081,
12434,
18,
2469,
1435,
631,
20,
15329,
4842,
18,
1636,
2932,
1128,
2956,
13139,
76,
6606,
705,
939,
2412,
1106,
2412,
4589,
8863,
2463,
2011,
31,
97,
759,
896,
734,
464,
4861,
4230,
1128,
780,
350,
33,
2956,
18,
588,
14942,
12,
734,
67,
12043,
67,
1985,
1769,
430,
12,
350,
631,
2011,
20081,
350,
18,
2469,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
979,
1803,
2567,
1803,
1046,
12,
1046,
2956,
16,
6385,
7805,
6714,
16,
3773,
548,
4094,
548,
15329,
6385,
3208,
2910,
33,
3208,
1318,
18,
588,
3208,
5621,
6385,
45,
323,
69,
3773,
3187,
4094,
33,
2910,
18,
588,
3773,
12,
4094,
548,
1769,
36,
3989,
50,
3251,
6385,
780,
455,
3405,
461,
33,
4094,
5,
33,
2011,
35,
4094,
18,
588,
18731,
29907,
13332,
12249,
55,
67,
30245,
31,
18731,
9991,
33,
2011,
31,
430,
12,
455,
3405,
461,
5,
33,
2011,
15329,
9991,
33,
18731,
18,
588,
3405,
12,
455,
3405,
461,
16,
3916,
18,
588,
1868,
9334,
6714,
1769,
97,
430,
12,
4842,
18,
291,
2829,
1526,
10756,
95,
4842,
18,
4148,
2932,
2328,
30,
2
] |
||
return EOUtilities.objectFromRawRow(ec, entityNameForRawRow(dict), dict);
|
return EOUtilities.objectFromRawRow(ec, entityNameFromRawRow(ec, dict), dict);
|
public EOEnterpriseObject objectFromRawRow(EOEditingContext ec, NSDictionary dict) { return EOUtilities.objectFromRawRow(ec, entityNameForRawRow(dict), dict); }
|
810 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/810/e1e06fa0a1d916e087aac4f7cafa2f449ca12748/EOGenericRecordClazz.java/buggy/Wonder/Common/Frameworks/ERExtensions/Sources/er/extensions/EOGenericRecordClazz.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
512,
51,
30699,
921,
733,
1265,
4809,
1999,
12,
41,
51,
28029,
1042,
6557,
16,
423,
9903,
3192,
2065,
13,
288,
3639,
327,
512,
51,
11864,
18,
1612,
1265,
4809,
1999,
12,
557,
16,
14868,
1265,
4809,
1999,
12,
557,
16,
2065,
3631,
2065,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
512,
51,
30699,
921,
733,
1265,
4809,
1999,
12,
41,
51,
28029,
1042,
6557,
16,
423,
9903,
3192,
2065,
13,
288,
3639,
327,
512,
51,
11864,
18,
1612,
1265,
4809,
1999,
12,
557,
16,
14868,
1265,
4809,
1999,
12,
557,
16,
2065,
3631,
2065,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
case TagConstants.JML_CONSTRAINT: case TagConstants.JML_CONSTRAINT_REDUNDANTLY:
|
public boolean getNextPragma(Token /*@ non_null @*/ dst) { try { if (inProcessTag == NOTHING_ELSE_TO_PROCESS) { if (DEBUG) Info.out("getNextPragma: Nothing else to process."); return false; } // See if we need to continue a previous pragma, for example // "monitored_by", which can take multiple SpecExprs if ((inProcessTag != NEXT_TOKEN_STARTS_NEW_PRAGMA) && (inProcessTag != TagConstants.JML_ALSO)) { continuePragma(dst); return true; } if (scanner.ttype == TagConstants.EOF) { LexicalPragma PP = scanner.popLexicalPragma(); if (PP != null) { dst.ttype = TagConstants.LEXICALPRAGMA; dst.auxVal = PP; if (DEBUG) Info.out("getNextPragma: parsed final lexical pragma " + PP + " at EOF."); return true; } if (pendingJavadocComment != null) { scanner.close(); if (processJavadocComment()) { if (DEBUG) Info.out("getNextPragma: processed javadoc comment at EOF."); return true; } } close(); if (DEBUG) Info.out("getNextPragma: hit EOF, so finishing pragma parsing."); return false; } //@ assume scanner.m_in != null; // TBW: is this right?? --KRML // FIXME - not everything allows modifiers int prefixModifiers = parseModifiers(scanner); // Start a new pragma int loc = scanner.startingLoc; if (Main.parsePlus && scanner.ttype == TagConstants.ADD && scanner.lookahead(1) == TagConstants.EOF) { return false; } // Pragmas can start with modifiers //if (scanner.ttype != TagConstants.IDENT) // ErrorSet.fatal(loc, "Pragma must start with an identifier"); int tag = scanner.ttype; Identifier kw = null; if (tag == TagConstants.IDENT) { kw = scanner.identifierVal; tag = TagConstants.fromIdentifier(kw); } if (tag != TagConstants.IMPORT) { // Just because the parent class routines expect // to start on the IMPORT token scanner.getNextToken(); } boolean semiNotOptional = false; if (DEBUG) Info.out("next tag is: " + tag); switch (tag) { case TagConstants.JML_NOT_SPECIFIED: dst.ttype = TagConstants.MODIFIERPRAGMA; NotSpecifiedExpr nse = NotSpecifiedExpr.make(loc); dst.auxVal = ExprModifierPragma.make(inProcessTag, nse, loc); break; case TagConstants.JML_EVERYTHING: dst.ttype = TagConstants.MODIFIERPRAGMA; EverythingExpr ee = EverythingExpr.make(loc); dst.auxVal = ExprModifierPragma.make(inProcessTag, ee, loc); break; case TagConstants.JML_NOTHING: dst.ttype = TagConstants.MODIFIERPRAGMA; NothingExpr ne = NothingExpr.make(loc); dst.auxVal = ExprModifierPragma.make(inProcessTag, ne, loc); break; case TagConstants.JML_BEHAVIOR: case TagConstants.JML_EXCEPTIONAL_BEHAVIOR: case TagConstants.JML_NORMAL_BEHAVIOR: // All desugaring of normal and exceptional // behavior is now performed in the desugaring // step in AnnotationHandler. dst.ttype = TagConstants.MODIFIERPRAGMA; dst.auxVal = SimpleModifierPragma.make(tag, loc); break; case TagConstants.NOWARN: dst.ttype = TagConstants.LEXICALPRAGMA; seqIdentifier.push(); if (scanner.ttype == TagConstants.IDENT) while (true) { seqIdentifier.addElement(parseIdentifier(scanner)); if (scanner.ttype != TagConstants.COMMA) break; scanner.getNextToken(); // Discard COMMA } IdentifierVec checks = IdentifierVec.popFromStackVector(seqIdentifier); dst.auxVal = NowarnPragma.make(checks, loc); if (scanner.ttype == TagConstants.SEMICOLON) scanner.getNextToken(); if (scanner.ttype != TagConstants.EOF) ErrorSet.fatal(loc, "Syntax error in nowarn pragma"); break; case TagConstants.ALSO_MODIFIES: case TagConstants.JML_ASSIGNABLE: case TagConstants.JML_ASSIGNABLE_REDUNDANTLY: case TagConstants.JML_MEASURED_BY: case TagConstants.JML_MEASURED_BY_REDUNDANTLY: case TagConstants.JML_MODIFIABLE: case TagConstants.JML_MODIFIABLE_REDUNDANTLY: case TagConstants.JML_MODIFIES_REDUNDANTLY: case TagConstants.MODIFIES: case TagConstants.MONITORED_BY: case TagConstants.JML_NOT_MODIFIED: // SC AAST 4 case TagConstants.STILL_DEFERRED: inProcessTag = tag; inProcessLoc = loc; continuePragma(dst); if (DEBUG) Info.out("getNextPragma: parsed a frame axiom: " + dst.ztoString()); return true; case TagConstants.JML_DEPENDS: // SC AAST 4 case TagConstants.JML_DEPENDS_REDUNDANTLY: { // SC AAST 4 inProcessTag = tag; inProcessLoc = loc; dst.ttype = TagConstants.TYPEDECLELEMPRAGMA; Expr target = parseExpression(scanner); int locOp = scanner.startingLoc; expect(scanner, TagConstants.JML_LEFTARROW); Vector list = new Vector(); while (true) { Expr value = parseExpression(scanner); list.add(value); if (scanner.ttype != TagConstants.COMMA) break; scanner.getNextToken(); } DependsPragma pragma = DependsPragma.make(tag, target, ExprVec.make(list), loc); if (isRedundant(tag)) pragma.setRedundant(true); dst.auxVal = pragma; semiNotOptional = true; break; } case TagConstants.UNREACHABLE: dst.ttype = TagConstants.STMTPRAGMA; dst.auxVal = SimpleStmtPragma.make(tag, loc); if (scanner.ttype == TagConstants.SEMICOLON) scanner.getNextToken(); break; case TagConstants.ASSERT: case TagConstants.ASSUME: case TagConstants.DECREASES: case TagConstants.JML_ASSERT_REDUNDANTLY: case TagConstants.JML_ASSUME_REDUNDANTLY: case TagConstants.JML_DECREASES_REDUNDANTLY: case TagConstants.JML_DECREASING: case TagConstants.JML_DECREASING_REDUNDANTLY: case TagConstants.JML_LOOP_INVARIANT_REDUNDANTLY: case TagConstants.JML_MAINTAINING: case TagConstants.JML_MAINTAINING_REDUNDANTLY: case TagConstants.LOOP_INVARIANT: { dst.ttype = TagConstants.STMTPRAGMA; ExprStmtPragma pragma = ExprStmtPragma.make(tag, parseExpression(scanner), loc); if (isRedundant(tag)) pragma.setRedundant(true); dst.auxVal = pragma; semiNotOptional = true; break; } case TagConstants.LOOP_PREDICATE: inProcessTag = tag; inProcessLoc = loc; continuePragma(dst); semiNotOptional = true; if (DEBUG) Info.out("getNextPragma: parsed a loop predicate: " + dst.ztoString()); return true; case TagConstants.SET: { dst.ttype = TagConstants.STMTPRAGMA; Expr target = parseExpression(scanner); int locOp = scanner.startingLoc; expect(scanner, TagConstants.ASSIGN); Expr value = parseExpression(scanner); dst.auxVal = SetStmtPragma.make(target, locOp, value, loc); semiNotOptional = true; } break; case TagConstants.JML_REPRESENTS: // SC HPT AAST 4 { dst.ttype = TagConstants.TYPEDECLELEMPRAGMA; Expr target = parseExpression(scanner); int locOp = scanner.startingLoc; if (scanner.ttype == TagConstants.JML_LEFTARROW) { expect(scanner, TagConstants.JML_LEFTARROW); Expr value = parseExpression(scanner); dst.auxVal = ExprDeclPragma.make(tag, BinaryExpr.make( TagConstants.EQ, target, value, locOp), loc); } else if (scanner.ttype == TagConstants.JML_SUCH_THAT) { expect(scanner, TagConstants.JML_SUCH_THAT); Expr value = parseExpression(scanner); dst.auxVal = ExprDeclPragma.make(tag, value, loc); } semiNotOptional = true; } break; case TagConstants.AXIOM: case TagConstants.INVARIANT: case TagConstants.JML_CONSTRAINT: case TagConstants.JML_CONSTRAINT_REDUNDANTLY: case TagConstants.JML_INITIALLY: case TagConstants.JML_INVARIANT_REDUNDANTLY: { dst.ttype = TagConstants.TYPEDECLELEMPRAGMA; ExprDeclPragma pragma = ExprDeclPragma.make(tag, parseExpression(scanner), loc); if (isRedundant(tag)) pragma.setRedundant(true); dst.auxVal = pragma; semiNotOptional = true; break; } case TagConstants.IMPORT: ErrorSet.caution(loc,"An import statement in an annotation should begin with 'model import'"); scanner.lexicalPragmas.addElement( ImportPragma.make(parseImportDeclaration(scanner), loc)); semiNotOptional = true; return getNextPragma(dst); case TagConstants.JML_MODEL: if (scanner.lookahead(0) == TagConstants.IMPORT) { scanner.lexicalPragmas.addElement( ImportPragma.make(parseImportDeclaration(scanner), loc)); semiNotOptional = true; return getNextPragma(dst); } prefixModifiers |= Modifiers.ACC_MODEL; case TagConstants.GHOST: { dst.ttype = TagConstants.TYPEDECLELEMPRAGMA; int modifiers = parseModifiers(scanner,true); if ((modifiers & prefixModifiers) != 0) { ErrorSet.warning(loc, TagConstants.toString(tag) + " annotation has a repeated access modifier"); } modifiers |= prefixModifiers; ModifierPragmaVec modifierPragmas = this.modifierPragmas; int locType = scanner.startingLoc; Type type = parseType(scanner); // make modifierPragmas non-null, so can retroactively extend if (modifierPragmas == null) modifierPragmas = ModifierPragmaVec.make(); int locId = scanner.startingLoc; Identifier id = parseIdentifier(scanner); Type vartype = parseBracketPairs(scanner, type); VarInit init = null; int locAssignOp = Location.NULL; if (scanner.ttype == TagConstants.LPAREN) { if (tag == TagConstants.GHOST) { ErrorSet.error(loc, "A method may not be declared ghost"); } // Must be a model method // FIXME - note - cannot have a ghost method FormalParaDeclVec args = parseFormalParameterList(scanner); int locThrowsKeyword; if (scanner.ttype == TagConstants.THROWS) { locThrowsKeyword = scanner.startingLoc; } else { locThrowsKeyword = Location.NULL; } TypeNameVec raises = parseTypeNames(scanner, TagConstants.THROWS); int locOpenBrace = Location.NULL; BlockStmt body = null; if (scanner.ttype == TagConstants.SEMICOLON) { scanner.getNextToken(); // eats semicolon } else if (scanner.ttype == TagConstants.LBRACE) { locOpenBrace = scanner.startingLoc; body = parseBlock(scanner, true); // FIXME - the above parses with specOnly=true which will not provide the body } else { // FIXME -- error } // FIXME - need to add the method into the decl elements of the type MethodDecl md = MethodDecl.make( modifiers, modifierPragmas, null, args, raises, body, locOpenBrace, loc, locId, locThrowsKeyword, id, type,locType); dst.auxVal = ModelMethodDeclPragma.make(md,loc); } else { if (scanner.ttype == TagConstants.ASSIGN) { locAssignOp = scanner.startingLoc; scanner.getNextToken(); init = parseVariableInitializer(scanner, false); } FieldDecl decl = FieldDecl.make(modifiers, modifierPragmas, id, vartype, locId, init, locAssignOp ); if (scanner.ttype == TagConstants.MODIFIERPRAGMA || scanner.ttype == TagConstants.SEMICOLON ) { // if modifier pragma, retroactively add to modifierPragmas parseMoreModifierPragmas(scanner, modifierPragmas); } if (scanner.ttype == TagConstants.COMMA) fail(scanner.startingLoc, "Only one field may be declared per ghost or model annotation."); if (tag == TagConstants.GHOST) { dst.auxVal = GhostDeclPragma.make(decl, loc); } else if (tag == TagConstants.JML_MODEL) { dst.auxVal = ModelDeclPragma.make(decl, loc); } semiNotOptional = true;// FIXME - monitored_by as well??// FIXME - test this without replciating the string if (scanner.ttype == TagConstants.IDENT && scanner.identifierVal.toString().equals("initially")) { semiNotOptional = false; } } break; } case TagConstants.SKOLEM_CONSTANT: { dst.ttype = TagConstants.STMTPRAGMA; int locType = scanner.startingLoc; Type type = parseType(scanner); LocalVarDeclVec v = LocalVarDeclVec.make(); int nextTtype; loop: while (true) { int locId = scanner.startingLoc; Identifier id = parseIdentifier(scanner); Type vartype = parseBracketPairs(scanner, type); LocalVarDecl decl = LocalVarDecl.make(Modifiers.NONE, null, id, vartype, locId, null, Location.NULL); v.addElement(decl); switch (scanner.ttype) { case TagConstants.COMMA: scanner.getNextToken(); continue loop; default: fail( scanner.startingLoc, "Expected comma or semicolon in skolem_constant decl"); case TagConstants.SEMICOLON: break loop; } } dst.auxVal = SkolemConstantPragma.make(v, locType, scanner.startingLoc); semiNotOptional = true; break; } case TagConstants.HELPER: case TagConstants.JML_CLOSEPRAGMA: case TagConstants.JML_EXAMPLE: case TagConstants.JML_EXCEPTIONAL_EXAMPLE: case TagConstants.JML_FOR_EXAMPLE: case TagConstants.JML_IMPLIES_THAT: case TagConstants.JML_INSTANCE: case TagConstants.JML_NORMAL_EXAMPLE: case TagConstants.JML_OPENPRAGMA: case TagConstants.JML_PURE: case TagConstants.JML_SPEC_PROTECTED: // SC HPT AAST 3 case TagConstants.MONITORED: case TagConstants.NON_NULL: case TagConstants.SPEC_PUBLIC: case TagConstants.UNINITIALIZED: case TagConstants.WRITABLE_DEFERRED: dst.ttype = TagConstants.MODIFIERPRAGMA; dst.auxVal = SimpleModifierPragma.make(tag, loc); break; case TagConstants.ALSO_ENSURES: case TagConstants.ALSO_REQUIRES: case TagConstants.ENSURES: case TagConstants.JML_DIVERGES: case TagConstants.JML_DIVERGES_REDUNDANTLY: case TagConstants.JML_ENSURES_REDUNDANTLY: case TagConstants.JML_POST: case TagConstants.JML_POST_REDUNDANTLY: case TagConstants.JML_PRE: case TagConstants.JML_PRE_REDUNDANTLY: case TagConstants.JML_REQUIRES_REDUNDANTLY: case TagConstants.JML_WHEN: // NOT SC concurrent only case TagConstants.JML_WHEN_REDUNDANTLY: // NOT SC concurrent only case TagConstants.READABLE_IF: case TagConstants.REQUIRES: case TagConstants.WRITABLE_IF: { dst.ttype = TagConstants.MODIFIERPRAGMA; // SpecExpr [';'] ExprModifierPragma pragma = ExprModifierPragma.make(tag, parseExpression(scanner), loc); if (isRedundant(tag)) pragma.setRedundant(true); dst.auxVal = pragma; semiNotOptional = true; break; } case TagConstants.JML_ALSO: dst.ttype = TagConstants.MODIFIERPRAGMA; dst.auxVal = SimpleModifierPragma.make(tag, loc); break; case TagConstants.ALSO_EXSURES: case TagConstants.EXSURES: case TagConstants.JML_EXSURES_REDUNDANTLY: case TagConstants.JML_SIGNALS: case TagConstants.JML_SIGNALS_REDUNDANTLY: { dst.ttype = TagConstants.MODIFIERPRAGMA; expect(scanner, TagConstants.LPAREN); FormalParaDecl arg = parseExsuresFormalParaDecl(scanner); expect(scanner, TagConstants.RPAREN); Expr expr = null; if (scanner.ttype == TagConstants.SEMICOLON) expr = LiteralExpr.make(TagConstants.BOOLEANLIT, Boolean.TRUE,scanner.startingLoc); else expr = parseExpression(scanner); VarExprModifierPragma pragma = VarExprModifierPragma.make(tag, arg, expr, loc); if (isRedundant(tag)) pragma.setRedundant(true); dst.auxVal = pragma; semiNotOptional = true; break; } case TagConstants.JML_FIELDS_OF: // SC AAST 4 // unknown exact semantics parseFieldsOfExpr(scanner); noteUnsupportedCheckableJmlPragma(loc, tag); return getNextPragma(dst); case TagConstants.JML_INVARIANT_FOR: // SC AAST 4 case TagConstants.JML_SPACE: // SC HPT 2 case TagConstants.JML_WACK_DURATION: // SC HPT 2 case TagConstants.JML_WACK_WORKING_SPACE: // SC HPT 2 expect(scanner, TagConstants.LPAREN); parseExpression(scanner); expect(scanner, TagConstants.RPAREN); eatSemiColon(kw); noteUnsupportedCheckableJmlPragma(loc, tag); return getNextPragma(dst); case TagConstants.JML_IS_INITIALIZED: // SC AAST 3 expect(scanner, TagConstants.LPAREN); parseTypeName(scanner); expect(scanner, TagConstants.RPAREN); eatSemiColon(kw); noteUnsupportedCheckableJmlPragma(loc, tag); return getNextPragma(dst); case TagConstants.JML_OTHER: // unclear semantics scanner.getNextToken(); parseStoreRefNameSuffix(scanner); eatSemiColon(kw); noteUnsupportedCheckableJmlPragma(loc, tag); return getNextPragma(dst); case TagConstants.JML_REACH: // SC HPT AAST 5 scanner.getNextToken(); expect(scanner, TagConstants.LPAREN); parseExpression(scanner); if (scanner.ttype == TagConstants.COMMA) { expect(scanner, TagConstants.IDENT); if (scanner.ttype == TagConstants.COMMA) { scanner.getNextToken(); parseStoreRefExpr(scanner); } } expect(scanner, TagConstants.RPAREN); eatSemiColon(kw); noteUnsupportedCheckableJmlPragma(loc, tag); return getNextPragma(dst); case TagConstants.JML_DURATION: // SC HPT 2 case TagConstants.JML_DURATION_REDUNDANTLY: // SC HPT 2 case TagConstants.JML_WORKING_SPACE: // SC HPT 2 case TagConstants.JML_WORKING_SPACE_REDUNDANTLY:// SC HPT 2 if (scanner.ttype == TagConstants.JML_NOT_SPECIFIED) scanner.getNextToken(); else { parseExpression(scanner); if (scanner.ttype == TagConstants.IFSTMT) { scanner.getNextToken(); parseExpression(scanner); } } eatSemiColon(kw); noteUnsupportedCheckableJmlPragma(loc, tag); return getNextPragma(dst); case TagConstants.JML_MIN: // SC HPT AAST 3 case TagConstants.JML_NUM_OF: // SC AAST 3 case TagConstants.JML_PRODUCT: // SC HPT AAST 3 case TagConstants.JML_SUM: // SC HPT AAST 3 notePragmaUnderway(loc, tag, "kiniry@acm.org"); break; // 'SC' == Statically Checkable or otherwise useful // 'HPT' == Handle at Parse-time 'AAST' == 'Augments // Abstract Symbol Tree' Final 0-5 indicates // difficulty of implementation; 0 being easiest. All // estimates and implementation/design guesses were // made by Joe Kiniry on 29 April 2003. // Unsupported JML keywords not beginning with '\' (wack). case TagConstants.JML_ABRUPT_BEHAVIOR: // unclear semantics case TagConstants.JML_ACCESSIBLE_REDUNDANTLY: // SC HPT AAST 2 case TagConstants.JML_ACCESSIBLE: // SC HPT AAST 2 // case TagConstants.JML_ALSO: support complete (kiniry/cok) // case TagConstants.JML_ASSERT_REDUNDANTLY: support complete (kiniry) // case TagConstants.JML_ASSIGNABLE_REDUNDANTLY: support complete (kiniry) // case TagConstants.JML_ASSIGNABLE: support complete (kiniry) // case TagConstants.JML_ASSUME_REDUNDANTLY: support complete (kiniry) // case TagConstants.JML_BEHAVIOR: support complete (kiniry) case TagConstants.JML_BREAKS_REDUNDANTLY: // unclear semantics case TagConstants.JML_BREAKS: // unclear semantics case TagConstants.JML_CALLABLE_REDUNDANTLY: // unclear semantics case TagConstants.JML_CALLABLE: // unclear semantics case TagConstants.JML_CHOOSE_IF: // unclear semantics case TagConstants.JML_CHOOSE: // unclear semantics // case TagConstants.JML_CLOSEPRAGMA: parses but incomplete (cok) // case TagConstants.JML_CONSTRAINT_REDUNDANTLY: SC AAST 4 parsed (cok) // case TagConstants.JML_CONSTRAINT: SC AAST 4 parsed (cok) case TagConstants.JML_CONTINUES_REDUNDANTLY: // unclear semantics case TagConstants.JML_CONTINUES: // unclear semantics // case TagConstants.JML_DECREASES_REDUNDANTLY: support complete (kiniry) // case TagConstants.JML_DECREASING_REDUNDANTLY: support complete (kiniry) // case TagConstants.JML_DECREASING: support complete (kiniry) // case TagConstants.JML_DEPENDS_REDUNDANTLY: SC AAST 4 parsed (cok) // case TagConstants.JML_DEPENDS: SC AAST 4 parsed (cok) // case TagConstants.JML_DIVERGES_REDUNDANTLY: parsed (cok) // case TagConstants.JML_DIVERGES: parsed (cok) // case TagConstants.JML_DURATION: SC HPT 2 unsupported (kiniry) // case TagConstants.JML_DURATION_REDUNDANTLY: SC HPT 2 unsupported (kiniry) // case TagConstants.JML_ENSURES_REDUNDANTLY: support complete (kiniry) // case TagConstants.JML_EXAMPLE: NOT SC parsed (cok) // case TagConstants.JML_EXCEPTIONAL_BEHAVIOR: support complete (kiniry) // case TagConstants.JML_EXCEPTIONAL_EXAMPLE: NOT SC - parsed cok // case TagConstants.JML_EXSURES_REDUNDANTLY: support complete (kiniry) // case TagConstants.JML_FIELDS_OF: SC AAST 4 unknown semantics (kiniry) case TagConstants.JML_FORALL: // unclear semantics // case TagConstants.JML_FOR_EXAMPLE: NOT SC parsed (cok) // case TagContants.GHOST: support complete (cok) case TagConstants.JML_HENCE_BY_REDUNDANTLY: // unclear semantics case TagConstants.JML_HENCE_BY: // unclear semantics // case TagConstants.JML_IMPLIES_THAT: NOT SC parsed (cok) // case TagConstants.IMPORT: support complete (cok) case TagConstants.JML_INITIALIZER: // SC AAST 4 // case TagConstants.JML_INITIALLY: SC AAST 4 parsed (cok) // case TagConstants.JML_INSTANCE: parses but no semantics (cok) SC AAST 3 // case TagConstants.JML_INVARIANT_FOR: unsupported (kiniry) // case TagConstants.JML_INVARIANT_REDUNDANTLY: support complete (kiniry) // case TagConstants.JML_IS_INITIALIZED: unsupported (kiniry) // case TagConstants.JML_LOOP_INVARIANT_REDUNDANTLY: support complete (kiniry) // case TagConstants.JML_MAINTAINING_REDUNDANTLY: support complete (kiniry) // case TagConstants.JML_MAINTAINING: support complete (kiniry) // case TagConstants.JML_MEASURED_BY_REDUNDANTLY: unclear semantics (parsed - cok) // case TagConstants.JML_MEASURED_BY: unclear semantics (parsed - cok) // case TagConstants.JML_MIN: SC HPT AAST 3 underway (kiniry) // case TagConstants.JML_MODEL: support complete (cok) case TagConstants.JML_MODEL_PROGRAM: // unclear semantics // case TagConstants.JML_MODIFIABLE_REDUNDANTLY: support complete (kiniry) // case TagConstants.JML_MODIFIABLE: support complete (kiniry) // case TagConstants.JML_MODIFIES_REDUNDANTLY: support complete (kiniry) // case TagConstants.JML_NORMAL_BEHAVIOR: support complete (kiniry) // case TagConstants.JML_NORMAL_EXAMPLE: NOT SC support complete (cok/kiniry) // case TagConstants.JML_NOT_MODIFIED: SC AAST 4 unsupported (kiniry) // case TagConstants.JML_NOT_SPECIFIED: HPT? 2 unsupported (kiniry) // case TagConstants.JML_NUM_OF: SC AAST 3 underway (kiniry) case TagConstants.JML_OLD: // unclear semantics // case TagConstants.JML_OPENPRAGMA: parses but incomplete (cok) // case TagConstants.JML_OTHER: unsupported, unclear semantics (kiniry) case TagConstants.JML_OR: // unclear semantics // case TagConstants.JML_POST_REDUNDANTLY: support complete (kiniry) // case TagConstants.JML_POST: support complete (kiniry) // case TagConstants.JML_PRE_REDUNDANTLY: support complete (kiniry) // case TagConstants.JML_PRE: support complete (kiniry) // case TagConstants.JML_PRIVATE_DATA: unclear semantics unsupported (kiniry) // case TagConstants.JML_PRODUCT: SC HPT AAST 3 underway (kiniry) // case TagConstants.JML_PURE: parse/check support complete (cok) // case TagConstants.JML_REACH: SC HPT AAST 5 parses (kiniry/cok) case TagConstants.JML_REFINE: // SC HPT AAST 3 case TagConstants.JML_REPRESENTS_REDUNDANTLY: // SC HPT AAST 4 (cok) // case TagConstants.JML_REPRESENTS: SC HPT AAST 4 support complete (cok) // case TagConstants.JML_REQUIRES_REDUNDANTLY: support complete (kiniry) case TagConstants.JML_RETURNS_REDUNDANTLY: // unclear semantics case TagConstants.JML_RETURNS: // unclear semantics // case TagConstants.JML_SIGNALS_REDUNDANTLY: support complete (kiniry) // case TagConstants.JML_SIGNALS: support complete (kiniry) // case TagConstants.JML_SPACE: unsupported (kiniry) // case TagConstants.JML_SPEC_PROTECTED: support complete (cok) case TagConstants.JML_STATIC_INITIALIZER: // SC AAST 4 case TagConstants.JML_SUBCLASSING_CONTRACT: // NOT SC // case TagConstants.JML_SUM: SC HPT AAST 3 underway (kiniry) // case TagConstants.JML_WACK_DURATION: SC HPT 2 unsupported (kiniry) // case TagConstants.JML_WACK_WORKING_SPACE: SC HPT 2 unsupported (kiniry) case TagConstants.JML_WEAKLY: // unclear semantics // case TagConstants.JML_WHEN_REDUNDANTLY: NOT SC concurrent only (parsed - cok) // case TagConstants.JML_WHEN: NOT SC concurrent only (parsed - cok) // case TagConstants.JML_WORKING_SPACE: SC HPT 2 unsupported (kiniry) // case TagConstants.JML_WORKING_SPACE_REDUNDANTLY: SC HPT 2 unsupported (kiniry) ErrorSet.fatal(loc, "Unsupported pragma: " + TagConstants.toString(tag)); break; default: ErrorSet.fatal(loc, "Unrecognized pragma: " + tag + " " + TagConstants.toString(tag)); } if (semiNotOptional) eatSemiColon(kw); if (DEBUG) Info.out("getNextPragma: parsed : " + dst.ztoString()); return true; } catch (IOException e) { return false; } }
|
46634 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46634/5225df86b98d4fedc3db4f5184861bc8fb5f7793/EscPragmaParser.java/buggy/src/escjava/trunk/ESCTools/Escjava/java/escjava/parser/EscPragmaParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
6927,
2050,
9454,
12,
1345,
1748,
36,
1661,
67,
2011,
632,
5549,
3046,
13,
288,
3639,
775,
288,
5411,
309,
261,
267,
2227,
1805,
422,
4269,
44,
1360,
67,
2247,
1090,
67,
4296,
67,
16560,
13,
288,
7734,
309,
261,
9394,
13,
10792,
3807,
18,
659,
2932,
588,
2134,
2050,
9454,
30,
13389,
469,
358,
1207,
1199,
1769,
7734,
327,
629,
31,
5411,
289,
5411,
368,
2164,
309,
732,
1608,
358,
1324,
279,
2416,
10878,
16,
364,
3454,
5411,
368,
315,
2586,
20425,
67,
1637,
3113,
1492,
848,
4862,
3229,
4185,
22947,
5411,
309,
14015,
267,
2227,
1805,
480,
19252,
67,
8412,
67,
7570,
55,
67,
12917,
67,
8025,
1781,
5535,
13,
597,
7734,
261,
267,
2227,
1805,
480,
4034,
2918,
18,
46,
1495,
67,
1013,
3584,
3719,
288,
1171,
1324,
2050,
9454,
12,
11057,
1769,
7734,
327,
638,
31,
2398,
289,
5411,
309,
261,
26842,
18,
88,
723,
422,
4034,
2918,
18,
12706,
13,
288,
1171,
15123,
1706,
2050,
9454,
453,
52,
273,
7683,
18,
5120,
14756,
1706,
2050,
9454,
5621,
7734,
309,
261,
6584,
480,
446,
13,
288,
10792,
3046,
18,
88,
723,
273,
4034,
2918,
18,
21130,
10109,
8025,
1781,
5535,
31,
10792,
3046,
18,
18196,
3053,
273,
453,
52,
31,
10792,
309,
261,
9394,
13,
13491,
3807,
18,
659,
2932,
588,
2134,
2050,
9454,
30,
2707,
727,
5275,
1706,
10878,
315,
397,
453,
52,
397,
4766,
315,
622,
6431,
1199,
1769,
10792,
327,
638,
31,
7734,
289,
7734,
309,
261,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
6927,
2050,
9454,
12,
1345,
1748,
36,
1661,
67,
2011,
632,
5549,
3046,
13,
288,
3639,
775,
288,
5411,
309,
261,
267,
2227,
1805,
422,
4269,
44,
1360,
67,
2247,
1090,
67,
4296,
67,
16560,
13,
288,
7734,
309,
261,
9394,
13,
10792,
3807,
18,
659,
2932,
588,
2134,
2050,
9454,
30,
13389,
469,
358,
1207,
1199,
1769,
7734,
327,
629,
31,
5411,
289,
5411,
368,
2164,
309,
732,
1608,
358,
1324,
279,
2416,
10878,
16,
364,
3454,
5411,
368,
315,
2586,
20425,
67,
1637,
3113,
1492,
848,
4862,
3229,
4185,
22947,
5411,
309,
14015,
267,
2227,
1805,
480,
19252,
67,
8412,
67,
7570,
55,
67,
12917,
67,
8025,
1781,
5535,
13,
597,
7734,
261,
267,
2
] |
|
createLabel( propertiesGroup, LABEL_PARAM_NAME );
|
createLabel( propertiesGroup, LABEL_PARAM_NAME, maxStrLengthProperty );
|
private void createPropertiesPart( Composite parent ) { propertiesGroup = new Group( parent, SWT.NULL ); propertiesGroup.setText( LABEL_GROUP_PROPERTIES ); propertiesGroup.setLayout( new GridLayout( 2, false ) ); propertiesGroup.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); createLabel( propertiesGroup, LABEL_PARAM_NAME ); paramNameEditor = new Text( propertiesGroup, SWT.BORDER ); paramNameEditor.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); paramNameEditor.addModifyListener( new ModifyListener( ) { public void modifyText( ModifyEvent e ) { valueTable.refresh( selectedParameter ); } } ); createLabel( propertiesGroup, LABEL_PROMPT_TEXT ); promptText = new Text( propertiesGroup, SWT.BORDER ); promptText.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); createLabel( propertiesGroup, LABEL_DATA_TYPE ); dataTypeChooser = new Combo( propertiesGroup, SWT.DROP_DOWN | SWT.READ_ONLY ); dataTypeChooser.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); dataTypeChooser.setItems( ChoiceSetFactory.getDisplayNamefromChoiceSet( dataType ) ); dataTypeChooser.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { if ( selectedParameter != null && selectedParameter != newParameter ) { changeDataType( dataType.findChoiceByDisplayName( dataTypeChooser.getText( ) ) .getName( ) ); try { selectedParameter.setDataType( dataType.findChoiceByDisplayName( dataTypeChooser.getText( ) ) .getName( ) ); } catch ( SemanticException e1 ) { ExceptionHandler.handle( e1 ); } } } } ); createLabel( propertiesGroup, LABEL_DISPLAY_TYPE ); displayTypeChooser = new Combo( propertiesGroup, SWT.DROP_DOWN | SWT.READ_ONLY ); displayTypeChooser.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); displayTypeChooser.setItems( new String[]{ DISPLAY_NAME_CONTROL_LIST, DISPLAY_NAME_CONTROL_COMBO } ); displayTypeChooser.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { if ( selectedParameter != null && selectedParameter != newParameter ) { try { String newControlType = getSelectedDisplayType( ); if ( PARAM_CONTROL_COMBO.equals( newControlType ) ) { newControlType = DesignChoiceConstants.PARAM_CONTROL_LIST_BOX; selectedParameter.setMustMatch( true ); } else if ( PARAM_CONTROL_LIST.equals( newControlType ) ) { newControlType = DesignChoiceConstants.PARAM_CONTROL_LIST_BOX; selectedParameter.setMustMatch( false ); } else { selectedParameter.setProperty( ScalarParameterHandle.MUCH_MATCH_PROP, null ); } selectedParameter.setControlType( newControlType ); } catch ( SemanticException e1 ) { ExceptionHandler.handle( e1 ); } } } } ); createLabel( propertiesGroup, LABEL_DEFAULT_VALUE ); defaultValueEditor = new Text( propertiesGroup, SWT.BORDER ); defaultValueEditor.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/0b50ebbca5835c8411a3f66678e1ab42f5f57335/CascadingParametersDialog.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/CascadingParametersDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
2297,
1988,
12,
14728,
982,
262,
202,
95,
202,
202,
4738,
1114,
273,
394,
3756,
12,
982,
16,
348,
8588,
18,
8560,
11272,
202,
202,
4738,
1114,
18,
542,
1528,
12,
18210,
67,
8468,
67,
17421,
11272,
202,
202,
4738,
1114,
18,
542,
3744,
12,
394,
7145,
3744,
12,
576,
16,
629,
262,
11272,
202,
202,
4738,
1114,
18,
542,
3744,
751,
12,
394,
7145,
751,
12,
7145,
751,
18,
29818,
67,
44,
20344,
262,
11272,
202,
202,
2640,
2224,
12,
1790,
1114,
16,
18210,
67,
8388,
67,
1985,
11272,
202,
202,
891,
461,
6946,
273,
394,
3867,
12,
1790,
1114,
16,
348,
8588,
18,
38,
7954,
11272,
202,
202,
891,
461,
6946,
18,
542,
3744,
751,
12,
394,
7145,
751,
12,
7145,
751,
18,
29818,
67,
44,
20344,
262,
11272,
202,
202,
891,
461,
6946,
18,
1289,
11047,
2223,
12,
394,
9518,
2223,
12,
262,
288,
1082,
202,
482,
918,
5612,
1528,
12,
9518,
1133,
425,
262,
1082,
202,
95,
9506,
202,
1132,
1388,
18,
9144,
12,
3170,
1662,
11272,
1082,
202,
97,
202,
202,
97,
11272,
202,
202,
2640,
2224,
12,
1790,
1114,
16,
18210,
67,
3373,
49,
1856,
67,
5151,
11272,
202,
202,
13325,
1528,
273,
394,
3867,
12,
1790,
1114,
16,
348,
8588,
18,
38,
7954,
11272,
202,
202,
13325,
1528,
18,
542,
3744,
751,
12,
394,
7145,
751,
12,
7145,
751,
18,
29818,
67,
44,
20344,
262,
11272,
202,
202,
2640,
2224,
12,
1790,
1114,
16,
18210,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
2297,
1988,
12,
14728,
982,
262,
202,
95,
202,
202,
4738,
1114,
273,
394,
3756,
12,
982,
16,
348,
8588,
18,
8560,
11272,
202,
202,
4738,
1114,
18,
542,
1528,
12,
18210,
67,
8468,
67,
17421,
11272,
202,
202,
4738,
1114,
18,
542,
3744,
12,
394,
7145,
3744,
12,
576,
16,
629,
262,
11272,
202,
202,
4738,
1114,
18,
542,
3744,
751,
12,
394,
7145,
751,
12,
7145,
751,
18,
29818,
67,
44,
20344,
262,
11272,
202,
202,
2640,
2224,
12,
1790,
1114,
16,
18210,
67,
8388,
67,
1985,
11272,
202,
202,
891,
461,
6946,
273,
394,
3867,
12,
1790,
1114,
16,
348,
8588,
18,
38,
7954,
11272,
202,
202,
891,
461,
6946,
18,
2
] |
tpScene3Field.setText( Integer.toString( scene3.getTeleportOffset(), 16 ) );
|
tpScene3Field.setText(Integer.toString(scene3.getTeleportOffset(), 16));
|
private void initComponents() { warningLabel = new javax.swing.JLabel(); jPanel1 = new javax.swing.JPanel(); tpScene2Label = new javax.swing.JLabel(); tpScene2Field = new javax.swing.JTextField(); tpScene3Label = new javax.swing.JLabel(); tpScene3Field = new javax.swing.JTextField(); updateButton = new javax.swing.JButton(); cancelButton = new javax.swing.JButton(); setTitle("Teleport Address changer"); setName("teleportAddressChangerDialog"); setResizable(false); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { closeDialog(evt); } }); warningLabel.setText("If you don't know what these are, don't change them"); getContentPane().add(warningLabel, java.awt.BorderLayout.NORTH); jPanel1.setLayout(new java.awt.GridLayout(0, 2, 5, 10)); tpScene2Label.setText("Scene 2 TP (0x96):"); jPanel1.add(tpScene2Label); tpScene2Field.setText( Integer.toString( scene2.getTeleportOffset(), 16 ) ); jPanel1.add(tpScene2Field); tpScene3Label.setText("Scene 3 TP (0x97):"); jPanel1.add(tpScene3Label); tpScene3Field.setText( Integer.toString( scene3.getTeleportOffset(), 16 ) ); jPanel1.add(tpScene3Field); updateButton.setText("Update"); jPanel1.add(updateButton); cancelButton.setText("Cancel"); jPanel1.add(cancelButton); getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER); pack(); cancelButton.addActionListener( this ); updateButton.addActionListener( this ); }
|
3699 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3699/e3746491678a9f0bdee74ba64d785d53772c8516/FlyoverEditor.java/clean/src/net/starmen/pkhack/eb/FlyoverEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
1208,
7171,
1435,
540,
288,
5411,
3436,
2224,
273,
394,
6863,
18,
5328,
310,
18,
46,
2224,
5621,
5411,
17871,
21,
273,
394,
6863,
18,
5328,
310,
18,
46,
5537,
5621,
5411,
8071,
14370,
22,
2224,
273,
394,
6863,
18,
5328,
310,
18,
46,
2224,
5621,
5411,
8071,
14370,
22,
974,
273,
394,
6863,
18,
5328,
310,
18,
46,
16157,
5621,
5411,
8071,
14370,
23,
2224,
273,
394,
6863,
18,
5328,
310,
18,
46,
2224,
5621,
5411,
8071,
14370,
23,
974,
273,
394,
6863,
18,
5328,
310,
18,
46,
16157,
5621,
5411,
1089,
3616,
273,
394,
6863,
18,
5328,
310,
18,
46,
3616,
5621,
5411,
3755,
3616,
273,
394,
6863,
18,
5328,
310,
18,
46,
3616,
5621,
5411,
14109,
2932,
56,
19738,
5267,
9435,
264,
8863,
5411,
6788,
2932,
88,
19738,
1887,
782,
11455,
6353,
8863,
5411,
444,
607,
6934,
12,
5743,
1769,
5411,
527,
3829,
2223,
12,
2704,
2252,
18,
2219,
88,
18,
2575,
18,
3829,
4216,
1435,
288,
7734,
1071,
918,
2742,
15745,
12,
6290,
18,
2219,
88,
18,
2575,
18,
3829,
1133,
6324,
13,
288,
10792,
1746,
6353,
12,
73,
11734,
1769,
7734,
289,
5411,
15549,
5411,
3436,
2224,
18,
542,
1528,
2932,
2047,
1846,
2727,
1404,
5055,
4121,
4259,
854,
16,
2727,
1404,
2549,
2182,
8863,
5411,
5154,
8485,
7675,
1289,
12,
8551,
2224,
16,
2252,
18,
2219,
88,
18,
8107,
3744,
18,
50,
28212,
1769,
5411,
17871,
21,
18,
542,
3744,
12,
2704,
2252,
18,
2219,
88,
18,
6313,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
1208,
7171,
1435,
540,
288,
5411,
3436,
2224,
273,
394,
6863,
18,
5328,
310,
18,
46,
2224,
5621,
5411,
17871,
21,
273,
394,
6863,
18,
5328,
310,
18,
46,
5537,
5621,
5411,
8071,
14370,
22,
2224,
273,
394,
6863,
18,
5328,
310,
18,
46,
2224,
5621,
5411,
8071,
14370,
22,
974,
273,
394,
6863,
18,
5328,
310,
18,
46,
16157,
5621,
5411,
8071,
14370,
23,
2224,
273,
394,
6863,
18,
5328,
310,
18,
46,
2224,
5621,
5411,
8071,
14370,
23,
974,
273,
394,
6863,
18,
5328,
310,
18,
46,
16157,
5621,
5411,
1089,
3616,
273,
394,
6863,
18,
5328,
310,
18,
46,
3616,
5621,
5411,
3755,
3616,
273,
394,
6863,
18,
5328,
310,
18,
46,
3616,
2
] |
Date dt = df.parse(date+" "+time);
|
StringBuffer dateStringBuffer = new StringBuffer(date); dateStringBuffer.append(" "); dateStringBuffer.append(time); Date dt = DF_RFC977.parse(dateStringBuffer.toString());
|
private Date getDateFrom(StringTokenizer tok) { String date = tok.nextToken(); String time = tok.nextToken(); boolean utc = ( tok.hasMoreTokens() ); Date d = new Date(); DateFormat df = ( date.length() == 8 ) ? DF_DATEFROM_LONG : DF_DATEFROM_SHORT; try { Date dt = df.parse(date+" "+time); if ( utc ) dt = new Date(dt.getTime()+UTC_OFFSET); return dt; } catch ( ParseException pe ) { throw new NNTPException("date extraction failed: "+date+","+time+","+utc); } }
|
47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/ed5ab0a908ce2b7c52f13fab49a4b0f406ce05b9/NNTPHandler.java/buggy/src/java/org/apache/james/nntpserver/NNTPHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2167,
10713,
1265,
12,
780,
10524,
946,
13,
288,
3639,
514,
1509,
273,
946,
18,
4285,
1345,
5621,
3639,
514,
813,
273,
946,
18,
4285,
1345,
5621,
3639,
1250,
225,
9439,
273,
261,
946,
18,
5332,
7417,
5157,
1435,
11272,
3639,
2167,
302,
273,
394,
2167,
5621,
3639,
18371,
3013,
273,
261,
1509,
18,
2469,
1435,
422,
1725,
262,
692,
463,
42,
67,
4594,
11249,
67,
14639,
294,
463,
42,
67,
4594,
11249,
67,
15993,
31,
3639,
775,
288,
5411,
6674,
24757,
1892,
273,
394,
6674,
12,
712,
1769,
24757,
1892,
18,
6923,
2932,
315,
1769,
24757,
1892,
18,
6923,
12,
957,
1769,
2167,
3681,
273,
463,
42,
67,
17926,
29,
4700,
18,
2670,
12,
712,
780,
1892,
18,
10492,
10663,
5411,
309,
261,
9439,
262,
7734,
3681,
273,
394,
2167,
12,
7510,
18,
588,
950,
1435,
15,
11471,
67,
11271,
1769,
5411,
327,
3681,
31,
3639,
289,
1044,
261,
10616,
2804,
262,
288,
5411,
604,
394,
423,
1784,
52,
503,
2932,
712,
18752,
2535,
30,
13773,
712,
15,
15937,
15,
957,
15,
15937,
15,
17892,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2167,
10713,
1265,
12,
780,
10524,
946,
13,
288,
3639,
514,
1509,
273,
946,
18,
4285,
1345,
5621,
3639,
514,
813,
273,
946,
18,
4285,
1345,
5621,
3639,
1250,
225,
9439,
273,
261,
946,
18,
5332,
7417,
5157,
1435,
11272,
3639,
2167,
302,
273,
394,
2167,
5621,
3639,
18371,
3013,
273,
261,
1509,
18,
2469,
1435,
422,
1725,
262,
692,
463,
42,
67,
4594,
11249,
67,
14639,
294,
463,
42,
67,
4594,
11249,
67,
15993,
31,
3639,
775,
288,
5411,
6674,
24757,
1892,
273,
394,
6674,
12,
712,
1769,
24757,
1892,
18,
6923,
2932,
315,
1769,
24757,
1892,
18,
6923,
12,
957,
1769,
2167,
3681,
273,
463,
42,
67,
17926,
29,
4700,
18,
2670,
12,
712,
780,
2
] |
return new org.quickfix.fix43.SecurityStatus();
|
return new quickfix.fix43.SecurityStatus();
|
public Message create( String beginString, String msgType ) { if("0".equals(msgType)) { return new org.quickfix.fix43.Heartbeat(); } if("A".equals(msgType)) { return new org.quickfix.fix43.Logon(); } if("1".equals(msgType)) { return new org.quickfix.fix43.TestRequest(); } if("2".equals(msgType)) { return new org.quickfix.fix43.ResendRequest(); } if("3".equals(msgType)) { return new org.quickfix.fix43.Reject(); } if("4".equals(msgType)) { return new org.quickfix.fix43.SequenceReset(); } if("5".equals(msgType)) { return new org.quickfix.fix43.Logout(); } if("j".equals(msgType)) { return new org.quickfix.fix43.BusinessMessageReject(); } if("7".equals(msgType)) { return new org.quickfix.fix43.Advertisement(); } if("6".equals(msgType)) { return new org.quickfix.fix43.IndicationOfInterest(); } if("B".equals(msgType)) { return new org.quickfix.fix43.News(); } if("C".equals(msgType)) { return new org.quickfix.fix43.Email(); } if("R".equals(msgType)) { return new org.quickfix.fix43.QuoteRequest(); } if("AG".equals(msgType)) { return new org.quickfix.fix43.QuoteRequestReject(); } if("AH".equals(msgType)) { return new org.quickfix.fix43.RFQRequest(); } if("S".equals(msgType)) { return new org.quickfix.fix43.Quote(); } if("Z".equals(msgType)) { return new org.quickfix.fix43.QuoteCancel(); } if("a".equals(msgType)) { return new org.quickfix.fix43.QuoteStatusRequest(); } if("AI".equals(msgType)) { return new org.quickfix.fix43.QuoteStatusReport(); } if("i".equals(msgType)) { return new org.quickfix.fix43.MassQuote(); } if("b".equals(msgType)) { return new org.quickfix.fix43.MassQuoteAcknowledgement(); } if("V".equals(msgType)) { return new org.quickfix.fix43.MarketDataRequest(); } if("W".equals(msgType)) { return new org.quickfix.fix43.MarketDataSnapshotFullRefresh(); } if("X".equals(msgType)) { return new org.quickfix.fix43.MarketDataIncrementalRefresh(); } if("Y".equals(msgType)) { return new org.quickfix.fix43.MarketDataRequestReject(); } if("c".equals(msgType)) { return new org.quickfix.fix43.SecurityDefinitionRequest(); } if("d".equals(msgType)) { return new org.quickfix.fix43.SecurityDefinition(); } if("v".equals(msgType)) { return new org.quickfix.fix43.SecurityTypeRequest(); } if("w".equals(msgType)) { return new org.quickfix.fix43.SecurityTypes(); } if("x".equals(msgType)) { return new org.quickfix.fix43.SecurityListRequest(); } if("y".equals(msgType)) { return new org.quickfix.fix43.SecurityList(); } if("z".equals(msgType)) { return new org.quickfix.fix43.DerivativeSecurityListRequest(); } if("AA".equals(msgType)) { return new org.quickfix.fix43.DerivativeSecurityList(); } if("e".equals(msgType)) { return new org.quickfix.fix43.SecurityStatusRequest(); } if("f".equals(msgType)) { return new org.quickfix.fix43.SecurityStatus(); } if("g".equals(msgType)) { return new org.quickfix.fix43.TradingSessionStatusRequest(); } if("h".equals(msgType)) { return new org.quickfix.fix43.TradingSessionStatus(); } if("D".equals(msgType)) { return new org.quickfix.fix43.NewOrderSingle(); } if("8".equals(msgType)) { return new org.quickfix.fix43.ExecutionReport(); } if("Q".equals(msgType)) { return new org.quickfix.fix43.DontKnowTrade(); } if("G".equals(msgType)) { return new org.quickfix.fix43.OrderCancelReplaceRequest(); } if("F".equals(msgType)) { return new org.quickfix.fix43.OrderCancelRequest(); } if("9".equals(msgType)) { return new org.quickfix.fix43.OrderCancelReject(); } if("H".equals(msgType)) { return new org.quickfix.fix43.OrderStatusRequest(); } if("q".equals(msgType)) { return new org.quickfix.fix43.OrderMassCancelRequest(); } if("r".equals(msgType)) { return new org.quickfix.fix43.OrderMassCancelReport(); } if("AF".equals(msgType)) { return new org.quickfix.fix43.OrderMassStatusRequest(); } if("s".equals(msgType)) { return new org.quickfix.fix43.NewOrderCross(); } if("t".equals(msgType)) { return new org.quickfix.fix43.CrossOrderCancelReplaceRequest(); } if("u".equals(msgType)) { return new org.quickfix.fix43.CrossOrderCancelRequest(); } if("AB".equals(msgType)) { return new org.quickfix.fix43.NewOrderMultileg(); } if("AC".equals(msgType)) { return new org.quickfix.fix43.MultilegOrderCancelReplaceRequest(); } if("k".equals(msgType)) { return new org.quickfix.fix43.BidRequest(); } if("l".equals(msgType)) { return new org.quickfix.fix43.BidResponse(); } if("E".equals(msgType)) { return new org.quickfix.fix43.NewOrderList(); } if("m".equals(msgType)) { return new org.quickfix.fix43.ListStrikePrice(); } if("L".equals(msgType)) { return new org.quickfix.fix43.ListExecute(); } if("K".equals(msgType)) { return new org.quickfix.fix43.ListCancelRequest(); } if("M".equals(msgType)) { return new org.quickfix.fix43.ListStatusRequest(); } if("N".equals(msgType)) { return new org.quickfix.fix43.ListStatus(); } if("J".equals(msgType)) { return new org.quickfix.fix43.Allocation(); } if("P".equals(msgType)) { return new org.quickfix.fix43.AllocationACK(); } if("T".equals(msgType)) { return new org.quickfix.fix43.SettlementInstructions(); } if("AD".equals(msgType)) { return new org.quickfix.fix43.TradeCaptureReportRequest(); } if("AE".equals(msgType)) { return new org.quickfix.fix43.TradeCaptureReport(); } if("o".equals(msgType)) { return new org.quickfix.fix43.RegistrationInstructions(); } if("p".equals(msgType)) { return new org.quickfix.fix43.RegistrationInstructionsResponse(); } return new org.quickfix.fix43.Message(); }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/MessageFactory.java/buggy/src/java/src/quickfix/fix43/MessageFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2350,
752,
12,
514,
2376,
780,
16,
514,
1234,
559,
262,
288,
377,
309,
2932,
20,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
2358,
18,
19525,
904,
18,
904,
8942,
18,
15894,
5621,
282,
289,
565,
309,
2932,
37,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
2358,
18,
19525,
904,
18,
904,
8942,
18,
1343,
265,
5621,
282,
289,
565,
309,
2932,
21,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
2358,
18,
19525,
904,
18,
904,
8942,
18,
4709,
691,
5621,
282,
289,
565,
309,
2932,
22,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
2358,
18,
19525,
904,
18,
904,
8942,
18,
607,
409,
691,
5621,
282,
289,
565,
309,
2932,
23,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
2358,
18,
19525,
904,
18,
904,
8942,
18,
21705,
5621,
282,
289,
565,
309,
2932,
24,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
2358,
18,
19525,
904,
18,
904,
8942,
18,
4021,
7013,
5621,
282,
289,
565,
309,
2932,
25,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
2358,
18,
19525,
904,
18,
904,
8942,
18,
19456,
5621,
282,
289,
565,
309,
2932,
78,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
2358,
18,
19525,
904,
18,
904,
8942,
18,
13423,
1079,
21705,
5621,
282,
289,
565,
309,
2932,
27,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
2358,
18,
19525,
904,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2350,
752,
12,
514,
2376,
780,
16,
514,
1234,
559,
262,
288,
377,
309,
2932,
20,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
2358,
18,
19525,
904,
18,
904,
8942,
18,
15894,
5621,
282,
289,
565,
309,
2932,
37,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
2358,
18,
19525,
904,
18,
904,
8942,
18,
1343,
265,
5621,
282,
289,
565,
309,
2932,
21,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
2358,
18,
19525,
904,
18,
904,
8942,
18,
4709,
691,
5621,
282,
289,
565,
309,
2932,
22,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
2358,
18,
19525,
904,
18,
904,
8942,
18,
607,
409,
691,
2
] |
public RubyObject setupModule(Ruby ruby, RubyModule module) { // Node node = n; String file = ruby.getSourceFile(); int line = ruby.getSourceLine(); // TMP_PROTECT; ruby.getRubyFrame().tmpPush(); ruby.pushClass(); ruby.setRubyClass(module); ruby.setCBase(module); //CHAD ruby.getScope().push(); RubyVarmap.push(ruby); if (getTable() != null) { ruby.getScope().setLocalValues(new ArrayList(Collections.nCopies(getTable().size(), ruby.getNil()))); ruby.getScope().setLocalNames(getTable()); } else { ruby.getScope().setLocalValues(null); ruby.getScope().setLocalNames(null); } // +++ // if (ruby.getCRef() != null) { ruby.getCRef().push(module); // } else { // ruby.setCRef(new CRefNode(module, null)); // } // --- ruby.getRubyFrame().setCbase(ruby.getCRef()); // PUSH_TAG(PROT_NONE); RubyObject result = null; // if (( state = EXEC_TAG()) == 0 ) { // if (trace_func) { // call_trace_func("class", file, line, ruby_class, // ruby_frame->last_func, ruby_frame->last_class ); // } result = getNextNode() != null ? getNextNode().eval(ruby, ruby.getRubyClass()) : ruby.getNil(); // } // POP_TAG(); ruby.getCRef().pop(); RubyVarmap.pop(ruby); ruby.getScope().pop(); ruby.popClass(); ruby.getRubyFrame().tmpPop(); // if (trace_func){ // call_trace_func("end", file, line, 0, ruby_frame->last_func, ruby_frame->last_class ); // } // if (state != 0){ // JUMP_TAG(state); // } return result; }
|
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/7798138390a306a202dcec9bde45928dae2e852e/ScopeNode.java/buggy/org/jruby/nodes/ScopeNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
921,
3875,
3120,
12,
54,
10340,
22155,
16,
19817,
3120,
1605,
13,
288,
202,
202,
759,
2029,
756,
273,
290,
31,
202,
202,
780,
585,
273,
22155,
18,
588,
31150,
5621,
202,
202,
474,
980,
273,
22155,
18,
588,
1830,
1670,
5621,
202,
202,
759,
399,
4566,
67,
3373,
1448,
1268,
31,
202,
202,
27768,
18,
588,
54,
10340,
3219,
7675,
5645,
7621,
5621,
202,
202,
27768,
18,
6206,
797,
5621,
202,
202,
27768,
18,
542,
54,
10340,
797,
12,
2978,
1769,
202,
202,
27768,
18,
542,
39,
2171,
12,
2978,
1769,
368,
1792,
1880,
202,
202,
27768,
18,
588,
3876,
7675,
6206,
5621,
202,
202,
54,
10340,
1537,
1458,
18,
6206,
12,
27768,
1769,
202,
202,
430,
261,
588,
1388,
1435,
480,
446,
13,
288,
5411,
22155,
18,
588,
3876,
7675,
542,
2042,
1972,
12,
2704,
2407,
12,
15150,
18,
82,
15670,
12,
588,
1388,
7675,
1467,
9334,
22155,
18,
588,
12616,
1435,
3719,
1769,
1082,
202,
27768,
18,
588,
3876,
7675,
542,
2042,
1557,
12,
588,
1388,
10663,
202,
202,
97,
469,
288,
1082,
202,
27768,
18,
588,
3876,
7675,
542,
2042,
1972,
12,
2011,
1769,
1082,
202,
27768,
18,
588,
3876,
7675,
542,
2042,
1557,
12,
2011,
1769,
202,
202,
97,
202,
202,
759,
965,
15,
202,
202,
759,
309,
261,
27768,
18,
588,
39,
1957,
1435,
480,
446,
13,
288,
202,
202,
27768,
18,
588,
39,
1957,
7675,
6206,
12,
2978,
1769,
202,
202,
759,
289,
469,
288,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
921,
3875,
3120,
12,
54,
10340,
22155,
16,
19817,
3120,
1605,
13,
288,
202,
202,
759,
2029,
756,
273,
290,
31,
202,
202,
780,
585,
273,
22155,
18,
588,
31150,
5621,
202,
202,
474,
980,
273,
22155,
18,
588,
1830,
1670,
5621,
202,
202,
759,
399,
4566,
67,
3373,
1448,
1268,
31,
202,
202,
27768,
18,
588,
54,
10340,
3219,
7675,
5645,
7621,
5621,
202,
202,
27768,
18,
6206,
797,
5621,
202,
202,
27768,
18,
542,
54,
10340,
797,
12,
2978,
1769,
202,
202,
27768,
18,
542,
39,
2171,
12,
2978,
1769,
368,
1792,
1880,
202,
202,
27768,
18,
588,
3876,
7675,
6206,
5621,
202,
202,
54,
10340,
1537,
1458,
18,
6206,
12,
27768,
1769,
2
] |
||
this.stereoParity = stereoParity; }
|
this.stereoParity = stereoParity; }
|
public void setStereoParity(int stereoParity) { this.stereoParity = stereoParity; }
|
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/238421526bbe8e07c01acc0025a5e163882c01bf/Atom.java/buggy/org/openscience/cdk/Atom.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
13928,
22854,
1553,
560,
12,
474,
29558,
1553,
560,
13,
288,
202,
202,
2211,
18,
334,
822,
83,
1553,
560,
273,
29558,
1553,
560,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
13928,
22854,
1553,
560,
12,
474,
29558,
1553,
560,
13,
288,
202,
202,
2211,
18,
334,
822,
83,
1553,
560,
273,
29558,
1553,
560,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
this.set = attributeSet;
|
this.attrset = attributeSet;
|
public UnmodifiableAttributeSet(AttributeSet attributeSet) { if (attributeSet == null) throw new NullPointerException("attributeSet may not be null"); this.set = attributeSet; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/AttributeSetUtilities.java/buggy/core/src/classpath/javax/javax/print/attribute/AttributeSetUtilities.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1351,
13388,
1499,
694,
12,
1499,
694,
1566,
694,
13,
565,
288,
1377,
309,
261,
4589,
694,
422,
446,
13,
3639,
604,
394,
10108,
2932,
4589,
694,
2026,
486,
506,
446,
8863,
1377,
333,
18,
1747,
542,
273,
1566,
694,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1351,
13388,
1499,
694,
12,
1499,
694,
1566,
694,
13,
565,
288,
1377,
309,
261,
4589,
694,
422,
446,
13,
3639,
604,
394,
10108,
2932,
4589,
694,
2026,
486,
506,
446,
8863,
1377,
333,
18,
1747,
542,
273,
1566,
694,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public EncryptionKey getPrivateKey(String alias, char[] password)
|
public EncryptionKey getPrivateKey(String alias, char[] passphrase)
|
public EncryptionKey getPrivateKey(String alias, char[] password) throws KeyStoreException { if (! loaded) throw new KeyStoreException ( "store not loaded." ); return (EncryptionKey) privateKeyMap.get(alias); }
|
967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/d165be939399ddbd8d02685a168bc53515db3b75/GPGEncryptionKeyManager.java/clean/net/suberic/pooka/crypto/gpg/GPGEncryptionKeyManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
14585,
653,
27914,
653,
12,
780,
2308,
16,
1149,
8526,
15244,
13,
565,
1216,
17017,
503,
288,
565,
309,
16051,
4203,
13,
1377,
604,
394,
17017,
503,
261,
315,
2233,
486,
4203,
1199,
11272,
565,
327,
261,
26740,
13,
11896,
863,
18,
588,
12,
4930,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
14585,
653,
27914,
653,
12,
780,
2308,
16,
1149,
8526,
15244,
13,
565,
1216,
17017,
503,
288,
565,
309,
16051,
4203,
13,
1377,
604,
394,
17017,
503,
261,
315,
2233,
486,
4203,
1199,
11272,
565,
327,
261,
26740,
13,
11896,
863,
18,
588,
12,
4930,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public IOModes(IRuby runtime, String modesString) { this(runtime, convertModesStringToModesInt(runtime, modesString));
|
public IOModes(IRuby runtime) { modes = 0; this.runtime = runtime;
|
public IOModes(IRuby runtime, String modesString) { this(runtime, convertModesStringToModesInt(runtime, modesString)); }
|
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/4b12521bf34cff2c9841b1dacb1a929f6def5327/IOModes.java/buggy/src/org/jruby/util/IOModes.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1665,
18868,
12,
7937,
10340,
3099,
16,
514,
12382,
780,
13,
288,
377,
202,
2211,
12,
9448,
16,
1765,
18868,
23282,
18868,
1702,
12,
9448,
16,
12382,
780,
10019,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1665,
18868,
12,
7937,
10340,
3099,
16,
514,
12382,
780,
13,
288,
377,
202,
2211,
12,
9448,
16,
1765,
18868,
23282,
18868,
1702,
12,
9448,
16,
12382,
780,
10019,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
source.append((char)ts.RC); source.append((char)ts.EOL);
|
sourceAdd((char)ts.RC); sourceAdd((char)ts.EOL);
|
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 TokenStream.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 TokenStream.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 TokenStream.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 TokenStream.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 TokenStream.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 TokenStream.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 TokenStream.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 TokenStream.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); boolean sawDefaultCatch = false; int peek = ts.peekToken(); if (peek == ts.CATCH) { while (ts.matchToken(ts.CATCH)) { if (sawDefaultCatch) { reportError(ts, "msg.catch.unreachable"); } 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 (ts.matchToken(ts.IF)) { source.append((char)ts.IF); catchCond = expr(ts, source, false); } else { sawDefaultCatch = true; } 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 TokenStream.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 TokenStream.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 TokenStream.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 TokenStream.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 TokenStream.VAR: { int lineno = ts.getLineno(); pn = variables(ts, source, false); if (ts.getLineno() == lineno) wellTerminated(ts, ts.ERROR); break; } case TokenStream.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; } // XXX ASSERT pn pn = nf.createReturn(retExpr, lineno); break; } case TokenStream.LC: skipsemi = true; pn = statements(ts, source); mustMatchToken(ts, ts.RC, "msg.no.brace.block"); break; case TokenStream.ERROR: // Fall thru, to have a node for error recovery to work on case TokenStream.EOL: case TokenStream.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; } if (lastExprType == ts.FUNCTION) nf.setFunctionExpressionStatement(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; }
|
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/3d2e81a014b22cf4d1eb8921bd4229c2ca7ff017/Parser.java/buggy/js/rhino/src/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,
16,
2727,
1404,
527,
3174,
7492,
397,
19995,
358,
1084,
622,
326,
3639,
368,
679,
434,
333,
610,
475,
18,
225,
2457,
11360,
6317,
16,
11083,
19,
7473,
5527,
18,
3639,
1250,
2488,
307,
9197,
273,
629,
31,
3639,
509,
3574,
31,
3639,
509,
1142,
4742,
559,
273,
374,
31,
225,
368,
2457,
5492,
21888,
18,
225,
374,
358,
4543,
3436,
18,
3639,
3574,
273,
3742,
18,
588,
1345,
5621,
3639,
1620,
12,
748,
13,
288,
3639,
648,
3155,
1228,
18,
5501,
30,
288,
5411,
2488,
307,
9197,
273,
638,
31,
5411,
1084,
18,
6923,
12443,
3001,
13,
3428,
18,
5501,
1769,
5411,
509,
7586,
273,
3742,
18,
588,
48,
267,
5764,
5621,
5411,
1033,
6941,
273,
2269,
12,
3428,
16,
1084,
1769,
5411,
1084,
18,
6923,
12443,
3001,
13,
3428,
18,
13394,
1769,
5411,
1084,
18,
6923,
12443,
3001,
13,
3428,
18,
5842,
1769,
5411,
1033,
309,
5510,
273,
3021,
12,
3428,
16,
1084,
1769,
5411,
1033,
309,
8381,
273,
446,
31,
5411,
309,
261,
3428,
18,
1916,
1345,
12,
3428,
18,
2247,
1090,
3719,
288,
7734,
1084,
18,
6923,
12443,
3001,
13,
3428,
18,
11529,
1769,
7734,
1084,
18,
6923,
12443,
3001,
13,
3428,
18,
2247,
1090,
1769,
7734,
1084,
18,
6923,
12443,
3001,
13,
3428,
18,
13394,
1769,
7734,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
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,
16,
2727,
1404,
527,
3174,
7492,
397,
19995,
358,
1084,
622,
326,
3639,
368,
679,
434,
333,
610,
475,
18,
225,
2457,
11360,
6317,
16,
11083,
19,
7473,
5527,
18,
3639,
1250,
2488,
307,
9197,
273,
629,
31,
3639,
509,
3574,
31,
3639,
509,
1142,
4742,
559,
273,
374,
31,
225,
368,
2457,
5492,
21888,
18,
225,
374,
358,
4543,
3436,
18,
3639,
3574,
273,
3742,
18,
588,
1345,
5621,
3639,
1620,
12,
748,
13,
288,
3639,
648,
3155,
1228,
18,
5501,
30,
288,
2
] |
public boolean isOptional() {
|
public boolean isOptional() {
|
public boolean isOptional() { return optional; }
|
2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/ef68ef66f0feb3bc08bb217fe9abcd99045ef301/WrappingLookupCommand.java/buggy/src/share/org/apache/struts/chain/commands/generic/WrappingLookupCommand.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
27039,
1435,
565,
288,
3639,
327,
3129,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
27039,
1435,
565,
288,
3639,
327,
3129,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (tipShell.getShell() != null && tipShell.getShell().getParent() != null
|
if (tipShell.getShell() != null && tipShell.getShell().getParent() != null && Display.getCurrent().getActiveShell() != null
|
public void activateHoverHelp(final Control control) { /* * Get out of the way if we attempt to activate the control underneath * the tooltip */ control.addMouseListener(new MouseAdapter() { @Override public void mouseDown(MouseEvent e) { if (tipShell.isVisible()) tipShell.setVisible(false); } }); /* * Trap hover events to pop-up tooltip */ control.addMouseTrackListener(new MouseTrackAdapter() { @Override public void mouseExit(MouseEvent e) { if (tipShell.isVisible()) tipShell.setVisible(false); tipWidget = null; } @Override public void mouseHover(MouseEvent event) { widgetPosition = new Point(event.x, event.y); Widget widget = event.widget; if (widget instanceof ToolBar) { ToolBar w = (ToolBar) widget; widget = w.getItem(widgetPosition); } if (widget instanceof Table) { Table w = (Table) widget; widget = w.getItem(widgetPosition); } if (widget instanceof Tree) { Tree w = (Tree) widget; widget = w.getItem(widgetPosition); } if (widget == null) { tipShell.setVisible(false); tipWidget = null; return; } if (widget == tipWidget) return; tipWidget = widget; tipPosition = control.toDisplay(widgetPosition); String text = getToolTipText(widget); Image image = getToolTipImage(widget); if (text == null) { // HACK: don't check length return; } if (tipShell.getShell() != null && tipShell.getShell().getParent() != null && tipShell.getShell().getParent() != Display.getCurrent().getActiveShell()) { tipShell = createTipShell(Display.getCurrent().getActiveShell()); } tipLabelText.setText(text); tipLabelImage.setImage(image); // accepts null tipShell.pack(); setHoverLocation(tipShell, tipPosition); tipShell.setVisible(true); } }); // /* // * Trap F1 Help to pop up a custom help box // */ // control.addHelpListener(new HelpListener() { // public void helpRequested(HelpEvent event) { // if (tipWidget == null) // return; // Object help = getToolTipHelp(tipWidget); // if (help == null) // return; // if (help.getClass() != String.class) { // return; // } // if (tipShell.isVisible()) { // tipShell.setVisible(false); // Shell helpShell = new Shell(parentShell, SWT.SHELL_TRIM); // helpShell.setLayout(new FillLayout()); // Label label = new Label(helpShell, SWT.NONE); // label.setText((String) help); // helpShell.pack(); // setHoverLocation(helpShell, tipPosition); // helpShell.open(); // } // } // }); }
|
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/c53c8dcec116cb78a83b31ee764935869de8c192/ToolTipHandler.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/views/ToolTipHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
10235,
21184,
6696,
12,
6385,
8888,
3325,
13,
288,
202,
202,
20308,
1082,
380,
968,
596,
434,
326,
4031,
309,
732,
4395,
358,
10235,
326,
3325,
3613,
4644,
421,
1082,
380,
326,
11915,
1082,
1195,
202,
202,
7098,
18,
1289,
9186,
2223,
12,
2704,
17013,
4216,
1435,
288,
1082,
202,
36,
6618,
1082,
202,
482,
918,
7644,
4164,
12,
9186,
1133,
425,
13,
288,
9506,
202,
430,
261,
14587,
13220,
18,
291,
6207,
10756,
6862,
202,
14587,
13220,
18,
542,
6207,
12,
5743,
1769,
1082,
202,
97,
202,
202,
22938,
202,
202,
20308,
1082,
380,
399,
1266,
15758,
2641,
358,
1843,
17,
416,
11915,
1082,
1195,
202,
202,
7098,
18,
1289,
9186,
4402,
2223,
12,
2704,
17013,
4402,
4216,
1435,
288,
1082,
202,
36,
6618,
1082,
202,
482,
918,
7644,
6767,
12,
9186,
1133,
425,
13,
288,
9506,
202,
430,
261,
14587,
13220,
18,
291,
6207,
10756,
6862,
202,
14587,
13220,
18,
542,
6207,
12,
5743,
1769,
9506,
202,
14587,
4609,
273,
446,
31,
1082,
202,
97,
1082,
202,
36,
6618,
1082,
202,
482,
918,
7644,
21184,
12,
9186,
1133,
871,
13,
288,
9506,
202,
6587,
2555,
273,
394,
4686,
12,
2575,
18,
92,
16,
871,
18,
93,
1769,
9506,
202,
4609,
3604,
273,
871,
18,
6587,
31,
9506,
202,
430,
261,
6587,
1276,
13288,
5190,
13,
288,
6862,
202,
6364,
5190,
341,
273,
261,
6364,
5190,
13,
3604,
31,
6862,
202,
6587,
273,
341,
18,
588,
1180,
12,
6587,
2555,
1769,
9506,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
10235,
21184,
6696,
12,
6385,
8888,
3325,
13,
288,
202,
202,
20308,
1082,
380,
968,
596,
434,
326,
4031,
309,
732,
4395,
358,
10235,
326,
3325,
3613,
4644,
421,
1082,
380,
326,
11915,
1082,
1195,
202,
202,
7098,
18,
1289,
9186,
2223,
12,
2704,
17013,
4216,
1435,
288,
1082,
202,
36,
6618,
1082,
202,
482,
918,
7644,
4164,
12,
9186,
1133,
425,
13,
288,
9506,
202,
430,
261,
14587,
13220,
18,
291,
6207,
10756,
6862,
202,
14587,
13220,
18,
542,
6207,
12,
5743,
1769,
1082,
202,
97,
202,
202,
22938,
202,
202,
20308,
1082,
380,
399,
1266,
15758,
2641,
358,
1843,
17,
416,
11915,
1082,
1195,
202,
202,
7098,
18,
1289,
9186,
4402,
2223,
12,
2
] |
public void remove (Component comp)
|
public void remove (int index)
|
public void remove (Component comp) { remove (getIndexOf (comp)); }
|
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/363fe84fd732aa8ca3562fb0734fe48ee20c2c65/JLayeredPane.java/buggy/libraries/javalib/javax/swing/JLayeredPane.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1206,
261,
474,
770,
13,
225,
288,
565,
1206,
261,
588,
31985,
261,
2919,
10019,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1206,
261,
474,
770,
13,
225,
288,
565,
1206,
261,
588,
31985,
261,
2919,
10019,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Object lblObect = target.getProp(Node.LABEL_PROP); if (lblObect == null) {
|
targetLabel = target.getIntProp(Node.LABEL_PROP, -1); if (targetLabel == -1) {
|
private int addGoto(Node node, int gotoOp, int iCodeTop) { int targetLabel; if (node.getType() == TokenStream.RETURN) { if (itsEpilogLabel == -1) itsEpilogLabel = acquireLabel(); targetLabel = itsEpilogLabel; } else { Node target = (Node)(node.getProp(Node.TARGET_PROP)); Object lblObect = target.getProp(Node.LABEL_PROP); if (lblObect == null) { targetLabel = acquireLabel(); target.putProp(Node.LABEL_PROP, new Integer(targetLabel)); } else targetLabel = ((Integer)lblObect).intValue(); } iCodeTop = addGoto(targetLabel, (byte) gotoOp, iCodeTop); return iCodeTop; }
|
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/f6c346cc7699c007b0b9b27d9c3cdb5446052c64/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
527,
43,
6302,
12,
907,
756,
16,
509,
2897,
3817,
16,
509,
277,
1085,
3401,
13,
565,
288,
3639,
509,
1018,
2224,
31,
3639,
309,
261,
2159,
18,
588,
559,
1435,
422,
3155,
1228,
18,
14033,
13,
288,
5411,
309,
261,
1282,
18918,
21947,
2224,
422,
300,
21,
13,
7734,
2097,
18918,
21947,
2224,
273,
10533,
2224,
5621,
5411,
1018,
2224,
273,
2097,
18918,
21947,
2224,
31,
3639,
289,
3639,
469,
288,
5411,
2029,
1018,
273,
261,
907,
21433,
2159,
18,
588,
4658,
12,
907,
18,
16374,
67,
15811,
10019,
5411,
1033,
14284,
10516,
386,
273,
1018,
18,
588,
4658,
12,
907,
18,
13545,
67,
15811,
1769,
5411,
309,
261,
31885,
10516,
386,
422,
446,
13,
288,
7734,
1018,
2224,
273,
10533,
2224,
5621,
7734,
1018,
18,
458,
4658,
12,
907,
18,
13545,
67,
15811,
16,
394,
2144,
12,
3299,
2224,
10019,
5411,
289,
5411,
469,
7734,
1018,
2224,
273,
14015,
4522,
13,
31885,
10516,
386,
2934,
474,
620,
5621,
3639,
289,
3639,
277,
1085,
3401,
273,
527,
43,
6302,
12,
3299,
2224,
16,
261,
7229,
13,
2897,
3817,
16,
277,
1085,
3401,
1769,
3639,
327,
277,
1085,
3401,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
527,
43,
6302,
12,
907,
756,
16,
509,
2897,
3817,
16,
509,
277,
1085,
3401,
13,
565,
288,
3639,
509,
1018,
2224,
31,
3639,
309,
261,
2159,
18,
588,
559,
1435,
422,
3155,
1228,
18,
14033,
13,
288,
5411,
309,
261,
1282,
18918,
21947,
2224,
422,
300,
21,
13,
7734,
2097,
18918,
21947,
2224,
273,
10533,
2224,
5621,
5411,
1018,
2224,
273,
2097,
18918,
21947,
2224,
31,
3639,
289,
3639,
469,
288,
5411,
2029,
1018,
273,
261,
907,
21433,
2159,
18,
588,
4658,
12,
907,
18,
16374,
67,
15811,
10019,
5411,
1033,
14284,
10516,
386,
273,
1018,
18,
588,
4658,
12,
907,
18,
13545,
67,
15811,
1769,
5411,
309,
261,
31885,
10516,
386,
422,
446,
13,
2
] |
MylarTaskListPlugin.getDefault().getTaskListNotificationManager().startNotification(1);
|
public IStatus run(IProgressMonitor monitor) { try { monitor.beginTask(LABEL_SYNCHRONIZE_TASK, repositoryTasks.size()); setProperty(IProgressConstants.ICON_PROPERTY, TaskListImages.REPOSITORY_SYNCHRONIZE); for (final AbstractRepositoryTask repositoryTask : repositoryTasks) { if (monitor.isCanceled()) throw new OperationCanceledException(); // TODO: refactor conditions boolean canNotSynch = repositoryTask.isDirty() || repositoryTask.isSynchronizing(); boolean hasLocalChanges = repositoryTask.getSyncState() == RepositoryTaskSyncState.OUTGOING || repositoryTask.getSyncState() == RepositoryTaskSyncState.CONFLICT; if (forceSync || (!canNotSynch && !hasLocalChanges) || !repositoryTask.isDownloaded()) { monitor.setTaskName(LABEL_SYNCHRONIZING + repositoryTask.getDescription()); repositoryTask.setCurrentlyDownloading(true); MylarTaskListPlugin.getTaskListManager().getTaskList().notifyRepositoryInfoChanged(repositoryTask); IOfflineTaskHandler offlineHandler = connector.getOfflineTaskHandler(); if (offlineHandler != null) { RepositoryTaskData downloadedTaskData = null; try { downloadedTaskData = offlineHandler.downloadTaskData(repositoryTask); } catch (final CoreException e) { MylarStatusHandler.log(e.getStatus()); } if (downloadedTaskData != null) { boolean changed = connector.updateOfflineState(repositoryTask, downloadedTaskData, forceSync); connector.updateTaskState(repositoryTask); if(changed) { refreshEditors(repositoryTask); } } } // else {// MylarStatusHandler.log("No offline content handler available for "// + connector.getRepositoryType() + " connector.", this);// } repositoryTask.setCurrentlyDownloading(false); MylarTaskListPlugin.getTaskListManager().getTaskList().notifyRepositoryInfoChanged(repositoryTask); } monitor.worked(1); } } catch (Exception e) { MylarStatusHandler.fail(e, "Could not download report", false); } finally { monitor.done(); } // this.connector.removeRefreshingTask(repositoryTask); return new Status(IStatus.OK, MylarPlugin.PLUGIN_ID, IStatus.OK, "", null); }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/a433fae12991c8a627b02857b69f38c50de94679/SynchronizeTaskJob.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/provisional/tasklist/SynchronizeTaskJob.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8005,
7901,
2174,
682,
3773,
18,
588,
1868,
7675,
588,
2174,
682,
4386,
1318,
7675,
1937,
4386,
12,
21,
1769,
225,
467,
1482,
8005,
7901,
2174,
682,
3773,
18,
588,
1868,
7675,
588,
2174,
682,
4386,
1318,
7675,
1937,
4386,
12,
21,
1769,
225,
1086,
12,
45,
5491,
7187,
8005,
7901,
2174,
682,
3773,
18,
588,
1868,
7675,
588,
2174,
682,
4386,
1318,
7675,
1937,
4386,
12,
21,
1769,
225,
6438,
13,
8005,
7901,
2174,
682,
3773,
18,
588,
1868,
7675,
588,
2174,
682,
4386,
1318,
7675,
1937,
4386,
12,
21,
1769,
225,
288,
202,
202,
698,
8005,
7901,
2174,
682,
3773,
18,
588,
1868,
7675,
588,
2174,
682,
4386,
1318,
7675,
1937,
4386,
12,
21,
1769,
225,
288,
1082,
202,
10259,
18,
10086,
2174,
12,
13545,
67,
7474,
50,
1792,
19359,
15641,
67,
15580,
16,
8005,
7901,
2174,
682,
3773,
18,
588,
1868,
7675,
588,
2174,
682,
4386,
1318,
7675,
1937,
4386,
12,
21,
1769,
225,
3352,
6685,
18,
1467,
10663,
1082,
202,
542,
1396,
12,
45,
5491,
2918,
18,
21745,
67,
9900,
16,
8005,
7901,
2174,
682,
3773,
18,
588,
1868,
7675,
588,
2174,
682,
4386,
1318,
7675,
1937,
4386,
12,
21,
1769,
225,
3837,
682,
8946,
18,
862,
30986,
67,
7474,
50,
1792,
19359,
15641,
1769,
1082,
202,
1884,
8005,
7901,
2174,
682,
3773,
18,
588,
1868,
7675,
588,
2174,
682,
4386,
1318,
7675,
1937,
4386,
12,
21,
1769,
225,
261,
6385,
8005,
7901,
2174,
682,
3773,
18,
588,
1868,
7675,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8005,
7901,
2174,
682,
3773,
18,
588,
1868,
7675,
588,
2174,
682,
4386,
1318,
7675,
1937,
4386,
12,
21,
1769,
225,
467,
1482,
8005,
7901,
2174,
682,
3773,
18,
588,
1868,
7675,
588,
2174,
682,
4386,
1318,
7675,
1937,
4386,
12,
21,
1769,
225,
1086,
12,
45,
5491,
7187,
8005,
7901,
2174,
682,
3773,
18,
588,
1868,
7675,
588,
2174,
682,
4386,
1318,
7675,
1937,
4386,
12,
21,
1769,
225,
6438,
13,
8005,
7901,
2174,
682,
3773,
18,
588,
1868,
7675,
588,
2174,
682,
4386,
1318,
7675,
1937,
4386,
12,
21,
1769,
225,
288,
202,
202,
698,
8005,
7901,
2174,
682,
3773,
18,
588,
1868,
7675,
588,
2174,
682,
4386,
1318,
7675,
1937,
4386,
12,
21,
2
] |
|
protected static GrailsMethodExpression create(final GrailsApplication application,Class clazz, String queryParameter) { if(queryParameter.endsWith( LESS_THAN_OR_EQUAL )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, LESS_THAN_OR_EQUAL), LESS_THAN_OR_EQUAL, 1, isNegation(queryParameter, LESS_THAN_OR_EQUAL) ) { Criterion createCriterion() { return Expression.le( this.propertyName, arguments[0] ); } }; } else if(queryParameter.endsWith( LESS_THAN )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, LESS_THAN), LESS_THAN, 1, // argument count isNegation(queryParameter, LESS_THAN) ) { Criterion createCriterion() { return Expression.lt( this.propertyName, arguments[0] ); } }; } else if(queryParameter.endsWith( GREATER_THAN_OR_EQUAL )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, GREATER_THAN_OR_EQUAL), GREATER_THAN_OR_EQUAL, 1, isNegation(queryParameter, GREATER_THAN_OR_EQUAL) ) { Criterion createCriterion() { return Expression.ge( this.propertyName, arguments[0] ); } }; } else if(queryParameter.endsWith( GREATER_THAN )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, GREATER_THAN), GREATER_THAN, 1, isNegation(queryParameter, GREATER_THAN) ) { Criterion createCriterion() { return Expression.gt( this.propertyName, arguments[0] ); } }; } else if(queryParameter.endsWith( LIKE )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, LIKE), LIKE, 1, isNegation(queryParameter, LIKE) ) { Criterion createCriterion() { return Expression.like( this.propertyName, arguments[0] ); } }; } else if(queryParameter.endsWith( IS_NOT_NULL )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, IS_NOT_NULL), IS_NOT_NULL, 0, isNegation(queryParameter, IS_NOT_NULL) ) { Criterion createCriterion() { return Expression.isNotNull( this.propertyName ); } }; } else if(queryParameter.endsWith( IS_NULL )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, IS_NULL), IS_NULL, 0, isNegation(queryParameter, IS_NULL) ) { Criterion createCriterion() { return Expression.isNull( this.propertyName ); } }; } else if(queryParameter.endsWith( BETWEEN )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, BETWEEN), BETWEEN, 2, isNegation(queryParameter, BETWEEN) ) { Criterion createCriterion() { return Expression.between( this.propertyName,this.arguments[0], this.arguments[1] ); } }; } else if(queryParameter.endsWith( NOT_EQUAL )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, NOT_EQUAL), NOT_EQUAL, 1, isNegation(queryParameter, NOT_EQUAL) ) { Criterion createCriterion() { return Expression.ne( this.propertyName,this.arguments[0]); } }; } else { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, null), EQUAL, 1, isNegation(queryParameter, EQUAL) ) { Criterion createCriterion() { return Expression.eq( this.propertyName,this.arguments[0]); } }; } }
|
52953 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52953/eb420a51890989f6ca7f281725a19ebec728f77c/AbstractClausedStaticPersistentMethod.java/buggy/src/persistence/org/codehaus/groovy/grails/orm/hibernate/metaclass/AbstractClausedStaticPersistentMethod.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1117,
760,
10812,
14573,
1305,
2300,
752,
12,
6385,
10812,
14573,
3208,
2521,
16,
797,
4003,
16,
514,
843,
1662,
13,
288,
1082,
202,
430,
12,
2271,
1662,
18,
5839,
1190,
12,
21216,
67,
22408,
67,
916,
67,
12853,
8623,
288,
9506,
202,
2463,
394,
10812,
14573,
1305,
2300,
12,
25083,
202,
3685,
16,
25083,
202,
830,
3638,
16,
25083,
202,
12448,
13073,
12,
2271,
1662,
16,
21216,
67,
22408,
67,
916,
67,
12853,
3631,
25083,
202,
26005,
67,
22408,
67,
916,
67,
12853,
16,
9944,
202,
21,
16,
25083,
202,
291,
14337,
367,
12,
2271,
1662,
16,
21216,
67,
22408,
67,
916,
67,
12853,
13,
262,
288,
6862,
202,
13210,
752,
13210,
1435,
288,
25083,
202,
2463,
5371,
18,
298,
12,
333,
18,
4468,
461,
16,
1775,
63,
20,
65,
11272,
6862,
202,
97,
9506,
202,
20451,
1082,
202,
97,
25083,
202,
12107,
309,
12,
2271,
1662,
18,
5839,
1190,
12,
21216,
67,
22408,
8623,
288,
9506,
202,
2463,
394,
10812,
14573,
1305,
2300,
12,
25083,
202,
3685,
16,
9944,
202,
830,
3638,
16,
25083,
202,
12448,
13073,
12,
2271,
1662,
16,
21216,
67,
22408,
3631,
25083,
202,
26005,
67,
22408,
16,
9944,
202,
21,
16,
368,
1237,
1056,
25083,
202,
291,
14337,
367,
12,
2271,
1662,
16,
21216,
67,
22408,
13,
262,
288,
6862,
202,
13210,
752,
13210,
1435,
288,
25083,
202,
2463,
5371,
18,
5618,
12,
333,
18,
4468,
461,
16,
1775,
63,
20,
65,
11272,
6862,
202,
97,
9506,
202,
20451,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1117,
760,
10812,
14573,
1305,
2300,
752,
12,
6385,
10812,
14573,
3208,
2521,
16,
797,
4003,
16,
514,
843,
1662,
13,
288,
1082,
202,
430,
12,
2271,
1662,
18,
5839,
1190,
12,
21216,
67,
22408,
67,
916,
67,
12853,
8623,
288,
9506,
202,
2463,
394,
10812,
14573,
1305,
2300,
12,
25083,
202,
3685,
16,
25083,
202,
830,
3638,
16,
25083,
202,
12448,
13073,
12,
2271,
1662,
16,
21216,
67,
22408,
67,
916,
67,
12853,
3631,
25083,
202,
26005,
67,
22408,
67,
916,
67,
12853,
16,
9944,
202,
21,
16,
25083,
202,
291,
14337,
367,
12,
2271,
1662,
16,
21216,
67,
22408,
67,
916,
67,
12853,
13,
262,
288,
6862,
202,
13210,
752,
13210,
1435,
288,
25083,
202,
2
] |
||
dAxisValue += dAxisStep;
|
if ( i == da.length - 2 ) { dAxisValue = Methods.asDouble( sc.getMaximum( ) ) .doubleValue( ); } else { dAxisValue += dAxisStep; }
|
public final void renderEachAxis( IPrimitiveRenderer ipr, Plot pl, OneAxis ax, int iWhatToDraw ) throws ChartException { final RunTimeContext rtc = getRunTimeContext( ); final Axis axModel = ax.getModelAxis( ); final PlotWithAxes pwa = (PlotWithAxes) getComputations( ); final Insets insCA = pwa.getAxes( ).getInsets( ); final ScriptHandler sh = getRunTimeContext( ).getScriptHandler( ); final double dLocation = ax.getAxisCoordinate( ); final AutoScale sc = ax.getScale( ); final IntersectionValue iv = ax.getIntersectionValue( ); final int iMajorTickStyle = ax.getGrid( ) .getTickStyle( IConstants.MAJOR ); final int iMinorTickStyle = ax.getGrid( ) .getTickStyle( IConstants.MINOR ); final int iLabelLocation = ax.getLabelPosition( ); final int iOrientation = ax.getOrientation( ); final IDisplayServer xs = this.getDevice( ).getDisplayServer( ); Label la = LabelImpl.copyInstance( ax.getLabel( ) ); final double[] daEndPoints = sc.getEndPoints( ); final double[] da = sc.getTickCordinates( ); final double[] daMinor = sc.getMinorCoordinates( ax.getGrid( ) .getMinorCountPerMajor( ) ); String sText = null; final int iDimension = pwa.getDimension( ); final double dSeriesThickness = pwa.getSeriesThickness( ); final NumberDataElement nde = NumberDataElementImpl.create( 0 ); final FormatSpecifier fs = ax.getModelAxis( ).getFormatSpecifier( ); final double dStaggeredLabelOffset = sc.computeStaggeredAxisLabelOffset( xs, la, iOrientation ); final boolean bAxisLabelStaggered = sc.isAxisLabelStaggered( ); DecimalFormat df = null; final LineAttributes lia = ax.getLineAttributes( ); final LineAttributes liaMajorTick = ax.getGrid( ) .getTickAttributes( IConstants.MAJOR ); final LineAttributes liaMinorTick = ax.getGrid( ) .getTickAttributes( IConstants.MINOR ); if ( !lia.isSetVisible( ) ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, "exception.unset.axis.visibility", //$NON-NLS-1$ ResourceBundle.getBundle( Messages.ENGINE, getRunTimeContext( ).getULocale( ).toLocale( ) ) ); } final boolean bRenderAxisLabels = ( ( iWhatToDraw & IConstants.LABELS ) == IConstants.LABELS && la.isVisible( ) ); final boolean bRenderAxisTitle = ( ( iWhatToDraw & IConstants.LABELS ) == IConstants.LABELS ); Location lo = LocationImpl.create( 0, 0 ); final TransformationEvent trae = (TransformationEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), TransformationEvent.class ); final TextRenderEvent tre = (TextRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), TextRenderEvent.class ); tre.setLabel( la ); tre.setTextPosition( iLabelLocation ); tre.setLocation( lo ); final LineRenderEvent lre = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( 0, 0 ) ); lre.setEnd( LocationImpl.create( 0, 0 ) ); // Prepare 3D rendering variables. final boolean bRendering3D = iDimension == IConstants.THREE_D; final boolean bRenderOrthogonal3DAxis = ( iWhatToDraw & IConstants.ORTHOGONAL_AXIS ) == IConstants.ORTHOGONAL_AXIS && bRendering3D; final boolean bRenderBase3DAxis = ( iWhatToDraw & IConstants.BASE_AXIS ) == IConstants.BASE_AXIS && bRendering3D; final boolean bRenderAncillary3DAxis = ( iWhatToDraw & IConstants.ANCILLARY_AXIS ) == IConstants.ANCILLARY_AXIS && bRendering3D; final DeferredCache dc = getDeferredCache( ); final int axisType = ax.getAxisType( ); final Bounds boPlot = getPlotBounds( ); final boolean bTransposed = ( (ChartWithAxes) getModel( ) ).isTransposed( ); double[] daEndPoints3D = null; double[] da3D = null; Location3D lo3d = null; Text3DRenderEvent t3dre = null; Line3DRenderEvent l3dre = null; double dXStart = 0; double dZStart = 0; double dXEnd = 0; double dZEnd = 0; if ( iDimension == IConstants.THREE_D ) { AllAxes aax = pwa.getAxes( ); dXEnd = aax.getPrimaryBase( ).getScale( ).getEnd( ); dZEnd = aax.getAncillaryBase( ).getScale( ).getEnd( ); dXStart = aax.getPrimaryBase( ).getScale( ).getStart( ); dZStart = aax.getAncillaryBase( ).getScale( ).getStart( ); daEndPoints3D = sc.getEndPoints( ); da3D = sc.getTickCordinates( ); lo3d = Location3DImpl.create( 0, 0, 0 ); t3dre = (Text3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Text3DRenderEvent.class ); t3dre.setLabel( la ); t3dre.setAction( Text3DRenderEvent.RENDER_TEXT_AT_LOCATION ); t3dre.setTextPosition( iLabelLocation ); t3dre.setLocation3D( lo3d ); l3dre = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dre.setLineAttributes( lia ); l3dre.setStart3D( Location3DImpl.create( 0, 0, 0 ) ); l3dre.setEnd3D( Location3DImpl.create( 0, 0, 0 ) ); } if ( iOrientation == IConstants.VERTICAL ) { int y; int y3d = 0; double dX = dLocation; double dZ = 0; if ( bRendering3D ) { Location3D l3d = ax.getAxisCoordinate3D( ); dX = l3d.getX( ); dZ = l3d.getZ( ); } if ( iv != null && iv.getType( ) == IntersectionValue.MAX && iDimension == IConstants.TWO_5_D ) { trae.setTransform( TransformationEvent.TRANSLATE ); trae.setTranslation( dSeriesThickness, -dSeriesThickness ); ipr.applyTransformation( trae ); } double dXTick1 = ( ( iMajorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX; double dXTick2 = ( ( iMajorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS && lia.isVisible( ) ) { if ( bRenderOrthogonal3DAxis ) { final double dStart = daEndPoints3D[0]; final double dEnd = daEndPoints3D[1]; l3dre.setLineAttributes( lia ); // center l3dre.setStart3D( dX, dStart, dZ ); l3dre.setEnd3D( dX, dEnd, dZ ); dc.addLine( l3dre ); // left l3dre.setStart3D( dX, dStart, dZEnd ); l3dre.setEnd3D( dX, dEnd, dZEnd ); dc.addLine( l3dre ); // right l3dre.setStart3D( dXEnd, dStart, dZ ); l3dre.setEnd3D( dXEnd, dEnd, dZ ); dc.addLine( l3dre ); if ( isInteractivityEnabled( ) ) { Trigger tg; EList elTriggers = axModel.getTriggers( ); if ( !elTriggers.isEmpty( ) ) { ArrayList cachedTriggers = null; Location3D[] loaHotspot = new Location3D[4]; Polygon3DRenderEvent pre3d = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Polygon3DRenderEvent.class ); // process center y-axis. loaHotspot[0] = Location3DImpl.create( dX - IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZ + IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[1] = Location3DImpl.create( dX + IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZ - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[2] = Location3DImpl.create( dX + IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZ - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[3] = Location3DImpl.create( dX - IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZ + IConstants.LINE_EXPAND_DOUBLE_SIZE ); pre3d.setPoints3D( loaHotspot ); pre3d.setDoubleSided( true ); if ( get3DEngine( ).processEvent( pre3d, boPlot.getLeft( ), boPlot.getTop( ) ) != null ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); cachedTriggers = new ArrayList( ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = TriggerImpl.copyInstance( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); cachedTriggers.add( tg ); iev.addTrigger( TriggerImpl.copyInstance( tg ) ); } iev.setHotSpot( pre3d ); ipr.enableInteraction( iev ); } // process left y-axis. pre3d = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Polygon3DRenderEvent.class ); loaHotspot = new Location3D[4]; loaHotspot[0] = Location3DImpl.create( dXStart - IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZEnd + IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[1] = Location3DImpl.create( dXStart + IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZEnd - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[2] = Location3DImpl.create( dXStart + IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZEnd - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[3] = Location3DImpl.create( dXStart - IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZEnd + IConstants.LINE_EXPAND_DOUBLE_SIZE ); pre3d.setPoints3D( loaHotspot ); pre3d.setDoubleSided( true ); if ( get3DEngine( ).processEvent( pre3d, boPlot.getLeft( ), boPlot.getTop( ) ) != null ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); if ( cachedTriggers == null ) { cachedTriggers = new ArrayList( ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = TriggerImpl.copyInstance( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); cachedTriggers.add( tg ); iev.addTrigger( TriggerImpl.copyInstance( tg ) ); } } else { for ( int t = 0; t < cachedTriggers.size( ); t++ ) { iev.addTrigger( TriggerImpl.copyInstance( (Trigger) cachedTriggers.get( t ) ) ); } } iev.setHotSpot( pre3d ); ipr.enableInteraction( iev ); } // process right y-axis. pre3d = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Polygon3DRenderEvent.class ); loaHotspot = new Location3D[4]; loaHotspot[0] = Location3DImpl.create( dXEnd - IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZStart + IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[1] = Location3DImpl.create( dXEnd + IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZStart - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[2] = Location3DImpl.create( dXEnd + IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZStart - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[3] = Location3DImpl.create( dXEnd - IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZStart + IConstants.LINE_EXPAND_DOUBLE_SIZE ); pre3d.setPoints3D( loaHotspot ); pre3d.setDoubleSided( true ); if ( get3DEngine( ).processEvent( pre3d, boPlot.getLeft( ), boPlot.getTop( ) ) != null ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); if ( cachedTriggers == null ) { for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = TriggerImpl.copyInstance( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); iev.addTrigger( tg ); } } else { for ( int t = 0; t < cachedTriggers.size( ); t++ ) { iev.addTrigger( (Trigger) cachedTriggers.get( t ) ); } } iev.setHotSpot( pre3d ); ipr.enableInteraction( iev ); } } } } else { double dStart = daEndPoints[0] + insCA.getBottom( ), dEnd = daEndPoints[1] - insCA.getTop( ); if ( sc.getDirection( ) == IConstants.FORWARD ) { dStart = daEndPoints[1] + insCA.getBottom( ); dEnd = daEndPoints[0] - insCA.getTop( ); } if ( iv != null && iv.getType( ) == IntersectionValue.VALUE && iDimension == IConstants.TWO_5_D ) { final Location[] loa = new Location[4]; loa[0] = LocationImpl.create( dX, dStart ); loa[1] = LocationImpl.create( dX + dSeriesThickness, dStart - dSeriesThickness ); loa[2] = LocationImpl.create( dX + dSeriesThickness, dEnd - dSeriesThickness ); loa[3] = LocationImpl.create( dX, dEnd ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), PolygonRenderEvent.class ); pre.setPoints( loa ); pre.setBackground( ColorDefinitionImpl.create( 255, 255, 255, 127 ) ); pre.setOutline( lia ); ipr.fillPolygon( pre ); } lre.setLineAttributes( lia ); lre.getStart( ).set( dX, dStart ); lre.getEnd( ).set( dX, dEnd ); ipr.drawLine( lre ); if ( isInteractivityEnabled( ) ) { Trigger tg; EList elTriggers = axModel.getTriggers( ); if ( !elTriggers.isEmpty( ) ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = TriggerImpl.copyInstance( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); iev.addTrigger( tg ); } Location[] loaHotspot = new Location[4]; loaHotspot[0] = LocationImpl.create( dX - IConstants.LINE_EXPAND_SIZE, dStart ); loaHotspot[1] = LocationImpl.create( dX + IConstants.LINE_EXPAND_SIZE, dStart ); loaHotspot[2] = LocationImpl.create( dX + IConstants.LINE_EXPAND_SIZE, dEnd ); loaHotspot[3] = LocationImpl.create( dX - IConstants.LINE_EXPAND_SIZE, dEnd ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), PolygonRenderEvent.class ); pre.setPoints( loaHotspot ); iev.setHotSpot( pre ); ipr.enableInteraction( iev ); } } } } if ( ( sc.getType( ) & IConstants.TEXT ) == IConstants.TEXT || sc.isCategoryScale( ) ) { final int iDirection = sc.getDirection( ); // double dUnitSize = sc.getUnitSize( ); final double dUnitSize = ( iDirection == IConstants.BACKWARD || ( iDirection == IConstants.AUTO && bTransposed ) ) ? -sc.getUnitSize( ) : sc.getUnitSize( ); final double dOffset = dUnitSize / 2; DataSetIterator dsi = sc.getData( ); final int iDateTimeUnit = ( sc.getType( ) == IConstants.DATE_TIME ) ? CDateTime.computeUnit( dsi ) : IConstants.UNDEFINED; final ITextMetrics itmText = xs.getTextMetrics( la ); double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; dsi.reset( ); for ( int i = 0; i < da.length - 1; i++ ) { if ( bRenderAxisLabels ) { la.getCaption( ) .setValue( sc.formatCategoryValue( sc.getType( ), dsi.next( ), iDateTimeUnit ) ); if ( sc.isTickLabelVisible( i ) ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); itmText.reuse( la ); // RECYCLED } } y = (int) da[i]; if ( bRendering3D ) { y3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX; double dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderOrthogonal3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dXMinorTick1, y3d + daMinor[k], dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dXMinorTick2, y3d + daMinor[k], dZ ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y - daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y - daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { double sx = x; double sx2 = dXEnd; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.LEFT ) { sx -= dStaggeredLabelOffset; sx2 -= dStaggeredLabelOffset; } else { sx += dStaggeredLabelOffset; sx2 += dStaggeredLabelOffset; } } if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { // Left wall lo3d.set( sx - pwa.getHorizontalSpacingInPixels( ), y3d + dOffset, dZEnd + pwa.getHorizontalSpacingInPixels( ) ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.LEFT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); // Right wall lo3d.set( sx2 + pwa.getHorizontalSpacingInPixels( ), y3d + dOffset, dZ - pwa.getHorizontalSpacingInPixels( ) ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.RIGHT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( sx, y + dOffset ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } } y = (int) da[da.length - 1]; if ( bRendering3D ) { y3d = (int) da3D[da3D.length - 1]; } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } itmText.dispose( );// DISPOSED } else if ( ( sc.getType( ) & IConstants.LOGARITHMIC ) == IConstants.LOGARITHMIC ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; for ( int i = 0; i < da.length; i++ ) { if ( bRenderAxisLabels ) // PERFORM COMPUTATIONS ONLY IF // AXIS LABEL IS VISIBLE { if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( dAxisValue ) ); } nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, fs, ax.getRunTimeContext( ).getULocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } } y = (int) da[i]; if ( bRendering3D ) { y3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX; double dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderOrthogonal3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dXMinorTick1, y3d + daMinor[k], dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dXMinorTick2, y3d + daMinor[k], dZ ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y - daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y - daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } // RENDER LABELS ONLY IF REQUESTED if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { double sx = x; double sx2 = dXEnd; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.LEFT ) { sx -= dStaggeredLabelOffset; sx2 -= dStaggeredLabelOffset; } else { sx += dStaggeredLabelOffset; sx2 += dStaggeredLabelOffset; } } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { // Left wall lo3d.set( sx - pwa.getHorizontalSpacingInPixels( ), y3d, dZEnd + pwa.getHorizontalSpacingInPixels( ) ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.LEFT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); // Right wall lo3d.set( sx2 + pwa.getHorizontalSpacingInPixels( ), y3d, dZ - pwa.getHorizontalSpacingInPixels( ) ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.RIGHT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( sx, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } dAxisValue *= dAxisStep; } } else if ( ( sc.getType( ) & IConstants.LINEAR ) == IConstants.LINEAR ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( ) ); } dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; for ( int i = 0; i < da.length; i++ ) { nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, fs, ax.getRunTimeContext( ).getULocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } y = (int) da[i]; if ( bRendering3D ) { y3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX, dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderOrthogonal3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dXMinorTick1, y3d + daMinor[k], dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dXMinorTick2, y3d + daMinor[k], dZ ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y - daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y - daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { double sx = x; double sx2 = dXEnd; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.LEFT ) { sx -= dStaggeredLabelOffset; sx2 -= dStaggeredLabelOffset; } else { sx += dStaggeredLabelOffset; sx2 += dStaggeredLabelOffset; } } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { // Left wall lo3d.set( sx - pwa.getHorizontalSpacingInPixels( ), y3d, dZEnd + pwa.getHorizontalSpacingInPixels( ) ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.LEFT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); // Right wall lo3d.set( sx2 + pwa.getHorizontalSpacingInPixels( ), y3d, dZ - pwa.getHorizontalSpacingInPixels( ) ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.RIGHT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( sx, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } dAxisValue += dAxisStep; } } else if ( ( sc.getType( ) & IConstants.DATE_TIME ) == IConstants.DATE_TIME ) { CDateTime cdt, cdtAxisValue = Methods.asDateTime( sc.getMinimum( ) ); final int iUnit = Methods.asInteger( sc.getUnit( ) ); final int iStep = Methods.asInteger( sc.getStep( ) ); SimpleDateFormat sdf = null; if ( fs == null ) { sdf = new SimpleDateFormat( CDateTime.getPreferredFormat( iUnit ) ); } cdt = cdtAxisValue; double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; for ( int i = 0; i < da.length; i++ ) { try { sText = ValueFormatter.format( cdt, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getULocale( ), sdf ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } y = (int) da[i]; if ( bRendering3D ) { y3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX, dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderOrthogonal3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dXMinorTick1, y3d + daMinor[k], dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dXMinorTick2, y3d + daMinor[k], dZ ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y - daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y - daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { double sx = x; double sx2 = dXEnd; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.LEFT ) { sx -= dStaggeredLabelOffset; sx2 -= dStaggeredLabelOffset; } else { sx += dStaggeredLabelOffset; sx2 += dStaggeredLabelOffset; } } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { // Left wall lo3d.set( sx - pwa.getHorizontalSpacingInPixels( ), y3d, dZEnd + pwa.getHorizontalSpacingInPixels( ) ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.LEFT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); // Right wall lo3d.set( sx2 + pwa.getHorizontalSpacingInPixels( ), y3d, dZ - pwa.getHorizontalSpacingInPixels( ) ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.RIGHT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( sx, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } // ALWAYS W.R.T START VALUE cdt = cdtAxisValue.forward( iUnit, iStep * ( i + 1 ) ); } } la = LabelImpl.copyInstance( ax.getTitle( ) ); // TEMPORARILY USE // FOR AXIS TITLE if ( la.isVisible( ) && bRenderAxisTitle ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_TITLE, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_TITLE, la ); final String sRestoreValue = la.getCaption( ).getValue( ); la.getCaption( ) .setValue( rtc.externalizedMessage( sRestoreValue ) ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, ax.getTitlePosition( ), la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } if ( ax.getTitle( ).isVisible( ) ) { if ( bRendering3D ) { Bounds cbo = getPlotBounds( ); tre.setBlockBounds( BoundsImpl.create( cbo.getLeft( ) + ( cbo.getWidth( ) / 3d - bb.getWidth( ) ) / 2d, cbo.getTop( ) + 30, bb.getWidth( ), bb.getHeight( ) ) ); tre.setLabel( la ); tre.setBlockAlignment( la.getCaption( ) .getFont( ) .getAlignment( ) ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); tre.setBlockBounds( BoundsImpl.create( cbo.getLeft( ) + cbo.getWidth( ) - bb.getWidth( ), cbo.getTop( ) + 30 * 2, bb.getWidth( ), bb.getHeight( ) ) ); ipr.drawText( tre ); } else { final Bounds bo = BoundsImpl.create( ax.getTitleCoordinate( ), daEndPoints[1], bb.getWidth( ), daEndPoints[0] - daEndPoints[1] ); tre.setBlockBounds( bo ); tre.setLabel( la ); tre.setBlockAlignment( la.getCaption( ) .getFont( ) .getAlignment( ) ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); if ( ax.getTitle( ).isVisible( ) ) { ipr.drawText( tre ); } } } la.getCaption( ).setValue( sRestoreValue ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_TITLE, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_TITLE, la ); } la = LabelImpl.copyInstance( ax.getLabel( ) ); if ( iv != null && iv.getType( ) == IntersectionValue.MAX && iDimension == IConstants.TWO_5_D ) { trae.setTranslation( -dSeriesThickness, dSeriesThickness ); ipr.applyTransformation( trae ); } } else if ( iOrientation == IConstants.HORIZONTAL ) { int x; int x3d = 0; int z3d = 0; double dY = dLocation; double dX = 0; double dZ = 0; if ( bRendering3D ) { Location3D l3d = ax.getAxisCoordinate3D( ); dX = l3d.getX( ); dY = l3d.getY( ); dZ = l3d.getZ( ); } double dYTick1 = ( ( iMajorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( bRendering3D ? dY + IConstants.TICK_SIZE : dY - IConstants.TICK_SIZE ) : dY; double dYTick2 = ( ( iMajorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? ( bRendering3D ? dY - IConstants.TICK_SIZE : dY + IConstants.TICK_SIZE ) : dY; if ( iv != null && iDimension == IConstants.TWO_5_D && ( ( bTransposed && isRightToLeft( ) && iv.getType( ) == IntersectionValue.MIN ) || ( !bTransposed && iv.getType( ) == IntersectionValue.MAX ) ) ) { trae.setTransform( TransformationEvent.TRANSLATE ); trae.setTranslation( dSeriesThickness, -dSeriesThickness ); ipr.applyTransformation( trae ); } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS && lia.isVisible( ) ) { if ( bRenderBase3DAxis ) { final double dStart = daEndPoints3D[0]; final double dEnd = daEndPoints3D[1]; l3dre.setLineAttributes( lia ); l3dre.setStart3D( dStart, dY, dZ ); l3dre.setEnd3D( dEnd, dY, dZ ); dc.addLine( l3dre ); if ( isInteractivityEnabled( ) ) { Trigger tg; EList elTriggers = axModel.getTriggers( ); if ( !elTriggers.isEmpty( ) ) { final Polygon3DRenderEvent pre3d = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Polygon3DRenderEvent.class ); Location3D[] loaHotspot = new Location3D[4]; loaHotspot[0] = Location3DImpl.create( dStart, dY - IConstants.LINE_EXPAND_DOUBLE_SIZE, dZ ); loaHotspot[1] = Location3DImpl.create( dStart, dY + IConstants.LINE_EXPAND_DOUBLE_SIZE, dZ ); loaHotspot[2] = Location3DImpl.create( dEnd, dY + IConstants.LINE_EXPAND_DOUBLE_SIZE, dZ ); loaHotspot[3] = Location3DImpl.create( dEnd, dY - IConstants.LINE_EXPAND_DOUBLE_SIZE, dZ ); pre3d.setPoints3D( loaHotspot ); pre3d.setDoubleSided( true ); if ( get3DEngine( ).processEvent( pre3d, boPlot.getLeft( ), boPlot.getTop( ) ) != null ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = TriggerImpl.copyInstance( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); iev.addTrigger( tg ); } iev.setHotSpot( pre3d ); ipr.enableInteraction( iev ); } } } } else if ( bRenderAncillary3DAxis ) { final double dStart = daEndPoints3D[0]; final double dEnd = daEndPoints3D[1]; l3dre.setLineAttributes( lia ); l3dre.setStart3D( dX, dY, dStart ); l3dre.setEnd3D( dX, dY, dEnd ); dc.addLine( l3dre ); if ( isInteractivityEnabled( ) ) { Trigger tg; EList elTriggers = axModel.getTriggers( ); if ( !elTriggers.isEmpty( ) ) { final Polygon3DRenderEvent pre3d = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Polygon3DRenderEvent.class ); Location3D[] loaHotspot = new Location3D[4]; loaHotspot[0] = Location3DImpl.create( dX, dY - IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart ); loaHotspot[1] = Location3DImpl.create( dX, dY + IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart ); loaHotspot[2] = Location3DImpl.create( dX, dY + IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd ); loaHotspot[3] = Location3DImpl.create( dX, dY - IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd ); pre3d.setPoints3D( loaHotspot ); pre3d.setDoubleSided( true ); if ( get3DEngine( ).processEvent( pre3d, boPlot.getLeft( ), boPlot.getTop( ) ) != null ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = TriggerImpl.copyInstance( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); iev.addTrigger( tg ); } iev.setHotSpot( pre3d ); ipr.enableInteraction( iev ); } } } } else { double dStart = daEndPoints[0] - insCA.getLeft( ), dEnd = daEndPoints[1] + insCA.getRight( ); if ( sc.getDirection( ) == IConstants.BACKWARD ) { dStart = daEndPoints[1] - insCA.getLeft( ); dEnd = daEndPoints[0] + insCA.getRight( ); } if ( iv != null && iv.getType( ) == IntersectionValue.VALUE && iDimension == IConstants.TWO_5_D ) { // Zero plane. final Location[] loa = new Location[4]; loa[0] = LocationImpl.create( dStart, dY ); loa[1] = LocationImpl.create( dStart + dSeriesThickness, dY - dSeriesThickness ); loa[2] = LocationImpl.create( dEnd + dSeriesThickness, dY - dSeriesThickness ); loa[3] = LocationImpl.create( dEnd, dY ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), PolygonRenderEvent.class ); pre.setPoints( loa ); pre.setBackground( ColorDefinitionImpl.create( 255, 255, 255, 127 ) ); pre.setOutline( lia ); ipr.fillPolygon( pre ); } lre.setLineAttributes( lia ); lre.getStart( ).set( dStart, dY ); lre.getEnd( ).set( dEnd, dY ); ipr.drawLine( lre ); if ( isInteractivityEnabled( ) ) { Trigger tg; EList elTriggers = axModel.getTriggers( ); if ( !elTriggers.isEmpty( ) ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = TriggerImpl.copyInstance( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); iev.addTrigger( tg ); } Location[] loaHotspot = new Location[4]; loaHotspot[0] = LocationImpl.create( dStart, dY - IConstants.LINE_EXPAND_SIZE ); loaHotspot[1] = LocationImpl.create( dEnd, dY - IConstants.LINE_EXPAND_SIZE ); loaHotspot[2] = LocationImpl.create( dEnd, dY + IConstants.LINE_EXPAND_SIZE ); loaHotspot[3] = LocationImpl.create( dStart, dY + IConstants.LINE_EXPAND_SIZE ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), PolygonRenderEvent.class ); pre.setPoints( loaHotspot ); iev.setHotSpot( pre ); ipr.enableInteraction( iev ); } } } } if ( ( sc.getType( ) & IConstants.TEXT ) == IConstants.TEXT || sc.isCategoryScale( ) ) { final int iDirection = sc.getDirection( ); // double dUnitSize = sc.getUnitSize( ); final double dUnitSize = ( iDirection == IConstants.BACKWARD || ( iDirection == IConstants.AUTO && bTransposed ) ) ? -sc.getUnitSize( ) : sc.getUnitSize( ); final double dOffset = dUnitSize / 2; DataSetIterator dsi = sc.getData( ); final int iDateTimeUnit = ( sc.getType( ) == IConstants.DATE_TIME ) ? CDateTime.computeUnit( dsi ) : IConstants.UNDEFINED; final ITextMetrics itmText = xs.getTextMetrics( la ); double y = ( iLabelLocation == IConstants.ABOVE ) ? ( bRendering3D ? dYTick1 + 1 : dYTick1 - 1 ) : ( bRendering3D ? dYTick2 - 1 : dYTick2 + 1 ); dsi.reset( ); for ( int i = 0; i < da.length - 1; i++ ) { x = (int) da[i]; if ( bRendering3D ) { x3d = (int) da3D[i]; z3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( bRendering3D ? dY + IConstants.TICK_SIZE : dY - IConstants.TICK_SIZE ) : dY; double dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? ( bRendering3D ? dY - IConstants.TICK_SIZE : dY + IConstants.TICK_SIZE ) : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderBase3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick1, dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick2, dZ ) ); dc.addLine( l3dreMinor ); } } else if ( bRenderAncillary3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dX, dYMinorTick1, z3d + daMinor[k] ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dX, dYMinorTick2, z3d + daMinor[k] ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } } if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels ) { la.getCaption( ) .setValue( sc.formatCategoryValue( sc.getType( ), dsi.next( ), // step to next value. iDateTimeUnit ) ); if ( sc.isTickLabelVisible( i ) ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); itmText.reuse( la );// RECYCLED double sy = y; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.ABOVE ) { sy -= dStaggeredLabelOffset; } else { sy += dStaggeredLabelOffset; } } if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { if ( axisType == IConstants.BASE_AXIS ) { lo3d.set( x3d + dOffset, sy - pwa.getVerticalSpacingInPixels( ), dZEnd + pwa.getVerticalSpacingInPixels( ) ); } else { lo3d.set( dXEnd + pwa.getVerticalSpacingInPixels( ), sy - pwa.getVerticalSpacingInPixels( ), z3d + dOffset ); } t3dre.setLocation3D( lo3d ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x + dOffset, sy ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } } } // ONE LAST TICK x = (int) da[da.length - 1]; if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } itmText.dispose( ); // DISPOSED } else if ( ( sc.getType( ) & IConstants.LINEAR ) == IConstants.LINEAR ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( ) ); } dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double y = ( iLabelLocation == IConstants.ABOVE ) ? ( bRendering3D ? dYTick1 + 1 : dYTick1 - 1 ) : ( bRendering3D ? dYTick2 - 1 : dYTick2 + 1 ); for ( int i = 0; i < da.length; i++ ) { x = (int) da[i]; if ( bRendering3D ) { x3d = (int) da3D[i]; z3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( bRendering3D ? dY + IConstants.TICK_SIZE : dY - IConstants.TICK_SIZE ) : dY; double dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? ( bRendering3D ? dY - IConstants.TICK_SIZE : dY + IConstants.TICK_SIZE ) : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderBase3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick1, dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick2, dZ ) ); dc.addLine( l3dreMinor ); } } else if ( bRenderAncillary3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dX, dYMinorTick1, z3d + daMinor[k] ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dX, dYMinorTick2, z3d + daMinor[k] ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } } if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } // OPTIMIZED: ONLY PROCESS IF AXES LABELS ARE VISIBLE OR // REQUESTED FOR if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getULocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); double sy = y; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.ABOVE ) { sy -= dStaggeredLabelOffset; } else { sy += dStaggeredLabelOffset; } } if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { if ( axisType == IConstants.BASE_AXIS ) { lo3d.set( x3d, sy - pwa.getVerticalSpacingInPixels( ), dZEnd + pwa.getVerticalSpacingInPixels( ) ); } else { lo3d.set( dXEnd + pwa.getVerticalSpacingInPixels( ), sy - pwa.getVerticalSpacingInPixels( ), z3d ); } la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x, sy ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } dAxisValue += dAxisStep; } } else if ( ( sc.getType( ) & IConstants.LOGARITHMIC ) == IConstants.LOGARITHMIC ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double y = ( iLabelLocation == IConstants.ABOVE ) ? ( bRendering3D ? dYTick1 + 1 : dYTick1 - 1 ) : ( bRendering3D ? dYTick2 - 1 : dYTick2 + 1 ); for ( int i = 0; i < da.length; i++ ) { x = (int) da[i]; if ( bRendering3D ) { x3d = (int) da3D[i]; z3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( bRendering3D ? dY + IConstants.TICK_SIZE : dY - IConstants.TICK_SIZE ) : dY; double dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? ( bRendering3D ? dY - IConstants.TICK_SIZE : dY + IConstants.TICK_SIZE ) : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderBase3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick1, dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick2, dZ ) ); dc.addLine( l3dreMinor ); } } else if ( bRenderAncillary3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dX, dYMinorTick1, z3d + daMinor[k] ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dX, dYMinorTick2, z3d + daMinor[k] ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } } if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( lia ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } // OPTIMIZED: ONLY PROCESS IF AXES LABELS ARE VISIBLE OR // REQUESTED FOR if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( dAxisValue ) ); } nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getULocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); double sy = y; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.ABOVE ) { sy -= dStaggeredLabelOffset; } else { sy += dStaggeredLabelOffset; } } if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { if ( axisType == IConstants.BASE_AXIS ) { lo3d.set( x3d, sy - pwa.getVerticalSpacingInPixels( ), dZEnd + pwa.getVerticalSpacingInPixels( ) ); } else { lo3d.set( dXEnd + pwa.getVerticalSpacingInPixels( ), sy - pwa.getVerticalSpacingInPixels( ), z3d ); } la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x, sy ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } dAxisValue *= dAxisStep; } } else if ( ( sc.getType( ) & IConstants.DATE_TIME ) == IConstants.DATE_TIME ) { CDateTime cdt, cdtAxisValue = Methods.asDateTime( sc.getMinimum( ) ); final int iUnit = Methods.asInteger( sc.getUnit( ) ); final int iStep = Methods.asInteger( sc.getStep( ) ); SimpleDateFormat sdf = null; if ( fs == null ) { sdf = new SimpleDateFormat( CDateTime.getPreferredFormat( iUnit ) ); } cdt = cdtAxisValue; double y = ( iLabelLocation == IConstants.ABOVE ) ? ( bRendering3D ? dYTick1 + 1 : dYTick1 - 1 ) : ( bRendering3D ? dYTick2 - 1 : dYTick2 + 1 ); for ( int i = 0; i < da.length; i++ ) { x = (int) da[i]; if ( bRendering3D ) { x3d = (int) da3D[i]; z3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( bRendering3D ? dY + IConstants.TICK_SIZE : dY - IConstants.TICK_SIZE ) : dY; double dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? ( bRendering3D ? dY - IConstants.TICK_SIZE : dY + IConstants.TICK_SIZE ) : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderBase3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick1, dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick2, dZ ) ); dc.addLine( l3dreMinor ); } } else if ( bRenderAncillary3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dX, dYMinorTick1, z3d + daMinor[k] ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dX, dYMinorTick2, z3d + daMinor[k] ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } } if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } // OPTIMIZED: ONLY PROCESS IF AXES LABELS ARE VISIBLE OR // REQUESTED FOR if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { try { sText = ValueFormatter.format( cdt, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getULocale( ), sdf ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); double sy = y; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.ABOVE ) { sy -= dStaggeredLabelOffset; } else { sy += dStaggeredLabelOffset; } } if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { if ( axisType == IConstants.BASE_AXIS ) { lo3d.set( x3d, sy - pwa.getVerticalSpacingInPixels( ), dZEnd + pwa.getVerticalSpacingInPixels( ) ); } else { lo3d.set( dXEnd + pwa.getVerticalSpacingInPixels( ), sy - pwa.getVerticalSpacingInPixels( ), z3d ); } la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x, sy ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } // ALWAYS W.R.T START VALUE cdt = cdtAxisValue.forward( iUnit, iStep * ( i + 1 ) ); } } // RENDER THE AXIS TITLE la = LabelImpl.copyInstance( ax.getTitle( ) ); // TEMPORARILY USE // FOR AXIS TITLE if ( la.isVisible( ) && bRenderAxisTitle ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_TITLE, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_TITLE, la ); final String sRestoreValue = la.getCaption( ).getValue( ); la.getCaption( ) .setValue( rtc.externalizedMessage( sRestoreValue ) ); // EXTERNALIZE la.getCaption( ) .getFont( ) .setAlignment( switchTextAlignment( la.getCaption( ) .getFont( ) .getAlignment( ) ) ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, ax.getTitlePosition( ), la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } if ( ax.getTitle( ).isVisible( ) ) { if ( bRendering3D ) { Bounds cbo = getPlotBounds( ); if ( axisType == IConstants.BASE_AXIS ) { tre.setBlockBounds( BoundsImpl.create( cbo.getLeft( ) + ( cbo.getWidth( ) / 3d - bb.getWidth( ) ), cbo.getTop( ) + cbo.getHeight( ) - Math.min( bb.getHeight( ), bb.getWidth( ) ) - 30, bb.getWidth( ), bb.getHeight( ) ) ); } else { tre.setBlockBounds( BoundsImpl.create( cbo.getLeft( ) + cbo.getWidth( ) * 2 / 3d + ( cbo.getWidth( ) / 3d - bb.getWidth( ) ) / 2d, cbo.getTop( ) + cbo.getHeight( ) - Math.min( bb.getHeight( ), bb.getWidth( ) ) - 30 * 2, bb.getWidth( ), bb.getHeight( ) ) ); } tre.setLabel( la ); tre.setBlockAlignment( la.getCaption( ) .getFont( ) .getAlignment( ) ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); } else { final Bounds bo = BoundsImpl.create( daEndPoints[0], ax.getTitleCoordinate( ), daEndPoints[1] - daEndPoints[0], bb.getHeight( ) ); tre.setBlockBounds( bo ); tre.setLabel( la ); tre.setBlockAlignment( la.getCaption( ) .getFont( ) .getAlignment( ) ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_TITLE, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_TITLE, la ); } la = LabelImpl.copyInstance( ax.getLabel( ) ); // RESTORE BACK TO // AXIS LABEL if ( iv != null && iDimension == IConstants.TWO_5_D && ( ( bTransposed && isRightToLeft( ) && iv.getType( ) == IntersectionValue.MIN ) || ( !bTransposed && iv.getType( ) == IntersectionValue.MAX ) ) ) { trae.setTranslation( -dSeriesThickness, dSeriesThickness ); ipr.applyTransformation( trae ); } } }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/39dbdbe915b6d1a6a7715671f5dc3bf62995dbdc/AxesRenderer.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/AxesRenderer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1743,
3442,
6558,
12,
467,
9840,
6747,
277,
683,
16,
15211,
886,
16,
1082,
202,
3335,
6558,
1740,
16,
509,
277,
23801,
774,
6493,
262,
1216,
14804,
503,
202,
95,
202,
202,
6385,
1939,
950,
1042,
436,
5111,
273,
336,
1997,
950,
1042,
12,
11272,
202,
202,
6385,
15509,
1740,
1488,
273,
1740,
18,
588,
1488,
6558,
12,
11272,
202,
202,
6385,
15211,
1190,
26494,
8772,
69,
273,
261,
11532,
1190,
26494,
13,
336,
7703,
1012,
12,
11272,
202,
202,
6385,
22300,
2763,
3587,
273,
8772,
69,
18,
588,
26494,
12,
262,
18,
588,
382,
4424,
12,
11272,
202,
202,
6385,
7739,
1503,
699,
273,
336,
1997,
950,
1042,
12,
262,
18,
588,
3651,
1503,
12,
11272,
202,
202,
6385,
1645,
302,
2735,
273,
1740,
18,
588,
6558,
13503,
12,
11272,
202,
202,
6385,
8064,
5587,
888,
273,
1740,
18,
588,
5587,
12,
11272,
202,
202,
6385,
5294,
3464,
620,
4674,
273,
1740,
18,
588,
23634,
620,
12,
11272,
202,
202,
6385,
509,
277,
17581,
6264,
2885,
273,
1740,
18,
588,
6313,
12,
262,
9506,
202,
18,
588,
6264,
2885,
12,
467,
2918,
18,
26976,
916,
11272,
202,
202,
6385,
509,
277,
19549,
6264,
2885,
273,
1740,
18,
588,
6313,
12,
262,
9506,
202,
18,
588,
6264,
2885,
12,
467,
2918,
18,
6236,
916,
11272,
202,
202,
6385,
509,
277,
2224,
2735,
273,
1740,
18,
588,
2224,
2555,
12,
11272,
202,
202,
6385,
509,
277,
14097,
273,
1740,
18,
588,
14097,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1743,
3442,
6558,
12,
467,
9840,
6747,
277,
683,
16,
15211,
886,
16,
1082,
202,
3335,
6558,
1740,
16,
509,
277,
23801,
774,
6493,
262,
1216,
14804,
503,
202,
95,
202,
202,
6385,
1939,
950,
1042,
436,
5111,
273,
336,
1997,
950,
1042,
12,
11272,
202,
202,
6385,
15509,
1740,
1488,
273,
1740,
18,
588,
1488,
6558,
12,
11272,
202,
202,
6385,
15211,
1190,
26494,
8772,
69,
273,
261,
11532,
1190,
26494,
13,
336,
7703,
1012,
12,
11272,
202,
202,
6385,
22300,
2763,
3587,
273,
8772,
69,
18,
588,
26494,
12,
262,
18,
588,
382,
4424,
12,
11272,
202,
202,
6385,
7739,
1503,
699,
273,
336,
1997,
950,
1042,
12,
262,
18,
588,
3651,
2
] |
rewind(_m257);
|
rewind(_m259);
|
public final void forwardOrReverseStep() throws RecognitionException, TokenStreamException, XPathException { returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST forwardOrReverseStep_AST = null; boolean synPredMatched257 = false; if (((_tokenSet_9.member(LA(1))))) { int _m257 = mark(); synPredMatched257 = true; inputState.guessing++; try { { forwardAxisSpecifier(); match(COLON); } } catch (RecognitionException pe) { synPredMatched257 = false; } rewind(_m257); inputState.guessing--; } if ( synPredMatched257 ) { forwardAxis(); astFactory.addASTChild(currentAST, returnAST); nodeTest(); astFactory.addASTChild(currentAST, returnAST); forwardOrReverseStep_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; } else { boolean synPredMatched259 = false; if (((_tokenSet_10.member(LA(1))))) { int _m259 = mark(); synPredMatched259 = true; inputState.guessing++; try { { reverseAxisSpecifier(); match(COLON); } } catch (RecognitionException pe) { synPredMatched259 = false; } rewind(_m259); inputState.guessing--; } if ( synPredMatched259 ) { reverseAxis(); astFactory.addASTChild(currentAST, returnAST); nodeTest(); astFactory.addASTChild(currentAST, returnAST); forwardOrReverseStep_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; } else if ((_tokenSet_7.member(LA(1)))) { abbrevStep(); astFactory.addASTChild(currentAST, returnAST); forwardOrReverseStep_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; } else { throw new NoViableAltException(LT(1), getFilename()); } } returnAST = forwardOrReverseStep_AST; }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/ce8b3af89ca1836e7de5c4b3c7110a9e9001a4e4/XQueryParser.java/clean/src/org/exist/xquery/parser/XQueryParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
5104,
1162,
12650,
4160,
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,
5621,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
5104,
1162,
12650,
4160,
67,
9053,
273,
446,
31,
9506,
202,
6494,
6194,
10391,
15400,
2947,
27,
273,
629,
31,
202,
202,
430,
261,
12443,
67,
2316,
694,
67,
29,
18,
5990,
12,
2534,
12,
21,
3719,
20349,
288,
1082,
202,
474,
389,
81,
2947,
27,
273,
2267,
5621,
1082,
202,
11982,
10391,
15400,
2947,
27,
273,
638,
31,
1082,
202,
2630,
1119,
18,
20885,
310,
9904,
31,
1082,
202,
698,
288,
9506,
202,
95,
9506,
202,
11565,
6558,
21416,
5621,
9506,
202,
1916,
12,
4935,
673,
1769,
9506,
202,
97,
1082,
202,
97,
1082,
202,
14683,
261,
5650,
7909,
503,
2804,
13,
288,
9506,
202,
11982,
10391,
15400,
2947,
27,
273,
629,
31,
1082,
202,
97,
1082,
202,
266,
10094,
24899,
81,
2947,
27,
1769,
1082,
202,
2630,
1119,
18,
20885,
310,
413,
31,
202,
202,
97,
202,
202,
430,
261,
6194,
10391,
15400,
2947,
27,
262,
288,
1082,
202,
11565,
6558,
5621,
1082,
202,
689,
1733,
18,
1289,
9053,
1763,
12,
2972,
9053,
16,
327,
9053,
1769,
1082,
202,
2159,
4709,
5621,
1082,
202,
689,
1733,
18,
1289,
9053,
1763,
12,
2972,
9053,
16,
327,
9053,
1769,
1082,
202,
11565,
1162,
12650,
4160,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
5104,
1162,
12650,
4160,
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,
5621,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
5104,
1162,
12650,
4160,
67,
9053,
273,
446,
31,
9506,
202,
6494,
6194,
10391,
15400,
2947,
27,
273,
629,
31,
202,
202,
430,
261,
12443,
67,
2316,
694,
67,
29,
18,
5990,
12,
2534,
12,
21,
3719,
20349,
288,
1082,
202,
474,
389,
81,
2947,
27,
273,
2267,
5621,
1082,
202,
11982,
10391,
15400,
2947,
27,
273,
638,
31,
1082,
202,
2630,
1119,
18,
20885,
310,
9904,
2
] |
AssertMo.assertIncludes("Should contain args as an array", "[<1>, <2>]", result);
|
AssertMo.assertIncludes("Should contain args as an array", "[<1L>, <2L>]", result);
|
public void testToStringWithPrimitiveArray() throws Exception { Invocation invocation = new Invocation(INVOKED, methodFactory.newMethod(METHOD_NAME, new Class[]{long[].class}, void.class, EXCEPTION_TYPES), new Object[]{new long[]{1, 2}}); String result = invocation.toString(); AssertMo.assertIncludes("Should contain invokedMethod name", METHOD_NAME, result); AssertMo.assertIncludes("Should contain args as an array", "[<1>, <2>]", result); }
|
2796 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2796/f239631c1c45b9271de79e5e422f9ee0850c8312/InvocationTest.java/clean/jmock/core/src/test/jmock/core/InvocationTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5808,
1190,
9840,
1076,
1435,
1216,
1185,
288,
3639,
11298,
9495,
273,
394,
11298,
12,
706,
17691,
2056,
16,
4766,
9079,
707,
1733,
18,
2704,
1305,
12,
5327,
67,
1985,
16,
394,
1659,
63,
7073,
5748,
63,
8009,
1106,
5779,
918,
18,
1106,
16,
23136,
67,
10564,
3631,
4766,
9079,
394,
1033,
63,
7073,
2704,
1525,
63,
7073,
21,
16,
576,
9090,
1769,
3639,
514,
563,
273,
9495,
18,
10492,
5621,
3639,
5452,
16727,
18,
11231,
16815,
2932,
14309,
912,
8187,
1305,
508,
3113,
10152,
67,
1985,
16,
563,
1769,
3639,
5452,
16727,
18,
11231,
16815,
2932,
14309,
912,
833,
487,
392,
526,
3113,
5158,
32,
21,
48,
20401,
411,
22,
48,
34,
65,
3113,
563,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5808,
1190,
9840,
1076,
1435,
1216,
1185,
288,
3639,
11298,
9495,
273,
394,
11298,
12,
706,
17691,
2056,
16,
4766,
9079,
707,
1733,
18,
2704,
1305,
12,
5327,
67,
1985,
16,
394,
1659,
63,
7073,
5748,
63,
8009,
1106,
5779,
918,
18,
1106,
16,
23136,
67,
10564,
3631,
4766,
9079,
394,
1033,
63,
7073,
2704,
1525,
63,
7073,
21,
16,
576,
9090,
1769,
3639,
514,
563,
273,
9495,
18,
10492,
5621,
3639,
5452,
16727,
18,
11231,
16815,
2932,
14309,
912,
8187,
1305,
508,
3113,
10152,
67,
1985,
16,
563,
1769,
3639,
5452,
16727,
18,
11231,
16815,
2932,
14309,
912,
833,
487,
392,
526,
3113,
5158,
32,
21,
48,
20401,
411,
22,
48,
34,
65,
3113,
2
] |
buf.append("<input type=\"hidden\" name=\"formPassword\" value=\""+node.formPassword+"\">"); buf.append("<input type=\"submit\" name=\"remove_AllRequests\" value=\"Delete Everything\">");
|
buf.append("<input type=\"hidden\" name=\"formPassword\" value=\""+node.formPassword+"\" />"); buf.append("<input type=\"submit\" name=\"remove_AllRequests\" value=\"Delete Everything\" />");
|
private void writeDeleteAll(StringBuffer buf) { buf.append("<td>"); buf.append("<form action=\"/queue/\" method=\"post\">"); buf.append("<input type=\"hidden\" name=\"formPassword\" value=\""+node.formPassword+"\">"); buf.append("<input type=\"submit\" name=\"remove_AllRequests\" value=\"Delete Everything\">"); buf.append("</form>\n"); buf.append("</td>\n"); }
|
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/a2c799232c5ddad097bc15ac69d6259528050f65/QueueToadlet.java/buggy/src/freenet/clients/http/QueueToadlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1045,
2613,
1595,
12,
780,
1892,
1681,
13,
288,
202,
202,
4385,
18,
6923,
2932,
32,
4465,
2984,
1769,
202,
202,
4385,
18,
6923,
2932,
32,
687,
1301,
5189,
19,
4000,
19,
2412,
707,
5189,
2767,
21121,
1769,
202,
202,
4385,
18,
6923,
2932,
32,
2630,
618,
5189,
6345,
2412,
508,
5189,
687,
3913,
2412,
460,
13186,
15,
2159,
18,
687,
3913,
9078,
21121,
1769,
202,
202,
4385,
18,
6923,
2932,
32,
2630,
618,
5189,
9297,
2412,
508,
5189,
4479,
67,
1595,
6421,
2412,
460,
5189,
2613,
26553,
21121,
1769,
202,
202,
4385,
18,
6923,
2932,
1757,
687,
5333,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
1757,
4465,
5333,
82,
8863,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1045,
2613,
1595,
12,
780,
1892,
1681,
13,
288,
202,
202,
4385,
18,
6923,
2932,
32,
4465,
2984,
1769,
202,
202,
4385,
18,
6923,
2932,
32,
687,
1301,
5189,
19,
4000,
19,
2412,
707,
5189,
2767,
21121,
1769,
202,
202,
4385,
18,
6923,
2932,
32,
2630,
618,
5189,
6345,
2412,
508,
5189,
687,
3913,
2412,
460,
13186,
15,
2159,
18,
687,
3913,
9078,
21121,
1769,
202,
202,
4385,
18,
6923,
2932,
32,
2630,
618,
5189,
9297,
2412,
508,
5189,
4479,
67,
1595,
6421,
2412,
460,
5189,
2613,
26553,
21121,
1769,
202,
202,
4385,
18,
6923,
2932,
1757,
687,
5333,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
1757,
4465,
5333,
82,
8863,
202,
97,
2,
-100
] |
String number = (String) UtilFormatOut.checkNull(cc.getString("cardNumber")); String expDate = (String) UtilFormatOut.checkNull(cc.getString("expireDate"));
|
String number = UtilFormatOut.checkNull(cc.getString("cardNumber")); String expDate = UtilFormatOut.checkNull(cc.getString("expireDate"));
|
private static void buildCaptureTransaction(Map params, Properties props, Map AIMRequest) { GenericValue at = (GenericValue)params.get("authTransaction"); GenericValue cc = (GenericValue)params.get("creditCard"); String currency = (String) params.get("currency"); String amount = ((Double)params.get("captureAmount")).toString(); String number = (String) UtilFormatOut.checkNull(cc.getString("cardNumber")); String expDate = (String) UtilFormatOut.checkNull(cc.getString("expireDate")); AIMRequest.put("x_Amount",amount); AIMRequest.put("x_Currency_Code",currency); AIMRequest.put("x_Method", props.getProperty("method")); AIMRequest.put("x_Type", props.getProperty("transType")); AIMRequest.put("x_Card_Num",number); AIMRequest.put("x_Exp_Date",expDate); AIMRequest.put("x_Trans_ID",at.get("referenceNum")); AIMRequest.put("x_Auth_Code",at.get("gatewayCode")); }
|
45953 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45953/55bcc8af8f0d7045d61027d64770bc0a1f5b089f/AIMPaymentServices.java/clean/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AIMPaymentServices.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
1361,
12372,
3342,
12,
863,
859,
16,
6183,
3458,
16,
1635,
432,
3445,
691,
13,
288,
3639,
7928,
620,
622,
273,
261,
7014,
620,
13,
2010,
18,
588,
2932,
1944,
3342,
8863,
3639,
7928,
620,
4946,
273,
261,
7014,
620,
13,
2010,
18,
588,
2932,
20688,
6415,
8863,
3639,
514,
5462,
273,
261,
780,
13,
859,
18,
588,
2932,
7095,
8863,
3639,
514,
3844,
273,
14015,
5265,
13,
2010,
18,
588,
2932,
19250,
6275,
7923,
2934,
10492,
5621,
3639,
514,
1300,
273,
261,
780,
13,
3564,
1630,
1182,
18,
1893,
2041,
12,
952,
18,
588,
780,
2932,
3327,
1854,
7923,
1769,
3639,
514,
1329,
1626,
273,
261,
780,
13,
3564,
1630,
1182,
18,
1893,
2041,
12,
952,
18,
588,
780,
2932,
14070,
1626,
7923,
1769,
3639,
432,
3445,
691,
18,
458,
2932,
92,
67,
6275,
3113,
8949,
1769,
3639,
432,
3445,
691,
18,
458,
2932,
92,
67,
7623,
67,
1085,
3113,
7095,
1769,
3639,
432,
3445,
691,
18,
458,
2932,
92,
67,
1305,
3113,
3458,
18,
588,
1396,
2932,
2039,
7923,
1769,
3639,
432,
3445,
691,
18,
458,
2932,
92,
67,
559,
3113,
3458,
18,
588,
1396,
2932,
2338,
559,
7923,
1769,
3639,
432,
3445,
691,
18,
458,
2932,
92,
67,
6415,
67,
2578,
3113,
2696,
1769,
3639,
432,
3445,
691,
18,
458,
2932,
92,
67,
2966,
67,
1626,
3113,
2749,
1626,
1769,
3639,
432,
3445,
691,
18,
458,
2932,
92,
67,
1429,
67,
734,
3113,
270,
18,
588,
2932,
6180,
2578,
7923,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
1361,
12372,
3342,
12,
863,
859,
16,
6183,
3458,
16,
1635,
432,
3445,
691,
13,
288,
3639,
7928,
620,
622,
273,
261,
7014,
620,
13,
2010,
18,
588,
2932,
1944,
3342,
8863,
3639,
7928,
620,
4946,
273,
261,
7014,
620,
13,
2010,
18,
588,
2932,
20688,
6415,
8863,
3639,
514,
5462,
273,
261,
780,
13,
859,
18,
588,
2932,
7095,
8863,
3639,
514,
3844,
273,
14015,
5265,
13,
2010,
18,
588,
2932,
19250,
6275,
7923,
2934,
10492,
5621,
3639,
514,
1300,
273,
261,
780,
13,
3564,
1630,
1182,
18,
1893,
2041,
12,
952,
18,
588,
780,
2932,
3327,
1854,
7923,
1769,
3639,
514,
1329,
1626,
273,
261,
780,
13,
3564,
1630,
1182,
18,
1893,
2041,
2
] |
public void createContents(String message) { createContents(message, SIZING_SELECTION_PANE_HEIGHT); }
|
public void createContents( String message ) { createContents( message, SIZING_SELECTION_PANE_HEIGHT ); }
|
public void createContents(String message) { createContents(message, SIZING_SELECTION_PANE_HEIGHT); }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/eb9617da439d12c40f3451f4e4438472a44aab3d/WizardSaveAsPage.java/buggy/UI/org.eclipse.birt.report.designer.ui.ide/src/org/eclipse/birt/report/designer/ui/ide/wizards/WizardSaveAsPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
752,
6323,
12,
780,
883,
13,
288,
3639,
752,
6323,
12,
2150,
16,
5705,
62,
1360,
67,
1090,
15445,
67,
30819,
41,
67,
14595,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
752,
6323,
12,
780,
883,
13,
288,
3639,
752,
6323,
12,
2150,
16,
5705,
62,
1360,
67,
1090,
15445,
67,
30819,
41,
67,
14595,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
jj_la1_0 = new int[] {0x0,0x0,0x10081000,0x0,0x0,0x0,0x0,0x10001000,0x10080000,0x10081000,0x10000000,0x10080000,0x0,0x4000000,0x0,0x0,0x0,0x0,0x0,0x0,0x510cb000,0x0,0x0,0x0,0x0,0x4000000,0x0,0x510cb000,0x4104a000,0x510cb000,0x0,0x0,0x0,0x4904a000,0x4904a000,0x0,0x0,0x0,0x0,0x0,0x0,0x5104a000,0x10000000,0x0,0x0,0x0,0x0,0x4904a000,0x0,0x4104a000,0x4104a000,0x0,0x4000000,0x4104a000,0x4000000,0x4104a000,0x4104a000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x4904a000,0x0,0x0,0x4904a000,0x8000000,0x0,0x0,0x0,0x0,0x8000000,0x0,0x0,0x8000000,0x8000000,0x4904a000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xc9a4e000,0x10000000,0x0,0x0,0x0,0x0,0x4904a000,0x410000,0x410000,0x2000000,0x5904a000,0x4904a000,0x4904a000,0x5904a000,0x4904a000,0x0,0x0,0x0,0x4904a000,0x20000,0x20000000,0x0,0x0,0x0,0x0,0x4904a000,0x0,0x510cb000,0x400000,0x10080000,0x4104a000,0x510cb000,};
|
jj_la1_0 = new int[] {0x0,0x0,0x10081000,0x0,0x0,0x0,0x0,0x10001000,0x10080000,0x10081000,0x10000000,0x10080000,0x0,0x4000000,0x0,0x0,0x0,0x0,0x0,0x0,0x510cb000,0x0,0x0,0x0,0x0,0x4000000,0x0,0x510cb000,0x4104a000,0x510cb000,0x0,0x0,0x0,0x4904a000,0x4904a000,0x0,0x0,0x0,0x0,0x0,0x0,0x5104a000,0x10000000,0x10000000,0x0,0x0,0x0,0x4904a000,0x0,0x4104a000,0x4104a000,0x0,0x4000000,0x4104a000,0x4000000,0x4104a000,0x4104a000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x4904a000,0x0,0x0,0x4904a000,0x8000000,0x0,0x0,0x0,0x0,0x8000000,0x0,0x0,0x8000000,0x8000000,0x4904a000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xc9a4e000,0x10000000,0x10000000,0x0,0x0,0x0,0x4904a000,0x410000,0x410000,0x2000000,0x5904a000,0x4904a000,0x4904a000,0x5904a000,0x4904a000,0x0,0x0,0x0,0x4904a000,0x20000,0x20000000,0x0,0x0,0x0,0x0,0x4904a000,0x0,0x510cb000,0x400000,0x10080000,0x4104a000,0x510cb000,};
|
private static void jj_la1_0() { jj_la1_0 = new int[] {0x0,0x0,0x10081000,0x0,0x0,0x0,0x0,0x10001000,0x10080000,0x10081000,0x10000000,0x10080000,0x0,0x4000000,0x0,0x0,0x0,0x0,0x0,0x0,0x510cb000,0x0,0x0,0x0,0x0,0x4000000,0x0,0x510cb000,0x4104a000,0x510cb000,0x0,0x0,0x0,0x4904a000,0x4904a000,0x0,0x0,0x0,0x0,0x0,0x0,0x5104a000,0x10000000,0x0,0x0,0x0,0x0,0x4904a000,0x0,0x4104a000,0x4104a000,0x0,0x4000000,0x4104a000,0x4000000,0x4104a000,0x4104a000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x4904a000,0x0,0x0,0x4904a000,0x8000000,0x0,0x0,0x0,0x0,0x8000000,0x0,0x0,0x8000000,0x8000000,0x4904a000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xc9a4e000,0x10000000,0x0,0x0,0x0,0x0,0x4904a000,0x410000,0x410000,0x2000000,0x5904a000,0x4904a000,0x4904a000,0x5904a000,0x4904a000,0x0,0x0,0x0,0x4904a000,0x20000,0x20000000,0x0,0x0,0x0,0x0,0x4904a000,0x0,0x510cb000,0x400000,0x10080000,0x4104a000,0x510cb000,}; }
|
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/3e3034d7566b0047ef2bf5af2e29ce51f94a2d2e/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
918,
10684,
67,
11821,
21,
67,
20,
1435,
288,
1377,
10684,
67,
11821,
21,
67,
20,
273,
394,
509,
8526,
288,
20,
92,
20,
16,
20,
92,
20,
16,
20,
92,
6625,
11861,
3784,
16,
20,
92,
20,
16,
20,
92,
20,
16,
20,
92,
20,
16,
20,
92,
20,
16,
20,
92,
6625,
1611,
3784,
16,
20,
92,
6625,
28,
2787,
16,
20,
92,
6625,
11861,
3784,
16,
20,
92,
21,
17877,
16,
20,
92,
6625,
28,
2787,
16,
20,
92,
20,
16,
20,
92,
24,
9449,
16,
20,
92,
20,
16,
20,
92,
20,
16,
20,
92,
20,
16,
20,
92,
20,
16,
20,
92,
20,
16,
20,
92,
20,
16,
20,
92,
25,
2163,
7358,
3784,
16,
20,
92,
20,
16,
20,
92,
20,
16,
20,
92,
20,
16,
20,
92,
20,
16,
20,
92,
24,
9449,
16,
20,
92,
20,
16,
20,
92,
25,
2163,
7358,
3784,
16,
20,
92,
24,
21869,
69,
3784,
16,
20,
92,
25,
2163,
7358,
3784,
16,
20,
92,
20,
16,
20,
92,
20,
16,
20,
92,
20,
16,
20,
92,
7616,
3028,
69,
3784,
16,
20,
92,
7616,
3028,
69,
3784,
16,
20,
92,
20,
16,
20,
92,
20,
16,
20,
92,
20,
16,
20,
92,
20,
16,
20,
92,
20,
16,
20,
92,
20,
16,
20,
92,
25,
21869,
69,
3784,
16,
20,
92,
21,
17877,
16,
20,
92,
21,
17877,
16,
20,
92,
20,
16,
20,
92,
20,
16,
20,
92,
20,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
918,
10684,
67,
11821,
21,
67,
20,
1435,
288,
1377,
10684,
67,
11821,
21,
67,
20,
273,
394,
509,
8526,
288,
20,
92,
20,
16,
20,
92,
20,
16,
20,
92,
6625,
11861,
3784,
16,
20,
92,
20,
16,
20,
92,
20,
16,
20,
92,
20,
16,
20,
92,
20,
16,
20,
92,
6625,
1611,
3784,
16,
20,
92,
6625,
28,
2787,
16,
20,
92,
6625,
11861,
3784,
16,
20,
92,
21,
17877,
16,
20,
92,
6625,
28,
2787,
16,
20,
92,
20,
16,
20,
92,
24,
9449,
16,
20,
92,
20,
16,
20,
92,
20,
16,
20,
92,
20,
16,
20,
92,
20,
16,
20,
92,
20,
16,
20,
92,
20,
16,
20,
92,
25,
2
] |
m_supportVectors = new SMOset(m_data.numInstances()); m_I0 = new SMOset(m_data.numInstances()); m_I1 = new SMOset(m_data.numInstances()); m_I2 = new SMOset(m_data.numInstances()); m_I3 = new SMOset(m_data.numInstances()); m_I4 = new SMOset(m_data.numInstances());
|
public void buildClassifier(Instances insts) throws Exception { int m_kernelEvals = 0; if (insts.checkForStringAttributes()) { throw new Exception("Can't handle string attributes!"); } if (insts.numClasses() > 2) { throw new Exception("Can only handle two-class datasets!"); } if (insts.classAttribute().isNumeric()) { throw new Exception("SMO can't handle a numeric class!"); } m_data = insts; m_onlyNumeric = true; for (int i = 0; i < m_data.numAttributes(); i++) { if (i != m_data.classIndex()) { if (!m_data.attribute(i).isNumeric()) { m_onlyNumeric = false; break; } } } m_Missing = new ReplaceMissingValuesFilter(); m_Missing.inputFormat(m_data); m_data = Filter.useFilter(m_data, m_Missing); if (!m_dontNormalize) { m_Normalization = new NormalizationFilter(); m_Normalization.inputFormat(m_data); m_data = Filter.useFilter(m_data, m_Normalization); } if (!m_onlyNumeric) { m_NominalToBinary = new NominalToBinaryFilter(); m_NominalToBinary.inputFormat(m_data); m_data = Filter.useFilter(m_data, m_NominalToBinary); } // If machine is linear, reserve space for weights if (m_exponent == 1.0) { m_weights = new double[m_data.numAttributes()]; } // Set class values m_class = new double[m_data.numInstances()]; m_iUp = -1; m_iLow = -1; for (int i = 0; i < m_class.length; i++) { if ((int) m_data.instance(i).classValue() == 0) { m_class[i] = -1; m_iLow = i; } else { m_class[i] = 1; m_iUp = i; } } if ((m_iUp == -1) || (m_iLow == -1)) { throw new Exception ("Only instances of one class "+ "or no instances in the data!"); } // Initialize alpha array to zero m_alpha = new double[m_data.numInstances()]; // Initialize thresholds m_bUp = -1; m_bLow = 1; m_b = 0; // Initialize error cache m_errors = new double[m_data.numInstances()]; m_errors[m_iLow] = 1; m_errors[m_iUp] = -1; // Initialize sets m_supportVectors = new SMOset(m_data.numInstances()); m_I0 = new SMOset(m_data.numInstances()); m_I1 = new SMOset(m_data.numInstances()); m_I2 = new SMOset(m_data.numInstances()); m_I3 = new SMOset(m_data.numInstances()); m_I4 = new SMOset(m_data.numInstances()); // The kernel calculations are cached m_storage = new double[m_cacheSize]; m_keys = new int[m_cacheSize]; // Build up I1 and I4 for (int i = 0; i < m_class.length; i++ ) { if (m_class[i] == 1) { m_I1.insert(i); } else { m_I4.insert(i); } } // Loop to find all the support vectors int numChanged = 0; boolean examineAll = true; while ((numChanged > 0) || examineAll) { numChanged = 0; if (examineAll) { for (int i = 0; i < m_alpha.length; i++) { if (examineExample(i)) { numChanged++; } } } else { // This code implements Modification 1 from Keerthi et al.'s paper for (int i = 0; i < m_alpha.length; i++) { if ((m_alpha[i] > 0) && (m_alpha[i] < m_C)) { if (examineExample(i)) { numChanged++; } // Is optimality on unbound vectors obtained? if (m_bUp > m_bLow - 2 * m_tol) { numChanged = 0; break; } } } //This is the code for Modification 2 from Keerthi et al.'s paper /*boolean innerLoopSuccess = true; numChanged = 0; while ((m_bUp < m_bLow - 2 * m_tol) && (innerLoopSuccess == true)) { innerLoopSuccess = takeStep(m_iUp, m_iLow, m_errors[m_iLow]); }*/ } if (examineAll) { examineAll = false; } else if (numChanged == 0) { examineAll = true; } } // Set threshold m_b = (m_bLow + m_bUp) / 2.0; // Save memory m_storage = null; m_keys = null; m_errors = null; m_I0 = m_I1 = m_I2 = m_I3 = m_I4 = null; // If machine is linear, delete training data if (m_exponent == 1.0) { m_data = new Instances(m_data, 0); } }
|
6866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6866/bba0598ffac24c8d8ce301c245dd14370b0bc09d/SMO.java/buggy/classifiers/SMO.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1361,
13860,
12,
5361,
1804,
87,
13,
1216,
1185,
288,
565,
509,
312,
67,
8111,
41,
4524,
273,
374,
31,
565,
309,
261,
8591,
87,
18,
1893,
1290,
780,
2498,
10756,
288,
1377,
604,
394,
1185,
2932,
2568,
1404,
1640,
533,
1677,
4442,
1769,
565,
289,
565,
309,
261,
8591,
87,
18,
2107,
4818,
1435,
405,
576,
13,
288,
1377,
604,
394,
1185,
2932,
2568,
1338,
1640,
2795,
17,
1106,
11109,
4442,
1769,
565,
289,
565,
309,
261,
8591,
87,
18,
1106,
1499,
7675,
291,
9902,
10756,
288,
1377,
604,
394,
1185,
2932,
55,
5980,
848,
1404,
1640,
279,
6389,
667,
4442,
1769,
565,
289,
565,
312,
67,
892,
273,
1804,
87,
31,
565,
312,
67,
3700,
9902,
273,
638,
31,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
312,
67,
892,
18,
2107,
2498,
5621,
277,
27245,
288,
1377,
309,
261,
77,
480,
312,
67,
892,
18,
1106,
1016,
10756,
288,
202,
430,
16051,
81,
67,
892,
18,
4589,
12,
77,
2934,
291,
9902,
10756,
288,
202,
225,
312,
67,
3700,
9902,
273,
629,
31,
202,
225,
898,
31,
202,
97,
1377,
289,
565,
289,
565,
312,
67,
4841,
273,
394,
6910,
4841,
1972,
1586,
5621,
565,
312,
67,
4841,
18,
2630,
1630,
12,
81,
67,
892,
1769,
565,
312,
67,
892,
273,
4008,
18,
1202,
1586,
12,
81,
67,
892,
16,
312,
67,
4841,
1769,
377,
309,
16051,
81,
67,
72,
1580,
14380,
13,
288,
1377,
312,
67,
23651,
273,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1361,
13860,
12,
5361,
1804,
87,
13,
1216,
1185,
288,
565,
509,
312,
67,
8111,
41,
4524,
273,
374,
31,
565,
309,
261,
8591,
87,
18,
1893,
1290,
780,
2498,
10756,
288,
1377,
604,
394,
1185,
2932,
2568,
1404,
1640,
533,
1677,
4442,
1769,
565,
289,
565,
309,
261,
8591,
87,
18,
2107,
4818,
1435,
405,
576,
13,
288,
1377,
604,
394,
1185,
2932,
2568,
1338,
1640,
2795,
17,
1106,
11109,
4442,
1769,
565,
289,
565,
309,
261,
8591,
87,
18,
1106,
1499,
7675,
291,
9902,
10756,
288,
1377,
604,
394,
1185,
2932,
55,
5980,
848,
1404,
1640,
279,
6389,
667,
4442,
1769,
565,
289,
565,
312,
67,
892,
273,
1804,
87,
31,
565,
312,
67,
2
] |
|
source = source.substring(lastIndex);
|
source = source.substring(0, lastIndex);
|
public static long getUrlLastModified(URL u) { String protocol = u.getProtocol(); if (protocol.equals("file")) { // We're going to use the File mechanism instead File f = new File(u.getFile()); return f.lastModified(); } else if (protocol.equals("jar")) { // We'll extract the jar source and recurse String source = u.getFile(); int lastIndex = source.lastIndexOf("!"); if (lastIndex > 0) source = source.substring(lastIndex); try { return getUrlLastModified(new URL(source)); } catch (MalformedURLException e) { return 0; } } else { // Ask the URL, maybe it knows try { URLConnection uc = u.openConnection(); uc.connect(); return uc.getLastModified(); } catch (IOException e) { return 0; } } }
|
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/461535b4998d93fc2e14ba7ac5a73b0c645aa111/UrlProvider.java/buggy/webmacro/src/org/webmacro/resource/UrlProvider.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
760,
1525,
8928,
14747,
12,
1785,
582,
13,
288,
1377,
514,
1771,
273,
582,
18,
588,
5752,
5621,
1377,
309,
261,
8373,
18,
14963,
2932,
768,
6,
3719,
288,
540,
368,
1660,
4565,
8554,
358,
999,
326,
1387,
12860,
3560,
540,
1387,
284,
273,
394,
1387,
12,
89,
18,
29925,
10663,
540,
327,
284,
18,
2722,
4575,
5621,
1377,
289,
1377,
469,
309,
261,
8373,
18,
14963,
2932,
11930,
6,
3719,
288,
540,
368,
1660,
5614,
2608,
326,
7334,
1084,
471,
11502,
540,
514,
1084,
273,
582,
18,
29925,
5621,
540,
509,
7536,
273,
1084,
18,
2722,
31985,
2932,
4442,
1769,
540,
309,
261,
2722,
1016,
405,
374,
13,
2398,
1084,
273,
1084,
18,
28023,
12,
20,
16,
7536,
1769,
540,
775,
288,
5411,
327,
8928,
14747,
12,
2704,
1976,
12,
3168,
10019,
540,
289,
1850,
1044,
261,
18695,
20160,
425,
13,
288,
5411,
327,
374,
31,
540,
289,
1377,
289,
1377,
469,
288,
540,
368,
25747,
326,
1976,
16,
6944,
518,
21739,
540,
775,
288,
5411,
1976,
1952,
6232,
273,
582,
18,
3190,
1952,
5621,
5411,
6232,
18,
3612,
5621,
5411,
327,
6232,
18,
588,
14747,
5621,
540,
289,
540,
1044,
261,
14106,
425,
13,
288,
2398,
327,
374,
31,
540,
289,
1377,
289,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
760,
1525,
8928,
14747,
12,
1785,
582,
13,
288,
1377,
514,
1771,
273,
582,
18,
588,
5752,
5621,
1377,
309,
261,
8373,
18,
14963,
2932,
768,
6,
3719,
288,
540,
368,
1660,
4565,
8554,
358,
999,
326,
1387,
12860,
3560,
540,
1387,
284,
273,
394,
1387,
12,
89,
18,
29925,
10663,
540,
327,
284,
18,
2722,
4575,
5621,
1377,
289,
1377,
469,
309,
261,
8373,
18,
14963,
2932,
11930,
6,
3719,
288,
540,
368,
1660,
5614,
2608,
326,
7334,
1084,
471,
11502,
540,
514,
1084,
273,
582,
18,
29925,
5621,
540,
509,
7536,
273,
1084,
18,
2722,
31985,
2932,
4442,
1769,
540,
309,
261,
2722,
1016,
405,
374,
13,
2398,
1084,
273,
1084,
18,
28023,
12,
20,
2
] |
billboard.setType(BillboardNode.AXIAL);
|
billboard.setAlignment(BillboardNode.AXIAL);
|
protected void simpleInitGame() { display.setTitle("Billboard test"); cam.setLocation(new Vector3f(0.0f, 0.0f, 40.0f)); cam.update(); lightState.setEnabled(false); // we don't want lighting by default. Quad q = new Quad("Quad"); q.initialize(3, 3); TextureState ts = display.getRenderer().createTextureState(); ts.setEnabled(true); Texture t1 = TextureManager.loadTexture( TestBoxColor.class.getClassLoader().getResource( "jmetest/data/images/Monkey.jpg"), Texture.MM_LINEAR_LINEAR, Texture.FM_LINEAR); ts.setTexture(t1); q.setRenderState(ts); BillboardNode billboard = new BillboardNode("Billboard"); billboard.setType(BillboardNode.AXIAL); billboard.attachChild(q); rootNode.attachChild(billboard); }
|
19503 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19503/3e21ca7f6190a194ad051e71ba05a190c4f78b8e/TestBillboardNode.java/buggy/src/jmetest/renderer/TestBillboardNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
4143,
2570,
12496,
1435,
288,
565,
2562,
18,
542,
4247,
2932,
38,
737,
3752,
1842,
8863,
565,
5861,
18,
542,
2735,
12,
2704,
5589,
23,
74,
12,
20,
18,
20,
74,
16,
374,
18,
20,
74,
16,
8063,
18,
20,
74,
10019,
565,
5861,
18,
2725,
5621,
565,
9052,
1119,
18,
542,
1526,
12,
5743,
1769,
368,
732,
2727,
1404,
2545,
9052,
310,
635,
805,
18,
565,
27258,
1043,
273,
394,
27258,
2932,
24483,
8863,
565,
1043,
18,
11160,
12,
23,
16,
890,
1769,
565,
28582,
1119,
3742,
273,
2562,
18,
588,
6747,
7675,
2640,
10967,
1119,
5621,
565,
3742,
18,
542,
1526,
12,
3767,
1769,
565,
28582,
268,
21,
273,
28582,
1318,
18,
945,
10967,
12,
3639,
7766,
3514,
2957,
18,
1106,
18,
588,
7805,
7675,
588,
1420,
12,
3639,
315,
78,
10578,
395,
19,
892,
19,
7369,
19,
11415,
856,
18,
14362,
6,
3631,
3639,
28582,
18,
8206,
67,
5997,
985,
67,
5997,
985,
16,
3639,
28582,
18,
42,
49,
67,
5997,
985,
1769,
565,
3742,
18,
542,
10967,
12,
88,
21,
1769,
565,
1043,
18,
542,
3420,
1119,
12,
3428,
1769,
565,
605,
737,
3752,
907,
20714,
3752,
273,
394,
605,
737,
3752,
907,
2932,
38,
737,
3752,
8863,
565,
20714,
3752,
18,
542,
11535,
12,
38,
737,
3752,
907,
18,
2501,
6365,
1769,
565,
20714,
3752,
18,
7331,
1763,
12,
85,
1769,
565,
10181,
18,
7331,
1763,
12,
17240,
3752,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
4143,
2570,
12496,
1435,
288,
565,
2562,
18,
542,
4247,
2932,
38,
737,
3752,
1842,
8863,
565,
5861,
18,
542,
2735,
12,
2704,
5589,
23,
74,
12,
20,
18,
20,
74,
16,
374,
18,
20,
74,
16,
8063,
18,
20,
74,
10019,
565,
5861,
18,
2725,
5621,
565,
9052,
1119,
18,
542,
1526,
12,
5743,
1769,
368,
732,
2727,
1404,
2545,
9052,
310,
635,
805,
18,
565,
27258,
1043,
273,
394,
27258,
2932,
24483,
8863,
565,
1043,
18,
11160,
12,
23,
16,
890,
1769,
565,
28582,
1119,
3742,
273,
2562,
18,
588,
6747,
7675,
2640,
10967,
1119,
5621,
565,
3742,
18,
542,
1526,
12,
3767,
1769,
565,
28582,
268,
21,
273,
28582,
1318,
18,
945,
10967,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.