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 |
|---|---|---|---|---|---|---|
if ( pde )
|
if ( pde && pdeLibDir.isDirectory() )
|
public void execute() throws MojoExecutionException { // since the eclipse plugin doesn't generate configuration for POM projects, it should neither delete it if ( "pom".equals( packaging ) ) //$NON-NLS-1$ { getLog().info( Messages.getString( "EclipsePlugin.pompackaging" ) ); //$NON-NLS-1$ return; } delete( new File( basedir, FILE_DOT_PROJECT ) ); delete( new File( basedir, FILE_DOT_CLASSPATH ) ); delete( new File( basedir, FILE_DOT_WTPMODULES ) ); delete( new File( basedir, FILE_DOT_COMPONENT ) ); delete( new File( basedir, FILE_DOT_COMPONENT_15 ) ); delete( new File( basedir, FILE_FACET_CORE_XML ) ); File settingsDir = new File( basedir, DIR_DOT_SETTINGS ); if ( settingsDir.exists() && settingsDir.isDirectory() && settingsDir.list().length == 0 ) { delete( settingsDir ); } if ( pde ) { delete( pdeLibDir ); } }
|
51807 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51807/0c89972ebbb791bf4b14300b99a8e29692c780f0/EclipseCleanMojo.java/buggy/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipseCleanMojo.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
3639,
1216,
18780,
565,
288,
3639,
368,
3241,
326,
6557,
10472,
1909,
3302,
1404,
2103,
1664,
364,
453,
1872,
10137,
16,
518,
1410,
15826,
1430,
518,
3639,
309,
261,
315,
84,
362,
9654,
14963,
12,
2298,
5755,
262,
262,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
288,
5411,
9189,
7675,
1376,
12,
4838,
18,
588,
780,
12,
315,
23057,
10472,
3773,
18,
84,
362,
2920,
5755,
6,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
5411,
327,
31,
3639,
289,
3639,
1430,
12,
394,
1387,
12,
15573,
16,
7527,
67,
17591,
67,
17147,
262,
11272,
3639,
1430,
12,
394,
1387,
12,
15573,
16,
7527,
67,
17591,
67,
5237,
4211,
262,
11272,
3639,
1430,
12,
394,
1387,
12,
15573,
16,
7527,
67,
17591,
67,
8588,
52,
12194,
55,
262,
11272,
3639,
1430,
12,
394,
1387,
12,
15573,
16,
7527,
67,
17591,
67,
22922,
262,
11272,
3639,
1430,
12,
394,
1387,
12,
15573,
16,
7527,
67,
17591,
67,
22922,
67,
3600,
262,
11272,
3639,
1430,
12,
394,
1387,
12,
15573,
16,
7527,
67,
11300,
56,
67,
15715,
67,
4201,
262,
11272,
3639,
1387,
1947,
1621,
273,
394,
1387,
12,
15573,
16,
18544,
67,
17591,
67,
19428,
11272,
3639,
309,
261,
1947,
1621,
18,
1808,
1435,
597,
1947,
1621,
18,
291,
2853,
1435,
597,
1947,
1621,
18,
1098,
7675,
2469,
422,
374,
262,
3639,
288,
5411,
1430,
12,
1947,
1621,
11272,
3639,
289,
3639,
309,
261,
293,
323,
597,
293,
323,
5664,
1621,
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,
1836,
1435,
3639,
1216,
18780,
565,
288,
3639,
368,
3241,
326,
6557,
10472,
1909,
3302,
1404,
2103,
1664,
364,
453,
1872,
10137,
16,
518,
1410,
15826,
1430,
518,
3639,
309,
261,
315,
84,
362,
9654,
14963,
12,
2298,
5755,
262,
262,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
288,
5411,
9189,
7675,
1376,
12,
4838,
18,
588,
780,
12,
315,
23057,
10472,
3773,
18,
84,
362,
2920,
5755,
6,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
5411,
327,
31,
3639,
289,
3639,
1430,
12,
394,
1387,
12,
15573,
16,
7527,
67,
17591,
67,
17147,
262,
11272,
3639,
1430,
12,
394,
1387,
12,
15573,
16,
7527,
67,
17591,
67,
5237,
4211,
262,
11272,
3639,
2
] |
public void populatePolygonCorners(Vector atomsToDraw, Point2d rotationCenter, double startAngle, double addAngle, double radius, boolean doDistanceSort)
|
public void populatePolygonCorners(Vector atomsToDraw, Point2d rotationCenter, double startAngle, double addAngle, double radius)
|
public void populatePolygonCorners(Vector atomsToDraw, Point2d rotationCenter, double startAngle, double addAngle, double radius, boolean doDistanceSort) { Atom connectAtom = null; double angle = startAngle; double newX; double newY; double x; double y; logger.debug("populatePolygonCorners->startAngle: " + Math.toDegrees(angle)); Vector points = new Vector(); Atom atom = null; if (doDistanceSort) { calculateWeights(molecule); System.out.println("listing atom weights before sorting..."); for (int f = 0; f < atomsToDraw.size(); f++) { atom = (Atom)atomsToDraw.elementAt(f); System.out.println("Atom " + (f + 1) + ": " + atom.getProperty("Weight")); } System.out.println("...done."); Collections.sort(atomsToDraw, ATOM_ORDER); System.out.println("listing atom weights after sorting..."); for (int f = 0; f < atomsToDraw.size(); f++) { atom = (Atom)atomsToDraw.elementAt(f); System.out.println("Atom " + (f + 1) + ": " + atom.getProperty("Weight")); } System.out.println("...done."); } for (int i = 0; i < atomsToDraw.size(); i++) { angle = angle + addAngle; if (angle >= 2 * Math.PI) { angle -= 2 * Math.PI; } logger.debug("populatePolygonCorners->angle: " + Math.toDegrees(angle)); x = Math.cos(angle) * radius; y = Math.sin(angle) * radius; newX = x + rotationCenter.x; newY = y + rotationCenter.y; points.addElement(new Point2d(newX, newY)); try { logger.debug("populatePolygonCorners->connectAtom: " + (molecule.getAtomNumber(connectAtom) + 1) + " placed at " + connectAtom.getPoint2D()); } catch (Exception exc) { //nothing to catch here. This is just for logging } } for (int i = 0; i < atomsToDraw.size(); i++) { connectAtom = (Atom) atomsToDraw.elementAt(i); connectAtom.setPoint2D((Point2d)points.elementAt(i)); connectAtom.setFlag(CDKConstants.ISPLACED, true); } }
|
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/eebdc3ba3a09a01afe679873d6b9f2d6f48e4950/AtomPlacer.java/clean/src/org/openscience/cdk/layout/AtomPlacer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
6490,
11787,
6217,
9646,
12,
5018,
9006,
774,
6493,
16,
4686,
22,
72,
6752,
8449,
16,
1645,
787,
8467,
16,
1645,
527,
8467,
16,
1645,
5725,
16,
1250,
741,
7200,
4416,
13,
202,
95,
202,
202,
3641,
3077,
3641,
273,
446,
31,
202,
202,
9056,
5291,
273,
787,
8467,
31,
202,
202,
9056,
394,
60,
31,
202,
202,
9056,
394,
61,
31,
202,
202,
9056,
619,
31,
202,
202,
9056,
677,
31,
202,
202,
4901,
18,
4148,
2932,
19936,
11787,
6217,
9646,
2122,
1937,
8467,
30,
315,
397,
2361,
18,
869,
24400,
12,
4341,
10019,
202,
202,
5018,
3143,
273,
394,
5589,
5621,
202,
202,
3641,
3179,
273,
446,
31,
202,
202,
430,
261,
2896,
7200,
4416,
13,
202,
202,
95,
202,
26924,
202,
11162,
16595,
12,
81,
10545,
1769,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
21228,
3179,
5376,
1865,
9602,
7070,
1769,
1082,
202,
1884,
261,
474,
284,
273,
374,
31,
284,
411,
9006,
774,
6493,
18,
1467,
5621,
284,
27245,
1082,
202,
95,
9506,
202,
7466,
273,
261,
3641,
13,
7466,
11634,
6493,
18,
2956,
861,
12,
74,
1769,
9506,
202,
3163,
18,
659,
18,
8222,
2932,
3641,
315,
397,
261,
74,
397,
404,
13,
397,
6398,
315,
397,
3179,
18,
588,
1396,
2932,
6544,
7923,
1769,
9506,
202,
97,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
2777,
8734,
1199,
1769,
1082,
202,
15150,
18,
3804,
12,
7466,
11634,
6493,
16,
27460,
67,
7954,
1769,
1082,
202,
3163,
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,
6490,
11787,
6217,
9646,
12,
5018,
9006,
774,
6493,
16,
4686,
22,
72,
6752,
8449,
16,
1645,
787,
8467,
16,
1645,
527,
8467,
16,
1645,
5725,
16,
1250,
741,
7200,
4416,
13,
202,
95,
202,
202,
3641,
3077,
3641,
273,
446,
31,
202,
202,
9056,
5291,
273,
787,
8467,
31,
202,
202,
9056,
394,
60,
31,
202,
202,
9056,
394,
61,
31,
202,
202,
9056,
619,
31,
202,
202,
9056,
677,
31,
202,
202,
4901,
18,
4148,
2932,
19936,
11787,
6217,
9646,
2122,
1937,
8467,
30,
315,
397,
2361,
18,
869,
24400,
12,
4341,
10019,
202,
202,
5018,
3143,
273,
394,
5589,
5621,
202,
202,
3641,
3179,
273,
446,
31,
202,
202,
430,
261,
2896,
2
] |
m_eventReader.close();
|
public synchronized void stop() { Category log = ThreadCategory.getInstance(getClass()); m_status = STOP_PENDING; // shutdown and wait on the background processing thread to exit. log.debug("exit: closing communication paths."); try { log.debug("stop: Closing SNMP trap session."); SnmpUtils.unregisterForTraps(this, m_trapdConfig.getSnmpTrapPort()); log.debug("stop: SNMP trap session closed."); } catch (IOException e) { log.warn("stop: exception occurred closing session", e); } catch (IllegalStateException e) { log.debug("stop: The SNMP session was already closed"); } log.debug("stop: Stopping queue processor."); // interrupt the processor daemon thread m_processor.stop();// m_eventReader.close(); m_status = STOPPED; log.debug("stop: Trapd stopped"); }
|
25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/ce9ed6240bad3deba8bd4d91751317d5f3585491/TrapHandler.java/clean/opennms-services/src/main/java/org/opennms/netmgt/trapd/TrapHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
312,
67,
2575,
2514,
18,
4412,
5621,
312,
67,
2575,
2514,
18,
4412,
5621,
312,
67,
2575,
2514,
18,
4412,
5621,
312,
67,
2575,
2514,
18,
4412,
5621,
1071,
81,
67,
2575,
2514,
18,
4412,
5621,
3852,
81,
67,
2575,
2514,
18,
4412,
5621,
918,
81,
67,
2575,
2514,
18,
4412,
5621,
2132,
1435,
81,
67,
2575,
2514,
18,
4412,
5621,
288,
81,
67,
2575,
2514,
18,
4412,
5621,
312,
67,
2575,
2514,
18,
4412,
5621,
312,
67,
2575,
2514,
18,
4412,
5621,
312,
67,
2575,
2514,
18,
4412,
5621,
312,
67,
2575,
2514,
18,
4412,
5621,
312,
67,
2575,
2514,
18,
4412,
5621,
312,
67,
2575,
2514,
18,
4412,
5621,
312,
67,
2575,
2514,
18,
4412,
5621,
9856,
81,
67,
2575,
2514,
18,
4412,
5621,
613,
81,
67,
2575,
2514,
18,
4412,
5621,
273,
81,
67,
2575,
2514,
18,
4412,
5621,
4884,
4457,
18,
588,
1442,
12,
588,
797,
10663,
81,
67,
2575,
2514,
18,
4412,
5621,
312,
67,
2575,
2514,
18,
4412,
5621,
312,
67,
2575,
2514,
18,
4412,
5621,
312,
67,
2575,
2514,
18,
4412,
5621,
312,
67,
2575,
2514,
18,
4412,
5621,
312,
67,
2575,
2514,
18,
4412,
5621,
312,
67,
2575,
2514,
18,
4412,
5621,
312,
67,
2575,
2514,
18,
4412,
5621,
312,
67,
2327,
81,
67,
2575,
2514,
18,
4412,
5621,
273,
81,
67,
2575,
2514,
18,
4412,
5621,
17815,
67,
25691,
31,
81,
67,
2575,
2514,
18,
4412,
5621,
312,
67,
2575,
2514,
18,
4412,
5621,
312,
67,
2575,
2514,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
312,
67,
2575,
2514,
18,
4412,
5621,
312,
67,
2575,
2514,
18,
4412,
5621,
312,
67,
2575,
2514,
18,
4412,
5621,
312,
67,
2575,
2514,
18,
4412,
5621,
1071,
81,
67,
2575,
2514,
18,
4412,
5621,
3852,
81,
67,
2575,
2514,
18,
4412,
5621,
918,
81,
67,
2575,
2514,
18,
4412,
5621,
2132,
1435,
81,
67,
2575,
2514,
18,
4412,
5621,
288,
81,
67,
2575,
2514,
18,
4412,
5621,
312,
67,
2575,
2514,
18,
4412,
5621,
312,
67,
2575,
2514,
18,
4412,
5621,
312,
67,
2575,
2514,
18,
4412,
5621,
312,
67,
2575,
2514,
18,
4412,
5621,
312,
67,
2575,
2514,
18,
4412,
5621,
312,
67,
2575,
2514,
18,
4412,
5621,
312,
67,
2575,
2514,
18,
4412,
5621,
9856,
2
] |
|
String editorID, boolean activate, boolean findExisting) throws PartInitException {
|
String editorID, boolean activate, int matchFlags) throws PartInitException {
|
private IEditorPart busyOpenEditorBatched(IEditorInput input, String editorID, boolean activate, boolean findExisting) throws PartInitException { IEditorPart editor = null; if (findExisting) { // If an editor already exists for the input, use it. editor = getEditorManager().findEditor(input); if (editor != null) { if (IEditorRegistry.SYSTEM_EXTERNAL_EDITOR_ID.equals(editorID)) { if (editor.isDirty()) { MessageDialog dialog = new MessageDialog( getWorkbenchWindow().getShell(), WorkbenchMessages.Save, null, // accept the default window icon NLS.bind(WorkbenchMessages.WorkbenchPage_editorAlreadyOpenedMsg, input.getName()), MessageDialog.QUESTION, new String[] { IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL, IDialogConstants.CANCEL_LABEL }, 0); int saveFile = dialog.open(); if (saveFile == 0) { try { final IEditorPart editorToSave = editor; getWorkbenchWindow().run(false, false, new IRunnableWithProgress() { public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { editorToSave.doSave(monitor); } }); } catch (InvocationTargetException e) { throw (RuntimeException) e.getTargetException(); } catch (InterruptedException e) { return null; } } else if (saveFile == 2) { return null; } } } else { // do the IShowEditorInput notification before showing the editor // to reduce flicker if (editor instanceof IShowEditorInput) { ((IShowEditorInput) editor).showEditorInput(input); } showEditor(activate, editor); return editor; } } } // Otherwise, create a new one. This may cause the new editor to // become the visible (i.e top) editor. IEditorReference ref = null; ref = getEditorManager().openEditor(editorID, input, true); if (ref != null) { editor = ref.getEditor(true); } if (editor != null) { setEditorAreaVisible(true); if (activate) { if (editor instanceof MultiEditor) activate(((MultiEditor) editor).getActiveEditor()); else activate(editor); } else { bringToTop(editor); } window.firePerspectiveChanged(this, getPerspective(), ref, CHANGE_EDITOR_OPEN); window.firePerspectiveChanged(this, getPerspective(), CHANGE_EDITOR_OPEN); } return editor; }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/662625ea215497034847e1b37353c7cd1ca11a9f/WorkbenchPage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
467,
6946,
1988,
21697,
3678,
6946,
4497,
329,
12,
45,
6946,
1210,
810,
16,
5411,
514,
4858,
734,
16,
1250,
10235,
16,
225,
1250,
1104,
9895,
13,
1216,
6393,
2570,
503,
288,
202,
202,
45,
6946,
1988,
4858,
273,
446,
31,
9506,
202,
430,
261,
4720,
9895,
13,
288,
202,
3639,
368,
971,
392,
4858,
1818,
1704,
364,
326,
810,
16,
999,
518,
18,
202,
3639,
4858,
273,
336,
6946,
1318,
7675,
4720,
6946,
12,
2630,
1769,
202,
3639,
309,
261,
9177,
480,
446,
13,
288,
202,
5411,
309,
261,
45,
6946,
4243,
18,
14318,
67,
2294,
11702,
67,
13208,
67,
734,
18,
14963,
12,
9177,
734,
3719,
288,
202,
7734,
309,
261,
9177,
18,
291,
10785,
10756,
288,
202,
10792,
2350,
6353,
6176,
273,
394,
2350,
6353,
12,
202,
18701,
29026,
22144,
3829,
7675,
588,
13220,
9334,
202,
18701,
4147,
22144,
5058,
18,
4755,
16,
3196,
18701,
446,
16,
368,
2791,
326,
805,
2742,
4126,
202,
18701,
29117,
18,
4376,
12,
2421,
22144,
5058,
18,
2421,
22144,
1964,
67,
9177,
9430,
23115,
3332,
16,
225,
810,
18,
17994,
1435,
3631,
3196,
18701,
2350,
6353,
18,
4740,
1146,
16,
394,
514,
8526,
288,
202,
4766,
565,
1599,
3529,
2918,
18,
29081,
67,
13545,
16,
202,
4766,
565,
1599,
3529,
2918,
18,
3417,
67,
13545,
16,
202,
4766,
565,
1599,
3529,
2918,
18,
25268,
67,
13545,
19879,
374,
1769,
202,
10792,
509,
1923,
812,
273,
6176,
18,
3190,
5621,
202,
10792,
309,
261,
5688,
812,
422,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
467,
6946,
1988,
21697,
3678,
6946,
4497,
329,
12,
45,
6946,
1210,
810,
16,
5411,
514,
4858,
734,
16,
1250,
10235,
16,
225,
1250,
1104,
9895,
13,
1216,
6393,
2570,
503,
288,
202,
202,
45,
6946,
1988,
4858,
273,
446,
31,
9506,
202,
430,
261,
4720,
9895,
13,
288,
202,
3639,
368,
971,
392,
4858,
1818,
1704,
364,
326,
810,
16,
999,
518,
18,
202,
3639,
4858,
273,
336,
6946,
1318,
7675,
4720,
6946,
12,
2630,
1769,
202,
3639,
309,
261,
9177,
480,
446,
13,
288,
202,
5411,
309,
261,
45,
6946,
4243,
18,
14318,
67,
2294,
11702,
67,
13208,
67,
734,
18,
14963,
12,
9177,
734,
3719,
288,
202,
7734,
309,
261,
9177,
18,
291,
10785,
2
] |
nf.addChildToBack(pn, primaryExpr(ts, source));
|
nf.addChildToBack(pn, primaryExpr(ts));
|
private Object memberExpr(TokenStream ts, Source source, boolean allowCallSyntax) throws IOException, JavaScriptException { int tt; Object pn; /* Check for new expressions. */ ts.flags |= ts.TSF_REGEXP; tt = ts.peekToken(); ts.flags &= ~ts.TSF_REGEXP; if (tt == ts.NEW) { /* Eat the NEW token. */ ts.getToken(); source.append((char)ts.NEW); /* Make a NEW node to append to. */ pn = nf.createLeaf(ts.NEW); nf.addChildToBack(pn, memberExpr(ts, source, false)); if (ts.matchToken(ts.LP)) { source.append((char)ts.LP); /* Add the arguments to pn, if any are supplied. */ pn = argumentList(ts, source, pn); } /* XXX there's a check in the C source against * "too many constructor arguments" - how many * do we claim to support? */ /* Experimental syntax: allow an object literal to follow a new expression, * which will mean a kind of anonymous class built with the JavaAdapter. * the object literal will be passed as an additional argument to the constructor. */ tt = ts.peekToken(); if (tt == ts.LC) { nf.addChildToBack(pn, primaryExpr(ts, source)); } } else { pn = primaryExpr(ts, source); } lastExprEndLine = ts.getLineno(); while ((tt = ts.getToken()) > ts.EOF) { if (tt == ts.DOT) { source.append((char)ts.DOT); mustMatchToken(ts, ts.NAME, "msg.no.name.after.dot"); String s = ts.getString(); source.addString(ts.NAME, s); pn = nf.createBinary(ts.DOT, pn, nf.createName(ts.getString())); /* pn = nf.createBinary(ts.DOT, pn, memberExpr(ts)) * is the version in Brendan's IR C version. Not in ECMA... * does it reflect the 'new' operator syntax he mentioned? */ lastExprEndLine = ts.getLineno(); } else if (tt == ts.LB) { source.append((char)ts.LB); pn = nf.createBinary(ts.LB, pn, expr(ts, source, false)); mustMatchToken(ts, ts.RB, "msg.no.bracket.index"); source.append((char)ts.RB); lastExprEndLine = ts.getLineno(); } else if (allowCallSyntax && tt == ts.LP) { /* make a call node */ pn = nf.createUnary(ts.CALL, pn); source.append((char)ts.LP); /* Add the arguments to pn, if any are supplied. */ pn = argumentList(ts, source, pn); lastExprEndLine = ts.getLineno(); } else { ts.ungetToken(tt); break; } } return pn; }
|
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/3d2e81a014b22cf4d1eb8921bd4229c2ca7ff017/Parser.java/buggy/js/rhino/src/org/mozilla/javascript/Parser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
3140,
4742,
12,
1345,
1228,
3742,
16,
4998,
1084,
16,
17311,
1250,
1699,
1477,
8070,
13,
3639,
1216,
1860,
16,
11905,
503,
565,
288,
3639,
509,
3574,
31,
3639,
1033,
11059,
31,
7734,
1748,
2073,
364,
394,
8041,
18,
1195,
3639,
3742,
18,
7133,
5626,
3742,
18,
8047,
42,
67,
28225,
31,
3639,
3574,
273,
3742,
18,
347,
3839,
1345,
5621,
3639,
3742,
18,
7133,
12058,
4871,
3428,
18,
8047,
42,
67,
28225,
31,
3639,
309,
261,
748,
422,
3742,
18,
12917,
13,
288,
5411,
1748,
512,
270,
326,
12887,
1147,
18,
1195,
5411,
3742,
18,
588,
1345,
5621,
5411,
1084,
18,
6923,
12443,
3001,
13,
3428,
18,
12917,
1769,
5411,
1748,
4344,
279,
12887,
756,
358,
714,
358,
18,
1195,
5411,
11059,
273,
13958,
18,
2640,
9858,
12,
3428,
18,
12917,
1769,
5411,
13958,
18,
1289,
1763,
774,
2711,
12,
7449,
16,
3140,
4742,
12,
3428,
16,
1084,
16,
629,
10019,
5411,
309,
261,
3428,
18,
1916,
1345,
12,
3428,
18,
14461,
3719,
288,
7734,
1084,
18,
6923,
12443,
3001,
13,
3428,
18,
14461,
1769,
7734,
1748,
1436,
326,
1775,
358,
11059,
16,
309,
1281,
854,
4580,
18,
1195,
7734,
11059,
273,
1237,
682,
12,
3428,
16,
1084,
16,
11059,
1769,
5411,
289,
5411,
1748,
11329,
1915,
1807,
279,
866,
316,
326,
385,
1084,
5314,
2398,
380,
315,
16431,
4906,
3885,
1775,
6,
300,
3661,
4906,
2398,
380,
741,
732,
7516,
358,
2865,
35,
2398,
1195,
13491,
1748,
22844,
287,
6279,
30,
225,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
3140,
4742,
12,
1345,
1228,
3742,
16,
4998,
1084,
16,
17311,
1250,
1699,
1477,
8070,
13,
3639,
1216,
1860,
16,
11905,
503,
565,
288,
3639,
509,
3574,
31,
3639,
1033,
11059,
31,
7734,
1748,
2073,
364,
394,
8041,
18,
1195,
3639,
3742,
18,
7133,
5626,
3742,
18,
8047,
42,
67,
28225,
31,
3639,
3574,
273,
3742,
18,
347,
3839,
1345,
5621,
3639,
3742,
18,
7133,
12058,
4871,
3428,
18,
8047,
42,
67,
28225,
31,
3639,
309,
261,
748,
422,
3742,
18,
12917,
13,
288,
5411,
1748,
512,
270,
326,
12887,
1147,
18,
1195,
5411,
3742,
18,
588,
1345,
5621,
5411,
1084,
18,
6923,
12443,
3001,
13,
3428,
18,
12917,
1769,
5411,
1748,
4344,
279,
12887,
756,
2
] |
assertTrue(DiffUtil.validatePage(document, this.getClass(), filename));
|
DiffUtil.validatePage(document, this.getClass(), filename,true);
|
public void executeTest(final Class<? extends Page> pageClass, final String filename) throws Exception { System.out.println("=== " + pageClass.getName() + " ==="); tester = new WicketTester(pageClass); // Do the processing tester.setupRequestAndResponse(); tester.processRequestCycle(); // Validate the document String document = tester.getServletResponse().getDocument(); assertTrue(DiffUtil.validatePage(document, this.getClass(), filename)); }
|
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/5c61480e82165eacf78f4435fe9fca4ca16384e4/WicketNamespaceTest.java/buggy/wicket/src/test/java/wicket/markup/WicketNamespaceTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1836,
4709,
12,
6385,
1659,
12880,
3231,
3460,
34,
1363,
797,
16,
727,
514,
1544,
13,
1216,
1185,
202,
95,
202,
202,
3163,
18,
659,
18,
8222,
2932,
12275,
315,
397,
1363,
797,
18,
17994,
1435,
397,
315,
757,
8863,
202,
202,
1078,
387,
273,
394,
678,
29378,
56,
7654,
12,
2433,
797,
1769,
202,
202,
759,
2256,
326,
4929,
202,
202,
1078,
387,
18,
8401,
691,
1876,
1064,
5621,
202,
202,
1078,
387,
18,
2567,
691,
13279,
5621,
202,
202,
759,
3554,
326,
1668,
202,
202,
780,
1668,
273,
268,
7654,
18,
588,
29910,
7675,
588,
2519,
5621,
202,
202,
11231,
5510,
12,
5938,
1304,
18,
5662,
1964,
12,
5457,
16,
333,
18,
588,
797,
9334,
1544,
10019,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1836,
4709,
12,
6385,
1659,
12880,
3231,
3460,
34,
1363,
797,
16,
727,
514,
1544,
13,
1216,
1185,
202,
95,
202,
202,
3163,
18,
659,
18,
8222,
2932,
12275,
315,
397,
1363,
797,
18,
17994,
1435,
397,
315,
757,
8863,
202,
202,
1078,
387,
273,
394,
678,
29378,
56,
7654,
12,
2433,
797,
1769,
202,
202,
759,
2256,
326,
4929,
202,
202,
1078,
387,
18,
8401,
691,
1876,
1064,
5621,
202,
202,
1078,
387,
18,
2567,
691,
13279,
5621,
202,
202,
759,
3554,
326,
1668,
202,
202,
780,
1668,
273,
268,
7654,
18,
588,
29910,
7675,
588,
2519,
5621,
202,
202,
11231,
5510,
12,
5938,
1304,
18,
5662,
1964,
12,
5457,
16,
333,
18,
588,
2
] |
chitSelected = false;
|
critterSelected = false;
|
public void actOnHex(BattleHex hex) { switch (getPhase()) { case MOVE: if (chitSelected) { getCritter(0).moveToHex(hex); chitSelected = false; } highlightMovableChits(); break; case FIGHT: case STRIKEBACK: if (getCarryDamage() > 0) { applyCarries(hex.getCritter()); } else if (chitSelected) { getCritter(0).strike(hex.getCritter()); chitSelected = false; } if (getCarryDamage() == 0) { if (game != null) { Player player = getActivePlayer(); if (player.getOption(Game.autoForcedStrike)) { makeForcedStrikes(false); } } highlightChitsWithTargets(); } break; default: break; } }
|
51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/097aac8871f232313bd7d285cf38ae1e8056ef86/Battle.java/buggy/Colossus/Battle.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1328,
1398,
7037,
12,
38,
4558,
298,
7037,
3827,
13,
565,
288,
3639,
1620,
261,
588,
11406,
10756,
3639,
288,
5411,
648,
16070,
3412,
30,
7734,
309,
261,
343,
305,
7416,
13,
7734,
288,
10792,
1927,
583,
387,
12,
20,
2934,
8501,
774,
7037,
12,
7118,
1769,
10792,
7921,
387,
7416,
273,
629,
31,
7734,
289,
7734,
8839,
49,
1527,
429,
782,
1282,
5621,
7734,
898,
31,
5411,
648,
478,
7700,
30,
5411,
648,
2347,
2259,
6859,
8720,
30,
7734,
309,
261,
588,
16321,
1176,
40,
301,
410,
1435,
405,
374,
13,
7734,
288,
10792,
2230,
16321,
566,
281,
12,
7118,
18,
588,
39,
583,
387,
10663,
7734,
289,
7734,
469,
309,
261,
343,
305,
7416,
13,
7734,
288,
10792,
1927,
583,
387,
12,
20,
2934,
701,
2547,
12,
7118,
18,
588,
39,
583,
387,
10663,
10792,
7921,
387,
7416,
273,
629,
31,
7734,
289,
7734,
309,
261,
588,
16321,
1176,
40,
301,
410,
1435,
422,
374,
13,
7734,
288,
10792,
309,
261,
13957,
480,
446,
13,
10792,
288,
13491,
19185,
7291,
273,
11960,
12148,
5621,
13491,
309,
261,
14872,
18,
588,
1895,
12,
12496,
18,
6079,
1290,
3263,
1585,
2547,
3719,
13491,
288,
18701,
1221,
1290,
3263,
1585,
25235,
12,
5743,
1769,
13491,
289,
10792,
289,
10792,
8839,
782,
1282,
1190,
9432,
5621,
7734,
289,
7734,
898,
31,
5411,
805,
30,
7734,
898,
31,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1328,
1398,
7037,
12,
38,
4558,
298,
7037,
3827,
13,
565,
288,
3639,
1620,
261,
588,
11406,
10756,
3639,
288,
5411,
648,
16070,
3412,
30,
7734,
309,
261,
343,
305,
7416,
13,
7734,
288,
10792,
1927,
583,
387,
12,
20,
2934,
8501,
774,
7037,
12,
7118,
1769,
10792,
7921,
387,
7416,
273,
629,
31,
7734,
289,
7734,
8839,
49,
1527,
429,
782,
1282,
5621,
7734,
898,
31,
5411,
648,
478,
7700,
30,
5411,
648,
2347,
2259,
6859,
8720,
30,
7734,
309,
261,
588,
16321,
1176,
40,
301,
410,
1435,
405,
374,
13,
7734,
288,
10792,
2230,
16321,
566,
281,
12,
7118,
18,
588,
39,
583,
387,
10663,
7734,
289,
7734,
469,
309,
261,
343,
305,
7416,
2
] |
AbstractRepositoryTask readTask = (AbstractRepositoryTask)manager.getTaskList().getRootTasks().get(0);
|
AbstractRepositoryTask readTask = (AbstractRepositoryTask)manager.getTaskList().getRootTasks().iterator().next();
|
public void testRepositoryTaskExternalization() { BugzillaTask repositoryTask = new BugzillaTask("handle", "label", true); repositoryTask.setKind("kind"); manager.moveToRoot(repositoryTask); manager.saveTaskList(); TaskList list = new TaskList(); manager.setTaskList(list); manager.readExistingOrCreateNewList(); assertEquals(1, manager.getTaskList().getRootTasks().size()); AbstractRepositoryTask readTask = (AbstractRepositoryTask)manager.getTaskList().getRootTasks().get(0); assertEquals(repositoryTask.getHandleIdentifier(), readTask.getHandleIdentifier()); assertEquals(repositoryTask.getDescription(), readTask.getDescription()); assertEquals(repositoryTask.getKind(), readTask.getKind()); }
|
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/90958fb90be95e99a5677db3816d8beb72990d8b/TaskListManagerTest.java/buggy/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasklist/tests/TaskListManagerTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3305,
2174,
6841,
1588,
1435,
288,
202,
202,
19865,
15990,
2174,
3352,
2174,
273,
394,
16907,
15990,
2174,
2932,
4110,
3113,
315,
1925,
3113,
638,
1769,
202,
202,
9071,
2174,
18,
542,
5677,
2932,
9224,
8863,
202,
202,
4181,
18,
8501,
774,
2375,
12,
9071,
2174,
1769,
202,
202,
4181,
18,
5688,
2174,
682,
5621,
202,
202,
2174,
682,
666,
273,
394,
3837,
682,
5621,
202,
202,
4181,
18,
542,
2174,
682,
12,
1098,
1769,
202,
202,
4181,
18,
896,
9895,
17717,
1908,
682,
5621,
202,
202,
11231,
8867,
12,
21,
16,
3301,
18,
588,
2174,
682,
7675,
588,
2375,
6685,
7675,
1467,
10663,
202,
202,
7469,
3305,
2174,
855,
2174,
273,
261,
7469,
3305,
2174,
13,
4181,
18,
588,
2174,
682,
7675,
588,
2375,
6685,
7675,
588,
12,
20,
1769,
9506,
202,
11231,
8867,
12,
9071,
2174,
18,
588,
3259,
3004,
9334,
855,
2174,
18,
588,
3259,
3004,
10663,
202,
202,
11231,
8867,
12,
9071,
2174,
18,
588,
3291,
9334,
855,
2174,
18,
588,
3291,
10663,
202,
202,
11231,
8867,
12,
9071,
2174,
18,
588,
5677,
9334,
855,
2174,
18,
588,
5677,
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,
918,
1842,
3305,
2174,
6841,
1588,
1435,
288,
202,
202,
19865,
15990,
2174,
3352,
2174,
273,
394,
16907,
15990,
2174,
2932,
4110,
3113,
315,
1925,
3113,
638,
1769,
202,
202,
9071,
2174,
18,
542,
5677,
2932,
9224,
8863,
202,
202,
4181,
18,
8501,
774,
2375,
12,
9071,
2174,
1769,
202,
202,
4181,
18,
5688,
2174,
682,
5621,
202,
202,
2174,
682,
666,
273,
394,
3837,
682,
5621,
202,
202,
4181,
18,
542,
2174,
682,
12,
1098,
1769,
202,
202,
4181,
18,
896,
9895,
17717,
1908,
682,
5621,
202,
202,
11231,
8867,
12,
21,
16,
3301,
18,
588,
2174,
682,
7675,
588,
2375,
6685,
7675,
1467,
10663,
202,
202,
7469,
3305,
2174,
855,
2174,
273,
261,
7469,
2
] |
this.depth = depth;
|
RolapLevel(RolapHierarchy hierarchy, int depth, String name, MondrianDef.Expression keyExp, MondrianDef.Expression nameExp, MondrianDef.Expression ordinalExp, MondrianDef.Expression parentExp, String nullParentValue, MondrianDef.Closure xmlClosure, RolapProperty[] properties, int flags, HideMemberCondition hideMemberCondition, LevelType levelType) { Util.assertPrecondition(properties != null, "properties != null"); Util.assertPrecondition(hideMemberCondition != null, "hideMemberCondition != null"); Util.assertPrecondition(levelType != null, "levelType != null"); this.hierarchy = hierarchy; this.name = name; this.uniqueName = Util.makeFqName(hierarchy, name); if (keyExp instanceof MondrianDef.Column) { checkColumn((MondrianDef.Column) keyExp); } this.flags = flags; final boolean isAll = (flags & ALL) == ALL; this.unique = (flags & UNIQUE) == UNIQUE; this.depth = depth; this.keyExp = keyExp; if (nameExp != null) { if (nameExp instanceof MondrianDef.Column) { checkColumn((MondrianDef.Column) nameExp); } } this.nameExp = nameExp; if (ordinalExp != null) { if (ordinalExp instanceof MondrianDef.Column) { checkColumn((MondrianDef.Column) ordinalExp); } this.ordinalExp = ordinalExp; } else { this.ordinalExp = this.keyExp; } this.parentExp = parentExp; if (parentExp != null) { Util.assertTrue(!isAll, "'All' level '" + this + "' must not be parent-child"); Util.assertTrue(unique, "Parent-child level '" + this + "' must have uniqueMembers=\"true\""); } this.nullParentValue = nullParentValue; Util.assertPrecondition(parentExp != null || nullParentValue == null, "parentExp != null || nullParentValue == null"); this.xmlClosure = xmlClosure; for (int i = 0; i < properties.length; i++) { RolapProperty property = properties[i]; if (property.exp instanceof MondrianDef.Column) { checkColumn((MondrianDef.Column) property.exp); } } this.properties = properties; ArrayList list = new ArrayList(); for (Level level = this; level != null; level = level.getParentLevel()) { final Property[] levelProperties = level.getProperties(); for (int i = 0; i < levelProperties.length; i++) { final Property levelProperty = levelProperties[i]; Property existingProperty = lookupProperty( list, levelProperty.getName()); if (existingProperty == null) { list.add(levelProperty); } else if (existingProperty.getType() != levelProperty.getType()) { throw Util.newError( "Property " + this.getName() + "." + levelProperty.getName() + " overrides a " + "property with the same name but different type"); } } } this.inheritedProperties = (RolapProperty[]) list.toArray( RolapProperty.emptyArray); this.levelType = levelType; Dimension dim = hierarchy.getDimension(); if (dim.getDimensionType() == DimensionType.TimeDimension) { if (!levelType.isTime() && !isAll) { throw MondrianResource.instance() .newNonTimeLevelInTimeHierarchy(getUniqueName()); } } else if (dim.getDimensionType() == null) { // there was no dimension type assigned to the dimension // - check later } else { if (levelType.isTime()) { throw MondrianResource.instance() .newTimeLevelInNonTimeHierarchy(getUniqueName()); } } this.hideMemberCondition = hideMemberCondition; this.closedPeer = null; }
|
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/0cc18052c959f8014f772086b193e28d7a6dd66a/RolapLevel.java/clean/src/main/mondrian/rolap/RolapLevel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
11714,
438,
2355,
12,
4984,
438,
12074,
9360,
16,
3639,
509,
3598,
16,
3639,
514,
508,
16,
3639,
490,
1434,
566,
304,
3262,
18,
2300,
498,
2966,
16,
3639,
490,
1434,
566,
304,
3262,
18,
2300,
508,
2966,
16,
3639,
490,
1434,
566,
304,
3262,
18,
2300,
12675,
2966,
16,
3639,
490,
1434,
566,
304,
3262,
18,
2300,
982,
2966,
16,
3639,
514,
446,
3054,
620,
16,
3639,
490,
1434,
566,
304,
3262,
18,
10573,
2025,
10573,
16,
3639,
11714,
438,
1396,
8526,
1790,
16,
3639,
509,
2943,
16,
3639,
25180,
4419,
3418,
3639,
6853,
4419,
3418,
16,
3639,
4557,
559,
1801,
559,
13,
565,
288,
3639,
3564,
18,
11231,
1386,
4175,
12,
4738,
480,
446,
16,
315,
4738,
480,
446,
8863,
3639,
3564,
18,
11231,
1386,
4175,
12,
11248,
4419,
3418,
480,
446,
16,
7734,
315,
11248,
4419,
3418,
480,
446,
8863,
3639,
3564,
18,
11231,
1386,
4175,
12,
2815,
559,
480,
446,
16,
315,
2815,
559,
480,
446,
8863,
3639,
333,
18,
17937,
273,
9360,
31,
3639,
333,
18,
529,
273,
508,
31,
3639,
333,
18,
6270,
461,
273,
3564,
18,
6540,
28200,
461,
12,
17937,
16,
508,
1769,
3639,
309,
261,
856,
2966,
1276,
490,
1434,
566,
304,
3262,
18,
1494,
13,
288,
5411,
866,
1494,
12443,
49,
1434,
566,
304,
3262,
18,
1494,
13,
498,
2966,
1769,
3639,
289,
3639,
333,
18,
7133,
273,
2943,
31,
3639,
727,
1250,
353,
1595,
273,
261,
7133,
473,
8061,
13,
422,
8061,
31,
3639,
333,
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,
11714,
438,
2355,
12,
4984,
438,
12074,
9360,
16,
3639,
509,
3598,
16,
3639,
514,
508,
16,
3639,
490,
1434,
566,
304,
3262,
18,
2300,
498,
2966,
16,
3639,
490,
1434,
566,
304,
3262,
18,
2300,
508,
2966,
16,
3639,
490,
1434,
566,
304,
3262,
18,
2300,
12675,
2966,
16,
3639,
490,
1434,
566,
304,
3262,
18,
2300,
982,
2966,
16,
3639,
514,
446,
3054,
620,
16,
3639,
490,
1434,
566,
304,
3262,
18,
10573,
2025,
10573,
16,
3639,
11714,
438,
1396,
8526,
1790,
16,
3639,
509,
2943,
16,
3639,
25180,
4419,
3418,
3639,
6853,
4419,
3418,
16,
3639,
4557,
559,
1801,
559,
13,
565,
288,
3639,
3564,
18,
11231,
1386,
4175,
12,
4738,
480,
446,
16,
315,
2
] |
|
throw new Exception("ERROR: Sun and Mozilla give different "+ alg );
|
throw new Exception("ERROR: " + javaVendorName.substring(0,3) + " and Mozilla give different "+ alg );
|
public static void doHMAC(SecretKeyFacade sk, String alg) throws Exception { String clearText = new String("Hi There"); //Get the Mozilla-JSS HMAC Mac macJSS = Mac.getInstance(alg, "Mozilla-JSS"); macJSS.init(sk); macJSS.update(clearText.getBytes()); byte[] resultJSS = macJSS.doFinal(clearText.getBytes()); //Get the SunJCE HMAC Mac macSunJCE = Mac.getInstance(alg, "SunJCE"); macSunJCE.init(sk); macSunJCE.update(clearText.getBytes()); byte[] resultSunJCE = macSunJCE.doFinal(clearText.getBytes()); //Check to see if HMACs are equal if ( java.util.Arrays.equals(resultJSS, resultSunJCE) ) { System.out.println("Sun and Mozilla give same " + alg); } else { throw new Exception("ERROR: Sun and Mozilla give different "+ alg ); } }
|
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/dbf6d0080b3f866f72c3ceda33271ebdd4fa0241/HMACTest.java/buggy/security/jss/org/mozilla/jss/tests/HMACTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
741,
25624,
12,
24526,
12467,
4343,
16,
514,
11989,
13,
377,
1216,
1185,
288,
7734,
514,
2424,
1528,
273,
394,
514,
2932,
25009,
6149,
8863,
3639,
368,
967,
326,
19058,
10745,
17,
46,
1260,
20792,
3639,
13217,
5318,
46,
1260,
273,
13217,
18,
588,
1442,
12,
18413,
16,
315,
49,
11142,
10745,
17,
46,
1260,
8863,
3639,
5318,
46,
1260,
18,
2738,
12,
7771,
1769,
3639,
5318,
46,
1260,
18,
2725,
12,
8507,
1528,
18,
588,
2160,
10663,
3639,
1160,
8526,
563,
46,
1260,
273,
5318,
46,
1260,
18,
2896,
7951,
12,
8507,
1528,
18,
588,
2160,
10663,
3639,
368,
967,
326,
31608,
46,
1441,
20792,
3639,
13217,
5318,
29636,
46,
1441,
273,
13217,
18,
588,
1442,
12,
18413,
16,
315,
29636,
46,
1441,
8863,
3639,
5318,
29636,
46,
1441,
18,
2738,
12,
7771,
1769,
3639,
5318,
29636,
46,
1441,
18,
2725,
12,
8507,
1528,
18,
588,
2160,
10663,
3639,
1160,
8526,
563,
29636,
46,
1441,
273,
5318,
29636,
46,
1441,
18,
2896,
7951,
12,
8507,
1528,
18,
588,
2160,
10663,
7734,
368,
1564,
358,
2621,
309,
20792,
87,
854,
3959,
3639,
309,
261,
2252,
18,
1367,
18,
12726,
18,
14963,
12,
2088,
46,
1260,
16,
563,
29636,
46,
1441,
13,
262,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
29636,
471,
19058,
10745,
8492,
1967,
315,
397,
11989,
1769,
3639,
289,
469,
288,
5411,
604,
394,
1185,
2932,
3589,
30,
315,
397,
2252,
14786,
461,
18,
28023,
12,
20,
16,
23,
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,
760,
918,
741,
25624,
12,
24526,
12467,
4343,
16,
514,
11989,
13,
377,
1216,
1185,
288,
7734,
514,
2424,
1528,
273,
394,
514,
2932,
25009,
6149,
8863,
3639,
368,
967,
326,
19058,
10745,
17,
46,
1260,
20792,
3639,
13217,
5318,
46,
1260,
273,
13217,
18,
588,
1442,
12,
18413,
16,
315,
49,
11142,
10745,
17,
46,
1260,
8863,
3639,
5318,
46,
1260,
18,
2738,
12,
7771,
1769,
3639,
5318,
46,
1260,
18,
2725,
12,
8507,
1528,
18,
588,
2160,
10663,
3639,
1160,
8526,
563,
46,
1260,
273,
5318,
46,
1260,
18,
2896,
7951,
12,
8507,
1528,
18,
588,
2160,
10663,
3639,
368,
967,
326,
31608,
46,
1441,
20792,
3639,
13217,
5318,
29636,
46,
1441,
273,
13217,
18,
2
] |
return (EOEnterpriseObject)valueForBinding("objectForFormValue");
|
return(EOEnterpriseObject)valueForBinding("objectForFormValue");
|
public EOEnterpriseObject objectForFormValue() { return (EOEnterpriseObject)valueForBinding("objectForFormValue"); }
|
810 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/810/4d4181165ae3ca6e41910b4504488b9a856bde5e/ERXDirectActionHyperlink.java/buggy/Wonder/Common/Frameworks/ERExtensions/Sources/er/extensions/ERXDirectActionHyperlink.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
512,
51,
30699,
921,
733,
1290,
1204,
620,
1435,
288,
3639,
327,
12,
41,
51,
30699,
921,
13,
1132,
1290,
5250,
2932,
1612,
1290,
1204,
620,
8863,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
377,
1071,
512,
51,
30699,
921,
733,
1290,
1204,
620,
1435,
288,
3639,
327,
12,
41,
51,
30699,
921,
13,
1132,
1290,
5250,
2932,
1612,
1290,
1204,
620,
8863,
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
] |
if (evt.getKeyCode() == java.awt.event.KeyEvent.VK_ENTER){ jButtonSave.doClick();}
|
if (evt.getKeyCode() == java.awt.event.KeyEvent.VK_ENTER){ jButtonSave.doClick(); }
|
private void jButtonSaveKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jButtonSaveKeyPressed if (evt.getKeyCode() == java.awt.event.KeyEvent.VK_ENTER){ jButtonSave.doClick();} }//GEN-LAST:event_jButtonSaveKeyPressed
|
12667 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12667/cd1bd2c80a65366109bb73522f79affdaac52026/aeCasa.java/buggy/src/nom/aeCasa.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
525,
3616,
4755,
653,
24624,
12,
6290,
18,
2219,
88,
18,
2575,
18,
653,
1133,
6324,
13,
288,
759,
16652,
17,
15354,
30,
2575,
67,
78,
3616,
4755,
653,
24624,
3639,
309,
261,
73,
11734,
18,
588,
653,
1085,
1435,
422,
2252,
18,
2219,
88,
18,
2575,
18,
653,
1133,
18,
58,
47,
67,
12278,
15329,
525,
3616,
4755,
18,
2896,
6563,
5621,
289,
565,
289,
759,
16652,
17,
14378,
30,
2575,
67,
78,
3616,
4755,
653,
24624,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
525,
3616,
4755,
653,
24624,
12,
6290,
18,
2219,
88,
18,
2575,
18,
653,
1133,
6324,
13,
288,
759,
16652,
17,
15354,
30,
2575,
67,
78,
3616,
4755,
653,
24624,
3639,
309,
261,
73,
11734,
18,
588,
653,
1085,
1435,
422,
2252,
18,
2219,
88,
18,
2575,
18,
653,
1133,
18,
58,
47,
67,
12278,
15329,
525,
3616,
4755,
18,
2896,
6563,
5621,
289,
565,
289,
759,
16652,
17,
14378,
30,
2575,
67,
78,
3616,
4755,
653,
24624,
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
] |
System.setProperty( "osgi.parentClassloader", "fwk" );
|
String parentClassLoader = getProperty( properties, "osgi.parentClassloader" ); if ( parentClassLoader == null ) { properties.put( "osgi.parentClassloader", "fwk" ); }
|
public void startup( PlatformConfig config ) throws BirtException { IPlatformContext context = config.getPlatformContext( ); if ( context == null ) { throw new BirtException( PluginId, "PlatformContext is not setted - {0}", new Object[]{"PlatformConfig"} ); //$NON-NLS-1$ } String root = context.getPlatform( ); platformDirectory = new File( root ); if ( !platformDirectory.exists( ) || !platformDirectory.isDirectory( ) ) { throw new BirtException( PluginId, "Could not start the Framework - {0}" + root, root ); //$NON-NLS-1$ } if ( frameworkClassLoader != null ) { logger.log( Level.WARNING, "Framework is already started" ); //$NON-NLS-1$ return; } System.setProperty( "osgi.parentClassloader", "fwk" ); //$NON-NLS-1$ //$NON-NLS-2$ // install.area System.setProperty( "osgi.install.area", platformDirectory.getAbsolutePath( ) ); //$NON-NLS-1$ // configuration.area File configurationDirectory = new File( platformDirectory, "configuration" ); //$NON-NLS-1$ if ( !configurationDirectory.exists( ) ) { configurationDirectory.mkdirs( ); } System .setProperty( "osgi.configuration.area", configurationDirectory.getAbsolutePath( ) ); //$NON-NLS-1$ // instance.area File workspaceDirectory = new File( platformDirectory, "workspace" ); //$NON-NLS-1$ if ( !workspaceDirectory.exists( ) ) { workspaceDirectory.mkdirs( ); } System.setProperty( "osgi.instance.area", workspaceDirectory.getAbsolutePath( ) ); //$NON-NLS-1$ System.setProperty( "eclipse.ignoreApp", "true" ); // //$NON-NLS-1$//$NON-NLS-2$ System.setProperty( "osgi.noShutdown", "true" ); //$NON-NLS-1$//$NON-NLS-2$ String path = new File( platformDirectory, "plugins" ).toString( ); //$NON-NLS-1$ path = searchFor( "org.eclipse.osgi", path ); //$NON-NLS-1$ if ( path == null ) { throw new BirtException( PluginId, "Could not find the Framework - {0}", new Object[]{"org.eclipse.osgi"} ); //$NON-NLS-1$ } final String framework = new File( path ).getAbsolutePath( ); String[] args = config.getOSGiArguments( ); if ( args == null ) { args = new String[]{"-clean"}; } ClassLoader original = Thread.currentThread( ).getContextClassLoader( ); try { URL frameworkUrl = new File( framework ).toURL( ); System .setProperty( "osgi.framework", frameworkUrl.toExternalForm( ) ); //$NON-NLS-1$//$NON-NLS-2$ ClassLoader loader = this.getClass( ).getClassLoader( ); frameworkClassLoader = new URLClassLoader( new URL[]{frameworkUrl}, loader ); // frameworkClassLoader = new OSGIClassLoader( // new URL[]{frameworkUrl}, loader ); //Weblogic 8.1SP6 contains old version JS.JAR, we need //set pref-web-inf to true, if we set it to true, the //URL classloader still loads the JS in weblogic, so //load the class explicitly. try { loader.loadClass( "org.mozilla.javascript.Context" ); loader.loadClass( "org.mozilla.javascript.Scriptable" ); loader.loadClass( "org.mozilla.javascript.ScriptableObject" ); // frameworkClassLoader.loadClass( "org.mozilla.javascript.Context" } catch ( Exception ex ) { } Class clazz = frameworkClassLoader.loadClass( ECLIPSE_STARTER ); System.setProperty( "osgi.framework.useSystemProperties", "true" ); //$NON-NLS-1$ //$NON-NLS-2$ Method runMethod = clazz.getMethod( "startup", new Class[]{String[].class, Runnable.class} ); //$NON-NLS-1$ // Method runMethod = clazz.getMethod( // "run", new Class[]{String[].class, Runnable.class} ); // //$NON-NLS-1$ bundleContext = runMethod.invoke( null, new Object[]{args, null} ); frameworkContextClassLoader = Thread.currentThread( ) .getContextClassLoader( ); } catch ( Exception e ) { e.printStackTrace( ); return; } finally { Thread.currentThread( ).setContextClassLoader( original ); } }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/269e144660eeebb8b1e9f2a003d830351a3043fd/OSGILauncher.java/clean/core/org.eclipse.birt.core/src/org/eclipse/birt/core/framework/osgi/OSGILauncher.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
11850,
12,
11810,
809,
642,
262,
1216,
605,
2714,
503,
202,
95,
202,
202,
45,
8201,
1042,
819,
273,
642,
18,
588,
8201,
1042,
12,
11272,
202,
202,
430,
261,
819,
422,
446,
262,
202,
202,
95,
1082,
202,
12849,
394,
605,
2714,
503,
12,
6258,
548,
16,
6862,
202,
6,
8201,
1042,
353,
486,
444,
2344,
300,
288,
20,
1532,
16,
394,
1033,
63,
7073,
6,
8201,
809,
6,
97,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
97,
202,
202,
780,
1365,
273,
819,
18,
588,
8201,
12,
11272,
202,
202,
9898,
2853,
273,
394,
1387,
12,
1365,
11272,
202,
202,
430,
261,
401,
9898,
2853,
18,
1808,
12,
262,
747,
401,
9898,
2853,
18,
291,
2853,
12,
262,
262,
202,
202,
95,
1082,
202,
12849,
394,
605,
2714,
503,
12,
6258,
548,
16,
6862,
202,
6,
4445,
486,
787,
326,
13472,
300,
288,
20,
1532,
397,
1365,
16,
1365,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
97,
202,
202,
430,
261,
8257,
7805,
480,
446,
262,
202,
202,
95,
1082,
202,
4901,
18,
1330,
12,
4557,
18,
9511,
16,
315,
13701,
353,
1818,
5746,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
780,
982,
7805,
273,
3911,
12,
1790,
16,
315,
538,
10052,
18,
2938,
797,
6714,
6,
11272,
309,
261,
982,
7805,
422,
446,
262,
288,
1790,
18,
458,
12,
315,
538,
10052,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
11850,
12,
11810,
809,
642,
262,
1216,
605,
2714,
503,
202,
95,
202,
202,
45,
8201,
1042,
819,
273,
642,
18,
588,
8201,
1042,
12,
11272,
202,
202,
430,
261,
819,
422,
446,
262,
202,
202,
95,
1082,
202,
12849,
394,
605,
2714,
503,
12,
6258,
548,
16,
6862,
202,
6,
8201,
1042,
353,
486,
444,
2344,
300,
288,
20,
1532,
16,
394,
1033,
63,
7073,
6,
8201,
809,
6,
97,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
97,
202,
202,
780,
1365,
273,
819,
18,
588,
8201,
12,
11272,
202,
202,
9898,
2853,
273,
394,
1387,
12,
1365,
11272,
202,
202,
430,
261,
401,
9898,
2853,
18,
1808,
12,
262,
747,
2
] |
if(oldValue != null && oldValue.equals(body)) {
|
if (oldValue != null && oldValue.equals(body)) {
|
public void setBody(String body) { boolean mustChange = true; if(_expression != null) { String oldValue = _expression.getBody(); if(oldValue != null && oldValue.equals(body)) { mustChange = false; } } if(mustChange) { String lang = null; if(_expression != null) { lang = _expression.getLanguage(); } if(lang == null) lang = _emptyStr; setExpression(lang,body); } }
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/UMLExpressionModel.java/clean/src_new/org/argouml/uml/ui/UMLExpressionModel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
16492,
12,
780,
1417,
13,
288,
3639,
1250,
1297,
3043,
273,
638,
31,
3639,
309,
24899,
8692,
480,
446,
13,
288,
5411,
514,
11144,
273,
389,
8692,
18,
588,
2250,
5621,
5411,
309,
261,
1673,
620,
480,
446,
597,
11144,
18,
14963,
12,
3432,
3719,
288,
7734,
1297,
3043,
273,
629,
31,
5411,
289,
3639,
289,
3639,
309,
12,
11926,
3043,
13,
288,
5411,
514,
3303,
273,
446,
31,
5411,
309,
24899,
8692,
480,
446,
13,
288,
7734,
3303,
273,
389,
8692,
18,
588,
3779,
5621,
5411,
289,
5411,
309,
12,
4936,
422,
446,
13,
3303,
273,
389,
5531,
1585,
31,
13491,
444,
2300,
12,
4936,
16,
3432,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
16492,
12,
780,
1417,
13,
288,
3639,
1250,
1297,
3043,
273,
638,
31,
3639,
309,
24899,
8692,
480,
446,
13,
288,
5411,
514,
11144,
273,
389,
8692,
18,
588,
2250,
5621,
5411,
309,
261,
1673,
620,
480,
446,
597,
11144,
18,
14963,
12,
3432,
3719,
288,
7734,
1297,
3043,
273,
629,
31,
5411,
289,
3639,
289,
3639,
309,
12,
11926,
3043,
13,
288,
5411,
514,
3303,
273,
446,
31,
5411,
309,
24899,
8692,
480,
446,
13,
288,
7734,
3303,
273,
389,
8692,
18,
588,
3779,
5621,
5411,
289,
5411,
309,
12,
4936,
422,
446,
13,
3303,
273,
389,
5531,
1585,
31,
13491,
444,
2300,
12,
4936,
16,
3432,
1769,
3639,
289,
565,
289,
2,
-100,
-100,
-100
] |
runtime.defineReadonlyVariable("$<", this); runtime.defineGlobalConstant("ARGF", this);
|
getRuntime().defineReadonlyVariable("$<", this); getRuntime().defineGlobalConstant("ARGF", this);
|
public void initArgsFile() { extendObject(runtime.getModule("Enumerable")); runtime.defineReadonlyVariable("$<", this); runtime.defineGlobalConstant("ARGF", this); defineSingletonMethod("each", callbackFactory().getOptMethod(RubyArgsFile.class, "each_line")); defineSingletonMethod("each_line", callbackFactory().getOptMethod(RubyArgsFile.class, "each_line")); defineSingletonMethod("filename", callbackFactory().getMethod(RubyArgsFile.class, "filename"));// defineSingletonMethod("gets", callbackFactory().getOptSingletonMethod(RubyGlobal.class, "gets"));// defineSingletonMethod("readline", callbackFactory().getOptSingletonMethod(RubyGlobal.class, "readline")); //defineSingletonMethod("readlines", callbackFactory().getOptSingletonMethod(RubyGlobal.class, "readlines")); // defineSingletonMethod("to_a", callbackFactory().getOptSingletonMethod(RubyGlobal.class, "readlines")); defineSingletonMethod("to_s", callbackFactory().getMethod(RubyArgsFile.class, "filename")); runtime.defineReadonlyVariable("$FILENAME", RubyString.newString(runtime, "-")); // This is ugly. nextArgsFile both checks existence of another // file and the setup of any files. On top of that it handles // the logic for figuring out stdin versus a list of files. // I hacked this to make a null currentFile indicate that things // have not been set up yet. This seems fragile, but it at least // it passes tests now. //currentFile = (RubyIO) runtime.getGlobalVariables().get("$stdin"); }
|
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyArgsFile.java/clean/src/org/jruby/RubyArgsFile.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
2615,
812,
1435,
288,
3639,
2133,
921,
12,
9448,
18,
588,
3120,
2932,
3572,
25121,
7923,
1769,
7734,
3099,
18,
11255,
1994,
3700,
3092,
2932,
8,
32,
3113,
333,
1769,
3639,
3099,
18,
11255,
5160,
6902,
2932,
10973,
42,
3113,
333,
1769,
7734,
4426,
19571,
1305,
2932,
13798,
3113,
1348,
1733,
7675,
588,
6179,
1305,
12,
54,
10340,
2615,
812,
18,
1106,
16,
315,
13798,
67,
1369,
7923,
1769,
3639,
4426,
19571,
1305,
2932,
13798,
67,
1369,
3113,
1348,
1733,
7675,
588,
6179,
1305,
12,
54,
10340,
2615,
812,
18,
1106,
16,
315,
13798,
67,
1369,
7923,
1769,
202,
202,
11255,
19571,
1305,
2932,
3459,
3113,
1348,
1733,
7675,
588,
1305,
12,
54,
10340,
2615,
812,
18,
1106,
16,
315,
3459,
7923,
1769,
759,
202,
202,
11255,
19571,
1305,
2932,
14665,
3113,
1348,
1733,
7675,
588,
6179,
19571,
1305,
12,
54,
10340,
5160,
18,
1106,
16,
315,
14665,
7923,
1769,
759,
202,
202,
11255,
19571,
1305,
2932,
896,
1369,
3113,
1348,
1733,
7675,
588,
6179,
19571,
1305,
12,
54,
10340,
5160,
18,
1106,
16,
315,
896,
1369,
7923,
1769,
202,
202,
759,
11255,
19571,
1305,
2932,
896,
3548,
3113,
1348,
1733,
7675,
588,
6179,
19571,
1305,
12,
54,
10340,
5160,
18,
1106,
16,
315,
896,
3548,
7923,
1769,
202,
202,
759,
202,
202,
11255,
19571,
1305,
2932,
869,
67,
69,
3113,
1348,
1733,
7675,
588,
6179,
19571,
1305,
12,
54,
10340,
5160,
18,
1106,
16,
315,
896,
3548,
7923,
1769,
202,
202,
11255,
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,
1208,
2615,
812,
1435,
288,
3639,
2133,
921,
12,
9448,
18,
588,
3120,
2932,
3572,
25121,
7923,
1769,
7734,
3099,
18,
11255,
1994,
3700,
3092,
2932,
8,
32,
3113,
333,
1769,
3639,
3099,
18,
11255,
5160,
6902,
2932,
10973,
42,
3113,
333,
1769,
7734,
4426,
19571,
1305,
2932,
13798,
3113,
1348,
1733,
7675,
588,
6179,
1305,
12,
54,
10340,
2615,
812,
18,
1106,
16,
315,
13798,
67,
1369,
7923,
1769,
3639,
4426,
19571,
1305,
2932,
13798,
67,
1369,
3113,
1348,
1733,
7675,
588,
6179,
1305,
12,
54,
10340,
2615,
812,
18,
1106,
16,
315,
13798,
67,
1369,
7923,
1769,
202,
202,
11255,
19571,
1305,
2932,
3459,
3113,
1348,
1733,
7675,
588,
1305,
12,
54,
10340,
2615,
2
] |
StringBuffer fkeyColumns = new StringBuffer(); StringBuffer pkeyColumns = new StringBuffer(); int numColumns = (rs.getInt(7) >> 1) - 2; String s = rs.getString(8); int pos = s.lastIndexOf("\\000"); for (int c = 0;c < numColumns;c++) { if (pos > -1) { int pos2 = s.lastIndexOf("\\000", pos - 1); if (pos2 > -1) { if (fkeyColumns.length() > 0) fkeyColumns.insert(0, ','); fkeyColumns.insert(0, s.substring(pos2 + 4, pos)); pos = s.lastIndexOf("\\000", pos2 - 1); if (pos > -1) { if (pkeyColumns.length() > 0) pkeyColumns.insert(0, ','); pkeyColumns.insert(0, s.substring(pos + 4, pos2)); } } } } tuple[7] = fkeyColumns.toString().getBytes(); tuple[3] = pkeyColumns.toString().getBytes(); tuple[8] = Integer.toString(seq++).getBytes(); tuple[11] = fKeyName.getBytes(); tuple[12] = rs.getBytes(4); int deferrability = importedKeyNotDeferrable; boolean deferrable = rs.getBoolean(5); boolean initiallyDeferred = rs.getBoolean(6); if (deferrable) { if (initiallyDeferred) deferrability = importedKeyInitiallyDeferred; else deferrability = importedKeyInitiallyImmediate; } tuple[13] = Integer.toString(deferrability).getBytes(); tuples.addElement(tuple); }
|
private java.sql.ResultSet getImportedExportedKeys(String catalog, String schema, String primaryTable, String foreignTable) throws SQLException { Field f[] = new Field[14]; f[0] = new Field(connection, "PKTABLE_CAT", iVarcharOid, 32); f[1] = new Field(connection, "PKTABLE_SCHEM", iVarcharOid, 32); f[2] = new Field(connection, "PKTABLE_NAME", iVarcharOid, 32); f[3] = new Field(connection, "PKCOLUMN_NAME", iVarcharOid, 32); f[4] = new Field(connection, "FKTABLE_CAT", iVarcharOid, 32); f[5] = new Field(connection, "FKTABLE_SCHEM", iVarcharOid, 32); f[6] = new Field(connection, "FKTABLE_NAME", iVarcharOid, 32); f[7] = new Field(connection, "FKCOLUMN_NAME", iVarcharOid, 32); f[8] = new Field(connection, "KEY_SEQ", iInt2Oid, 2); f[9] = new Field(connection, "UPDATE_RULE", iInt2Oid, 2); f[10] = new Field(connection, "DELETE_RULE", iInt2Oid, 2); f[11] = new Field(connection, "FK_NAME", iVarcharOid, 32); f[12] = new Field(connection, "PK_NAME", iVarcharOid, 32); f[13] = new Field(connection, "DEFERRABILITY", iInt2Oid, 2); java.sql.ResultSet rs = connection.ExecSQL("SELECT c.relname,c2.relname," + "t.tgconstrname,ic.relname," + "t.tgdeferrable,t.tginitdeferred," + "t.tgnargs,t.tgargs,p.proname " + "FROM pg_trigger t,pg_class c,pg_class c2," + "pg_class ic,pg_proc p, pg_index i " + "WHERE t.tgrelid=c.oid AND t.tgconstrrelid=c2.oid " + "AND t.tgfoid=p.oid AND tgisconstraint " + ((primaryTable != null) ? "AND c2.relname='" + primaryTable + "' " : "") + ((foreignTable != null) ? "AND c.relname='" + foreignTable + "' " : "") + "AND i.indrelid=c.oid " + "AND i.indexrelid=ic.oid AND i.indisprimary " + "ORDER BY c.relname,c2.relname" ); Vector tuples = new Vector(); short seq = 0; if (rs.next()) { boolean hasMore; do { byte tuple[][] = new byte[14][0]; for (int k = 0;k < 14;k++) tuple[k] = null; String fKeyName = rs.getString(3); boolean foundRule = false; do { String proname = rs.getString(9); if (proname != null && proname.startsWith("RI_FKey_")) { int col = -1; if (proname.endsWith("_upd")) col = 9; // UPDATE_RULE else if (proname.endsWith("_del")) col = 10; // DELETE_RULE if (col > -1) { String rule = proname.substring(8, proname.length() - 4); int action = importedKeyNoAction; if ("cascade".equals(rule)) action = importedKeyCascade; else if ("setnull".equals(rule)) action = importedKeySetNull; else if ("setdefault".equals(rule)) action = importedKeySetDefault; tuple[col] = Integer.toString(action).getBytes(); foundRule = true; } } } while ((hasMore = rs.next()) && fKeyName.equals(rs.getString(3))); if (foundRule) { tuple[2] = rs.getBytes(2); //PKTABLE_NAME tuple[6] = rs.getBytes(1); //FKTABLE_NAME // Parse the tgargs data StringBuffer fkeyColumns = new StringBuffer(); StringBuffer pkeyColumns = new StringBuffer(); int numColumns = (rs.getInt(7) >> 1) - 2; String s = rs.getString(8); int pos = s.lastIndexOf("\\000"); for (int c = 0;c < numColumns;c++) { if (pos > -1) { int pos2 = s.lastIndexOf("\\000", pos - 1); if (pos2 > -1) { if (fkeyColumns.length() > 0) fkeyColumns.insert(0, ','); fkeyColumns.insert(0, s.substring(pos2 + 4, pos)); //FKCOLUMN_NAME pos = s.lastIndexOf("\\000", pos2 - 1); if (pos > -1) { if (pkeyColumns.length() > 0) pkeyColumns.insert(0, ','); pkeyColumns.insert(0, s.substring(pos + 4, pos2)); //PKCOLUMN_NAME } } } } tuple[7] = fkeyColumns.toString().getBytes(); //FKCOLUMN_NAME tuple[3] = pkeyColumns.toString().getBytes(); //PKCOLUMN_NAME tuple[8] = Integer.toString(seq++).getBytes(); //KEY_SEQ tuple[11] = fKeyName.getBytes(); //FK_NAME tuple[12] = rs.getBytes(4); //PK_NAME // DEFERRABILITY int deferrability = importedKeyNotDeferrable; boolean deferrable = rs.getBoolean(5); boolean initiallyDeferred = rs.getBoolean(6); if (deferrable) { if (initiallyDeferred) deferrability = importedKeyInitiallyDeferred; else deferrability = importedKeyInitiallyImmediate; } tuple[13] = Integer.toString(deferrability).getBytes(); tuples.addElement(tuple); } } while (hasMore); } return new ResultSet(connection, f, tuples, "OK", 1); }
|
49868 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49868/f4cfb708fe309ef501e76713bc447f878c1dff79/DatabaseMetaData.java/clean/org/postgresql/jdbc1/DatabaseMetaData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
2252,
18,
4669,
18,
13198,
336,
24934,
31140,
2396,
12,
780,
6222,
16,
514,
1963,
16,
514,
3354,
1388,
16,
514,
5523,
1388,
13,
1216,
6483,
202,
95,
202,
202,
974,
284,
8526,
273,
394,
2286,
63,
3461,
15533,
202,
202,
74,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
315,
8784,
7775,
67,
14130,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
21,
65,
273,
394,
2286,
12,
4071,
16,
315,
8784,
7775,
67,
55,
10390,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
22,
65,
273,
394,
2286,
12,
4071,
16,
315,
8784,
7775,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
23,
65,
273,
394,
2286,
12,
4071,
16,
315,
8784,
11009,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
24,
65,
273,
394,
2286,
12,
4071,
16,
315,
13121,
7775,
67,
14130,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
25,
65,
273,
394,
2286,
12,
4071,
16,
315,
13121,
7775,
67,
55,
10390,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
26,
65,
273,
394,
2286,
12,
4071,
16,
315,
13121,
7775,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
27,
65,
273,
394,
2286,
12,
4071,
16,
315,
13121,
11009,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
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,
2252,
18,
4669,
18,
13198,
336,
24934,
31140,
2396,
12,
780,
6222,
16,
514,
1963,
16,
514,
3354,
1388,
16,
514,
5523,
1388,
13,
1216,
6483,
202,
95,
202,
202,
974,
284,
8526,
273,
394,
2286,
63,
3461,
15533,
202,
202,
74,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
315,
8784,
7775,
67,
14130,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
21,
65,
273,
394,
2286,
12,
4071,
16,
315,
8784,
7775,
67,
55,
10390,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
22,
65,
273,
394,
2286,
12,
4071,
16,
315,
8784,
7775,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
2
] |
|
}, UIDesignerBundle.message("command.create.field"), undoGroupId
|
}
|
public void run() { CommandProcessor.getInstance().executeCommand( project, new Runnable() { public void run() { createField(project, fieldClass, fieldName, boundClass, showErrors, rootContainer); } }, UIDesignerBundle.message("command.create.field"), undoGroupId ); }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/b3bc611098a54c1f56d5212b6aa44983e743a2d2/CreateFieldFix.java/clean/ui-designer/impl/com/intellij/uiDesigner/quickFixes/CreateFieldFix.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
1850,
3498,
5164,
18,
588,
1442,
7675,
8837,
2189,
12,
5411,
1984,
16,
5411,
394,
10254,
1435,
288,
2868,
1071,
918,
1086,
1435,
288,
7734,
752,
974,
12,
4406,
16,
652,
797,
16,
4289,
16,
2489,
797,
16,
2405,
4229,
16,
1365,
2170,
1769,
2868,
289,
5411,
19879,
5411,
10034,
281,
724,
264,
3405,
18,
2150,
2932,
3076,
18,
2640,
18,
1518,
6,
3631,
5411,
15436,
8722,
1850,
11272,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
540,
1071,
918,
1086,
1435,
288,
1850,
3498,
5164,
18,
588,
1442,
7675,
8837,
2189,
12,
5411,
1984,
16,
5411,
394,
10254,
1435,
288,
2868,
1071,
918,
1086,
1435,
288,
7734,
752,
974,
12,
4406,
16,
652,
797,
16,
4289,
16,
2489,
797,
16,
2405,
4229,
16,
1365,
2170,
1769,
2868,
289,
5411,
19879,
5411,
10034,
281,
724,
264,
3405,
18,
2150,
2932,
3076,
18,
2640,
18,
1518,
6,
3631,
5411,
15436,
8722,
1850,
11272,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
name = "";
|
name = "";
|
public String toString() { /* The format is based on 1.5 release behavior * which can be revealed by the following code: * * AWTEvent event = new AWTEvent(new Component(){}, 1){}; * System.out.println(event); */ String name = ""; if (source instanceof Component && (source != null)) { Component comp = (Component) getSource(); name = comp.getName(); if (name == null) { name = ""; } } return (getClass().getName() + "[" + paramString() + "]" + " on " + (name.length() > 0 ? name : source)); }
|
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/3b500ee5922bc7890c276ddee76f1520b369f2fd/AWTEvent.java/clean/modules/awt/src/main/java/common/java/awt/AWTEvent.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
1435,
288,
3639,
1748,
1021,
740,
353,
2511,
603,
404,
18,
25,
3992,
6885,
1850,
380,
1492,
848,
506,
283,
537,
18931,
635,
326,
3751,
981,
30,
540,
380,
1850,
380,
432,
8588,
1133,
871,
273,
394,
432,
8588,
1133,
12,
2704,
5435,
1435,
2916,
16,
404,
13,
2916,
31,
540,
380,
2332,
18,
659,
18,
8222,
12,
2575,
1769,
540,
1195,
3639,
514,
508,
273,
1408,
31,
3639,
309,
261,
3168,
1276,
5435,
597,
261,
3168,
480,
446,
3719,
288,
5411,
5435,
1161,
273,
261,
1841,
13,
7889,
5621,
5411,
508,
273,
1161,
18,
17994,
5621,
5411,
309,
261,
529,
422,
446,
13,
288,
7734,
508,
273,
1408,
31,
5411,
289,
3639,
289,
3639,
327,
261,
588,
797,
7675,
17994,
1435,
397,
13626,
397,
579,
780,
1435,
397,
9870,
7734,
397,
315,
603,
315,
397,
261,
529,
18,
2469,
1435,
405,
374,
692,
508,
294,
1084,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
1435,
288,
3639,
1748,
1021,
740,
353,
2511,
603,
404,
18,
25,
3992,
6885,
1850,
380,
1492,
848,
506,
283,
537,
18931,
635,
326,
3751,
981,
30,
540,
380,
1850,
380,
432,
8588,
1133,
871,
273,
394,
432,
8588,
1133,
12,
2704,
5435,
1435,
2916,
16,
404,
13,
2916,
31,
540,
380,
2332,
18,
659,
18,
8222,
12,
2575,
1769,
540,
1195,
3639,
514,
508,
273,
1408,
31,
3639,
309,
261,
3168,
1276,
5435,
597,
261,
3168,
480,
446,
3719,
288,
5411,
5435,
1161,
273,
261,
1841,
13,
7889,
5621,
5411,
508,
273,
1161,
18,
17994,
5621,
5411,
309,
261,
529,
422,
446,
13,
288,
7734,
508,
273,
1408,
31,
5411,
289,
3639,
289,
3639,
2
] |
}
|
}
|
public void endGeneralEntity(String name, Augmentations augs) throws XNIException { if (DEBUG_EVENTS) { System.out.println("==>endGeneralEntity: ("+name+")"); } if (!fDeferNodeExpansion) { if (fFilterReject) { return; } setCharacterData(true); if (fDocumentType != null) { // get current entity declaration NamedNodeMap entities = fDocumentType.getEntities(); fCurrentEntityDecl = (EntityImpl) entities.getNamedItem(name); if (fCurrentEntityDecl != null) { if (fCurrentEntityDecl != null && fCurrentEntityDecl.getFirstChild() == null) { fCurrentEntityDecl.setReadOnly(false, true); Node child = fCurrentNode.getFirstChild(); while (child != null) { Node copy = child.cloneNode(true); fCurrentEntityDecl.appendChild(copy); child = child.getNextSibling(); } fCurrentEntityDecl.setReadOnly(true, true); //entities.setNamedItem(fCurrentEntityDecl); } fCurrentEntityDecl = null; } } boolean removeEntityRef = false; if (fCreateEntityRefNodes) { if (fDocumentImpl != null) { // Make entity ref node read only ((NodeImpl)fCurrentNode).setReadOnly(true, true); } if (fDOMFilter !=null && (fDOMFilter.getWhatToShow() & NodeFilter.SHOW_ENTITY_REFERENCE)!= 0) { short code = fDOMFilter.acceptNode(fCurrentNode); switch (code) { case LSParserFilter.FILTER_INTERRUPT:{ throw new RuntimeException("The normal processing of the document was interrupted."); } case LSParserFilter.FILTER_REJECT:{ Node parent = fCurrentNode.getParentNode(); parent.removeChild(fCurrentNode); fCurrentNode = parent; return; } case LSParserFilter.FILTER_SKIP: { // make sure we don't loose chars if next event is characters() fFirstChunk = true; removeEntityRef = true; break; } default: { fCurrentNode = fCurrentNode.getParentNode(); } } } else { fCurrentNode = fCurrentNode.getParentNode(); } } if (!fCreateEntityRefNodes || removeEntityRef) { // move entity reference children to the list of // siblings of its parent and remove entity reference NodeList children = fCurrentNode.getChildNodes(); Node parent = fCurrentNode.getParentNode(); int length = children.getLength(); if (length > 0) { // get previous sibling of the entity reference Node node = fCurrentNode.getPreviousSibling(); // normalize text nodes Node child = children.item(0); if (node != null && node.getNodeType() == Node.TEXT_NODE && child.getNodeType() == Node.TEXT_NODE) { ((Text)node).appendData(child.getNodeValue()); fCurrentNode.removeChild(child); } else { node = parent.insertBefore(child, fCurrentNode); handleBaseURI(node); } for (int i=1;i <length;i++) { node = parent.insertBefore(children.item(0), fCurrentNode); handleBaseURI(node); } } // length > 0 parent.removeChild(fCurrentNode); fCurrentNode = parent; } } else { if (fDocumentTypeIndex != -1) { // find corresponding Entity decl int node = fDeferredDocumentImpl.getLastChild(fDocumentTypeIndex, false); while (node != -1) { short nodeType = fDeferredDocumentImpl.getNodeType(node, false); if (nodeType == Node.ENTITY_NODE) { String nodeName = fDeferredDocumentImpl.getNodeName(node, false); if (nodeName.equals(name)) { fDeferredEntityDecl = node; break; } } node = fDeferredDocumentImpl.getRealPrevSibling(node, false); } } if (fDeferredEntityDecl != -1 && fDeferredDocumentImpl.getLastChild(fDeferredEntityDecl, false) == -1) { // entity definition exists and it does not have any children int prevIndex = -1; int childIndex = fDeferredDocumentImpl.getLastChild(fCurrentNodeIndex, false); while (childIndex != -1) { int cloneIndex = fDeferredDocumentImpl.cloneNode(childIndex, true); fDeferredDocumentImpl.insertBefore(fDeferredEntityDecl, cloneIndex, prevIndex); prevIndex = cloneIndex; childIndex = fDeferredDocumentImpl.getRealPrevSibling(childIndex, false); } } if (fCreateEntityRefNodes) { fCurrentNodeIndex = fDeferredDocumentImpl.getParentNode(fCurrentNodeIndex, false); } else { //!fCreateEntityRefNodes // move children of entity ref before the entity ref. // remove entity ref. // holds a child of entity ref int childIndex = fDeferredDocumentImpl.getLastChild(fCurrentNodeIndex, false); int parentIndex = fDeferredDocumentImpl.getParentNode(fCurrentNodeIndex, false); int prevIndex = fCurrentNodeIndex; int lastChild = childIndex; int sibling = -1; while (childIndex != -1) { handleBaseURI(childIndex); sibling = fDeferredDocumentImpl.getRealPrevSibling(childIndex, false); fDeferredDocumentImpl.insertBefore(parentIndex, childIndex, prevIndex); prevIndex = childIndex; childIndex = sibling; } if(lastChild != -1) fDeferredDocumentImpl.setAsLastChild(parentIndex, lastChild); else{ sibling = fDeferredDocumentImpl.getRealPrevSibling(prevIndex, false); fDeferredDocumentImpl.setAsLastChild(parentIndex, sibling); } fCurrentNodeIndex = parentIndex; } fDeferredEntityDecl = -1; } } // endGeneralEntity(String, Augmentations)
|
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/9d1dbf89c75cf6f564facc2b605dd9f2cf2dac4d/AbstractDOMParser.java/clean/src/org/apache/xerces/parsers/AbstractDOMParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
679,
12580,
1943,
12,
780,
508,
16,
432,
14870,
1012,
279,
9024,
13,
1216,
1139,
50,
45,
503,
288,
3639,
309,
261,
9394,
67,
29221,
13,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
631,
34,
409,
12580,
1943,
30,
7566,
15,
529,
9078,
2225,
1769,
3639,
289,
3639,
309,
16051,
74,
758,
586,
907,
2966,
12162,
13,
288,
5411,
309,
261,
74,
1586,
21705,
13,
288,
7734,
327,
31,
5411,
289,
5411,
444,
7069,
751,
12,
3767,
1769,
2398,
309,
261,
74,
2519,
559,
480,
446,
13,
288,
7734,
368,
336,
783,
1522,
8266,
7734,
9796,
907,
863,
5140,
273,
284,
2519,
559,
18,
588,
8108,
5621,
7734,
284,
3935,
1943,
3456,
273,
261,
1943,
2828,
13,
5140,
18,
588,
7604,
1180,
12,
529,
1769,
7734,
309,
261,
74,
3935,
1943,
3456,
480,
446,
13,
288,
27573,
309,
261,
74,
3935,
1943,
3456,
480,
446,
597,
284,
3935,
1943,
3456,
18,
588,
3759,
1763,
1435,
422,
446,
13,
288,
13491,
284,
3935,
1943,
3456,
18,
542,
12066,
12,
5743,
16,
638,
1769,
13491,
2029,
1151,
273,
284,
3935,
907,
18,
588,
3759,
1763,
5621,
13491,
1323,
261,
3624,
480,
446,
13,
288,
18701,
2029,
1610,
273,
1151,
18,
14056,
907,
12,
3767,
1769,
18701,
284,
3935,
1943,
3456,
18,
6923,
1763,
12,
3530,
1769,
18701,
1151,
273,
1151,
18,
588,
2134,
10291,
5621,
7682,
289,
13491,
284,
3935,
1943,
3456,
18,
542,
12066,
12,
3767,
16,
638,
1769,
13491,
368,
9996,
18,
542,
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,
679,
12580,
1943,
12,
780,
508,
16,
432,
14870,
1012,
279,
9024,
13,
1216,
1139,
50,
45,
503,
288,
3639,
309,
261,
9394,
67,
29221,
13,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
631,
34,
409,
12580,
1943,
30,
7566,
15,
529,
9078,
2225,
1769,
3639,
289,
3639,
309,
16051,
74,
758,
586,
907,
2966,
12162,
13,
288,
5411,
309,
261,
74,
1586,
21705,
13,
288,
7734,
327,
31,
5411,
289,
5411,
444,
7069,
751,
12,
3767,
1769,
2398,
309,
261,
74,
2519,
559,
480,
446,
13,
288,
7734,
368,
336,
783,
1522,
8266,
7734,
9796,
907,
863,
5140,
273,
284,
2519,
559,
18,
588,
8108,
5621,
7734,
284,
3935,
1943,
3456,
273,
261,
1943,
2
] |
wChain.addException(new SQLException("Unknown response. " + e.getMessage()));
|
wChain.addException(new SQLException("Unknown response. " + e.getMessage(), "HY000"));
|
synchronized void startResultSet(final SQLWarningChain wChain, final TdsStatement stmt) { try { while (!isResultRow() && !isEndOfResults()) { final PacketResult res = processSubPacket(); if (res instanceof PacketMsgResult) { wChain.addOrReturn((PacketMsgResult) res); } else if (res instanceof PacketOutputParamResult) { stmt.handleParamResult((PacketOutputParamResult) res); } else if (res instanceof PacketRetStatResult) { stmt.handleRetStat((PacketRetStatResult) res); } else if (res instanceof PacketEndTokenResult) { if (((PacketEndTokenResult) res).wasCanceled()) { wChain.addException( new SQLException("Query was cancelled or timed out.")); } } } } catch (java.io.IOException e) { wChain.addException(new SQLException("Network problem. " + e.getMessage())); } catch (net.sourceforge.jtds.jdbc.TdsUnknownPacketSubType e) { wChain.addException(new SQLException("Unknown response. " + e.getMessage())); } catch (net.sourceforge.jtds.jdbc.TdsException e) { wChain.addException(new SQLException(e.toString())); } catch (SQLException e) { wChain.addException(e); } }
|
5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/035709deec1c9214eeb0bf57507c4371d3d0784e/Tds.java/buggy/src/main/net/sourceforge/jtds/jdbc/Tds.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3852,
918,
787,
13198,
12,
6385,
3063,
6210,
3893,
341,
3893,
16,
19694,
727,
399,
2377,
3406,
3480,
13,
288,
3639,
775,
288,
5411,
1323,
16051,
291,
1253,
1999,
1435,
597,
401,
291,
23358,
3447,
10756,
288,
7734,
727,
11114,
1253,
400,
273,
1207,
1676,
6667,
5621,
7734,
309,
261,
455,
1276,
11114,
3332,
1253,
13,
288,
10792,
341,
3893,
18,
1289,
1162,
990,
12443,
6667,
3332,
1253,
13,
400,
1769,
7734,
289,
469,
309,
261,
455,
1276,
11114,
1447,
786,
1253,
13,
288,
10792,
3480,
18,
4110,
786,
1253,
12443,
6667,
1447,
786,
1253,
13,
400,
1769,
7734,
289,
469,
309,
261,
455,
1276,
11114,
7055,
5000,
1253,
13,
288,
10792,
3480,
18,
4110,
7055,
5000,
12443,
6667,
7055,
5000,
1253,
13,
400,
1769,
7734,
289,
469,
309,
261,
455,
1276,
11114,
1638,
1345,
1253,
13,
288,
10792,
309,
261,
12443,
6667,
1638,
1345,
1253,
13,
400,
2934,
17416,
23163,
10756,
288,
13491,
341,
3893,
18,
1289,
503,
12,
27573,
394,
6483,
2932,
1138,
1703,
13927,
578,
7491,
596,
1199,
10019,
10792,
289,
7734,
289,
5411,
289,
3639,
289,
1044,
261,
6290,
18,
1594,
18,
14106,
425,
13,
288,
5411,
341,
3893,
18,
1289,
503,
12,
2704,
6483,
2932,
3906,
6199,
18,
315,
397,
425,
18,
24906,
1435,
10019,
3639,
289,
1044,
261,
2758,
18,
3168,
1884,
908,
18,
78,
88,
2377,
18,
24687,
18,
56,
2377,
4874,
6667,
30511,
425,
13,
288,
5411,
341,
3893,
18,
1289,
503,
12,
2704,
6483,
2932,
4874,
766,
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,
3852,
918,
787,
13198,
12,
6385,
3063,
6210,
3893,
341,
3893,
16,
19694,
727,
399,
2377,
3406,
3480,
13,
288,
3639,
775,
288,
5411,
1323,
16051,
291,
1253,
1999,
1435,
597,
401,
291,
23358,
3447,
10756,
288,
7734,
727,
11114,
1253,
400,
273,
1207,
1676,
6667,
5621,
7734,
309,
261,
455,
1276,
11114,
3332,
1253,
13,
288,
10792,
341,
3893,
18,
1289,
1162,
990,
12443,
6667,
3332,
1253,
13,
400,
1769,
7734,
289,
469,
309,
261,
455,
1276,
11114,
1447,
786,
1253,
13,
288,
10792,
3480,
18,
4110,
786,
1253,
12443,
6667,
1447,
786,
1253,
13,
400,
1769,
7734,
289,
469,
309,
261,
455,
1276,
11114,
7055,
5000,
1253,
13,
288,
10792,
3480,
18,
4110,
7055,
5000,
12443,
2
] |
logger.debug("Adding SOR to ChemModel");
|
if (debug) logger.debug("Adding SOR to ChemModel");
|
public void endDocument() { logger.debug("Closing document"); if (currentSetOfReactions != null && currentSetOfReactions.getReactionCount() == 0 && currentReaction != null) { logger.debug("Adding reaction to SetOfReactions"); currentSetOfReactions.addReaction(currentReaction); } if (currentSetOfReactions != null && currentChemModel.getSetOfReactions() == null) { logger.debug("Adding SOR to ChemModel"); currentChemModel.setSetOfReactions(currentSetOfReactions); } if (currentSetOfMolecules != null && currentSetOfMolecules.getMoleculeCount() != 0) { logger.debug("Adding reaction to SetOfMolecules"); currentChemModel.setSetOfMolecules(currentSetOfMolecules); } if (currentChemSequence.getChemModelCount() == 0) { logger.debug("Adding ChemModel to ChemSequence"); currentChemSequence.addChemModel(currentChemModel); } if (getChemSequenceCount() == 0) { // assume there is one non-animation ChemSequence addChemSequence(currentChemSequence); } logger.info("End CDO Object"); logger.info("This file has " + getChemSequenceCount() + " sequence(s)."); };
|
1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/85b1def8500569c307eef07a73f9886549ea9364/ChemFileCDO.java/clean/src/org/openscience/cdk/io/cml/ChemFileCDO.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
679,
2519,
1435,
288,
3639,
1194,
18,
4148,
2932,
15745,
1668,
8863,
3639,
309,
261,
2972,
694,
951,
426,
4905,
480,
446,
597,
783,
694,
951,
426,
4905,
18,
588,
21581,
1380,
1435,
422,
374,
597,
5411,
783,
21581,
480,
446,
13,
288,
5411,
1194,
18,
4148,
2932,
13962,
12836,
358,
1000,
951,
426,
4905,
8863,
5411,
783,
694,
951,
426,
4905,
18,
1289,
21581,
12,
2972,
21581,
1769,
3639,
289,
3639,
309,
261,
2972,
694,
951,
426,
4905,
480,
446,
597,
783,
20200,
1488,
18,
588,
694,
951,
426,
4905,
1435,
422,
446,
13,
288,
5411,
309,
261,
4148,
13,
1194,
18,
4148,
2932,
13962,
348,
916,
358,
26542,
1488,
8863,
5411,
783,
20200,
1488,
18,
542,
694,
951,
426,
4905,
12,
2972,
694,
951,
426,
4905,
1769,
3639,
289,
3639,
309,
261,
2972,
694,
951,
49,
29466,
480,
446,
597,
783,
694,
951,
49,
29466,
18,
588,
29669,
1380,
1435,
480,
374,
13,
288,
5411,
1194,
18,
4148,
2932,
13962,
12836,
358,
1000,
951,
49,
29466,
8863,
5411,
783,
20200,
1488,
18,
542,
694,
951,
49,
29466,
12,
2972,
694,
951,
49,
29466,
1769,
3639,
289,
3639,
309,
261,
2972,
20200,
4021,
18,
588,
20200,
1488,
1380,
1435,
422,
374,
13,
288,
5411,
1194,
18,
4148,
2932,
13962,
26542,
1488,
358,
26542,
4021,
8863,
5411,
783,
20200,
4021,
18,
1289,
20200,
1488,
12,
2972,
20200,
1488,
1769,
3639,
289,
3639,
309,
261,
588,
20200,
4021,
1380,
1435,
422,
374,
13,
288,
5411,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
679,
2519,
1435,
288,
3639,
1194,
18,
4148,
2932,
15745,
1668,
8863,
3639,
309,
261,
2972,
694,
951,
426,
4905,
480,
446,
597,
783,
694,
951,
426,
4905,
18,
588,
21581,
1380,
1435,
422,
374,
597,
5411,
783,
21581,
480,
446,
13,
288,
5411,
1194,
18,
4148,
2932,
13962,
12836,
358,
1000,
951,
426,
4905,
8863,
5411,
783,
694,
951,
426,
4905,
18,
1289,
21581,
12,
2972,
21581,
1769,
3639,
289,
3639,
309,
261,
2972,
694,
951,
426,
4905,
480,
446,
597,
783,
20200,
1488,
18,
588,
694,
951,
426,
4905,
1435,
422,
446,
13,
288,
5411,
309,
261,
4148,
13,
1194,
18,
4148,
2932,
13962,
348,
916,
358,
26542,
1488,
8863,
5411,
783,
20200,
1488,
2
] |
if ( reverse && ( setElement.compareTo( theNum ) < 0 ) ) { return Boolean.TRUE; } else if ( setElement.compareTo( theNum ) > 0 ) { return Boolean.TRUE;
|
if ( reverse ) { if ( setElement.compareTo( theNum ) < 0 ) return Boolean.TRUE; } else { if ( setElement.compareTo( theNum ) > 0 ) return Boolean.TRUE;
|
protected Object evaluateSetNumber(List theSet, Number theNum, boolean reverse, Navigator nav) { int setSize = theSet.size(); Comparable setElement = null; for ( int i = 0 ; i < setSize ; ++i ) { setElement = (Comparable) NumberFunction.evaluate( theSet.get( i ), nav ); if ( reverse && ( setElement.compareTo( theNum ) < 0 ) ) { return Boolean.TRUE; } else if ( setElement.compareTo( theNum ) > 0 ) { return Boolean.TRUE; } } return Boolean.FALSE; }
|
12974 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12974/48fc8c685abd03e43c41b4e36c8959e441344ffd/DefaultGreaterThanExpr.java/clean/src/java/main/org/jaxen/expr/DefaultGreaterThanExpr.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1033,
5956,
694,
1854,
12,
682,
326,
694,
16,
4766,
4202,
3588,
326,
2578,
16,
4766,
4202,
1250,
4219,
16,
4766,
4202,
423,
13061,
8775,
13,
565,
288,
3639,
509,
565,
19106,
565,
273,
326,
694,
18,
1467,
5621,
3639,
13633,
26692,
273,
446,
31,
3639,
364,
261,
509,
277,
273,
374,
274,
277,
411,
19106,
274,
965,
77,
262,
3639,
288,
5411,
26692,
273,
261,
799,
10207,
13,
3588,
2083,
18,
21024,
12,
326,
694,
18,
588,
12,
277,
262,
16,
4766,
1171,
9079,
8775,
11272,
5411,
309,
261,
4219,
597,
261,
26692,
18,
9877,
774,
12,
326,
2578,
262,
411,
374,
262,
262,
5411,
288,
7734,
327,
3411,
18,
18724,
31,
5411,
289,
5411,
469,
309,
261,
26692,
18,
9877,
774,
12,
326,
2578,
262,
405,
374,
262,
5411,
288,
7734,
327,
3411,
18,
18724,
31,
5411,
289,
3639,
289,
3639,
327,
3411,
18,
21053,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1033,
5956,
694,
1854,
12,
682,
326,
694,
16,
4766,
4202,
3588,
326,
2578,
16,
4766,
4202,
1250,
4219,
16,
4766,
4202,
423,
13061,
8775,
13,
565,
288,
3639,
509,
565,
19106,
565,
273,
326,
694,
18,
1467,
5621,
3639,
13633,
26692,
273,
446,
31,
3639,
364,
261,
509,
277,
273,
374,
274,
277,
411,
19106,
274,
965,
77,
262,
3639,
288,
5411,
26692,
273,
261,
799,
10207,
13,
3588,
2083,
18,
21024,
12,
326,
694,
18,
588,
12,
277,
262,
16,
4766,
1171,
9079,
8775,
11272,
5411,
309,
261,
4219,
597,
261,
26692,
18,
9877,
774,
12,
326,
2578,
262,
411,
374,
262,
262,
5411,
288,
7734,
327,
3411,
18,
18724,
31,
5411,
289,
5411,
469,
2
] |
if( debug ) System.out.println( "OUTPUT_BUF_EMPTY " +
|
if( debug_verbose ) System.out.println( "OUTPUT_BUF_EMPTY " +
|
public synchronized boolean sendEvent( int event, boolean state ) { if (debug) System.out.print("RXTXPort:sendEvent("); /* Let the native side know its time to die */ if ( fd == 0 || SPEventListener == null || monThread == null) { return(true); } switch( event ) { case SerialPortEvent.DATA_AVAILABLE: if( debug ) System.out.println( "DATA_AVAILABLE " + monThread.Data + ")" ); break; case SerialPortEvent.OUTPUT_BUFFER_EMPTY: if( debug ) System.out.println( "OUTPUT_BUF_EMPTY " + monThread.Output + ")" ); break; case SerialPortEvent.CTS: if( debug ) System.out.println( "CTS " + monThread.Output + ")" ); break; case SerialPortEvent.DSR: if( debug ) System.out.println( "DSR " + monThread.Output + ")" ); break; case SerialPortEvent.RI: if( debug ) System.out.println( "RI " + monThread.Output + ")" ); break; case SerialPortEvent.CD: if( debug ) System.out.println( "CD " + monThread.Output + ")" ); break; case SerialPortEvent.OE: if( debug ) System.out.println( "OE " + monThread.Output + ")" ); break; case SerialPortEvent.PE: if( debug ) System.out.println( "PE " + monThread.Output + ")" ); break; case SerialPortEvent.FE: if( debug ) System.out.println( "FE " + monThread.Output + ")" ); break; case SerialPortEvent.BI: if( debug ) System.out.println( "BI " + monThread.Output + ")" ); break; default: if( debug ) System.out.println( "XXXXXXXXXXXXXXXX " + event + ")" ); break; } switch( event ) { case SerialPortEvent.DATA_AVAILABLE: if( monThread.Data ) break; return(false); case SerialPortEvent.OUTPUT_BUFFER_EMPTY: if( monThread.Output ) break; return(false);/* if( monThread.DSR ) break; return(false); if (isDSR()) { if (!dsrFlag) { dsrFlag = true; SerialPortEvent e = new SerialPortEvent(this, SerialPortEvent.DSR, !dsrFlag, dsrFlag ); } } else if (dsrFlag) { dsrFlag = false; SerialPortEvent e = new SerialPortEvent(this, SerialPortEvent.DSR, !dsrFlag, dsrFlag ); }*/ case SerialPortEvent.CTS: if( monThread.CTS ) break; return(false); case SerialPortEvent.DSR: if( monThread.DSR ) break; return(false); case SerialPortEvent.RI: if( monThread.RI ) break; return(false); case SerialPortEvent.CD: if( monThread.CD ) break; return(false); case SerialPortEvent.OE: if( monThread.OE ) break; return(false); case SerialPortEvent.PE: if( monThread.PE ) break; return(false); case SerialPortEvent.FE: if( monThread.FE ) break; return(false); case SerialPortEvent.BI: if( monThread.BI ) break; return(false); default: System.err.println("unknown event:"+event); return(false); } SerialPortEvent e = new SerialPortEvent(this, event, !state, state ); if( SPEventListener != null ) SPEventListener.serialEvent( e ); if (fd == 0 || SPEventListener == null || monThread == null) { return(true); } else { return(false); } }
|
5329 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5329/f34b8283229246f4e64b78526f89636b0372dc75/RXTXPort.java/clean/src/gnu/io/RXTXPort.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
1250,
1366,
1133,
12,
509,
871,
16,
1250,
919,
262,
202,
95,
202,
202,
430,
261,
4148,
13,
1082,
202,
3163,
18,
659,
18,
1188,
2932,
54,
3983,
60,
2617,
30,
4661,
1133,
2932,
1769,
202,
202,
20308,
10559,
326,
6448,
4889,
5055,
2097,
813,
358,
10387,
1195,
202,
202,
430,
261,
5194,
422,
374,
747,
11405,
7375,
422,
446,
747,
6921,
3830,
422,
446,
13,
202,
202,
95,
1082,
202,
2463,
12,
3767,
1769,
202,
202,
97,
202,
202,
9610,
12,
871,
262,
202,
202,
95,
1082,
202,
3593,
7366,
2617,
1133,
18,
4883,
67,
23222,
30,
9506,
202,
430,
12,
1198,
262,
6862,
202,
3163,
18,
659,
18,
8222,
12,
315,
4883,
67,
23222,
315,
397,
25083,
202,
2586,
3830,
18,
751,
397,
7310,
11272,
9506,
202,
8820,
31,
1082,
202,
3593,
7366,
2617,
1133,
18,
15527,
67,
11302,
67,
13625,
30,
9506,
202,
430,
12,
1198,
262,
6862,
202,
3163,
18,
659,
18,
8222,
12,
315,
15527,
67,
3000,
42,
67,
13625,
315,
397,
25083,
202,
2586,
3830,
18,
1447,
397,
7310,
11272,
9506,
202,
8820,
31,
1082,
202,
3593,
7366,
2617,
1133,
18,
1268,
55,
30,
9506,
202,
430,
12,
1198,
262,
6862,
202,
3163,
18,
659,
18,
8222,
12,
315,
1268,
55,
315,
397,
25083,
202,
2586,
3830,
18,
1447,
397,
7310,
11272,
9506,
202,
8820,
31,
1082,
202,
3593,
7366,
2617,
1133,
18,
3948,
54,
30,
9506,
202,
430,
12,
1198,
262,
6862,
202,
3163,
18,
659,
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,
3852,
1250,
1366,
1133,
12,
509,
871,
16,
1250,
919,
262,
202,
95,
202,
202,
430,
261,
4148,
13,
1082,
202,
3163,
18,
659,
18,
1188,
2932,
54,
3983,
60,
2617,
30,
4661,
1133,
2932,
1769,
202,
202,
20308,
10559,
326,
6448,
4889,
5055,
2097,
813,
358,
10387,
1195,
202,
202,
430,
261,
5194,
422,
374,
747,
11405,
7375,
422,
446,
747,
6921,
3830,
422,
446,
13,
202,
202,
95,
1082,
202,
2463,
12,
3767,
1769,
202,
202,
97,
202,
202,
9610,
12,
871,
262,
202,
202,
95,
1082,
202,
3593,
7366,
2617,
1133,
18,
4883,
67,
23222,
30,
9506,
202,
430,
12,
1198,
262,
6862,
202,
3163,
18,
659,
18,
8222,
12,
315,
4883,
67,
2
] |
if (ent.containsKey(VlanCollectorEntry.VLAN_TYPE)) { SnmpInt32 type = (SnmpInt32) ent .get(VlanCollectorEntry.VLAN_TYPE); if (type.getValue() != VlanCollectorEntry.VLAN_TYPE_ETHERNET) { if (log.isEnabledFor(Priority.INFO)) log .info("SnmpCollection.run: skipping VLAN " + vlan + " NOT ETHERNET TYPE"); continue; }
|
Integer type = ent.getInt32(VlanCollectorEntry.VLAN_TYPE); if (type == null || type != VlanCollectorEntry.VLAN_TYPE_ETHERNET) { if (log.isEnabledFor(Priority.INFO)) log .info("SnmpCollection.run: skipping VLAN " + vlan + " NOT ETHERNET TYPE"); continue;
|
public void run() { Category log = ThreadCategory.getInstance(getClass()); if (suspendCollection) { log .debug("SnmpCollection.run: address: " + m_address.getHostAddress() + " Suspended!"); } else { m_ipNetToMedia = new IpNetToMediaTable(m_address); m_ipRoute = new IpRouteTable(m_address); m_CdpCache = new CdpCacheTable(m_address); if (log.isDebugEnabled()) log.debug("run: collecting for: "+m_address+" with agentConfig: "+m_agentConfig); //TODO: This needs to be fixed... reported as a bug in bugzilla. m_agentConfig.setMaxVarsPerPdu(50); SnmpWalker walker = null; if (m_collectVlanTable) { Class vlanGetter = null; try { vlanGetter = Class.forName(m_vlanClass); } catch (ClassNotFoundException e) { log.error("SnmpCollection.run: " + m_vlanClass + " class not found " + e); } Class[] classes = { InetAddress.class}; Constructor constr = null; try { constr = vlanGetter.getConstructor(classes); } catch (NoSuchMethodException e) { log.error("SnmpCollection.run: " + m_vlanClass + " class has not such method " + e); } catch (SecurityException s) { log.error("SnmpCollection.run: " + m_vlanClass + " class security violation " + s); } Object[] argum = {m_address}; try { m_vlanTable = (SnmpTable) constr .newInstance(argum); } catch (InvocationTargetException t) { log.error("SnmpCollection.run: " + m_vlanClass + " class Invocation Exception " + t); } catch (InstantiationException i) { log.error("SnmpCollection.run: " + m_vlanClass + " class Instantiation Exception " + i); } catch (IllegalAccessException s) { log.error("SnmpCollection.run: " + m_vlanClass + " class Illegal Access Exception " + s); } walker = SnmpUtils.createWalker(m_agentConfig, "ipNetToMediaTable/ipRouteTable/cdpCacheTable/vlanTable", new CollectionTracker[] { m_ipNetToMedia, m_ipRoute, m_CdpCache,m_vlanTable}); } else { walker = SnmpUtils.createWalker(m_agentConfig, "ipNetToMediaTable/ipRouteTable/cdpCacheTable", new CollectionTracker[] { m_ipNetToMedia, m_ipRoute, m_CdpCache}); } walker.start(); try { // wait a maximum of five minutes! // // FIXME: Why do we do this. If we are successfully processing responses shouldn't we keep going? walker.waitFor(300000); } catch (InterruptedException e) { m_ipNetToMedia = null; m_ipRoute = null; m_CdpCache = null; m_vlanTable = null; log.warn("SnmpCollection.run: collection interrupted, exiting", e); return; } // Log any failures // if (!this.hasIpNetToMediaTable()) log .info("SnmpCollection.run: failed to collect ipNetToMediaTable for " + m_address.getHostAddress()); if (!this.hasRouteTable()) log .info("SnmpCollection.run: failed to collect ipRouteTable for " + m_address.getHostAddress()); if (!this.hasCdpCacheTable()) log .info("SnmpCollection.run: failed to collect dpCacheTable for " + m_address.getHostAddress()); if (m_collectVlanTable && !this.hasVlanTable()) log.info("SnmpCollection.run: failed to collect Vlan for " + m_address.getHostAddress()); // Schedule snmp vlan collection // only on VLAN. // If it has not vlan collection no data download is done. if (this.hasVlanTable()) { if (log.isDebugEnabled()) log.debug("SnmpCollection.run: found " + getVlanTable().size() + " VLAN entries "); if (m_vlanClass .equals("org.opennms.netmgt.linkd.snmp.HpVlanPortTable") || m_vlanClass .equals("org.opennms.netmgt.linkd.snmp.RapidCityVlanPortTable")) { SnmpVlanCollection snmpvlancollection = new SnmpVlanCollection( m_agentConfig); snmpvlancollection.run(); if (snmpvlancollection.failed()) { if (log.isDebugEnabled()) log .debug("SnmpCollection.run: no bridge info found on HP "); } else { if (log.isDebugEnabled()) log .debug("SnmpCollection.run: adding bridge info to snmpcollection for HP "); m_snmpVlanCollection.add(snmpvlancollection); } } else { java.util.Iterator itr = m_vlanTable.getEntries() .iterator(); while (itr.hasNext()) { java.util.TreeMap ent = (TreeMap) itr.next(); String vlan = ent.get(VlanCollectorEntry.VLAN_INDEX) .toString(); if (vlan == null) { if (log.isDebugEnabled()) log .debug("SnmpCollection.run: found null value for vlan."); continue; } String community = m_agentConfig.getReadCommunity(); if (log.isDebugEnabled()) log.debug("SnmpCollection.run: peer community: " + community + " with VLAN " + vlan); if (ent.containsKey(VlanCollectorEntry.VLAN_STATUS)) { SnmpInt32 status = (SnmpInt32) ent .get(VlanCollectorEntry.VLAN_STATUS); if (status.getValue() != VlanCollectorEntry.VLAN_STATUS_OPERATIONAL) { if (log.isEnabledFor(Priority.INFO)) log .info("SnmpCollection.run: skipping VLAN " + vlan + " NOT ACTIVE"); continue; } } if (ent.containsKey(VlanCollectorEntry.VLAN_TYPE)) { SnmpInt32 type = (SnmpInt32) ent .get(VlanCollectorEntry.VLAN_TYPE); if (type.getValue() != VlanCollectorEntry.VLAN_TYPE_ETHERNET) { if (log.isEnabledFor(Priority.INFO)) log .info("SnmpCollection.run: skipping VLAN " + vlan + " NOT ETHERNET TYPE"); continue; } } m_agentConfig.setReadCommunity(community + "@" + vlan); SnmpVlanCollection snmpvlancollection = new SnmpVlanCollection( m_agentConfig); snmpvlancollection.run(); if (snmpvlancollection.failed()) { if (log.isDebugEnabled()) log .debug("SnmpCollection.run: no bridge info found for VLAN " + vlan); } else { m_snmpVlanCollection.add(snmpvlancollection); } m_agentConfig.setReadCommunity(community); } } } // update info in linkd used correctly by discoveryLink if (log.isDebugEnabled()) log.debug("SnmpCollection.run: saving collection into database "); Linkd.getInstance().updateNodeSnmpCollection(this); // clean memory // first make every think clean m_ipNetToMedia = null; m_ipRoute = null; m_CdpCache = null; m_vlanTable = null; m_snmpVlanCollection.clear(); } // schedule it self reschedule(); runned = true; }
|
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/a22efed624b9384da0fbce8542dfae41d02b1b65/SnmpCollection.java/buggy/opennms-services/src/main/java/org/opennms/netmgt/linkd/SnmpCollection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
1435,
288,
202,
202,
4457,
613,
273,
4884,
4457,
18,
588,
1442,
12,
588,
797,
10663,
202,
202,
430,
261,
87,
18815,
2532,
13,
288,
1082,
202,
1330,
1082,
202,
18,
4148,
2932,
10461,
1291,
2532,
18,
2681,
30,
1758,
30,
315,
6862,
202,
15,
312,
67,
2867,
18,
588,
2594,
1887,
1435,
6862,
202,
15,
315,
348,
22942,
4442,
1769,
202,
202,
97,
469,
288,
1082,
202,
81,
67,
625,
7308,
774,
5419,
273,
394,
14709,
7308,
774,
5419,
1388,
12,
81,
67,
2867,
1769,
1082,
202,
81,
67,
625,
3255,
273,
394,
14709,
3255,
1388,
12,
81,
67,
2867,
1769,
1082,
202,
81,
67,
39,
9295,
1649,
273,
394,
385,
9295,
1649,
1388,
12,
81,
67,
2867,
1769,
202,
3639,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
202,
5411,
613,
18,
4148,
2932,
2681,
30,
30160,
364,
30,
13773,
81,
67,
2867,
9078,
598,
4040,
809,
30,
13773,
81,
67,
5629,
809,
1769,
202,
540,
202,
3639,
368,
6241,
30,
1220,
4260,
358,
506,
5499,
2777,
14010,
487,
279,
7934,
316,
7934,
15990,
18,
202,
3639,
312,
67,
5629,
809,
18,
542,
2747,
5555,
2173,
52,
2544,
12,
3361,
1769,
202,
3639,
18961,
1291,
16246,
14810,
273,
446,
31,
1082,
202,
430,
261,
81,
67,
14676,
31788,
1388,
13,
288,
9506,
202,
797,
11954,
8461,
273,
446,
31,
9506,
202,
698,
288,
6862,
202,
11969,
8461,
273,
1659,
18,
1884,
461,
12,
81,
67,
11969,
797,
1769,
9506,
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,
918,
1086,
1435,
288,
202,
202,
4457,
613,
273,
4884,
4457,
18,
588,
1442,
12,
588,
797,
10663,
202,
202,
430,
261,
87,
18815,
2532,
13,
288,
1082,
202,
1330,
1082,
202,
18,
4148,
2932,
10461,
1291,
2532,
18,
2681,
30,
1758,
30,
315,
6862,
202,
15,
312,
67,
2867,
18,
588,
2594,
1887,
1435,
6862,
202,
15,
315,
348,
22942,
4442,
1769,
202,
202,
97,
469,
288,
1082,
202,
81,
67,
625,
7308,
774,
5419,
273,
394,
14709,
7308,
774,
5419,
1388,
12,
81,
67,
2867,
1769,
1082,
202,
81,
67,
625,
3255,
273,
394,
14709,
3255,
1388,
12,
81,
67,
2867,
1769,
1082,
202,
81,
67,
39,
9295,
1649,
273,
394,
385,
9295,
1649,
2
] |
public void visitIAsgnNode(Node iVisited) { visit(iVisited); iVisited.getValueNode().accept(this); leave(iVisited); }
|
public void visitIAsgnNode(Node iVisited) { visit(iVisited); iVisited.getValueNode().accept(this); leave(iVisited); }
|
public void visitIAsgnNode(Node iVisited) { visit(iVisited); iVisited.getValueNode().accept(this); leave(iVisited); }
|
49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/d31a76ee29d5978a9bec41e3ac9134cee024bcab/NodeVisitorAdapter.java/buggy/org/jruby/nodes/NodeVisitorAdapter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
15188,
1055,
82,
907,
12,
907,
277,
30019,
13,
202,
95,
202,
202,
11658,
12,
77,
30019,
1769,
202,
202,
77,
30019,
18,
24805,
907,
7675,
9436,
12,
2211,
1769,
202,
202,
19574,
12,
77,
30019,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
918,
3757,
15188,
1055,
82,
907,
12,
907,
277,
30019,
13,
202,
95,
202,
202,
11658,
12,
77,
30019,
1769,
202,
202,
77,
30019,
18,
24805,
907,
7675,
9436,
12,
2211,
1769,
202,
202,
19574,
12,
77,
30019,
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
] |
outNbElement.value = (startIdx-endIdx-1); last_price_x = inReal0[startIdx]; last_price_y = inReal1[startIdx]; for( i = startIdx+1; i <= endIdx; i++ )
|
outIdx = 0; last_price_x = inReal0[startIdx-1]; last_price_y = inReal1[startIdx-1]; for( i = startIdx; i <= endIdx; i++ )
|
public RetCode beta( int startIdx, int endIdx, double inReal0[], double inReal1[], MInteger outBegIdx, MInteger outNbElement, double outReal[] ) { double S_xx = 0.0f; double S_yy = 0.0f; double S_xy = 0.0f; double S_x = 0.0f; double S_y = 0.0f; double last_price_x = 0.0f; double last_price_y = 0.0f; double x; double y; double n = 0.0f; int i; if( startIdx < 0 ) return RetCode.OutOfRangeStartIndex ; if( (endIdx < 0) || (endIdx < startIdx)) return RetCode.OutOfRangeEndIndex ; if( startIdx > endIdx ) { outBegIdx.value = 0 ; outNbElement.value = 0 ; return RetCode.Success ; } outBegIdx.value = startIdx; outNbElement.value = (startIdx-endIdx-1); last_price_x = inReal0[startIdx]; last_price_y = inReal1[startIdx]; for( i = startIdx+1; i <= endIdx; i++ ) { x = (inReal0[i]-last_price_x)/last_price_x; y = (inReal1[i]-last_price_y)/last_price_y; S_xx += x*x; S_yy += y*y; S_xy += x*y; S_x += x; S_y += y; n += 1.0f; outReal[i-1] = (n * S_xy - S_x * S_y) / (n * S_xx - S_x * S_x); last_price_x = inReal0[i]; last_price_y = inReal1[i]; } return RetCode.Success ; }
|
51465 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51465/8e75eff30f93ccc052688a3d9209897e4b95c3ee/Core.java/buggy/trunk/ta-lib/java/src/com/tictactec/ta/lib/Core.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
17100,
1085,
6796,
12,
509,
27108,
16,
1377,
509,
679,
4223,
16,
1377,
1645,
316,
6955,
20,
63,
6487,
1377,
1645,
316,
6955,
21,
63,
6487,
1377,
490,
4522,
596,
24059,
4223,
16,
1377,
490,
4522,
596,
22816,
1046,
16,
1377,
1645,
29205,
8526,
262,
282,
288,
1377,
1645,
348,
67,
5279,
273,
374,
18,
20,
74,
31,
1377,
1645,
348,
67,
6795,
273,
374,
18,
20,
74,
31,
1377,
1645,
348,
67,
1698,
273,
374,
18,
20,
74,
31,
1377,
1645,
348,
67,
92,
273,
374,
18,
20,
74,
31,
1377,
1645,
348,
67,
93,
273,
374,
18,
20,
74,
31,
1377,
1645,
1142,
67,
8694,
67,
92,
273,
374,
18,
20,
74,
31,
1377,
1645,
1142,
67,
8694,
67,
93,
273,
374,
18,
20,
74,
31,
1377,
1645,
619,
31,
1377,
1645,
677,
31,
1377,
1645,
290,
273,
374,
18,
20,
74,
31,
1377,
509,
277,
31,
1377,
309,
12,
27108,
411,
374,
262,
540,
327,
17100,
1085,
18,
11224,
2655,
16792,
274,
1377,
309,
12,
261,
409,
4223,
411,
374,
13,
747,
261,
409,
4223,
411,
27108,
3719,
540,
327,
17100,
1085,
18,
11224,
2655,
24152,
274,
1377,
309,
12,
27108,
405,
679,
4223,
262,
1377,
288,
540,
596,
24059,
4223,
18,
1132,
273,
374,
274,
540,
596,
22816,
1046,
18,
1132,
273,
374,
274,
540,
327,
17100,
1085,
18,
4510,
274,
1377,
289,
1377,
596,
24059,
4223,
18,
1132,
273,
27108,
31,
1377,
596,
22816,
1046,
18,
1132,
273,
261,
1937,
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,
1071,
17100,
1085,
6796,
12,
509,
27108,
16,
1377,
509,
679,
4223,
16,
1377,
1645,
316,
6955,
20,
63,
6487,
1377,
1645,
316,
6955,
21,
63,
6487,
1377,
490,
4522,
596,
24059,
4223,
16,
1377,
490,
4522,
596,
22816,
1046,
16,
1377,
1645,
29205,
8526,
262,
282,
288,
1377,
1645,
348,
67,
5279,
273,
374,
18,
20,
74,
31,
1377,
1645,
348,
67,
6795,
273,
374,
18,
20,
74,
31,
1377,
1645,
348,
67,
1698,
273,
374,
18,
20,
74,
31,
1377,
1645,
348,
67,
92,
273,
374,
18,
20,
74,
31,
1377,
1645,
348,
67,
93,
273,
374,
18,
20,
74,
31,
1377,
1645,
1142,
67,
8694,
67,
92,
273,
374,
18,
20,
74,
31,
1377,
1645,
2
] |
acceptAllFileFilterText = defaults.getString("FileChooser.acceptAllFileFilterText"); cancelButtonMnemonic = defaults.getInt("FileChooser.cancelButtonMnemonic"); cancelButtonText = defaults.getString("FileChooser.cancelButtonText"); cancelButtonToolTipText = defaults.getString("FileChooser.cancelButtonToolTipText");
|
dirDescText = UIManager.getString("FileChooser.directoryDescriptionText"); fileDescText = UIManager.getString("FileChooser.fileDescriptionText");
|
protected void installStrings(JFileChooser fc) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); acceptAllFileFilterText = defaults.getString("FileChooser.acceptAllFileFilterText"); cancelButtonMnemonic = defaults.getInt("FileChooser.cancelButtonMnemonic"); cancelButtonText = defaults.getString("FileChooser.cancelButtonText"); cancelButtonToolTipText = defaults.getString("FileChooser.cancelButtonToolTipText"); dirDescText = defaults.getString("FileChooser.directoryDescriptionText"); fileDescText = defaults.getString("FileChooser.fileDescriptionText"); helpButtonMnemonic = defaults.getInt("FileChooser.helpButtonMnemonic"); helpButtonText = defaults.getString("FileChooser.helpButtonText"); helpButtonToolTipText = defaults.getString("FileChooser.helpButtonToolTipText"); openButtonMnemonic = defaults.getInt("FileChooser.openButtonMnemonic"); openButtonText = defaults.getString("FileChooser.openButtonText"); openButtonToolTipText = defaults.getString("FileChooser.openButtonToolTipText"); saveButtonMnemonic = defaults.getInt("FileChooser.saveButtonMnemonic"); saveButtonText = defaults.getString("FileChooser.saveButtonText"); saveButtonToolTipText = defaults.getString("FileChooser.saveButtonToolTipText"); }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/badba23052f905d992da7c32124c28f4339931fc/BasicFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicFileChooserUI.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
3799,
7957,
12,
46,
812,
17324,
8036,
13,
225,
288,
565,
10034,
73,
643,
87,
3467,
273,
6484,
1318,
18,
588,
9794,
1876,
2954,
292,
7019,
5621,
565,
2791,
1595,
29837,
1528,
273,
3467,
18,
588,
780,
2932,
812,
17324,
18,
9436,
1595,
29837,
1528,
8863,
565,
3755,
3616,
29668,
20918,
273,
3467,
18,
588,
1702,
2932,
812,
17324,
18,
10996,
3616,
29668,
20918,
8863,
565,
3755,
3616,
1528,
273,
3467,
18,
588,
780,
2932,
812,
17324,
18,
10996,
3616,
1528,
8863,
565,
3755,
3616,
29250,
1528,
273,
3467,
18,
588,
780,
2932,
812,
17324,
18,
10996,
3616,
29250,
1528,
8863,
565,
1577,
4217,
1528,
273,
3467,
18,
588,
780,
2932,
812,
17324,
18,
5149,
3291,
1528,
8863,
565,
585,
4217,
1528,
273,
3467,
18,
588,
780,
2932,
812,
17324,
18,
768,
3291,
1528,
8863,
565,
2809,
3616,
29668,
20918,
273,
3467,
18,
588,
1702,
2932,
812,
17324,
18,
5201,
3616,
29668,
20918,
8863,
565,
2809,
3616,
1528,
273,
3467,
18,
588,
780,
2932,
812,
17324,
18,
5201,
3616,
1528,
8863,
565,
2809,
3616,
29250,
1528,
273,
3467,
18,
588,
780,
2932,
812,
17324,
18,
5201,
3616,
29250,
1528,
8863,
565,
1696,
3616,
29668,
20918,
273,
3467,
18,
588,
1702,
2932,
812,
17324,
18,
3190,
3616,
29668,
20918,
8863,
565,
1696,
3616,
1528,
273,
3467,
18,
588,
780,
2932,
812,
17324,
18,
3190,
3616,
1528,
8863,
565,
1696,
3616,
29250,
1528,
273,
3467,
18,
588,
780,
2932,
812,
17324,
18,
3190,
3616,
29250,
1528,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
3799,
7957,
12,
46,
812,
17324,
8036,
13,
225,
288,
565,
10034,
73,
643,
87,
3467,
273,
6484,
1318,
18,
588,
9794,
1876,
2954,
292,
7019,
5621,
565,
2791,
1595,
29837,
1528,
273,
3467,
18,
588,
780,
2932,
812,
17324,
18,
9436,
1595,
29837,
1528,
8863,
565,
3755,
3616,
29668,
20918,
273,
3467,
18,
588,
1702,
2932,
812,
17324,
18,
10996,
3616,
29668,
20918,
8863,
565,
3755,
3616,
1528,
273,
3467,
18,
588,
780,
2932,
812,
17324,
18,
10996,
3616,
1528,
8863,
565,
3755,
3616,
29250,
1528,
273,
3467,
18,
588,
780,
2932,
812,
17324,
18,
10996,
3616,
29250,
1528,
8863,
565,
1577,
4217,
1528,
273,
3467,
18,
588,
780,
2932,
812,
17324,
18,
5149,
3291,
2
] |
emit(getDefaultOutput());
|
emitDocComment(output); emitSignature(output); emitBody(output);
|
public final void emit() { emit(getDefaultOutput()); }
|
52557 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52557/875652cab75b68ac30b9b1cc81ee62f7ff1e165d/FunctionEmitter.java/buggy/src/java/com/sun/gluegen/FunctionEmitter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
918,
3626,
1435,
225,
288,
565,
3626,
1759,
4469,
12,
2844,
1769,
225,
3626,
5374,
12,
2844,
1769,
3626,
2250,
12,
2844,
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,
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,
282,
1071,
727,
918,
3626,
1435,
225,
288,
565,
3626,
1759,
4469,
12,
2844,
1769,
225,
3626,
5374,
12,
2844,
1769,
3626,
2250,
12,
2844,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
temp_house.draw(g2,proj_class.zoom_factor,0-scroll_x,0-scroll_y);
|
temp_house.draw(g2,proj_class.zoom_factor,0-proj_class.scroll_x,0-proj_class.scroll_y);
|
public void drawobjects(Graphics2D g2) { project proj_class=(project)project.oClass; proj_class.houses.set_screen(g2); proj_class.bars.set_screen(g2); proj_class.instruments.set_screen(g2); proj_class.stages.set_screen(g2); proj_class.sets.set_screen(g2); //drawing numbered screen grid here. //chaplin edit g2.setColor(Color.LIGHT_GRAY); for(int i = 100; i < (BasicWindow.iScreenWidth-(ExplorerBrowserPanel.iWidth*2) - 24); i+= 100) { String temp = ""+i; g2.draw(new Line2D.Double(i, 0, i, 1250)); //maybe change 1250. g2.drawString(temp, i, 10); } for(int i = 100; i < BasicWindow.iScreenHeight - 149; i+= 100) { String temp = ""+i; g2.draw(new Line2D.Double(0, i, 1000, i)); //maybe change 1250. g2.drawString(temp, 0, i); } g2.setColor(Color.BLACK); //end chaplin edit proj_class.houses.draw_list(proj_class.zoom_factor,0-scroll_x,0-scroll_y); proj_class.stages.draw_list(proj_class.zoom_factor,0-scroll_x,0-scroll_y); proj_class.sets.draw_list(proj_class.zoom_factor,0-scroll_x,0-scroll_y); proj_class.bars.draw_list(proj_class.zoom_factor,0-scroll_x,0-scroll_y); proj_class.instruments.draw_list(proj_class.zoom_factor,0-scroll_x,0-scroll_y); //redraw the item that is selected //types are defined as follows 0=house 1=stage 2=bar 3=instrument 4=set if(proj_class.selected_type==0){ //house General_Object temp_obj=proj_class.houses.get_object(proj_class.selected_index); temp_obj.set_color(1); temp_obj.draw(g2,proj_class.zoom_factor,0-scroll_x,0-scroll_y); temp_obj.set_color(0); }else if(proj_class.selected_type==1){ //stage General_Object temp_obj=proj_class.stages.get_object(proj_class.selected_index); temp_obj.set_color(1); temp_obj.draw(g2,proj_class.zoom_factor,0-scroll_x,0-scroll_y); temp_obj.set_color(0); }else if(proj_class.selected_type==2){ //bar General_Object temp_obj=proj_class.bars.get_object(proj_class.selected_index); temp_obj.set_color(1); temp_obj.draw(g2,proj_class.zoom_factor,0-scroll_x,0-scroll_y); temp_obj.set_color(0); }else if(proj_class.selected_type==3){ //instrument General_Object temp_obj=proj_class.instruments.get_object(proj_class.selected_index); temp_obj.set_color(1); temp_obj.draw(g2,proj_class.zoom_factor,0-scroll_x,0-scroll_y); temp_obj.set_color(0); }else if(proj_class.selected_type==4){ //set General_Object temp_obj=proj_class.sets.get_object(proj_class.selected_index); temp_obj.set_color(1); temp_obj.draw(g2,proj_class.zoom_factor,0-scroll_x,0-scroll_y); temp_obj.set_color(0); } //draw half drawn bars if(temp_bar!=null){ temp_bar.set_color(2); temp_bar.draw(g2,proj_class.zoom_factor,0-scroll_x,0-scroll_y); temp_bar.set_color(0); } if(temp_instrument!=null){ temp_instrument.set_color(2); temp_instrument.draw(g2,proj_class.zoom_factor,0-scroll_x,0-scroll_y); //proj_class.zoom_factor //1/proj_class.zoom_factor System.out.println("heyooooo drawing instrument!"); System.out.println("the zoom factor is: "+proj_class.zoom_factor+" scroll x is: "+scroll_x+"scroll y is: "+scroll_y); temp_instrument.set_color(0); } if(temp_stage!=null){ temp_stage.set_color(2); temp_stage.draw(g2,proj_class.zoom_factor,0-scroll_x,0-scroll_y); temp_stage.set_color(0); } if(temp_set!=null){ temp_set.set_color(2); temp_set.draw(g2,proj_class.zoom_factor,0-scroll_x,0-scroll_y); temp_set.set_color(0); } if(temp_house!=null){ temp_house.set_color(2); temp_house.draw(g2,proj_class.zoom_factor,0-scroll_x,0-scroll_y); temp_house.set_color(0); } // if(proj_class.selected_type==2){ // proj_class.bars.draw_object(proj_class.selected_index,proj_class.zoom_factor,0-scroll_x,0-scroll_y); // } if(selected_node>=0){ int t=proj_class.selected_type; if(t==0){ //house if(temp_house!=null){ Ellipse2D.Double node_circ= new Ellipse2D.Double(temp_house.worldx+temp_house.x[selected_node], temp_house.worldy+temp_house.y[selected_node],6,6); g2.fill(node_circ); } }else if(t==1){ //stage if(temp_stage!=null){ Ellipse2D.Double node_circ= new Ellipse2D.Double(temp_stage.worldx+temp_stage.x[selected_node], temp_stage.worldy+temp_stage.y[selected_node],6,6); g2.fill(node_circ); } }else if(t==2){ //bar if(temp_bar!=null){ Ellipse2D.Double node_circ= new Ellipse2D.Double(temp_bar.worldx+temp_bar.x[selected_node], temp_bar.worldy+temp_bar.y[selected_node],6,6); g2.fill(node_circ); } }else if(t==3){ //instrument }else if(t==4){ //set if(temp_set!=null){ Ellipse2D.Double node_circ= new Ellipse2D.Double(temp_set.worldx+temp_set.x[selected_node], temp_set.worldy+temp_set.y[selected_node],6,6); g2.fill(node_circ); } } } }
|
11744 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11744/028a1c249c63be4a7fe3ec4d179fc341fe65a39d/TransPanel.java/buggy/src/drawing_prog/TransPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3724,
6911,
12,
17558,
22,
40,
314,
22,
13,
288,
3639,
1984,
10296,
67,
1106,
28657,
4406,
13,
4406,
18,
83,
797,
31,
3639,
10296,
67,
1106,
18,
76,
1481,
281,
18,
542,
67,
9252,
12,
75,
22,
1769,
3639,
10296,
67,
1106,
18,
13518,
18,
542,
67,
9252,
12,
75,
22,
1769,
7734,
10296,
67,
1106,
18,
22818,
87,
18,
542,
67,
9252,
12,
75,
22,
1769,
7734,
10296,
67,
1106,
18,
334,
1023,
18,
542,
67,
9252,
12,
75,
22,
1769,
7734,
10296,
67,
1106,
18,
4424,
18,
542,
67,
9252,
12,
75,
22,
1769,
7734,
368,
9446,
310,
1300,
329,
5518,
3068,
2674,
18,
3639,
368,
8838,
412,
267,
3874,
3639,
314,
22,
18,
542,
2957,
12,
2957,
18,
23516,
67,
43,
6722,
1769,
3639,
364,
12,
474,
277,
273,
2130,
31,
277,
411,
261,
8252,
3829,
18,
77,
7956,
2384,
17,
12,
20938,
9132,
5537,
18,
77,
2384,
14,
22,
13,
300,
4248,
1769,
277,
15,
33,
2130,
13,
288,
5411,
514,
1906,
273,
1408,
15,
77,
31,
5411,
314,
22,
18,
9446,
12,
2704,
5377,
22,
40,
18,
5265,
12,
77,
16,
374,
16,
277,
16,
2593,
3361,
10019,
5411,
368,
19133,
2549,
2593,
3361,
18,
5411,
314,
22,
18,
9446,
780,
12,
5814,
16,
277,
16,
1728,
1769,
3639,
289,
3639,
364,
12,
474,
277,
273,
2130,
31,
277,
411,
7651,
3829,
18,
77,
7956,
2686,
300,
5045,
29,
31,
277,
15,
33,
2130,
13,
288,
5411,
514,
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,
3724,
6911,
12,
17558,
22,
40,
314,
22,
13,
288,
3639,
1984,
10296,
67,
1106,
28657,
4406,
13,
4406,
18,
83,
797,
31,
3639,
10296,
67,
1106,
18,
76,
1481,
281,
18,
542,
67,
9252,
12,
75,
22,
1769,
3639,
10296,
67,
1106,
18,
13518,
18,
542,
67,
9252,
12,
75,
22,
1769,
7734,
10296,
67,
1106,
18,
22818,
87,
18,
542,
67,
9252,
12,
75,
22,
1769,
7734,
10296,
67,
1106,
18,
334,
1023,
18,
542,
67,
9252,
12,
75,
22,
1769,
7734,
10296,
67,
1106,
18,
4424,
18,
542,
67,
9252,
12,
75,
22,
1769,
7734,
368,
9446,
310,
1300,
329,
5518,
3068,
2674,
18,
3639,
368,
8838,
412,
267,
3874,
3639,
314,
22,
2
] |
getRevisionObject(revision), "" });
|
getRevisionObject(revision), rootBaton.getToken() }); myDirsStack.push(rootBaton);
|
public void openRoot(long revision) throws SVNException { myCurrentPath = ""; myConnection.write("(w((n)s))", new Object[] { "open-root", getRevisionObject(revision), "" }); }
|
2776 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2776/e7ad048caa889ec811131785dd8fbd2c7886af28/SVNCommitEditor.java/clean/javasvn/src/org/tmatesoft/svn/core/internal/io/svn/SVNCommitEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1696,
2375,
12,
5748,
6350,
13,
1216,
29537,
50,
503,
288,
3639,
3399,
3935,
743,
273,
1408,
31,
3639,
3399,
1952,
18,
2626,
2932,
12,
91,
12443,
82,
13,
87,
30743,
16,
394,
1033,
8526,
288,
315,
3190,
17,
3085,
3113,
7734,
26911,
921,
12,
13057,
3631,
1365,
38,
16799,
18,
588,
1345,
1435,
15549,
3399,
9872,
2624,
18,
6206,
12,
3085,
38,
16799,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1696,
2375,
12,
5748,
6350,
13,
1216,
29537,
50,
503,
288,
3639,
3399,
3935,
743,
273,
1408,
31,
3639,
3399,
1952,
18,
2626,
2932,
12,
91,
12443,
82,
13,
87,
30743,
16,
394,
1033,
8526,
288,
315,
3190,
17,
3085,
3113,
7734,
26911,
921,
12,
13057,
3631,
1365,
38,
16799,
18,
588,
1345,
1435,
15549,
3399,
9872,
2624,
18,
6206,
12,
3085,
38,
16799,
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
] |
if ( _cnt1649>=1 ) { break _loop1649; } else {throw new NoViableAltException(_t);}
|
if ( _cnt1650>=1 ) { break _loop1650; } else {throw new NoViableAltException(_t);}
|
public final void assign_opt(AST _t) throws RecognitionException { AST assign_opt_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1646 = _t; AST tmp894_AST_in = (AST)_t; match(_t,ASSIGN); _t = _t.getFirstChild(); { int _cnt1649=0; _loop1649: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==EQUAL)) { AST __t1648 = _t; AST tmp895_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); AST tmp896_AST_in = (AST)_t; if ( _t==null ) throw new MismatchedTokenException(); _t = _t.getNextSibling(); expression(_t); _t = _retTree; _t = __t1648; _t = _t.getNextSibling(); } else { if ( _cnt1649>=1 ) { break _loop1649; } else {throw new NoViableAltException(_t);} } _cnt1649++; } while (true); } _t = __t1646; _t = _t.getNextSibling(); _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
2683,
67,
3838,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
2683,
67,
3838,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
23147,
26,
273,
389,
88,
31,
202,
202,
9053,
1853,
6675,
24,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
23289,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
95,
202,
202,
474,
389,
13085,
23147,
29,
33,
20,
31,
202,
202,
67,
6498,
23147,
29,
30,
202,
202,
2896,
288,
1082,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
1082,
202,
430,
14015,
67,
88,
18,
588,
559,
1435,
631,
12853,
3719,
288,
9506,
202,
9053,
1001,
88,
23147,
28,
273,
389,
88,
31,
9506,
202,
9053,
1853,
6675,
25,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
9506,
202,
1916,
24899,
88,
16,
12853,
1769,
9506,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
9506,
202,
9053,
1853,
6675,
26,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
9506,
202,
430,
261,
389,
88,
631,
2011,
262,
604,
394,
26454,
1345,
503,
5621,
9506,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
9506,
202,
8692,
24899,
88,
1769,
9506,
202,
67,
88,
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,
225,
202,
482,
727,
918,
2683,
67,
3838,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
2683,
67,
3838,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
23147,
26,
273,
389,
88,
31,
202,
202,
9053,
1853,
6675,
24,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
23289,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
95,
202,
202,
474,
389,
13085,
23147,
29,
33,
20,
31,
202,
202,
67,
6498,
23147,
29,
30,
202,
202,
2896,
288,
1082,
202,
430,
261,
2
] |
public byte[] getContent(CmsObject cms, String templateFile, String elementName, Hashtable parameters, String templateSelector) throws CmsException { if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging() && C_DEBUG) { A_OpenCms.log(C_OPENCMS_DEBUG, this.getClassName() + "getting content of element " + ((elementName == null) ? "<root>" : elementName)); A_OpenCms.log(C_OPENCMS_DEBUG, this.getClassName() + "template file is: " + templateFile); A_OpenCms.log(C_OPENCMS_DEBUG, this.getClassName() + "selected template section is: " + ((templateSelector == null) ? "<default>" : templateSelector)); } I_CmsSession session = cms.getRequestContext().getSession(true); CmsRequestContext reqCont = cms.getRequestContext(); CmsXmlLanguageFile lang = new CmsXmlLanguageFile(cms); // clear session values on first load String initial = (String)parameters.get(C_PARA_INITIAL); if(initial != null) { // remove all session values session.removeValue(C_NEWNAME); session.removeValue(C_NEWGROUP); session.removeValue(C_NEWDESCRIPTION); session.removeValue(C_NEWMANAGERGROUP); session.removeValue(C_NEWFOLDER); session.removeValue(C_NEWRESOURCES); session.removeValue(C_NEWTYPE); session.removeValue("lasturl"); session.removeValue("newProjectCallingFrom"); reqCont.setCurrentProject(cms.onlineProject().getId()); } String newName, newGroup, newDescription, newManagerGroup, newFolder, projectType; String newType = new String(); String action = new String(); action = (String)parameters.get("action"); CmsXmlTemplateFile xmlTemplateDocument = getOwnTemplateFile(cms, templateFile, elementName, parameters, templateSelector); //look if we come from the explorer view String fileToGo = (String)parameters.get("file"); if (fileToGo == null){ fileToGo = (String)session.getValue("newProjectCallingFrom"); } String lasturl = (String)parameters.get("lasturl"); if (lasturl == null){ lasturl = (String)session.getValue("lasturl"); } newName = (String)parameters.get(C_PROJECTNEW_NAME); if(newName == null) { newName = (String)session.getValue(C_NEWNAME); } String errorTemplateAddOn = ""; if (fileToGo != null){ // this is from the explorer view if((!cms.getRequestContext().isProjectManager()) && (!cms.isAdmin())){ // user has no rights to create a project return startProcessing(cms, xmlTemplateDocument, elementName,parameters, "norigths"); } errorTemplateAddOn = "explorer"; session.putValue("newProjectCallingFrom", fileToGo); xmlTemplateDocument.setData("pathCorrection",""); xmlTemplateDocument.setData("backButton",lasturl); xmlTemplateDocument.setData("myUrl","resource_to_project.html"); xmlTemplateDocument.setData("dontDoIt", " //"); // we have to put the file in the box and set the projectname xmlTemplateDocument.setData("doThis","addFolder(document.PROJECTNEW.new_ressources,'"+fileToGo+"');"); if (newName == null){ newName = getProjectName(cms,fileToGo); } }else{ // this is from the administration view xmlTemplateDocument.setData("pathCorrection","../../"); xmlTemplateDocument.setData("backButton","../../../action/administration_content_top.html?sender=/system/workplace/administration/project/"); xmlTemplateDocument.setData("myUrl","index.html"); xmlTemplateDocument.setData("dontDoIt", ""); xmlTemplateDocument.setData("doThis",""); } xmlTemplateDocument.setData("onlineId", "" + cms.onlineProject().getId()); newGroup = (String)parameters.get(C_PROJECTNEW_GROUP); newDescription = (String)parameters.get(C_PROJECTNEW_DESCRIPTION); newManagerGroup = (String)parameters.get(C_PROJECTNEW_MANAGERGROUP); String allResources = (String)parameters.get(C_NEWRESOURCES); newType = (String)parameters.get(C_NEWTYPE); // if there are still values in the session (like after an error), use them if(newGroup == null) { newGroup = (String)session.getValue(C_NEWGROUP); } if(newDescription == null) { newDescription = (String)session.getValue(C_NEWDESCRIPTION); } if(newManagerGroup == null) { newManagerGroup = (String)session.getValue(C_NEWMANAGERGROUP); } if(allResources == null) { allResources = (String)session.getValue(C_NEWRESOURCES); } if(newName == null) { newName = ""; } if(newGroup == null) { newGroup = ""; } if(newDescription == null) { newDescription = ""; } if(newManagerGroup == null) { newManagerGroup = ""; } if(allResources == null) { allResources = ""; } if(newType == null || "".equals(newType)) { projectType = ""+I_CmsConstants.C_PROJECT_TYPE_NORMAL; newType = ""; } else { projectType = ""+I_CmsConstants.C_PROJECT_TYPE_TEMPORARY; } // first we look if the thread is allready running if((action != null) && ("working".equals(action))) { // project ready; clear the session session.removeValue(C_NEWNAME); session.removeValue(C_NEWGROUP); session.removeValue(C_NEWDESCRIPTION); session.removeValue(C_NEWMANAGERGROUP); session.removeValue(C_NEWFOLDER); session.removeValue(C_NEWTYPE); session.removeValue("lasturl"); session.removeValue("newProjectCallingFrom"); return startProcessing(cms, xmlTemplateDocument, elementName, parameters, "done"); } if(parameters.get("submitform") != null) { // the form has just been submitted, store the data in the session session.putValue(C_NEWNAME, newName); session.putValue(C_NEWGROUP, newGroup); session.putValue(C_NEWDESCRIPTION, newDescription); session.putValue(C_NEWMANAGERGROUP, newManagerGroup); session.putValue(C_NEWTYPE, newType); if(newName.equals("") || newGroup.equals("") || newManagerGroup.equals("") || allResources.equals("")) { templateSelector = "datamissing"+errorTemplateAddOn; } else { session.putValue(C_NEWRESOURCES, allResources); // all the required data has been entered, display 'Please wait' templateSelector = "wait"; action = "start"; } } // is the wait-page showing? if("start".equals(action)) { // YES: get the stored data newName = (String)session.getValue(C_NEWNAME); newGroup = (String)session.getValue(C_NEWGROUP); newDescription = (String)session.getValue(C_NEWDESCRIPTION); newManagerGroup = (String)session.getValue(C_NEWMANAGERGROUP); allResources = (String)session.getValue(C_NEWRESOURCES); newType = (String)session.getValue(C_NEWTYPE); // create new Project try { // append the /pics/ and /download/ path to the list of all resources String picspath = getConfigFile(cms).getPicGalleryPath(); String downloadpath = getConfigFile(cms).getDownGalleryPath(); allResources = allResources + ";" + picspath + ";" + downloadpath; // 'allResurces' has the "form res1;res2;...resk;" // this is because the simpler 'getParameterValues' method doesn't work with Silverstream Vector folders = parseResources(allResources); int numRes = folders.size(); for(int i = 0;i < numRes;i++) { // modify the foldername if nescessary (the root folder is always given // as a nice name) if(lang.getLanguageValue("title.rootfolder").equals(folders.elementAt(i))) { folders.setElementAt("/", i); } } checkRedundancies(folders); numRes = folders.size(); // could have been changed // finally create the project CmsProject project = cms.createProject(newName, newDescription, newGroup, newManagerGroup, Integer.parseInt(projectType)); // change the current project reqCont.setCurrentProject(project.getId()); templateSelector = "wait"; // copy the resources to the actual project try { // copy the resources to the actual project for(int i = 0;i < folders.size();i++) { cms.copyResourceToProject((String)folders.elementAt(i)); } } catch(CmsException e) { // if there are no projectresources in the project then delete the project Vector projectResources = cms.readAllProjectResources(project.getId()); if((projectResources == null) || (projectResources.size() == 0)){ cms.deleteProject(project.getId()); reqCont.setCurrentProject(C_PROJECT_ONLINE_ID); } if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging() ) { A_OpenCms.log(A_OpenCms.C_OPENCMS_CRITICAL, e.getMessage()); } xmlTemplateDocument.setData("details", Utils.getStackTrace(e)); templateSelector = "errornewproject"+errorTemplateAddOn; //throw e; } } catch(CmsException exc) { xmlTemplateDocument.setData("details", Utils.getStackTrace(exc)); templateSelector = "errornewproject"+errorTemplateAddOn; } } // after an error the form data is retrieved and filled into the template xmlTemplateDocument.setData(C_NEWNAME, newName); xmlTemplateDocument.setData(C_NEWDESCRIPTION, newDescription); xmlTemplateDocument.setData(C_NEWTYPE, newType); // Now load the template file and start the processing return startProcessing(cms, xmlTemplateDocument, elementName, parameters, templateSelector); }
|
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/551a4d6c7cef3c86d56c009ef7bae8a9ad85e9a3/CmsAdminProjectNew.java/buggy/src/com/opencms/workplace/CmsAdminProjectNew.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
7229,
8526,
588,
1350,
12,
4747,
921,
6851,
16,
780,
3202,
812,
16,
780,
2956,
461,
16,
5582,
14544,
3977,
16,
780,
3202,
4320,
13,
15069,
4747,
503,
95,
430,
12,
45,
67,
4747,
1343,
10585,
18,
39,
67,
3670,
16560,
916,
67,
5127,
67,
28162,
10,
10,
37,
67,
3678,
4747,
18,
291,
7735,
1435,
10,
10,
39,
67,
9394,
15329,
37,
67,
3678,
4747,
18,
1330,
12,
39,
67,
11437,
13802,
67,
9394,
16,
2211,
18,
588,
3834,
1435,
9078,
588,
1787,
1745,
792,
2956,
6,
15,
12443,
2956,
461,
631,
2011,
13,
7225,
32,
3085,
2984,
30,
2956,
461,
10019,
37,
67,
3678,
4747,
18,
1330,
12,
39,
67,
11437,
13802,
67,
9394,
16,
2211,
18,
588,
3834,
1435,
9078,
3202,
768,
291,
2773,
15,
3202,
812,
1769,
37,
67,
3678,
4747,
18,
1330,
12,
39,
67,
11437,
13802,
67,
9394,
16,
2211,
18,
588,
3834,
1435,
9078,
8109,
8502,
794,
291,
2773,
15,
12443,
3202,
4320,
631,
2011,
13,
7225,
32,
1886,
2984,
30,
3202,
4320,
10019,
97,
45,
67,
4747,
2157,
3184,
33,
6851,
18,
588,
21426,
7675,
588,
2157,
12,
3767,
1769,
4747,
21426,
3658,
660,
33,
6851,
18,
588,
21426,
5621,
4747,
4432,
3779,
25579,
292,
539,
33,
2704,
4747,
4432,
3779,
812,
12,
6851,
1769,
759,
8507,
3184,
2372,
265,
3645,
945,
780,
6769,
28657,
780,
13,
3977,
18,
588,
12,
39,
67,
2778,
37,
67,
28497,
1769,
430,
12,
6769,
5,
33,
2011,
15329,
759,
4479,
454,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
7229,
8526,
588,
1350,
12,
4747,
921,
6851,
16,
780,
3202,
812,
16,
780,
2956,
461,
16,
5582,
14544,
3977,
16,
780,
3202,
4320,
13,
15069,
4747,
503,
95,
430,
12,
45,
67,
4747,
1343,
10585,
18,
39,
67,
3670,
16560,
916,
67,
5127,
67,
28162,
10,
10,
37,
67,
3678,
4747,
18,
291,
7735,
1435,
10,
10,
39,
67,
9394,
15329,
37,
67,
3678,
4747,
18,
1330,
12,
39,
67,
11437,
13802,
67,
9394,
16,
2211,
18,
588,
3834,
1435,
9078,
588,
1787,
1745,
792,
2956,
6,
15,
12443,
2956,
461,
631,
2011,
13,
7225,
32,
3085,
2984,
30,
2956,
461,
10019,
37,
67,
3678,
4747,
18,
1330,
12,
39,
67,
11437,
13802,
67,
9394,
16,
2211,
2
] |
||
while(tri.hasNext())
|
while (tri.hasNext())
|
public static WorkspaceItem[] findByEPerson(Context context, EPerson ep) throws SQLException { List wsItems = new ArrayList(); TableRowIterator tri = DatabaseManager.query(context, "personalworkspace", "SELECT personalworkspace.* FROM personalworkspace, item WHERE " + "personalworkspace.item_id=item.item_id AND " + "item.submitter_id=" + ep.getID() + ";"); while(tri.hasNext()) { TableRow row = tri.next(); WorkspaceItem wi = new WorkspaceItem(context, row); wsItems.add(wi); } WorkspaceItem[] wsArray = new WorkspaceItem[wsItems.size()]; wsArray = (WorkspaceItem[]) wsItems.toArray(wsArray); return wsArray; }
|
49711 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49711/85c7430ba7691f831fafc420459d280408310eb9/WorkspaceItem.java/clean/dspace/src/org/dspace/content/WorkspaceItem.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
14396,
1180,
8526,
6224,
41,
8346,
12,
1042,
819,
16,
512,
8346,
5529,
13,
3639,
1216,
6483,
565,
288,
3639,
987,
4945,
3126,
273,
394,
2407,
5621,
3639,
3555,
1999,
3198,
6882,
273,
5130,
1318,
18,
2271,
12,
2472,
16,
5411,
315,
29991,
14915,
3113,
5411,
315,
4803,
17816,
14915,
4509,
4571,
17816,
14915,
16,
761,
4852,
315,
397,
7734,
315,
29991,
14915,
18,
1726,
67,
350,
33,
1726,
18,
1726,
67,
350,
4116,
315,
397,
7734,
315,
1726,
18,
9297,
387,
67,
350,
1546,
397,
5529,
18,
588,
734,
1435,
397,
11430,
1769,
3639,
1323,
261,
16857,
18,
5332,
2134,
10756,
3639,
288,
5411,
3555,
1999,
1027,
273,
6882,
18,
4285,
5621,
5411,
14396,
1180,
16138,
273,
394,
14396,
1180,
12,
2472,
16,
1027,
1769,
5411,
4945,
3126,
18,
1289,
12,
91,
77,
1769,
3639,
289,
7734,
14396,
1180,
8526,
4945,
1076,
273,
394,
14396,
1180,
63,
4749,
3126,
18,
1467,
1435,
15533,
3639,
4945,
1076,
273,
261,
8241,
1180,
63,
5717,
4945,
3126,
18,
31447,
12,
4749,
1076,
1769,
3639,
327,
4945,
1076,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
14396,
1180,
8526,
6224,
41,
8346,
12,
1042,
819,
16,
512,
8346,
5529,
13,
3639,
1216,
6483,
565,
288,
3639,
987,
4945,
3126,
273,
394,
2407,
5621,
3639,
3555,
1999,
3198,
6882,
273,
5130,
1318,
18,
2271,
12,
2472,
16,
5411,
315,
29991,
14915,
3113,
5411,
315,
4803,
17816,
14915,
4509,
4571,
17816,
14915,
16,
761,
4852,
315,
397,
7734,
315,
29991,
14915,
18,
1726,
67,
350,
33,
1726,
18,
1726,
67,
350,
4116,
315,
397,
7734,
315,
1726,
18,
9297,
387,
67,
350,
1546,
397,
5529,
18,
588,
734,
1435,
397,
11430,
1769,
3639,
1323,
261,
16857,
18,
5332,
2134,
10756,
3639,
288,
5411,
3555,
1999,
1027,
273,
6882,
18,
4285,
5621,
5411,
14396,
1180,
2
] |
is = new SSKInsertSender(block, uid, htl, source, this, fromStore, closestLoc);
|
is = new CHKInsertSender(key, uid, headers, htl, source, this, prb, fromStore, closestLoc);
|
public SSKInsertSender makeInsertSender(SSKBlock block, short htl, long uid, PeerNode source, boolean fromStore, double closestLoc, boolean cache) { NodeSSK key = (NodeSSK) block.getKey(); if(key.getPubKey() == null) { throw new IllegalArgumentException("No pub key when inserting"); } cacheKey(key.getPubKeyHash(), key.getPubKey()); Logger.minor(this, "makeInsertSender("+key+","+htl+","+uid+","+source+",...,"+fromStore); KeyHTLPair kh = new KeyHTLPair(key, htl); SSKInsertSender is = null; synchronized(insertSenders) { is = (SSKInsertSender) insertSenders.get(kh); } if(is != null) { Logger.minor(this, "Found "+is+" for "+kh); return is; } if(fromStore && !cache) throw new IllegalArgumentException("From store = true but cache = false !!!"); is = new SSKInsertSender(block, uid, htl, source, this, fromStore, closestLoc); is.start(); Logger.minor(this, is.toString()+" for "+kh.toString()); // SSKInsertSender adds itself to insertSenders return is; }
|
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/00abf756f60b3bbc14968634ac59dba2f12d1441/Node.java/buggy/src/freenet/node/Node.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
348,
11129,
4600,
12021,
1221,
4600,
12021,
12,
1260,
47,
1768,
1203,
16,
3025,
366,
6172,
16,
1525,
4555,
16,
10669,
907,
1084,
16,
1082,
202,
6494,
628,
2257,
16,
1645,
9219,
1333,
16,
1250,
1247,
13,
288,
202,
202,
907,
1260,
47,
498,
273,
261,
907,
1260,
47,
13,
1203,
18,
588,
653,
5621,
202,
202,
430,
12,
856,
18,
588,
17924,
1435,
422,
446,
13,
288,
1082,
202,
12849,
394,
2754,
2932,
2279,
5634,
498,
1347,
21079,
8863,
202,
202,
97,
202,
202,
2493,
653,
12,
856,
18,
588,
17924,
2310,
9334,
498,
18,
588,
17924,
10663,
202,
202,
3328,
18,
17364,
12,
2211,
16,
315,
6540,
4600,
12021,
2932,
15,
856,
15,
15937,
15,
647,
80,
15,
15937,
15,
1911,
15,
15937,
15,
3168,
15,
3113,
2777,
10837,
15,
2080,
2257,
1769,
202,
202,
653,
5062,
48,
4154,
417,
76,
273,
394,
1929,
5062,
48,
4154,
12,
856,
16,
366,
6172,
1769,
202,
202,
1260,
47,
4600,
12021,
353,
273,
446,
31,
202,
202,
22043,
12,
6387,
3826,
414,
13,
288,
1082,
202,
291,
273,
261,
1260,
47,
4600,
12021,
13,
2243,
3826,
414,
18,
588,
12,
79,
76,
1769,
202,
202,
97,
202,
202,
430,
12,
291,
480,
446,
13,
288,
1082,
202,
3328,
18,
17364,
12,
2211,
16,
315,
2043,
13773,
291,
9078,
364,
13773,
79,
76,
1769,
1082,
202,
2463,
353,
31,
202,
202,
97,
202,
202,
430,
12,
2080,
2257,
597,
401,
2493,
13,
1082,
202,
12849,
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,
348,
11129,
4600,
12021,
1221,
4600,
12021,
12,
1260,
47,
1768,
1203,
16,
3025,
366,
6172,
16,
1525,
4555,
16,
10669,
907,
1084,
16,
1082,
202,
6494,
628,
2257,
16,
1645,
9219,
1333,
16,
1250,
1247,
13,
288,
202,
202,
907,
1260,
47,
498,
273,
261,
907,
1260,
47,
13,
1203,
18,
588,
653,
5621,
202,
202,
430,
12,
856,
18,
588,
17924,
1435,
422,
446,
13,
288,
1082,
202,
12849,
394,
2754,
2932,
2279,
5634,
498,
1347,
21079,
8863,
202,
202,
97,
202,
202,
2493,
653,
12,
856,
18,
588,
17924,
2310,
9334,
498,
18,
588,
17924,
10663,
202,
202,
3328,
18,
17364,
12,
2211,
16,
315,
6540,
4600,
12021,
2932,
15,
856,
15,
15937,
2
] |
file.setAttribute("lines", Integer.toString(revision.getLinesOfCode()));
|
file.setAttribute("lines", ""+revision.getLinesOfCode());
|
private Element createFilesElement(Commit commit) { Element files = new Element("files"); FileCollectionFormatter formatter = new FileCollectionFormatter(commit.getAffectedFiles()); Iterator it = formatter.getDirectories().iterator(); while (it.hasNext()) { String directory = (String)it.next(); Iterator filesIt = formatter.getFiles(directory).iterator(); while (filesIt.hasNext()) { Element file = new Element("file"); String filename = (String)filesIt.next(); file.setAttribute("name", filename); if (!"".equals(directory)) { file.setAttribute("directory", directory); } CvsRevision revision = (CvsRevision) revisions.get(directory + filename); // links to webrepo WebRepositoryIntegration webRepository = ConfigurationOptions.getWebRepository(); if (webRepository != null) { CvsRevision previous = revision.getPreviousRevision(); String url; if (previous == null) { url = webRepository.getFileViewUrl(revision); } else { url = webRepository.getDiffUrl(previous, revision); } file.setAttribute("url", url); } // check type of commit if (revision.isInitialRevision()) { file.setAttribute("action", "added"); if (revision.getFile().isBinary()) { file.setAttribute("type", "binary"); } else { file.setAttribute("lines", Integer.toString(revision.getLinesOfCode())); } } else if (revision.isDead()) { file.setAttribute("action", "deleted"); } else { file.setAttribute("action", "changed"); file.setAttribute("added", Integer.toString(revision.getLinesAdded())); file.setAttribute("removed", Integer.toString(revision.getLinesRemoved())); } files.addContent(file); } } return files; }
|
12751 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12751/01db312431e3abd7fe708f9a22d1620ee481a9a7/CommitLogElement.java/buggy/statcvs-xml/src/net/sf/statcvs/output/xml/CommitLogElement.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3010,
752,
2697,
1046,
12,
5580,
3294,
13,
288,
202,
202,
1046,
1390,
273,
394,
3010,
2932,
2354,
8863,
9506,
202,
812,
2532,
5074,
4453,
273,
1082,
202,
2704,
1387,
2532,
5074,
12,
7371,
18,
588,
23775,
2697,
10663,
25083,
202,
3198,
518,
273,
4453,
18,
588,
13071,
7675,
9838,
5621,
202,
202,
17523,
261,
305,
18,
5332,
2134,
10756,
288,
1082,
202,
780,
1867,
273,
261,
780,
13,
305,
18,
4285,
5621,
1082,
202,
3198,
1390,
7193,
273,
4453,
18,
588,
2697,
12,
5149,
2934,
9838,
5621,
1082,
202,
17523,
261,
2354,
7193,
18,
5332,
2134,
10756,
288,
9506,
202,
1046,
585,
273,
394,
3010,
2932,
768,
8863,
9506,
202,
780,
1544,
273,
261,
780,
13,
2354,
7193,
18,
4285,
5621,
9506,
202,
768,
18,
542,
1499,
2932,
529,
3113,
1544,
1769,
9506,
202,
430,
16051,
3660,
18,
14963,
12,
5149,
3719,
288,
6862,
202,
768,
18,
542,
1499,
2932,
5149,
3113,
1867,
1769,
9506,
202,
97,
9506,
202,
39,
6904,
7939,
6350,
273,
6862,
202,
12,
39,
6904,
7939,
13,
18325,
18,
588,
12,
5149,
397,
1544,
1769,
6862,
9506,
202,
759,
4716,
358,
3311,
7422,
6862,
9506,
202,
4079,
3305,
15372,
3311,
3305,
273,
4659,
1320,
18,
588,
4079,
3305,
5621,
9506,
202,
430,
261,
4875,
3305,
480,
446,
13,
288,
6862,
202,
39,
6904,
7939,
2416,
273,
6350,
18,
588,
8351,
7939,
5621,
6862,
202,
780,
880,
31,
4405,
202,
430,
261,
11515,
422,
446,
13,
288,
25083,
202,
718,
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,
3010,
752,
2697,
1046,
12,
5580,
3294,
13,
288,
202,
202,
1046,
1390,
273,
394,
3010,
2932,
2354,
8863,
9506,
202,
812,
2532,
5074,
4453,
273,
1082,
202,
2704,
1387,
2532,
5074,
12,
7371,
18,
588,
23775,
2697,
10663,
25083,
202,
3198,
518,
273,
4453,
18,
588,
13071,
7675,
9838,
5621,
202,
202,
17523,
261,
305,
18,
5332,
2134,
10756,
288,
1082,
202,
780,
1867,
273,
261,
780,
13,
305,
18,
4285,
5621,
1082,
202,
3198,
1390,
7193,
273,
4453,
18,
588,
2697,
12,
5149,
2934,
9838,
5621,
1082,
202,
17523,
261,
2354,
7193,
18,
5332,
2134,
10756,
288,
9506,
202,
1046,
585,
273,
394,
3010,
2932,
768,
8863,
9506,
202,
780,
1544,
273,
261,
780,
2
] |
return m_nodeDao.findAllByVarCharAssetColumnCategoryList(view.getColumnName(), view.getColumnValue(), categories);
|
return m_nodeDao.findAllByVarCharAssetColumnCategoryList(view.getColumnName(), statusSite, categories);
|
public Collection<OnmsNode> getNodes(String statusViewName, String statusSite, String rowLabel) { if (statusViewName == null) { statusViewName = m_siteStatusViewConfigDao.getDefaultView().getName(); } View view = m_siteStatusViewConfigDao.getView(statusViewName); RowDef rowDef = getRowDef(view, rowLabel); Set<OnmsCategory> categories = getCategoriesForRowDef(rowDef); return m_nodeDao.findAllByVarCharAssetColumnCategoryList(view.getColumnName(), view.getColumnValue(), categories); }
|
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/3168bd029b59b7fc16103132f45cae791b4ebf91/DefaultSiteStatusViewService.java/clean/opennms-webapp/src/main/java/org/opennms/web/svclayer/support/DefaultSiteStatusViewService.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2200,
32,
1398,
959,
907,
34,
24495,
12,
780,
1267,
27146,
16,
514,
1267,
4956,
16,
514,
1027,
2224,
13,
288,
3639,
309,
261,
2327,
27146,
422,
446,
13,
288,
5411,
1267,
27146,
273,
312,
67,
4256,
1482,
1767,
809,
11412,
18,
588,
1868,
1767,
7675,
17994,
5621,
3639,
289,
7734,
4441,
1476,
273,
312,
67,
4256,
1482,
1767,
809,
11412,
18,
588,
1767,
12,
2327,
27146,
1769,
3639,
6556,
3262,
1027,
3262,
273,
11835,
3262,
12,
1945,
16,
1027,
2224,
1769,
7734,
1000,
32,
1398,
959,
4457,
34,
6477,
273,
1927,
4030,
1290,
1999,
3262,
12,
492,
3262,
1769,
7734,
327,
312,
67,
2159,
11412,
18,
4720,
1595,
858,
1537,
2156,
6672,
1494,
4457,
682,
12,
1945,
18,
588,
8516,
9334,
1267,
4956,
16,
6477,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2200,
32,
1398,
959,
907,
34,
24495,
12,
780,
1267,
27146,
16,
514,
1267,
4956,
16,
514,
1027,
2224,
13,
288,
3639,
309,
261,
2327,
27146,
422,
446,
13,
288,
5411,
1267,
27146,
273,
312,
67,
4256,
1482,
1767,
809,
11412,
18,
588,
1868,
1767,
7675,
17994,
5621,
3639,
289,
7734,
4441,
1476,
273,
312,
67,
4256,
1482,
1767,
809,
11412,
18,
588,
1767,
12,
2327,
27146,
1769,
3639,
6556,
3262,
1027,
3262,
273,
11835,
3262,
12,
1945,
16,
1027,
2224,
1769,
7734,
1000,
32,
1398,
959,
4457,
34,
6477,
273,
1927,
4030,
1290,
1999,
3262,
12,
492,
3262,
1769,
7734,
327,
312,
67,
2159,
11412,
18,
4720,
1595,
858,
1537,
2156,
6672,
1494,
4457,
682,
12,
2
] |
preferences.insert_new_line_in_control_statements = true;
|
preferences.insert_new_line_before_catch_in_try_statement = true; preferences.insert_new_line_before_else_in_if_statement = true; preferences.insert_new_line_before_finally_in_try_statement = true; preferences.insert_new_line_before_while_in_do_statement = true;
|
public void test163() { DefaultCodeFormatterOptions preferences = new DefaultCodeFormatterOptions(DefaultCodeFormatterConstants.getDefaultSettings()); preferences.insert_new_line_in_control_statements = true; preferences.compact_else_if = true; DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences); runTest(codeFormatter, "test163", "A.java", CodeFormatter.K_CLASS_BODY_DECLARATIONS);//$NON-NLS-1$ //$NON-NLS-2$ }
|
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/efbaf5f01b1dd1c4f8135936aa48ce411ca71c6c/FormatterRegressionTests.java/buggy/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/formatter/FormatterRegressionTests.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
30886,
1435,
288,
202,
202,
1868,
1085,
5074,
1320,
12750,
273,
394,
2989,
1085,
5074,
1320,
12,
1868,
1085,
5074,
2918,
18,
588,
1868,
2628,
10663,
202,
202,
23219,
18,
6387,
67,
2704,
67,
1369,
67,
267,
67,
7098,
67,
18393,
273,
638,
31,
202,
202,
23219,
18,
21038,
67,
12107,
67,
430,
273,
638,
31,
202,
202,
1868,
1085,
5074,
981,
5074,
273,
394,
2989,
1085,
5074,
12,
23219,
1769,
202,
202,
2681,
4709,
12,
710,
5074,
16,
315,
3813,
30886,
3113,
315,
37,
18,
6290,
3113,
3356,
5074,
18,
47,
67,
5237,
67,
16691,
67,
23956,
985,
15297,
1769,
759,
8,
3993,
17,
5106,
17,
21,
8,
4329,
3993,
17,
5106,
17,
22,
8,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
30886,
1435,
288,
202,
202,
1868,
1085,
5074,
1320,
12750,
273,
394,
2989,
1085,
5074,
1320,
12,
1868,
1085,
5074,
2918,
18,
588,
1868,
2628,
10663,
202,
202,
23219,
18,
6387,
67,
2704,
67,
1369,
67,
267,
67,
7098,
67,
18393,
273,
638,
31,
202,
202,
23219,
18,
21038,
67,
12107,
67,
430,
273,
638,
31,
202,
202,
1868,
1085,
5074,
981,
5074,
273,
394,
2989,
1085,
5074,
12,
23219,
1769,
202,
202,
2681,
4709,
12,
710,
5074,
16,
315,
3813,
30886,
3113,
315,
37,
18,
6290,
3113,
3356,
5074,
18,
47,
67,
5237,
67,
16691,
67,
23956,
985,
15297,
1769,
759,
8,
3993,
17,
5106,
17,
21,
8,
4329,
3993,
17,
5106,
17,
2
] |
cat.debug("<getInitialContext");
|
log.debug("<getInitialContext");
|
private Context getInitialContext() throws NamingException { cat.debug(">getInitialContext"); Context ctx = new javax.naming.InitialContext(); cat.debug("<getInitialContext"); return ctx; }
|
4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/16e6a1dbcc54470e8d05f9bc7fdc7e7ebb6fe13c/TestUserData.java/clean/src/java/se/anatom/ejbca/ra/junit/TestUserData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1772,
24044,
1042,
1435,
1216,
26890,
288,
3639,
6573,
18,
4148,
2932,
34,
588,
4435,
1042,
8863,
3639,
1772,
1103,
273,
394,
6863,
18,
82,
7772,
18,
4435,
1042,
5621,
3639,
613,
18,
4148,
2932,
32,
588,
4435,
1042,
8863,
3639,
327,
1103,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
3238,
1772,
24044,
1042,
1435,
1216,
26890,
288,
3639,
6573,
18,
4148,
2932,
34,
588,
4435,
1042,
8863,
3639,
1772,
1103,
273,
394,
6863,
18,
82,
7772,
18,
4435,
1042,
5621,
3639,
613,
18,
4148,
2932,
32,
588,
4435,
1042,
8863,
3639,
327,
1103,
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
] |
"should have allowed nested source folders with exclusion on the classpath", "End exclusion filter with / to fully exclude nested entry",
|
"End exclusion filter 'src' with / to fully exclude '/P/src'.",
|
public void testClasspathValidation15() throws CoreException { try { IJavaProject proj = this.createJavaProject("P", new String[] {"src"}, "bin"); IClasspathEntry[] originalCP = proj.getRawClasspath(); IClasspathEntry[] newCP = new IClasspathEntry[originalCP.length+1]; System.arraycopy(originalCP, 0, newCP, 0, originalCP.length); newCP[originalCP.length] = JavaCore.newSourceEntry(new Path("/P"), new IPath[] {new Path("src")}); IJavaModelStatus status = JavaConventions.validateClasspath(proj, newCP, proj.getOutputLocation()); assertEquals( "should have allowed nested source folders with exclusion on the classpath", "End exclusion filter with / to fully exclude nested entry", status.getMessage()); } finally { this.deleteProject("P"); }}
|
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/86294174b1b6db50df1742d660a3c76831e25b69/ClasspathTests.java/buggy/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/ClasspathTests.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
1842,
17461,
4354,
3600,
1435,
1216,
30015,
288,
202,
698,
288,
202,
202,
45,
5852,
4109,
10296,
273,
225,
333,
18,
2640,
5852,
4109,
2932,
52,
3113,
394,
514,
8526,
12528,
4816,
6,
5779,
315,
4757,
8863,
202,
202,
45,
17461,
1622,
8526,
2282,
4258,
273,
10296,
18,
588,
4809,
17461,
5621,
1082,
202,
45,
17461,
1622,
8526,
394,
4258,
273,
394,
467,
17461,
1622,
63,
8830,
4258,
18,
2469,
15,
21,
15533,
202,
202,
3163,
18,
1126,
3530,
12,
8830,
4258,
16,
374,
16,
394,
4258,
16,
374,
16,
2282,
4258,
18,
2469,
1769,
202,
202,
2704,
4258,
63,
8830,
4258,
18,
2469,
65,
273,
5110,
4670,
18,
2704,
1830,
1622,
12,
2704,
2666,
2932,
19,
52,
6,
3631,
394,
467,
743,
8526,
288,
2704,
2666,
2932,
4816,
7923,
22938,
9506,
202,
45,
5852,
1488,
1482,
1267,
273,
5110,
442,
24862,
18,
5662,
17461,
12,
17995,
16,
394,
4258,
16,
10296,
18,
588,
1447,
2735,
10663,
9506,
202,
11231,
8867,
12,
1082,
202,
6,
13139,
1240,
2935,
4764,
1084,
9907,
598,
21244,
603,
326,
10006,
3113,
1875,
202,
6,
1638,
21244,
1034,
598,
342,
358,
7418,
4433,
4764,
1241,
3113,
1082,
202,
2327,
18,
24906,
10663,
202,
97,
3095,
288,
202,
202,
2211,
18,
3733,
4109,
2932,
52,
8863,
202,
9090,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
1842,
17461,
4354,
3600,
1435,
1216,
30015,
288,
202,
698,
288,
202,
202,
45,
5852,
4109,
10296,
273,
225,
333,
18,
2640,
5852,
4109,
2932,
52,
3113,
394,
514,
8526,
12528,
4816,
6,
5779,
315,
4757,
8863,
202,
202,
45,
17461,
1622,
8526,
2282,
4258,
273,
10296,
18,
588,
4809,
17461,
5621,
1082,
202,
45,
17461,
1622,
8526,
394,
4258,
273,
394,
467,
17461,
1622,
63,
8830,
4258,
18,
2469,
15,
21,
15533,
202,
202,
3163,
18,
1126,
3530,
12,
8830,
4258,
16,
374,
16,
394,
4258,
16,
374,
16,
2282,
4258,
18,
2469,
1769,
202,
202,
2704,
4258,
63,
8830,
4258,
18,
2469,
65,
273,
5110,
4670,
18,
2704,
1830,
1622,
12,
2704,
2666,
2932,
19,
2
] |
assertEquals("Expected notifications not forthcoming.", 0, na.waitForAnticipated(10000).size()); sleep(1000); assertEquals("Unexpected notifications forthcoming.", 0, na.getUnanticipated().size());
|
verifyAnticipated(10000);
|
public void testMockNotificationInitialDelay() throws Exception { m_destinationPathManager.getPath("Email-Mock").setInitialDelay("10s"); MockNode node = m_network.getNode(1); NotificationAnticipator na = new NotificationAnticipator(); MockNotificationStrategy.setAnticpator(na); MockNotification notification = new MockNotification(); notification = createMockNotification("node 1 down.", "dhustace@nc.rr.com"); na.anticipateNotification(notification); notification = createMockNotification("node 1 down.", "matt@opennms.org"); na.anticipateNotification(notification); m_eventMgr.sendNow(node.createDownEvent()); assertEquals("Expected notifications not forthcoming.", 2, na.waitForAnticipated(3000).size()); sleep(1000); assertEquals("Unexpected notifications forthcoming.", 0, na.getUnanticipated().size()); assertEquals("Expected notifications not forthcoming.", 0, na.waitForAnticipated(10000).size()); sleep(1000); assertEquals("Unexpected notifications forthcoming.", 0, na.getUnanticipated().size()); }
|
25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/acd9f3285ecdc4e0e9424b89d8a97348cd0a8ae4/NotifdTest.java/buggy/src/services/org/opennms/netmgt/notifd/NotifdTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
9865,
4386,
4435,
6763,
1435,
1216,
1185,
288,
3639,
312,
67,
10590,
743,
1318,
18,
588,
743,
2932,
4134,
17,
9865,
20387,
542,
4435,
6763,
2932,
2163,
87,
8863,
7734,
7867,
907,
756,
273,
312,
67,
5185,
18,
588,
907,
12,
21,
1769,
3639,
8050,
14925,
24629,
639,
9583,
273,
394,
8050,
14925,
24629,
639,
5621,
3639,
7867,
4386,
4525,
18,
542,
14925,
335,
84,
639,
12,
6582,
1769,
3639,
7867,
4386,
3851,
273,
394,
7867,
4386,
5621,
7734,
3851,
273,
752,
9865,
4386,
2932,
2159,
404,
2588,
1199,
16,
315,
19153,
641,
623,
36,
14202,
18,
523,
18,
832,
8863,
3639,
9583,
18,
9941,
625,
340,
4386,
12,
9927,
1769,
3639,
3851,
273,
752,
9865,
4386,
2932,
2159,
404,
2588,
1199,
16,
315,
81,
4558,
36,
3190,
82,
959,
18,
3341,
8863,
3639,
9583,
18,
9941,
625,
340,
4386,
12,
9927,
1769,
3639,
312,
67,
2575,
9455,
18,
4661,
8674,
12,
2159,
18,
2640,
4164,
1133,
10663,
3639,
1815,
8867,
2932,
6861,
9208,
486,
364,
451,
5522,
1199,
16,
576,
16,
9583,
18,
7048,
1290,
14925,
24629,
690,
12,
23,
3784,
2934,
1467,
10663,
3639,
5329,
12,
18088,
1769,
3639,
1815,
8867,
2932,
7762,
9208,
364,
451,
5522,
1199,
16,
374,
16,
9583,
18,
588,
984,
9941,
625,
690,
7675,
1467,
10663,
3639,
1815,
8867,
2932,
6861,
9208,
486,
364,
451,
5522,
1199,
16,
374,
16,
9583,
18,
7048,
1290,
14925,
24629,
690,
12,
23899,
2934,
1467,
10663,
3639,
5329,
12,
18088,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
9865,
4386,
4435,
6763,
1435,
1216,
1185,
288,
3639,
312,
67,
10590,
743,
1318,
18,
588,
743,
2932,
4134,
17,
9865,
20387,
542,
4435,
6763,
2932,
2163,
87,
8863,
7734,
7867,
907,
756,
273,
312,
67,
5185,
18,
588,
907,
12,
21,
1769,
3639,
8050,
14925,
24629,
639,
9583,
273,
394,
8050,
14925,
24629,
639,
5621,
3639,
7867,
4386,
4525,
18,
542,
14925,
335,
84,
639,
12,
6582,
1769,
3639,
7867,
4386,
3851,
273,
394,
7867,
4386,
5621,
7734,
3851,
273,
752,
9865,
4386,
2932,
2159,
404,
2588,
1199,
16,
315,
19153,
641,
623,
36,
14202,
18,
523,
18,
832,
8863,
3639,
9583,
18,
9941,
625,
340,
4386,
12,
9927,
1769,
3639,
3851,
273,
752,
2
] |
return result;
|
return CONVERSION_NONE;
|
public static int getConversionWeight(Object fromObj, Class to) { int fromCode = getJSTypeCode(fromObj); int result = CONVERSION_NONE; switch (fromCode) { case JSTYPE_UNDEFINED: if (to == ScriptRuntime.StringClass || to == ScriptRuntime.ObjectClass) { result = 1; } break; case JSTYPE_NULL: if (!to.isPrimitive()) { result = 1; } break; case JSTYPE_BOOLEAN: // "boolean" is #1 if (to == Boolean.TYPE) { result = 1; } else if (to == ScriptRuntime.BooleanClass) { result = 2; } else if (to == ScriptRuntime.ObjectClass) { result = 3; } else if (to == ScriptRuntime.StringClass) { result = 4; } break; case JSTYPE_NUMBER: if (to.isPrimitive()) { if (to == Double.TYPE) { result = 1; } else if (to != Boolean.TYPE) { result = 1 + getSizeRank(to); } } else { if (to == ScriptRuntime.StringClass) { // native numbers are #1-8 result = 9; } else if (to == ScriptRuntime.ObjectClass) { result = 10; } else if (ScriptRuntime.NumberClass.isAssignableFrom(to)) { // "double" is #1 result = 2; } } break; case JSTYPE_STRING: if (to == ScriptRuntime.StringClass) { result = 1; } else if (to.isInstance(fromObj)) { result = 2; } else if (to.isPrimitive()) { if (to == Character.TYPE) { result = 3; } else if (to != Boolean.TYPE) { result = 4; } } break; case JSTYPE_JAVA_CLASS: if (to == ScriptRuntime.ClassClass) { result = 1; } else if (to == ScriptRuntime.ObjectClass) { result = 3; } else if (to == ScriptRuntime.StringClass) { result = 4; } break; case JSTYPE_JAVA_OBJECT: case JSTYPE_JAVA_ARRAY: if (to == ScriptRuntime.StringClass) { result = 2; } else if (to.isPrimitive() && to != Boolean.TYPE) { result = (fromCode == JSTYPE_JAVA_ARRAY) ? CONVERSION_NONTRIVIAL : 2 + getSizeRank(to); } else { Object javaObj = fromObj; if (javaObj instanceof Wrapper) { javaObj = ((Wrapper)javaObj).unwrap(); } if (to.isInstance(javaObj)) { result = CONVERSION_NONTRIVIAL; } } break; case JSTYPE_OBJECT: // Other objects takes #1-#3 spots if (to.isArray()) { if (fromObj instanceof NativeArray) { // This is a native array conversion to a java array // Array conversions are all equal, and preferable to object // and string conversion, per LC3. result = 1; } } else if (to == ScriptRuntime.ObjectClass) { result = 2; } else if (to == ScriptRuntime.StringClass) { result = 3; } else if (to == ScriptRuntime.DateClass) { if (fromObj instanceof NativeDate) { // This is a native date to java date conversion result = 1; } } else if (to.isPrimitive() || to != Boolean.TYPE) { result = 3 + getSizeRank(to); } break; } return result; }
|
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/11eddf0c611b2537267e99835d22096964c80528/NativeJavaObject.java/buggy/src/org/mozilla/javascript/NativeJavaObject.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
509,
336,
6814,
6544,
12,
921,
628,
2675,
16,
1659,
358,
13,
288,
3639,
509,
628,
1085,
273,
30257,
15460,
12,
2080,
2675,
1769,
3639,
509,
563,
273,
3492,
5757,
67,
9826,
31,
3639,
1620,
261,
2080,
1085,
13,
288,
3639,
648,
804,
882,
1738,
67,
2124,
15544,
30,
5411,
309,
261,
869,
422,
7739,
5576,
18,
780,
797,
747,
7734,
358,
422,
7739,
5576,
18,
921,
797,
13,
288,
7734,
563,
273,
404,
31,
5411,
289,
5411,
898,
31,
3639,
648,
804,
882,
1738,
67,
8560,
30,
5411,
309,
16051,
869,
18,
291,
9840,
10756,
288,
7734,
563,
273,
404,
31,
5411,
289,
5411,
898,
31,
3639,
648,
804,
882,
1738,
67,
17900,
30,
5411,
368,
315,
6494,
6,
353,
468,
21,
5411,
309,
261,
869,
422,
3411,
18,
2399,
13,
288,
7734,
563,
273,
404,
31,
5411,
289,
5411,
469,
309,
261,
869,
422,
7739,
5576,
18,
5507,
797,
13,
288,
7734,
563,
273,
576,
31,
5411,
289,
5411,
469,
309,
261,
869,
422,
7739,
5576,
18,
921,
797,
13,
288,
7734,
563,
273,
890,
31,
5411,
289,
5411,
469,
309,
261,
869,
422,
7739,
5576,
18,
780,
797,
13,
288,
7734,
563,
273,
1059,
31,
5411,
289,
5411,
898,
31,
3639,
648,
804,
882,
1738,
67,
9931,
30,
5411,
309,
261,
869,
18,
291,
9840,
10756,
288,
7734,
309,
261,
869,
422,
3698,
18,
2399,
13,
288,
10792,
563,
273,
404,
31,
7734,
289,
7734,
469,
309,
261,
869,
480,
3411,
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,
509,
336,
6814,
6544,
12,
921,
628,
2675,
16,
1659,
358,
13,
288,
3639,
509,
628,
1085,
273,
30257,
15460,
12,
2080,
2675,
1769,
3639,
509,
563,
273,
3492,
5757,
67,
9826,
31,
3639,
1620,
261,
2080,
1085,
13,
288,
3639,
648,
804,
882,
1738,
67,
2124,
15544,
30,
5411,
309,
261,
869,
422,
7739,
5576,
18,
780,
797,
747,
7734,
358,
422,
7739,
5576,
18,
921,
797,
13,
288,
7734,
563,
273,
404,
31,
5411,
289,
5411,
898,
31,
3639,
648,
804,
882,
1738,
67,
8560,
30,
5411,
309,
16051,
869,
18,
291,
9840,
10756,
288,
7734,
563,
273,
404,
31,
5411,
289,
5411,
898,
31,
3639,
648,
804,
882,
1738,
67,
17900,
30,
5411,
2
] |
linkTargetPath = new Path(linkTarget);
|
linkTargetPath = URIUtil.toURI(linkTarget);
|
protected void createLinkTarget() { String linkTarget = linkedResourceGroup.getLinkTarget(); if (linkTarget != null) { linkTargetPath = new Path(linkTarget); } else { linkTargetPath = null; } }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/53cada7d6d0463cdcb3aed320ea380f4aae64087/WizardNewFileCreationPage.java/buggy/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardNewFileCreationPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
752,
2098,
2326,
1435,
288,
3639,
514,
1692,
2326,
273,
8459,
18860,
18,
588,
2098,
2326,
5621,
3639,
309,
261,
1232,
2326,
480,
446,
13,
288,
5411,
1692,
2326,
743,
273,
3699,
1304,
18,
869,
3098,
12,
1232,
2326,
1769,
3639,
289,
469,
288,
5411,
1692,
2326,
743,
273,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
918,
752,
2098,
2326,
1435,
288,
3639,
514,
1692,
2326,
273,
8459,
18860,
18,
588,
2098,
2326,
5621,
3639,
309,
261,
1232,
2326,
480,
446,
13,
288,
5411,
1692,
2326,
743,
273,
3699,
1304,
18,
869,
3098,
12,
1232,
2326,
1769,
3639,
289,
469,
288,
5411,
1692,
2326,
743,
273,
446,
31,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if(CONFIG_DEBUG) writeLog("Service Reg to DA Using UDP");
|
logDebug("Service Reg to DA Using UDP");
|
protected boolean registerService(ServiceURL url, Vector attrs, DAInfo da) { Vector scopelist = da.getScopes(); SLPSrvRegMessage msg = new SLPSrvRegMessage(url, scopelist, attrs, locale); msg.setFlags(SLPMessageHeader.FLAG_FRESH); if(msg.getLength() <= CONFIG_SLP_MTU) { if(CONFIG_DEBUG) writeLog("Service Reg to DA Using UDP"); SLPMessageSender ms = new SLPMessageSender(this, CONFIG_SLP_MTU, CONFIG_RETRY, null); try { ms.sendSLPMessage(msg, da.getHost(), da.getPort(), CONFIG_RETRY_MAX, unicastCommunicator); }catch(ServiceLocationException se) { if(se.getErrorCode() == ServiceLocationException.DA_NOT_AVAILABLE) { // DA is most likely down... DAs.remove(da.getHost()); return false; } } } else { if(CONFIG_DEBUG) writeLog("Service Reg to DA Using TCP"); SLPTcpClient tcp = new SLPTcpClient(this); tcp.sendSlpMessage(msg, da.getHost(), da.getPort(), null); } return true; }
|
4987 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4987/053dfaf6fbe34657fbd4d39bd0992a8564d2ef86/ServiceAgent.java/buggy/core/components/slp/src/org/smartfrog/services/comm/slp/agents/ServiceAgent.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
1744,
1179,
12,
1179,
1785,
880,
16,
5589,
3422,
16,
463,
37,
966,
5248,
13,
288,
7734,
5589,
888,
556,
5449,
273,
5248,
18,
588,
12668,
5621,
3639,
348,
48,
5857,
4962,
1617,
1079,
1234,
273,
394,
348,
48,
5857,
4962,
1617,
1079,
12,
718,
16,
888,
556,
5449,
16,
3422,
16,
2573,
1769,
3639,
1234,
18,
542,
5094,
12,
4559,
52,
24319,
18,
9651,
67,
42,
14753,
1769,
3639,
309,
12,
3576,
18,
588,
1782,
1435,
1648,
9128,
67,
4559,
52,
67,
6152,
57,
13,
288,
5411,
613,
2829,
2932,
1179,
2526,
358,
463,
37,
11637,
16230,
8863,
5411,
348,
14461,
1079,
12021,
4086,
273,
394,
348,
14461,
1079,
12021,
12,
2211,
16,
9128,
67,
4559,
52,
67,
6152,
57,
16,
9128,
67,
24240,
16,
446,
1769,
5411,
775,
288,
7734,
4086,
18,
4661,
4559,
52,
1079,
12,
3576,
16,
4766,
282,
5248,
18,
588,
2594,
9334,
5248,
18,
588,
2617,
9334,
9128,
67,
24240,
67,
6694,
16,
21394,
640,
12544,
12136,
318,
8844,
1769,
5411,
289,
14683,
12,
1179,
2735,
503,
695,
13,
288,
7734,
309,
12,
307,
18,
588,
12012,
1435,
422,
1956,
2735,
503,
18,
9793,
67,
4400,
67,
23222,
13,
288,
10792,
368,
463,
37,
353,
4486,
10374,
2588,
2777,
10792,
463,
1463,
18,
4479,
12,
2414,
18,
588,
2594,
10663,
10792,
327,
629,
31,
7734,
289,
5411,
289,
3639,
289,
3639,
469,
288,
5411,
309,
12,
7203,
67,
9394,
13,
1045,
1343,
2932,
1179,
2526,
358,
463,
37,
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,
1744,
1179,
12,
1179,
1785,
880,
16,
5589,
3422,
16,
463,
37,
966,
5248,
13,
288,
7734,
5589,
888,
556,
5449,
273,
5248,
18,
588,
12668,
5621,
3639,
348,
48,
5857,
4962,
1617,
1079,
1234,
273,
394,
348,
48,
5857,
4962,
1617,
1079,
12,
718,
16,
888,
556,
5449,
16,
3422,
16,
2573,
1769,
3639,
1234,
18,
542,
5094,
12,
4559,
52,
24319,
18,
9651,
67,
42,
14753,
1769,
3639,
309,
12,
3576,
18,
588,
1782,
1435,
1648,
9128,
67,
4559,
52,
67,
6152,
57,
13,
288,
5411,
613,
2829,
2932,
1179,
2526,
358,
463,
37,
11637,
16230,
8863,
5411,
348,
14461,
1079,
12021,
4086,
273,
394,
348,
14461,
1079,
12021,
12,
2211,
16,
9128,
67,
2
] |
bc2ir.appendInstruction(Attempt.create(ATTEMPT_INT, test, base, offset, oldVal,
|
bc2ir.appendInstruction(Attempt.create(ATTEMPT_ADDR, test, base, offset, oldVal,
|
static boolean generateMagic(OPT_BC2IR bc2ir, OPT_GenerationContext gc, VM_MethodReference meth) throws OPT_MagicNotImplementedException { if (gc.method.hasNoInlinePragma()) gc.allocFrame = true; // HACK: Don't schedule any bbs containing unsafe magics. // TODO: move this to individual magics that are unsafe. // -- igor 08/13/1999 bc2ir.markBBUnsafeForScheduling(); VM_Atom methodName = meth.getName(); if (methodName == VM_MagicNames.getProcessorRegister) { OPT_RegisterOperand rop = gc.temps.makePROp(); bc2ir.markGuardlessNonNull(rop); bc2ir.push(rop); } else if (methodName == VM_MagicNames.setProcessorRegister) { OPT_Operand val = bc2ir.popRef(); if (val instanceof OPT_RegisterOperand) { bc2ir.appendInstruction(Move.create(REF_MOVE, gc.temps.makePROp(), val)); } else { String msg = " Unexpected operand VM_Magic.setProcessorRegister"; throw OPT_MagicNotImplementedException.UNEXPECTED(msg); } } else if (methodName == VM_MagicNames.addressArrayCreate) { OPT_Instruction s = bc2ir.generateAnewarray(meth.getType().getArrayElementType()); bc2ir.appendInstruction(s); } else if (methodName == VM_MagicNames.addressArrayLength) { OPT_Operand op1 = bc2ir.pop(); bc2ir.clearCurrentGuard(); if (bc2ir.do_NullCheck(op1)) return true; OPT_RegisterOperand t = gc.temps.makeTempInt(); OPT_Instruction s = GuardedUnary.create(ARRAYLENGTH, t, op1, bc2ir.getCurrentGuard()); bc2ir.push(t.copyD2U()); bc2ir.appendInstruction(s); } else if (methodName == VM_MagicNames.addressArrayGet) { VM_TypeReference elementType = meth.getType().getArrayElementType(); OPT_Operand index = bc2ir.popInt(); OPT_Operand ref = bc2ir.popRef(); OPT_RegisterOperand offset = gc.temps.makeTempInt(); OPT_RegisterOperand result; if (meth.getType().isCodeArrayType()) { if (VM.BuildForIA32) { result = gc.temps.makeTemp(VM_TypeReference.Byte); bc2ir.appendInstruction(Load.create(BYTE_LOAD, result, ref, index, new OPT_LocationOperand(elementType), new OPT_TrueGuardOperand())); } else if (VM.BuildForPowerPC) { result = gc.temps.makeTemp(VM_TypeReference.Int); bc2ir.appendInstruction(Binary.create(INT_SHL, offset, index, new OPT_IntConstantOperand(LOG_BYTES_IN_INT))); bc2ir.appendInstruction(Load.create(INT_LOAD, result, ref, offset.copy(), new OPT_LocationOperand(elementType), new OPT_TrueGuardOperand())); } } else { result = gc.temps.makeTemp(elementType); bc2ir.appendInstruction(Binary.create(INT_SHL, offset, index, new OPT_IntConstantOperand(LOG_BYTES_IN_ADDRESS))); OPT_Operator op = VM.BuildFor32Addr ? INT_LOAD : (VM.BuildFor64Addr ? LONG_LOAD : null); bc2ir.appendInstruction(Load.create(op, result, ref, offset.copy(), new OPT_LocationOperand(elementType), new OPT_TrueGuardOperand())); } bc2ir.push(result.copyD2U()); } else if (methodName == VM_MagicNames.addressArraySet) { VM_TypeReference elementType = meth.getType().getArrayElementType(); OPT_Operand val = bc2ir.pop(); OPT_Operand index = bc2ir.popInt(); OPT_Operand ref = bc2ir.popRef(); OPT_RegisterOperand offset = gc.temps.makeTempInt(); if (meth.getType().isCodeArrayType()) { if (VM.BuildForIA32) { bc2ir.appendInstruction(Store.create(BYTE_STORE, val, ref, index, new OPT_LocationOperand(elementType), new OPT_TrueGuardOperand())); } else if (VM.BuildForPowerPC) { bc2ir.appendInstruction(Binary.create(INT_SHL, offset, index, new OPT_IntConstantOperand(LOG_BYTES_IN_INT))); bc2ir.appendInstruction(Store.create(INT_STORE, val, ref, offset.copy(), new OPT_LocationOperand(elementType), new OPT_TrueGuardOperand())); } } else { bc2ir.appendInstruction(Binary.create(INT_SHL, offset, index, new OPT_IntConstantOperand(LOG_BYTES_IN_ADDRESS))); OPT_Operator op = VM.BuildFor32Addr ? INT_STORE : (VM.BuildFor64Addr ? LONG_STORE : null); bc2ir.appendInstruction(Store.create(op, val, ref, offset.copy(), new OPT_LocationOperand(elementType), new OPT_TrueGuardOperand())); } } else if (methodName == VM_MagicNames.getIntAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTempInt(); bc2ir.appendInstruction(Load.create(INT_LOAD, val, object, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setIntAtOffset) { OPT_Operand val = bc2ir.popInt(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); bc2ir.appendInstruction(Store.create(INT_STORE, val, object, offset, null)); } else if (methodName == VM_MagicNames.getWordAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Word); bc2ir.appendInstruction(Load.create(REF_LOAD, val, object, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setWordAtOffset) { OPT_Operand val = bc2ir.popRef(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); bc2ir.appendInstruction(Store.create(REF_STORE, val, object, offset, null)); } else if (methodName == VM_MagicNames.getLongAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTempLong(); bc2ir.appendInstruction(Load.create(LONG_LOAD, val, object, offset, null)); bc2ir.pushDual(val.copyD2U()); } else if (methodName == VM_MagicNames.setLongAtOffset) { OPT_Operand val = bc2ir.popLong(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); bc2ir.appendInstruction(Store.create(LONG_STORE, val, object, offset, null)); } else if (methodName == VM_MagicNames.getDoubleAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTempDouble(); bc2ir.appendInstruction(Load.create(DOUBLE_LOAD, val, object, offset, null)); bc2ir.pushDual(val.copyD2U()); } else if (methodName == VM_MagicNames.setDoubleAtOffset) { OPT_Operand val = bc2ir.popDouble(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); bc2ir.appendInstruction(Store.create(DOUBLE_STORE, val, object, offset, null)); } else if (methodName == VM_MagicNames.getObjectAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.JavaLangObject); bc2ir.appendInstruction(Load.create(REF_LOAD, val, object, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.getObjectArrayAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.JavaLangObjectArray); bc2ir.appendInstruction(Load.create(REF_LOAD, val, object, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setObjectAtOffset) { OPT_LocationOperand loc = null; if (meth.getParameterTypes().length == 4) { loc = mapToMetadata(bc2ir.popInt()); } OPT_Operand val = bc2ir.popRef(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); bc2ir.appendInstruction(Store.create(REF_STORE, val, object, offset, loc)); } else if (methodName == VM_MagicNames.getByteAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Byte); bc2ir.appendInstruction(Load.create(BYTE_LOAD, val, object, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setByteAtOffset) { OPT_Operand val = bc2ir.popInt(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); bc2ir.appendInstruction(Store.create(BYTE_STORE, val, object, offset, null)); } else if (methodName == VM_MagicNames.getCharAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Char); bc2ir.appendInstruction(Load.create(USHORT_LOAD, val, object, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setCharAtOffset) { OPT_Operand val = bc2ir.popInt(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); bc2ir.appendInstruction(Store.create(SHORT_STORE, val, object, offset, null)); } else if (methodName == VM_MagicNames.getMemoryInt) { OPT_Operand memAddr = bc2ir.popAddress(); OPT_RegisterOperand val = gc.temps.makeTempInt(); bc2ir.appendInstruction(Load.create(INT_LOAD, val, memAddr, new OPT_IntConstantOperand(0), null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.getMemoryWord) { OPT_Operand memAddr = bc2ir.popAddress(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Word); bc2ir.appendInstruction(Load.create(REF_LOAD, val, memAddr, new OPT_IntConstantOperand(0), null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.getMemoryAddress) { OPT_Operand memAddr = bc2ir.popAddress(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Address); bc2ir.appendInstruction(Load.create(REF_LOAD, val, memAddr, new OPT_IntConstantOperand(0), null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setMemoryInt) { OPT_Operand val = bc2ir.popInt(); OPT_Operand memAddr = bc2ir.popAddress(); bc2ir.appendInstruction(Store.create(INT_STORE, val, memAddr, new OPT_IntConstantOperand(0), null)); } else if (methodName == VM_MagicNames.setMemoryWord) { OPT_Operand val = bc2ir.popRef(); OPT_Operand memAddr = bc2ir.popAddress(); bc2ir.appendInstruction(Store.create(REF_STORE, val, memAddr, new OPT_IntConstantOperand(0), null)); } else if (methodName == VM_MagicNames.setMemoryAddress) { OPT_LocationOperand loc = null; if (meth.getParameterTypes().length == 3) { loc = mapToMetadata(bc2ir.popInt()); } OPT_Operand val = bc2ir.popRef(); OPT_Operand memAddr = bc2ir.popAddress(); bc2ir.appendInstruction(Store.create(REF_STORE, val, memAddr, new OPT_IntConstantOperand(0), loc)); } else if (meth.getType() == VM_TypeReference.SysCall) { // All methods of VM_SysCall have the following signature: // callNAME(VM_Address code, <var args to pass via native calling convention>) VM_TypeReference[] args = meth.getParameterTypes(); int numArgs = args.length; VM_Field ip = VM_Entrypoints.getSysCallField(meth.getName().toString()); OPT_MethodOperand mo = OPT_MethodOperand.STATIC(ip); OPT_Instruction call = Call.create(SYSCALL, null, null, mo, null, args.length); for (int i = args.length-1; i >= 0; i--) { Call.setParam(call, i, bc2ir.pop(args[i])); } VM_TypeReference rtype = meth.getReturnType(); if (!rtype.isVoidType()) { OPT_RegisterOperand op0 = gc.temps.makeTemp(rtype); Call.setResult(call, op0); bc2ir.push(op0.copyD2U(), rtype); } bc2ir.appendInstruction(call); } else if (methodName == VM_MagicNames.threadAsCollectorThread) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.findOrCreate(VM_SystemClassLoader.getVMClassLoader(), VM_Atom.findOrCreateAsciiAtom("Lcom/ibm/JikesRVM/VM_CollectorThread;"))); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.objectAsType) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.VM_Type); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.objectAsThread) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.findOrCreate(VM_SystemClassLoader.getVMClassLoader(), VM_Atom.findOrCreateAsciiAtom("Lcom/ibm/JikesRVM/VM_Thread;"))); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.objectAsProcessor) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.VM_Processor); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.objectAsAddress) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.Address); bc2ir.appendInstruction(Move.create(INT_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsObject) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.JavaLangObject); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsObjectArray) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.JavaLangObjectArray); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsType) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.VM_Type); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsThread) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.findOrCreate(VM_SystemClassLoader.getVMClassLoader(), VM_Atom.findOrCreateAsciiAtom("Lcom/ibm/JikesRVM/VM_Thread;"))); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsRegisters) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.findOrCreate(VM_SystemClassLoader.getVMClassLoader(), VM_Atom.findOrCreateAsciiAtom("Lcom/ibm/JikesRVM/VM_Registers;"))); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsByteArray) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.ByteArray); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsIntArray) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.IntArray); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.objectAsByteArray) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.ByteArray); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.objectAsShortArray) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.ShortArray); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.objectAsIntArray) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.IntArray); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsStack) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.IntArray); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.floatAsIntBits) { OPT_Operand val = bc2ir.popFloat(); OPT_RegisterOperand op0 = gc.temps.makeTempInt(); bc2ir.appendInstruction(Unary.create(FLOAT_AS_INT_BITS, op0, val)); bc2ir.push(op0.copyD2U()); } else if (methodName == VM_MagicNames.intBitsAsFloat) { OPT_Operand val = bc2ir.popInt(); OPT_RegisterOperand op0 = gc.temps.makeTempFloat(); bc2ir.appendInstruction(Unary.create(INT_BITS_AS_FLOAT, op0, val)); bc2ir.push(op0.copyD2U()); } else if (methodName == VM_MagicNames.doubleAsLongBits) { OPT_Operand val = bc2ir.popDouble(); OPT_RegisterOperand op0 = gc.temps.makeTempLong(); bc2ir.appendInstruction(Unary.create(DOUBLE_AS_LONG_BITS, op0, val)); bc2ir.pushDual(op0.copyD2U()); } else if (methodName == VM_MagicNames.longBitsAsDouble) { OPT_Operand val = bc2ir.popLong(); OPT_RegisterOperand op0 = gc.temps.makeTempDouble(); bc2ir.appendInstruction(Unary.create(LONG_BITS_AS_DOUBLE, op0, val)); bc2ir.pushDual(op0.copyD2U()); } else if (methodName == VM_MagicNames.getObjectType) { OPT_Operand val = bc2ir.popRef(); OPT_Operand guard = bc2ir.getGuard(val); if (guard == null) { // it's magic, so assume that it's OK.... guard = new OPT_TrueGuardOperand(); } OPT_RegisterOperand tibPtr = gc.temps.makeTemp(VM_TypeReference.JavaLangObjectArray); bc2ir.appendInstruction(GuardedUnary.create(GET_OBJ_TIB, tibPtr, val, guard)); OPT_RegisterOperand op0; VM_TypeReference argType = val.getType(); if (argType.isArrayType()) { op0 = gc.temps.makeTemp(VM_TypeReference.VM_Array); } else { if (argType == VM_TypeReference.JavaLangObject || argType == VM_TypeReference.JavaLangCloneable || argType == VM_TypeReference.JavaIoSerializable) { // could be an array or a class, so make op0 be a VM_Type op0 = gc.temps.makeTemp(VM_TypeReference.VM_Type); } else { op0 = gc.temps.makeTemp(VM_TypeReference.VM_Class); } } bc2ir.markGuardlessNonNull(op0); bc2ir.appendInstruction(Unary.create(GET_TYPE_FROM_TIB, op0, tibPtr.copyD2U())); bc2ir.push(op0.copyD2U()); } else if (methodName == VM_MagicNames.getArrayLength) { OPT_Operand val = bc2ir.popRef(); OPT_RegisterOperand op0 = gc.temps.makeTempInt(); bc2ir.appendInstruction(GuardedUnary.create(ARRAYLENGTH, op0, val, new OPT_TrueGuardOperand())); bc2ir.push(op0.copyD2U()); } else if (methodName == VM_MagicNames.invokeClassInitializer) { OPT_Instruction s = Call.create0(CALL, null, bc2ir.popRef(), null); bc2ir.appendInstruction(s); } else if (methodName == VM_MagicNames.invokeMain) { OPT_Operand code = bc2ir.popRef(); OPT_Operand args = bc2ir.popRef(); bc2ir.appendInstruction(Call.create1(CALL, null, code, null, args)); } else if ((methodName == VM_MagicNames.invokeMethodReturningObject) || (methodName == VM_MagicNames.invokeMethodReturningVoid) || (methodName == VM_MagicNames.invokeMethodReturningLong) || (methodName == VM_MagicNames.invokeMethodReturningDouble) || (methodName == VM_MagicNames.invokeMethodReturningFloat) || (methodName == VM_MagicNames.invokeMethodReturningInt)) { OPT_Operand spills = bc2ir.popRef(); OPT_Operand fprs = bc2ir.popRef(); OPT_Operand gprs = bc2ir.popRef(); OPT_Operand code = bc2ir.popRef(); OPT_RegisterOperand res = null; if (methodName == VM_MagicNames.invokeMethodReturningObject) { res = gc.temps.makeTemp(VM_TypeReference.JavaLangObject); bc2ir.push(res.copyD2U()); } else if (methodName == VM_MagicNames.invokeMethodReturningLong) { res = gc.temps.makeTemp(VM_TypeReference.Long); bc2ir.push(res.copyD2U(), VM_TypeReference.Long); } else if (methodName == VM_MagicNames.invokeMethodReturningDouble) { res = gc.temps.makeTempDouble(); bc2ir.push(res.copyD2U(), VM_TypeReference.Double); } else if (methodName == VM_MagicNames.invokeMethodReturningFloat) { res = gc.temps.makeTempFloat(); bc2ir.push(res.copyD2U(), VM_TypeReference.Float); } else if (methodName == VM_MagicNames.invokeMethodReturningInt) { res = gc.temps.makeTempInt(); bc2ir.push(res.copyD2U()); } VM_Field target = VM_Entrypoints.reflectiveMethodInvokerInstructionsField; OPT_MethodOperand met = OPT_MethodOperand.STATIC(target); OPT_Instruction s = Call.create4(CALL, res, new OPT_IntConstantOperand(target.getOffset()), met, code, gprs, fprs, spills); bc2ir.appendInstruction(s); } else if (methodName == VM_MagicNames.saveThreadState) { OPT_Operand p1 = bc2ir.popRef(); VM_Field target = VM_Entrypoints.saveThreadStateInstructionsField; OPT_MethodOperand mo = OPT_MethodOperand.STATIC(target); bc2ir.appendInstruction(Call.create1(CALL, null, new OPT_IntConstantOperand(target.getOffset()), mo, p1)); } else if (methodName == VM_MagicNames.threadSwitch) { OPT_Operand p2 = bc2ir.popRef(); OPT_Operand p1 = bc2ir.popRef(); VM_Field target = VM_Entrypoints.threadSwitchInstructionsField; OPT_MethodOperand mo = OPT_MethodOperand.STATIC(target); bc2ir.appendInstruction(Call.create2(CALL, null, new OPT_IntConstantOperand(target.getOffset()), mo, p1, p2)); } else if (methodName == VM_MagicNames.restoreHardwareExceptionState) { VM_Field target = VM_Entrypoints.restoreHardwareExceptionStateInstructionsField; OPT_MethodOperand mo = OPT_MethodOperand.STATIC(target); bc2ir.appendInstruction(Call.create1(CALL, null, new OPT_IntConstantOperand(target.getOffset()), mo, bc2ir.popRef())); } else if (methodName == VM_MagicNames.prepareInt) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTempInt(); bc2ir.appendInstruction(Prepare.create(PREPARE_INT, val, base, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.prepareObject) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.JavaLangObject); bc2ir.appendInstruction(Prepare.create(PREPARE_INT, val, base, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.prepareAddress) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Address); bc2ir.appendInstruction(Prepare.create(PREPARE_INT, val, base, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.prepareWord) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Word); bc2ir.appendInstruction(Prepare.create(PREPARE_INT, val, base, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.attemptInt) { OPT_Operand newVal = bc2ir.popInt(); OPT_Operand oldVal = bc2ir.popInt(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand test = gc.temps.makeTempInt(); bc2ir.appendInstruction(Attempt.create(ATTEMPT_INT, test, base, offset, oldVal, newVal, null)); bc2ir.push(test.copyD2U()); } else if (methodName == VM_MagicNames.attemptObject) { OPT_Operand newVal = bc2ir.popRef(); OPT_Operand oldVal = bc2ir.popRef(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand test = gc.temps.makeTempInt(); bc2ir.appendInstruction(Attempt.create(ATTEMPT_INT, test, base, offset, oldVal, newVal, null)); bc2ir.push(test.copyD2U()); } else if (methodName == VM_MagicNames.attemptAddress) { OPT_Operand newVal = bc2ir.popAddress(); OPT_Operand oldVal = bc2ir.popAddress(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand test = gc.temps.makeTempInt(); bc2ir.appendInstruction(Attempt.create(ATTEMPT_INT, test, base, offset, oldVal, newVal, null)); bc2ir.push(test.copyD2U()); } else if (methodName == VM_MagicNames.attemptWord) { OPT_Operand newVal = bc2ir.pop(); OPT_Operand oldVal = bc2ir.pop(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand test = gc.temps.makeTempInt(); bc2ir.appendInstruction(Attempt.create(ATTEMPT_INT, test, base, offset, oldVal, newVal, null)); bc2ir.push(test.copyD2U()); } else if (generatePolymorphicMagic(bc2ir, gc, meth, methodName)) { return true; } else if (methodName == VM_MagicNames.getTimeBase) { OPT_RegisterOperand op0 = gc.temps.makeTempLong(); bc2ir.appendInstruction(Nullary.create(GET_TIME_BASE, op0)); bc2ir.pushDual(op0.copyD2U()); } else { // Wasn't machine-independent, so try the machine-dependent magics next. return OPT_GenerateMachineSpecificMagic.generateMagic(bc2ir, gc, meth); } return true; } // generateMagic
|
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/f39c281897cdf2c8ecd4498d4b9f8e33d060c8cd/OPT_GenerateMagic.java/buggy/rvm/src/vm/compilers/optimizing/ir/conversions/bc2hir/OPT_GenerateMagic.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
1250,
2103,
19289,
12,
15620,
67,
16283,
22,
7937,
6533,
22,
481,
16,
27573,
16456,
67,
13842,
1042,
8859,
16,
27573,
8251,
67,
1305,
2404,
7917,
13,
1216,
16456,
67,
19289,
1248,
8644,
503,
288,
565,
309,
261,
13241,
18,
2039,
18,
5332,
2279,
10870,
2050,
9454,
10756,
8859,
18,
9853,
3219,
273,
638,
31,
3639,
368,
670,
3649,
30,
7615,
1404,
4788,
1281,
324,
2038,
4191,
7127,
4447,
2102,
18,
565,
368,
2660,
30,
3635,
333,
358,
7327,
4447,
2102,
716,
854,
7127,
18,
565,
368,
1493,
277,
3022,
16314,
19,
3437,
19,
21,
11984,
565,
6533,
22,
481,
18,
3355,
9676,
23912,
1290,
25401,
5621,
565,
8251,
67,
3641,
4918,
273,
7917,
18,
17994,
5621,
565,
309,
261,
2039,
461,
422,
8251,
67,
19289,
1557,
18,
588,
5164,
3996,
13,
288,
1377,
16456,
67,
3996,
10265,
721,
84,
273,
8859,
18,
874,
1121,
18,
6540,
3373,
84,
5621,
1377,
6533,
22,
481,
18,
3355,
16709,
2656,
8921,
12,
1764,
1769,
1377,
6533,
22,
481,
18,
6206,
12,
1764,
1769,
565,
289,
469,
309,
261,
2039,
461,
422,
8251,
67,
19289,
1557,
18,
542,
5164,
3996,
13,
288,
1377,
16456,
67,
10265,
1244,
273,
6533,
22,
481,
18,
5120,
1957,
5621,
1377,
309,
261,
1125,
1276,
16456,
67,
3996,
10265,
13,
288,
3639,
6533,
22,
481,
18,
6923,
11983,
12,
7607,
18,
2640,
12,
10771,
67,
16537,
16,
4766,
2398,
8859,
18,
874,
1121,
18,
6540,
3373,
84,
9334,
4766,
2398,
1244,
10019,
1377,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
1250,
2103,
19289,
12,
15620,
67,
16283,
22,
7937,
6533,
22,
481,
16,
27573,
16456,
67,
13842,
1042,
8859,
16,
27573,
8251,
67,
1305,
2404,
7917,
13,
1216,
16456,
67,
19289,
1248,
8644,
503,
288,
565,
309,
261,
13241,
18,
2039,
18,
5332,
2279,
10870,
2050,
9454,
10756,
8859,
18,
9853,
3219,
273,
638,
31,
3639,
368,
670,
3649,
30,
7615,
1404,
4788,
1281,
324,
2038,
4191,
7127,
4447,
2102,
18,
565,
368,
2660,
30,
3635,
333,
358,
7327,
4447,
2102,
716,
854,
7127,
18,
565,
368,
1493,
277,
3022,
16314,
19,
3437,
19,
21,
11984,
565,
6533,
22,
481,
18,
3355,
9676,
23912,
1290,
25401,
5621,
565,
8251,
67,
3641,
4918,
273,
7917,
18,
17994,
5621,
2
] |
false, false, result);
|
false, false, srcData, result);
|
private static void decompile_r(NativeFunction f, int indent, boolean toplevel, boolean justbody, StringBuffer result) { String source = f.source; if (source == null) { if (!justbody) { result.append("function "); result.append(f.getFunctionName()); result.append("() {\n\t"); } result.append("[native code]\n"); if (!justbody) { result.append("}\n"); } return; } int length = source.length(); // Spew tokens in source, for debugging. // as TYPE number char if (printSource) { System.err.println("length:" + length); for (int i = 0; i < length; ++i) { // Note that tokenToName will fail unless Context.printTrees // is true. String tokenname = TokenStream.tokenToName(source.charAt(i)); if (tokenname == null) tokenname = "---"; String pad = tokenname.length() > 7 ? "\t" : "\t\t"; System.err.println (tokenname + pad + (int)source.charAt(i) + "\t'" + ScriptRuntime.escapeString (source.substring(i, i+1)) + "'"); } System.err.println(); } int i = 0; if (length > 0) { /* special-case FUNCTION as the first token; if it is, * (and it's not followed by a NAME or LP) then we're * decompiling a function (and not the toplevel script.) * FUNCTION appearing elsewhere is an escape that means we'll * need to call toString of the given function (object). * If not at the top level, don't add an initial indent; * let the caller do it, so functions as expressions look * reasonable. */ if (toplevel) { // add an initial newline to exactly match js. if (!justbody) result.append('\n'); for (int j = 0; j < indent; j++) result.append(' '); } if (source.charAt(0) == TokenStream.FUNCTION // make sure it's not a script that begins with a // reference to a function definition. && length > 1 && (source.charAt(1) == TokenStream.NAME || source.charAt(1) == TokenStream.LP)) { if (!justbody) { result.append("function "); /* version != 1.2 Function constructor behavior - if * there's no function name in the source info, and * the names[0] entry is the empty string, then it must * have been created by the Function constructor; * print 'anonymous' as the function name if the * version (under which the function was compiled) is * less than 1.2... or if it's greater than 1.2, because * we need to be closer to ECMA. (ToSource, please?) */ if (nextIs(source, length, i, TokenStream.LP) && f.version != Context.VERSION_1_2 && f.functionName != null && f.functionName.equals("anonymous")) result.append("anonymous"); ++i; } else { /* Skip past the entire function header to the next EOL. * Depends on how NAMEs are encoded. */ while (i < length && (source.charAt(i) != TokenStream.EOL // the length char of a NAME sequence // can look like an EOL. || (i > 0 && source.charAt(i-1) == TokenStream.NAME))) { ++i; } // Skip past the EOL, too. ++i; } } } while (i < length) { int stop; switch(source.charAt(i)) { case TokenStream.NAME: case TokenStream.REGEXP: // re-wrapped in '/'s in parser... /* NAMEs are encoded as NAME, (char) length, string... * Note that lookahead for detecting labels depends on * this encoding; change there if this changes. * Also change function-header skipping code above, * used when decompling under decompileFunctionBody. */ ++i; stop = i + (int)source.charAt(i); result.append(source.substring(i + 1, stop + 1)); i = stop; break; case TokenStream.NUMBER: ++i; long lbits = 0; switch(source.charAt(i)) { case 'S': ++i; result.append((int)source.charAt(i)); break; case 'J': lbits |= (long)source.charAt(++i) << 48; lbits |= (long)source.charAt(++i) << 32; lbits |= (long)source.charAt(++i) << 16; lbits |= (long)source.charAt(++i); result.append(lbits); break; case 'D': lbits |= (long)source.charAt(++i) << 48; lbits |= (long)source.charAt(++i) << 32; lbits |= (long)source.charAt(++i) << 16; lbits |= (long)source.charAt(++i); double dval = Double.longBitsToDouble(lbits); result.append(ScriptRuntime.numberToString(dval, 10)); break; } break; case TokenStream.STRING: ++i; stop = i + (int)source.charAt(i); result.append('"'); result.append(ScriptRuntime.escapeString (source.substring(i + 1, stop + 1))); result.append('"'); i = stop; break; case TokenStream.PRIMARY: ++i; switch(source.charAt(i)) { case TokenStream.TRUE: result.append("true"); break; case TokenStream.FALSE: result.append("false"); break; case TokenStream.NULL: result.append("null"); break; case TokenStream.THIS: result.append("this"); break; case TokenStream.TYPEOF: result.append("typeof"); break; case TokenStream.VOID: result.append("void"); break; case TokenStream.UNDEFINED: result.append("undefined"); break; } break; case TokenStream.FUNCTION: { /* decompile a FUNCTION token as an escape; call * toString on the nth enclosed nested function, * where n is given by the byte that follows. */ ++i; int functionNumber = source.charAt(i); if (f.nestedFunctions == null || functionNumber > f.nestedFunctions.length) { String message; if (f.functionName != null && f.functionName.length() > 0) { message = Context.getMessage2 ("msg.no.function.ref.found.in", new Integer(functionNumber), f.functionName); } else { message = Context.getMessage1 ("msg.no.function.ref.found", new Integer(functionNumber)); } throw Context.reportRuntimeError(message); } decompile_r(f.nestedFunctions[functionNumber], indent, false, false, result); break; } case TokenStream.COMMA: result.append(", "); break; case TokenStream.LC: if (nextIs(source, length, i, TokenStream.EOL)) indent += OFFSET; result.append('{'); break; case TokenStream.RC: /* don't print the closing RC if it closes the * toplevel function and we're called from * decompileFunctionBody. */ if (justbody && toplevel && i + 1 == length) break; if (nextIs(source, length, i, TokenStream.EOL)) indent -= OFFSET; if (nextIs(source, length, i, TokenStream.WHILE) || nextIs(source, length, i, TokenStream.ELSE)) { indent -= OFFSET; result.append("} "); } else result.append('}'); break; case TokenStream.LP: result.append('('); break; case TokenStream.RP: if (nextIs(source, length, i, TokenStream.LC)) result.append(") "); else result.append(')'); break; case TokenStream.LB: result.append('['); break; case TokenStream.RB: result.append(']'); break; case TokenStream.EOL: result.append('\n'); /* add indent if any tokens remain, * less setback if next token is * a label, case or default. */ if (i + 1 < length) { int less = 0; if (nextIs(source, length, i, TokenStream.CASE) || nextIs(source, length, i, TokenStream.DEFAULT)) less = SETBACK; else if (nextIs(source, length, i, TokenStream.RC)) less = OFFSET; /* elaborate check against label... skip past a * following inlined NAME and look for a COLON. * Depends on how NAME is encoded. */ else if (nextIs(source, length, i, TokenStream.NAME)) { int skip = source.charAt(i + 2); if (source.charAt(i + skip + 3) == TokenStream.COLON) less = OFFSET; } for (; less < indent; less++) result.append(' '); } break; case TokenStream.DOT: result.append('.'); break; case TokenStream.NEW: result.append("new "); break; case TokenStream.DELPROP: result.append("delete "); break; case TokenStream.IF: result.append("if "); break; case TokenStream.ELSE: result.append("else "); break; case TokenStream.FOR: result.append("for "); break; case TokenStream.IN: result.append(" in "); break; case TokenStream.WITH: result.append("with "); break; case TokenStream.WHILE: result.append("while "); break; case TokenStream.DO: result.append("do "); break; case TokenStream.TRY: result.append("try "); break; case TokenStream.CATCH: result.append("catch "); break; case TokenStream.FINALLY: result.append("finally "); break; case TokenStream.THROW: result.append("throw "); break; case TokenStream.SWITCH: result.append("switch "); break; case TokenStream.BREAK: if (nextIs(source, length, i, TokenStream.NAME)) result.append("break "); else result.append("break"); break; case TokenStream.CONTINUE: if (nextIs(source, length, i, TokenStream.NAME)) result.append("continue "); else result.append("continue"); break; case TokenStream.CASE: result.append("case "); break; case TokenStream.DEFAULT: result.append("default"); break; case TokenStream.RETURN: if (nextIs(source, length, i, TokenStream.SEMI)) result.append("return"); else result.append("return "); break; case TokenStream.VAR: result.append("var "); break; case TokenStream.SEMI: if (nextIs(source, length, i, TokenStream.EOL)) // statement termination result.append(';'); else // separators in FOR result.append("; "); break; case TokenStream.ASSIGN: ++i; switch(source.charAt(i)) { case TokenStream.NOP: result.append(" = "); break; case TokenStream.ADD: result.append(" += "); break; case TokenStream.SUB: result.append(" -= "); break; case TokenStream.MUL: result.append(" *= "); break; case TokenStream.DIV: result.append(" /= "); break; case TokenStream.MOD: result.append(" %= "); break; case TokenStream.BITOR: result.append(" |= "); break; case TokenStream.BITXOR: result.append(" ^= "); break; case TokenStream.BITAND: result.append(" &= "); break; case TokenStream.LSH: result.append(" <<= "); break; case TokenStream.RSH: result.append(" >>= "); break; case TokenStream.URSH: result.append(" >>>= "); break; } break; case TokenStream.HOOK: result.append(" ? "); break; case TokenStream.OBJLIT: // pun OBJLIT to mean colon in objlit property initialization. // this needs to be distinct from COLON in the general case // to distinguish from the colon in a ternary... which needs // different spacing. result.append(':'); break; case TokenStream.COLON: if (nextIs(source, length, i, TokenStream.EOL)) // it's the end of a label result.append(':'); else // it's the middle part of a ternary result.append(" : "); break; case TokenStream.OR: result.append(" || "); break; case TokenStream.AND: result.append(" && "); break; case TokenStream.BITOR: result.append(" | "); break; case TokenStream.BITXOR: result.append(" ^ "); break; case TokenStream.BITAND: result.append(" & "); break; case TokenStream.EQOP: ++i; switch(source.charAt(i)) { case TokenStream.SHEQ: /* * Emulate the C engine; if we're under version * 1.2, then the == operator behaves like the === * operator (and the source is generated by * decompiling a === opcode), so print the === * operator as ==. */ result.append(f.version == Context.VERSION_1_2 ? " == " : " === "); break; case TokenStream.SHNE: result.append(f.version == Context.VERSION_1_2 ? " != " : " !== "); break; case TokenStream.EQ: result.append(" == "); break; case TokenStream.NE: result.append(" != "); break; } break; case TokenStream.RELOP: ++i; switch(source.charAt(i)) { case TokenStream.LE: result.append(" <= "); break; case TokenStream.LT: result.append(" < "); break; case TokenStream.GE: result.append(" >= "); break; case TokenStream.GT: result.append(" > "); break; case TokenStream.INSTANCEOF: result.append(" instanceof "); break; } break; case TokenStream.SHOP: ++i; switch(source.charAt(i)) { case TokenStream.LSH: result.append(" << "); break; case TokenStream.RSH: result.append(" >> "); break; case TokenStream.URSH: result.append(" >>> "); break; } break; case TokenStream.UNARYOP: ++i; switch(source.charAt(i)) { case TokenStream.TYPEOF: result.append("typeof "); break; case TokenStream.VOID: result.append("void "); break; case TokenStream.NOT: result.append('!'); break; case TokenStream.BITNOT: result.append('~'); break; case TokenStream.ADD: result.append('+'); break; case TokenStream.SUB: result.append('-'); break; } break; case TokenStream.INC: result.append("++"); break; case TokenStream.DEC: result.append("--"); break; case TokenStream.ADD: result.append(" + "); break; case TokenStream.SUB: result.append(" - "); break; case TokenStream.MUL: result.append(" * "); break; case TokenStream.DIV: result.append(" / "); break; case TokenStream.MOD: result.append(" % "); break; default: // If we don't know how to decompile it, raise an exception. throw new RuntimeException(); } ++i; } // add that trailing newline if it's an outermost function. if (toplevel && !justbody) result.append('\n'); }
|
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/b9df1f20fc5192b6e50fca2006608ab88d68161f/NativeFunction.java/clean/src/org/mozilla/javascript/NativeFunction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
443,
11100,
67,
86,
12,
9220,
2083,
284,
16,
509,
3504,
16,
4766,
565,
1250,
28999,
16,
1250,
2537,
3432,
16,
4766,
565,
6674,
563,
13,
565,
288,
3639,
514,
1084,
273,
284,
18,
3168,
31,
3639,
309,
261,
3168,
422,
446,
13,
288,
5411,
309,
16051,
3732,
3432,
13,
288,
7734,
563,
18,
6923,
2932,
915,
315,
1769,
7734,
563,
18,
6923,
12,
74,
18,
588,
25258,
10663,
7734,
563,
18,
6923,
2932,
1435,
18890,
82,
64,
88,
8863,
5411,
289,
5411,
563,
18,
6923,
2932,
63,
13635,
981,
13944,
82,
8863,
5411,
309,
16051,
3732,
3432,
13,
288,
7734,
563,
18,
6923,
2932,
6280,
82,
8863,
5411,
289,
5411,
327,
31,
3639,
289,
3639,
509,
769,
273,
1084,
18,
2469,
5621,
3639,
368,
348,
347,
91,
2430,
316,
1084,
16,
364,
10450,
18,
3639,
368,
487,
3463,
1300,
1149,
3639,
309,
261,
1188,
1830,
13,
288,
5411,
2332,
18,
370,
18,
8222,
2932,
2469,
2773,
397,
769,
1769,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
769,
31,
965,
77,
13,
288,
7734,
368,
3609,
716,
1147,
774,
461,
903,
2321,
3308,
1772,
18,
1188,
26590,
7734,
368,
353,
638,
18,
7734,
514,
1147,
529,
273,
3155,
1228,
18,
2316,
774,
461,
12,
3168,
18,
3001,
861,
12,
77,
10019,
7734,
309,
261,
2316,
529,
422,
446,
13,
10792,
1147,
529,
273,
5238,
10951,
31,
7734,
514,
4627,
273,
1147,
529,
18,
2469,
1435,
405,
2371,
10792,
692,
1548,
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,
443,
11100,
67,
86,
12,
9220,
2083,
284,
16,
509,
3504,
16,
4766,
565,
1250,
28999,
16,
1250,
2537,
3432,
16,
4766,
565,
6674,
563,
13,
565,
288,
3639,
514,
1084,
273,
284,
18,
3168,
31,
3639,
309,
261,
3168,
422,
446,
13,
288,
5411,
309,
16051,
3732,
3432,
13,
288,
7734,
563,
18,
6923,
2932,
915,
315,
1769,
7734,
563,
18,
6923,
12,
74,
18,
588,
25258,
10663,
7734,
563,
18,
6923,
2932,
1435,
18890,
82,
64,
88,
8863,
5411,
289,
5411,
563,
18,
6923,
2932,
63,
13635,
981,
13944,
82,
8863,
5411,
309,
16051,
3732,
3432,
13,
288,
7734,
563,
18,
6923,
2932,
6280,
82,
8863,
5411,
289,
5411,
327,
31,
3639,
289,
2
] |
/* This is going to be ugly for now until I figure it out more completely -- CEF */ String def = getDefined(); if(def == null) return ruby.getNil(); return new RubyString(ruby, getDefined()); }
|
/* * This is going to be ugly for now until I figure it out * more completely -- CEF */ String def = getDefined(ruby, self); if (def == null) { return ruby.getNil(); } return new RubyString(ruby, def); }
|
public RubyObject eval(Ruby ruby, RubyObject self) { // String buf; // String desc = is_defined(self, node.nd_head(), buf); // // if (desc) { // result = rb_str_new2(desc); // } else { // result = Qnil; /* This is going to be ugly for now until I figure it out more completely -- CEF */ String def = getDefined(); if(def == null) return ruby.getNil(); return new RubyString(ruby, getDefined()); }
|
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/6f48980923c4b06bac2890165c858310895f9a14/DefinedNode.java/buggy/org/jruby/nodes/DefinedNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
5302,
12,
54,
10340,
22155,
16,
19817,
921,
365,
13,
288,
3639,
368,
514,
1681,
31,
3639,
368,
514,
3044,
273,
353,
67,
2178,
12,
2890,
16,
756,
18,
4880,
67,
1978,
9334,
1681,
1769,
3639,
368,
3639,
368,
309,
261,
5569,
13,
288,
3639,
368,
377,
563,
273,
7138,
67,
701,
67,
2704,
22,
12,
5569,
1769,
3639,
368,
289,
469,
288,
3639,
368,
377,
563,
273,
2238,
20154,
31,
3639,
1748,
1220,
353,
8554,
358,
506,
26920,
364,
2037,
3180,
467,
7837,
518,
596,
5411,
1898,
14416,
1493,
385,
26897,
225,
202,
5549,
202,
780,
1652,
273,
336,
8116,
5621,
202,
430,
12,
536,
422,
446,
13,
3196,
202,
2463,
22155,
18,
588,
12616,
5621,
202,
2463,
394,
19817,
780,
12,
27768,
16,
336,
8116,
10663,
377,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
5302,
12,
54,
10340,
22155,
16,
19817,
921,
365,
13,
288,
3639,
368,
514,
1681,
31,
3639,
368,
514,
3044,
273,
353,
67,
2178,
12,
2890,
16,
756,
18,
4880,
67,
1978,
9334,
1681,
1769,
3639,
368,
3639,
368,
309,
261,
5569,
13,
288,
3639,
368,
377,
563,
273,
7138,
67,
701,
67,
2704,
22,
12,
5569,
1769,
3639,
368,
289,
469,
288,
3639,
368,
377,
563,
273,
2238,
20154,
31,
3639,
1748,
1220,
353,
8554,
358,
506,
26920,
364,
2037,
3180,
467,
7837,
518,
596,
5411,
1898,
14416,
1493,
385,
26897,
225,
202,
5549,
202,
780,
1652,
273,
336,
8116,
5621,
202,
430,
12,
536,
422,
446,
13,
3196,
202,
2463,
22155,
18,
588,
2
] |
el.setProperty(newValue);
|
newProps.add(newValue);
|
public void replaceValues(TestElement el) throws InvalidVariableException { PropertyIterator iter = el.propertyIterator(); while (iter.hasNext()) { JMeterProperty prop = iter.next(); if (prop instanceof TestElementProperty) { replaceValues((TestElement) prop.getObjectValue()); } else if (prop instanceof CollectionProperty) { replaceValues((CollectionProperty) prop); } else if (prop instanceof MapProperty) { replaceValues((MapProperty) prop); } else if (prop instanceof StringProperty) { JMeterProperty newValue = getNewValue((StringProperty) prop); el.setProperty(newValue); } } }
|
50179 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50179/1699b6b0dddeba2d259d7075d8b7c5a6b68d7300/ValueReplacer.java/buggy/src/core/org/apache/jmeter/engine/util/ValueReplacer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1453,
1972,
12,
4709,
1046,
415,
13,
1216,
1962,
3092,
503,
565,
288,
3639,
4276,
3198,
1400,
273,
415,
18,
4468,
3198,
5621,
3639,
1323,
261,
2165,
18,
5332,
2134,
10756,
3639,
288,
5411,
804,
16935,
1396,
2270,
273,
1400,
18,
4285,
5621,
5411,
309,
261,
5986,
1276,
7766,
1046,
1396,
13,
5411,
288,
7734,
1453,
1972,
12443,
4709,
1046,
13,
2270,
18,
588,
921,
620,
10663,
5411,
289,
5411,
469,
309,
261,
5986,
1276,
2200,
1396,
13,
5411,
288,
7734,
1453,
1972,
12443,
2532,
1396,
13,
2270,
1769,
5411,
289,
5411,
469,
309,
261,
5986,
1276,
1635,
1396,
13,
5411,
288,
7734,
1453,
1972,
12443,
863,
1396,
13,
2270,
1769,
5411,
289,
5411,
469,
309,
261,
5986,
1276,
514,
1396,
13,
5411,
288,
7734,
804,
16935,
1396,
6129,
273,
12654,
620,
12443,
780,
1396,
13,
2270,
1769,
7734,
394,
5047,
18,
1289,
12,
2704,
620,
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,
1453,
1972,
12,
4709,
1046,
415,
13,
1216,
1962,
3092,
503,
565,
288,
3639,
4276,
3198,
1400,
273,
415,
18,
4468,
3198,
5621,
3639,
1323,
261,
2165,
18,
5332,
2134,
10756,
3639,
288,
5411,
804,
16935,
1396,
2270,
273,
1400,
18,
4285,
5621,
5411,
309,
261,
5986,
1276,
7766,
1046,
1396,
13,
5411,
288,
7734,
1453,
1972,
12443,
4709,
1046,
13,
2270,
18,
588,
921,
620,
10663,
5411,
289,
5411,
469,
309,
261,
5986,
1276,
2200,
1396,
13,
5411,
288,
7734,
1453,
1972,
12443,
2532,
1396,
13,
2270,
1769,
5411,
289,
5411,
469,
309,
261,
5986,
1276,
1635,
1396,
13,
5411,
288,
7734,
1453,
1972,
12443,
863,
1396,
13,
2270,
1769,
5411,
289,
5411,
469,
309,
2
] |
} else if (n == lattice.getTerminalNode()) {
|
} else if (n == lattice.getTerminalNode()) {
|
protected void removeHangingNodes() { for (Iterator i = lattice.getCopyOfNodes().iterator(); i.hasNext();) { Node n = (Node) i.next(); if (n == lattice.getInitialNode()) { } else if (n == lattice.getTerminalNode()) { } else { if (n.getToEdges().size() == 0 || n.getFromEdges().size() == 0) { removedNodes.add(n); lattice.removeNodeAndEdges(n); removeHangingNodes(); return; } } } }
|
48839 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48839/8d147af0bf72c96a0a6e8a3bd99e0057deb9183d/LatticeOptimizer.java/buggy/sphinx4/edu/cmu/sphinx/result/LatticeOptimizer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1206,
44,
18183,
3205,
1435,
288,
3639,
364,
261,
3198,
277,
273,
16690,
18,
588,
2951,
951,
3205,
7675,
9838,
5621,
277,
18,
5332,
2134,
5621,
13,
288,
5411,
2029,
290,
273,
261,
907,
13,
277,
18,
4285,
5621,
5411,
309,
261,
82,
422,
16690,
18,
588,
4435,
907,
10756,
288,
5411,
289,
469,
309,
261,
82,
422,
16690,
18,
588,
11336,
907,
10756,
288,
5411,
289,
469,
288,
7734,
309,
261,
82,
18,
588,
774,
10697,
7675,
1467,
1435,
422,
374,
13491,
747,
290,
18,
588,
1265,
10697,
7675,
1467,
1435,
422,
374,
13,
288,
10792,
3723,
3205,
18,
1289,
12,
82,
1769,
10792,
16690,
18,
4479,
907,
1876,
10697,
12,
82,
1769,
10792,
1206,
44,
18183,
3205,
5621,
10792,
327,
31,
7734,
289,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1206,
44,
18183,
3205,
1435,
288,
3639,
364,
261,
3198,
277,
273,
16690,
18,
588,
2951,
951,
3205,
7675,
9838,
5621,
277,
18,
5332,
2134,
5621,
13,
288,
5411,
2029,
290,
273,
261,
907,
13,
277,
18,
4285,
5621,
5411,
309,
261,
82,
422,
16690,
18,
588,
4435,
907,
10756,
288,
5411,
289,
469,
309,
261,
82,
422,
16690,
18,
588,
11336,
907,
10756,
288,
5411,
289,
469,
288,
7734,
309,
261,
82,
18,
588,
774,
10697,
7675,
1467,
1435,
422,
374,
13491,
747,
290,
18,
588,
1265,
10697,
7675,
1467,
1435,
422,
374,
13,
288,
10792,
3723,
3205,
18,
1289,
12,
82,
1769,
10792,
16690,
18,
4479,
907,
1876,
10697,
12,
82,
1769,
10792,
1206,
2
] |
if(log.isInfoEnabled()) log.info("sending diag response to " + sender + ":" + port);
|
if(log.isDebugEnabled()) log.debug("sending diag response to " + sender + ":" + port);
|
void handleDiagnosticProbe(InetAddress sender, int port) { try { byte[] diag_rsp=getDiagResponse().getBytes(); DatagramPacket rsp=new DatagramPacket(diag_rsp, 0, diag_rsp.length, sender, port); if(log.isInfoEnabled()) log.info("sending diag response to " + sender + ":" + port); sock.send(rsp); } catch(Throwable t) { if(log.isErrorEnabled()) log.error("failed sending diag rsp to " + sender + ":" + port + ", exception=" + t); } }
|
3550 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3550/f4d48c5d12530ffb09ab46034b71d9594b0f1287/UDP.java/buggy/src/org/jgroups/protocols/UDP.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1640,
26836,
21042,
12,
382,
278,
1887,
5793,
16,
509,
1756,
13,
288,
3639,
775,
288,
5411,
1160,
8526,
1377,
6643,
67,
86,
1752,
33,
588,
14058,
1064,
7675,
588,
2160,
5621,
5411,
6168,
17049,
6667,
12049,
33,
2704,
6168,
17049,
6667,
12,
12264,
67,
86,
1752,
16,
374,
16,
6643,
67,
86,
1752,
18,
2469,
16,
5793,
16,
1756,
1769,
7734,
309,
12,
1330,
18,
291,
2829,
1526,
10756,
613,
18,
4148,
2932,
87,
2846,
6643,
766,
358,
315,
397,
5793,
397,
6153,
397,
1756,
1769,
5411,
7313,
18,
4661,
12,
86,
1752,
1769,
3639,
289,
3639,
1044,
12,
15155,
268,
13,
288,
5411,
309,
12,
1330,
18,
291,
668,
1526,
10756,
613,
18,
1636,
2932,
7307,
5431,
6643,
12049,
358,
315,
397,
5793,
397,
6153,
397,
1756,
397,
4766,
15604,
3104,
1520,
1546,
397,
268,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
918,
1640,
26836,
21042,
12,
382,
278,
1887,
5793,
16,
509,
1756,
13,
288,
3639,
775,
288,
5411,
1160,
8526,
1377,
6643,
67,
86,
1752,
33,
588,
14058,
1064,
7675,
588,
2160,
5621,
5411,
6168,
17049,
6667,
12049,
33,
2704,
6168,
17049,
6667,
12,
12264,
67,
86,
1752,
16,
374,
16,
6643,
67,
86,
1752,
18,
2469,
16,
5793,
16,
1756,
1769,
7734,
309,
12,
1330,
18,
291,
2829,
1526,
10756,
613,
18,
4148,
2932,
87,
2846,
6643,
766,
358,
315,
397,
5793,
397,
6153,
397,
1756,
1769,
5411,
7313,
18,
4661,
12,
86,
1752,
1769,
3639,
289,
3639,
1044,
12,
15155,
268,
13,
288,
5411,
309,
12,
1330,
18,
291,
668,
1526,
10756,
613,
18,
1636,
2932,
2
] |
break;
|
int uri = fElemMap[elemIndex].uri; if (uri == -1 || uri == curElem.uri) { break; }
|
public int validateContent(QName children[], int offset, int length) throws CMException { if (DEBUG_VALIDATE_CONTENT) System.out.println("DFAContentModel#validateContent"); // // A DFA content model must *always* have at least 1 child // so a failure is given if no children present. // // Defect 782: This is an incorrect statement because a DFA // content model is also used for constructions such as: // // (Optional*,NotRequired?) // // where a perfectly valid content would be NO CHILDREN. // Therefore, if there are no children, we must check to // see if the CMNODE_EOC marker is a valid start state! -Ac // if (length == 0) { if (DEBUG_VALIDATE_CONTENT) { System.out.println("!!! no children"); System.out.println("elemMap="+fElemMap); for (int i = 0; i < fElemMap.length; i++) { int uriIndex = fElemMap[i].uri; int localpartIndex = fElemMap[i].localpart; /* System.out.println("fElemMap["+i+"]="+uriIndex+","+ localpartIndex+" ("+ fStringPool.toString(uriIndex)+", "+ fStringPool.toString(localpartIndex)+ ')'); */ } System.out.println("EOCIndex="+fEOCIndex); } return fEmptyContentIsValid ? -1 : 0; } // if child count == 0 // // Lets loop through the children in the array and move our way // through the states. Note that we use the fElemMap array to map // an element index to a state index. // int curState = 0; for (int childIndex = 0; childIndex < length; childIndex++) { // Get the current element index out final QName curElem = children[offset + childIndex]; // Look up this child in our element map int elemIndex = 0; for (; elemIndex < fElemMapSize; elemIndex++) { int type = fElemMapType[elemIndex]; if (type == XMLContentSpec.CONTENTSPECNODE_LEAF) { if (isEqual(fElemMap[elemIndex], curElem)) break; } else if (type == XMLContentSpec.CONTENTSPECNODE_ANY) { break; } else if (type == XMLContentSpec.CONTENTSPECNODE_ANY_LOCAL) { if (fElemMap[elemIndex].uri == -1) { break; } } else if (type == XMLContentSpec.CONTENTSPECNODE_ANY_OTHER) { if (fElemMap[elemIndex].uri != curElem.uri) { break; } } } // If we didn't find it, then obviously not valid if (elemIndex == fElemMapSize) { if (DEBUG_VALIDATE_CONTENT) { System.out.println("!!! didn't find it"); System.out.println("curElem : " +curElem ); for (int i=0; i<fElemMapSize; i++) { System.out.println("fElemMap["+i+"] = " +fElemMap[i] ); } } return childIndex; } // // Look up the next state for this input symbol when in the // current state. // curState = fTransTable[curState][elemIndex]; // If its not a legal transition, then invalid if (curState == -1) { if (DEBUG_VALIDATE_CONTENT) System.out.println("!!! not a legal transition"); return childIndex; } } // // We transitioned all the way through the input list. However, that // does not mean that we ended in a final state. So check whether // our ending state is a final state. // if (DEBUG_VALIDATE_CONTENT) System.out.println("curState="+curState+", childCount="+length); if (!fFinalStateFlags[curState]) return length; // success! return -1; }
|
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/d293ecd69af743e0fef16365054f8e7b3f23eddb/DFAContentModel.java/buggy/src/org/apache/xerces/validators/common/DFAContentModel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
1954,
1350,
12,
13688,
2325,
63,
6487,
509,
1384,
16,
509,
769,
13,
1216,
15871,
503,
288,
3639,
309,
261,
9394,
67,
14687,
67,
9689,
13,
2398,
2332,
18,
659,
18,
8222,
2932,
40,
2046,
1350,
1488,
7,
5662,
1350,
8863,
3639,
368,
3639,
368,
432,
463,
2046,
913,
938,
1297,
380,
17737,
14,
1240,
622,
4520,
404,
1151,
3639,
368,
1427,
279,
5166,
353,
864,
309,
1158,
2325,
3430,
18,
3639,
368,
540,
368,
10922,
386,
2371,
11149,
30,
1220,
353,
392,
11332,
3021,
2724,
279,
463,
2046,
3639,
368,
913,
938,
353,
2546,
1399,
364,
16171,
87,
4123,
487,
30,
3639,
368,
3639,
368,
377,
261,
6542,
14,
16,
1248,
3705,
8535,
3639,
368,
3639,
368,
1625,
279,
24746,
715,
923,
913,
4102,
506,
3741,
6469,
11382,
24296,
18,
3639,
368,
17189,
16,
309,
1915,
854,
1158,
2325,
16,
732,
1297,
866,
358,
3639,
368,
2621,
309,
326,
15871,
8744,
67,
41,
10809,
5373,
353,
279,
923,
787,
919,
5,
300,
9988,
3639,
368,
3639,
309,
261,
2469,
422,
374,
13,
288,
5411,
309,
261,
9394,
67,
14687,
67,
9689,
13,
288,
7734,
2332,
18,
659,
18,
8222,
2932,
25885,
1158,
2325,
8863,
7734,
2332,
18,
659,
18,
8222,
2932,
10037,
863,
1546,
15,
74,
7498,
863,
1769,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
411,
284,
7498,
863,
18,
2469,
31,
277,
27245,
288,
10792,
509,
2003,
1016,
273,
284,
7498,
863,
63,
77,
8009,
1650,
31,
10792,
509,
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,
509,
1954,
1350,
12,
13688,
2325,
63,
6487,
509,
1384,
16,
509,
769,
13,
1216,
15871,
503,
288,
3639,
309,
261,
9394,
67,
14687,
67,
9689,
13,
2398,
2332,
18,
659,
18,
8222,
2932,
40,
2046,
1350,
1488,
7,
5662,
1350,
8863,
3639,
368,
3639,
368,
432,
463,
2046,
913,
938,
1297,
380,
17737,
14,
1240,
622,
4520,
404,
1151,
3639,
368,
1427,
279,
5166,
353,
864,
309,
1158,
2325,
3430,
18,
3639,
368,
540,
368,
10922,
386,
2371,
11149,
30,
1220,
353,
392,
11332,
3021,
2724,
279,
463,
2046,
3639,
368,
913,
938,
353,
2546,
1399,
364,
16171,
87,
4123,
487,
30,
3639,
368,
3639,
368,
377,
261,
6542,
14,
16,
1248,
3705,
8535,
3639,
368,
2
] |
train = new TrainModel(train, new ScheduleIterator(scheduleNumber, 0), now);
|
train = new TrainModel(train, new ScheduleIterator(scheduleKey, 0), now);
|
public void buildTrain(int engineTypeNumber, int[] wagons, Point p, FreerailsPrincipal tp) { FreerailsTile tile = (FreerailsTile)world.getTile(p.x, p.y); if (null != tile.getTrackTile()) { //Add train to train list. CargoBundle cb = new CargoBundleImpl(); int cargoBundleNumber = world.size(KEY.CARGO_BUNDLES); Move addCargoBundleMove = new AddCargoBundleMove(cargoBundleNumber, cb); int scheduleNumber = world.size(KEY.TRAIN_SCHEDULES); GameTime now = (GameTime) world.get(ITEM.TIME, Player.AUTHORITATIVE); TrainModel train = new TrainModel(engineTypeNumber, wagons, cargoBundleNumber, now); EngineType engineType = (EngineType)world.get(KEY.ENGINE_TYPES, engineTypeNumber); int trainNumber = world.size(KEY.TRAINS, tp); WorldIterator wi = new NonNullElements(KEY.STATIONS, world, tp); MutableSchedule s = new MutableSchedule(); /* * Add upto 4 stations to the schedule. Stations are selected from * those owned by the train owner. */ while (wi.next() && s.getNumOrders() < 5) { TrainOrdersModel orders = new TrainOrdersModel (new ObjectKey(KEY.STATIONS, tp, wi.getIndex()), null, false, true, true); s.addOrder(orders); } train = new TrainModel(train, new ScheduleIterator(scheduleNumber, 0), now); ImmutableSchedule is = s.toImmutableSchedule(); AddTrainMove addTrainMove = AddTrainMove.generateMove(world, trainNumber, train, engineType.getPrice(), is, tp); Move compositeMove = new CompositeMove(new Move[] { addCargoBundleMove, addTrainMove }); moveReceiver.processMove(compositeMove); } else { throw new IllegalArgumentException("No track here (" + p.x + ", " + p.y + ") so cannot build train"); } }
|
9170 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9170/0f0d2fc188b00c01c5e02e0adc969b4c7ad83bd9/TrainBuilder.java/buggy/railz/src/org/railz/server/TrainBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1361,
23419,
12,
474,
4073,
559,
1854,
16,
509,
8526,
341,
346,
7008,
16,
4686,
293,
16,
202,
565,
478,
266,
264,
15208,
9155,
8071,
13,
288,
3639,
478,
266,
264,
15208,
9337,
4769,
273,
261,
42,
266,
264,
15208,
9337,
13,
18179,
18,
588,
9337,
12,
84,
18,
92,
16,
293,
18,
93,
1769,
3639,
309,
261,
2011,
480,
4769,
18,
588,
4402,
9337,
10756,
288,
5411,
368,
986,
4691,
358,
4691,
666,
18,
5411,
385,
26999,
3405,
2875,
273,
394,
385,
26999,
3405,
2828,
5621,
5411,
509,
276,
26999,
3405,
1854,
273,
9117,
18,
1467,
12,
3297,
18,
39,
10973,
51,
67,
38,
5240,
11386,
1769,
5411,
9933,
527,
39,
26999,
3405,
7607,
273,
394,
1436,
39,
26999,
3405,
7607,
12,
71,
26999,
3405,
1854,
16,
10792,
2875,
1769,
5411,
509,
4788,
1854,
273,
9117,
18,
1467,
12,
3297,
18,
20060,
706,
67,
55,
27395,
55,
1769,
202,
565,
14121,
950,
2037,
273,
261,
12496,
950,
13,
9117,
18,
588,
12,
12674,
18,
4684,
16,
1082,
565,
19185,
18,
7131,
916,
1285,
12992,
1769,
5411,
2197,
267,
1488,
4691,
273,
394,
2197,
267,
1488,
12,
8944,
559,
1854,
16,
341,
346,
7008,
16,
10792,
276,
26999,
3405,
1854,
16,
2037,
1769,
5411,
10507,
559,
4073,
559,
273,
261,
4410,
559,
13,
18179,
18,
588,
12,
3297,
18,
28980,
67,
10564,
16,
10792,
4073,
559,
1854,
1769,
5411,
509,
4691,
1854,
273,
9117,
18,
1467,
12,
3297,
18,
20060,
706,
55,
16,
8071,
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,
1361,
23419,
12,
474,
4073,
559,
1854,
16,
509,
8526,
341,
346,
7008,
16,
4686,
293,
16,
202,
565,
478,
266,
264,
15208,
9155,
8071,
13,
288,
3639,
478,
266,
264,
15208,
9337,
4769,
273,
261,
42,
266,
264,
15208,
9337,
13,
18179,
18,
588,
9337,
12,
84,
18,
92,
16,
293,
18,
93,
1769,
3639,
309,
261,
2011,
480,
4769,
18,
588,
4402,
9337,
10756,
288,
5411,
368,
986,
4691,
358,
4691,
666,
18,
5411,
385,
26999,
3405,
2875,
273,
394,
385,
26999,
3405,
2828,
5621,
5411,
509,
276,
26999,
3405,
1854,
273,
9117,
18,
1467,
12,
3297,
18,
39,
10973,
51,
67,
38,
5240,
11386,
1769,
5411,
9933,
527,
39,
26999,
3405,
7607,
273,
2
] |
this.m_charToByteConverter = null;
|
private void resetToStream() { this.m_canConvertMeth = null; this.m_cdataStartCalled = false; /* The stream is being reset. It is one of * ToXMLStream, ToHTMLStream ... and this type can't be changed * so neither should m_charInfo which is associated with the * type of Stream. Just leave m_charInfo as-is for the next re-use. * */ // this.m_charInfo = null; // don't set to null this.m_charToByteConverter = null; this.m_disableOutputEscapingStates.clear(); this.m_escaping = true; // Leave m_format alone for now - Brian M. // this.m_format = null; this.m_inDoctype = false; this.m_ispreserve = false; this.m_ispreserve = false; this.m_isprevtext = false; this.m_isUTF8 = false; // ?? used anywhere ?? this.m_maxCharacter = Encodings.getLastPrintable(); this.m_preserves.clear(); this.m_shouldFlush = true; this.m_spaceBeforeClose = false; this.m_startNewLine = false; this.m_triedToGetConverter = false; this.m_lineSepUse = true; // DON'T SET THE WRITER TO NULL, IT MAY BE REUSED !! // this.m_writer = null; this.m_expandDTDEntities = true; }
|
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/487b3b254394e1bdcb1c753d7caa0066fecdd4a0/ToStream.java/clean/src/org/apache/xml/serializer/ToStream.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2715,
774,
1228,
1435,
565,
288,
540,
333,
18,
81,
67,
4169,
2723,
49,
546,
273,
446,
31,
540,
333,
18,
81,
67,
71,
892,
1685,
8185,
273,
629,
31,
540,
1748,
1021,
1407,
353,
3832,
2715,
18,
2597,
353,
1245,
434,
1850,
380,
2974,
4201,
1228,
16,
2974,
4870,
1228,
1372,
471,
333,
618,
848,
1404,
506,
3550,
1850,
380,
1427,
15826,
1410,
312,
67,
3001,
966,
1492,
353,
3627,
598,
326,
1850,
380,
618,
434,
3961,
18,
12526,
8851,
312,
67,
3001,
966,
487,
17,
291,
364,
326,
1024,
283,
17,
1202,
18,
1850,
380,
6647,
1195,
540,
368,
333,
18,
81,
67,
3001,
966,
273,
446,
31,
368,
2727,
1404,
444,
358,
446,
10402,
333,
18,
81,
67,
8394,
1447,
6412,
24447,
7629,
18,
8507,
5621,
5375,
333,
18,
81,
67,
742,
24447,
273,
638,
31,
540,
368,
21131,
312,
67,
2139,
24068,
364,
2037,
300,
605,
566,
304,
490,
18,
540,
368,
333,
18,
81,
67,
2139,
273,
446,
31,
540,
333,
18,
81,
67,
267,
3244,
12387,
273,
629,
31,
540,
333,
18,
81,
67,
291,
27297,
273,
629,
31,
540,
333,
18,
81,
67,
291,
27297,
273,
629,
31,
540,
333,
18,
81,
67,
291,
10001,
955,
273,
629,
31,
540,
333,
18,
81,
67,
291,
5159,
28,
273,
629,
31,
368,
225,
5317,
1399,
25651,
5317,
540,
333,
18,
81,
67,
1896,
7069,
273,
1374,
1559,
899,
18,
588,
3024,
5108,
429,
5621,
540,
333,
18,
81,
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,
2715,
774,
1228,
1435,
565,
288,
540,
333,
18,
81,
67,
4169,
2723,
49,
546,
273,
446,
31,
540,
333,
18,
81,
67,
71,
892,
1685,
8185,
273,
629,
31,
540,
1748,
1021,
1407,
353,
3832,
2715,
18,
2597,
353,
1245,
434,
1850,
380,
2974,
4201,
1228,
16,
2974,
4870,
1228,
1372,
471,
333,
618,
848,
1404,
506,
3550,
1850,
380,
1427,
15826,
1410,
312,
67,
3001,
966,
1492,
353,
3627,
598,
326,
1850,
380,
618,
434,
3961,
18,
12526,
8851,
312,
67,
3001,
966,
487,
17,
291,
364,
326,
1024,
283,
17,
1202,
18,
1850,
380,
6647,
1195,
540,
368,
333,
18,
81,
67,
3001,
966,
273,
446,
31,
368,
2727,
1404,
444,
358,
446,
2
] |
|
if ( sNewSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) )
|
if ( sNewSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) )
|
private Chart getConvertedChart( Chart currentChart, String sNewSubType, Orientation newOrientation, String sNewDimension ) { Chart helperModel = (Chart) EcoreUtil.copy( currentChart ); ChartDimension oldDimension = currentChart.getDimension( ); if ( ( currentChart instanceof ChartWithAxes ) ) { if ( currentChart.getType( ).equals( TYPE_LITERAL ) ) // Original // chart is // of this type // (AreaChart) { if ( !currentChart.getSubType( ).equals( sNewSubType ) ) // Original // chart // is // of // the // required // subtype { currentChart.setSubType( sNewSubType ); EList axes = ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ); for ( int i = 0; i < axes.size( ); i++ ) { if ( sNewSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) { ( (Axis) axes.get( i ) ).setPercent( true ); } else { ( (Axis) axes.get( i ) ).setPercent( false ); } EList seriesdefinitions = ( (Axis) axes.get( i ) ).getSeriesDefinitions( ); for ( int j = 0; j < seriesdefinitions.size( ); j++ ) { Series series = ( (SeriesDefinition) seriesdefinitions.get( j ) ).getDesignTimeSeries( ); if ( ( sNewSubType.equalsIgnoreCase( STACKED_SUBTYPE_LITERAL ) || sNewSubType .equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) ) { series.setStacked( true ); } else { series.setStacked( false ); } } } } } else if ( currentChart.getType( ).equals( BarChart.TYPE_LITERAL ) || currentChart.getType( ).equals( LineChart.TYPE_LITERAL ) || currentChart.getType( ).equals( StockChart.TYPE_LITERAL ) || currentChart.getType( ) .equals( ScatterChart.TYPE_LITERAL ) ) { if ( !currentChart.getType( ).equals( BarChart.TYPE_LITERAL ) ) { currentChart.setSampleData( getConvertedSampleData( currentChart.getSampleData( ) ) ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).setType( AxisType.TEXT_LITERAL ); } currentChart.setType( TYPE_LITERAL ); currentChart.setSubType( sNewSubType ); currentChart.getTitle( ).getLabel( ).getCaption( ).setValue( CHART_TITLE ); EList axes = ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ); for ( int i = 0; i < axes.size( ); i++ ) { if ( sNewSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) { ( (Axis) axes.get( i ) ).setPercent( true ); } else { ( (Axis) axes.get( i ) ).setPercent( false ); } EList seriesdefinitions = ( (Axis) axes.get( i ) ).getSeriesDefinitions( ); for ( int j = 0; j < seriesdefinitions.size( ); j++ ) { Series series = ( (SeriesDefinition) seriesdefinitions.get( j ) ).getDesignTimeSeries( ); series = getConvertedSeries( series ); if ( ( sNewSubType.equalsIgnoreCase( STACKED_SUBTYPE_LITERAL ) || sNewSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) ) { series.setStacked( true ); } else { series.setStacked( false ); } ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .clear( ); ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .add( series ); } } } else { return null; } ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setCategoryAxis( true ); } else { // Create a new instance of the correct type and set initial // properties currentChart = ChartWithAxesImpl.create( ); currentChart.setType( TYPE_LITERAL ); currentChart.setSubType( sNewSubType ); ( (ChartWithAxes) currentChart ).setOrientation( newOrientation ); currentChart.setDimension( getDimensionFor( sNewDimension ) ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setOrientation( Orientation.HORIZONTAL_LITERAL ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setType( AxisType.TEXT_LITERAL ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setCategoryAxis( true ); ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).setOrientation( Orientation.VERTICAL_LITERAL ); ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).setType( AxisType.LINEAR_LITERAL ); // Copy generic chart properties from the old chart currentChart.setBlock( helperModel.getBlock( ) ); currentChart.setDescription( helperModel.getDescription( ) ); currentChart.setGridColumnCount( helperModel.getGridColumnCount( ) ); currentChart.setSampleData( helperModel.getSampleData( ) ); currentChart.setScript( helperModel.getScript( ) ); currentChart.setSeriesThickness( helperModel.getSeriesThickness( ) ); currentChart.setUnits( helperModel.getUnits( ) ); currentChart.getInteractivity().setEnable( helperModel.getInteractivity().isEnable()); currentChart.getInteractivity().setLegendBehavior( helperModel.getInteractivity().getLegendBehavior()); if ( helperModel.getType( ).equals( PieChart.TYPE_LITERAL ) || helperModel.getType( ).equals( MeterChart.TYPE_LITERAL ) ) { // Clear existing series definitions ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).getSeriesDefinitions( ) .clear( ); // Copy base series definitions ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).getSeriesDefinitions( ) .add( ( (ChartWithoutAxes) helperModel ).getSeriesDefinitions( ) .get( 0 ) ); // Clear existing series definitions ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).getSeriesDefinitions( ) .clear( ); // Copy orthogonal series definitions ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).getSeriesDefinitions( ) .addAll( ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getSeriesDefinitions( ) ); // Update the base series Series series = ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getDesignTimeSeries( ); series = getConvertedSeries( series ); // Clear existing series ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getSeries( ) .clear( ); // Add converted series ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getSeries( ) .add( series ); // Update the orthogonal series EList seriesdefinitions = ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).getSeriesDefinitions( ); for ( int j = 0; j < seriesdefinitions.size( ); j++ ) { series = ( (SeriesDefinition) seriesdefinitions.get( j ) ).getDesignTimeSeries( ); series = getConvertedSeries( series ); if ( ( sNewSubType.equalsIgnoreCase( STACKED_SUBTYPE_LITERAL ) || sNewSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) ) { series.setStacked( true ); } else { series.setStacked( false ); } // Clear any existing series ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .clear( ); // Add the new series ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .add( series ); } } else { return null; } currentChart.getLegend( ).setItemType( LegendItemType.SERIES_LITERAL ); currentChart.getTitle( ).getLabel( ).getCaption( ).setValue( CHART_TITLE ); } if ( currentChart instanceof ChartWithAxes && !( (ChartWithAxes) currentChart ).getOrientation( ) .equals( newOrientation ) ) { ( (ChartWithAxes) currentChart ).setOrientation( newOrientation ); } if ( !currentChart.getDimension( ) .equals( getDimensionFor( sNewDimension ) ) ) { currentChart.setDimension( getDimensionFor( sNewDimension ) ); } if ( sNewDimension.equals( THREE_DIMENSION_TYPE ) && getDimensionFor( sNewDimension ) != oldDimension ) { ( (ChartWithAxes) currentChart ).setRotation( Rotation3DImpl.create( new Angle3D[]{ Angle3DImpl.create( -20, 45, 0 ) } ) ); ( (ChartWithAxes) currentChart ).setUnitSpacing( 50 ); ( (ChartWithAxes) currentChart ).getPrimaryBaseAxes( )[0].getAncillaryAxes( ) .clear( ); Axis zAxisAncillary = AxisImpl.create( Axis.ANCILLARY_BASE ); zAxisAncillary.setTitlePosition( Position.BELOW_LITERAL ); zAxisAncillary.getTitle( ) .getCaption( ) .setValue( Messages.getString( "ChartWithAxesImpl.Z_Axis.title" ) ); //$NON-NLS-1$ zAxisAncillary.getTitle( ).setVisible( true ); zAxisAncillary.setPrimaryAxis( true ); zAxisAncillary.setLabelPosition( Position.BELOW_LITERAL ); zAxisAncillary.setOrientation( Orientation.HORIZONTAL_LITERAL ); zAxisAncillary.getOrigin( ).setType( IntersectionType.MIN_LITERAL ); zAxisAncillary.getOrigin( ) .setValue( NumberDataElementImpl.create( 0 ) ); zAxisAncillary.getTitle( ).setVisible( false ); zAxisAncillary.setType( AxisType.TEXT_LITERAL ); ( (ChartWithAxes) currentChart ).getPrimaryBaseAxes( )[0].getAncillaryAxes( ) .add( zAxisAncillary ); SeriesDefinition sdZ = SeriesDefinitionImpl.create( ); sdZ.getSeriesPalette( ).update( 0 ); sdZ.getSeries( ).add( SeriesImpl.create( ) ); zAxisAncillary.getSeriesDefinitions( ).add( sdZ ); if ( currentChart.getSampleData( ) .getAncillarySampleData( ) .isEmpty( ) ) { BaseSampleData sdAncillary = DataFactory.eINSTANCE.createBaseSampleData( ); sdAncillary.setDataSetRepresentation( "Series 1" ); //$NON-NLS-1$ currentChart.getSampleData( ) .getAncillarySampleData( ) .add( sdAncillary ); } } return currentChart; }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/182827fe6ad4e223adc4bf4bcf44d469847b773d/AreaChart.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/AreaChart.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
14804,
336,
22063,
7984,
12,
14804,
783,
7984,
16,
514,
272,
1908,
30511,
16,
1082,
202,
14097,
394,
14097,
16,
514,
272,
1908,
8611,
262,
202,
95,
202,
202,
7984,
4222,
1488,
273,
261,
7984,
13,
512,
3644,
1304,
18,
3530,
12,
783,
7984,
11272,
202,
202,
7984,
8611,
1592,
8611,
273,
783,
7984,
18,
588,
8611,
12,
11272,
202,
202,
430,
261,
261,
783,
7984,
1276,
14804,
1190,
26494,
262,
262,
202,
202,
95,
1082,
202,
430,
261,
783,
7984,
18,
588,
559,
12,
262,
18,
14963,
12,
3463,
67,
23225,
262,
262,
368,
19225,
1082,
202,
759,
4980,
353,
1082,
202,
759,
434,
333,
618,
1082,
202,
759,
261,
5484,
7984,
13,
1082,
202,
95,
9506,
202,
430,
261,
401,
2972,
7984,
18,
588,
30511,
12,
262,
18,
14963,
12,
272,
1908,
30511,
262,
262,
368,
19225,
9506,
202,
759,
4980,
9506,
202,
759,
353,
9506,
202,
759,
434,
9506,
202,
759,
326,
9506,
202,
759,
1931,
9506,
202,
759,
12308,
9506,
202,
95,
6862,
202,
2972,
7984,
18,
542,
30511,
12,
272,
1908,
30511,
11272,
6862,
202,
41,
682,
6515,
273,
261,
261,
6558,
13,
261,
261,
7984,
1190,
26494,
13,
783,
7984,
262,
18,
588,
26494,
12,
262,
6862,
1082,
202,
18,
588,
12,
374,
262,
262,
18,
588,
19233,
26494,
12,
11272,
6862,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
6515,
18,
1467,
12,
11272,
277,
9904,
262,
6862,
202,
95,
25083,
202,
430,
261,
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,
225,
202,
1152,
14804,
336,
22063,
7984,
12,
14804,
783,
7984,
16,
514,
272,
1908,
30511,
16,
1082,
202,
14097,
394,
14097,
16,
514,
272,
1908,
8611,
262,
202,
95,
202,
202,
7984,
4222,
1488,
273,
261,
7984,
13,
512,
3644,
1304,
18,
3530,
12,
783,
7984,
11272,
202,
202,
7984,
8611,
1592,
8611,
273,
783,
7984,
18,
588,
8611,
12,
11272,
202,
202,
430,
261,
261,
783,
7984,
1276,
14804,
1190,
26494,
262,
262,
202,
202,
95,
1082,
202,
430,
261,
783,
7984,
18,
588,
559,
12,
262,
18,
14963,
12,
3463,
67,
23225,
262,
262,
368,
19225,
1082,
202,
759,
4980,
353,
1082,
202,
759,
434,
333,
618,
1082,
202,
759,
261,
5484,
7984,
13,
1082,
202,
2
] |
private boolean isEligibleForPhysical(Entity entity) { boolean canHit = false; boolean friendlyFire = game.getOptions().booleanOption("friendly_fire"); // only mechs have physical attacks (except tank charges) if (!(entity instanceof Mech)) { return false; } // if you're charging or finding a club, it's already declared if (entity.isUnjammingRAC() || entity.isCharging() || entity.isMakingDfa() || entity.isFindingClub() || entity.isSpotting()) { return false; } // check game options if (!game.getOptions().booleanOption("skip_ineligable_physical")) { return true; } // dead mek walking if (!entity.isActive()) { return false; } // Try to find a valid entity target. Enumeration e = game.getEntities(); while ( !canHit && e.hasMoreElements() ) { Entity target = (Entity)e.nextElement(); // don't shoot at friendlies unless you are into that sort of thing // and do not shoot yourself even then if (!(entity.isEnemyOf(target) || (friendlyFire && entity.getId() != target.getId() ))) { continue; } // No physical attack works at distances > 1. if ( target.getPosition() == null || entity.getPosition().distance(target.getPosition()) > 1 ) { continue; } canHit |= canPhysicalTarget(game, entity.getId(), target); } // If there are no valid Entity targets, check for add valid buildings. Enumeration bldgs = game.board.getBuildings(); while ( !canHit && bldgs.hasMoreElements() ) { final Building bldg = (Building) bldgs.nextElement(); // Walk through the hexes of the building. Enumeration hexes = bldg.getCoords(); while ( !canHit && hexes.hasMoreElements() ) { final Coords coords = (Coords) hexes.nextElement(); // No physical attack works at distances > 1. if ( entity.getPosition().distance(coords) > 1 ) { continue; } // Can the entity target *this* hex of the building? final BuildingTarget target = new BuildingTarget( coords, game.board, false ); canHit |= canPhysicalTarget(game, entity.getId(), target); } // Check the next hex of the building } // Check the next building return canHit; }
|
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/1ecffa782704db8af19ae40d43a2c0659881281b/Server.java/buggy/megamek/src/megamek/server/Server.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
353,
4958,
16057,
1290,
18136,
12,
1943,
1522,
13,
288,
3639,
1250,
848,
13616,
273,
629,
31,
3639,
1250,
13118,
9723,
273,
7920,
18,
588,
1320,
7675,
6494,
1895,
2932,
29111,
67,
12179,
8863,
7734,
368,
1338,
1791,
343,
87,
1240,
11640,
28444,
261,
14137,
268,
2304,
1149,
2852,
13,
3639,
309,
16051,
12,
1096,
1276,
7499,
343,
3719,
288,
5411,
327,
629,
31,
3639,
289,
7734,
368,
309,
1846,
4565,
1149,
1998,
578,
13727,
279,
927,
373,
16,
518,
1807,
1818,
7886,
3639,
309,
261,
1096,
18,
291,
984,
78,
301,
11987,
54,
2226,
1435,
5411,
747,
1522,
18,
291,
2156,
1998,
1435,
5411,
747,
1522,
18,
291,
49,
6159,
40,
507,
1435,
5411,
747,
1522,
18,
291,
21358,
2009,
373,
1435,
5411,
747,
1522,
18,
291,
17292,
1787,
10756,
288,
5411,
327,
629,
31,
3639,
289,
7734,
368,
866,
7920,
702,
3639,
309,
16051,
13957,
18,
588,
1320,
7675,
6494,
1895,
2932,
7457,
67,
12927,
360,
429,
67,
20441,
6,
3719,
288,
5411,
327,
638,
31,
3639,
289,
3639,
368,
8363,
1791,
79,
5442,
310,
3639,
309,
16051,
1096,
18,
291,
3896,
10756,
288,
5411,
327,
629,
31,
3639,
289,
1171,
368,
6161,
358,
1104,
279,
923,
1522,
1018,
18,
3639,
13864,
425,
273,
7920,
18,
588,
8108,
5621,
3639,
1323,
261,
401,
4169,
13616,
597,
425,
18,
5332,
7417,
3471,
1435,
262,
288,
5411,
3887,
1018,
273,
261,
1943,
13,
73,
18,
4285,
1046,
5621,
13491,
368,
2727,
1404,
699,
1632,
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,
1250,
353,
4958,
16057,
1290,
18136,
12,
1943,
1522,
13,
288,
3639,
1250,
848,
13616,
273,
629,
31,
3639,
1250,
13118,
9723,
273,
7920,
18,
588,
1320,
7675,
6494,
1895,
2932,
29111,
67,
12179,
8863,
7734,
368,
1338,
1791,
343,
87,
1240,
11640,
28444,
261,
14137,
268,
2304,
1149,
2852,
13,
3639,
309,
16051,
12,
1096,
1276,
7499,
343,
3719,
288,
5411,
327,
629,
31,
3639,
289,
7734,
368,
309,
1846,
4565,
1149,
1998,
578,
13727,
279,
927,
373,
16,
518,
1807,
1818,
7886,
3639,
309,
261,
1096,
18,
291,
984,
78,
301,
11987,
54,
2226,
1435,
5411,
747,
1522,
18,
291,
2156,
1998,
1435,
5411,
747,
1522,
18,
291,
49,
6159,
40,
507,
1435,
5411,
747,
2
] |
||
saveNil(f);
|
saveNil(o, f);
|
protected boolean saveFeatures(EObject o) { EClass eClass = o.eClass(); int contentKind = extendedMetaData == null ? ExtendedMetaData.UNSPECIFIED_CONTENT : extendedMetaData.getContentKind(eClass); switch (contentKind) { case ExtendedMetaData.MIXED_CONTENT: case ExtendedMetaData.SIMPLE_CONTENT: { doc.setMixed(true); break; } } EStructuralFeature[] features = featureTable.getFeatures(eClass); int[] featureKinds = featureTable.getKinds(eClass, features); int[] elementFeatures = null; int elementCount = 0; String content = null; // Process XML attributes LOOP: for (int i = 0; i < features.length; i++ ) { int kind = featureKinds[i]; EStructuralFeature f = features[i]; if (kind != TRANSIENT && o.eIsSet(f)) { switch (kind) { case DATATYPE_ELEMENT_SINGLE: { if (contentKind == ExtendedMetaData.SIMPLE_CONTENT) { content = getDataTypeElementSingleSimple(o, f); continue LOOP; } break; } case DATATYPE_SINGLE: { saveDataTypeSingle(o, f); continue LOOP; } case DATATYPE_SINGLE_NILLABLE: { if (!isNil(o, f)) { saveDataTypeSingle(o, f); continue LOOP; } break; } case OBJECT_HREF_SINGLE_UNSETTABLE: { if (isNil(o, f)) { break; } // it's intentional to keep going } case OBJECT_HREF_SINGLE: { if (useEncodedAttributeStyle) { saveEObjectSingle(o, f); continue LOOP; } else { switch (sameDocSingle(o, f)) { case SAME_DOC: { saveIDRefSingle(o, f); continue LOOP; } case CROSS_DOC: { break; } default: { continue LOOP; } } } break; } case OBJECT_HREF_MANY_UNSETTABLE: { if (isEmpty(o, f)) { saveManyEmpty(f); continue LOOP; } // It's intental to keep going. } case OBJECT_HREF_MANY: { if (useEncodedAttributeStyle) { saveEObjectMany(o, f); continue LOOP; } else { switch (sameDocMany(o, f)) { case SAME_DOC: { saveIDRefMany(o, f); continue LOOP; } case CROSS_DOC: { break; } default: { continue LOOP; } } } break; } case OBJECT_ELEMENT_SINGLE_UNSETTABLE: case OBJECT_ELEMENT_SINGLE: { if (contentKind == ExtendedMetaData.SIMPLE_CONTENT) { content = getElementReferenceSingleSimple(o, f); continue LOOP; } break; } case OBJECT_ELEMENT_MANY: { if (contentKind == ExtendedMetaData.SIMPLE_CONTENT) { content = getElementReferenceManySimple(o, f); continue LOOP; } break; } case OBJECT_ELEMENT_IDREF_SINGLE_UNSETTABLE: case OBJECT_ELEMENT_IDREF_SINGLE: { if (contentKind == ExtendedMetaData.SIMPLE_CONTENT) { content = getElementIDRefSingleSimple(o, f); continue LOOP; } break; } case OBJECT_ELEMENT_IDREF_MANY: { if (contentKind == ExtendedMetaData.SIMPLE_CONTENT) { content = getElementIDRefManySimple(o, f); continue LOOP; } break; } case OBJECT_CONTAIN_MANY_UNSETTABLE: case DATATYPE_MANY: { if (isEmpty(o, f)) { saveManyEmpty(f); continue LOOP; } break; } case OBJECT_CONTAIN_SINGLE_UNSETTABLE: case OBJECT_CONTAIN_SINGLE: case OBJECT_CONTAIN_MANY: case ELEMENT_FEATURE_MAP: { break; } case ATTRIBUTE_FEATURE_MAP: { saveAttributeFeatureMap(o, f); continue LOOP; } default: { continue LOOP; } } // We only get here if we should do this. // if (elementFeatures == null) { elementFeatures = new int[features.length]; } elementFeatures[elementCount++] = i; } } processAttributeExtensions(o); if (elementFeatures == null) { if (content == null) { content = getContent(o, features); } if (content == null) { endSaveFeatures(o, EMPTY_ELEMENT, null); return false; } else { endSaveFeatures(o, CONTENT_ELEMENT, content); return true; } } // Process XML elements for (int i = 0; i < elementCount; i++ ) { int kind = featureKinds[elementFeatures[i]]; EStructuralFeature f = features[elementFeatures[i]]; switch (kind) { case DATATYPE_SINGLE_NILLABLE: { saveNil(f); break; } case ELEMENT_FEATURE_MAP: { saveElementFeatureMap(o, f); break; } case DATATYPE_MANY: { saveDataTypeMany(o, f); break; } case DATATYPE_ELEMENT_SINGLE: { saveDataTypeElementSingle(o, f); break; } case OBJECT_CONTAIN_SINGLE_UNSETTABLE: { if (isNil(o, f)) { saveNil(f); break; } // it's intentional to keep going } case OBJECT_CONTAIN_SINGLE: { saveContainedSingle(o, f); break; } case OBJECT_CONTAIN_MANY_UNSETTABLE: case OBJECT_CONTAIN_MANY: { saveContainedMany(o, f); break; } case OBJECT_HREF_SINGLE_UNSETTABLE: { if (isNil(o, f)) { saveNil(f); break; } // it's intentional to keep going } case OBJECT_HREF_SINGLE: { saveHRefSingle(o, f); break; } case OBJECT_HREF_MANY_UNSETTABLE: case OBJECT_HREF_MANY: { saveHRefMany(o, f); break; } case OBJECT_ELEMENT_SINGLE_UNSETTABLE: { if (isNil(o, f)) { saveNil(f); break; } // it's intentional to keep going } case OBJECT_ELEMENT_SINGLE: { saveElementReferenceSingle(o, f); break; } case OBJECT_ELEMENT_MANY: { saveElementReferenceMany(o, f); break; } case OBJECT_ELEMENT_IDREF_SINGLE_UNSETTABLE: { if (isNil(o, f)) { saveNil(f); break; } // it's intentional to keep going } case OBJECT_ELEMENT_IDREF_SINGLE: { saveElementIDRefSingle(o, f); break; } case OBJECT_ELEMENT_IDREF_MANY: { saveElementIDRefMany(o, f); break; } } } endSaveFeatures(o, 0, null); return true; }
|
11224 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11224/f347eed2f7d0ebe79986fe1a21be8873fa1bb7d1/XMLSaveImpl.java/buggy/plugins/org.eclipse.emf.ecore.xmi/src/org/eclipse/emf/ecore/xmi/impl/XMLSaveImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
1250,
1923,
8696,
12,
8029,
320,
13,
225,
288,
565,
8233,
425,
797,
273,
320,
18,
73,
797,
5621,
565,
509,
913,
5677,
273,
7021,
6998,
422,
446,
692,
14094,
6998,
18,
2124,
13847,
13519,
67,
9689,
294,
7021,
6998,
18,
588,
1350,
5677,
12,
73,
797,
1769,
565,
1620,
261,
1745,
5677,
13,
565,
288,
1377,
648,
14094,
6998,
18,
7492,
60,
2056,
67,
9689,
30,
1377,
648,
14094,
6998,
18,
31669,
900,
67,
9689,
30,
1377,
288,
3639,
997,
18,
542,
19846,
12,
3767,
1769,
3639,
898,
31,
1377,
289,
565,
289,
565,
512,
14372,
4595,
8526,
4467,
273,
2572,
1388,
18,
588,
8696,
12,
73,
797,
1769,
565,
509,
8526,
2572,
5677,
87,
273,
2572,
1388,
18,
588,
5677,
87,
12,
73,
797,
16,
4467,
1769,
565,
509,
8526,
930,
8696,
273,
446,
31,
565,
509,
930,
1380,
273,
374,
31,
565,
514,
913,
273,
446,
31,
565,
368,
4389,
3167,
1677,
565,
1806,
3665,
30,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
4467,
18,
2469,
31,
277,
9904,
262,
565,
288,
1377,
509,
3846,
273,
2572,
5677,
87,
63,
77,
15533,
1377,
512,
14372,
4595,
284,
273,
4467,
63,
77,
15533,
1377,
309,
261,
9224,
480,
14996,
24937,
597,
320,
18,
73,
15737,
12,
74,
3719,
1377,
288,
3639,
1620,
261,
9224,
13,
3639,
288,
1850,
648,
12364,
789,
1738,
67,
10976,
67,
20184,
30,
1850,
288,
5411,
309,
261,
1745,
5677,
422,
14094,
6998,
18,
31669,
900,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
1250,
1923,
8696,
12,
8029,
320,
13,
225,
288,
565,
8233,
425,
797,
273,
320,
18,
73,
797,
5621,
565,
509,
913,
5677,
273,
7021,
6998,
422,
446,
692,
14094,
6998,
18,
2124,
13847,
13519,
67,
9689,
294,
7021,
6998,
18,
588,
1350,
5677,
12,
73,
797,
1769,
565,
1620,
261,
1745,
5677,
13,
565,
288,
1377,
648,
14094,
6998,
18,
7492,
60,
2056,
67,
9689,
30,
1377,
648,
14094,
6998,
18,
31669,
900,
67,
9689,
30,
1377,
288,
3639,
997,
18,
542,
19846,
12,
3767,
1769,
3639,
898,
31,
1377,
289,
565,
289,
565,
512,
14372,
4595,
8526,
4467,
273,
2572,
1388,
18,
588,
8696,
12,
73,
797,
1769,
565,
509,
8526,
2572,
5677,
87,
273,
2
] |
} }); ageText.addFocusListener(new FocusAdapter() { public void focusLost(FocusEvent evt) { pc.setDirty(true); pc.setAge(Delta.parseInt("0" + ageText.getText())); updateDisplayedAge(); } }); htText.addFocusListener(new FocusAdapter() { public void focusLost(FocusEvent evt) { pc.setDirty(true); pc.setHeight(Globals.getGameModeUnitSet().convertHeightFromUnitSet(Delta.parseDouble("0" + htText.getText()))); } }); wtText.addFocusListener(new FocusAdapter() { public void focusLost(FocusEvent evt) { pc.setDirty(true); pc.setWeight(Globals.getGameModeUnitSet().convertWeightFromUnitSet(Delta.parseDouble("0" + wtText.getText()))); } }); playerNameText.addFocusListener(new FocusAdapter() { public void focusLost(FocusEvent evt) { pc.setPlayersName(playerNameText.getText());
|
private void initNonDataDrivenEventListeners() { addComponentListener(new ComponentAdapter() { public void componentShown(ComponentEvent evt) { formComponentShown(); } }); txtName.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { txtName_Changed(); labelName.requestFocus(); } }); txtName.addFocusListener(new FocusAdapter() { public void focusLost(FocusEvent evt) { txtName_Changed(); } }); randName.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { if (nameFrame == null) { nameFrame = new NameGui(pc); } else { nameFrame.setPc(pc); } nameFrame.setVisible(true); } }); FocusListener fl = new FocusAdapter() { public void focusLost(FocusEvent evt) { updateTextFields(); } }; skinText.addFocusListener(fl); hairColorText.addFocusListener(fl); hairStyleText.addFocusListener(fl); eyeColorText.addFocusListener(fl); speechPatternText.addFocusListener(fl); phobiaText.addFocusListener(fl); interestsText.addFocusListener(fl); catchPhraseText.addFocusListener(fl); personality1Text.addFocusListener(fl); personality2Text.addFocusListener(fl); fregionText.addFocusListener(fl); residenceText.addFocusListener(fl); locationText.addFocusListener(fl); birthplaceText.addFocusListener(fl); checkAll.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { checkAll_click(); } }); randAll.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { randAll_click(); pc.setDirty(true); } }); uncheckAll.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { uncheckAll_click(); } }); ageText.addFocusListener(new FocusAdapter() { public void focusLost(FocusEvent evt) { pc.setDirty(true); pc.setAge(Delta.parseInt("0" + ageText.getText())); updateDisplayedAge(); } }); htText.addFocusListener(new FocusAdapter() { public void focusLost(FocusEvent evt) { pc.setDirty(true); pc.setHeight(Globals.getGameModeUnitSet().convertHeightFromUnitSet(Delta.parseDouble("0" + htText.getText()))); } }); wtText.addFocusListener(new FocusAdapter() { public void focusLost(FocusEvent evt) { pc.setDirty(true); pc.setWeight(Globals.getGameModeUnitSet().convertWeightFromUnitSet(Delta.parseDouble("0" + wtText.getText()))); } }); playerNameText.addFocusListener(new FocusAdapter() { public void focusLost(FocusEvent evt) { pc.setPlayersName(playerNameText.getText()); } }); MouseListener ml = new MouseAdapter() { public void mousePressed(MouseEvent e) { final int selRow = notesTree.getRowForLocation(e.getX(), e.getY()); final TreePath selPath = notesTree.getPathForLocation(e.getX(), e.getY()); if (selRow != -1) { if ((e.getClickCount() == 1) && (selPath != null)) { selectNotesNode(selRow); } } lastItem = null; } }; notesTree.addMouseListener(ml); addButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { int parentId = -1; int newNodeId = 0; final TreePath selPath = notesTree.getSelectionPath(); if (selPath == null) { return; } NoteTreeNode parentTreeNode = (NoteTreeNode) selPath.getLastPathComponent(); if ((parentTreeNode != null) && (parentTreeNode.getItem() != null)) { parentId = parentTreeNode.getItem().getId(); } /* * The portrait note may not have children * * author: Thomas Behr 10-09-02 */ if (parentId == PORTRAIT_NOTEID) { JOptionPane.showMessageDialog(null, in_noPortraitChildrenMessage); return; } Iterator allNotes = pc.getNotesList().iterator(); while (allNotes.hasNext()) { final NoteItem currItem = (NoteItem) allNotes.next(); if (currItem.getId() > newNodeId) { newNodeId = currItem.getId(); } } ++newNodeId; NoteItem a = new NoteItem(newNodeId, parentId, PropertyFactory.getString("in_newItem"), PropertyFactory.getString("in_newValue")); NoteTreeNode aNode = new NoteTreeNode(a); if (parentTreeNode != null) { parentTreeNode.add(aNode); } pc.addNotesItem(a); pc.setDirty(true); notesTree.expandPath(selPath); notesTree.updateUI(); } }); Utility.setDescription(addButton, PropertyFactory.getString("in_addChild")); deleteButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { int numChildren = 0; int reallyDelete; final TreePath selPath = notesTree.getSelectionPath(); if (selPath == null) { return; } Object anObject = selPath.getLastPathComponent(); if ((anObject == null) || (((NoteTreeNode) anObject).getItem() == null)) { return; } NoteTreeNode aNode = (NoteTreeNode) anObject; /* * The portrait note may not be removed * * author: Thomas Behr 10-09-02 */ if (aNode.getItem().getId() == PORTRAIT_NOTEID) { JOptionPane.showMessageDialog(null, in_noPortraitDeletionMessage); return; } Enumeration allChildren = aNode.breadthFirstEnumeration(); while (allChildren.hasMoreElements()) { NoteTreeNode ancestorNode = (NoteTreeNode) allChildren.nextElement(); if (ancestorNode != aNode) { numChildren++; } } //The following line should be taken out and shot! reallyDelete = JOptionPane.showConfirmDialog(null, PropertyFactory.getString("in_delNote1") + " " + aNode.toString() + ((numChildren > 0) ? (" " + PropertyFactory.getString("in_delNote2") + " " + (numChildren) + " " + PropertyFactory.getString("in_delNote3")) : " ") + "?", PropertyFactory.getString("in_delNote4"), JOptionPane.OK_CANCEL_OPTION); if (reallyDelete == JOptionPane.OK_OPTION) { NoteTreeNode parent = (NoteTreeNode) aNode.getParent(); if (parent != null) { allChildren = aNode.breadthFirstEnumeration(); while (allChildren.hasMoreElements()) { NoteTreeNode ancestorNode = (NoteTreeNode) allChildren.nextElement(); pc.getNotesList().remove(ancestorNode.getItem()); } parent.remove(aNode); pc.setDirty(true); } notesTree.updateUI(); } } }); Utility.setDescription(deleteButton, PropertyFactory.getString("in_delSelIt")); renameButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { final TreePath selPath = notesTree.getSelectionPath(); if (selPath == null) { return; } Object anObject = selPath.getLastPathComponent(); if ((anObject == null) || (((NoteTreeNode) anObject).getItem() == null)) { return; } NoteTreeNode aNode = (NoteTreeNode) anObject; /* * The portrait note may not be renamed * * author: Thomas Behr 10-09-02 */ if (aNode.getItem().getId() == PORTRAIT_NOTEID) { JOptionPane.showMessageDialog(null, in_noPortraitRenamingMessage); return; } String selectedValue = JOptionPane.showInputDialog(null, PropertyFactory.getString("in_idEnNewName"), Constants.s_APPNAME, JOptionPane.QUESTION_MESSAGE); if ((selectedValue != null) && (selectedValue.trim().length() > 0)) { aNode.getItem().setName(selectedValue.trim()); pc.setDirty(true); notesTree.updateUI(); } } }); Utility.setDescription(renameButton, PropertyFactory.getString("in_idRenSelIt")); revertButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { // TODO This method currently does nothing? } }); Utility.setDescription(revertButton, PropertyFactory.getString("in_idLoseChan")); revertButton.setEnabled(false); // not coded yet moveButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { lastItem = currentItem; } }); Utility.setDescription(moveButton, PropertyFactory.getString("in_idSwitch")); dataText.addFocusListener(new FocusAdapter() { public void focusLost(FocusEvent evt) { updateNoteItem(); } }); notesTree.addMouseListener(new NotePopupListener(notesTree, new NotePopupMenu())); }
|
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/82a181802361e654587abbe979f0f2cabe9a9c7c/InfoDescription.java/buggy/code/src/java/pcgen/gui/tabs/InfoDescription.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1208,
3989,
751,
8956,
837,
30275,
1435,
202,
95,
202,
202,
1289,
1841,
2223,
12,
2704,
5435,
4216,
1435,
1082,
202,
95,
9506,
202,
482,
918,
1794,
27042,
12,
1841,
1133,
6324,
13,
9506,
202,
95,
6862,
202,
687,
1841,
27042,
5621,
9506,
202,
97,
1082,
202,
22938,
202,
202,
5830,
461,
18,
1289,
1803,
2223,
12,
2704,
25962,
1435,
1082,
202,
95,
9506,
202,
482,
918,
26100,
12,
1803,
1133,
425,
13,
9506,
202,
95,
6862,
202,
5830,
461,
67,
5033,
5621,
6862,
202,
1925,
461,
18,
2293,
9233,
5621,
9506,
202,
97,
1082,
202,
22938,
202,
202,
5830,
461,
18,
1289,
9233,
2223,
12,
2704,
478,
4560,
4216,
1435,
1082,
202,
95,
9506,
202,
482,
918,
7155,
19024,
12,
9233,
1133,
6324,
13,
9506,
202,
95,
6862,
202,
5830,
461,
67,
5033,
5621,
9506,
202,
97,
1082,
202,
22938,
202,
202,
7884,
461,
18,
1289,
1803,
2223,
12,
2704,
25962,
1435,
1082,
202,
95,
9506,
202,
482,
918,
26100,
12,
1803,
1133,
6324,
13,
9506,
202,
95,
6862,
202,
430,
261,
529,
3219,
422,
446,
13,
6862,
202,
95,
25083,
202,
529,
3219,
273,
394,
1770,
18070,
12,
2436,
1769,
6862,
202,
97,
6862,
202,
12107,
6862,
202,
95,
25083,
202,
529,
3219,
18,
542,
28136,
12,
2436,
1769,
6862,
202,
97,
6862,
202,
529,
3219,
18,
542,
6207,
12,
3767,
1769,
9506,
202,
97,
1082,
202,
22938,
202,
202,
9233,
2223,
1183,
273,
394,
478,
4560,
4216,
1435,
1082,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1208,
3989,
751,
8956,
837,
30275,
1435,
202,
95,
202,
202,
1289,
1841,
2223,
12,
2704,
5435,
4216,
1435,
1082,
202,
95,
9506,
202,
482,
918,
1794,
27042,
12,
1841,
1133,
6324,
13,
9506,
202,
95,
6862,
202,
687,
1841,
27042,
5621,
9506,
202,
97,
1082,
202,
22938,
202,
202,
5830,
461,
18,
1289,
1803,
2223,
12,
2704,
25962,
1435,
1082,
202,
95,
9506,
202,
482,
918,
26100,
12,
1803,
1133,
425,
13,
9506,
202,
95,
6862,
202,
5830,
461,
67,
5033,
5621,
6862,
202,
1925,
461,
18,
2293,
9233,
5621,
9506,
202,
97,
1082,
202,
22938,
202,
202,
5830,
461,
18,
1289,
9233,
2223,
12,
2704,
478,
4560,
4216,
1435,
1082,
202,
95,
9506,
2
] |
|
return lightweightManager.getDecoratorDefinition(decoratorId);
|
return getLightweightManager().getDecoratorDefinition(decoratorId);
|
private DecoratorDefinition getDecoratorDefinition(String decoratorId) { DecoratorDefinition returnValue = getFullDecoratorDefinition(decoratorId); if (returnValue == null) return lightweightManager.getDecoratorDefinition(decoratorId); return returnValue; }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/22884766135143cda4d4d16879194fc244c356eb/DecoratorManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/decorators/DecoratorManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3416,
17939,
1852,
336,
10361,
1852,
12,
780,
7367,
548,
13,
288,
3639,
3416,
17939,
1852,
7750,
273,
10208,
10361,
1852,
12,
19142,
548,
1769,
3639,
309,
261,
2463,
620,
422,
446,
13,
5411,
327,
9014,
750,
4865,
1318,
7675,
588,
10361,
1852,
12,
19142,
548,
1769,
3639,
327,
7750,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
3238,
3416,
17939,
1852,
336,
10361,
1852,
12,
780,
7367,
548,
13,
288,
3639,
3416,
17939,
1852,
7750,
273,
10208,
10361,
1852,
12,
19142,
548,
1769,
3639,
309,
261,
2463,
620,
422,
446,
13,
5411,
327,
9014,
750,
4865,
1318,
7675,
588,
10361,
1852,
12,
19142,
548,
1769,
3639,
327,
7750,
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
] |
return tokenMarker;
|
if(jEdit.getSyntaxColorizing()) return tokenMarker; else return null;
|
public JSTokenMarker getTokenMarker() { return tokenMarker; }
|
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/fa71c1d33ff2879c901aed16ac022a8c3e7dc4d5/Buffer.java/clean/org/gjt/sp/jedit/Buffer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
804,
882,
969,
7078,
9162,
7078,
1435,
202,
95,
202,
202,
2463,
1147,
7078,
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,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
804,
882,
969,
7078,
9162,
7078,
1435,
202,
95,
202,
202,
2463,
1147,
7078,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
ScriptValue result;
|
if ( !client.permitsContinue() ) currentState = STATE_EXIT;
|
public ScriptValue execute() throws AdvancedScriptException { ScriptValue result; if ( currentState != STATE_EXIT ) currentState = STATE_RETURN; if ( returnValue == null ) return null; result = returnValue.execute(); if ( currentState != STATE_EXIT ) currentState = STATE_RETURN; if ( result == null ) return null; if ( expectedType.equals( TYPE_STRING ) ) return result.toStringValue(); if ( expectedType.equals( TYPE_FLOAT ) ) return result.toFloatValue(); if ( expectedType.equals( TYPE_INT ) ) return result.toIntValue(); return result; }
|
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/253c6eb653065f27099c209b9680aab21cd00776/KoLmafiaASH.java/clean/src/net/sourceforge/kolmafia/KoLmafiaASH.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
7739,
620,
1836,
1435,
1216,
27451,
3651,
503,
202,
202,
95,
1082,
202,
3651,
620,
563,
31,
1082,
202,
430,
261,
17773,
480,
7442,
67,
28682,
262,
9506,
202,
2972,
1119,
273,
7442,
67,
14033,
31,
1082,
202,
430,
261,
7750,
422,
446,
262,
9506,
202,
2463,
446,
31,
1082,
202,
2088,
273,
7750,
18,
8837,
5621,
1082,
202,
430,
261,
17773,
480,
7442,
67,
28682,
262,
9506,
202,
2972,
1119,
273,
7442,
67,
14033,
31,
1082,
202,
430,
261,
563,
422,
446,
262,
9506,
202,
2463,
446,
31,
1082,
202,
430,
261,
23192,
18,
14963,
12,
3463,
67,
5804,
262,
262,
9506,
202,
2463,
563,
18,
10492,
620,
5621,
1082,
202,
430,
261,
23192,
18,
14963,
12,
3463,
67,
15640,
262,
262,
9506,
202,
2463,
563,
18,
869,
4723,
620,
5621,
1082,
202,
430,
261,
23192,
18,
14963,
12,
3463,
67,
3217,
262,
262,
9506,
202,
2463,
563,
18,
869,
1702,
620,
5621,
1082,
202,
2463,
563,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
7739,
620,
1836,
1435,
1216,
27451,
3651,
503,
202,
202,
95,
1082,
202,
3651,
620,
563,
31,
1082,
202,
430,
261,
17773,
480,
7442,
67,
28682,
262,
9506,
202,
2972,
1119,
273,
7442,
67,
14033,
31,
1082,
202,
430,
261,
7750,
422,
446,
262,
9506,
202,
2463,
446,
31,
1082,
202,
2088,
273,
7750,
18,
8837,
5621,
1082,
202,
430,
261,
17773,
480,
7442,
67,
28682,
262,
9506,
202,
2972,
1119,
273,
7442,
67,
14033,
31,
1082,
202,
430,
261,
563,
422,
446,
262,
9506,
202,
2463,
446,
31,
1082,
202,
430,
261,
23192,
18,
14963,
12,
3463,
67,
5804,
262,
262,
9506,
202,
2463,
563,
18,
10492,
620,
5621,
1082,
202,
430,
261,
23192,
18,
2
] |
public boolean checkElement(XsdNode node) { if (!node.isUsed && !node.isRequired) { node.isCheckedOk = true; return true; } if (node.transparent) { boolean checkedOk = true; Enumeration children = node.children(); while (children.hasMoreElements()) { XsdNode child = (XsdNode) children.nextElement(); if (!check(child)) { checkedOk = false; } } node.isCheckedOk = checkedOk; return checkedOk; } XMLType type = ((ElementDecl) node.getUserObject()).getType(); if (type == null) { errorManager.addMessage(node, "no type declaration for element", ErrorManager.warning); System.out.println("WARNING: no type declaration for element " + node.toString()); return true; } /* simpleType */ if (type.isSimpleType()) { if (node.isRequired && !isAffected(node) && !hasDefaultValue(node) && !associatedAutogeneration.contains(node)) { errorManager.addMessage(node, "toto cannot be empty", ErrorManager.error); node.isCheckedOk = false; return false; } else { node.isCheckedOk = true; return true; } } else { /* complexType, ie: attributes + group */ return checkGroup(node); // boolean errors = false; // /* check if number of subelts is correct */ // HashMap maxOccurs = new HashMap(); // HashMap minOccurs = new HashMap(); // // Enumeration children = node.children(); // // while (children.hasMoreElements()) { // XsdNode child = (XsdNode) children.nextElement(); // boolean isChildOk = check(child); // // switch (((Annotated) child.getUserObject()).getStructureType()) { // case Structure.ATTRIBUTE: // if (!isChildOk) // errors = true; // break; // case Structure.GROUP: // if (!isChildOk) // errors = true; // break; // case Structure.ELEMENT: // /* initialisation if first occurence of the element */ // if (!maxOccurs.containsKey(child.toString())) { // int max = child.max; // if (max != -1) { // maxOccurs.put(child.toString(), new Integer(max)); // } else { // maxOccurs.put(child.toString(), "UNBOUNDED"); // } // minOccurs.put(child.toString(), new Integer(child.min)); // } // //// for (int i = 0; i < subMessages.size(); i++) { //// errorMessages.add(subMessages.get(i)); //// } // // if (child.isCheckedOk) { // try { // maxOccurs.put(child.toString(), new Integer( // ((Integer) maxOccurs.get(child.toString())) // .intValue() - 1)); // } catch (ClassCastException e) { // /* // * ok, max is unbounded and exception is throws when // * trying to cast String to Integer // */ // } //// minOccurs.put(child.toString(), new Integer( //// ((Integer) minOccurs.get(child.toString())) //// .intValue() - 1)); // minOccurs.put(child.toString(), new Integer(0 )); // } // } // } // // Iterator names = maxOccurs.keySet().iterator(); // // Iterator mins = minOccurs.values().iterator(); // Iterator maxs = maxOccurs.values().iterator(); // while (names.hasNext()) { // String name = (String) names.next(); // // if a min is > 0, it means that an element is missing // if (((Integer) mins.next()).intValue() > 0) { //// errorMessages.add(printPath(node.getPath()) + "ERROR: a " //// + name + " is missing"); // errorManager.addMessage(node, "a " // + name + " is missing", ErrorManager.error); // errors = true; // } // // /* if a max is < 0, it means there are too much elements */ // try { // if (((Integer) maxs.next()).intValue() < 0) { // errorManager.addMessage(node, "a " + name + " should be removed", // ErrorManager.error); //// errorMessages.add(printPath(node.getPath()) //// + " ERROR: a " + name + " should be removed"); // errors = true; // } // // } catch (ClassCastException e) { // /* // * ok, max is unbounded and exception is throws when trying // * to cast String to Integer // */ // } // } // // node.isCheckedOk = !errors; // return !errors; } //return !errors;; }
|
3154 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3154/8317fd24793c994e235d930875bec53a6e8fe9fa/XsdTreeStructImpl.java/clean/tools/xmlMakerFlattener/src/mint/filemakers/xmlMaker/structure/XsdTreeStructImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6494,
1893,
1046,
12,
60,
6427,
50,
369,
20680,
15329,
202,
202,
430,
12,
5,
2159,
18,
291,
6668,
10,
10,
5,
2159,
18,
291,
3705,
15329,
1082,
202,
2159,
18,
291,
11454,
8809,
33,
3767,
31,
1082,
202,
2463,
3767,
31,
202,
202,
97,
202,
202,
430,
12,
2159,
18,
26516,
15329,
1082,
202,
6494,
4532,
8809,
33,
3767,
31,
1082,
202,
21847,
5906,
33,
2159,
18,
5906,
5621,
1082,
202,
17523,
12,
5906,
18,
5332,
7417,
3471,
10756,
95,
9506,
202,
60,
6427,
907,
3624,
28657,
60,
6427,
907,
13,
5906,
18,
4285,
1046,
5621,
9506,
202,
430,
12,
5,
1893,
12,
3624,
3719,
95,
6862,
202,
4532,
8809,
33,
5743,
31,
9506,
202,
97,
1082,
202,
97,
1082,
202,
2159,
18,
291,
11454,
8809,
33,
4532,
8809,
31,
1082,
202,
2463,
4532,
8809,
31,
202,
202,
97,
202,
202,
4201,
18488,
5872,
33,
12443,
1046,
3456,
13,
2159,
18,
588,
1299,
921,
1435,
2934,
588,
559,
5621,
202,
202,
430,
12,
723,
631,
2011,
15329,
1082,
202,
1636,
1318,
18,
1289,
1079,
12,
2159,
10837,
902,
388,
22448,
1405,
806,
3113,
6862,
202,
668,
1318,
18,
8551,
1769,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
9511,
30,
902,
388,
22448,
1405,
806,
6,
6862,
202,
15,
2159,
18,
10492,
10663,
1082,
202,
2463,
3767,
31,
202,
202,
97,
202,
202,
20308,
9647,
559,
5549,
202,
202,
430,
12,
723,
18,
291,
5784,
559,
10756,
95,
1082,
202,
430,
12,
2159,
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,
6494,
1893,
1046,
12,
60,
6427,
50,
369,
20680,
15329,
202,
202,
430,
12,
5,
2159,
18,
291,
6668,
10,
10,
5,
2159,
18,
291,
3705,
15329,
1082,
202,
2159,
18,
291,
11454,
8809,
33,
3767,
31,
1082,
202,
2463,
3767,
31,
202,
202,
97,
202,
202,
430,
12,
2159,
18,
26516,
15329,
1082,
202,
6494,
4532,
8809,
33,
3767,
31,
1082,
202,
21847,
5906,
33,
2159,
18,
5906,
5621,
1082,
202,
17523,
12,
5906,
18,
5332,
7417,
3471,
10756,
95,
9506,
202,
60,
6427,
907,
3624,
28657,
60,
6427,
907,
13,
5906,
18,
4285,
1046,
5621,
9506,
202,
430,
12,
5,
1893,
12,
3624,
3719,
95,
6862,
202,
4532,
8809,
33,
5743,
31,
9506,
202,
2
] |
||
System.out.println("not found");
|
public CasAuthenticationToken getByTicketId(String serviceTicket) { Element element = null; try { element = cache.get(serviceTicket); } catch (CacheException cacheException) { throw new DataRetrievalFailureException("Cache failure: " + cacheException.getMessage()); } if (element == null) { System.out.println("not found"); return null; } else { System.out.println("found"); return (CasAuthenticationToken) element.getValue(); } }
|
57740 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57740/b6e0c3076fe3423f393ceeb8ceae9c0c68394672/EhCacheBasedTicketCache.java/clean/core/src/main/java/org/acegisecurity/providers/cas/cache/EhCacheBasedTicketCache.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
23561,
6492,
1345,
9979,
13614,
548,
12,
780,
1156,
13614,
13,
288,
3639,
3010,
930,
273,
446,
31,
3639,
775,
288,
5411,
930,
273,
1247,
18,
588,
12,
3278,
13614,
1769,
3639,
289,
1044,
261,
1649,
503,
1247,
503,
13,
288,
5411,
604,
394,
1910,
27356,
14389,
2932,
1649,
5166,
30,
315,
7734,
397,
1247,
503,
18,
24906,
10663,
3639,
289,
3639,
309,
261,
2956,
422,
446,
13,
288,
8227,
327,
446,
31,
3639,
289,
469,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
7015,
8863,
5411,
327,
261,
39,
345,
6492,
1345,
13,
930,
18,
24805,
5621,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
23561,
6492,
1345,
9979,
13614,
548,
12,
780,
1156,
13614,
13,
288,
3639,
3010,
930,
273,
446,
31,
3639,
775,
288,
5411,
930,
273,
1247,
18,
588,
12,
3278,
13614,
1769,
3639,
289,
1044,
261,
1649,
503,
1247,
503,
13,
288,
5411,
604,
394,
1910,
27356,
14389,
2932,
1649,
5166,
30,
315,
7734,
397,
1247,
503,
18,
24906,
10663,
3639,
289,
3639,
309,
261,
2956,
422,
446,
13,
288,
8227,
327,
446,
31,
3639,
289,
469,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
7015,
8863,
5411,
327,
261,
39,
345,
6492,
1345,
13,
930,
18,
24805,
5621,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
if ( errorMessage != null ) throw new SQLException( errorMessage.toString().trim() );
|
if ( error != null ) throw error;
|
private BaseResultSet executeV3() throws SQLException { StringBuffer errorMessage = null; if (pgStream == null) { throw new PSQLException("postgresql.con.closed"); } synchronized (pgStream) { sendQueryV3(); int c; boolean l_endQuery = false; while (!l_endQuery) { c = pgStream.ReceiveChar(); switch (c) { case 'A': // Asynchronous Notify int pid = pgStream.ReceiveInteger(4); String msg = pgStream.ReceiveString(connection.getEncoding()); connection.addNotification(new org.postgresql.core.Notification(msg, pid)); break; case 'B': // Binary Data Transfer receiveTupleV3(true); break; case 'C': // Command Status receiveCommandStatusV3(); break; case 'D': // Text Data Transfer receiveTupleV3(false); break; case 'E': // Error Message // it's possible to get more than one error message for a query // see libpq comments wrt backend closing a connection // so, append messages to a string buffer and keep processing // check at the bottom to see if we need to throw an exception if ( errorMessage == null ) errorMessage = new StringBuffer(); int l_elen = pgStream.ReceiveIntegerR(4); errorMessage.append(connection.getEncoding().decode(pgStream.Receive(l_elen-4))); // keep processing break; case 'I': // Empty Query int t = pgStream.ReceiveChar(); break; case 'N': // Error Notification int l_nlen = pgStream.ReceiveIntegerR(4); statement.addWarning(connection.getEncoding().decode(pgStream.Receive(l_nlen-4))); break; case 'P': // Portal Name String pname = pgStream.ReceiveString(connection.getEncoding()); break; case 'S': //TODO: handle parameter status messages int l_len = pgStream.ReceiveIntegerR(4); String l_pStatus = connection.getEncoding().decode(pgStream.Receive(l_len-4)); if (Driver.logDebug) Driver.debug("ParameterStatus="+ l_pStatus); break; case 'T': // MetaData Field Description receiveFieldsV3(); break; case 'Z': // read ReadyForQuery //TODO: use size better if (pgStream.ReceiveIntegerR(4) != 5) throw new PSQLException("postgresql.con.setup"); //TODO: handle transaction status char l_tStatus = (char)pgStream.ReceiveChar(); l_endQuery = true; break; default: throw new PSQLException("postgresql.con.type", new Character((char) c)); } } // did we get an error during this query? if ( errorMessage != null ) throw new SQLException( errorMessage.toString().trim() ); //if an existing result set was passed in reuse it, else //create a new one if (rs != null) { rs.reInit(fields, tuples, status, update_count, insert_oid, binaryCursor); } else { rs = statement.createResultSet(fields, tuples, status, update_count, insert_oid, binaryCursor); } return rs; } }
|
2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/6e93868448b5865def90afe6f30990ceb61cdde4/QueryExecutor.java/buggy/org/postgresql/core/QueryExecutor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3360,
13198,
1836,
58,
23,
1435,
1216,
6483,
202,
95,
202,
202,
780,
1892,
9324,
273,
446,
31,
202,
202,
430,
261,
8365,
1228,
422,
446,
13,
3196,
202,
95,
1082,
202,
12849,
394,
453,
23116,
2932,
2767,
24330,
18,
591,
18,
12204,
8863,
202,
202,
97,
202,
202,
22043,
261,
8365,
1228,
13,
202,
202,
95,
1082,
202,
4661,
1138,
58,
23,
5621,
1082,
202,
474,
276,
31,
1082,
202,
6494,
328,
67,
409,
1138,
273,
629,
31,
1082,
202,
17523,
16051,
80,
67,
409,
1138,
13,
1082,
202,
95,
9506,
202,
71,
273,
7184,
1228,
18,
11323,
2156,
5621,
9506,
202,
9610,
261,
71,
13,
9506,
202,
95,
6862,
202,
3593,
296,
37,
4278,
202,
759,
2970,
7121,
10918,
25083,
202,
474,
4231,
273,
7184,
1228,
18,
11323,
4522,
12,
24,
1769,
25083,
202,
780,
1234,
273,
7184,
1228,
18,
11323,
780,
12,
4071,
18,
588,
4705,
10663,
25083,
202,
4071,
18,
1289,
4386,
12,
2704,
2358,
18,
2767,
24330,
18,
3644,
18,
4386,
12,
3576,
16,
4231,
10019,
25083,
202,
8820,
31,
6862,
202,
3593,
296,
38,
4278,
202,
759,
7896,
1910,
12279,
25083,
202,
18149,
9038,
58,
23,
12,
3767,
1769,
25083,
202,
8820,
31,
6862,
202,
3593,
296,
39,
4278,
202,
759,
3498,
2685,
25083,
202,
18149,
2189,
1482,
58,
23,
5621,
25083,
202,
8820,
31,
6862,
202,
3593,
296,
40,
4278,
202,
759,
3867,
1910,
12279,
25083,
202,
18149,
9038,
58,
23,
12,
5743,
1769,
25083,
202,
8820,
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,
3360,
13198,
1836,
58,
23,
1435,
1216,
6483,
202,
95,
202,
202,
780,
1892,
9324,
273,
446,
31,
202,
202,
430,
261,
8365,
1228,
422,
446,
13,
3196,
202,
95,
1082,
202,
12849,
394,
453,
23116,
2932,
2767,
24330,
18,
591,
18,
12204,
8863,
202,
202,
97,
202,
202,
22043,
261,
8365,
1228,
13,
202,
202,
95,
1082,
202,
4661,
1138,
58,
23,
5621,
1082,
202,
474,
276,
31,
1082,
202,
6494,
328,
67,
409,
1138,
273,
629,
31,
1082,
202,
17523,
16051,
80,
67,
409,
1138,
13,
1082,
202,
95,
9506,
202,
71,
273,
7184,
1228,
18,
11323,
2156,
5621,
9506,
202,
9610,
261,
71,
13,
9506,
202,
95,
6862,
202,
3593,
296,
37,
4278,
2
] |
public String literal_constraint() throws RecognitionException { String text; Token t=null; text = null; try { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:545:17: ( (t= STRING | t= INT | t= FLOAT | t= BOOL ) ) // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:545:17: (t= STRING | t= INT | t= FLOAT | t= BOOL ) { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:545:17: (t= STRING | t= INT | t= FLOAT | t= BOOL ) int alt51=4; switch ( input.LA(1) ) { case STRING: alt51=1; break; case INT: alt51=2; break; case FLOAT: alt51=3; break; case BOOL: alt51=4; break; default: NoViableAltException nvae = new NoViableAltException("545:17: (t= STRING | t= INT | t= FLOAT | t= BOOL )", 51, 0, input); throw nvae; } switch (alt51) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:545:25: t= STRING { t=(Token)input.LT(1); match(input,STRING,FOLLOW_STRING_in_literal_constraint1827); text = getString( t ); } break; case 2 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:546:25: t= INT { t=(Token)input.LT(1); match(input,INT,FOLLOW_INT_in_literal_constraint1838); text = t.getText(); } break; case 3 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:547:25: t= FLOAT { t=(Token)input.LT(1); match(input,FLOAT,FOLLOW_FLOAT_in_literal_constraint1851); text = t.getText(); } break; case 4 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:548:25: t= BOOL { t=(Token)input.LT(1); match(input,BOOL,FOLLOW_BOOL_in_literal_constraint1862); text = t.getText(); } break; } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return text; }
|
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/75f5f3ef6a8af3fa9515d2007a16f1fd6f3ce0d0/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
7158,
67,
13364,
1435,
1216,
9539,
288,
6647,
514,
977,
31,
3639,
3155,
268,
33,
2011,
31,
1171,
202,
202,
955,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
6564,
25,
30,
4033,
30,
261,
261,
88,
33,
9469,
571,
268,
33,
6137,
571,
268,
33,
15483,
571,
268,
33,
9784,
1741,
262,
262,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
6564,
25,
30,
4033,
30,
261,
88,
33,
9469,
571,
268,
33,
6137,
571,
268,
33,
15483,
571,
268,
33,
9784,
1741,
262,
5411,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
6564,
25,
30,
4033,
30,
261,
88,
33,
9469,
571,
268,
33,
6137,
571,
268,
33,
15483,
571,
268,
33,
9784,
1741,
262,
5411,
509,
3770,
10593,
33,
24,
31,
5411,
1620,
261,
810,
18,
2534,
12,
21,
13,
262,
288,
5411,
648,
9469,
30,
7734,
3770,
10593,
33,
21,
31,
7734,
898,
31,
5411,
648,
6137,
30,
7734,
3770,
10593,
33,
22,
31,
7734,
898,
31,
5411,
648,
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,
7158,
67,
13364,
1435,
1216,
9539,
288,
6647,
514,
977,
31,
3639,
3155,
268,
33,
2011,
31,
1171,
202,
202,
955,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
6564,
25,
30,
4033,
30,
261,
261,
88,
33,
9469,
571,
268,
33,
6137,
571,
268,
33,
15483,
571,
268,
33,
9784,
1741,
262,
262,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
2
] |
||
public org.quickfix.field.ForexReq getForexReq() throws FieldNotFound { org.quickfix.field.ForexReq value = new org.quickfix.field.ForexReq();
|
public quickfix.field.ForexReq getForexReq() throws FieldNotFound { quickfix.field.ForexReq value = new quickfix.field.ForexReq();
|
public org.quickfix.field.ForexReq getForexReq() throws FieldNotFound { org.quickfix.field.ForexReq value = new org.quickfix.field.ForexReq(); getField(value); return value; }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderCancelReplaceRequest.java/clean/src/java/src/quickfix/fix44/OrderCancelReplaceRequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
13573,
92,
6113,
2812,
479,
92,
6113,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
13573,
92,
6113,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
13573,
92,
6113,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2358,
18,
19525,
904,
18,
1518,
18,
13573,
92,
6113,
2812,
479,
92,
6113,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
13573,
92,
6113,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
13573,
92,
6113,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
} if (theData.itsCheckThis) { thisObj = ScriptRuntime.getThis(thisObj); } if (theData.itsNeedsActivation) { scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args);
|
public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, NativeFunction fnOrScript, InterpreterData theData) throws JavaScriptException { if (cx.interpreterSecurityDomain != theData.securityDomain) { // If securityDomain is different, update domain in Cotext // and call self under new domain Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; try { return interpret(cx, scope, thisObj, args, fnOrScript, theData); } finally { cx.interpreterSecurityDomain = savedDomain; } } final Object DBL_MRK = Interpreter.DBL_MRK; final Scriptable undefined = Undefined.instance; final int VAR_SHFT = 0; final int maxVars = theData.itsMaxVars; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int TRY_STACK_SHFT = LOCAL_SHFT + theData.itsMaxLocals; final int STACK_SHFT = TRY_STACK_SHFT + theData.itsMaxTryDepth;// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_STACK_SHFT]: used for newtemp/usetemp// stack[TRY_STACK_SHFT <= i < STACK_SHFT]: stack of try scopes// stack[STACK_SHFT <= i < STACK_SHFT + theData.itsMaxStack]: stack data// sDbl[TRY_STACK_SHFT <= i < STACK_SHFT]: stack of try block pc, stored as doubles// sDbl[any other i]: if stack[i] is DBL_MRK, sDbl[i] holds the number value int maxFrameArray = theData.itsMaxFrameArray; if (maxFrameArray != STACK_SHFT + theData.itsMaxStack) Context.codeBug(); Object[] stack = new Object[maxFrameArray]; double[] sDbl = new double[maxFrameArray]; int stackTop = STACK_SHFT - 1; int tryStackTop = 0; // add TRY_STACK_SHFT to get real index int definedArgs = fnOrScript.argCount; if (definedArgs != 0) { if (definedArgs > args.length) { definedArgs = args.length; } for (int i = 0; i != definedArgs; ++i) { stack[VAR_SHFT + i] = args[i]; } } for (int i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } if (theData.isFunction) { if (fnOrScript.itsClosure != null) { scope = fnOrScript.itsClosure; }else if (!theData.itsUseDynamicScope) { scope = fnOrScript.getParentScope(); } }else { scope = ScriptRuntime.initScript(cx, scope, fnOrScript, thisObj, theData.itsFromEvalCode); } if (theData.itsCheckThis) { thisObj = ScriptRuntime.getThis(thisObj); } if (theData.itsNeedsActivation) { scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } DebugFrame frame = null; if (cx.debugger != null) { frame = cx.debugger.enterFrame(cx, scope, thisObj, args, (DebuggableScript)fnOrScript); } if (theData.itsNestedFunctions != null) { for (int i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope, theData.itsFromEvalCode); } Object result = undefined; byte[] iCode = theData.itsICode; String[] strings = theData.itsStringTable; int pc = 0; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; Loop: while (true) { try { switch (iCode[pc] & 0xff) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : stack[TRY_STACK_SHFT + tryStackTop] = scope; sDbl[TRY_STACK_SHFT + tryStackTop] = (double)pc; ++tryStackTop; // Skip starting pc of catch/finally blocks pc += 4; break; case TokenStream.GE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.LE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.GT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.LT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.IN : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.INSTANCEOF : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.EQ : { --stackTop; boolean valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.NE : { --stackTop; boolean valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.SHEQ : { --stackTop; boolean valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.SHNE : { --stackTop; boolean valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.IFNE : { Object val = stack[stackTop]; boolean valBln; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { double valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; } case TokenStream.IFEQ : { boolean valBln; Object val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { double valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; } case TokenStream.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : { int slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = (int)sDbl[LOCAL_SHFT + slot]; continue; } case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break Loop; case RETURN_UNDEF_ICODE : result = undefined; break Loop; case END_ICODE: break Loop; case TokenStream.BITNOT : { int rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; } case TokenStream.BITAND : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; } case TokenStream.BITOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; } case TokenStream.BITXOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; } case TokenStream.LSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; } case TokenStream.RSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; } case TokenStream.URSH : { int rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; break; } case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; } case TokenStream.NEG : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; } case TokenStream.POS : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; } case TokenStream.MUL : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; } case TokenStream.DIV : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; } case TokenStream.MOD : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; } case TokenStream.BINDNAME : { String name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; } case TokenStream.GETBASE : { String name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.getBase(scope, name); pc += 2; break; } case TokenStream.SETNAME : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; // what about class cast exception here for lhs? stack[stackTop] = ScriptRuntime.setName ((Scriptable)lhs, rhs, scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; } case TokenStream.DELPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; } case TokenStream.GETPROP : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; } case TokenStream.SETPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; } case TokenStream.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case TokenStream.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case TokenStream.PROPINC : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; } case TokenStream.PROPDEC : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; } case TokenStream.ELEMINC : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; } case TokenStream.ELEMDEC : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; } case TokenStream.GETTHIS : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; } case TokenStream.NEWTEMP : { int slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; } case TokenStream.USETEMP : { int slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; } case TokenStream.CALLSPECIAL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int lineNum = getShort(iCode, pc + 1); String name = strings[getShort(iCode, pc + 3)]; int count = getShort(iCode, pc + 5); Object[] outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, thisObj, scope, name, lineNum); pc += 6; instructionCount = cx.instructionCount; break; } case TokenStream.CALL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; int count = getShort(iCode, pc + 3); Object[] outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined) { int i = getShort(iCode, pc + 1); if (i != -1) lhs = strings[i]; } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject. getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; instructionCount = cx.instructionCount; break; } case TokenStream.NEW : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getShort(iCode, pc + 3); Object[] outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined && getShort(iCode, pc + 1) != -1) { // special code for better error message for call // to undefined lhs = strings[getShort(iCode, pc + 1)]; } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; instructionCount = cx.instructionCount; break; } case TokenStream.TYPEOF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; } case TokenStream.TYPEOFNAME : { String name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; } case TokenStream.STRING : stack[++stackTop] = strings[getShort(iCode, pc + 1)]; pc += 2; break; case SHORTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc + 1); pc += 2; break; case INTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc + 1); pc += 4; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = theData. itsDoubleTable[getShort(iCode, pc + 1)]; pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.SETVAR : { int slot = (iCode[++pc] & 0xFF); stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; break; } case TokenStream.GETVAR : { int slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; break; } case TokenStream.VARINC : { int slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; break; } case TokenStream.VARDEC : { int slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; break; } case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : { Object exception = stack[stackTop]; if (exception == DBL_MRK) exception = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(exception); } case TokenStream.JTHROW : { Object exception = stack[stackTop]; // No need to check for DBL_MRK: exception must be Exception --stackTop; if (exception instanceof JavaScriptException) throw (JavaScriptException)exception; else throw (RuntimeException)exception; } case TokenStream.ENTERWITH : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; } case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : { int slot = (iCode[++pc] & 0xFF); Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; } case TokenStream.ENUMNEXT : { int slot = (iCode[++pc] & 0xFF); Object val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime. nextEnum((Enumeration)val); break; } case TokenStream.GETPROTO : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; } case TokenStream.GETPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; } case TokenStream.GETSCOPEPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; } case TokenStream.SETPROTO : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; } case TokenStream.SETPARENT : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; } case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : { int i = getShort(iCode, pc + 1); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope, theData.itsFromEvalCode); pc += 2; break; } case TokenStream.OBJECT : { int i = getShort(iCode, pc + 1); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; } case SOURCEFILE_ICODE : cx.interpreterSourceFile = theData.itsSourceFile; break; case LINE_ICODE : case BREAKPOINT_ICODE : { int line = getShort(iCode, pc + 1); cx.interpreterLine = line; if (frame != null) { boolean breakpoint = ((iCode[pc] & 0xff) == BREAKPOINT_ICODE); frame.onLineChange(cx, line, breakpoint); } pc += 2; break; } default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (Throwable ex) { if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } final int SCRIPT_THROW = 0, ECMA = 1, RUNTIME = 2, OTHER = 3; int exType; Object catchObj = ex; // Object seen by script catch for (;;) { if (catchObj instanceof JavaScriptException) { catchObj = ScriptRuntime.unwrapJavaScriptException ((JavaScriptException)catchObj); exType = SCRIPT_THROW; } else if (catchObj instanceof EcmaError) { // an offical ECMA error object, catchObj = ((EcmaError)catchObj).getErrorObject(); exType = ECMA; } else if (catchObj instanceof RuntimeException) { if (catchObj instanceof WrappedException) { Object w = ((WrappedException) catchObj).unwrap(); if (w instanceof Throwable) { catchObj = (Throwable) w; continue; } } catchObj = null; // script can not catch this exType = RUNTIME; } else { // Error instance catchObj = null; // script can not catch this exType = OTHER; } break; } if (exType != OTHER && frame != null) { frame.onExceptionThrown(cx, ex); } boolean rethrow = true; if (exType != OTHER && tryStackTop > 0) { // Do not allow for JS to interfere with Error instances // (exType == OTHER), as they can be used to terminate // long running script --tryStackTop; int try_pc = (int)sDbl[TRY_STACK_SHFT + tryStackTop]; if (exType == SCRIPT_THROW || exType == ECMA) { // Allow JS to catch only JavaScriptException and // EcmaError int catch_pc = getTarget(iCode, try_pc + 1); if (catch_pc == try_pc) { catch_pc = 0; } if (catch_pc != 0) { // Has catch block rethrow = false; pc = catch_pc; stackTop = STACK_SHFT; stack[stackTop] = catchObj; } } if (rethrow) { int finally_pc = getTarget(iCode, try_pc + 3); if (finally_pc == try_pc + 2) { finally_pc = 0; } if (finally_pc != 0) { // has finally block rethrow = false; pc = finally_pc; stackTop = STACK_SHFT; stack[stackTop] = ex; } } } if (rethrow) { if (frame != null) { frame.onExit(cx, true, ex); } if (theData.itsNeedsActivation) { ScriptRuntime.popActivation(cx); } if (exType == SCRIPT_THROW) throw (JavaScriptException)ex; if (exType == ECMA || exType == RUNTIME) throw (RuntimeException)ex; throw (Error)ex; } // We caught an exception, // Notify instruction observer if necessary // and point pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc; // restore scope at try point scope = (Scriptable)stack[TRY_STACK_SHFT + tryStackTop]; } } if (frame != null) { frame.onExit(cx, false, result); } if (theData.itsNeedsActivation) { ScriptRuntime.popActivation(cx); } if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } return result; }
|
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/ec560db207e5820990589149586e244be050a405/Interpreter.java/buggy/src/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
282,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
282,
16717,
2083,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
326,
751,
18,
7462,
3748,
13,
288,
6647,
368,
971,
4373,
3748,
353,
3775,
16,
1089,
2461,
316,
385,
352,
408,
6647,
368,
471,
745,
365,
3613,
394,
2461,
5411,
1033,
5198,
3748,
273,
9494,
18,
2761,
11599,
4368,
3748,
31,
5411,
9494,
18,
2761,
11599,
4368,
3748,
273,
326,
751,
18,
7462,
3748,
31,
5411,
775,
288,
7734,
327,
10634,
12,
71,
92,
16,
2146,
16,
15261,
16,
833,
16,
2295,
1162,
3651,
16,
326,
751,
1769,
5411,
289,
3095,
288,
7734,
9494,
18,
2761,
11599,
4368,
3748,
273,
5198,
3748,
31,
5411,
289,
3639,
289,
3639,
727,
1033,
2383,
48,
67,
23464,
47,
273,
5294,
11599,
18,
2290,
48,
67,
23464,
47,
31,
3639,
727,
22780,
3109,
273,
22243,
18,
1336,
31,
3639,
727,
509,
8350,
67,
2664,
4464,
273,
374,
31,
3639,
727,
509,
943,
5555,
273,
326,
751,
18,
1282,
2747,
5555,
31,
3639,
727,
509,
15234,
67,
2664,
4464,
273,
8350,
67,
2664,
4464,
397,
943,
5555,
31,
3639,
727,
509,
4235,
61,
67,
21971,
67,
2664,
4464,
273,
15234,
67,
2664,
4464,
397,
326,
751,
18,
1282,
2747,
1333,
1031,
31,
3639,
727,
509,
11464,
67,
2664,
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,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
282,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
282,
16717,
2083,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
326,
751,
18,
7462,
3748,
13,
288,
6647,
368,
971,
4373,
3748,
353,
3775,
16,
1089,
2461,
316,
385,
352,
408,
6647,
368,
471,
745,
365,
3613,
394,
2461,
5411,
1033,
5198,
3748,
273,
9494,
18,
2761,
11599,
4368,
3748,
31,
5411,
9494,
18,
2761,
11599,
4368,
3748,
273,
326,
751,
18,
7462,
3748,
31,
5411,
775,
288,
7734,
327,
10634,
12,
71,
92,
16,
2
] |
|
Border margin = c.getCurrentStyle().getMarginWidth(width, height, c.getCtx());
|
Border margin = block.getMarginWidth(c, width);
|
public static void paintNormal(Context c, Box block, boolean restyle) { int width = block.getWidth(); int height = block.getHeight(); Border margin = c.getCurrentStyle().getMarginWidth(width, height, c.getCtx()); Rectangle bounds = new Rectangle(block.x + margin.left, block.y + margin.top, block.width - margin.left - margin.right, block.height - margin.top - margin.bottom); paintBackground(c, block, bounds); c.translateInsets(block); /* Q&D for now if (block instanceof TableBox) { TableRendering.paintTable(c, (TableBox) block, restyle); } else */ if (isInlineLayedOut(block)) { InlineRendering.paintInlineContext(c, block, restyle); } else { BlockRendering.paintBlockContext(c, block, restyle); } c.untranslateInsets(block); BorderPainter.paint(bounds, BorderPainter.ALL, c.getCurrentStyle(), c.getGraphics(), c.getCtx(), 0); }
|
8125 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8125/9ac58abece8ac0f02983d3b07df9656b6a59c78a/BoxRendering.java/buggy/src/java/org/xhtmlrenderer/render/BoxRendering.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
12574,
5506,
12,
1042,
276,
16,
8549,
1203,
16,
1250,
3127,
1362,
13,
288,
3639,
509,
1835,
273,
1203,
18,
588,
2384,
5621,
3639,
509,
2072,
273,
1203,
18,
588,
2686,
5621,
3639,
13525,
7333,
273,
1203,
18,
588,
9524,
2384,
12,
71,
16,
1835,
1769,
3639,
13264,
4972,
273,
394,
13264,
12,
2629,
18,
92,
397,
7333,
18,
4482,
16,
7734,
1203,
18,
93,
397,
7333,
18,
3669,
16,
7734,
1203,
18,
2819,
300,
7333,
18,
4482,
300,
7333,
18,
4083,
16,
7734,
1203,
18,
4210,
300,
7333,
18,
3669,
300,
7333,
18,
9176,
1769,
3639,
12574,
8199,
12,
71,
16,
1203,
16,
4972,
1769,
3639,
276,
18,
13929,
382,
4424,
12,
2629,
1769,
3639,
1748,
2238,
10,
40,
364,
2037,
309,
261,
2629,
1276,
3555,
3514,
13,
288,
5411,
3555,
14261,
18,
84,
1598,
1388,
12,
71,
16,
261,
1388,
3514,
13,
1203,
16,
3127,
1362,
1769,
3639,
289,
469,
1195,
309,
261,
291,
10870,
48,
528,
329,
1182,
12,
2629,
3719,
288,
5411,
16355,
14261,
18,
84,
1598,
10870,
1042,
12,
71,
16,
1203,
16,
3127,
1362,
1769,
3639,
289,
469,
288,
5411,
3914,
14261,
18,
84,
1598,
1768,
1042,
12,
71,
16,
1203,
16,
3127,
1362,
1769,
3639,
289,
3639,
276,
18,
318,
13929,
382,
4424,
12,
2629,
1769,
3639,
13525,
15775,
18,
84,
1598,
12,
10576,
16,
13525,
15775,
18,
4685,
16,
276,
18,
588,
3935,
2885,
9334,
276,
18,
588,
17558,
9334,
276,
18,
588,
6442,
9334,
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,
5506,
12,
1042,
276,
16,
8549,
1203,
16,
1250,
3127,
1362,
13,
288,
3639,
509,
1835,
273,
1203,
18,
588,
2384,
5621,
3639,
509,
2072,
273,
1203,
18,
588,
2686,
5621,
3639,
13525,
7333,
273,
1203,
18,
588,
9524,
2384,
12,
71,
16,
1835,
1769,
3639,
13264,
4972,
273,
394,
13264,
12,
2629,
18,
92,
397,
7333,
18,
4482,
16,
7734,
1203,
18,
93,
397,
7333,
18,
3669,
16,
7734,
1203,
18,
2819,
300,
7333,
18,
4482,
300,
7333,
18,
4083,
16,
7734,
1203,
18,
4210,
300,
7333,
18,
3669,
300,
7333,
18,
9176,
1769,
3639,
12574,
8199,
12,
71,
16,
1203,
16,
4972,
1769,
3639,
276,
18,
13929,
382,
4424,
12,
2629,
1769,
2
] |
if(tl.vetoJobExecution(jec.getTrigger(), jec))
|
if(tl.vetoJobExecution(jec.getTrigger(), jec)) {
|
public boolean notifyTriggerListenersFired(JobExecutionContext jec) throws SchedulerException { // build a list of all trigger listeners that are to be notified... List triggerListeners = buildTriggerListenerList(jec.getTrigger() .getTriggerListenerNames()); boolean vetoedExecution = false; // notify all trigger listeners in the list java.util.Iterator itr = triggerListeners.iterator(); while (itr.hasNext()) { TriggerListener tl = (TriggerListener) itr.next(); try { tl.triggerFired(jec.getTrigger(), jec); if(tl.vetoJobExecution(jec.getTrigger(), jec)) vetoedExecution = true; } catch (Exception e) { SchedulerException se = new SchedulerException( "TriggerListener '" + tl.getName() + "' threw exception: " + e.getMessage(), e); se.setErrorCode(SchedulerException.ERR_TRIGGER_LISTENER); throw se; } } return vetoedExecution; }
|
55677 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55677/cf7f5f77ce5bb6364145230d302b86f1cdadea88/QuartzScheduler.java/clean/src/java/org/quartz/core/QuartzScheduler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
5066,
6518,
5583,
42,
2921,
12,
31498,
1042,
525,
557,
13,
5411,
1216,
12620,
503,
288,
3639,
368,
1361,
279,
666,
434,
777,
3080,
4679,
716,
854,
358,
506,
18791,
2777,
3639,
987,
3080,
5583,
273,
1361,
6518,
2223,
682,
12,
78,
557,
18,
588,
6518,
1435,
7734,
263,
588,
6518,
2223,
1557,
10663,
3639,
1250,
331,
11453,
329,
3210,
273,
629,
31,
7734,
368,
5066,
777,
3080,
4679,
316,
326,
666,
3639,
2252,
18,
1367,
18,
3198,
11176,
273,
3080,
5583,
18,
9838,
5621,
3639,
1323,
261,
305,
86,
18,
5332,
2134,
10756,
288,
5411,
11321,
2223,
8332,
273,
261,
6518,
2223,
13,
11176,
18,
4285,
5621,
5411,
775,
288,
7734,
8332,
18,
10668,
42,
2921,
12,
78,
557,
18,
588,
6518,
9334,
525,
557,
1769,
27573,
309,
12,
6172,
18,
90,
11453,
31498,
12,
78,
557,
18,
588,
6518,
9334,
525,
557,
3719,
288,
10792,
331,
11453,
329,
3210,
273,
638,
31,
5411,
289,
1044,
261,
503,
425,
13,
288,
7734,
12620,
503,
695,
273,
394,
12620,
503,
12,
13491,
315,
6518,
2223,
2119,
397,
8332,
18,
17994,
1435,
27573,
397,
2491,
21146,
1520,
30,
315,
397,
425,
18,
24906,
9334,
425,
1769,
7734,
695,
18,
542,
12012,
12,
11870,
503,
18,
9712,
67,
6566,
27399,
67,
26421,
1769,
7734,
604,
695,
31,
5411,
289,
3639,
289,
7734,
327,
331,
11453,
329,
3210,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
5066,
6518,
5583,
42,
2921,
12,
31498,
1042,
525,
557,
13,
5411,
1216,
12620,
503,
288,
3639,
368,
1361,
279,
666,
434,
777,
3080,
4679,
716,
854,
358,
506,
18791,
2777,
3639,
987,
3080,
5583,
273,
1361,
6518,
2223,
682,
12,
78,
557,
18,
588,
6518,
1435,
7734,
263,
588,
6518,
2223,
1557,
10663,
3639,
1250,
331,
11453,
329,
3210,
273,
629,
31,
7734,
368,
5066,
777,
3080,
4679,
316,
326,
666,
3639,
2252,
18,
1367,
18,
3198,
11176,
273,
3080,
5583,
18,
9838,
5621,
3639,
1323,
261,
305,
86,
18,
5332,
2134,
10756,
288,
5411,
11321,
2223,
8332,
273,
261,
6518,
2223,
13,
11176,
18,
4285,
5621,
5411,
775,
288,
7734,
8332,
18,
10668,
42,
2
] |
throw runtime.newArgumentError( "wrong # of arguments(" + args.length + " for " + required() + ")");
|
throw runtime.newArgumentError("wrong number of arguments(" + args.length + " for " + required() + ")");
|
public void checkArity(Ruby runtime, IRubyObject[] args) { if (isFixed()) { if (args.length != required()) { throw runtime.newArgumentError( "wrong # of arguments(" + args.length + " for " + required() + ")"); } } else { if (args.length < required()) { throw runtime.newArgumentError("wrong # of arguments(at least " + required() + ")"); } } }
|
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/765ab8f2eeed4e7c0c131b35b7ecadb0ee2855fd/Arity.java/buggy/src/org/jruby/runtime/Arity.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
866,
686,
560,
12,
54,
10340,
3099,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
309,
261,
291,
7505,
10756,
288,
5411,
309,
261,
1968,
18,
2469,
480,
1931,
10756,
288,
7734,
604,
3099,
18,
2704,
1379,
668,
12,
4766,
3639,
315,
21530,
468,
434,
1775,
2932,
397,
833,
18,
2469,
397,
315,
364,
315,
397,
1931,
1435,
397,
7310,
1769,
5411,
289,
3639,
289,
469,
288,
5411,
309,
261,
1968,
18,
2469,
411,
1931,
10756,
288,
7734,
604,
3099,
18,
2704,
1379,
668,
2932,
21530,
468,
434,
1775,
12,
270,
4520,
315,
397,
1931,
1435,
397,
7310,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
918,
866,
686,
560,
12,
54,
10340,
3099,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
309,
261,
291,
7505,
10756,
288,
5411,
309,
261,
1968,
18,
2469,
480,
1931,
10756,
288,
7734,
604,
3099,
18,
2704,
1379,
668,
12,
4766,
3639,
315,
21530,
468,
434,
1775,
2932,
397,
833,
18,
2469,
397,
315,
364,
315,
397,
1931,
1435,
397,
7310,
1769,
5411,
289,
3639,
289,
469,
288,
5411,
309,
261,
1968,
18,
2469,
411,
1931,
10756,
288,
7734,
604,
3099,
18,
2704,
1379,
668,
2932,
21530,
468,
434,
1775,
12,
270,
4520,
315,
397,
1931,
1435,
397,
7310,
1769,
5411,
289,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
modelTreePropertyChange(evt); }
|
modelTreePropertyChange(evt); }
|
public void propertyChange(java.beans.PropertyChangeEvent evt) { modelTreePropertyChange(evt); }
|
10434 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10434/b68969e9e4901b3e7c70994e02e2cf6ea99cebd5/ModelTreePanel.java/buggy/trunk/src/verifier/ModelTreePanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
1272,
3043,
12,
6290,
18,
2196,
634,
18,
1396,
20930,
6324,
13,
288,
3639,
938,
2471,
1396,
3043,
12,
73,
11734,
1769,
1377,
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,
4202,
1071,
918,
1272,
3043,
12,
6290,
18,
2196,
634,
18,
1396,
20930,
6324,
13,
288,
3639,
938,
2471,
1396,
3043,
12,
73,
11734,
1769,
1377,
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
] |
writeNoCycleLn("/RESUPPLY SUPPLY TASKS"); writeNoCycleLn("RESUPPLY PROJECTSUPPLY TASKS type=PROJTASKS");
|
writeNoCycleLn("</RESUPPLY SUPPLY TASKS"); writeNoCycleLn("<RESUPPLY PROJECTSUPPLY TASKS type=PROJTASKS");
|
protected void logResupplyToXMLOutput(ArrayList resupplyList, ArrayList projResupplyList, long aCycleStamp) { cycleStamp = aCycleStamp; writeNoCycleLn("RESUPPLY SUPPLY TASKS type=TASKS"); logTasks(resupplyList,aCycleStamp,false); writeNoCycleLn("/RESUPPLY SUPPLY TASKS"); writeNoCycleLn("RESUPPLY PROJECTSUPPLY TASKS type=PROJTASKS"); logTasks(projResupplyList,aCycleStamp,false); writeNoCycleLn("/RESUPPLY PROJECTSUPPLY TASKS"); writeNoCycleLn("RESUPPLY SUPPLY TASK ALLOCATION RESULTS type=ALLOCATION_RESULTS"); excelLogARs(resupplyList,aCycleStamp); writeNoCycleLn("/RESUPPLY SUPPLY TASK ALLOCATION RESULTS"); writeNoCycleLn("RESUPPLY PROJECTSUPPLY TASK ALLOCATION RESULTS type=ALLOCATION_RESULTS"); excelLogARs(projResupplyList,aCycleStamp); writeNoCycleLn("/RESUPPLY PROJECTSUPPLY TASK ALLOCATION RESULTS"); }
|
11319 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11319/393e82d7def4ac07c3435fbe8b3b2ee006a916c8/LogisticsInventoryFormatter.java/buggy/bbn/src/org/cougaar/logistics/plugin/inventory/LogisticsInventoryFormatter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
613,
607,
416,
1283,
774,
4201,
1447,
12,
19558,
400,
416,
1283,
682,
16,
25083,
225,
2407,
10296,
607,
416,
1283,
682,
16,
25083,
225,
1525,
279,
13279,
8860,
13,
288,
202,
13946,
8860,
273,
279,
13279,
8860,
31,
202,
2626,
2279,
13279,
13780,
2932,
7031,
3079,
23893,
16459,
23893,
19609,
55,
618,
33,
15580,
55,
8863,
202,
1330,
6685,
12,
455,
416,
1283,
682,
16,
69,
13279,
8860,
16,
5743,
1769,
202,
2626,
2279,
13279,
13780,
2932,
19,
7031,
3079,
23893,
16459,
23893,
19609,
55,
8863,
202,
2626,
2279,
13279,
13780,
2932,
7031,
3079,
23893,
22489,
13272,
23893,
19609,
55,
618,
33,
3373,
46,
15580,
55,
8863,
202,
1330,
6685,
12,
17995,
607,
416,
1283,
682,
16,
69,
13279,
8860,
16,
5743,
1769,
202,
2626,
2279,
13279,
13780,
2932,
19,
7031,
3079,
23893,
22489,
13272,
23893,
19609,
55,
8863,
202,
2626,
2279,
13279,
13780,
2932,
7031,
3079,
23893,
16459,
23893,
19609,
7981,
15277,
17210,
55,
618,
33,
1013,
15277,
67,
20602,
8863,
202,
24121,
1343,
985,
87,
12,
455,
416,
1283,
682,
16,
69,
13279,
8860,
1769,
202,
2626,
2279,
13279,
13780,
2932,
19,
7031,
3079,
23893,
16459,
23893,
19609,
7981,
15277,
17210,
55,
8863,
202,
2626,
2279,
13279,
13780,
2932,
7031,
3079,
23893,
22489,
13272,
23893,
19609,
7981,
15277,
17210,
55,
618,
33,
1013,
15277,
67,
20602,
8863,
202,
24121,
1343,
985,
87,
12,
17995,
607,
416,
1283,
682,
16,
69,
13279,
8860,
1769,
202,
2626,
2279,
13279,
13780,
2932,
19,
7031,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
613,
607,
416,
1283,
774,
4201,
1447,
12,
19558,
400,
416,
1283,
682,
16,
25083,
225,
2407,
10296,
607,
416,
1283,
682,
16,
25083,
225,
1525,
279,
13279,
8860,
13,
288,
202,
13946,
8860,
273,
279,
13279,
8860,
31,
202,
2626,
2279,
13279,
13780,
2932,
7031,
3079,
23893,
16459,
23893,
19609,
55,
618,
33,
15580,
55,
8863,
202,
1330,
6685,
12,
455,
416,
1283,
682,
16,
69,
13279,
8860,
16,
5743,
1769,
202,
2626,
2279,
13279,
13780,
2932,
19,
7031,
3079,
23893,
16459,
23893,
19609,
55,
8863,
202,
2626,
2279,
13279,
13780,
2932,
7031,
3079,
23893,
22489,
13272,
23893,
19609,
55,
618,
33,
3373,
46,
15580,
55,
8863,
202,
1330,
6685,
12,
17995,
607,
416,
1283,
2
] |
contexts.clear();
|
public void stop() { running = false; contexts.clear(); }
|
51914 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51914/4d62f6a3b78c05c8b8897b60d66a69412baa62b4/MessageProcessor2Threads.java/buggy/ecologylab/services/nio/two_threaded/MessageProcessor2Threads.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2132,
1435,
565,
288,
3639,
3549,
273,
629,
31,
5375,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2132,
1435,
565,
288,
3639,
3549,
273,
629,
31,
5375,
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
] |
|
String title = getTitle ();
|
String title = getTitle();
|
protected String paramString () { String title = getTitle (); String resizable = ""; if (isResizable ()) resizable = ",resizable"; String state = ""; switch (getState ()) { case NORMAL: state = ",normal"; break; case ICONIFIED: state = ",iconified"; break; case MAXIMIZED_BOTH: state = ",maximized-both"; break; case MAXIMIZED_HORIZ: state = ",maximized-horiz"; break; case MAXIMIZED_VERT: state = ",maximized-vert"; break; } return super.paramString () + ",title=" + title + resizable + state; }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/Frame.java/clean/core/src/classpath/java/java/awt/Frame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
514,
579,
780,
1832,
225,
288,
565,
514,
2077,
273,
10786,
5621,
565,
514,
400,
6934,
273,
1408,
31,
565,
309,
261,
291,
607,
6934,
1832,
13,
1377,
400,
6934,
273,
3104,
455,
6934,
14432,
565,
514,
919,
273,
1408,
31,
565,
1620,
261,
588,
1119,
1832,
13,
1377,
288,
1377,
648,
16362,
30,
3639,
919,
273,
3104,
6130,
14432,
3639,
898,
31,
1377,
648,
467,
2248,
13519,
30,
3639,
919,
273,
3104,
3950,
939,
14432,
3639,
898,
31,
1377,
648,
4552,
3445,
24131,
67,
38,
18307,
30,
3639,
919,
273,
3104,
1896,
381,
1235,
17,
18237,
14432,
3639,
898,
31,
1377,
648,
4552,
3445,
24131,
67,
44,
11581,
30,
3639,
919,
273,
3104,
1896,
381,
1235,
17,
76,
5331,
14432,
3639,
898,
31,
1377,
648,
4552,
3445,
24131,
67,
21654,
30,
3639,
919,
273,
3104,
1896,
381,
1235,
17,
1097,
14432,
3639,
898,
31,
1377,
289,
565,
327,
2240,
18,
891,
780,
1832,
397,
3104,
2649,
1546,
397,
2077,
397,
400,
6934,
397,
919,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
514,
579,
780,
1832,
225,
288,
565,
514,
2077,
273,
10786,
5621,
565,
514,
400,
6934,
273,
1408,
31,
565,
309,
261,
291,
607,
6934,
1832,
13,
1377,
400,
6934,
273,
3104,
455,
6934,
14432,
565,
514,
919,
273,
1408,
31,
565,
1620,
261,
588,
1119,
1832,
13,
1377,
288,
1377,
648,
16362,
30,
3639,
919,
273,
3104,
6130,
14432,
3639,
898,
31,
1377,
648,
467,
2248,
13519,
30,
3639,
919,
273,
3104,
3950,
939,
14432,
3639,
898,
31,
1377,
648,
4552,
3445,
24131,
67,
38,
18307,
30,
3639,
919,
273,
3104,
1896,
381,
1235,
17,
18237,
14432,
3639,
898,
31,
1377,
648,
4552,
3445,
24131,
67,
44,
11581,
30,
3639,
919,
273,
3104,
1896,
381,
1235,
2
] |
Entry entry = (Entry) super.clone();
|
Entry<K, V> entry = (Entry<K, V>) super.clone();
|
public Object clone() { Entry entry = (Entry) super.clone(); if (next != null) entry.next = (Entry) next.clone(); return entry; }
|
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/41f9233159b665323ba7090a30e06a881c4e4a20/Hashtable.java/buggy/modules/luni/src/main/java/java/util/Hashtable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1033,
3236,
1435,
288,
1082,
202,
1622,
1241,
273,
261,
1622,
13,
2240,
18,
14056,
5621,
1082,
202,
430,
261,
4285,
480,
446,
13,
9506,
202,
4099,
18,
4285,
273,
261,
1622,
13,
1024,
18,
14056,
5621,
1082,
202,
2463,
1241,
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,
0,
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,
3196,
202,
482,
1033,
3236,
1435,
288,
1082,
202,
1622,
1241,
273,
261,
1622,
13,
2240,
18,
14056,
5621,
1082,
202,
430,
261,
4285,
480,
446,
13,
9506,
202,
4099,
18,
4285,
273,
261,
1622,
13,
1024,
18,
14056,
5621,
1082,
202,
2463,
1241,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
versionsContentModel.addElement(new VersionContentCell( MessageFormat.format("{0} - {1}", document.getName(), draft.getState(document))));
|
contents.add(new VersionContentCell(document, draft.getState(document)));
|
public void setDraft(final Container container, final ContainerDraft draft) { this.container = container; if (null != draft) { versionsModel.addElement(new VersionCell( MessageFormat.format("Draft - {0} documents.", draft.getDocumentCount()))); for (final Document document : draft.getDocuments()) { versionsContentModel.addElement(new VersionContentCell( MessageFormat.format("{0} - {1}", document.getName(), draft.getState(document)))); } } }
|
53635 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53635/17ab82b200739feb3b03a39b4be20f360e8c2290/ContainerVersionsPanel.java/buggy/local/browser/src/main/java/com/thinkparity/ophelia/browser/application/browser/display/renderer/tab/container/ContainerVersionsPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
12714,
12,
6385,
4039,
1478,
16,
727,
4039,
12714,
12246,
13,
288,
3639,
333,
18,
3782,
273,
1478,
31,
3639,
309,
261,
2011,
480,
12246,
13,
288,
5411,
5244,
1488,
18,
1289,
1046,
12,
2704,
4049,
4020,
12,
10792,
17377,
18,
2139,
2932,
12714,
300,
288,
20,
97,
7429,
1199,
16,
18701,
12246,
18,
588,
2519,
1380,
1435,
3719,
1769,
5411,
364,
261,
6385,
4319,
1668,
294,
12246,
18,
588,
12922,
10756,
288,
7734,
5244,
1350,
1488,
18,
1289,
1046,
12,
2704,
4049,
1350,
4020,
12,
13491,
17377,
18,
2139,
2932,
95,
20,
97,
300,
288,
21,
1532,
16,
1668,
18,
17994,
9334,
18701,
12246,
18,
588,
1119,
12,
5457,
3719,
10019,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
12714,
12,
6385,
4039,
1478,
16,
727,
4039,
12714,
12246,
13,
288,
3639,
333,
18,
3782,
273,
1478,
31,
3639,
309,
261,
2011,
480,
12246,
13,
288,
5411,
5244,
1488,
18,
1289,
1046,
12,
2704,
4049,
4020,
12,
10792,
17377,
18,
2139,
2932,
12714,
300,
288,
20,
97,
7429,
1199,
16,
18701,
12246,
18,
588,
2519,
1380,
1435,
3719,
1769,
5411,
364,
261,
6385,
4319,
1668,
294,
12246,
18,
588,
12922,
10756,
288,
7734,
5244,
1350,
1488,
18,
1289,
1046,
12,
2704,
4049,
1350,
4020,
12,
13491,
17377,
18,
2139,
2932,
95,
20,
97,
300,
288,
21,
1532,
16,
1668,
18,
17994,
9334,
18701,
12246,
18,
588,
1119,
12,
5457,
3719,
10019,
5411,
289,
3639,
2
] |
public static RubyBinding newBinding(IRuby runtime) { ThreadContext context = runtime.getCurrentContext(); RubyModule wrapper = context.getWrapper(); Iter iter = context.getCurrentIter(); Frame frame = context.getPreviousFrame(); if (frame == null) { frame = context.getCurrentFrame(); } DynamicVariableSet dynVars = context.getCurrentDynamicVars(); Block bindingBlock = Block.createBinding(wrapper, iter, frame, dynVars); RubyBinding newBinding = new RubyBinding(runtime, runtime.getClass("Binding"), bindingBlock, context.getRubyClass()); return newBinding;
|
public static RubyBinding newBinding(IRuby runtime, Block block) { return new RubyBinding(runtime, runtime.getClass("Binding"), block, block.getKlass());
|
public static RubyBinding newBinding(IRuby runtime) { ThreadContext context = runtime.getCurrentContext(); // FIXME: We should be cloning, not reusing: frame, scope, dynvars, and potentially iter/block info RubyModule wrapper = context.getWrapper(); Iter iter = context.getCurrentIter(); Frame frame = context.getPreviousFrame(); // for TOPLEVEL_BINDING if (frame == null) { frame = context.getCurrentFrame(); } DynamicVariableSet dynVars = context.getCurrentDynamicVars(); Block bindingBlock = Block.createBinding(wrapper, iter, frame, dynVars); RubyBinding newBinding = new RubyBinding(runtime, runtime.getClass("Binding"), bindingBlock, context.getRubyClass()); return newBinding; }
|
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/62395b140d1fb0b5b75ba224eb0f4b564f70979b/RubyBinding.java/buggy/src/org/jruby/RubyBinding.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
5250,
394,
5250,
12,
7937,
10340,
3099,
13,
288,
3639,
4884,
1042,
819,
273,
3099,
18,
588,
3935,
1042,
5621,
7734,
368,
9852,
30,
1660,
1410,
506,
927,
22470,
16,
486,
283,
9940,
30,
2623,
16,
2146,
16,
19417,
4699,
16,
471,
13935,
1400,
19,
2629,
1123,
3639,
19817,
3120,
4053,
273,
819,
18,
588,
3611,
5621,
3639,
3016,
1400,
273,
819,
18,
588,
3935,
2360,
5621,
3639,
8058,
2623,
273,
819,
18,
588,
8351,
3219,
5621,
3639,
368,
364,
18680,
10398,
67,
2739,
3639,
309,
261,
3789,
422,
446,
13,
288,
5411,
2623,
273,
819,
18,
588,
3935,
3219,
5621,
3639,
289,
3639,
12208,
3092,
694,
19417,
5555,
273,
819,
18,
588,
3935,
9791,
5555,
5621,
3639,
3914,
5085,
1768,
273,
3914,
18,
2640,
5250,
12,
8376,
16,
1400,
16,
2623,
16,
19417,
5555,
1769,
3639,
19817,
5250,
394,
5250,
273,
394,
19817,
5250,
12,
9448,
16,
3099,
18,
588,
797,
2932,
5250,
6,
3631,
5085,
1768,
16,
819,
18,
588,
54,
10340,
797,
10663,
3639,
327,
394,
5250,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
5250,
394,
5250,
12,
7937,
10340,
3099,
13,
288,
3639,
4884,
1042,
819,
273,
3099,
18,
588,
3935,
1042,
5621,
7734,
368,
9852,
30,
1660,
1410,
506,
927,
22470,
16,
486,
283,
9940,
30,
2623,
16,
2146,
16,
19417,
4699,
16,
471,
13935,
1400,
19,
2629,
1123,
3639,
19817,
3120,
4053,
273,
819,
18,
588,
3611,
5621,
3639,
3016,
1400,
273,
819,
18,
588,
3935,
2360,
5621,
3639,
8058,
2623,
273,
819,
18,
588,
8351,
3219,
5621,
3639,
368,
364,
18680,
10398,
67,
2739,
3639,
309,
261,
3789,
422,
446,
13,
288,
5411,
2623,
273,
819,
18,
588,
3935,
3219,
5621,
3639,
289,
3639,
12208,
3092,
694,
19417,
5555,
273,
819,
18,
588,
3935,
9791,
2
] |
decls = tu.getDeclarations(fieldref.getFieldName().resolveBinding());
|
decls = tu.getDeclarationsInAST(fieldref.getFieldName().resolveBinding());
|
public void testSimpleStruct() throws Exception { StringBuffer buff = new StringBuffer(); buff.append("typedef struct {\n"); //$NON-NLS-1$ buff.append(" int x;\n"); //$NON-NLS-1$ buff.append("} S;\n"); //$NON-NLS-1$ buff.append("void f() {\n"); //$NON-NLS-1$ buff.append(" S myS;\n"); //$NON-NLS-1$ buff.append(" myS.x = 5;"); //$NON-NLS-1$ buff.append("}"); //$NON-NLS-1$ IASTTranslationUnit tu = parse(buff.toString(), ParserLanguage.C); IASTSimpleDeclaration decl = (IASTSimpleDeclaration) tu .getDeclarations()[0]; IASTCompositeTypeSpecifier type = (IASTCompositeTypeSpecifier) decl .getDeclSpecifier(); // it's a typedef assertEquals(IASTDeclSpecifier.sc_typedef, type.getStorageClass()); // this an anonymous struct IASTName name_struct = type.getName(); assertTrue(name_struct.isDeclaration()); assertFalse(name_struct.isReference()); assertEquals("", name_struct.toString()); //$NON-NLS-1$ // member - x IASTSimpleDeclaration decl_x = (IASTSimpleDeclaration) type .getMembers()[0]; IASTSimpleDeclSpecifier spec_x = (IASTSimpleDeclSpecifier) decl_x .getDeclSpecifier(); // it's an int assertEquals(IASTSimpleDeclSpecifier.t_int, spec_x.getType()); IASTDeclarator tor_x = decl_x.getDeclarators()[0]; IASTName name_x = tor_x.getName(); assertEquals("x", name_x.toString()); //$NON-NLS-1$ // declarator S IASTDeclarator tor_S = decl.getDeclarators()[0]; IASTName name_S = tor_S.getName(); assertEquals("S", name_S.toString()); //$NON-NLS-1$ // function f IASTFunctionDefinition def_f = (IASTFunctionDefinition) tu .getDeclarations()[1]; // f's body IASTCompoundStatement body_f = (IASTCompoundStatement) def_f.getBody(); // the declaration statement for myS IASTDeclarationStatement declstmt_myS = (IASTDeclarationStatement) body_f .getStatements()[0]; // the declaration for myS IASTSimpleDeclaration decl_myS = (IASTSimpleDeclaration) declstmt_myS .getDeclaration(); // the type specifier for myS IASTNamedTypeSpecifier type_spec_myS = (IASTNamedTypeSpecifier) decl_myS .getDeclSpecifier(); // the type name for myS IASTName name_type_myS = type_spec_myS.getName(); // the declarator for myS IASTDeclarator tor_myS = decl_myS.getDeclarators()[0]; // the name for myS IASTName name_myS = tor_myS.getName(); // the assignment expression statement IASTExpressionStatement exprstmt = (IASTExpressionStatement) body_f .getStatements()[1]; // the assignment expression IASTBinaryExpression assexpr = (IASTBinaryExpression) exprstmt .getExpression(); // the field reference to myS.x IASTFieldReference fieldref = (IASTFieldReference) assexpr .getOperand1(); // the reference to myS IASTIdExpression ref_myS = (IASTIdExpression) fieldref.getFieldOwner(); IASTLiteralExpression lit_5 = (IASTLiteralExpression) assexpr .getOperand2(); assertEquals("5", lit_5.toString()); //$NON-NLS-1$ // Logical Bindings In Test ICompositeType type_struct = (ICompositeType) name_struct .resolveBinding(); ITypedef typedef_S = (ITypedef) name_S.resolveBinding(); // make sure the typedef is hooked up correctly assertEquals(type_struct, typedef_S.getType()); // the typedef S for myS ITypedef typedef_myS = (ITypedef) name_type_myS.resolveBinding(); assertEquals(typedef_S, typedef_myS); // get the real type for S which is our anonymous struct ICompositeType type_myS = (ICompositeType) typedef_myS.getType(); assertEquals(type_myS, type_struct); // the variable myS IVariable var_myS = (IVariable) name_myS.resolveBinding(); assertEquals(typedef_S, var_myS.getType()); assertEquals(var_myS, ref_myS.getName().resolveBinding()); IField field_x = (IField) name_x.resolveBinding(); assertEquals(field_x, fieldref.getFieldName().resolveBinding()); // test tu.getDeclarations(IBinding) IASTName[] decls = tu.getDeclarations(name_struct.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_struct); decls = tu.getDeclarations(name_x.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_x); decls = tu.getDeclarations(def_f.getDeclarator().getName() .resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], def_f.getDeclarator().getName()); decls = tu.getDeclarations(name_S.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_S); decls = tu.getDeclarations(name_myS.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_myS); decls = tu.getDeclarations(ref_myS.getName().resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_myS); decls = tu.getDeclarations(fieldref.getFieldName().resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_x); }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/75cbff035e927043ff1116bbd1e33e89ab93b9cb/AST2Tests.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5784,
3823,
1435,
1216,
1185,
288,
3639,
6674,
6139,
273,
394,
6674,
5621,
3639,
6139,
18,
6923,
2932,
723,
536,
1958,
18890,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
6139,
18,
6923,
2932,
565,
509,
619,
9747,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
6139,
18,
6923,
2932,
97,
348,
9747,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
6139,
18,
6923,
2932,
6459,
284,
1435,
18890,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
6139,
18,
6923,
2932,
565,
348,
3399,
55,
9747,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
6139,
18,
6923,
2932,
565,
3399,
55,
18,
92,
273,
1381,
4868,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
6139,
18,
6923,
2932,
1532,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
467,
9053,
6717,
2802,
28325,
273,
1109,
12,
20664,
18,
10492,
9334,
6783,
3779,
18,
39,
1769,
3639,
467,
9053,
5784,
6094,
3496,
273,
261,
45,
9053,
5784,
6094,
13,
28325,
7734,
263,
588,
21408,
1435,
63,
20,
15533,
3639,
467,
9053,
9400,
559,
21416,
618,
273,
261,
45,
9053,
9400,
559,
21416,
13,
3496,
7734,
263,
588,
3456,
21416,
5621,
3639,
368,
518,
1807,
279,
618,
536,
3639,
1815,
8867,
12,
45,
9053,
3456,
21416,
18,
1017,
67,
723,
536,
16,
618,
18,
588,
3245,
797,
10663,
3639,
368,
333,
392,
13236,
1958,
3639,
467,
9053,
461,
508,
67,
1697,
273,
618,
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,
1071,
918,
1842,
5784,
3823,
1435,
1216,
1185,
288,
3639,
6674,
6139,
273,
394,
6674,
5621,
3639,
6139,
18,
6923,
2932,
723,
536,
1958,
18890,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
6139,
18,
6923,
2932,
565,
509,
619,
9747,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
6139,
18,
6923,
2932,
97,
348,
9747,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
6139,
18,
6923,
2932,
6459,
284,
1435,
18890,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
6139,
18,
6923,
2932,
565,
348,
3399,
55,
9747,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
6139,
18,
6923,
2932,
565,
3399,
55,
18,
92,
273,
1381,
2
] |
if (null != getSourceBase() && !getSourceBase().equals("")) {
|
if (null != getSourceBase() && !getSourceBase().getName().equals("")) {
|
private Commandline setupWsimportArgs() { Commandline cmd = new Commandline(); // d option if (null != getBase() && !getBase().equals("")) { cmd.createArgument().setValue("-d"); cmd.createArgument().setFile(getBase()); } // g option if (getDebug()) { cmd.createArgument().setValue("-g"); } // httpproxy option if (getProxyServer() != null) { String host = getProxyServer().getHost(); if (host != null && !host.equals("")) { String proxyVal = "-httpproxy:" + host; if (getProxyServer().getPort() != -1) { proxyVal += ":" + getProxyServer().getPort(); } cmd.createArgument().setValue(proxyVal); } } // keep option if (getKeep()) { cmd.createArgument().setValue("-keep"); } // nd option if (null != getNonClassDir() && !getNonClassDir().equals("")) { cmd.createArgument().setValue("-nd"); cmd.createArgument().setFile(getNonClassDir()); } // optimize option if (getOptimize()) { cmd.createArgument().setValue("-O"); } // s option if (null != getSourceBase() && !getSourceBase().equals("")) { cmd.createArgument().setValue("-s"); cmd.createArgument().setFile(getSourceBase()); } // verbose option if (getVerbose()) { cmd.createArgument().setValue("-verbose"); } // version option if (getVersion()) { cmd.createArgument().setValue("-version"); } //wsdlFile if(getWsdlFile() != null){ cmd.createArgument().setValue(getWsdlFile()); } if(getBinding() != null){ cmd.createArgument().setValue("-b"); cmd.createArgument().setFile(new File (getBinding())); } if(!bindingFiles.isEmpty()){ for(File binding : bindingFiles){ cmd.createArgument().setValue("-b"); cmd.createArgument().setFile(binding); } } return cmd; }
|
9667 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9667/b8e15b71cac687d4797f057394115a7a647d6616/WsImport.java/clean/jaxws-ri/tools/wscompile/src/com/sun/tools/ws/ant/WsImport.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3498,
1369,
3875,
15444,
5666,
2615,
1435,
288,
3639,
3498,
1369,
1797,
273,
394,
3498,
1369,
5621,
3639,
368,
302,
1456,
3639,
309,
261,
2011,
480,
8297,
1435,
597,
401,
588,
2171,
7675,
14963,
2932,
6,
3719,
288,
5411,
1797,
18,
2640,
1379,
7675,
542,
620,
2932,
17,
72,
8863,
5411,
1797,
18,
2640,
1379,
7675,
542,
812,
12,
588,
2171,
10663,
3639,
289,
3639,
368,
314,
1456,
3639,
309,
261,
588,
2829,
10756,
288,
5411,
1797,
18,
2640,
1379,
7675,
542,
620,
2932,
17,
75,
8863,
3639,
289,
3639,
368,
1062,
5656,
1456,
3639,
309,
261,
588,
3886,
2081,
1435,
480,
446,
13,
288,
5411,
514,
1479,
273,
18992,
2081,
7675,
588,
2594,
5621,
5411,
309,
261,
2564,
480,
446,
597,
401,
2564,
18,
14963,
2932,
6,
3719,
288,
7734,
514,
2889,
3053,
273,
3701,
2505,
5656,
2773,
397,
1479,
31,
7734,
309,
261,
588,
3886,
2081,
7675,
588,
2617,
1435,
480,
300,
21,
13,
288,
10792,
2889,
3053,
1011,
6153,
397,
18992,
2081,
7675,
588,
2617,
5621,
7734,
289,
7734,
1797,
18,
2640,
1379,
7675,
542,
620,
12,
5656,
3053,
1769,
5411,
289,
3639,
289,
3639,
368,
3455,
1456,
3639,
309,
261,
588,
11523,
10756,
288,
5411,
1797,
18,
2640,
1379,
7675,
542,
620,
2932,
17,
10102,
8863,
3639,
289,
3639,
368,
5346,
1456,
3639,
309,
261,
2011,
480,
28207,
797,
1621,
1435,
597,
401,
588,
3989,
797,
1621,
7675,
14963,
2932,
6,
3719,
288,
5411,
1797,
18,
2640,
1379,
7675,
542,
620,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3498,
1369,
3875,
15444,
5666,
2615,
1435,
288,
3639,
3498,
1369,
1797,
273,
394,
3498,
1369,
5621,
3639,
368,
302,
1456,
3639,
309,
261,
2011,
480,
8297,
1435,
597,
401,
588,
2171,
7675,
14963,
2932,
6,
3719,
288,
5411,
1797,
18,
2640,
1379,
7675,
542,
620,
2932,
17,
72,
8863,
5411,
1797,
18,
2640,
1379,
7675,
542,
812,
12,
588,
2171,
10663,
3639,
289,
3639,
368,
314,
1456,
3639,
309,
261,
588,
2829,
10756,
288,
5411,
1797,
18,
2640,
1379,
7675,
542,
620,
2932,
17,
75,
8863,
3639,
289,
3639,
368,
1062,
5656,
1456,
3639,
309,
261,
588,
3886,
2081,
1435,
480,
446,
13,
288,
5411,
514,
1479,
273,
18992,
2081,
7675,
588,
2594,
5621,
5411,
309,
2
] |
public static void openNewJINIHostDialog(java.awt.Component parentComponent, WorldObject worldObject, IC2DMessageLogger logger) {
|
public static void openNewJINIHostDialog( java.awt.Component parentComponent, WorldObject worldObject, IC2DMessageLogger logger) {
|
public static void openNewJINIHostDialog(java.awt.Component parentComponent, WorldObject worldObject, IC2DMessageLogger logger) { String initialHostValue = "localhost"; try { initialHostValue = java.net.InetAddress.getLocalHost().getHostName(); } catch (java.net.UnknownHostException e) {} Object result = javax.swing.JOptionPane.showInputDialog( parentComponent, // Component parentComponent, "Please enter the name or the IP of the host to monitor :", // Object message, "Adding a host to monitor", // String title, javax.swing.JOptionPane.PLAIN_MESSAGE, // int messageType, null, // Icon icon, null, // Object[] selectionValues, initialHostValue // Object initialSelectionValue) ); if (result == null || (! (result instanceof String))) return; String host = (String) result; worldObject.addHosts(host); }
|
23362 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/23362/a2cd9b6d05be6ee9dc798dfafe5692ec64040fb8/DialogUtils.java/buggy/src/org/objectweb/proactive/ic2d/gui/util/DialogUtils.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
1696,
1908,
46,
12772,
2594,
6353,
12,
2252,
18,
2219,
88,
18,
1841,
982,
1841,
16,
21820,
921,
9117,
921,
16,
26899,
22,
40,
1079,
3328,
1194,
13,
288,
565,
514,
2172,
2594,
620,
273,
315,
13014,
14432,
565,
775,
288,
1377,
2172,
2594,
620,
273,
2252,
18,
2758,
18,
382,
278,
1887,
18,
588,
2042,
2594,
7675,
588,
20946,
5621,
565,
289,
1044,
261,
6290,
18,
2758,
18,
4874,
29776,
425,
13,
2618,
565,
1033,
563,
273,
6863,
18,
5328,
310,
18,
46,
1895,
8485,
18,
4500,
1210,
6353,
12,
1850,
982,
1841,
16,
4766,
2398,
368,
5435,
982,
1841,
16,
1850,
315,
8496,
6103,
326,
508,
578,
326,
2971,
434,
326,
1479,
358,
6438,
294,
3113,
225,
368,
1033,
883,
16,
1850,
315,
13962,
279,
1479,
358,
6438,
3113,
21394,
368,
514,
2077,
16,
1850,
6863,
18,
5328,
310,
18,
46,
1895,
8485,
18,
26549,
67,
8723,
16,
15604,
368,
509,
22402,
16,
1850,
446,
16,
4766,
13491,
368,
16011,
4126,
16,
1850,
446,
16,
4766,
13491,
368,
1033,
8526,
4421,
1972,
16,
1850,
2172,
2594,
620,
4766,
2398,
368,
1033,
2172,
6233,
620,
13,
3639,
11272,
565,
309,
261,
2088,
422,
446,
747,
16051,
261,
2088,
1276,
514,
20349,
327,
31,
565,
514,
1479,
273,
261,
780,
13,
563,
31,
540,
9117,
921,
18,
1289,
12172,
12,
2564,
1769,
1377,
289,
2,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
1696,
1908,
46,
12772,
2594,
6353,
12,
2252,
18,
2219,
88,
18,
1841,
982,
1841,
16,
21820,
921,
9117,
921,
16,
26899,
22,
40,
1079,
3328,
1194,
13,
288,
565,
514,
2172,
2594,
620,
273,
315,
13014,
14432,
565,
775,
288,
1377,
2172,
2594,
620,
273,
2252,
18,
2758,
18,
382,
278,
1887,
18,
588,
2042,
2594,
7675,
588,
20946,
5621,
565,
289,
1044,
261,
6290,
18,
2758,
18,
4874,
29776,
425,
13,
2618,
565,
1033,
563,
273,
6863,
18,
5328,
310,
18,
46,
1895,
8485,
18,
4500,
1210,
6353,
12,
1850,
982,
1841,
16,
4766,
2398,
368,
5435,
982,
1841,
16,
1850,
315,
8496,
6103,
326,
508,
578,
326,
2971,
434,
326,
1479,
358,
2
] |
args = processOptions(cx, args);
|
String[] args = processOptions(cx, origArgs);
|
public static int exec(String args[]) { for (int i=0; i < args.length; i++) { String arg = args[i]; if (arg.equals("-sealedlib")) { sealedStdLib = true; break; } } Context cx = enterContext(); // Create the top-level scope object. global = getGlobal(); errorReporter = new ToolErrorReporter(false, global.getErr()); cx.setErrorReporter(errorReporter); args = processOptions(cx, args); if (processStdin) fileList.addElement(null); // define "arguments" array in the top-level object: // need to allocate new array since newArray requires instances // of exactly Object[], not ObjectSubclass[] Object[] array = new Object[args.length]; System.arraycopy(args, 0, array, 0, args.length); Scriptable argsObj = cx.newArray(global, array); global.defineProperty("arguments", argsObj, ScriptableObject.DONTENUM); for (int i=0; i < fileList.size(); i++) { processSource(cx, (String) fileList.elementAt(i)); } cx.exit(); return exitCode; }
|
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/daf6b75edbd23fda1750716a43bd235c561fef2b/Main.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/shell/Main.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
509,
1196,
12,
780,
833,
63,
5717,
288,
3639,
364,
261,
474,
277,
33,
20,
31,
277,
411,
833,
18,
2469,
31,
277,
27245,
288,
5411,
514,
1501,
273,
833,
63,
77,
15533,
5411,
309,
261,
3175,
18,
14963,
2932,
17,
307,
18931,
2941,
6,
3719,
288,
7734,
695,
18931,
10436,
5664,
273,
638,
31,
7734,
898,
31,
5411,
289,
3639,
289,
3639,
1772,
9494,
273,
6103,
1042,
5621,
3639,
368,
1788,
326,
1760,
17,
2815,
2146,
733,
18,
3639,
2552,
273,
20591,
5621,
3639,
555,
13289,
273,
394,
13288,
668,
13289,
12,
5743,
16,
2552,
18,
588,
2524,
10663,
3639,
9494,
18,
542,
668,
13289,
12,
1636,
13289,
1769,
3639,
514,
8526,
833,
273,
1207,
1320,
12,
71,
92,
16,
1647,
2615,
1769,
3639,
309,
261,
2567,
10436,
267,
13,
5411,
18645,
18,
1289,
1046,
12,
2011,
1769,
3639,
368,
4426,
315,
7099,
6,
526,
316,
326,
1760,
17,
2815,
733,
30,
3639,
368,
1608,
358,
10101,
394,
526,
3241,
11653,
4991,
3884,
3639,
368,
434,
8950,
1033,
63,
6487,
486,
1033,
1676,
1106,
8526,
3639,
1033,
8526,
526,
273,
394,
1033,
63,
1968,
18,
2469,
15533,
3639,
2332,
18,
1126,
3530,
12,
1968,
16,
374,
16,
526,
16,
374,
16,
833,
18,
2469,
1769,
3639,
22780,
833,
2675,
273,
9494,
18,
2704,
1076,
12,
6347,
16,
526,
1769,
3639,
2552,
18,
11255,
1396,
2932,
7099,
3113,
833,
2675,
16,
17311,
22780,
921,
18,
40,
10079,
16509,
1769,
3639,
364,
261,
474,
277,
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,
509,
1196,
12,
780,
833,
63,
5717,
288,
3639,
364,
261,
474,
277,
33,
20,
31,
277,
411,
833,
18,
2469,
31,
277,
27245,
288,
5411,
514,
1501,
273,
833,
63,
77,
15533,
5411,
309,
261,
3175,
18,
14963,
2932,
17,
307,
18931,
2941,
6,
3719,
288,
7734,
695,
18931,
10436,
5664,
273,
638,
31,
7734,
898,
31,
5411,
289,
3639,
289,
3639,
1772,
9494,
273,
6103,
1042,
5621,
3639,
368,
1788,
326,
1760,
17,
2815,
2146,
733,
18,
3639,
2552,
273,
20591,
5621,
3639,
555,
13289,
273,
394,
13288,
668,
13289,
12,
5743,
16,
2552,
18,
588,
2524,
10663,
3639,
9494,
18,
542,
668,
13289,
12,
1636,
13289,
1769,
3639,
514,
8526,
833,
273,
1207,
2
] |
final FieldInstruction gfIns = (FieldInstruction)ins;
|
FieldInstruction gfIns = (FieldInstruction)ins;
|
public void transformCode(final UnextendableClassSet cs) { final Iterator iterator = cs.getIteratorForTransformableClasses(); while (iterator.hasNext()) { final ClassGen cg = (ClassGen)iterator.next(); if (classFilter(cg)) continue; final Method[] methods = cg.getMethods(); // get the index for the <clinit> method (if there is one) boolean noClInitMethod = true; int clinitIndex = -1; for (int i = 0; i < methods.length; i++) { if (methods[i].getName().equals("<clinit>")) { clinitIndex = i; noClInitMethod = false; break; } } final ConstantPoolGen cpg = cg.getConstantPool(); final String className = cg.getClassName(); final InstructionFactory factory = new InstructionFactory(cg); addStaticClassField(cpg, cg); final Set setFieldJoinPoints = new HashSet(); final Set getFieldJoinPoints = new HashSet(); Method clInitMethod = null; final List newMethods = new ArrayList(); boolean isClassAdvised = false; for (int i = 0; i < methods.length; i++) { if (methodFilter(methods[i])) continue; final MethodGen mg = new MethodGen( methods[i], className, cpg); final InstructionList il = mg.getInstructionList(); InstructionHandle ih = il.getStart(); // search for all GETFIELD and GETSTATIC instructions and // inserts the pre and post advices while (ih != null) { final Instruction ins = ih.getInstruction(); if (ins instanceof GETFIELD || ins instanceof GETSTATIC) { final FieldInstruction gfIns = (FieldInstruction)ins; final String fieldName = gfIns.getName(cpg); final String signature = gfIns.getFieldType(cpg). toString() + " " + fieldName; final Type joinPointType = TransformationUtil.STATIC_FIELD_GET_JOIN_POINT_TYPE; final String joinPointClass = TransformationUtil.STATIC_FIELD_GET_JOIN_POINT_CLASS; final FieldMetaData fieldMetaData = BcelMetaDataMaker.createFieldMetaData(gfIns, cpg); String uuid = getFieldFilter(cg, fieldMetaData); if (uuid != null) { final String fieldClassName = gfIns.getClassName(cpg); if (fieldClassName.equals(cg.getClassName())) { isClassAdvised = true; // in static context if (mg.isStatic()) { insertPreAdvice( il, ih, cg, fieldName, factory, joinPointType); insertPostAdvice( il, ih.getNext(), cg, fieldName, factory, joinPointType); // skip the creation of the join point if we // already have one if (!getFieldJoinPoints.contains(fieldName)) { getFieldJoinPoints.add(fieldName); addStaticJoinPointField( cpg, cg, fieldName, joinPointType); if (noClInitMethod) { clInitMethod = createClInitMethodWithStaticJoinPointField( cpg, cg, fieldName, signature, factory, joinPointType, joinPointClass, uuid); } else { methods[clinitIndex] = createStaticJoinPointField( cpg, cg, methods[clinitIndex], fieldName, signature, factory, joinPointType, joinPointClass, uuid); } } } } } } else if (ins instanceof PUTFIELD || ins instanceof PUTSTATIC) { final FieldInstruction pfIns = (FieldInstruction)ins; final String fieldName = pfIns.getName(cpg); final String signature = pfIns.getFieldType(cpg). toString() + " " + fieldName; final Type joinPointType = TransformationUtil.STATIC_FIELD_SET_JOIN_POINT_TYPE; final String joinPointClass = TransformationUtil.STATIC_FIELD_SET_JOIN_POINT_CLASS; final FieldMetaData fieldMetaData = BcelMetaDataMaker.createFieldMetaData(pfIns, cpg); String uuid = setFieldFilter(cg, fieldMetaData); if (uuid != null) { final String fieldClassName = pfIns.getClassName(cpg); if (fieldClassName.equals(cg.getClassName())) { // in static context if (mg.isStatic()) { isClassAdvised = true; insertPreAdvice( il, ih, cg, fieldName, factory, joinPointType); insertPostAdvice( il, ih.getNext(), cg, fieldName, factory, joinPointType); // skip the creation of the join point if we // already have one if (!setFieldJoinPoints.contains(fieldName)) { setFieldJoinPoints.add(fieldName); addStaticJoinPointField( cpg, cg, fieldName, joinPointType); if (noClInitMethod) { clInitMethod = createClInitMethodWithStaticJoinPointField( cpg, cg, fieldName, signature, factory, joinPointType, joinPointClass, uuid); } else { methods[clinitIndex] = createStaticJoinPointField( cpg, cg, methods[clinitIndex], fieldName, signature, factory, joinPointType, joinPointClass, uuid); } } } } } } ih = ih.getNext(); } mg.setMaxStack(); methods[i] = mg.getMethod(); } if (isClassAdvised) { // if we have transformed methods, create the static class field if (noClInitMethod && clInitMethod != null) { clInitMethod = createStaticClassField( cpg, cg, clInitMethod, factory); newMethods.add(clInitMethod); } else if (!noClInitMethod) { methods[clinitIndex] = createStaticClassField( cpg, cg, methods[clinitIndex], factory); } } // update the old methods cg.setMethods(methods); // add the new methods for (Iterator it = newMethods.iterator(); it.hasNext();) { Method method = (Method)it.next(); cg.addMethod(method); } } }
|
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/797e662bcd4bca47d6ac84f41fbf32bf15013a33/AdviseStaticFieldTransformer.java/clean/aspectwerkz/src/main/org/codehaus/aspectwerkz/transform/AdviseStaticFieldTransformer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2510,
1085,
12,
6385,
1351,
14313,
429,
797,
694,
2873,
13,
288,
3639,
727,
4498,
2775,
273,
2873,
18,
588,
3198,
1290,
4059,
429,
4818,
5621,
3639,
1323,
261,
9838,
18,
5332,
2134,
10756,
288,
5411,
727,
1659,
7642,
14947,
273,
261,
797,
7642,
13,
9838,
18,
4285,
5621,
5411,
309,
261,
1106,
1586,
12,
26275,
3719,
1324,
31,
5411,
727,
2985,
8526,
2590,
273,
14947,
18,
588,
4712,
5621,
5411,
368,
336,
326,
770,
364,
326,
411,
830,
2738,
34,
707,
261,
430,
1915,
353,
1245,
13,
5411,
1250,
1158,
2009,
2570,
1305,
273,
638,
31,
5411,
509,
927,
2738,
1016,
273,
300,
21,
31,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2590,
18,
2469,
31,
277,
27245,
288,
7734,
309,
261,
5163,
63,
77,
8009,
17994,
7675,
14963,
2932,
32,
830,
2738,
2984,
3719,
288,
10792,
927,
2738,
1016,
273,
277,
31,
10792,
1158,
2009,
2570,
1305,
273,
629,
31,
10792,
898,
31,
7734,
289,
5411,
289,
5411,
727,
10551,
2864,
7642,
3283,
75,
273,
14947,
18,
588,
6902,
2864,
5621,
5411,
727,
514,
2658,
273,
14947,
18,
588,
3834,
5621,
5411,
727,
24605,
1733,
3272,
273,
394,
24605,
1733,
12,
26275,
1769,
5411,
527,
5788,
797,
974,
12,
4057,
75,
16,
14947,
1769,
5411,
727,
1000,
16331,
4572,
5636,
273,
394,
6847,
5621,
5411,
727,
1000,
5031,
4572,
5636,
273,
394,
6847,
5621,
5411,
2985,
927,
2570,
1305,
273,
446,
31,
5411,
727,
987,
394,
4712,
273,
394,
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,
2510,
1085,
12,
6385,
1351,
14313,
429,
797,
694,
2873,
13,
288,
3639,
727,
4498,
2775,
273,
2873,
18,
588,
3198,
1290,
4059,
429,
4818,
5621,
3639,
1323,
261,
9838,
18,
5332,
2134,
10756,
288,
5411,
727,
1659,
7642,
14947,
273,
261,
797,
7642,
13,
9838,
18,
4285,
5621,
5411,
309,
261,
1106,
1586,
12,
26275,
3719,
1324,
31,
5411,
727,
2985,
8526,
2590,
273,
14947,
18,
588,
4712,
5621,
5411,
368,
336,
326,
770,
364,
326,
411,
830,
2738,
34,
707,
261,
430,
1915,
353,
1245,
13,
5411,
1250,
1158,
2009,
2570,
1305,
273,
638,
31,
5411,
509,
927,
2738,
1016,
273,
300,
21,
31,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2
] |
for (Enumeration i = miscList.elements(); i.hasMoreElements();) { Mounted mounted = (Mounted)i.nextElement();
|
for (Mounted mounted : getMisc()) {
|
private int sinksUnderwater() { if (getPosition() == null || isOffBoard()) { return 0; } IHex curHex = game.getBoard().getHex(getPosition()); // are we even in water? is it depth 1+ if (curHex.terrainLevel(Terrains.WATER) <= 0 || getElevation() >= 0) { return 0; } // are we entirely underwater? if (isProne() || curHex.terrainLevel(Terrains.WATER) >= 2) { return getHeatCapacity(); } // okay, count leg sinks int sinksUnderwater = 0; for (Enumeration i = miscList.elements(); i.hasMoreElements();) { Mounted mounted = (Mounted)i.nextElement(); if (mounted.isDestroyed() || mounted.isBreached() || !locationIsLeg(mounted.getLocation())) { continue; } if (mounted.getType().hasFlag(MiscType.F_HEAT_SINK)) { sinksUnderwater++; } else if (mounted.getType().hasFlag(MiscType.F_DOUBLE_HEAT_SINK)) { sinksUnderwater += 2; } } return sinksUnderwater; }
|
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/cbe74d020e74a85c0e3b8ebf32d1ebc85c1ba62f/Mech.java/buggy/megamek/src/megamek/common/Mech.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
28618,
14655,
91,
2045,
1435,
288,
3639,
309,
261,
588,
2555,
1435,
422,
446,
747,
5411,
353,
7210,
22233,
10756,
288,
5411,
327,
374,
31,
3639,
289,
7734,
467,
7037,
662,
7037,
273,
7920,
18,
588,
22233,
7675,
588,
7037,
12,
588,
2555,
10663,
3639,
368,
854,
732,
5456,
316,
16313,
35,
225,
353,
518,
3598,
404,
15,
3639,
309,
261,
1397,
7037,
18,
387,
7596,
2355,
12,
56,
264,
354,
2679,
18,
59,
13641,
13,
1648,
374,
747,
4774,
298,
7112,
1435,
1545,
374,
13,
288,
5411,
327,
374,
31,
3639,
289,
7734,
368,
854,
732,
21658,
3613,
91,
2045,
35,
3639,
309,
261,
291,
2050,
476,
1435,
747,
662,
7037,
18,
387,
7596,
2355,
12,
56,
264,
354,
2679,
18,
59,
13641,
13,
1545,
576,
13,
288,
5411,
327,
336,
5256,
270,
7437,
5621,
3639,
289,
7734,
368,
21194,
16,
1056,
4553,
28618,
3639,
509,
28618,
14655,
91,
2045,
273,
374,
31,
3639,
364,
261,
21847,
277,
273,
20448,
682,
18,
6274,
5621,
277,
18,
5332,
7417,
3471,
5621,
13,
288,
5411,
13076,
329,
20919,
273,
261,
8725,
329,
13,
77,
18,
4285,
1046,
5621,
5411,
309,
261,
4778,
329,
18,
291,
28414,
1435,
747,
20919,
18,
291,
38,
266,
2004,
1435,
747,
401,
3562,
2520,
8329,
12,
4778,
329,
18,
588,
2735,
1435,
3719,
288,
7734,
1324,
31,
5411,
289,
5411,
309,
261,
4778,
329,
18,
588,
559,
7675,
5332,
4678,
12,
11729,
71,
559,
18,
42,
67,
3900,
789,
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,
509,
28618,
14655,
91,
2045,
1435,
288,
3639,
309,
261,
588,
2555,
1435,
422,
446,
747,
5411,
353,
7210,
22233,
10756,
288,
5411,
327,
374,
31,
3639,
289,
7734,
467,
7037,
662,
7037,
273,
7920,
18,
588,
22233,
7675,
588,
7037,
12,
588,
2555,
10663,
3639,
368,
854,
732,
5456,
316,
16313,
35,
225,
353,
518,
3598,
404,
15,
3639,
309,
261,
1397,
7037,
18,
387,
7596,
2355,
12,
56,
264,
354,
2679,
18,
59,
13641,
13,
1648,
374,
747,
4774,
298,
7112,
1435,
1545,
374,
13,
288,
5411,
327,
374,
31,
3639,
289,
7734,
368,
854,
732,
21658,
3613,
91,
2045,
35,
3639,
309,
261,
291,
2050,
476,
1435,
747,
662,
7037,
18,
387,
7596,
2355,
2
] |
SeriesDefinition sdX = SeriesDefinitionImpl.create(); Series categorySeries = SeriesImpl.create(); sdX.getSeries().add(categorySeries); ((Axis) newChart.getAxes().get(0)).getSeriesDefinitions().add(sdX);
|
SeriesDefinition sdX = SeriesDefinitionImpl.create( ); Series categorySeries = SeriesImpl.create( ); sdX.getSeries( ).add( categorySeries ); ( (Axis) newChart.getAxes( ).get( 0 ) ).getSeriesDefinitions( ) .add( sdX );
|
public Chart getModel(String sSubType, Orientation orientation, String sDimension, Chart currentChart) { ChartWithAxes newChart = null; if (currentChart != null) { newChart = (ChartWithAxes) getConvertedChart(currentChart, sSubType, orientation, sDimension); if (newChart != null) { return newChart; } } newChart = ChartWithAxesImpl.create(); newChart.setType(sType); newChart.setSubType(sSubType); newChart.setOrientation(orientation); newChart.setDimension(getDimensionFor(sDimension)); newChart.setUnits("Points"); //$NON-NLS-1$ ((Axis) newChart.getAxes().get(0)).setOrientation(Orientation.HORIZONTAL_LITERAL); ((Axis) newChart.getAxes().get(0)).setType(AxisType.TEXT_LITERAL); ((Axis) newChart.getAxes().get(0)).setCategoryAxis(true); SeriesDefinition sdX = SeriesDefinitionImpl.create(); Series categorySeries = SeriesImpl.create(); sdX.getSeries().add(categorySeries); ((Axis) newChart.getAxes().get(0)).getSeriesDefinitions().add(sdX); newChart.getTitle().getLabel().getCaption().setValue(Messages.getString("LineChart.Txt.DefaultLineChartTitle")); //$NON-NLS-1$ if (sSubType.equalsIgnoreCase("Stacked")) //$NON-NLS-1$ { ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)) .setOrientation(Orientation.VERTICAL_LITERAL); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).setType(AxisType.LINEAR_LITERAL); SeriesDefinition sdY = SeriesDefinitionImpl.create(); sdY.getSeriesPalette().update(0); Series valueSeries = LineSeriesImpl.create(); valueSeries.getLabel().setVisible(true); ((LineSeries) valueSeries).getMarker().setVisible(true); ((LineSeries) valueSeries).setStacked(true); sdY.getSeries().add(valueSeries); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions().add(sdY); } else if (sSubType.equalsIgnoreCase("Percent Stacked")) //$NON-NLS-1$ { ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)) .setOrientation(Orientation.VERTICAL_LITERAL); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).setType(AxisType.LINEAR_LITERAL); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).setPercent(true); SeriesDefinition sdY = SeriesDefinitionImpl.create(); sdY.getSeriesPalette().update(0); Series valueSeries = LineSeriesImpl.create(); valueSeries.getLabel().setVisible(true); ((LineSeries) valueSeries).getMarker().setVisible(true); ((LineSeries) valueSeries).setStacked(true); sdY.getSeries().add(valueSeries); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions().add(sdY); } else if (sSubType.equalsIgnoreCase("Overlay")) //$NON-NLS-1$ { ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)) .setOrientation(Orientation.VERTICAL_LITERAL); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).setType(AxisType.LINEAR_LITERAL); SeriesDefinition sdY = SeriesDefinitionImpl.create(); sdY.getSeriesPalette().update(0); Series valueSeries = LineSeriesImpl.create(); valueSeries.getLabel().setVisible(true); ((LineSeries) valueSeries).getMarker().setVisible(true); ((LineSeries) valueSeries).setStacked(false); sdY.getSeries().add(valueSeries); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions().add(sdY); } addSampleData(newChart); return newChart; }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/349f24e6a8f8484f0f1f1af682b4952337cac402/LineChart.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/LineChart.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
14804,
7454,
12,
780,
272,
30511,
16,
531,
12556,
9820,
16,
514,
272,
8611,
16,
14804,
783,
7984,
13,
565,
288,
3639,
14804,
1190,
26494,
394,
7984,
273,
446,
31,
3639,
309,
261,
2972,
7984,
480,
446,
13,
3639,
288,
5411,
394,
7984,
273,
261,
7984,
1190,
26494,
13,
336,
22063,
7984,
12,
2972,
7984,
16,
272,
30511,
16,
9820,
16,
272,
8611,
1769,
5411,
309,
261,
2704,
7984,
480,
446,
13,
5411,
288,
7734,
327,
394,
7984,
31,
5411,
289,
3639,
289,
3639,
394,
7984,
273,
14804,
1190,
26494,
2828,
18,
2640,
5621,
3639,
394,
7984,
18,
542,
559,
12,
87,
559,
1769,
3639,
394,
7984,
18,
542,
30511,
12,
87,
30511,
1769,
3639,
394,
7984,
18,
542,
14097,
12,
19235,
1769,
3639,
394,
7984,
18,
542,
8611,
12,
588,
8611,
1290,
12,
87,
8611,
10019,
3639,
394,
7984,
18,
542,
7537,
2932,
5636,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
14015,
6558,
13,
394,
7984,
18,
588,
26494,
7675,
588,
12,
20,
13,
2934,
542,
14097,
12,
14097,
18,
44,
20344,
67,
23225,
1769,
3639,
14015,
6558,
13,
394,
7984,
18,
588,
26494,
7675,
588,
12,
20,
13,
2934,
542,
559,
12,
6558,
559,
18,
5151,
67,
23225,
1769,
3639,
14015,
6558,
13,
394,
7984,
18,
588,
26494,
7675,
588,
12,
20,
13,
2934,
542,
4457,
6558,
12,
3767,
1769,
3639,
9225,
1852,
8349,
60,
273,
9225,
1852,
2828,
18,
2640,
5621,
3639,
9225,
3150,
6485,
273,
9225,
2828,
18,
2640,
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,
14804,
7454,
12,
780,
272,
30511,
16,
531,
12556,
9820,
16,
514,
272,
8611,
16,
14804,
783,
7984,
13,
565,
288,
3639,
14804,
1190,
26494,
394,
7984,
273,
446,
31,
3639,
309,
261,
2972,
7984,
480,
446,
13,
3639,
288,
5411,
394,
7984,
273,
261,
7984,
1190,
26494,
13,
336,
22063,
7984,
12,
2972,
7984,
16,
272,
30511,
16,
9820,
16,
272,
8611,
1769,
5411,
309,
261,
2704,
7984,
480,
446,
13,
5411,
288,
7734,
327,
394,
7984,
31,
5411,
289,
3639,
289,
3639,
394,
7984,
273,
14804,
1190,
26494,
2828,
18,
2640,
5621,
3639,
394,
7984,
18,
542,
559,
12,
87,
559,
1769,
3639,
394,
7984,
18,
542,
30511,
12,
87,
30511,
1769,
3639,
394,
7984,
2
] |
rules = new ParserRuleSet(mode);
|
rules = new ParserRuleSet(lastSetName,mode);
|
public void startElement (String tag) { tag = pushElement(tag); if (tag == "MODE") { mode = jEdit.getMode(modeName); if (mode == null) { mode = new Mode(modeName); jEdit.addMode(mode); } } else if (tag == "KEYWORDS") { keywords = new KeywordMap(true); } else if (tag == "RULES") { rules = new ParserRuleSet(mode); rules.setIgnoreCase(lastIgnoreCase); rules.setHighlightDigits(lastHighlightDigits); rules.setEscape(lastEscape); rules.setDefault(lastDefaultID); } } //}}}
|
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/af9be1932ec49cc12ed1a405bf423d364278397d/XModeHandler.java/clean/org/gjt/sp/jedit/syntax/XModeHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
13591,
261,
780,
1047,
13,
202,
95,
202,
202,
2692,
273,
1817,
1046,
12,
2692,
1769,
202,
202,
430,
261,
2692,
422,
315,
7038,
7923,
202,
202,
95,
1082,
202,
3188,
273,
525,
4666,
18,
588,
2309,
12,
3188,
461,
1769,
1082,
202,
430,
261,
3188,
422,
446,
13,
1082,
202,
95,
9506,
202,
3188,
273,
394,
8126,
12,
3188,
461,
1769,
9506,
202,
78,
4666,
18,
1289,
2309,
12,
3188,
1769,
1082,
202,
97,
202,
202,
97,
202,
202,
12107,
309,
261,
2692,
422,
315,
3297,
23287,
7923,
202,
202,
95,
1082,
202,
11771,
273,
394,
18317,
863,
12,
3767,
1769,
202,
202,
97,
202,
202,
12107,
309,
261,
2692,
422,
315,
14920,
55,
7923,
202,
202,
95,
1082,
202,
7482,
273,
394,
6783,
21474,
12,
3188,
1769,
1082,
202,
7482,
18,
542,
5556,
12,
2722,
5556,
1769,
1082,
202,
7482,
18,
542,
16205,
9537,
12,
2722,
16205,
9537,
1769,
1082,
202,
7482,
18,
542,
8448,
12,
2722,
8448,
1769,
1082,
202,
7482,
18,
542,
1868,
12,
2722,
1868,
734,
1769,
202,
202,
97,
202,
97,
368,
9090,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
13591,
261,
780,
1047,
13,
202,
95,
202,
202,
2692,
273,
1817,
1046,
12,
2692,
1769,
202,
202,
430,
261,
2692,
422,
315,
7038,
7923,
202,
202,
95,
1082,
202,
3188,
273,
525,
4666,
18,
588,
2309,
12,
3188,
461,
1769,
1082,
202,
430,
261,
3188,
422,
446,
13,
1082,
202,
95,
9506,
202,
3188,
273,
394,
8126,
12,
3188,
461,
1769,
9506,
202,
78,
4666,
18,
1289,
2309,
12,
3188,
1769,
1082,
202,
97,
202,
202,
97,
202,
202,
12107,
309,
261,
2692,
422,
315,
3297,
23287,
7923,
202,
202,
95,
1082,
202,
11771,
273,
394,
18317,
863,
12,
3767,
1769,
202,
202,
97,
202,
202,
12107,
309,
261,
2692,
422,
315,
14920,
55,
2
] |
next_x += gap + i.getIconWidth(); next_y += gap + i.getIconHeight();
|
switch (horizontalTextPosition) { case LEFT: textR.x = 0; iconR.x = textR.width + textIconGap; break; case RIGHT: iconR.x = 0; textR.x = iconR.width + textIconGap; break; case CENTER: int centerLine = Math.max(textR.width, iconR.width) / 2; textR.x = centerLine - textR.width/2; iconR.x = centerLine - iconR.width/2; break;
|
public static String layoutCompoundLabel(JComponent c, FontMetrics fm, String text, Icon i, int vert_a, int hor_i, int vert_text_pos, int hor_text_pos, Rectangle vr, Rectangle ir, Rectangle tr, int gap) { // view rect 'vr' already ok, // we need to compute ir (icon rect) and tr (text-rect) int next_x = vr.x; int next_y = vr.y; ir.height = ir.width = ir.y = ir.x = 0; if (i != null) { ir.x = vr.x; ir.y = vr.y; ir.width = i.getIconWidth(); ir.height = i.getIconWidth(); next_x += gap + i.getIconWidth(); next_y += gap + i.getIconHeight(); } tr.x = next_x; tr.y = vr.y; // + (vr.height/2); tr.width = fm.stringWidth(text); tr.height = fm.getHeight(); // + fm.getAscent()/2; return text; }
|
1043 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1043/a969e4b30bfe4dfbec01c97d2652768b3b2da81f/SwingUtilities.java/buggy/libjava/javax/swing/SwingUtilities.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
514,
3511,
16835,
2224,
12,
46,
1841,
276,
16,
4766,
5411,
10063,
5653,
10940,
16,
4766,
6647,
514,
977,
16,
4766,
6647,
16011,
277,
16,
4766,
6647,
509,
3173,
67,
69,
16,
4766,
5411,
509,
29404,
67,
77,
16,
4766,
5411,
509,
3173,
67,
955,
67,
917,
16,
4766,
6647,
509,
29404,
67,
955,
67,
917,
16,
4766,
5411,
13264,
16612,
16,
4766,
6647,
13264,
9482,
16,
4766,
5411,
13264,
433,
16,
4766,
6647,
509,
9300,
13,
225,
288,
565,
368,
1476,
4917,
296,
18090,
11,
1818,
1529,
16,
377,
368,
732,
1608,
358,
3671,
9482,
261,
3950,
4917,
13,
471,
433,
261,
955,
17,
2607,
13,
202,
565,
509,
1024,
67,
92,
273,
16612,
18,
92,
31,
565,
509,
1024,
67,
93,
273,
16612,
18,
93,
31,
202,
565,
9482,
18,
4210,
273,
9482,
18,
2819,
273,
9482,
18,
93,
273,
9482,
18,
92,
273,
374,
31,
565,
309,
261,
77,
480,
446,
13,
1377,
288,
3639,
9482,
18,
92,
273,
16612,
18,
92,
31,
3639,
9482,
18,
93,
273,
16612,
18,
93,
31,
3639,
9482,
18,
2819,
273,
277,
18,
588,
5554,
2384,
5621,
3639,
9482,
18,
4210,
273,
277,
18,
588,
5554,
2384,
5621,
3639,
1024,
67,
92,
1011,
9300,
397,
277,
18,
588,
5554,
2384,
5621,
3639,
1024,
67,
93,
1011,
9300,
397,
277,
18,
588,
5554,
2686,
5621,
1377,
289,
202,
565,
433,
18,
92,
273,
1024,
67,
92,
31,
565,
433,
18,
93,
273,
16612,
18,
93,
31,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
514,
3511,
16835,
2224,
12,
46,
1841,
276,
16,
4766,
5411,
10063,
5653,
10940,
16,
4766,
6647,
514,
977,
16,
4766,
6647,
16011,
277,
16,
4766,
6647,
509,
3173,
67,
69,
16,
4766,
5411,
509,
29404,
67,
77,
16,
4766,
5411,
509,
3173,
67,
955,
67,
917,
16,
4766,
6647,
509,
29404,
67,
955,
67,
917,
16,
4766,
5411,
13264,
16612,
16,
4766,
6647,
13264,
9482,
16,
4766,
5411,
13264,
433,
16,
4766,
6647,
509,
9300,
13,
225,
288,
565,
368,
1476,
4917,
296,
18090,
11,
1818,
1529,
16,
377,
368,
732,
1608,
358,
3671,
9482,
261,
3950,
4917,
13,
471,
433,
261,
955,
17,
2607,
13,
202,
565,
509,
1024,
67,
92,
273,
16612,
18,
2
] |
Message reject = DMT.createFNPProbeRejected(id, target, nearest, best, counter, DMT.PROBE_REJECTED_RNF);
|
Message reject = DMT.createFNPProbeRejected(id, target, nearest, best, counter, htl, DMT.PROBE_REJECTED_RNF);
|
private boolean innerHandleProbeRequest(PeerNode src, long id, Long lid, double target, double best, double nearest, short htl, short counter, boolean checkRecent) { if(htl > Node.MAX_HTL) htl = Node.MAX_HTL; if(htl <= 1) htl = 1; ProbeContext ctx = null; boolean rejected = false; synchronized(recentProbeContexts) { if(checkRecent) { long now = System.currentTimeMillis(); if(now - tLastReceivedProbeRequest < 1000) { rejected = true; } else tLastReceivedProbeRequest = now; } if(!rejected) { ctx = (ProbeContext) recentProbeContexts.get(lid); if(ctx == null) { ctx = new ProbeContext(id, target, best, nearest, htl, counter, src); } recentProbeContexts.push(lid, ctx); // promote or add while(recentProbeContexts.size() > MAX_PROBE_CONTEXTS) recentProbeContexts.popValue(); } } if(rejected) { // Reject: rate limit Message reject = DMT.createFNPProbeRejected(id, target, nearest, best, counter, DMT.PROBE_REJECTED_OVERLOAD); try { src.sendAsync(reject, null, 0, null); } catch (NotConnectedException e) { Logger.error(this, "Not connected rejecting a probe request from "+src); } return true; } // FIXME Update any important values on ctx if(ctx.counter < counter) ctx.counter = counter; double oldDist = PeerManager.distance(ctx.nearest, target); double newDist = PeerManager.distance(nearest, target); // FIXME use this elsewhere? Does it make sense? if(oldDist > newDist) { ctx.htl = htl; ctx.nearest = nearest; } else if(Math.abs(oldDist - newDist) < Double.MIN_VALUE*2) { if(htl > ctx.htl-1) htl = (short)Math.max(0,(ctx.htl-1)); else ctx.htl = htl; } else { Logger.error(this, "Distance increased: "+oldDist+" -> "+newDist+" htl: "+ctx.htl+" -> "+htl+" , using old HTL and dist"); htl = ctx.htl; nearest = ctx.nearest; } PeerNode[] peers = node.peers.myPeers; // Update best for(int i=0;i<peers.length;i++) { if(!peers[i].isConnected()) continue; double loc = peers[i].getLocation().getValue(); // We are only interested in locations greater than the target if(loc <= (best + 2*Double.MIN_VALUE)) continue; if(loc < best) best = loc; } // Update nearest double myLoc = node.getLocation(); if(PeerManager.distance(myLoc, target) > PeerManager.distance(nearest, target)) { nearest = myLoc; htl = Node.MAX_HTL; } else { htl--; if(htl > Node.MAX_HTL) htl = Node.MAX_HTL; } // Complete ? if(htl == 0) { // Complete Message complete = DMT.createFNPProbeReply(id, target, nearest, best, counter++); try { src.sendAsync(complete, null, 0, null); } catch (NotConnectedException e) { Logger.error(this, "Not connected completing a probe request from "+src); } return true; } // Otherwise route it HashSet visited = ctx.visitedPeers; while(true) { PeerNode pn = node.peers.closerPeer(src, visited, null, target, true, false, 960); if(pn == null) { // Can't complete, because some HTL left // Reject: RNF Message reject = DMT.createFNPProbeRejected(id, target, nearest, best, counter, DMT.PROBE_REJECTED_RNF); try { src.sendAsync(reject, null, 0, null); } catch (NotConnectedException e) { Logger.error(this, "Not connected rejecting a probe request from "+src); } return true; } visited.add(pn); Message forwarded = DMT.createFNPProbeRequest(id, target, nearest, best, htl, counter++); try { pn.sendAsync(forwarded, null, 0, null); return true; } catch (NotConnectedException e) { Logger.error(this, "Could not forward message: disconnected: "+pn+" : "+e, e); // Try another one } } }
|
51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/64e393e2182dd3b2f28d85dcd8eaded027ec7e41/NodeDispatcher.java/buggy/src/freenet/node/NodeDispatcher.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
3443,
3259,
21042,
691,
12,
6813,
907,
1705,
16,
1525,
612,
16,
3407,
328,
350,
16,
1645,
1018,
16,
1645,
3796,
16,
1377,
202,
202,
9056,
11431,
16,
3025,
366,
6172,
16,
3025,
3895,
16,
1250,
866,
17076,
13,
288,
377,
202,
430,
12,
647,
80,
405,
2029,
18,
6694,
67,
5062,
48,
13,
366,
6172,
273,
2029,
18,
6694,
67,
5062,
48,
31,
377,
202,
430,
12,
647,
80,
1648,
404,
13,
366,
6172,
273,
404,
31,
202,
202,
21042,
1042,
1103,
273,
446,
31,
202,
202,
6494,
11876,
273,
629,
31,
202,
202,
22043,
12,
20872,
21042,
15518,
13,
288,
1082,
202,
430,
12,
1893,
17076,
13,
288,
9506,
202,
5748,
2037,
273,
2332,
18,
2972,
28512,
5621,
9506,
202,
430,
12,
3338,
300,
268,
3024,
8872,
21042,
691,
411,
4336,
13,
288,
6862,
202,
266,
6059,
273,
638,
31,
9506,
202,
97,
469,
6862,
202,
88,
3024,
8872,
21042,
691,
273,
2037,
31,
1082,
202,
97,
1082,
202,
430,
12,
5,
266,
6059,
13,
288,
9506,
202,
5900,
273,
261,
21042,
1042,
13,
8399,
21042,
15518,
18,
588,
12,
80,
350,
1769,
9506,
202,
430,
12,
5900,
422,
446,
13,
288,
6862,
202,
5900,
273,
394,
25490,
1042,
12,
350,
16,
1018,
16,
3796,
16,
11431,
16,
366,
6172,
16,
3895,
16,
1705,
1769,
9506,
202,
97,
9506,
202,
20872,
21042,
15518,
18,
6206,
12,
80,
350,
16,
1103,
1769,
368,
28374,
578,
527,
9506,
202,
17523,
12,
20872,
21042,
15518,
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,
1250,
3443,
3259,
21042,
691,
12,
6813,
907,
1705,
16,
1525,
612,
16,
3407,
328,
350,
16,
1645,
1018,
16,
1645,
3796,
16,
1377,
202,
202,
9056,
11431,
16,
3025,
366,
6172,
16,
3025,
3895,
16,
1250,
866,
17076,
13,
288,
377,
202,
430,
12,
647,
80,
405,
2029,
18,
6694,
67,
5062,
48,
13,
366,
6172,
273,
2029,
18,
6694,
67,
5062,
48,
31,
377,
202,
430,
12,
647,
80,
1648,
404,
13,
366,
6172,
273,
404,
31,
202,
202,
21042,
1042,
1103,
273,
446,
31,
202,
202,
6494,
11876,
273,
629,
31,
202,
202,
22043,
12,
20872,
21042,
15518,
13,
288,
1082,
202,
430,
12,
1893,
17076,
13,
288,
9506,
202,
5748,
2037,
273,
2332,
2
] |
vstack.pushItem(LongItem.createLocal(stackFrame.getEbpOffset(index))); }
|
vstack.pushItem(LongItem.createLocal(stackFrame.getEbpOffset(index))); }
|
public final void visit_lload(int index) { vstack.pushItem(LongItem.createLocal(stackFrame.getEbpOffset(index)));// int ebpOfs = stackFrame.getWideEbpOffset(index);// os.writeMOV(INTSIZE, T0, FP, ebpOfs);// os.writeMOV(INTSIZE, T1, FP, ebpOfs + 4);// helper.writePUSH64(T0, T1); }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/d402ee1c5f9ab6d1c5b4f597b70658827f1f304d/X86BytecodeVisitor.java/clean/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
3757,
67,
80,
945,
12,
474,
770,
13,
288,
202,
202,
90,
3772,
18,
6206,
1180,
12,
3708,
1180,
18,
2640,
2042,
12,
3772,
3219,
18,
588,
41,
17152,
2335,
12,
1615,
3719,
1769,
759,
202,
202,
474,
425,
17152,
31002,
273,
2110,
3219,
18,
588,
11075,
41,
17152,
2335,
12,
1615,
1769,
759,
202,
202,
538,
18,
2626,
5980,
58,
12,
3217,
4574,
16,
399,
20,
16,
28740,
16,
425,
17152,
31002,
1769,
759,
202,
202,
538,
18,
2626,
5980,
58,
12,
3217,
4574,
16,
399,
21,
16,
28740,
16,
425,
17152,
31002,
397,
1059,
1769,
759,
202,
202,
4759,
18,
2626,
30348,
1105,
12,
56,
20,
16,
399,
21,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
3757,
67,
80,
945,
12,
474,
770,
13,
288,
202,
202,
90,
3772,
18,
6206,
1180,
12,
3708,
1180,
18,
2640,
2042,
12,
3772,
3219,
18,
588,
41,
17152,
2335,
12,
1615,
3719,
1769,
759,
202,
202,
474,
425,
17152,
31002,
273,
2110,
3219,
18,
588,
11075,
41,
17152,
2335,
12,
1615,
1769,
759,
202,
202,
538,
18,
2626,
5980,
58,
12,
3217,
4574,
16,
399,
20,
16,
28740,
16,
425,
17152,
31002,
1769,
759,
202,
202,
538,
18,
2626,
5980,
58,
12,
3217,
4574,
16,
399,
21,
16,
28740,
16,
425,
17152,
31002,
397,
1059,
1769,
759,
202,
202,
4759,
18,
2626,
30348,
1105,
12,
56,
20,
16,
399,
21,
1769,
202,
97,
2
] |
case EQ: return "NE"; case NE: return "EQ"; case LT: return "GE"; case GE: return "LT"; case LE: return "GT"; case GT: return "LE";
|
case EQ: return "EQ"; case NE: return "NE"; case LT: return "LT"; case GE: return "GE"; case LE: return "LE"; case GT: return "GT";
|
public String toString() { switch (this) { case EQ: return "NE"; case NE: return "EQ"; case LT: return "GE"; case GE: return "LT"; case LE: return "GT"; case GT: return "LE"; default: throw Debug.abort("unknown case", this); } }
|
32355 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/32355/373f59053719c293c77f72058dca84206a09ac81/ATestOp.java/buggy/sources/scalac/atree/ATestOp.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
1435,
288,
3639,
1620,
261,
2211,
13,
288,
3639,
648,
22426,
30,
327,
315,
5407,
14432,
3639,
648,
12901,
30,
327,
315,
27247,
14432,
3639,
648,
11807,
30,
327,
315,
7113,
14432,
3639,
648,
17788,
30,
327,
315,
12050,
14432,
3639,
648,
5380,
30,
327,
315,
16506,
14432,
3639,
648,
19688,
30,
327,
315,
900,
14432,
3639,
805,
30,
604,
4015,
18,
18623,
2932,
8172,
648,
3113,
333,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
1762,
1435,
288,
3639,
1620,
261,
2211,
13,
288,
3639,
648,
22426,
30,
327,
315,
5407,
14432,
3639,
648,
12901,
30,
327,
315,
27247,
14432,
3639,
648,
11807,
30,
327,
315,
7113,
14432,
3639,
648,
17788,
30,
327,
315,
12050,
14432,
3639,
648,
5380,
30,
327,
315,
16506,
14432,
3639,
648,
19688,
30,
327,
315,
900,
14432,
3639,
805,
30,
604,
4015,
18,
18623,
2932,
8172,
648,
3113,
333,
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
] |
"{[EmployeesClosure]} on rows" + nl + "from [HR]", "Axis #0:" + nl + "{}" + nl + "Axis #1:" + nl + "{[Measures].[Count]}" + nl + "{[Measures].[Org Salary]}" + nl + "{[Measures].[Number of Employees]}" + nl + "{[Measures].[Avg Salary]}" + nl + "Axis #2:" + nl + "{[EmployeesClosure].[All Employees]}" + nl + "Row #0: 7,392" + nl + "Row #0: $39,431.67" + nl + "Row #0: 616" + nl + "Row #0: $64.01" + nl); }
|
"{[EmployeesClosure]} on rows" + nl + "from [HR]", "Axis #0:" + nl + "{}" + nl + "Axis #1:" + nl + "{[Measures].[Count]}" + nl + "{[Measures].[Org Salary]}" + nl + "{[Measures].[Number of Employees]}" + nl + "{[Measures].[Avg Salary]}" + nl + "Axis #2:" + nl + "{[EmployeesClosure].[All Employees]}" + nl + "Row #0: 7,392" + nl + "Row #0: $39,431.67" + nl + "Row #0: 616" + nl + "Row #0: $64.01" + nl); }
|
public void _testDistinctAllExplicitClosure() { runQueryCheckResult( "select {[Measures].[Count], [Measures].[Org Salary], " + nl + "[Measures].[Number Of Employees], [Measures].[Avg Salary]} on columns," + nl + "{[EmployeesClosure]} on rows" + nl + "from [HR]", "Axis #0:" + nl + "{}" + nl + "Axis #1:" + nl + "{[Measures].[Count]}" + nl + "{[Measures].[Org Salary]}" + nl + "{[Measures].[Number of Employees]}" + nl + "{[Measures].[Avg Salary]}" + nl + "Axis #2:" + nl + "{[EmployeesClosure].[All Employees]}" + nl + "Row #0: 7,392" + nl + "Row #0: $39,431.67" + nl + "Row #0: 616" + nl + "Row #0: $64.01" + nl); }
|
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/b5b5168edc3af09cb74945a80b0c36e6630ed502/ParentChildHierarchyTest.java/buggy/testsrc/main/mondrian/test/ParentChildHierarchyTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
389,
3813,
23402,
1595,
17186,
10573,
1435,
288,
202,
202,
2681,
1138,
1564,
1253,
12,
9506,
202,
6,
4025,
288,
63,
23177,
1823,
8009,
63,
1380,
6487,
306,
23177,
1823,
8009,
63,
6001,
348,
287,
814,
6487,
315,
397,
7741,
397,
7734,
5158,
23177,
1823,
8009,
63,
1854,
8031,
512,
23377,
25521,
6487,
306,
23177,
1823,
8009,
63,
22823,
348,
287,
814,
18322,
603,
2168,
10837,
397,
7741,
397,
9506,
202,
18767,
63,
41,
23377,
25521,
10573,
18322,
603,
2595,
6,
397,
7741,
397,
9506,
202,
6,
2080,
306,
15024,
65,
3113,
9506,
202,
6,
6558,
468,
20,
2773,
397,
7741,
397,
9506,
202,
6,
9338,
397,
7741,
397,
9506,
202,
6,
6558,
468,
21,
2773,
397,
7741,
397,
9506,
202,
18767,
63,
23177,
1823,
8009,
63,
1380,
20817,
397,
7741,
397,
9506,
202,
18767,
63,
23177,
1823,
8009,
63,
6001,
348,
287,
814,
20817,
397,
7741,
397,
9506,
202,
18767,
63,
23177,
1823,
8009,
63,
1854,
434,
512,
23377,
25521,
20817,
397,
7741,
397,
9506,
202,
18767,
63,
23177,
1823,
8009,
63,
22823,
348,
287,
814,
20817,
397,
7741,
397,
9506,
202,
6,
6558,
468,
22,
2773,
397,
7741,
397,
9506,
202,
18767,
63,
41,
23377,
25521,
10573,
8009,
63,
1595,
512,
23377,
25521,
20817,
397,
7741,
397,
9506,
202,
6,
1999,
468,
20,
30,
2371,
16,
5520,
22,
6,
397,
7741,
397,
9506,
202,
6,
1999,
468,
20,
30,
271,
5520,
16,
24,
6938,
18,
9599,
6,
397,
7741,
397,
9506,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
389,
3813,
23402,
1595,
17186,
10573,
1435,
288,
202,
202,
2681,
1138,
1564,
1253,
12,
9506,
202,
6,
4025,
288,
63,
23177,
1823,
8009,
63,
1380,
6487,
306,
23177,
1823,
8009,
63,
6001,
348,
287,
814,
6487,
315,
397,
7741,
397,
7734,
5158,
23177,
1823,
8009,
63,
1854,
8031,
512,
23377,
25521,
6487,
306,
23177,
1823,
8009,
63,
22823,
348,
287,
814,
18322,
603,
2168,
10837,
397,
7741,
397,
9506,
202,
18767,
63,
41,
23377,
25521,
10573,
18322,
603,
2595,
6,
397,
7741,
397,
9506,
202,
6,
2080,
306,
15024,
65,
3113,
9506,
202,
6,
6558,
468,
20,
2773,
397,
7741,
397,
9506,
202,
6,
9338,
397,
7741,
397,
9506,
202,
6,
6558,
468,
21,
2773,
2
] |
if (" \r\n0123456789-' ()+,./:=?;!*#@$_%".indexOf(c) != -1)
|
if (" \r\n0123456789-' ()+,./:=?;!*#@$_%".indexOf(d) != -1)
|
private ExternalIds readExternalIds(boolean inNotation, boolean isSubset) throws IOException, XMLStreamException { char c; int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; ExternalIds ids = new ExternalIds(); if (tryRead("PUBLIC")) { requireWhitespace(); ids.publicId = readLiteral(LIT_NORMALIZE | LIT_PUBID | flags); if (inNotation) { skipWhitespace(); mark(1); c = readCh(); reset(); if (c == '"' || c == '\'') ids.systemId = absolutize(input.systemId, readLiteral(flags)); } else { requireWhitespace(); ids.systemId = absolutize(input.systemId, readLiteral(flags)); } for (int i = 0; i < ids.publicId.length(); i++) { c = ids.publicId.charAt(i); if (c >= 'a' && c <= 'z') continue; if (c >= 'A' && c <= 'Z') continue; if (" \r\n0123456789-' ()+,./:=?;!*#@$_%".indexOf(c) != -1) continue; error("illegal PUBLIC id character", "U+" + Integer.toHexString(c)); } } else if (tryRead("SYSTEM")) { requireWhitespace(); ids.systemId = absolutize(input.systemId, readLiteral(flags)); } else if (!isSubset) { error("missing SYSTEM or PUBLIC keyword"); } if (ids.systemId != null) { if (ids.systemId.indexOf('#') != -1) error("SYSTEM id has a URI fragment", ids.systemId); } return ids; }
|
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/b91aa9e58f8db725da1b33461ffd38af23bedf33/XMLParser.java/buggy/gnu/xml/stream/XMLParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
11352,
2673,
855,
6841,
2673,
12,
6494,
316,
14818,
16,
1250,
16523,
542,
13,
565,
1216,
1860,
16,
21526,
225,
288,
565,
1149,
276,
31,
565,
509,
2943,
273,
511,
1285,
67,
13498,
2782,
67,
5458,
42,
571,
511,
1285,
67,
13498,
2782,
67,
1423,
571,
511,
1285,
67,
13498,
2782,
67,
654,
26897,
31,
565,
11352,
2673,
3258,
273,
394,
11352,
2673,
5621,
3639,
309,
261,
698,
1994,
2932,
14939,
6,
3719,
1377,
288,
3639,
2583,
9431,
5621,
3639,
3258,
18,
482,
548,
273,
855,
6177,
12,
15716,
67,
15480,
15641,
571,
511,
1285,
67,
17217,
734,
571,
2943,
1769,
3639,
309,
261,
267,
14818,
13,
1850,
288,
5411,
2488,
9431,
5621,
5411,
2267,
12,
21,
1769,
5411,
276,
273,
855,
782,
5621,
5411,
2715,
5621,
5411,
309,
261,
71,
422,
4754,
747,
276,
422,
14118,
6134,
2868,
3258,
18,
4299,
548,
273,
2417,
355,
322,
554,
12,
2630,
18,
4299,
548,
16,
855,
6177,
12,
7133,
10019,
1850,
289,
3639,
469,
1850,
288,
5411,
2583,
9431,
5621,
5411,
3258,
18,
4299,
548,
273,
2417,
355,
322,
554,
12,
2630,
18,
4299,
548,
16,
855,
6177,
12,
7133,
10019,
1850,
289,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
3258,
18,
482,
548,
18,
2469,
5621,
277,
27245,
1850,
288,
5411,
276,
273,
3258,
18,
482,
548,
18,
3001,
861,
12,
77,
1769,
5411,
309,
261,
71,
1545,
296,
69,
11,
597,
276,
1648,
296,
94,
6134,
2868,
1324,
31,
5411,
309,
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,
11352,
2673,
855,
6841,
2673,
12,
6494,
316,
14818,
16,
1250,
16523,
542,
13,
565,
1216,
1860,
16,
21526,
225,
288,
565,
1149,
276,
31,
565,
509,
2943,
273,
511,
1285,
67,
13498,
2782,
67,
5458,
42,
571,
511,
1285,
67,
13498,
2782,
67,
1423,
571,
511,
1285,
67,
13498,
2782,
67,
654,
26897,
31,
565,
11352,
2673,
3258,
273,
394,
11352,
2673,
5621,
3639,
309,
261,
698,
1994,
2932,
14939,
6,
3719,
1377,
288,
3639,
2583,
9431,
5621,
3639,
3258,
18,
482,
548,
273,
855,
6177,
12,
15716,
67,
15480,
15641,
571,
511,
1285,
67,
17217,
734,
571,
2943,
1769,
3639,
309,
261,
267,
14818,
13,
1850,
288,
5411,
2488,
9431,
5621,
5411,
2267,
12,
21,
2
] |
private char med3( char a, char b, char c ) {
|
private char med3(char a, char b, char c) {
|
private char med3( char a, char b, char c ) { char t; if (a > b) { t = a; a = b; b = t; } if (b > c) { t = b; b = c; c = t; } if (a > b) { b = a; } return b; }
|
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/6154080061f869b4e425d608da3bd61fad967564/CBZip2OutputStream.java/buggy/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1149,
6735,
23,
12,
3001,
279,
16,
1149,
324,
16,
1149,
276,
13,
288,
3639,
1149,
268,
31,
3639,
309,
261,
69,
405,
324,
13,
288,
5411,
268,
273,
279,
31,
5411,
279,
273,
324,
31,
5411,
324,
273,
268,
31,
3639,
289,
3639,
309,
261,
70,
405,
276,
13,
288,
5411,
268,
273,
324,
31,
5411,
324,
273,
276,
31,
5411,
276,
273,
268,
31,
3639,
289,
3639,
309,
261,
69,
405,
324,
13,
288,
5411,
324,
273,
279,
31,
3639,
289,
3639,
327,
324,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1149,
6735,
23,
12,
3001,
279,
16,
1149,
324,
16,
1149,
276,
13,
288,
3639,
1149,
268,
31,
3639,
309,
261,
69,
405,
324,
13,
288,
5411,
268,
273,
279,
31,
5411,
279,
273,
324,
31,
5411,
324,
273,
268,
31,
3639,
289,
3639,
309,
261,
70,
405,
276,
13,
288,
5411,
268,
273,
324,
31,
5411,
324,
273,
276,
31,
5411,
276,
273,
268,
31,
3639,
289,
3639,
309,
261,
69,
405,
324,
13,
288,
5411,
324,
273,
279,
31,
3639,
289,
3639,
327,
324,
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
] |
Juicer juicer = (Juicer) b.getComponentInstance(Juicer.class);
|
Juicer juicer = (Juicer) y.getComponentInstance(Juicer.class);
|
public void testHierarchy() { try { // Create a hierarchy of containers MutablePicoContainer a = new DefaultPicoContainer(); MutablePicoContainer b = new DefaultPicoContainer(a); MutablePicoContainer c = new DefaultPicoContainer(a); // Assemble components a.registerComponentImplementation(Apple.class); b.registerComponentImplementation(Juicer.class); c.registerComponentImplementation(Peeler.class); // Instantiate components Peeler peeler = (Peeler) c.getComponentInstance(Peeler.class); // WON'T WORK! peeler will be null peeler = (Peeler) a.getComponentInstance(Peeler.class); // WON'T WORK! This will throw an exception Juicer juicer = (Juicer) b.getComponentInstance(Juicer.class); } catch (UnsatisfiableDependenciesException e) { e.printStackTrace(); // expected } }
|
14040 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14040/be200e8e72b8d519c7566216328e3d276e94701f/HierarchyTestCase.java/clean/java/picocontainer/src/test/org/picocontainer/doc/introduction/HierarchyTestCase.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
12074,
1435,
288,
3639,
775,
288,
5411,
368,
1788,
279,
9360,
434,
8475,
5411,
10960,
52,
10764,
2170,
279,
273,
394,
2989,
52,
10764,
2170,
5621,
5411,
10960,
52,
10764,
2170,
324,
273,
394,
2989,
52,
10764,
2170,
12,
69,
1769,
5411,
10960,
52,
10764,
2170,
276,
273,
394,
2989,
52,
10764,
2170,
12,
69,
1769,
5411,
368,
2970,
10045,
4085,
5411,
279,
18,
4861,
1841,
13621,
12,
1294,
1802,
18,
1106,
1769,
5411,
324,
18,
4861,
1841,
13621,
12,
46,
89,
21349,
18,
1106,
1769,
5411,
276,
18,
4861,
1841,
13621,
12,
11227,
22990,
18,
1106,
1769,
5411,
368,
26492,
4085,
5411,
19622,
22990,
2804,
22990,
273,
261,
11227,
22990,
13,
276,
18,
588,
1841,
1442,
12,
11227,
22990,
18,
1106,
1769,
5411,
368,
678,
673,
11,
56,
17062,
5,
2804,
22990,
903,
506,
446,
5411,
2804,
22990,
273,
261,
11227,
22990,
13,
279,
18,
588,
1841,
1442,
12,
11227,
22990,
18,
1106,
1769,
5411,
368,
678,
673,
11,
56,
17062,
5,
1220,
903,
604,
392,
1520,
5411,
804,
89,
21349,
31259,
21349,
273,
261,
46,
89,
21349,
13,
677,
18,
588,
1841,
1442,
12,
46,
89,
21349,
18,
1106,
1769,
540,
289,
1044,
261,
984,
12973,
7396,
2214,
8053,
503,
425,
13,
288,
5411,
425,
18,
1188,
6332,
5621,
5411,
368,
2665,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
12074,
1435,
288,
3639,
775,
288,
5411,
368,
1788,
279,
9360,
434,
8475,
5411,
10960,
52,
10764,
2170,
279,
273,
394,
2989,
52,
10764,
2170,
5621,
5411,
10960,
52,
10764,
2170,
324,
273,
394,
2989,
52,
10764,
2170,
12,
69,
1769,
5411,
10960,
52,
10764,
2170,
276,
273,
394,
2989,
52,
10764,
2170,
12,
69,
1769,
5411,
368,
2970,
10045,
4085,
5411,
279,
18,
4861,
1841,
13621,
12,
1294,
1802,
18,
1106,
1769,
5411,
324,
18,
4861,
1841,
13621,
12,
46,
89,
21349,
18,
1106,
1769,
5411,
276,
18,
4861,
1841,
13621,
12,
11227,
22990,
18,
1106,
1769,
5411,
368,
26492,
4085,
5411,
19622,
22990,
2804,
22990,
273,
261,
11227,
22990,
13,
276,
18,
588,
2
] |
if (driver.equals("postgres")) {
|
if (driver.equals("postgresql")) {
|
DBAdmin(String args[]) { String option = null; usage = "Usage: java DBAdmin options\n"; usage += "Options:\n"; usage += "--useURL 'thisURL' -r Administer DB specified by 'thisURL'\n"; usage += " (example: \"jdbc:postgresql://www.nmrshiftdb.org/nmrshiftdb\")\n"; usage += "--useHost 'thisHost' -h Administer DB specified by 'thisHost'\n"; usage += " (URL is formed as follows: \"jdbc:postgresql://thisHost/nmrshiftdb\")\n"; usage += "--useDriver 'thisDriver' -D Driver for DB specified by 'thisDriver'\n"; usage += " (mysql | postgresql)\n"; usage += "--username 'thisUser' -u Log into database using 'thisUser' as the username\n"; usage += "--passwd 'thisPasswd' -p Log into database using 'thisPasswd' as the passwd\n"; usage += "--createDefaultTables -c Initialize empty database with default tables\n"; usage += "--insertMolecule 'xxx.mol' -i Loads some test data into table\n"; usage += "--listTables -l List tables, their structure and some info on their content\n"; usage += "--deleteTables -d Delete all the tables in the database\n"; if (args.length == 0) { System.out.println(usage); System.exit(0); } for (int f = 0;f < args.length;f++) { option = args[f]; if (option.equals("--useURL") || option.equals("-r")) { useURL = true; url = args[++f]; System.out.println("Using URL: " + url); } else if(option.equals("--useHost") || option.equals("-h")) { useHost = true; host = args[++f]; } else if(option.equals("--username") || option.equals("-u")) { user = args[++f]; } else if(option.equals("--useDriver") || option.equals("-D")) { driver = args[++f]; System.out.println("Using Driver: " + driver); } else if(option.equals("--passwd") || option.equals("-p")) { pwd = args[++f]; } else if(option.equals("--createDefaultTables") || option.equals("-c")) { createDefaultTables = true; } else if(option.equals("--listTables") || option.equals("-l")) { listTables = true; } else if(option.equals("--insertMolecule") || option.equals("-i")) { insertMolecule = true; thisMol = args[++f]; } else if(option.equals("--deleteTables") || option.equals("-d")) { deleteTables = true; } else { System.out.println("Unknown option: " + args[f]); System.out.println(usage); System.exit(0); } } /* * Parsing of command line options done, do it now */ try { if (driver.equals("postgres")) { System.out.print("Loading PostGres driver... "); Class.forName("postgres.Driver"); } else if (driver.equals("mysql")) { System.out.print("Loading MySQL driver... "); Class.forName("org.gjt.mm.mysql.Driver").newInstance(); } System.out.println("done."); if (useURL) { db = DriverManager.getConnection(url,user,pwd); } else if (useHost) { url = "jdbc:" + driver + "://" + host + "/testdb"; db = DriverManager.getConnection(url,user,pwd); } } catch(Exception exc) { criticalExit("Error while trying to load JDBC driver",exc); } try { db = DriverManager.getConnection(url,user,pwd); } catch(Exception exc) { criticalExit("Error while trying to connect to database",exc); } if(createDefaultTables) { createDefaultTables(); } if (listTables) { listTables(); } if(insertMolecule) { insertMolecule(thisMol); } if(deleteTables) { deleteTables(); } try { db.close(); } catch(Exception exc) { criticalExit("Error while trying to close connection",exc); } }
|
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/423477a37f6fb3fe9fb9ff31f774fec9890db238/DBAdmin.java/buggy/org/openscience/cdk/database/DBAdmin.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2383,
4446,
12,
780,
833,
63,
5717,
565,
288,
3639,
514,
1456,
273,
446,
31,
3639,
4084,
273,
315,
5357,
30,
2252,
2383,
4446,
702,
64,
82,
14432,
3639,
4084,
1011,
315,
1320,
5581,
82,
14432,
3639,
4084,
1011,
5238,
1202,
1785,
296,
2211,
1785,
11,
300,
86,
5411,
7807,
1249,
2383,
1269,
635,
296,
2211,
1785,
8314,
82,
14432,
3639,
4084,
1011,
315,
4766,
261,
8236,
30,
1239,
24687,
30,
2767,
24330,
2207,
5591,
18,
15094,
86,
4012,
1966,
18,
3341,
19,
15094,
86,
4012,
1966,
2412,
5153,
82,
14432,
3639,
4084,
1011,
5238,
1202,
2594,
296,
2211,
2594,
11,
300,
76,
1850,
7807,
1249,
2383,
1269,
635,
296,
2211,
2594,
8314,
82,
14432,
3639,
4084,
1011,
315,
4766,
261,
1785,
353,
20010,
487,
13040,
30,
1239,
24687,
30,
2767,
24330,
2207,
2211,
2594,
19,
15094,
86,
4012,
1966,
2412,
5153,
82,
14432,
3639,
4084,
1011,
5238,
1202,
4668,
296,
2211,
4668,
11,
300,
40,
1377,
9396,
364,
2383,
1269,
635,
296,
2211,
4668,
8314,
82,
14432,
3639,
4084,
1011,
315,
4766,
261,
12527,
571,
1603,
24330,
5153,
82,
14432,
3639,
4084,
1011,
5238,
5053,
296,
2211,
1299,
11,
300,
89,
540,
1827,
1368,
2063,
1450,
296,
2211,
1299,
11,
487,
326,
2718,
64,
82,
14432,
3639,
4084,
1011,
5238,
24002,
296,
2211,
6433,
3623,
11,
300,
84,
540,
1827,
1368,
2063,
1450,
296,
2211,
6433,
3623,
11,
487,
326,
19093,
64,
82,
14432,
3639,
4084,
1011,
5238,
2640,
1868,
6905,
300,
71,
540,
9190,
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,
2383,
4446,
12,
780,
833,
63,
5717,
565,
288,
3639,
514,
1456,
273,
446,
31,
3639,
4084,
273,
315,
5357,
30,
2252,
2383,
4446,
702,
64,
82,
14432,
3639,
4084,
1011,
315,
1320,
5581,
82,
14432,
3639,
4084,
1011,
5238,
1202,
1785,
296,
2211,
1785,
11,
300,
86,
5411,
7807,
1249,
2383,
1269,
635,
296,
2211,
1785,
8314,
82,
14432,
3639,
4084,
1011,
315,
4766,
261,
8236,
30,
1239,
24687,
30,
2767,
24330,
2207,
5591,
18,
15094,
86,
4012,
1966,
18,
3341,
19,
15094,
86,
4012,
1966,
2412,
5153,
82,
14432,
3639,
4084,
1011,
5238,
1202,
2594,
296,
2211,
2594,
11,
300,
76,
1850,
7807,
1249,
2383,
1269,
635,
296,
2211,
2594,
8314,
82,
14432,
3639,
4084,
1011,
2
] |
public Container create(boolean loadSingletons, List<Class<?>> ignoreFailureStaticInjection) {
|
public Container create(boolean loadSingletons) {
|
public Container create(boolean loadSingletons, List<Class<?>> ignoreFailureStaticInjection) { ensureNotCreated(); created = true; final ContainerImpl container = new ContainerImpl( new HashMap<Key<?>, InternalFactory<?>>(factories)); if (loadSingletons) { container.callInContext(new ContainerImpl.ContextualCallable<Void>() { public Void call(InternalContext context) { for (InternalFactory<?> factory : singletonFactories) { factory.create(context); } return null; } }); } container.injectStatics(staticInjections, ignoreFailureStaticInjection); return container; }
|
16468 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/16468/2577b98d1bf84b23a64a45ded1ab69d00507785a/ContainerBuilder.java/clean/src/java/com/opensymphony/xwork2/inject/ContainerBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4039,
752,
12,
6494,
1262,
19571,
87,
13,
288,
565,
3387,
1248,
6119,
5621,
565,
2522,
273,
638,
31,
565,
727,
4039,
2828,
1478,
273,
394,
4039,
2828,
12,
3639,
394,
4317,
32,
653,
12880,
20401,
3186,
1733,
12880,
9778,
12,
3493,
2401,
10019,
565,
309,
261,
945,
19571,
87,
13,
288,
1377,
1478,
18,
1991,
29334,
12,
2704,
4039,
2828,
18,
1042,
1462,
11452,
32,
19038,
34,
1435,
288,
3639,
1071,
6988,
745,
12,
3061,
1042,
819,
13,
288,
1850,
364,
261,
3061,
1733,
12880,
34,
3272,
294,
6396,
19271,
13,
288,
5411,
3272,
18,
2640,
12,
2472,
1769,
1850,
289,
1850,
327,
446,
31,
3639,
289,
1377,
15549,
565,
289,
565,
1478,
18,
22170,
5000,
2102,
12,
3845,
12039,
87,
16,
2305,
5247,
5788,
12039,
1769,
565,
327,
1478,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4039,
752,
12,
6494,
1262,
19571,
87,
13,
288,
565,
3387,
1248,
6119,
5621,
565,
2522,
273,
638,
31,
565,
727,
4039,
2828,
1478,
273,
394,
4039,
2828,
12,
3639,
394,
4317,
32,
653,
12880,
20401,
3186,
1733,
12880,
9778,
12,
3493,
2401,
10019,
565,
309,
261,
945,
19571,
87,
13,
288,
1377,
1478,
18,
1991,
29334,
12,
2704,
4039,
2828,
18,
1042,
1462,
11452,
32,
19038,
34,
1435,
288,
3639,
1071,
6988,
745,
12,
3061,
1042,
819,
13,
288,
1850,
364,
261,
3061,
1733,
12880,
34,
3272,
294,
6396,
19271,
13,
288,
5411,
3272,
18,
2640,
12,
2472,
1769,
1850,
289,
1850,
327,
446,
31,
3639,
289,
1377,
15549,
565,
289,
565,
1478,
18,
22170,
5000,
2
] |
data = DataTools.read4UnsignedBytes(in, little);
|
data = in.readInt(); if (data < 0) data += 4294967296L;
|
protected void parseSubBlocks(long data, String suffix, boolean little) throws IOException, FormatException { if (data == 0) return; in.seek((int) data); long size = DataTools.read4UnsignedBytes(in, little); long numSubBlocks = DataTools.read4UnsignedBytes(in, little); put("NumSubBlocks-" + suffix, numSubBlocks); long numChannels = DataTools.read4UnsignedBytes(in, little); put("NumChannels-" + suffix, numChannels); data = DataTools.read4UnsignedBytes(in, little); put("LutType-" + suffix, data); data = DataTools.read4UnsignedBytes(in, little); put("Advanced-" + suffix, data); data = DataTools.read4UnsignedBytes(in, little); put("CurrentChannel-" + suffix, data); in.skipBytes(36); for (int i=0; i<numSubBlocks; i++) { data = DataTools.read4UnsignedBytes(in, little); put("Type" + i + "-" + suffix, data); put("Size" + i + "-" + suffix, DataTools.read4UnsignedBytes(in, little)); switch ((int) data) { case 1: for (int j=0; j<numChannels; j++) { put("GammaChannel" + j + "-" + i + "-" + suffix, DataTools.readDouble(in, little)); } break; case 2: for (int j=0; j<numChannels; j++) { put("BrightnessChannel" + j + "-" + i + "-" + suffix, DataTools.readDouble(in, little)); } break; case 3: for (int j=0; j<numChannels; j++) { put("ContrastChannel" + j + "-" + i + "-" + suffix, DataTools.readDouble(in, little)); } break; case 4: for (int j=0; j<numChannels; j++) { put("RampStartXChannel" + j + "-" + i + "-" + suffix, DataTools.readDouble(in, little)); put("RampStartYChannel" + j + "-" + i + "-" + suffix, DataTools.readDouble(in, little)); put("RampEndXChannel" + j + "-" + i + "-" + suffix, DataTools.readDouble(in, little)); put("RampEndYChannel" + j + "-" + i + "-" + suffix, DataTools.readDouble(in, little)); j += 4; } break; case 5: // the specs are unclear as to how // this subblock should be read, so I'm // skipping it for the present break; case 6: // also skipping this block for // the moment break; } } }
|
46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/2df09d33bfdc966378aae0cc09cb503afb983bc2/ZeissLSMReader.java/buggy/loci/formats/in/ZeissLSMReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1109,
1676,
6450,
12,
5748,
501,
16,
514,
3758,
16,
1250,
12720,
13,
565,
1216,
1860,
16,
4077,
503,
225,
288,
565,
309,
261,
892,
422,
374,
13,
327,
31,
565,
316,
18,
16508,
12443,
474,
13,
501,
1769,
565,
1525,
963,
273,
1910,
10348,
18,
896,
24,
13290,
2160,
12,
267,
16,
12720,
1769,
565,
1525,
818,
1676,
6450,
273,
1910,
10348,
18,
896,
24,
13290,
2160,
12,
267,
16,
12720,
1769,
565,
1378,
2932,
2578,
1676,
6450,
10951,
397,
3758,
16,
818,
1676,
6450,
1769,
565,
1525,
818,
10585,
273,
1910,
10348,
18,
896,
24,
13290,
2160,
12,
267,
16,
12720,
1769,
565,
1378,
2932,
2578,
10585,
10951,
397,
3758,
16,
818,
10585,
1769,
565,
501,
273,
316,
18,
896,
1702,
5621,
309,
261,
892,
411,
374,
13,
501,
1011,
27542,
7616,
9599,
5540,
26,
48,
31,
565,
1378,
2932,
48,
322,
559,
10951,
397,
3758,
16,
501,
1769,
565,
501,
273,
316,
18,
896,
1702,
5621,
309,
261,
892,
411,
374,
13,
501,
1011,
27542,
7616,
9599,
5540,
26,
48,
31,
565,
1378,
2932,
23618,
10951,
397,
3758,
16,
501,
1769,
565,
501,
273,
316,
18,
896,
1702,
5621,
309,
261,
892,
411,
374,
13,
501,
1011,
27542,
7616,
9599,
5540,
26,
48,
31,
565,
1378,
2932,
3935,
2909,
10951,
397,
3758,
16,
501,
1769,
565,
316,
18,
7457,
2160,
12,
5718,
1769,
565,
364,
261,
474,
277,
33,
20,
31,
277,
32,
2107,
1676,
6450,
31,
277,
27245,
288,
1377,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1109,
1676,
6450,
12,
5748,
501,
16,
514,
3758,
16,
1250,
12720,
13,
565,
1216,
1860,
16,
4077,
503,
225,
288,
565,
309,
261,
892,
422,
374,
13,
327,
31,
565,
316,
18,
16508,
12443,
474,
13,
501,
1769,
565,
1525,
963,
273,
1910,
10348,
18,
896,
24,
13290,
2160,
12,
267,
16,
12720,
1769,
565,
1525,
818,
1676,
6450,
273,
1910,
10348,
18,
896,
24,
13290,
2160,
12,
267,
16,
12720,
1769,
565,
1378,
2932,
2578,
1676,
6450,
10951,
397,
3758,
16,
818,
1676,
6450,
1769,
565,
1525,
818,
10585,
273,
1910,
10348,
18,
896,
24,
13290,
2160,
12,
267,
16,
12720,
1769,
565,
1378,
2932,
2578,
10585,
10951,
397,
3758,
16,
818,
10585,
1769,
2
] |
fillContainers(context, itemInfo);
|
fillCollections(context, itemInfo);
|
public static List harvest(Context context, DSpaceObject scope, String startDate, String endDate, int offset, int limit, boolean items, boolean containers, boolean withdrawn) throws SQLException { // SQL to add to the list of tables after the SELECT String scopeTableSQL = ""; // SQL to add to the WHERE clause of the query String scopeWhereSQL = ""; if (scope != null) { if (scope.getType() == Constants.COMMUNITY) { // Getting things within a community scopeTableSQL = ", community2item"; scopeWhereSQL = " AND community2item.community_id=" + scope.getID() + " AND community2item.item_id=handle.resource_id"; } else if (scope.getType() == Constants.COLLECTION) { scopeTableSQL = ", collection2item"; scopeWhereSQL = " AND collection2item.collection_id=" + scope.getID() + " AND collection2item.item_id=handle.resource_id"; } // Theoretically, no other possibilities, won't bother to check } // Put together our query. Note there is no need for an // "in_archive=true" condition, we are using the existence of // Handles as our 'existence criterion'. String query = "SELECT handle.handle, handle.resource_id, item.withdrawn, item.last_modified FROM handle, item" + scopeTableSQL + " WHERE handle.resource_type_id=" + Constants.ITEM + " AND handle.resource_id=item.item_id" + scopeWhereSQL; if (startDate != null) { query = query + " AND item.last_modified >= '" + startDate + "'"; } if (endDate != null) { query = query + " AND item.last_modified <= '" + endDate + "'"; } if (withdrawn = false) { // Exclude withdrawn items query = query + " AND withdrawn=false"; } // Order by item ID, so that for a given harvest the order will be // consistent. This is so that big harvests can be broken up into // several smaller operations (e.g. for OAI resumption tokens.) query = query + " ORDER BY handle.resource_id"; log.debug(LogManager.getHeader(context, "harvest SQL", query)); // Execute TableRowIterator tri = DatabaseManager.query(context, query); List infoObjects = new LinkedList(); int index = 0; // Process results of query into HarvestedItemInfo objects while (tri.hasNext()) { TableRow row = tri.next(); /* * This conditional ensures that we only process items within * any constraints specified by 'offset' and 'limit' parameters. */ if (index >= offset && (limit == 0 || index < offset + limit)) { HarvestedItemInfo itemInfo = new HarvestedItemInfo(); itemInfo.handle = row.getStringColumn("handle"); itemInfo.itemID = row.getIntColumn("resource_id"); // Put datestamp in ISO8601 itemInfo.datestamp = row.getDateColumn("last_modified"); itemInfo.withdrawn = row.getBooleanColumn("withdrawn"); if (containers) { fillContainers(context, itemInfo); } if (items) { // Get the item itemInfo.item = Item.find(context, itemInfo.itemID); } infoObjects.add(itemInfo); } index++; } return infoObjects; }
|
25205 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25205/564aa767ae3958fb227322d346195962712ce24e/Harvest.java/buggy/dspace/src/org/dspace/search/Harvest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
987,
17895,
26923,
12,
1042,
819,
16,
3639,
463,
3819,
921,
2146,
16,
3639,
514,
12572,
16,
3639,
514,
13202,
16,
3639,
509,
1384,
16,
3639,
509,
1800,
16,
3639,
1250,
1516,
16,
3639,
1250,
8475,
16,
3639,
1250,
598,
9446,
82,
13,
3639,
1216,
6483,
565,
288,
3639,
368,
3063,
358,
527,
358,
326,
666,
434,
4606,
1839,
326,
9111,
3639,
514,
2146,
1388,
3997,
273,
1408,
31,
3639,
368,
3063,
358,
527,
358,
326,
4852,
6591,
434,
326,
843,
3639,
514,
2146,
5262,
3997,
273,
1408,
31,
13491,
309,
261,
4887,
480,
446,
13,
3639,
288,
5411,
309,
261,
4887,
18,
588,
559,
1435,
422,
5245,
18,
4208,
49,
2124,
4107,
13,
5411,
288,
7734,
368,
26602,
9198,
3470,
279,
19833,
7734,
2146,
1388,
3997,
273,
3104,
19833,
22,
1726,
14432,
7734,
2146,
5262,
3997,
273,
315,
4116,
19833,
22,
1726,
18,
20859,
67,
350,
1546,
397,
10792,
2146,
18,
588,
734,
1435,
397,
10792,
315,
4116,
19833,
22,
1726,
18,
1726,
67,
350,
33,
4110,
18,
3146,
67,
350,
14432,
5411,
289,
5411,
469,
309,
261,
4887,
18,
588,
559,
1435,
422,
5245,
18,
25964,
13,
5411,
288,
7734,
2146,
1388,
3997,
273,
3104,
1849,
22,
1726,
14432,
7734,
2146,
5262,
3997,
273,
315,
4116,
1849,
22,
1726,
18,
5548,
67,
350,
1546,
397,
10792,
2146,
18,
588,
734,
1435,
397,
10792,
315,
4116,
1849,
22,
1726,
18,
1726,
67,
350,
33,
4110,
18,
3146,
67,
350,
14432,
5411,
289,
5411,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
987,
17895,
26923,
12,
1042,
819,
16,
3639,
463,
3819,
921,
2146,
16,
3639,
514,
12572,
16,
3639,
514,
13202,
16,
3639,
509,
1384,
16,
3639,
509,
1800,
16,
3639,
1250,
1516,
16,
3639,
1250,
8475,
16,
3639,
1250,
598,
9446,
82,
13,
3639,
1216,
6483,
565,
288,
3639,
368,
3063,
358,
527,
358,
326,
666,
434,
4606,
1839,
326,
9111,
3639,
514,
2146,
1388,
3997,
273,
1408,
31,
3639,
368,
3063,
358,
527,
358,
326,
4852,
6591,
434,
326,
843,
3639,
514,
2146,
5262,
3997,
273,
1408,
31,
13491,
309,
261,
4887,
480,
446,
13,
3639,
288,
5411,
309,
261,
4887,
18,
588,
559,
1435,
422,
5245,
18,
4208,
49,
2124,
4107,
13,
5411,
288,
2
] |
String name = getEquipmentName( (String) equipmentLists[ WEAPON ].getSelectedItem() );
|
String name = getCurrentEquipmentName( WEAPON );
|
public static boolean rangedWeapon() { String name = getEquipmentName( (String) equipmentLists[ WEAPON ].getSelectedItem() ); return name != null && EquipmentDatabase.isRanged( name ); }
|
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/a6bec214732e2e5c8c9a12b4fb6f2c55fd62c2ef/KoLCharacter.java/buggy/src/net/sourceforge/kolmafia/KoLCharacter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1250,
436,
2330,
3218,
28629,
1435,
202,
95,
202,
202,
780,
508,
273,
4774,
372,
11568,
461,
12,
261,
780,
13,
1298,
11568,
7432,
63,
13880,
2203,
673,
308,
18,
588,
7416,
1180,
1435,
11272,
202,
202,
2463,
508,
480,
446,
597,
19008,
11568,
4254,
18,
291,
54,
2330,
12,
508,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1250,
436,
2330,
3218,
28629,
1435,
202,
95,
202,
202,
780,
508,
273,
4774,
372,
11568,
461,
12,
261,
780,
13,
1298,
11568,
7432,
63,
13880,
2203,
673,
308,
18,
588,
7416,
1180,
1435,
11272,
202,
202,
2463,
508,
480,
446,
597,
19008,
11568,
4254,
18,
291,
54,
2330,
12,
508,
11272,
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
] |
if (fileContentDescription != null && fileContentDescription.exists()) {
|
if (fileContentDescription != null && fileContentDescription.exists()) {
|
public void createExistentResourceFromHandle(IResource resource, IProgressMonitor monitor) throws CoreException { Assert.isLegal(resource instanceof IFile); if (resource.exists()) { return; } IFile fileHandle = (IFile) resource; monitor.beginTask(UndoMessages.FileDescription_NewFileProgress, 200); try { if (monitor.isCanceled()) { throw new OperationCanceledException(); } if (location != null) { fileHandle.createLink(location, IResource.ALLOW_MISSING_LOCAL, new SubProgressMonitor(monitor, 200)); } else { InputStream contents = new ByteArrayInputStream( UndoMessages.FileDescription_ContentsCouldNotBeRestored .getBytes()); // Retrieve the contents and charset from the file content // description. Other file state attributes, such as timestamps, // have already been retrieved from the original IResource // object and are restored in the superclass. if (fileContentDescription != null && fileContentDescription.exists()) { contents = fileContentDescription.getContents(); // If the charset was explicitly recorded from the file handle, // use it. But if it is null, get it from the fileContentDescription. if (charset == null) { charset = fileContentDescription.getCharset(); } } fileHandle.create(contents, false, new SubProgressMonitor( monitor, 100)); fileHandle.setCharset(charset, new SubProgressMonitor(monitor, 100)); } if (monitor.isCanceled()) { throw new OperationCanceledException(); } } catch (CoreException e) { if (e.getStatus().getCode() == IResourceStatus.PATH_OCCUPIED) { fileHandle.refreshLocal(IResource.DEPTH_ZERO, null); } else { throw e; } } finally { monitor.done(); } }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/bac5473276659b31db1c81ccdca3524feb032b4a/FileDescription.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/FileDescription.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
4786,
319,
1420,
1265,
3259,
12,
45,
1420,
1058,
16,
1082,
202,
45,
5491,
7187,
6438,
13,
1216,
30015,
288,
202,
202,
8213,
18,
291,
30697,
12,
3146,
1276,
467,
812,
1769,
202,
202,
430,
261,
3146,
18,
1808,
10756,
288,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
45,
812,
26662,
273,
261,
45,
812,
13,
1058,
31,
202,
202,
10259,
18,
10086,
2174,
12,
31224,
5058,
18,
812,
3291,
67,
1908,
812,
5491,
16,
4044,
1769,
202,
202,
698,
288,
1082,
202,
430,
261,
10259,
18,
291,
23163,
10756,
288,
9506,
202,
12849,
394,
4189,
23163,
503,
5621,
1082,
202,
97,
1082,
202,
430,
261,
3562,
480,
446,
13,
288,
9506,
202,
768,
3259,
18,
2640,
2098,
12,
3562,
16,
467,
1420,
18,
13511,
67,
19466,
67,
14922,
16,
25083,
202,
2704,
2592,
5491,
7187,
12,
10259,
16,
4044,
10019,
1082,
202,
97,
469,
288,
9506,
202,
4348,
2939,
273,
394,
16180,
12,
25083,
202,
31224,
5058,
18,
812,
3291,
67,
6323,
4445,
1248,
1919,
5188,
7653,
6862,
9506,
202,
18,
588,
2160,
10663,
9506,
202,
759,
10708,
326,
2939,
471,
4856,
628,
326,
585,
913,
9506,
202,
759,
2477,
18,
4673,
585,
919,
1677,
16,
4123,
487,
11267,
16,
9506,
202,
759,
1240,
1818,
2118,
10295,
628,
326,
2282,
467,
1420,
9506,
202,
759,
733,
471,
854,
18751,
316,
326,
12098,
18,
9506,
202,
430,
261,
768,
1350,
3291,
480,
446,
597,
19599,
3291,
18,
1808,
10756,
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,
225,
202,
482,
918,
752,
4786,
319,
1420,
1265,
3259,
12,
45,
1420,
1058,
16,
1082,
202,
45,
5491,
7187,
6438,
13,
1216,
30015,
288,
202,
202,
8213,
18,
291,
30697,
12,
3146,
1276,
467,
812,
1769,
202,
202,
430,
261,
3146,
18,
1808,
10756,
288,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
45,
812,
26662,
273,
261,
45,
812,
13,
1058,
31,
202,
202,
10259,
18,
10086,
2174,
12,
31224,
5058,
18,
812,
3291,
67,
1908,
812,
5491,
16,
4044,
1769,
202,
202,
698,
288,
1082,
202,
430,
261,
10259,
18,
291,
23163,
10756,
288,
9506,
202,
12849,
394,
4189,
23163,
503,
5621,
1082,
202,
97,
1082,
202,
430,
261,
3562,
480,
446,
13,
288,
9506,
2
] |
public String[] getProductValues() { String[] array = new String[productValues.size()]; // create the array and return it for (int i = 0; i < productValues.size(); i++) array[i] = productValues.get(i); return array; }
|
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/1245a92f28a2990bae8373c09891556a69268c75/BugzillaQueryPageParser.java/buggy/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/bugzilla/core/search/BugzillaQueryPageParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
8526,
15880,
1972,
1435,
288,
202,
202,
780,
8526,
526,
273,
394,
514,
63,
5896,
1972,
18,
1467,
1435,
15533,
9506,
202,
759,
752,
326,
526,
471,
327,
518,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
3017,
1972,
18,
1467,
5621,
277,
27245,
1082,
202,
1126,
63,
77,
65,
273,
3017,
1972,
18,
588,
12,
77,
1769,
202,
202,
2463,
526,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
514,
8526,
15880,
1972,
1435,
288,
202,
202,
780,
8526,
526,
273,
394,
514,
63,
5896,
1972,
18,
1467,
1435,
15533,
9506,
202,
759,
752,
326,
526,
471,
327,
518,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
3017,
1972,
18,
1467,
5621,
277,
27245,
1082,
202,
1126,
63,
77,
65,
273,
3017,
1972,
18,
588,
12,
77,
1769,
202,
202,
2463,
526,
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
] |
||
{ match("*=");
|
{ match("=*"); if (failed) return ;
|
public void mMISC() throws RecognitionException { try { int type = MISC; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:751:17: ( '!' | '@' | '$' | '%' | '^' | '&' | '*' | '_' | '-' | '+' | '|' | ',' | '{' | '}' | '[' | ']' | ';' | '=' | '/' | '(' | ')' | '\'' | '\\' | '||' | '&&' | '<<<' | '++' | '--' | '>>>' | '==' | '+=' | '=+' | '-=' | '=-' | '*=' | '=*' | '/=' | '=/' ) int alt1=38; switch ( input.LA(1) ) { case '!': alt1=1; break; case '@': alt1=2; break; case '$': alt1=3; break; case '%': alt1=4; break; case '^': alt1=5; break; case '&': int LA1_6 = input.LA(2); if ( LA1_6=='&' ) { alt1=25; } else { alt1=6;} break; case '*': int LA1_7 = input.LA(2); if ( LA1_7=='=' ) { alt1=35; } else { alt1=7;} break; case '_': alt1=8; break; case '-': switch ( input.LA(2) ) { case '-': alt1=28; break; case '=': alt1=33; break; default: alt1=9;} break; case '+': switch ( input.LA(2) ) { case '+': alt1=27; break; case '=': alt1=31; break; default: alt1=10;} break; case '|': int LA1_11 = input.LA(2); if ( LA1_11=='|' ) { alt1=24; } else { alt1=11;} break; case ',': alt1=12; break; case '{': alt1=13; break; case '}': alt1=14; break; case '[': alt1=15; break; case ']': alt1=16; break; case ';': alt1=17; break; case '=': switch ( input.LA(2) ) { case '*': alt1=36; break; case '-': alt1=34; break; case '/': alt1=38; break; case '=': alt1=30; break; case '+': alt1=32; break; default: alt1=18;} break; case '/': int LA1_19 = input.LA(2); if ( LA1_19=='=' ) { alt1=37; } else { alt1=19;} break; case '(': alt1=20; break; case ')': alt1=21; break; case '\'': alt1=22; break; case '\\': alt1=23; break; case '<': alt1=26; break; case '>': alt1=29; break; default: NoViableAltException nvae = new NoViableAltException("750:1: MISC : ( \'!\' | \'@\' | \'$\' | \'%\' | \'^\' | \'&\' | \'*\' | \'_\' | \'-\' | \'+\' | \'|\' | \',\' | \'{\' | \'}\' | \'[\' | \']\' | \';\' | \'=\' | \'/\' | \'(\' | \')\' | \'\\\'\' | \'\\\\\' | \'||\' | \'&&\' | \'<<<\' | \'++\' | \'--\' | \'>>>\' | \'==\' | \'+=\' | \'=+\' | \'-=\' | \'=-\' | \'*=\' | \'=*\' | \'/=\' | \'=/\' );", 1, 0, input); throw nvae; } switch (alt1) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:751:17: '!' { match('!'); } break; case 2 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:751:23: '@' { match('@'); } break; case 3 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:751:29: '$' { match('$'); } break; case 4 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:751:35: '%' { match('%'); } break; case 5 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:751:41: '^' { match('^'); } break; case 6 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:751:47: '&' { match('&'); } break; case 7 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:751:53: '*' { match('*'); } break; case 8 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:751:59: '_' { match('_'); } break; case 9 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:751:65: '-' { match('-'); } break; case 10 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:751:71: '+' { match('+'); } break; case 11 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:752:19: '|' { match('|'); } break; case 12 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:752:25: ',' { match(','); } break; case 13 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:752:31: '{' { match('{'); } break; case 14 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:752:37: '}' { match('}'); } break; case 15 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:752:43: '[' { match('['); } break; case 16 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:752:49: ']' { match(']'); } break; case 17 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:752:55: ';' { match(';'); } break; case 18 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:752:62: '=' { match('='); } break; case 19 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:752:68: '/' { match('/'); } break; case 20 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:752:74: '(' { match('('); } break; case 21 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:752:80: ')' { match(')'); } break; case 22 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:752:86: '\'' { match('\''); } break; case 23 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:752:93: '\\' { match('\\'); } break; case 24 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:753:19: '||' { match("||"); } break; case 25 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:753:26: '&&' { match("&&"); } break; case 26 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:753:33: '<<<' { match("<<<"); } break; case 27 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:753:41: '++' { match("++"); } break; case 28 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:753:48: '--' { match("--"); } break; case 29 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:753:55: '>>>' { match(">>>"); } break; case 30 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:753:63: '==' { match("=="); } break; case 31 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:753:70: '+=' { match("+="); } break; case 32 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:753:77: '=+' { match("=+"); } break; case 33 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:753:84: '-=' { match("-="); } break; case 34 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:753:91: '=-' { match("=-"); } break; case 35 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:753:97: '*=' { match("*="); } break; case 36 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:753:104: '=*' { match("=*"); } break; case 37 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:754:19: '/=' { match("/="); } break; case 38 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:754:26: '=/' { match("=/"); } break; } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} } finally { } }
|
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/9c6423b7a31fdc4a1317e71a6d2850c94e2140e0/RuleParserLexer.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
312,
7492,
2312,
1435,
1216,
9539,
288,
3639,
775,
288,
5411,
509,
618,
273,
20806,
2312,
31,
5411,
509,
787,
273,
23577,
1016,
5621,
5411,
509,
980,
273,
9851,
5621,
5411,
509,
1149,
2555,
273,
23577,
2555,
382,
1670,
5621,
5411,
509,
1904,
273,
3155,
18,
5280,
67,
15814,
31,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
5877,
21,
30,
4033,
30,
261,
15502,
571,
9175,
571,
11874,
571,
9089,
571,
19161,
571,
9824,
571,
5306,
571,
4427,
571,
4014,
571,
10058,
571,
8030,
571,
3316,
571,
9790,
571,
9571,
571,
8375,
571,
8641,
571,
7554,
571,
5214,
571,
2023,
571,
7321,
571,
5777,
571,
15053,
571,
5282,
571,
6699,
16637,
571,
5183,
26045,
571,
2368,
17685,
11,
571,
15126,
6797,
571,
16979,
571,
296,
9778,
1870,
571,
22853,
571,
15126,
2218,
571,
15196,
6797,
571,
2400,
2218,
571,
15196,
6627,
571,
14609,
2218,
571,
15196,
4035,
571,
1173,
2218,
571,
15196,
2473,
262,
5411,
509,
3770,
21,
33,
7414,
31,
5411,
1620,
261,
810,
18,
2534,
12,
21,
13,
262,
288,
5411,
648,
11817,
4278,
7734,
3770,
21,
33,
21,
31,
7734,
898,
31,
5411,
648,
4622,
4278,
7734,
3770,
21,
33,
22,
31,
7734,
898,
31,
5411,
648,
3365,
4278,
7734,
3770,
21,
33,
23,
31,
7734,
898,
31,
5411,
648,
1995,
4278,
7734,
3770,
21,
33,
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,
312,
7492,
2312,
1435,
1216,
9539,
288,
3639,
775,
288,
5411,
509,
618,
273,
20806,
2312,
31,
5411,
509,
787,
273,
23577,
1016,
5621,
5411,
509,
980,
273,
9851,
5621,
5411,
509,
1149,
2555,
273,
23577,
2555,
382,
1670,
5621,
5411,
509,
1904,
273,
3155,
18,
5280,
67,
15814,
31,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
5877,
21,
30,
4033,
30,
261,
15502,
571,
9175,
571,
11874,
571,
9089,
571,
19161,
571,
9824,
571,
5306,
571,
4427,
571,
4014,
571,
10058,
571,
8030,
571,
3316,
571,
9790,
571,
9571,
571,
2
] |
final Axis axis = executeAxis2("Sales", "{[Product2].members}"); System.out.println(toString(axis.positions)); }
|
final Axis axis = executeAxis2("Sales", "{[Product2].members}"); System.out.println(toString(axis.positions)); }
|
public void _testProduct2() { final Axis axis = executeAxis2("Sales", "{[Product2].members}"); System.out.println(toString(axis.positions)); }
|
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/b5b5168edc3af09cb74945a80b0c36e6630ed502/BasicQueryTest.java/clean/testsrc/main/mondrian/test/BasicQueryTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
389,
3813,
4133,
22,
1435,
288,
202,
202,
6385,
15509,
2654,
273,
1836,
6558,
22,
2932,
23729,
3113,
4144,
63,
4133,
22,
8009,
7640,
1532,
1769,
202,
202,
3163,
18,
659,
18,
8222,
12,
10492,
12,
4890,
18,
12388,
10019,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
389,
3813,
4133,
22,
1435,
288,
202,
202,
6385,
15509,
2654,
273,
1836,
6558,
22,
2932,
23729,
3113,
4144,
63,
4133,
22,
8009,
7640,
1532,
1769,
202,
202,
3163,
18,
659,
18,
8222,
12,
10492,
12,
4890,
18,
12388,
10019,
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
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.