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 |
|---|---|---|---|---|---|---|
elm.setAttribute("onmouseover", "TM.show(evt)");
|
elm.setAttribute("onmousemove", "TM.show(evt)");
|
public void enableInteraction( InteractionEvent ie ) throws ChartException { if ( _iun == null ) { logger.log( ILogger.WARNING, Messages.getString( "exception.missing.component.interaction", getLocale( ) ) ); //$NON-NLS-1$ return; } Trigger[] triggers = ie.getTriggers( ); if ( triggers == null ) { return; } /////////////////////////////////////////////// //Create the hotspot and add the hotspot on //the SVG hotspot layer /////////////////////////////////////////////// final PrimitiveRenderEvent pre = ie.getHotSpot( ); Element elm = null; if ( pre instanceof PolygonRenderEvent ) { final Location[] loa = ( (PolygonRenderEvent) pre ).getPoints( ); int[][] pa = getCoordinatesAsInts( loa ); elm = svggc.createPolygon( pa[0], pa[1], pa[0].length ); } else if ( pre instanceof OvalRenderEvent ) { final Bounds boEllipse = ( (OvalRenderEvent) pre ).getBounds( ); elm = svggc.createOval( boEllipse.getLeft( ), boEllipse.getTop( ), boEllipse.getWidth( ), boEllipse.getHeight( ) ); } else if ( pre instanceof ArcRenderEvent ) { final ArcRenderEvent are = (ArcRenderEvent) pre; if ( are.getInnerRadius( ) >= 0 && are.getOuterRadius( ) > 0 && are.getInnerRadius( ) < are.getOuterRadius( ) ) { Shape outerArc = new Arc2D.Double( are.getTopLeft( ).getX( ) + ( are.getWidth( ) - 2 * are.getOuterRadius( ) ) / 2, are.getTopLeft( ).getY( ) + ( are.getHeight( ) - 2 * are.getOuterRadius( ) ) / 2, 2 * are.getOuterRadius( ), 2 * are.getOuterRadius( ), are.getStartAngle( ), are.getAngleExtent( ), Arc2D.PIE ); Shape innerArc = new Arc2D.Double( are.getTopLeft( ).getX( ) + ( are.getWidth( ) - 2 * are.getInnerRadius( ) ) / 2, are.getTopLeft( ).getY( ) + ( are.getHeight( ) - 2 * are.getInnerRadius( ) ) / 2, 2 * are.getInnerRadius( ), 2 * are.getInnerRadius( ), are.getStartAngle( ), are.getAngleExtent( ), Arc2D.PIE ); Area fArea = new Area( outerArc ); fArea.exclusiveOr( new Area( innerArc ) );// Shape prevClip = _g2d.getClip( );// _g2d.setClip( fArea ); elm = svggc.createGeneralPath( fArea );// _g2d.setClip( prevClip ); } else { elm = svggc.createGeneralPath( new Arc2D.Double( are.getTopLeft( ).getX( ), are.getTopLeft( ).getY( ), are.getWidth( ), are.getHeight( ), are.getStartAngle( ), are.getAngleExtent( ), toSwingArcType( are.getStyle( ) ) ) ); } } ////////////////////////////////////// //Add event handling to the hotspot ////////////////////////////////////// if (elm != null) { for (int x = 0; x < triggers.length; x++) { Trigger tg = triggers[x]; final StructureSource src = (StructureSource) ie.getSource( ); switch (tg.getAction().getType().getValue()) { case ActionType.SHOW_TOOLTIP: String tooltipText = ((TooltipValue) tg.getAction().getValue()).getText(); //make sure the tooltip text is not empty if ((tooltipText != null) && (tooltipText.trim().length() > 0)){ Element title = svggc.dom.createElement("title"); //$NON-NLS-1$ title.appendChild(svggc.dom .createTextNode(tooltipText)); elm.appendChild(title); elm.setAttribute("onmouseout", "TM.remove()"); //$NON-NLS-1$ //$NON-NLS-2$ elm.setAttribute("onmouseover", "TM.show(evt)"); //$NON-NLS-1$ //$NON-NLS-2$ } break; case ActionType.URL_REDIRECT: URLValue urlValue = ((URLValue) tg.getAction().getValue()); //See if this is an internal anchor link if ( urlValue.getBaseUrl().startsWith("#")){ //$NON-NLS-1$ Element aLink = ((SVGGraphics2D)_g2d).createElement("g"); //$NON-NLS-1$ aLink.setAttribute("onclick", "parent.document.location='"+urlValue.getBaseUrl()+"';"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ aLink.setAttribute("style", "cursor:pointer"); //$NON-NLS-1$ //$NON-NLS-2$ aLink.appendChild(elm); elm = aLink; } else{ Element aLink = ((SVGGraphics2D)_g2d).createElement("a"); //$NON-NLS-1$ aLink.setAttribute("xlink:href", urlValue.getBaseUrl()); //$NON-NLS-1$ if (urlValue.getTarget() != null) aLink.setAttribute("target", urlValue.getTarget()); //$NON-NLS-1$ aLink.appendChild(elm); elm = aLink; } break; case ActionType.TOGGLE_VISIBILITY : if ( src.getType( ) == StructureType.SERIES ) { final Series seRT = (Series) src.getSource( ); logger.log( ILogger.INFORMATION, Messages.getString( "info.toggle.visibility", //$NON-NLS-1$ getLocale() ) + seRT ); Series seDT = null; try { // THE // CORRESPONDING // DESIGN-TIME // SERIES seDT = findDesignTimeSeries( seRT ); // LOCATE cacheSeriesHotspots.put(elm, seDT); } catch ( ChartException oosx ) { logger.log( oosx ); return; } } break; case ActionType.TOGGLE_DATA_POINT_VISIBILITY : if ( src.getType( ) == StructureType.SERIES ) { final Series seRT = (Series) src.getSource( ); logger.log( ILogger.INFORMATION, Messages.getString( "info.toggle.datapoint.visibility", //$NON-NLS-1$ getLocale() ) + seRT ); Series seDT = null; try { seDT = findDesignTimeSeries( seRT ); } catch ( ChartException oosx ) { logger.log( oosx ); return; } if (seDT != null) cacheHotspots.put(elm, seDT); } break; case ActionType.HIGHLIGHT : if ( src.getType( ) == StructureType.SERIES ) { final Series seRT = (Series) src.getSource( ); logger.log( ILogger.INFORMATION, Messages.getString( "info.toggle.visibility", //$NON-NLS-1$ getLocale() ) + seRT ); String scriptEvent = getJsScriptEvent(tg.getCondition().getValue()); if (scriptEvent != null){ Series seDT = null; try { // THE // CORRESPONDING // DESIGN-TIME // SERIES seDT = findDesignTimeSeries( seRT ); // LOCATE List components = (List)componentPrimitives.get(seDT); if (components != null){ Iterator iter = components.iterator(); StringBuffer sb = new StringBuffer(); sb.append(seDT.hashCode()); if (iter.hasNext()) sb.append(",new Array("); //$NON-NLS-1$ while (iter.hasNext()){ sb.append("'").append(iter.next()).append("'"); //$NON-NLS-1$ //$NON-NLS-2$ if (iter.hasNext()) sb.append(","); //$NON-NLS-1$ } if (components.size() > 0) sb.append(")"); //$NON-NLS-1$ elm.setAttribute(scriptEvent, //$NON-NLS-1$ "highlight(evt, " //$NON-NLS-1$ + sb.toString() + ")"); //$NON-NLS-1$ //see if this is on mouse over event. Then we should have a on mouse out event to correctly reset //the highlight color if (tg.getCondition().getValue() == TriggerCondition.ONMOUSEOVER){ elm.setAttribute("onmouseout", //$NON-NLS-1$ "highlight(evt, null, null)"); //$NON-NLS-1$ } setCursor(elm); //should define style class and set the visibility to visible ((SVGGraphics2D)_g2d).addCSSStyle(".class"+seDT.hashCode(), "visibility", "visible"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ } } catch ( ChartException oosx ) { logger.log( oosx ); return; } } } break; case ActionType.INVOKE_SCRIPT: final StructureSource sructSource = (StructureSource) ie.getSource( ); String scriptEvent = getJsScriptEvent(tg.getCondition().getValue()); if (scriptEvent != null){ String script = ((ScriptValue) tg.getAction().getValue()).getScript(); String callbackFunction = "callback"+Math.abs(script.hashCode())+"(evt,"+sructSource.getSource().hashCode()+");"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ elm.setAttribute(scriptEvent, callbackFunction); setCursor(elm); if (!(scripts.contains(script))){ ((SVGGraphics2D)_g2d).addScript("function callback"+Math.abs(script.hashCode())+"(evt,source)" +"{"+script+"}"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ scripts.add(script); } } break; } } hotspotLayer.appendChild( elm ); } }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/4a328417c3f62c3aa389ac3a9faedb3b94ac378b/SVGRendererImpl.java/clean/chart/org.eclipse.birt.chart.device.svg/src/org/eclipse/birt/chart/device/svg/SVGRendererImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4237,
17419,
12,
5294,
1128,
1133,
9228,
262,
1216,
14804,
503,
202,
95,
202,
202,
430,
261,
389,
77,
318,
422,
446,
262,
202,
202,
95,
1082,
202,
4901,
18,
1330,
12,
467,
3328,
18,
9511,
16,
6862,
202,
5058,
18,
588,
780,
12,
315,
4064,
18,
7337,
18,
4652,
18,
30303,
3113,
9595,
12,
262,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
2463,
31,
202,
202,
97,
9506,
202,
6518,
8526,
11752,
273,
9228,
18,
588,
15114,
12,
11272,
202,
202,
430,
261,
11752,
422,
446,
262,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
6461,
2105,
18235,
19,
202,
202,
759,
1684,
326,
12811,
19032,
471,
527,
326,
12811,
19032,
603,
3196,
202,
759,
5787,
11281,
12811,
19032,
3018,
202,
202,
6461,
2105,
18235,
19,
202,
202,
6385,
14488,
3420,
1133,
675,
273,
9228,
18,
588,
25270,
17292,
12,
11272,
202,
202,
1046,
12531,
273,
446,
31,
202,
202,
430,
261,
675,
1276,
12681,
3420,
1133,
262,
202,
202,
95,
1082,
202,
6385,
7050,
8526,
437,
69,
273,
261,
261,
11787,
3420,
1133,
13,
675,
262,
18,
588,
5636,
12,
11272,
1082,
202,
474,
63,
6362,
65,
6790,
273,
19850,
27934,
1463,
24712,
12,
437,
69,
11272,
1082,
202,
19597,
273,
9804,
13241,
18,
2640,
11787,
12,
6790,
63,
20,
6487,
6790,
63,
21,
6487,
6790,
63,
20,
8009,
2469,
11272,
202,
202,
97,
202,
202,
12107,
309,
261,
675,
1276,
531,
1125,
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,
4237,
17419,
12,
5294,
1128,
1133,
9228,
262,
1216,
14804,
503,
202,
95,
202,
202,
430,
261,
389,
77,
318,
422,
446,
262,
202,
202,
95,
1082,
202,
4901,
18,
1330,
12,
467,
3328,
18,
9511,
16,
6862,
202,
5058,
18,
588,
780,
12,
315,
4064,
18,
7337,
18,
4652,
18,
30303,
3113,
9595,
12,
262,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
2463,
31,
202,
202,
97,
9506,
202,
6518,
8526,
11752,
273,
9228,
18,
588,
15114,
12,
11272,
202,
202,
430,
261,
11752,
422,
446,
262,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
6461,
2105,
18235,
19,
202,
202,
759,
1684,
326,
12811,
19032,
2
] |
Object f(Object o) {
|
public Object f(Object o) {
|
Object f(Object o) { return o; }
|
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/56e071340bd8fe4e3a7b56e944c5abb025b3480a/TestNonNull1.java/buggy/findbugs/test/nullnessAnnotations/packageDefault/TestNonNull1.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1033,
284,
12,
921,
320,
13,
288,
202,
2463,
320,
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,
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,
282,
1033,
284,
12,
921,
320,
13,
288,
202,
2463,
320,
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,
-100,
-100,
-100,
-100,
-100,
-100
] |
assertTrue("should not notify about changes if not in the history", changed == 1);
|
history.operationChanged(new TestOperation("New op")); assertTrue("should not notify about changes if not in the history", changed == 2);
|
public void testOperationChanged() { history.remove(op1); history.operationChanged(op1); history.operationChanged(op2); assertTrue("should not notify about changes if not in the history", changed == 1); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/f2e3de5ef2b8a6e3f7ff548a57814536495aa48d/OperationsAPITest.java/clean/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/operations/OperationsAPITest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
2988,
5033,
1435,
288,
202,
202,
8189,
18,
4479,
12,
556,
21,
1769,
202,
202,
8189,
18,
7624,
5033,
12,
556,
21,
1769,
202,
202,
8189,
18,
7624,
5033,
12,
556,
22,
1769,
202,
202,
11231,
5510,
2932,
13139,
486,
5066,
2973,
3478,
309,
486,
316,
326,
4927,
3113,
3550,
422,
404,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
2988,
5033,
1435,
288,
202,
202,
8189,
18,
4479,
12,
556,
21,
1769,
202,
202,
8189,
18,
7624,
5033,
12,
556,
21,
1769,
202,
202,
8189,
18,
7624,
5033,
12,
556,
22,
1769,
202,
202,
11231,
5510,
2932,
13139,
486,
5066,
2973,
3478,
309,
486,
316,
326,
4927,
3113,
3550,
422,
404,
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
] |
tag.addAttribute( HTMLAttribute.HREF, NO_OP_JAVASCRIPT); tag.addAttribute( HTMLAttribute.ONFOCUS, eval( sv.getScript( ) ) ); tag.addAttribute( HTMLAttribute.SHAPE, POLY_SHAPE );
|
tag.addAttribute( HTMLAttribute.HREF, NO_OP_JAVASCRIPT ); tag.addAttribute( HTMLAttribute.ONFOCUS, eval( sv.getScript( ) ) ); tag.addAttribute( HTMLAttribute.SHAPE, POLY_SHAPE );
|
public String getImageMap( ) { Map triggerMap = getTriggers( ); if ( triggerMap == null || triggerMap.size( ) == 0 ) { return null; } // Generate image map using associated trigger list. StringBuffer sb = new StringBuffer( ); // 1. onfocus List al = (List) triggerMap.get( TriggerCondition.ONFOCUS_LITERAL ); if ( al != null ) { for ( int i = al.size() - 1; i >= 0; i -- ) { HTMLTag tag = new HTMLTag( "AREA" ); //$NON-NLS-1$ ShapedAction sa = (ShapedAction) al.get( i ); Action ac = sa.getAction( ); String coords = shape2polyCoords( sa.getShape( ) ); if ( coords != null ) { if ( checkSupportedAction( ac ) ) { switch ( ac.getType( ).getValue( ) ) { case ActionType.URL_REDIRECT : URLValue uv = (URLValue) ac.getValue( ); tag.addAttribute( HTMLAttribute.HREF, NO_OP_JAVASCRIPT); tag.addAttribute( HTMLAttribute.ONFOCUS, getJsURLRedirect( uv ) ); tag.addAttribute( HTMLAttribute.SHAPE, POLY_SHAPE ); tag.addAttribute( HTMLAttribute.COORDS, coords ); sb.append( tag.toString( ) ); break; case ActionType.SHOW_TOOLTIP : // for onmouseover only. break; case ActionType.INVOKE_SCRIPT : ScriptValue sv = (ScriptValue) ac.getValue( ); tag.addAttribute( HTMLAttribute.HREF, NO_OP_JAVASCRIPT); tag.addAttribute( HTMLAttribute.ONFOCUS, eval( sv.getScript( ) ) ); tag.addAttribute( HTMLAttribute.SHAPE, POLY_SHAPE ); tag.addAttribute( HTMLAttribute.COORDS, coords ); sb.append( tag.toString( ) ); break; } } else { // not supported by image map. } } } } // 2. onblur al = (List) triggerMap.get( TriggerCondition.ONBLUR_LITERAL ); if ( al != null ) { for ( int i = al.size() - 1; i >= 0; i -- ) { HTMLTag tag = new HTMLTag( "AREA" ); //$NON-NLS-1$ ShapedAction sa = (ShapedAction) al.get( i ); Action ac = sa.getAction( ); String coords = shape2polyCoords( sa.getShape( ) ); if ( coords != null ) { if ( checkSupportedAction( ac ) ) { switch ( ac.getType( ).getValue( ) ) { case ActionType.URL_REDIRECT : URLValue uv = (URLValue) ac.getValue( ); tag.addAttribute( HTMLAttribute.HREF, NO_OP_JAVASCRIPT ); tag.addAttribute( HTMLAttribute.ONBLUR, getJsURLRedirect( uv ) ); tag.addAttribute( HTMLAttribute.SHAPE, POLY_SHAPE); //$NON-NLS-1$ tag.addAttribute( HTMLAttribute.COORDS, coords ); sb.append( tag.toString( ) ); break; case ActionType.SHOW_TOOLTIP : // for onmouseover only. break; case ActionType.INVOKE_SCRIPT : ScriptValue sv = (ScriptValue) ac.getValue( ); tag.addAttribute( HTMLAttribute.HREF, NO_OP_JAVASCRIPT ); tag.addAttribute( HTMLAttribute.ONBLUR, eval( sv.getScript( ) ) ); tag.addAttribute( HTMLAttribute.SHAPE, POLY_SHAPE); //$NON-NLS-1$ tag.addAttribute( HTMLAttribute.COORDS, coords ); sb.append( tag.toString( ) ); break; } } else { // not supported by image map. } } } } // 3. onclick al = (List) triggerMap.get( TriggerCondition.ONCLICK_LITERAL ); if ( al != null ) { for ( int i = al.size() - 1; i >= 0; i -- ) { HTMLTag tag = new HTMLTag( "AREA" ); //$NON-NLS-1$ ShapedAction sa = (ShapedAction) al.get( i ); Action ac = sa.getAction( ); String coords = shape2polyCoords( sa.getShape( ) ); if ( coords != null ) { if ( checkSupportedAction( ac ) ) { switch ( ac.getType( ).getValue( ) ) { case ActionType.URL_REDIRECT : URLValue uv = (URLValue) ac.getValue( ); tag.addAttribute( HTMLAttribute.HREF, eval( uv.getBaseUrl( ) )) ; tag.addAttribute( HTMLAttribute.TARGET, eval( uv.getTarget( ) ) ); tag.addAttribute( HTMLAttribute.SHAPE, POLY_SHAPE); tag.addAttribute( HTMLAttribute.COORDS, coords ); sb.append( tag.toString( ) ); break; case ActionType.SHOW_TOOLTIP : // for onmouseover only. break; case ActionType.INVOKE_SCRIPT : ScriptValue sv = (ScriptValue)ac.getValue( ); tag.addAttribute( HTMLAttribute.HREF, NO_OP_JAVASCRIPT ); tag.addAttribute( HTMLAttribute.ONCLICK, eval( sv.getScript( ) ) ); tag.addAttribute( HTMLAttribute.SHAPE, POLY_SHAPE); tag.addAttribute( HTMLAttribute.COORDS, coords ); sb.append( tag.toString( ) ); break; } } else { // not supported by image map. } } } } // 4. onmouseover al = (List) triggerMap.get( TriggerCondition.ONMOUSEOVER_LITERAL ); if ( al != null ) { for ( int i = al.size() - 1; i >= 0; i -- ) { HTMLTag tag = new HTMLTag( "AREA" ); //$NON-NLS-1$ ShapedAction sa = (ShapedAction) al.get( i ); Action ac = sa.getAction( ); String coords = shape2polyCoords( sa.getShape( ) ); if ( coords != null ) { if ( checkSupportedAction( ac ) ) { switch ( ac.getType( ).getValue( ) ) { case ActionType.URL_REDIRECT : // not for onmouseover. break; case ActionType.SHOW_TOOLTIP : TooltipValue tv = (TooltipValue) ac.getValue( ); tag.addAttribute( HTMLAttribute.ALT, eval( tv.getText( )) ); tag.addAttribute( HTMLAttribute.SHAPE, POLY_SHAPE); tag.addAttribute( HTMLAttribute.COORDS, coords ); sb.append( tag.toString( ) ); break; case ActionType.INVOKE_SCRIPT : // not for onmouseover. break; } } else { // not supported by image map. } } } } return sb.toString( ); }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/cfe491a60302f8d9a15dd71e36232fb0a396e1bf/JavaxImageIOWriter.java/clean/chart/org.eclipse.birt.chart.device.extension/src/org/eclipse/birt/chart/device/image/JavaxImageIOWriter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
10567,
863,
12,
262,
202,
95,
202,
202,
863,
3080,
863,
273,
336,
15114,
12,
11272,
202,
202,
430,
261,
3080,
863,
422,
446,
747,
3080,
863,
18,
1467,
12,
262,
422,
374,
262,
202,
202,
95,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
202,
759,
6654,
1316,
852,
1450,
3627,
3080,
666,
18,
202,
202,
780,
1892,
2393,
273,
394,
6674,
12,
11272,
202,
202,
759,
404,
18,
603,
13923,
202,
202,
682,
524,
273,
261,
682,
13,
3080,
863,
18,
588,
12,
11321,
3418,
18,
673,
3313,
39,
3378,
67,
23225,
11272,
202,
202,
430,
261,
524,
480,
446,
262,
202,
202,
95,
1082,
202,
1884,
261,
509,
277,
273,
524,
18,
1467,
1435,
300,
404,
31,
277,
1545,
374,
31,
277,
1493,
262,
1082,
202,
95,
9506,
202,
4870,
1805,
1047,
273,
394,
3982,
1805,
12,
315,
20933,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
1555,
5994,
1803,
7864,
273,
261,
1555,
5994,
1803,
13,
524,
18,
588,
12,
277,
11272,
9506,
202,
1803,
1721,
273,
7864,
18,
588,
1803,
12,
11272,
9506,
202,
780,
6074,
273,
2179,
22,
16353,
13089,
12,
7864,
18,
588,
8500,
12,
262,
11272,
9506,
202,
430,
261,
6074,
480,
446,
262,
9506,
202,
95,
6862,
202,
430,
261,
866,
7223,
1803,
12,
1721,
262,
262,
6862,
202,
95,
25083,
202,
9610,
261,
1721,
18,
588,
559,
12,
262,
18,
24805,
12,
262,
262,
25083,
202,
95,
6862,
1082,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
10567,
863,
12,
262,
202,
95,
202,
202,
863,
3080,
863,
273,
336,
15114,
12,
11272,
202,
202,
430,
261,
3080,
863,
422,
446,
747,
3080,
863,
18,
1467,
12,
262,
422,
374,
262,
202,
202,
95,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
202,
759,
6654,
1316,
852,
1450,
3627,
3080,
666,
18,
202,
202,
780,
1892,
2393,
273,
394,
6674,
12,
11272,
202,
202,
759,
404,
18,
603,
13923,
202,
202,
682,
524,
273,
261,
682,
13,
3080,
863,
18,
588,
12,
11321,
3418,
18,
673,
3313,
39,
3378,
67,
23225,
11272,
202,
202,
430,
261,
524,
480,
446,
262,
202,
202,
95,
1082,
202,
1884,
261,
509,
277,
273,
524,
2
] |
Logger.minor(this, "This data is "+data.length+" bytes. Should be "+dataBlockSize);
|
Logger.error(this, "This data is "+data.length+" bytes. Should be "+dataBlockSize);
|
public void put(KeyBlock block) throws IOException { if(closed) return; byte[] routingkey = block.getKey().getRoutingKey(); byte[] data = block.getRawData(); byte[] header = block.getRawHeaders(); if(data.length!=dataBlockSize) { Logger.minor(this, "This data is "+data.length+" bytes. Should be "+dataBlockSize); return; } if(header.length!=headerBlockSize) { Logger.minor(this, "This header is "+data.length+" bytes. Should be "+headerBlockSize); return; } Transaction t = null; try{ t = environment.beginTransaction(null,null); DatabaseEntry routingkeyDBE = new DatabaseEntry(routingkey); synchronized(chkStore) { if(chkBlocksInStore<maxChkBlocks) { // Expand the store file int byteOffset = chkBlocksInStore*(dataBlockSize+headerBlockSize); StoreBlock storeBlock = new StoreBlock(chkBlocksInStore); DatabaseEntry blockDBE = new DatabaseEntry(); storeBlockTupleBinding.objectToEntry(storeBlock, blockDBE); chkDB.put(t,routingkeyDBE,blockDBE); chkStore.seek(byteOffset); chkStore.write(header); chkStore.write(data); t.commit(); chkBlocksInStore++; }else{ // Overwrite an other block Cursor c = chkDB_accessTime.openCursor(t,null); DatabaseEntry keyDBE = new DatabaseEntry(); DatabaseEntry dataDBE = new DatabaseEntry(); c.getFirst(keyDBE,dataDBE,null); StoreBlock oldStoreBlock = (StoreBlock) storeBlockTupleBinding.entryToObject(dataDBE); c.delete(); c.close(); StoreBlock storeBlock = new StoreBlock(oldStoreBlock.getOffset()); DatabaseEntry blockDBE = new DatabaseEntry(); storeBlockTupleBinding.objectToEntry(storeBlock, blockDBE); chkDB.put(t,routingkeyDBE,blockDBE); chkStore.seek(storeBlock.getOffset()*(long)(dataBlockSize+headerBlockSize)); chkStore.write(header); chkStore.write(data); t.commit(); } } Logger.minor(this, "Put key: "+block.getKey()); Logger.minor(this, "Headers: "+header.length+" bytes, hash "+Fields.hashCode(header)); Logger.minor(this, "Data: "+data.length+" bytes, hash "+Fields.hashCode(data)); }catch(Exception ex) { // FIXME: ugly if(t!=null){ try{t.abort();}catch(DatabaseException ex2){}; } Logger.error(this, "Caught "+ex, ex); ex.printStackTrace(); throw new IOException(ex.getMessage()); } }
|
52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/c9f6ebb4822e48325e7abc91f5d0d340e3189312/BerkeleyDBFreenetStore.java/clean/src/freenet/store/BerkeleyDBFreenetStore.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1378,
12,
653,
1768,
1203,
13,
1216,
1860,
565,
288,
565,
202,
377,
202,
430,
12,
12204,
13,
377,
202,
202,
2463,
31,
377,
202,
21114,
377,
202,
7229,
8526,
7502,
856,
273,
1203,
18,
588,
653,
7675,
588,
13966,
653,
5621,
3639,
1160,
8526,
501,
273,
1203,
18,
588,
31733,
5621,
3639,
1160,
8526,
1446,
273,
1203,
18,
588,
4809,
3121,
5621,
7734,
309,
12,
892,
18,
2469,
5,
33,
892,
22506,
13,
288,
540,
202,
3328,
18,
1636,
12,
2211,
16,
315,
2503,
501,
353,
13773,
892,
18,
2469,
9078,
1731,
18,
9363,
506,
13773,
892,
22506,
1769,
540,
202,
2463,
31,
3639,
289,
3639,
309,
12,
3374,
18,
2469,
5,
33,
3374,
22506,
13,
288,
540,
202,
3328,
18,
17364,
12,
2211,
16,
315,
2503,
1446,
353,
13773,
892,
18,
2469,
9078,
1731,
18,
9363,
506,
13773,
3374,
22506,
1769,
540,
202,
2463,
31,
3639,
289,
7734,
5947,
268,
273,
446,
31,
7734,
775,
95,
540,
202,
88,
273,
3330,
18,
10086,
3342,
12,
2011,
16,
2011,
1769,
540,
202,
4254,
1622,
7502,
856,
2290,
41,
273,
394,
5130,
1622,
12,
16529,
856,
1769,
540,
202,
540,
202,
22043,
12,
27038,
2257,
13,
288,
202,
540,
202,
430,
12,
27038,
6450,
382,
2257,
32,
1896,
782,
79,
6450,
13,
288,
202,
540,
202,
202,
759,
16429,
326,
1707,
585,
202,
540,
202,
202,
474,
1160,
2335,
273,
15000,
6450,
382,
2257,
21556,
892,
22506,
15,
3374,
22506,
1769,
202,
540,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1378,
12,
653,
1768,
1203,
13,
1216,
1860,
565,
288,
565,
202,
377,
202,
430,
12,
12204,
13,
377,
202,
202,
2463,
31,
377,
202,
21114,
377,
202,
7229,
8526,
7502,
856,
273,
1203,
18,
588,
653,
7675,
588,
13966,
653,
5621,
3639,
1160,
8526,
501,
273,
1203,
18,
588,
31733,
5621,
3639,
1160,
8526,
1446,
273,
1203,
18,
588,
4809,
3121,
5621,
7734,
309,
12,
892,
18,
2469,
5,
33,
892,
22506,
13,
288,
540,
202,
3328,
18,
1636,
12,
2211,
16,
315,
2503,
501,
353,
13773,
892,
18,
2469,
9078,
1731,
18,
9363,
506,
13773,
892,
22506,
1769,
540,
202,
2463,
31,
3639,
289,
3639,
309,
12,
3374,
18,
2469,
5,
33,
3374,
22506,
2
] |
public void init(Ruby runtime, List additionalDirectories) {
|
public void init(List additionalDirectories) {
|
public void init(Ruby runtime, List additionalDirectories) { for (Iterator iter = additionalDirectories.iterator(); iter.hasNext();) { addPath((String)iter.next()); } if (runtime.getSafeLevel() == 0) { String jrubyLib = System.getProperty("jruby.lib"); if (jrubyLib != null) { addPath(jrubyLib); } } String jrubyHome = System.getProperty("jruby.home"); if (jrubyHome != null) { String rubyDir = jrubyHome + File.separatorChar + "lib" + File.separatorChar + "ruby" + File.separatorChar; addPath(rubyDir + "site_ruby" + File.separatorChar + Constants.RUBY_MAJOR_VERSION); addPath(rubyDir + "site_ruby" + File.separatorChar + Constants.RUBY_MAJOR_VERSION + File.separatorChar + "java"); addPath(rubyDir + "site_ruby"); addPath(rubyDir + Constants.RUBY_MAJOR_VERSION); addPath(rubyDir + Constants.RUBY_MAJOR_VERSION + File.separatorChar + "java"); } if (runtime.getSafeLevel() == 0) { addPath("."); } }
|
48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/61503e7396c70acb6ed9f50922ff044d1fcc4bcc/LoadService.java/buggy/src/org/jruby/internal/runtime/load/LoadService.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
12,
682,
3312,
13071,
13,
288,
3639,
364,
261,
3198,
1400,
273,
3312,
13071,
18,
9838,
5621,
1400,
18,
5332,
2134,
5621,
13,
288,
5411,
25505,
12443,
780,
13,
2165,
18,
4285,
10663,
3639,
289,
3639,
309,
261,
9448,
18,
588,
9890,
2355,
1435,
422,
374,
13,
288,
5411,
514,
525,
27768,
5664,
273,
2332,
18,
588,
1396,
2932,
78,
27768,
18,
2941,
8863,
5411,
309,
261,
78,
27768,
5664,
480,
446,
13,
288,
7734,
25505,
12,
78,
27768,
5664,
1769,
5411,
289,
3639,
289,
3639,
514,
525,
27768,
8684,
273,
2332,
18,
588,
1396,
2932,
78,
27768,
18,
8712,
8863,
3639,
309,
261,
78,
27768,
8684,
480,
446,
13,
288,
5411,
514,
22155,
1621,
273,
525,
27768,
8684,
397,
1387,
18,
11287,
2156,
397,
315,
2941,
6,
397,
1387,
18,
11287,
2156,
397,
315,
27768,
6,
397,
1387,
18,
11287,
2156,
31,
5411,
25505,
12,
27768,
1621,
397,
315,
4256,
67,
27768,
6,
397,
1387,
18,
11287,
2156,
397,
5245,
18,
54,
3457,
61,
67,
26976,
916,
67,
5757,
1769,
5411,
25505,
12,
27768,
1621,
397,
315,
4256,
67,
27768,
6,
397,
1387,
18,
11287,
2156,
397,
5245,
18,
54,
3457,
61,
67,
26976,
916,
67,
5757,
397,
1387,
18,
11287,
2156,
397,
315,
6290,
8863,
5411,
25505,
12,
27768,
1621,
397,
315,
4256,
67,
27768,
8863,
5411,
25505,
12,
27768,
1621,
397,
5245,
18,
54,
3457,
61,
67,
26976,
916,
67,
5757,
1769,
5411,
25505,
12,
27768,
1621,
397,
5245,
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,
1208,
12,
682,
3312,
13071,
13,
288,
3639,
364,
261,
3198,
1400,
273,
3312,
13071,
18,
9838,
5621,
1400,
18,
5332,
2134,
5621,
13,
288,
5411,
25505,
12443,
780,
13,
2165,
18,
4285,
10663,
3639,
289,
3639,
309,
261,
9448,
18,
588,
9890,
2355,
1435,
422,
374,
13,
288,
5411,
514,
525,
27768,
5664,
273,
2332,
18,
588,
1396,
2932,
78,
27768,
18,
2941,
8863,
5411,
309,
261,
78,
27768,
5664,
480,
446,
13,
288,
7734,
25505,
12,
78,
27768,
5664,
1769,
5411,
289,
3639,
289,
3639,
514,
525,
27768,
8684,
273,
2332,
18,
588,
1396,
2932,
78,
27768,
18,
8712,
8863,
3639,
309,
261,
78,
27768,
8684,
480,
446,
13,
288,
5411,
514,
22155,
1621,
2
] |
if ((ch == ZERO_WIDTH_SPACE) || (ch == ZERO_WIDTH_JOINER)) gv.setGlyphVisible(idx, false); ch = 0; nextChar();
|
public void newLine() { adv=0; adj=0; maxAscent = -Float.MAX_VALUE; maxDescent = -Float.MAX_VALUE; maxFontSize = -Float.MAX_VALUE; if ((ch == ZERO_WIDTH_SPACE) || (ch == ZERO_WIDTH_JOINER)) gv.setGlyphVisible(idx, false); ch = 0; // Disable soft-hyphen/ZWS advance adjustment. nextChar(); lineIdx = idx; }
|
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/29a29b7079501f40905d35ddf6490c3256f89a34/GlyphIterator.java/buggy/sources/org/apache/batik/gvt/text/GlyphIterator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
8093,
1435,
288,
3639,
17825,
33,
20,
31,
3639,
8307,
33,
20,
31,
3639,
943,
13665,
319,
282,
273,
300,
4723,
18,
6694,
67,
4051,
31,
3639,
943,
4217,
319,
225,
273,
300,
4723,
18,
6694,
67,
4051,
31,
3639,
943,
22688,
273,
300,
4723,
18,
6694,
67,
4051,
31,
3639,
309,
14015,
343,
422,
18449,
67,
10023,
67,
6616,
13,
747,
5411,
261,
343,
422,
18449,
67,
10023,
67,
18800,
654,
3719,
5411,
11404,
18,
542,
15141,
6207,
12,
3465,
16,
629,
1769,
3639,
462,
273,
374,
31,
225,
368,
10639,
8971,
17,
18112,
13819,
19,
62,
2651,
8312,
18335,
18,
3639,
21865,
5621,
3639,
980,
4223,
273,
2067,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8093,
1435,
288,
3639,
17825,
33,
20,
31,
3639,
8307,
33,
20,
31,
3639,
943,
13665,
319,
282,
273,
300,
4723,
18,
6694,
67,
4051,
31,
3639,
943,
4217,
319,
225,
273,
300,
4723,
18,
6694,
67,
4051,
31,
3639,
943,
22688,
273,
300,
4723,
18,
6694,
67,
4051,
31,
3639,
309,
14015,
343,
422,
18449,
67,
10023,
67,
6616,
13,
747,
5411,
261,
343,
422,
18449,
67,
10023,
67,
18800,
654,
3719,
5411,
11404,
18,
542,
15141,
6207,
12,
3465,
16,
629,
1769,
3639,
462,
273,
374,
31,
225,
368,
10639,
8971,
17,
18112,
13819,
19,
62,
2651,
8312,
18335,
18,
3639,
21865,
5621,
3639,
980,
4223,
273,
2067,
31,
565,
289,
2,
-100,
-100,
-100
] |
|
if (appliedDialogFont != null) appliedDialogFont.dispose();
|
if (appliedDialogFont != null) { appliedDialogFont.dispose(); }
|
public void widgetDisposed(DisposeEvent e) { if (appliedDialogFont != null) appliedDialogFont.dispose(); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/ColorsAndFontsPreferencePage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/themes/ColorsAndFontsPreferencePage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
3604,
1669,
7423,
12,
1669,
4150,
1133,
425,
13,
288,
7734,
309,
261,
438,
3110,
6353,
5711,
480,
446,
13,
10792,
6754,
6353,
5711,
18,
2251,
4150,
5621,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
3604,
1669,
7423,
12,
1669,
4150,
1133,
425,
13,
288,
7734,
309,
261,
438,
3110,
6353,
5711,
480,
446,
13,
10792,
6754,
6353,
5711,
18,
2251,
4150,
5621,
5411,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
DOMNode(char[] document, int[] sourceRange, String name, int[] nameRange) { super(); fDocument= document; fSourceRange= sourceRange; fName= name; fNameRange= nameRange;
|
DOMNode() { fName= null; fDocument= null; fSourceRange= new int[]{-1, -1}; fNameRange= new int[]{-1, -1}; fragment();
|
DOMNode(char[] document, int[] sourceRange, String name, int[] nameRange) { super(); fDocument= document; fSourceRange= sourceRange; fName= name; fNameRange= nameRange;}
|
12408 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12408/97695ccc3a078d804bc7df2ed83ae543abea2e44/DOMNode.java/buggy/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
24945,
12,
3001,
8526,
1668,
16,
509,
8526,
1084,
2655,
16,
514,
508,
16,
509,
8526,
508,
2655,
13,
288,
202,
9565,
5621,
202,
74,
2519,
33,
1668,
31,
202,
74,
1830,
2655,
33,
1084,
2655,
31,
202,
74,
461,
33,
508,
31,
202,
74,
461,
2655,
33,
508,
2655,
31,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
24945,
12,
3001,
8526,
1668,
16,
509,
8526,
1084,
2655,
16,
514,
508,
16,
509,
8526,
508,
2655,
13,
288,
202,
9565,
5621,
202,
74,
2519,
33,
1668,
31,
202,
74,
1830,
2655,
33,
1084,
2655,
31,
202,
74,
461,
33,
508,
31,
202,
74,
461,
2655,
33,
508,
2655,
31,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
action = jEdit.getAction(actionName);
|
public MenuItemModel(String name) { this.name = name; String actionName; int index = name.indexOf('@'); if(index != -1) { arg = name.substring(index+1); actionName = name.substring(0,index); } else { arg = null; actionName = name; action = jEdit.getAction(name); } action = jEdit.getAction(actionName); label = jEdit.getProperty(name.concat(".label")); if(label == null) label = name; index = label.indexOf('$'); if(index != -1 && label.length() - index > 1) { mnemonic = Character.toLowerCase(label.charAt(index + 1)); label = label.substring(0,index).concat(label.substring(++index)); } else mnemonic = '\0'; // stuff for createButton(): String iconName = jEdit.getProperty(name + ".icon"); if(iconName != null) { icon = GUIUtilities.loadIcon(iconName); toolTip = label; String shortcut = jEdit.getProperty(name + ".shortcut"); if(shortcut != null) toolTip = toolTip + " (" + shortcut + ")"; } }
|
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/0c3e5bbb6652be0afe9a03ce3824456aa2457e67/MenuItemModel.java/buggy/org/gjt/sp/jedit/gui/MenuItemModel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
25085,
1488,
12,
780,
508,
13,
202,
95,
202,
202,
2211,
18,
529,
273,
508,
31,
202,
202,
780,
15451,
31,
202,
202,
474,
770,
273,
508,
18,
31806,
2668,
36,
8284,
202,
202,
430,
12,
1615,
480,
300,
21,
13,
202,
202,
95,
1082,
202,
3175,
273,
508,
18,
28023,
12,
1615,
15,
21,
1769,
1082,
202,
1128,
461,
273,
508,
18,
28023,
12,
20,
16,
1615,
1769,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
3175,
273,
446,
31,
1082,
202,
1128,
461,
273,
508,
31,
1082,
202,
1128,
273,
525,
4666,
18,
588,
1803,
12,
529,
1769,
202,
202,
97,
202,
202,
1128,
273,
525,
4666,
18,
588,
1803,
12,
1128,
461,
1769,
202,
202,
1925,
273,
525,
4666,
18,
588,
1396,
12,
529,
18,
16426,
2932,
18,
1925,
7923,
1769,
202,
202,
430,
12,
1925,
422,
446,
13,
1082,
202,
1925,
273,
508,
31,
202,
202,
1615,
273,
1433,
18,
31806,
2668,
8,
8284,
202,
202,
430,
12,
1615,
480,
300,
21,
597,
1433,
18,
2469,
1435,
300,
770,
405,
404,
13,
202,
202,
95,
13491,
12883,
20918,
273,
6577,
18,
869,
5630,
12,
1925,
18,
3001,
861,
12,
1615,
397,
404,
10019,
1082,
202,
1925,
273,
1433,
18,
28023,
12,
20,
16,
1615,
2934,
16426,
12,
1925,
18,
28023,
12,
9904,
1615,
10019,
202,
202,
97,
202,
202,
12107,
1082,
202,
13607,
20918,
273,
2337,
20,
13506,
202,
202,
759,
10769,
364,
752,
3616,
13332,
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,
25085,
1488,
12,
780,
508,
13,
202,
95,
202,
202,
2211,
18,
529,
273,
508,
31,
202,
202,
780,
15451,
31,
202,
202,
474,
770,
273,
508,
18,
31806,
2668,
36,
8284,
202,
202,
430,
12,
1615,
480,
300,
21,
13,
202,
202,
95,
1082,
202,
3175,
273,
508,
18,
28023,
12,
1615,
15,
21,
1769,
1082,
202,
1128,
461,
273,
508,
18,
28023,
12,
20,
16,
1615,
1769,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
3175,
273,
446,
31,
1082,
202,
1128,
461,
273,
508,
31,
1082,
202,
1128,
273,
525,
4666,
18,
588,
1803,
12,
529,
1769,
202,
202,
97,
202,
202,
1128,
273,
525,
4666,
18,
588,
1803,
12,
2
] |
|
pc = getTarget(iCode, pc + 1); continue;
|
if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue;
|
public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, Scriptable fnOrScript, InterpreterData theData) throws JavaScriptException { int i; Object lhs; final int maxStack = theData.itsMaxStack; final int maxVars = theData.itsVariableTable.size(); final int maxLocals = theData.itsMaxLocals; final int VAR_SHFT = maxStack; final int LOCAL_SHFT = VAR_SHFT + maxVars; // stack[0 <= i < VAR_SHFT]: stack data // stack[VAR_SHFT <= i < LOCAL_SHFT]: variables // stack[LOCAL_SHFT <= i]: // used for newtemp/usetemp etc. // id stack[x] == DBL_MRK, real value for stack[x] is in sDbl[x] final Object DBL_MRK = Interpreter.DBL_MRK; Object[] stack = new Object[LOCAL_SHFT + maxLocals]; double[] sDbl = new double[LOCAL_SHFT + maxLocals]; int stackTop = -1; byte[] iCode = theData.itsICode; int pc = 0; int iCodeLength = theData.itsICodeTop; final Scriptable undefined = Undefined.instance; if (maxVars != 0) { for (i = 0; i < theData.itsVariableTable.getParameterCount(); i++) { if (i >= args.length) stack[VAR_SHFT + i] = undefined; else stack[VAR_SHFT + i] = args[i]; } for ( ; i < maxVars; i++) stack[VAR_SHFT + i] = undefined; } if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs, val; double valDbl; boolean valBln; int count; int slot; String name = null; Object[] outArgs; int lIntValue; long lLongValue; double lDbl; int rIntValue; double rDbl; int[] catchStack = null; Scriptable[] scopeStack = null; int tryStackTop = 0; InterpreterFrame frame = null; if (cx.debugger != null) { frame = new InterpreterFrame(scope, theData, fnOrScript); cx.pushFrame(frame); } if (theData.itsMaxTryDepth > 0) { // catchStack[2 * i]: catch data // catchStack[2 * i + 1]: finally data catchStack = new int[theData.itsMaxTryDepth * 2]; scopeStack = new Scriptable[theData.itsMaxTryDepth]; } /* Save the security domain. Must restore upon normal exit. * If we exit the interpreter loop by throwing an exception, * set cx.interpreterSecurityDomain to null, and require the * catching function to restore it. */ Object savedSecurityDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; Object result = undefined; while (pc < iCodeLength) { try { switch (iCode[pc] & 0xff) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : i = getTarget(iCode, pc + 1); if (i == pc) i = 0; catchStack[tryStackTop * 2] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; catchStack[tryStackTop * 2 + 1] = i; scopeStack[tryStackTop++] = scope; pc += 4; break; case TokenStream.GE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); 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; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); 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; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); 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; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); 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 : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.INSTANCEOF : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.EQ : --stackTop; valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.NE : --stackTop; valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHEQ : --stackTop; valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHNE : --stackTop; valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IFNE : val = stack[stackTop]; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[++pc] & 0xFF); 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; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; case TokenStream.BITAND : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; case TokenStream.BITOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; case TokenStream.BITXOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; case TokenStream.LSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; case TokenStream.RSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; case TokenStream.URSH : rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; lLongValue = stack_uint32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lLongValue >>> rIntValue; break; case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; case TokenStream.NEG : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; case TokenStream.POS : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; case TokenStream.MUL : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; case TokenStream.DIV : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; 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 : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; case TokenStream.BINDNAME : stack[++stackTop] = ScriptRuntime.bind(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.GETBASE : stack[++stackTop] = ScriptRuntime.getBase(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); // what about class cast exception here ? stack[stackTop] = ScriptRuntime.setName ((Scriptable)lhs, rhs, scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : id = stack[stackTop]; if (id == DBL_MRK) id = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getElem(lhs, id, scope); break; case TokenStream.SETELEM : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; id = stack[stackTop]; if (id == DBL_MRK) id = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setElem(lhs, id, rhs, scope); break; case TokenStream.PROPINC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; case TokenStream.CALLSPECIAL : int lineNum = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); name = getString(theData.itsStringTable, iCode, pc + 3); count = (iCode[pc + 5] << 8) | (iCode[pc + 6] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; 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; break; case TokenStream.CALL : count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined) { lhs = getString(theData.itsStringTable, iCode, pc + 1); } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject. getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; break; case TokenStream.NEW : count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined && (iCode[pc+1] << 8) + (iCode[pc+2] & 0xFF) != -1) { // special code for better error message for call // to undefined lhs = getString(theData.itsStringTable, iCode, pc + 1); } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = getString(theData.itsStringTable, iCode, pc + 1); stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = getString(theData.itsStringTable, iCode, pc + 1); pc += 2; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getNumber(theData.itsNumberTable, iCode, pc + 1); pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETVAR : slot = (iCode[++pc] & 0xFF); stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; break; case TokenStream.VARINC : 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 : 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 : cx.interpreterSecurityDomain = null; result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(result); case TokenStream.JTHROW : cx.interpreterSecurityDomain = null; result = stack[stackTop]; // No need to check for DBL_MRK: result is Exception --stackTop; if (result instanceof JavaScriptException) throw (JavaScriptException)result; else throw (RuntimeException)result; case TokenStream.ENTERWITH : 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 : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime. nextEnum((Enumeration)val); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; 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 : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case TokenStream.SOURCEFILE : cx.interpreterSourceFile = theData.itsSourceFile; break; case TokenStream.LINE : case TokenStream.BREAKPOINT : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); cx.interpreterLine = i; if (frame != null) frame.setLineNumber(i); if ((iCode[pc] & 0xff) == TokenStream.BREAKPOINT || cx.inLineStepMode) { cx.getDebuggableEngine(). getDebugger().handleBreakpointHit(cx); } pc += 2; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (EcmaError ee) { if (cx.debugger != null) cx.debugger.handleExceptionThrown(cx, ee.getErrorObject()); // an offical ECMA error object, // handle as if it were a JavaScriptException stackTop = 0; cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { pc = catchStack[--tryStackTop * 2]; scope = scopeStack[tryStackTop]; if (pc == 0) { pc = catchStack[tryStackTop * 2 + 1]; if (pc == 0) { if (frame != null) cx.popFrame(); throw ee; } } stack[0] = ee.getErrorObject(); } else { if (frame != null) cx.popFrame(); throw ee; } // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } catch (JavaScriptException jsx) { if (cx.debugger != null) { cx.debugger.handleExceptionThrown(cx, ScriptRuntime.unwrapJavaScriptException(jsx)); } stackTop = 0; cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { pc = catchStack[--tryStackTop * 2]; scope = scopeStack[tryStackTop]; if (pc == 0) { pc = catchStack[tryStackTop * 2 + 1]; if (pc == 0) { if (frame != null) cx.popFrame(); throw jsx; } stack[0] = jsx; } else { stack[0] = ScriptRuntime.unwrapJavaScriptException(jsx); } } else { if (frame != null) cx.popFrame(); throw jsx; } // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } catch (RuntimeException jx) { if (cx.debugger != null) cx.debugger.handleExceptionThrown(cx, jx); cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { stackTop = 0; stack[0] = jx; pc = catchStack[--tryStackTop * 2 + 1]; scope = scopeStack[tryStackTop]; if (pc == 0) { if (frame != null) cx.popFrame(); throw jx; } } else { if (frame != null) cx.popFrame(); throw jx; } // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } } cx.interpreterSecurityDomain = savedSecurityDomain; if (frame != null) cx.popFrame(); return result; }
|
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/5e9bc346cb971907d7a0541bae613e8b43b1238d/Interpreter.java/clean/js/rhino/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,
565,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
565,
22780,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
509,
277,
31,
3639,
1033,
8499,
31,
3639,
727,
509,
943,
2624,
273,
326,
751,
18,
1282,
2747,
2624,
31,
3639,
727,
509,
943,
5555,
273,
326,
751,
18,
1282,
3092,
1388,
18,
1467,
5621,
3639,
727,
509,
943,
1333,
1031,
273,
326,
751,
18,
1282,
2747,
1333,
1031,
31,
7734,
727,
509,
8350,
67,
2664,
4464,
273,
943,
2624,
31,
540,
727,
509,
15234,
67,
2664,
4464,
273,
8350,
67,
2664,
4464,
397,
943,
5555,
31,
540,
368,
2110,
63,
20,
1648,
277,
411,
8350,
67,
2664,
4464,
14542,
2110,
501,
3639,
368,
2110,
63,
7716,
67,
2664,
4464,
1648,
277,
411,
15234,
67,
2664,
4464,
14542,
3152,
3639,
368,
2110,
63,
14922,
67,
2664,
4464,
1648,
277,
14542,
225,
368,
1399,
364,
394,
5814,
19,
407,
278,
30752,
5527,
18,
3639,
368,
612,
2110,
63,
92,
65,
422,
2383,
48,
67,
23464,
47,
16,
2863,
460,
364,
2110,
63,
92,
65,
353,
316,
272,
40,
3083,
63,
92,
65,
7734,
727,
1033,
2383,
48,
67,
23464,
47,
273,
5294,
11599,
18,
2290,
48,
67,
23464,
47,
31,
7734,
1033,
8526,
2110,
273,
394,
1033,
63,
14922,
67,
2664,
4464,
397,
943,
1333,
1031,
15533,
3639,
1645,
8526,
272,
40,
3083,
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,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
565,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
565,
22780,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
509,
277,
31,
3639,
1033,
8499,
31,
3639,
727,
509,
943,
2624,
273,
326,
751,
18,
1282,
2747,
2624,
31,
3639,
727,
509,
943,
5555,
273,
326,
751,
18,
1282,
3092,
1388,
18,
1467,
5621,
3639,
727,
509,
943,
1333,
1031,
273,
326,
751,
18,
1282,
2747,
1333,
1031,
31,
7734,
727,
509,
8350,
67,
2664,
4464,
273,
943,
2624,
31,
540,
727,
509,
15234,
67,
2664,
4464,
273,
8350,
67,
2664,
4464,
397,
943,
5555,
2
] |
IndexReader indexReader = IndexReader.open( dir ); indexReader.delete( new Term( "meta_id", "" + document.getId() ) ); indexReader.close();
|
IndexReader indexReader = IndexReader.open( indexDirectory ); try { indexReader.delete( new Term( "meta_id", "" + document.getId() ) ); } finally { indexReader.close(); }
|
private void deleteDocumentFromIndex( DocumentDomainObject document ) throws IOException { IndexReader indexReader = IndexReader.open( dir ); indexReader.delete( new Term( "meta_id", "" + document.getId() ) ); indexReader.close(); }
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/5ea3be799c5f7f70e6b5c2efad65059623f907ac/DocumentIndex.java/clean/server/src/imcode/server/document/DocumentIndex.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1430,
2519,
1265,
1016,
12,
4319,
3748,
921,
1668,
262,
1216,
1860,
288,
3639,
3340,
2514,
770,
2514,
273,
3340,
2514,
18,
3190,
12,
1577,
11272,
3639,
770,
2514,
18,
3733,
12,
394,
6820,
12,
315,
3901,
67,
350,
3113,
1408,
397,
1668,
18,
26321,
1435,
262,
11272,
3639,
770,
2514,
18,
4412,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1430,
2519,
1265,
1016,
12,
4319,
3748,
921,
1668,
262,
1216,
1860,
288,
3639,
3340,
2514,
770,
2514,
273,
3340,
2514,
18,
3190,
12,
1577,
11272,
3639,
770,
2514,
18,
3733,
12,
394,
6820,
12,
315,
3901,
67,
350,
3113,
1408,
397,
1668,
18,
26321,
1435,
262,
11272,
3639,
770,
2514,
18,
4412,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public DecorationContext(String[] contextIds) { this.contextIds = contextIds;
|
public DecorationContext() { this.contextIds = new String[0];
|
public DecorationContext(String[] contextIds) { this.contextIds = contextIds; }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/1a70fb44bd321ed678844804b5ba19f84aa7c0b9/DecorationContext.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/DecorationContext.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3416,
22226,
1042,
12,
780,
8526,
819,
2673,
13,
288,
202,
202,
2211,
18,
2472,
2673,
273,
819,
2673,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3416,
22226,
1042,
12,
780,
8526,
819,
2673,
13,
288,
202,
202,
2211,
18,
2472,
2673,
273,
819,
2673,
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
] |
return (String)classnames.get(c);
|
String name; if ((name = (String)classnames.get(c)) == null) { name = "c" + (new Integer(classnum)).toString(); classnames.put(c, name); classnum++; String r = c.toString(); int dotpos = r.lastIndexOf('.'); if (dotpos != -1) r = r.substring(dotpos + 1, r.length()); w.print("\t" + name + " ["); w.print("label=\"" + r + "\""); if (c.isAbstract()) w.print(", fontname=\"Helvetica-Oblique\""); w.println("];"); } return name;
|
private String name(ClassDoc c) { return (String)classnames.get(c); }
|
47201 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47201/c5ebb99387ce965d517f75acf44360f7aa979990/ClassInfo.java/buggy/src/gr/spinellis/umlgraph/doclet/ClassInfo.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
508,
12,
797,
1759,
276,
13,
288,
202,
202,
2463,
261,
780,
13,
1106,
1973,
18,
588,
12,
71,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
508,
12,
797,
1759,
276,
13,
288,
202,
202,
2463,
261,
780,
13,
1106,
1973,
18,
588,
12,
71,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (!wasDirty) { IContributionManager parent = getParent(); if (parent != null) { parent.markDirty(); }
|
IContributionManager parent = getParent(); if (parent != null) { parent.markDirty();
|
public void markDirty() { boolean wasDirty = isDirty(); super.markDirty(); // optimization: if already dirty, assume all parents are already dirty too if (!wasDirty) { IContributionManager parent = getParent(); if (parent != null) { parent.markDirty(); } } }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/67bffe850ff41143da832bdcd39d45e036b08c5b/MenuManager.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/action/MenuManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2267,
10785,
1435,
288,
3639,
1250,
1703,
10785,
273,
25206,
5621,
3639,
2240,
18,
3355,
10785,
5621,
3639,
368,
14850,
30,
309,
1818,
9603,
16,
6750,
777,
6298,
854,
1818,
9603,
4885,
3639,
309,
16051,
17416,
10785,
13,
288,
5411,
467,
442,
4027,
1318,
982,
273,
5089,
5621,
5411,
309,
261,
2938,
480,
446,
13,
288,
7734,
982,
18,
3355,
10785,
5621,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2267,
10785,
1435,
288,
3639,
1250,
1703,
10785,
273,
25206,
5621,
3639,
2240,
18,
3355,
10785,
5621,
3639,
368,
14850,
30,
309,
1818,
9603,
16,
6750,
777,
6298,
854,
1818,
9603,
4885,
3639,
309,
16051,
17416,
10785,
13,
288,
5411,
467,
442,
4027,
1318,
982,
273,
5089,
5621,
5411,
309,
261,
2938,
480,
446,
13,
288,
7734,
982,
18,
3355,
10785,
5621,
5411,
289,
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
] |
if (student != null) { IStudentCurricularPlan studentCurricularPlan = getStudentCurricularPlan(student);
|
if (student != null) { IStudentCurricularPlan studentCurricularPlan = getStudentCurricularPlan(student);
|
public InfoStudentEnrolmentContext run(Integer executionDegreeId, Integer studentCurricularPlanId, Integer studentNumber) throws FenixServiceException { try { IStudent student = getStudent(studentNumber); if (student != null) { IStudentCurricularPlan studentCurricularPlan = getStudentCurricularPlan(student); if (studentCurricularPlan != null) {// IEnrolmentPeriod enrolmentPeriod = getEnrolmentPeriod(studentCurricularPlan);// IExecutionPeriod executionPeriod = getCurrentExecutionPeriod();// if (executionPeriod.equals(enrolmentPeriod.getExecutionPeriod()))// { try { return executeServiceLogics(studentCurricularPlan); } catch (IllegalArgumentException e) { throw new FenixServiceException("degree"); }// } else// {// throw new FenixServiceException("enrolmentPeriod");// } } else { throw new ExistingServiceException("studentCurricularPlan"); } } else { throw new ExistingServiceException("student"); } } catch (ExcepcaoPersistencia e) { e.printStackTrace(); throw new FenixServiceException(e); } }
|
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/b725edc1d4fb8b6b021f161e06df030d1bd829e8/ShowAvailableCurricularCoursesWithoutEnrollmentPeriod.java/clean/src/ServidorAplicacao/Servico/enrollment/ShowAvailableCurricularCoursesWithoutEnrollmentPeriod.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3807,
19943,
319,
664,
922,
475,
1042,
1086,
12,
4522,
4588,
22885,
548,
16,
2144,
18110,
2408,
1512,
2490,
5365,
548,
16,
2144,
18110,
1854,
13,
1216,
478,
275,
697,
15133,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
45,
19943,
319,
18110,
273,
336,
19943,
319,
12,
26240,
1854,
1769,
1082,
202,
430,
261,
26240,
480,
446,
13,
1082,
202,
95,
9506,
202,
45,
19943,
319,
2408,
1512,
2490,
5365,
18110,
2408,
1512,
2490,
5365,
273,
336,
19943,
319,
2408,
1512,
2490,
5365,
12,
26240,
1769,
9506,
202,
430,
261,
26240,
2408,
1512,
2490,
5365,
480,
446,
13,
9506,
202,
95,
759,
6862,
202,
45,
664,
922,
475,
5027,
14905,
475,
5027,
273,
336,
664,
922,
475,
5027,
12,
26240,
2408,
1512,
2490,
5365,
1769,
759,
6862,
202,
45,
3210,
5027,
4588,
5027,
273,
5175,
3210,
5027,
5621,
759,
6862,
202,
430,
261,
16414,
5027,
18,
14963,
12,
12401,
475,
5027,
18,
588,
3210,
5027,
1435,
3719,
759,
6862,
202,
95,
25083,
202,
698,
25083,
202,
95,
6862,
1082,
202,
2463,
1836,
1179,
1343,
2102,
12,
26240,
2408,
1512,
2490,
5365,
1769,
25083,
202,
97,
25083,
202,
14683,
261,
31237,
425,
13,
25083,
202,
95,
6862,
1082,
202,
12849,
394,
478,
275,
697,
15133,
2932,
21361,
8863,
25083,
202,
97,
759,
6862,
202,
97,
469,
759,
6862,
202,
95,
759,
25083,
202,
12849,
394,
478,
275,
697,
15133,
2932,
12401,
475,
5027,
8863,
759,
6862,
202,
97,
9506,
202,
97,
9506,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3807,
19943,
319,
664,
922,
475,
1042,
1086,
12,
4522,
4588,
22885,
548,
16,
2144,
18110,
2408,
1512,
2490,
5365,
548,
16,
2144,
18110,
1854,
13,
1216,
478,
275,
697,
15133,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
45,
19943,
319,
18110,
273,
336,
19943,
319,
12,
26240,
1854,
1769,
1082,
202,
430,
261,
26240,
480,
446,
13,
1082,
202,
95,
9506,
202,
45,
19943,
319,
2408,
1512,
2490,
5365,
18110,
2408,
1512,
2490,
5365,
273,
336,
19943,
319,
2408,
1512,
2490,
5365,
12,
26240,
1769,
9506,
202,
430,
261,
26240,
2408,
1512,
2490,
5365,
480,
446,
13,
9506,
202,
95,
759,
6862,
202,
45,
664,
922,
475,
5027,
14905,
475,
5027,
273,
2
] |
AST __t2057 = _t;
|
AST __t2061 = _t;
|
public final void systemdialoggetfilestate(AST _t) throws RecognitionException { AST systemdialoggetfilestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t2057 = _t; AST tmp1276_AST_in = (AST)_t; match(_t,SYSTEMDIALOG); _t = _t.getFirstChild(); AST tmp1277_AST_in = (AST)_t; match(_t,GETFILE); _t = _t.getNextSibling(); field(_t); _t = _retTree; { _loop2069: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FILTERS: { AST __t2059 = _t; AST tmp1278_AST_in = (AST)_t; match(_t,FILTERS); _t = _t.getFirstChild(); expression(_t); _t = _retTree; expression(_t); _t = _retTree; { _loop2061: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp1279_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); expression(_t); _t = _retTree; expression(_t); _t = _retTree; } else { break _loop2061; } } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case INITIALFILTER: { AST __t2063 = _t; AST tmp1280_AST_in = (AST)_t; match(_t,INITIALFILTER); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2063; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t2059; _t = _t.getNextSibling(); break; } case ASKOVERWRITE: { AST tmp1281_AST_in = (AST)_t; match(_t,ASKOVERWRITE); _t = _t.getNextSibling(); break; } case CREATETESTFILE: { AST tmp1282_AST_in = (AST)_t; match(_t,CREATETESTFILE); _t = _t.getNextSibling(); break; } case DEFAULTEXTENSION: { AST __t2064 = _t; AST tmp1283_AST_in = (AST)_t; match(_t,DEFAULTEXTENSION); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2064; _t = _t.getNextSibling(); break; } case INITIALDIR: { AST __t2065 = _t; AST tmp1284_AST_in = (AST)_t; match(_t,INITIALDIR); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2065; _t = _t.getNextSibling(); break; } case MUSTEXIST: { AST tmp1285_AST_in = (AST)_t; match(_t,MUSTEXIST); _t = _t.getNextSibling(); break; } case RETURNTOSTARTDIR: { AST tmp1286_AST_in = (AST)_t; match(_t,RETURNTOSTARTDIR); _t = _t.getNextSibling(); break; } case SAVEAS: { AST tmp1287_AST_in = (AST)_t; match(_t,SAVEAS); _t = _t.getNextSibling(); break; } case TITLE: { AST __t2066 = _t; AST tmp1288_AST_in = (AST)_t; match(_t,TITLE); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2066; _t = _t.getNextSibling(); break; } case USEFILENAME: { AST tmp1289_AST_in = (AST)_t; match(_t,USEFILENAME); _t = _t.getNextSibling(); break; } case UPDATE: { AST __t2067 = _t; AST tmp1290_AST_in = (AST)_t; match(_t,UPDATE); _t = _t.getFirstChild(); field(_t); _t = _retTree; _t = __t2067; _t = _t.getNextSibling(); break; } case IN_KW: { AST __t2068 = _t; AST tmp1291_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getFirstChild(); AST tmp1292_AST_in = (AST)_t; match(_t,WINDOW); _t = _t.getNextSibling(); expression(_t); _t = _retTree; _t = __t2068; _t = _t.getNextSibling(); break; } default: { break _loop2069; } } } while (true); } state_end(_t); _t = _retTree; _t = __t2057; _t = _t.getNextSibling(); _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/JPTreeParser.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
2619,
12730,
588,
7540,
395,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
2619,
12730,
588,
7540,
395,
340,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
3462,
10321,
273,
389,
88,
31,
202,
202,
9053,
1853,
2138,
6669,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
14318,
2565,
18683,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
9053,
1853,
2138,
4700,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
3264,
3776,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
202,
202,
1518,
24899,
88,
1769,
202,
202,
67,
88,
273,
389,
1349,
2471,
31,
202,
202,
95,
202,
202,
67,
6498,
3462,
8148,
30,
202,
202,
2896,
288,
1082,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
1082,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
1082,
202,
3593,
8919,
55,
30,
1082,
202,
95,
9506,
202,
9053,
1001,
88,
3462,
6162,
273,
389,
88,
31,
9506,
202,
9053,
1853,
2138,
8285,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
9506,
202,
1916,
24899,
88,
16,
11126,
55,
1769,
9506,
202,
67,
88,
273,
389,
88,
18,
588,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
2619,
12730,
588,
7540,
395,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
2619,
12730,
588,
7540,
395,
340,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
3462,
10321,
273,
389,
88,
31,
202,
202,
9053,
1853,
2138,
6669,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
14318,
2565,
18683,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
9053,
1853,
2138,
4700,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
2
] |
Class<IAnnotation> annotationClass=m_annotationMap.get(tag.getName()); if (annotationClass==null) { ppp("Found unknown testng annotation "+tag.getName()+" in file "+tag.getContext().getSource().getFile().getAbsolutePath()+" at line "+tag.getLineNumber()); return String.class; } String methodName="get"+key.substring(0,1).toUpperCase()+key.substring(1); Method method=null; try { method=annotationClass.getMethod(methodName, new Class[0]); } catch (Exception e) { ppp("Found unknown testng parameter "+key+" in annotation "+tag.getName()+" in file "+tag.getContext().getSource().getFile().getAbsolutePath()+" at line "+tag.getLineNumber()); return String.class; } return method.getReturnType(); }
|
Class<IAnnotation> annotationClass= m_annotationMap.get(tag.getName()); if(annotationClass == null) { ppp("Found unknown testng annotation " + tag.getName() + " in file " + tag.getContext().getSource().getFile().getAbsolutePath() + " at line " + tag.getLineNumber()); return String.class; } String methodName= "get" + key.substring(0, 1).toUpperCase() + key.substring(1); Method method= null; try { method= annotationClass.getMethod(methodName, new Class[0]); } catch(Exception e) { ppp("Found unknown testng parameter " + key + " in annotation " + tag.getName() + " in file " + tag.getContext().getSource().getFile().getAbsolutePath() + " at line " + tag.getLineNumber()); return String.class; } return method.getReturnType(); }
|
private Class expectedValueTypeForKey(DocletTag tag, String key) { Class<IAnnotation> annotationClass=m_annotationMap.get(tag.getName()); if (annotationClass==null) { ppp("Found unknown testng annotation "+tag.getName()+" in file "+tag.getContext().getSource().getFile().getAbsolutePath()+" at line "+tag.getLineNumber()); // preserve the information - but it looks like an invalid tag return String.class; } String methodName="get"+key.substring(0,1).toUpperCase()+key.substring(1); Method method=null; try { method=annotationClass.getMethod(methodName, new Class[0]); } catch (Exception e) { ppp("Found unknown testng parameter "+key+" in annotation "+tag.getName()+" in file "+tag.getContext().getSource().getFile().getAbsolutePath()+" at line "+tag.getLineNumber()); // preserve the information - but it looks like an invalid parameter return String.class; } return method.getReturnType(); }
|
48015 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48015/75c0741cfb0fc75ef79c70ec78da0a1cd8144089/AnnotationTestConverter.java/buggy/src/main/org/testng/internal/AnnotationTestConverter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1659,
2665,
17930,
19759,
12,
1759,
1810,
1805,
1047,
16,
514,
498,
13,
288,
202,
202,
797,
32,
45,
3257,
34,
26759,
33,
81,
67,
11495,
863,
18,
588,
12,
2692,
18,
17994,
10663,
202,
202,
430,
261,
11495,
797,
631,
2011,
13,
288,
1082,
202,
11858,
84,
2932,
2043,
5917,
1842,
3368,
3204,
13773,
2692,
18,
17994,
1435,
9078,
316,
585,
13773,
2692,
18,
29120,
7675,
588,
1830,
7675,
29925,
7675,
588,
10368,
743,
1435,
9078,
622,
980,
13773,
2692,
18,
588,
31063,
10663,
1082,
202,
759,
9420,
326,
1779,
300,
1496,
518,
10192,
3007,
392,
2057,
1047,
1082,
202,
2463,
514,
18,
1106,
31,
202,
202,
97,
202,
202,
780,
4918,
1546,
588,
6,
15,
856,
18,
28023,
12,
20,
16,
21,
2934,
869,
8915,
1435,
15,
856,
18,
28023,
12,
21,
1769,
202,
202,
1305,
707,
33,
2011,
31,
202,
202,
698,
288,
1082,
202,
2039,
33,
11495,
797,
18,
588,
1305,
12,
2039,
461,
16,
394,
1659,
63,
20,
19226,
202,
202,
97,
1044,
261,
503,
425,
13,
288,
1082,
202,
11858,
84,
2932,
2043,
5917,
1842,
3368,
1569,
13773,
856,
9078,
316,
3204,
13773,
2692,
18,
17994,
1435,
9078,
316,
585,
13773,
2692,
18,
29120,
7675,
588,
1830,
7675,
29925,
7675,
588,
10368,
743,
1435,
9078,
622,
980,
13773,
2692,
18,
588,
31063,
10663,
1082,
202,
759,
9420,
326,
1779,
300,
1496,
518,
10192,
3007,
392,
2057,
1569,
1082,
202,
2463,
514,
18,
1106,
31,
202,
202,
97,
3196,
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,
1659,
2665,
17930,
19759,
12,
1759,
1810,
1805,
1047,
16,
514,
498,
13,
288,
202,
202,
797,
32,
45,
3257,
34,
26759,
33,
81,
67,
11495,
863,
18,
588,
12,
2692,
18,
17994,
10663,
202,
202,
430,
261,
11495,
797,
631,
2011,
13,
288,
1082,
202,
11858,
84,
2932,
2043,
5917,
1842,
3368,
3204,
13773,
2692,
18,
17994,
1435,
9078,
316,
585,
13773,
2692,
18,
29120,
7675,
588,
1830,
7675,
29925,
7675,
588,
10368,
743,
1435,
9078,
622,
980,
13773,
2692,
18,
588,
31063,
10663,
1082,
202,
759,
9420,
326,
1779,
300,
1496,
518,
10192,
3007,
392,
2057,
1047,
1082,
202,
2463,
514,
18,
1106,
31,
202,
202,
97,
202,
202,
780,
4918,
1546,
588,
6,
2
] |
checkDelimiters(XMLConstants.XHTML_NAMESPACE_URI, spanQName);
|
checkDelimiters(XMLConstants.XHTML_NAMESPACE_URI, spanQName, topLevel);
|
public void flushCharacters(boolean finalFlush) throws SAXException { if (currentCharacters.length() > 0) { final String currentString = currentCharacters.toString(); final char[] chars = currentString.toCharArray(); if (XMLUtils.isBlank(currentString) || level > 0) { // Just output whitespace as is super.characters(chars, 0, chars.length); } else { // The first element received determines the type of separator checkDelimiters(XMLConstants.XHTML_NAMESPACE_URI, spanQName); // Wrap any other text within an xhtml:span super.startElement(XMLConstants.XHTML_NAMESPACE_URI, "span", spanQName, getAttributesWithClass(XMLUtils.EMPTY_ATTRIBUTES)); super.characters(chars, 0, chars.length); super.endElement(XMLConstants.XHTML_NAMESPACE_URI, "span", spanQName); } isCharacters = false; currentCharacters.setLength(0); } if (finalFlush) checkDelimiters(XMLConstants.XHTML_NAMESPACE_URI, spanQName); }
|
54445 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54445/5980cbcb73a0d483ca5623e89efe2b06427f3109/OutputInterceptor.java/buggy/src/java/org/orbeon/oxf/xforms/processor/handlers/OutputInterceptor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3663,
11600,
12,
6494,
727,
8207,
13,
1216,
14366,
288,
3639,
309,
261,
2972,
11600,
18,
2469,
1435,
405,
374,
13,
288,
5411,
727,
514,
783,
780,
273,
783,
11600,
18,
10492,
5621,
5411,
727,
1149,
8526,
5230,
273,
783,
780,
18,
869,
15936,
5621,
5411,
309,
261,
4201,
1989,
18,
291,
7796,
12,
2972,
780,
13,
747,
1801,
405,
374,
13,
288,
7734,
368,
12526,
876,
7983,
487,
353,
7734,
2240,
18,
20558,
12,
7549,
16,
374,
16,
5230,
18,
2469,
1769,
5411,
289,
469,
288,
7734,
368,
1021,
1122,
930,
5079,
12949,
326,
618,
434,
4182,
7734,
866,
23531,
414,
12,
4201,
2918,
18,
60,
4870,
67,
11368,
67,
3098,
16,
4548,
13688,
16,
21289,
1769,
7734,
368,
4266,
1281,
1308,
977,
3470,
392,
619,
2620,
30,
3969,
7734,
2240,
18,
1937,
1046,
12,
4201,
2918,
18,
60,
4870,
67,
11368,
67,
3098,
16,
315,
3969,
3113,
4548,
13688,
16,
10183,
1190,
797,
12,
4201,
1989,
18,
13625,
67,
22308,
10019,
7734,
2240,
18,
20558,
12,
7549,
16,
374,
16,
5230,
18,
2469,
1769,
7734,
2240,
18,
409,
1046,
12,
4201,
2918,
18,
60,
4870,
67,
11368,
67,
3098,
16,
315,
3969,
3113,
4548,
13688,
1769,
5411,
289,
5411,
353,
11600,
273,
629,
31,
5411,
783,
11600,
18,
542,
1782,
12,
20,
1769,
3639,
289,
3639,
309,
261,
6385,
8207,
13,
5411,
866,
23531,
414,
12,
4201,
2918,
18,
60,
4870,
67,
11368,
67,
3098,
16,
4548,
13688,
16,
21289,
1769,
565,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3663,
11600,
12,
6494,
727,
8207,
13,
1216,
14366,
288,
3639,
309,
261,
2972,
11600,
18,
2469,
1435,
405,
374,
13,
288,
5411,
727,
514,
783,
780,
273,
783,
11600,
18,
10492,
5621,
5411,
727,
1149,
8526,
5230,
273,
783,
780,
18,
869,
15936,
5621,
5411,
309,
261,
4201,
1989,
18,
291,
7796,
12,
2972,
780,
13,
747,
1801,
405,
374,
13,
288,
7734,
368,
12526,
876,
7983,
487,
353,
7734,
2240,
18,
20558,
12,
7549,
16,
374,
16,
5230,
18,
2469,
1769,
5411,
289,
469,
288,
7734,
368,
1021,
1122,
930,
5079,
12949,
326,
618,
434,
4182,
7734,
866,
23531,
414,
12,
4201,
2918,
18,
60,
4870,
67,
11368,
67,
3098,
16,
4548,
13688,
16,
2
] |
MuleManager.getConfiguration().setModelType("jca");
|
MuleManager.getConfiguration().setModelType("jca");
|
public MuleResourceAdapter() { MuleManager.getConfiguration().setModelType("jca"); }
|
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/a9c4215b1a81673028e526c6c3e30f8f7d56a0bc/MuleResourceAdapter.java/clean/modules/jca/src/main/java/org/mule/ra/MuleResourceAdapter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
490,
725,
1420,
4216,
1435,
565,
288,
3639,
490,
725,
1318,
18,
588,
1750,
7675,
542,
1488,
559,
2932,
78,
5353,
8863,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
490,
725,
1420,
4216,
1435,
565,
288,
3639,
490,
725,
1318,
18,
588,
1750,
7675,
542,
1488,
559,
2932,
78,
5353,
8863,
5411,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 (thread.view.sleepTime < sleepTime) {
|
if (thread.view.sleepTime > sleepTime) {
|
private void updateTimeValues() { int i=0; J3dThreadData lastThread=null; J3dThreadData thread=null; long lastTime = currentTime; currentTime = getTime(); J3dThreadData threads[] = (J3dThreadData []) stateWorkThreads.toArray(false); int size = stateWorkThreads.arraySize(); while (i<lastTransformStructureThread) { thread = threads[i++]; if ((thread.lastUpdateTime > thread.lastRunTime) && !thread.thread.userStop) { lastThread = thread; thread.needsRun = true; thread.threadOpts = J3dThreadData.CONT_THREAD; thread.lastRunTime = currentTime; } else { thread.needsRun = false; } } if (lastThread != null) { lastThread.threadOpts = J3dThreadData.WAIT_ALL_THREADS; lastThread = null; } while (i<lastStructureUpdateThread) { thread = threads[i++]; if ((thread.lastUpdateTime > thread.lastRunTime) && !thread.thread.userStop) { lastThread = thread; thread.needsRun = true; thread.threadOpts = J3dThreadData.CONT_THREAD; thread.lastRunTime = currentTime; } else { thread.needsRun = false; } } if (lastThread != null) { lastThread.threadOpts = J3dThreadData.WAIT_ALL_THREADS; lastThread = null; } while (i<size) { thread = threads[i++]; if ((thread.lastUpdateTime > thread.lastRunTime) && !thread.thread.userStop) { lastThread = thread; thread.needsRun = true; thread.threadOpts = J3dThreadData.CONT_THREAD; thread.lastRunTime = currentTime; } else { thread.needsRun = false; } } if (lastThread != null) { lastThread.threadOpts = J3dThreadData.WAIT_ALL_THREADS; lastThread = null; } threads = (J3dThreadData []) renderWorkThreads.toArray(false); size = renderWorkThreads.arraySize(); View v; J3dThreadData lastRunThread = null; waitTimestamp++; sleepTime = Long.MAX_VALUE; boolean threadToRun = false; boolean needToSetWork = false; // Fix for Issue 12: loop through the list of threads, calling // computeCycleTime() exactly once per view. This ensures that // all threads for a given view see consistent values for // isMinCycleTimeAchieve and sleepTime. v = null; for (i=0; i<size; i++) { thread = threads[i]; if (thread.view != v) { thread.view.computeCycleTime(); if (thread.view.sleepTime < sleepTime) { sleepTime = thread.view.sleepTime; } } v = thread.view; } v = null; for (i=0; i<size; i++) { thread = threads[i]; if (thread.canvas == null) { // Only for swap thread ((Object []) thread.threadArgs)[3] = null; } if ((thread.lastUpdateTime > thread.lastRunTime) && !thread.thread.userStop) { if (!thread.view.isMinCycleTimeAchieve) { thread.needsRun = false; needToSetWork = true; continue; } if (thread.thread.lastWaitTimestamp == waitTimestamp) { // This renderer thread is repeated. We must wait // until all previous renderer threads done before // allowing this thread to continue. Note that // lastRunThread can't be null in this case. waitTimestamp++; if (thread.view != v) { // A new View is start v = thread.view; threadToRun = true; lastRunThread.threadOpts = (J3dThreadData.STOP_TIMER | J3dThreadData.WAIT_ALL_THREADS); ((Object []) lastRunThread.threadArgs)[3] = lastRunThread.view; thread.threadOpts = (J3dThreadData.START_TIMER | J3dThreadData.CONT_THREAD); } else { if ((lastRunThread.threadOpts & J3dThreadData.START_TIMER) != 0) { lastRunThread.threadOpts = (J3dThreadData.START_TIMER | J3dThreadData.WAIT_ALL_THREADS); } else { lastRunThread.threadOpts = J3dThreadData.WAIT_ALL_THREADS; } thread.threadOpts = J3dThreadData.CONT_THREAD; } } else { if (thread.view != v) { v = thread.view; threadToRun = true; // Although the renderer thread is not // repeated. We still need to wait all // previous renderer threads if new View // start. if (lastRunThread != null) { lastRunThread.threadOpts = (J3dThreadData.STOP_TIMER | J3dThreadData.WAIT_ALL_THREADS); ((Object []) lastRunThread.threadArgs)[3] = lastRunThread.view; } thread.threadOpts = (J3dThreadData.START_TIMER | J3dThreadData.CONT_THREAD); } else { thread.threadOpts = J3dThreadData.CONT_THREAD; } } thread.thread.lastWaitTimestamp = waitTimestamp; thread.needsRun = true; thread.lastRunTime = currentTime; lastRunThread = thread; } else { thread.needsRun = false; } } if (lastRunThread != null) { lastRunThread.threadOpts = (J3dThreadData.STOP_TIMER | J3dThreadData.WAIT_ALL_THREADS| J3dThreadData.LAST_STOP_TIMER); lockGeometry = true; ((Object []) lastRunThread.threadArgs)[3] = lastRunThread.view; } else { lockGeometry = false; } if (needToSetWork && !threadToRun) { // Modified the following in the course of fixing Issue 12: // // 1. don't modify sleepTime by subtracting a value that // doesn't even represent time! // // 2. use sleep(sleepTime) rather than wait(sleepTime) // // Note that this will need to be redone anyway for Issue 11 // BUG: sleepTime -= (currentTime - lastTime); if (sleepTime > 0) { // OLD: runMonitor(SLEEP, null, null, null, null); // System.err.println("MasterControl: sleep(" + sleepTime + ")"); try { Thread.sleep(sleepTime); } catch (InterruptedException e) { System.err.println(e); } // System.err.println("MasterControl: done sleeping"); } // Need to invoke MC to do work // next time after sleep setWork(); } }
|
8698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8698/0e0df567b8ea384d6969c5b1c549f3b437af56a5/MasterControl.java/buggy/src/classes/share/javax/media/j3d/MasterControl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1089,
950,
1972,
1435,
288,
202,
474,
277,
33,
20,
31,
202,
46,
23,
72,
3830,
751,
1142,
3830,
33,
2011,
31,
202,
46,
23,
72,
3830,
751,
2650,
33,
2011,
31,
202,
5748,
31323,
273,
6680,
31,
202,
2972,
950,
273,
6135,
5621,
202,
46,
23,
72,
3830,
751,
7403,
8526,
273,
261,
46,
23,
72,
3830,
751,
5378,
13,
3196,
13491,
919,
2421,
13233,
18,
31447,
12,
5743,
1769,
202,
474,
963,
273,
919,
2421,
13233,
18,
1126,
1225,
5621,
202,
17523,
261,
77,
32,
2722,
4059,
6999,
3830,
13,
288,
202,
565,
2650,
273,
7403,
63,
77,
9904,
15533,
202,
565,
309,
14015,
5930,
18,
2722,
1891,
950,
405,
2650,
18,
2722,
1997,
950,
13,
597,
3196,
202,
5,
5930,
18,
5930,
18,
1355,
4947,
13,
288,
202,
202,
2722,
3830,
273,
2650,
31,
202,
202,
5930,
18,
20600,
1997,
273,
638,
31,
202,
202,
5930,
18,
5930,
5476,
273,
804,
23,
72,
3830,
751,
18,
6067,
67,
21730,
31,
202,
202,
5930,
18,
2722,
1997,
950,
273,
225,
6680,
31,
202,
565,
289,
469,
288,
202,
202,
5930,
18,
20600,
1997,
273,
629,
31,
202,
565,
289,
202,
97,
202,
202,
430,
261,
2722,
3830,
480,
446,
13,
288,
202,
565,
1142,
3830,
18,
5930,
5476,
273,
225,
804,
23,
72,
3830,
751,
18,
19046,
67,
4685,
67,
21730,
55,
31,
202,
565,
1142,
3830,
273,
446,
31,
202,
97,
202,
202,
17523,
261,
77,
32,
2722,
6999,
1891,
3830,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1089,
950,
1972,
1435,
288,
202,
474,
277,
33,
20,
31,
202,
46,
23,
72,
3830,
751,
1142,
3830,
33,
2011,
31,
202,
46,
23,
72,
3830,
751,
2650,
33,
2011,
31,
202,
5748,
31323,
273,
6680,
31,
202,
2972,
950,
273,
6135,
5621,
202,
46,
23,
72,
3830,
751,
7403,
8526,
273,
261,
46,
23,
72,
3830,
751,
5378,
13,
3196,
13491,
919,
2421,
13233,
18,
31447,
12,
5743,
1769,
202,
474,
963,
273,
919,
2421,
13233,
18,
1126,
1225,
5621,
202,
17523,
261,
77,
32,
2722,
4059,
6999,
3830,
13,
288,
202,
565,
2650,
273,
7403,
63,
77,
9904,
15533,
202,
565,
309,
14015,
5930,
18,
2722,
1891,
950,
405,
2650,
18,
2722,
1997,
2
] |
instance.partDeactivated( part );
|
if(part instanceof ReportEditorProxy){ instance.partDeactivated( ((ReportEditorProxy)part).getEditorPart( ) ); } else { instance.partDeactivated( part ); }
|
public void partDeactivated( IWorkbenchPart part ) { instance.partDeactivated( part ); }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/786c901afd0d53ea23213d22170e8b35aa4a0a1d/ReportEditorProxy.java/buggy/UI/org.eclipse.birt.report.designer.ui.ide/src/org/eclipse/birt/report/designer/ui/editors/ReportEditorProxy.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1087,
758,
18836,
12,
467,
2421,
22144,
1988,
1087,
262,
202,
95,
202,
202,
1336,
18,
2680,
758,
18836,
12,
1087,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1087,
758,
18836,
12,
467,
2421,
22144,
1988,
1087,
262,
202,
95,
202,
202,
1336,
18,
2680,
758,
18836,
12,
1087,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
aSkill = (Skill) e1.next(); availableList.add(aSkill.getKeyName());
|
availableList.add(skill.getKeyName());
|
public void getChoices( final PlayerCharacter aPc, final List availableList, final List selectedList) { Iterator choiceIt = choices.iterator(); while (choiceIt.hasNext()) { String token = (String) choiceIt.next(); boolean startsWith = false; if (token.startsWith("TYPE.") || token.startsWith("TYPE=")) { Skill aSkill; for (Iterator e1 = Globals.getSkillList().iterator(); e1.hasNext();) { aSkill = (Skill) e1.next(); if (aSkill.isType(token.substring(5))) { availableList.add(aSkill.getKeyName()); } } } if ("ALL".equals(token)) { Skill aSkill; for (Iterator e1 = Globals.getSkillList().iterator(); e1.hasNext();) { aSkill = (Skill) e1.next(); availableList.add(aSkill.getKeyName()); } } if ("CLASS".equals(token)) { Skill aSkill; for (Iterator e1 = Globals.getSkillList().iterator(); e1.hasNext();) { aSkill = (Skill) e1.next(); if (aSkill.costForPCClassList(aPc.getClassList(), aPc) == Globals.getGameModeSkillCost_Class()) { availableList.add(aSkill.getKeyName()); } } } if ("CROSSCLASS".equals(token)) { Skill aSkill; for (Iterator e1 = Globals.getSkillList().iterator(); e1.hasNext();) { aSkill = (Skill) e1.next(); if (aSkill.costForPCClassList(aPc.getClassList(), aPc) > Globals.getGameModeSkillCost_Class()) { availableList.add(aSkill.getKeyName()); } } } if ("EXCLUSIVE".equals(token)) { Skill aSkill; for (Iterator e1 = Globals.getSkillList().iterator(); e1.hasNext();) { aSkill = (Skill) e1.next(); if (aSkill.costForPCClassList(aPc.getClassList(), aPc) == Globals.getGameModeSkillCost_Exclusive()) { availableList.add(aSkill.getKeyName()); } } } if ("NORANK".equals(token)) { Skill aSkill; Skill pcSkill; for (Iterator e1 = Globals.getSkillList().iterator(); e1.hasNext();) { aSkill = (Skill) e1.next(); pcSkill = aPc.getSkillKeyed(aSkill.getKeyName()); if (pcSkill == null || Double.compare(pcSkill.getRank().doubleValue(), 0.0) == 0) { availableList.add(aSkill.getKeyName()); } } } if (token.endsWith("%")) { startsWith = true; token = token.substring(0, token.length() - 1); } Skill aSkill; for (Iterator e1 = Globals.getSkillList().iterator(); e1.hasNext();) { aSkill = (Skill) e1.next(); if (aSkill.getKeyName().equals(token) || (startsWith && aSkill.getKeyName().startsWith(token))) { availableList.add(aSkill.getKeyName()); } } } pobject.addAssociatedTo(selectedList); }
|
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/935adc4060b045f379db1f27f0825679f0299b30/SkillsNamedChoiceManager.java/buggy/code/src/java/pcgen/core/chooser/SkillsNamedChoiceManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
336,
17442,
12,
1082,
202,
6385,
19185,
7069,
279,
28136,
16,
1082,
202,
6385,
987,
5411,
2319,
682,
16,
1082,
202,
6385,
987,
5411,
3170,
682,
13,
202,
95,
202,
202,
3198,
6023,
7193,
273,
7246,
18,
9838,
5621,
202,
202,
17523,
261,
11569,
7193,
18,
5332,
2134,
10756,
202,
202,
95,
1082,
202,
780,
1147,
273,
261,
780,
13,
6023,
7193,
18,
4285,
5621,
1082,
202,
6494,
4969,
273,
629,
31,
1082,
202,
430,
261,
2316,
18,
17514,
1190,
2932,
2399,
1199,
13,
747,
1147,
18,
17514,
1190,
2932,
2399,
1546,
3719,
1082,
202,
95,
9506,
202,
9030,
279,
9030,
31,
9506,
202,
1884,
261,
3198,
425,
21,
273,
18901,
1031,
18,
588,
9030,
682,
7675,
9838,
5621,
425,
21,
18,
5332,
2134,
5621,
13,
9506,
202,
95,
6862,
202,
69,
9030,
273,
261,
9030,
13,
425,
21,
18,
4285,
5621,
6862,
202,
430,
261,
69,
9030,
18,
291,
559,
12,
2316,
18,
28023,
12,
25,
20349,
6862,
202,
95,
25083,
202,
5699,
682,
18,
1289,
12,
69,
9030,
18,
588,
13987,
10663,
6862,
202,
97,
9506,
202,
97,
1082,
202,
97,
1082,
202,
430,
7566,
4685,
9654,
14963,
12,
2316,
3719,
1082,
202,
95,
9506,
202,
9030,
279,
9030,
31,
9506,
202,
1884,
261,
3198,
425,
21,
273,
18901,
1031,
18,
588,
9030,
682,
7675,
9838,
5621,
425,
21,
18,
5332,
2134,
5621,
13,
9506,
202,
95,
6862,
202,
69,
9030,
273,
261,
9030,
13,
425,
21,
18,
4285,
5621,
6862,
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,
336,
17442,
12,
1082,
202,
6385,
19185,
7069,
279,
28136,
16,
1082,
202,
6385,
987,
5411,
2319,
682,
16,
1082,
202,
6385,
987,
5411,
3170,
682,
13,
202,
95,
202,
202,
3198,
6023,
7193,
273,
7246,
18,
9838,
5621,
202,
202,
17523,
261,
11569,
7193,
18,
5332,
2134,
10756,
202,
202,
95,
1082,
202,
780,
1147,
273,
261,
780,
13,
6023,
7193,
18,
4285,
5621,
1082,
202,
6494,
4969,
273,
629,
31,
1082,
202,
430,
261,
2316,
18,
17514,
1190,
2932,
2399,
1199,
13,
747,
1147,
18,
17514,
1190,
2932,
2399,
1546,
3719,
1082,
202,
95,
9506,
202,
9030,
279,
9030,
31,
9506,
202,
1884,
261,
3198,
425,
21,
273,
18901,
1031,
18,
588,
9030,
2
] |
public int getLanguageVersion()
|
public final int getLanguageVersion()
|
public int getLanguageVersion() { return version; }
|
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/767031d59e433c96cbc46c5e9fa8adb631f14074/Context.java/buggy/src/org/mozilla/javascript/Context.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
509,
12898,
1444,
1435,
565,
288,
4202,
327,
1177,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
509,
12898,
1444,
1435,
565,
288,
4202,
327,
1177,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
freqOfWordInDoc = (int)inst.valueSparse(i); totalWords += freqOfWordInDoc;
|
freqOfWordInDoc = inst.valueSparse(i);
|
private double probOfDocGivenClass(Instance inst, int classIndex) { double answer = 0; int totalWords = 0; int freqOfWordInDoc; for(int i = 0; i<inst.numValues(); i++) if(inst.index(i) != inst.classIndex()) { freqOfWordInDoc = (int)inst.valueSparse(i); totalWords += freqOfWordInDoc; answer += (freqOfWordInDoc * probOfWordGivenClass[classIndex][inst.index(i)] ); //- lnFactorial(freqOfWordInDoc)); } //answer += lnFactorial(totalWords);//The factorial terms don't make //any difference to the classifier's //accuracy, so not needed. return answer; }
|
4773 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4773/f205a6f8afe0b91b45ba2b4cd76c9a965c6d6d4f/NaiveBayesMultinomial.java/clean/weka/classifiers/bayes/NaiveBayesMultinomial.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1645,
3137,
951,
1759,
6083,
797,
12,
1442,
1804,
16,
509,
667,
1016,
13,
225,
288,
565,
1645,
5803,
273,
374,
31,
565,
509,
2078,
7363,
273,
374,
31,
202,
565,
509,
7684,
951,
3944,
382,
1759,
31,
565,
364,
12,
474,
277,
273,
374,
31,
277,
32,
8591,
18,
2107,
1972,
5621,
277,
27245,
1377,
309,
12,
8591,
18,
1615,
12,
77,
13,
480,
1804,
18,
1106,
1016,
10756,
202,
95,
202,
225,
7684,
951,
3944,
382,
1759,
273,
261,
474,
13,
8591,
18,
1132,
20565,
12,
77,
1769,
202,
225,
2078,
7363,
1011,
7684,
951,
3944,
382,
1759,
31,
202,
225,
5803,
1011,
261,
10212,
951,
3944,
382,
1759,
380,
3137,
951,
3944,
6083,
797,
63,
1106,
1016,
6362,
8591,
18,
1615,
12,
77,
25887,
1875,
377,
11272,
368,
17,
7211,
6837,
649,
12,
10212,
951,
3944,
382,
1759,
10019,
202,
97,
202,
565,
368,
13490,
1011,
7211,
6837,
649,
12,
4963,
7363,
1769,
759,
1986,
5578,
649,
6548,
2727,
1404,
1221,
377,
368,
2273,
7114,
358,
326,
14622,
1807,
565,
368,
25010,
16,
1427,
486,
3577,
18,
202,
565,
327,
5803,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1645,
3137,
951,
1759,
6083,
797,
12,
1442,
1804,
16,
509,
667,
1016,
13,
225,
288,
565,
1645,
5803,
273,
374,
31,
565,
509,
2078,
7363,
273,
374,
31,
202,
565,
509,
7684,
951,
3944,
382,
1759,
31,
565,
364,
12,
474,
277,
273,
374,
31,
277,
32,
8591,
18,
2107,
1972,
5621,
277,
27245,
1377,
309,
12,
8591,
18,
1615,
12,
77,
13,
480,
1804,
18,
1106,
1016,
10756,
202,
95,
202,
225,
7684,
951,
3944,
382,
1759,
273,
261,
474,
13,
8591,
18,
1132,
20565,
12,
77,
1769,
202,
225,
2078,
7363,
1011,
7684,
951,
3944,
382,
1759,
31,
202,
225,
5803,
1011,
261,
10212,
951,
3944,
382,
1759,
380,
3137,
951,
3944,
6083,
797,
2
] |
"(Ljava/lang/Object;Ljava/lang/Object;" + "Lorg/mozilla/javascript/Scriptable;)","Z");
|
"(Ljava/lang/Object;Ljava/lang/Object;)","Z");
|
private void visitGOTOingRelOp(Node node, Node child, Node parent, int trueGOTO, int falseGOTO) { int op = node.getInt(); Integer childNumberFlag = (Integer)(node.getProp(Node.ISNUMBER_PROP)); if ((childNumberFlag != null) && (childNumberFlag.intValue() == Node.BOTH)) { generateCodeFromNode(child, node, -1, -1); generateCodeFromNode(child.getNextSibling(), node, -1, -1); genSimpleCompare(op, trueGOTO, falseGOTO); } else { if (op == TokenStream.INSTANCEOF) { aload(variableObjectLocal); generateCodeFromNode(child, node, -1, -1); generateCodeFromNode(child.getNextSibling(), node, -1, -1); addScriptRuntimeInvoke("instanceOf", "(Lorg/mozilla/javascript/Scriptable;"+ "Ljava/lang/Object;Ljava/lang/Object;)", "Z"); addByteCode(ByteCode.IFNE, trueGOTO); addByteCode(ByteCode.GOTO, falseGOTO); } else if (op == TokenStream.IN) { generateCodeFromNode(child, node, -1, -1); generateCodeFromNode(child.getNextSibling(), node, -1, -1); aload(variableObjectLocal); addScriptRuntimeInvoke("in", "(Ljava/lang/Object;Ljava/lang/Object;" + "Lorg/mozilla/javascript/Scriptable;)","Z"); addByteCode(ByteCode.IFNE, trueGOTO); addByteCode(ByteCode.GOTO, falseGOTO); } else { Node rChild = child.getNextSibling(); boolean leftIsDCP = nodeIsDirectCallParameter(child); boolean rightIsDCP = nodeIsDirectCallParameter(rChild); if (leftIsDCP || rightIsDCP) { if (leftIsDCP) { if (rightIsDCP) { OptLocalVariable lVar1 = (OptLocalVariable)(child.getProp(Node.VARIABLE_PROP)); aload(lVar1.getJRegister()); classFile.add(ByteCode.GETSTATIC, "java/lang/Void", "TYPE", "Ljava/lang/Class;"); int notNumbersLabel = acquireLabel(); addByteCode(ByteCode.IF_ACMPNE, notNumbersLabel); OptLocalVariable lVar2 = (OptLocalVariable)(rChild.getProp(Node.VARIABLE_PROP)); aload(lVar2.getJRegister()); classFile.add(ByteCode.GETSTATIC, "java/lang/Void", "TYPE", "Ljava/lang/Class;"); addByteCode(ByteCode.IF_ACMPNE, notNumbersLabel); dload((short)(lVar1.getJRegister() + 1)); dload((short)(lVar2.getJRegister() + 1)); genSimpleCompare(op, trueGOTO, falseGOTO); markLabel(notNumbersLabel); // fall thru to generic handling } else { // just the left child is a DCP, if the right child // is a number it's worth testing the left if ((childNumberFlag != null) && (childNumberFlag.intValue() == Node.RIGHT)) { OptLocalVariable lVar1 = (OptLocalVariable)(child.getProp(Node.VARIABLE_PROP)); aload(lVar1.getJRegister()); classFile.add(ByteCode.GETSTATIC, "java/lang/Void", "TYPE", "Ljava/lang/Class;"); int notNumbersLabel = acquireLabel(); addByteCode(ByteCode.IF_ACMPNE, notNumbersLabel); dload((short)(lVar1.getJRegister() + 1)); generateCodeFromNode(rChild, node, -1, -1); genSimpleCompare(op, trueGOTO, falseGOTO); markLabel(notNumbersLabel); // fall thru to generic handling } } } else { // just the right child is a DCP, if the left child // is a number it's worth testing the right if ((childNumberFlag != null) && (childNumberFlag.intValue() == Node.LEFT)) { OptLocalVariable lVar2 = (OptLocalVariable)(rChild.getProp(Node.VARIABLE_PROP)); aload(lVar2.getJRegister()); classFile.add(ByteCode.GETSTATIC, "java/lang/Void", "TYPE", "Ljava/lang/Class;"); int notNumbersLabel = acquireLabel(); addByteCode(ByteCode.IF_ACMPNE, notNumbersLabel); generateCodeFromNode(child, node, -1, -1); dload((short)(lVar2.getJRegister() + 1)); genSimpleCompare(op, trueGOTO, falseGOTO); markLabel(notNumbersLabel); // fall thru to generic handling } } } generateCodeFromNode(child, node, -1, -1); generateCodeFromNode(rChild, node, -1, -1); if (childNumberFlag == null) { if (op == TokenStream.GE || op == TokenStream.GT) { addByteCode(ByteCode.SWAP); } String routine = ((op == TokenStream.LT) || (op == TokenStream.GT)) ? "cmp_LT" : "cmp_LE"; addScriptRuntimeInvoke(routine, "(Ljava/lang/Object;Ljava/lang/Object;)", "I"); } else { boolean doubleThenObject = (childNumberFlag.intValue() == Node.LEFT); if (op == TokenStream.GE || op == TokenStream.GT) { if (doubleThenObject) { addByteCode(ByteCode.DUP_X2); addByteCode(ByteCode.POP); doubleThenObject = false; } else { addByteCode(ByteCode.DUP2_X1); addByteCode(ByteCode.POP2); doubleThenObject = true; } } String routine = ((op == TokenStream.LT) || (op == TokenStream.GT)) ? "cmp_LT" : "cmp_LE"; if (doubleThenObject) addOptRuntimeInvoke(routine, "(DLjava/lang/Object;)", "I"); else addOptRuntimeInvoke(routine, "(Ljava/lang/Object;D)", "I"); } addByteCode(ByteCode.IFNE, trueGOTO); addByteCode(ByteCode.GOTO, falseGOTO); } } }
|
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/8ee495dddf38c9fb6310bebde95c997490ca873c/Codegen.java/buggy/org/mozilla/javascript/optimizer/Codegen.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3757,
43,
27019,
310,
1971,
3817,
12,
907,
756,
16,
2029,
1151,
16,
2029,
982,
16,
4766,
282,
509,
638,
43,
27019,
16,
509,
629,
43,
27019,
13,
565,
288,
3639,
509,
1061,
273,
756,
18,
588,
1702,
5621,
3639,
2144,
1151,
1854,
4678,
273,
261,
4522,
21433,
2159,
18,
588,
4658,
12,
907,
18,
5127,
9931,
67,
15811,
10019,
3639,
309,
14015,
3624,
1854,
4678,
480,
446,
13,
10792,
597,
261,
3624,
1854,
4678,
18,
474,
620,
1435,
422,
2029,
18,
38,
18307,
3719,
288,
5411,
2103,
1085,
28570,
12,
3624,
16,
756,
16,
300,
21,
16,
300,
21,
1769,
5411,
2103,
1085,
28570,
12,
3624,
18,
588,
2134,
10291,
9334,
756,
16,
300,
21,
16,
300,
21,
1769,
5411,
3157,
5784,
8583,
12,
556,
16,
638,
43,
27019,
16,
629,
43,
27019,
1769,
3639,
289,
3639,
469,
288,
5411,
309,
261,
556,
422,
3155,
1228,
18,
13341,
3932,
13,
288,
7734,
279,
945,
12,
6105,
921,
2042,
1769,
7734,
2103,
1085,
28570,
12,
3624,
16,
756,
16,
300,
21,
16,
300,
21,
1769,
7734,
2103,
1085,
28570,
12,
3624,
18,
588,
2134,
10291,
9334,
756,
16,
300,
21,
16,
300,
21,
1769,
7734,
527,
3651,
5576,
10969,
2932,
1336,
951,
3113,
17311,
7751,
48,
3341,
19,
8683,
15990,
19,
11242,
19,
3651,
429,
4868,
15,
1171,
9079,
315,
21159,
19,
4936,
19,
921,
31,
21159,
19,
4936,
19,
921,
31,
2225,
16,
315,
62,
8863,
7734,
527,
3216,
1085,
12,
3216,
1085,
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,
3757,
43,
27019,
310,
1971,
3817,
12,
907,
756,
16,
2029,
1151,
16,
2029,
982,
16,
4766,
282,
509,
638,
43,
27019,
16,
509,
629,
43,
27019,
13,
565,
288,
3639,
509,
1061,
273,
756,
18,
588,
1702,
5621,
3639,
2144,
1151,
1854,
4678,
273,
261,
4522,
21433,
2159,
18,
588,
4658,
12,
907,
18,
5127,
9931,
67,
15811,
10019,
3639,
309,
14015,
3624,
1854,
4678,
480,
446,
13,
10792,
597,
261,
3624,
1854,
4678,
18,
474,
620,
1435,
422,
2029,
18,
38,
18307,
3719,
288,
5411,
2103,
1085,
28570,
12,
3624,
16,
756,
16,
300,
21,
16,
300,
21,
1769,
5411,
2103,
1085,
28570,
12,
3624,
18,
588,
2134,
10291,
9334,
756,
16,
300,
21,
2
] |
public Element handle(Element request, Map context) throws ServiceException { long startTime = sWatch.start(); try { ZimbraContext lc = getZimbraContext(context); Mailbox mbox = getRequestedMailbox(lc); OperationContext octxt = lc.getOperationContext(); Element eMsg = request.getElement(MailService.E_MSG);// int id = (int) eMsg.getAttributeLong(MailService.A_ID); ParsedItemID pid = ParsedItemID.parse(eMsg.getAttribute(MailService.A_ID)); boolean raw = eMsg.getAttributeBool(MailService.A_RAW, false); String part = eMsg.getAttribute(MailService.A_PART, null);// int subId = (int) eMsg.getAttributeLong("subId", 0); Message msg = null; Appointment appt = null; if (!pid.hasSubId()) { msg = mbox.getMessageById(pid.getItemIDInt()); if (msg.isUnread() && !RedoLogProvider.getInstance().isSlave()) if (eMsg.getAttributeBool(MailService.A_MARK_READ, false)) mbox.alterTag(octxt, pid.getItemIDInt(), MailItem.TYPE_MESSAGE, Flag.ID_FLAG_UNREAD, false); } else { appt = mbox.getAppointmentById(pid.getItemIDInt()); } Element response = lc.createElement(MailService.GET_MSG_RESPONSE); if (raw) ToXML.encodeMessageAsMIME(response, msg, part); else { boolean wantHTML = eMsg.getAttributeBool(MailService.A_WANT_HTML, false); if (msg != null) ToXML.encodeMessageAsMP(response, msg, wantHTML, part); else if (appt != null) ToXML.encodeApptAsMP(response, appt, pid.getSubIdInt(), wantHTML, part); } return response; } finally { sWatch.stop(startTime); } }
|
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/1abaa8d0e93e1fcb6ff6e77c4ee0e52a64fa5ec9/GetMsg.java/buggy/ZimbraServer/src/java/com/zimbra/cs/service/mail/GetMsg.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1046,
4110,
12,
1046,
2293,
16,
863,
2472,
13,
15069,
15133,
95,
5748,
1937,
950,
33,
87,
5234,
18,
1937,
5621,
698,
95,
62,
381,
15397,
1042,
17704,
33,
588,
62,
381,
15397,
1042,
12,
2472,
1769,
30239,
81,
2147,
33,
588,
11244,
30239,
12,
17704,
1769,
2988,
1042,
83,
20364,
33,
17704,
18,
588,
2988,
1042,
5621,
1046,
73,
3332,
33,
2293,
18,
21336,
12,
6759,
1179,
18,
41,
67,
11210,
1769,
759,
474,
350,
28657,
474,
13,
73,
3332,
18,
588,
1499,
3708,
12,
6759,
1179,
18,
37,
67,
734,
1769,
11257,
1180,
734,
6610,
33,
11257,
1180,
734,
18,
2670,
12,
73,
3332,
18,
588,
1499,
12,
6759,
1179,
18,
37,
67,
734,
10019,
6494,
1899,
33,
73,
3332,
18,
588,
1499,
7464,
12,
6759,
1179,
18,
37,
67,
10821,
16,
5743,
1769,
780,
2680,
33,
73,
3332,
18,
588,
1499,
12,
6759,
1179,
18,
37,
67,
15055,
16,
2011,
1769,
759,
474,
1717,
548,
28657,
474,
13,
73,
3332,
18,
588,
1499,
3708,
2932,
1717,
548,
3113,
20,
1769,
49,
403,
346,
351,
1055,
33,
2011,
31,
1294,
29815,
438,
337,
33,
2011,
31,
430,
12,
5,
6610,
18,
5332,
1676,
548,
10756,
95,
3576,
33,
81,
2147,
18,
24906,
5132,
12,
6610,
18,
588,
1180,
734,
1702,
10663,
430,
12,
3576,
18,
291,
984,
896,
1435,
10,
10,
5,
3715,
83,
1343,
2249,
18,
588,
1442,
7675,
291,
20302,
10756,
430,
12,
73,
3332,
18,
588,
1499,
7464,
12,
6759,
1179,
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,
1046,
4110,
12,
1046,
2293,
16,
863,
2472,
13,
15069,
15133,
95,
5748,
1937,
950,
33,
87,
5234,
18,
1937,
5621,
698,
95,
62,
381,
15397,
1042,
17704,
33,
588,
62,
381,
15397,
1042,
12,
2472,
1769,
30239,
81,
2147,
33,
588,
11244,
30239,
12,
17704,
1769,
2988,
1042,
83,
20364,
33,
17704,
18,
588,
2988,
1042,
5621,
1046,
73,
3332,
33,
2293,
18,
21336,
12,
6759,
1179,
18,
41,
67,
11210,
1769,
759,
474,
350,
28657,
474,
13,
73,
3332,
18,
588,
1499,
3708,
12,
6759,
1179,
18,
37,
67,
734,
1769,
11257,
1180,
734,
6610,
33,
11257,
1180,
734,
18,
2670,
12,
73,
3332,
18,
588,
1499,
12,
6759,
1179,
18,
37,
67,
734,
10019,
6494,
2
] |
||
addrs.add (addr);
|
public Reference (String className, RefAddr addr) { this.className = className; addrs = new Vector (); addrs.add (addr); }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/Reference.java/buggy/core/src/classpath/javax/javax/naming/Reference.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
6268,
261,
780,
2658,
16,
3941,
3178,
3091,
13,
225,
288,
565,
333,
18,
12434,
273,
2658,
31,
565,
11755,
273,
394,
5589,
261,
1769,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
6268,
261,
780,
2658,
16,
3941,
3178,
3091,
13,
225,
288,
565,
333,
18,
12434,
273,
2658,
31,
565,
11755,
273,
394,
5589,
261,
1769,
377,
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
] |
|
System.arraycopy(p.sysex, 0, bank.sysex, oStart, oSize);
|
System.arraycopy(((Patch)p).sysex, 0, ((Patch)bank).sysex, oStart, oSize);
|
public void putPatch(Patch bank,Patch p, int patchNum) { int oStart = getPatchStart(patchNum); int oSize = (patchNum > 127 ? YamahaFS1RVoiceDriver.PATCH_AND_HEADER_SIZE : YamahaFS1RPerformanceDriver.PATCH_AND_HEADER_SIZE); if (oSize != p.sysex.length) { JOptionPane.showMessageDialog(null, "Performances in P000-P127, Voices in V000-V127 ","Error", JOptionPane.ERROR_MESSAGE); return; } System.arraycopy(p.sysex, 0, bank.sysex, oStart, oSize); }
|
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/b6e99a36d447b749f8ec1622f6d2477fcd586fcb/YamahaFS1RBankDriver.java/clean/JSynthLib/synthdrivers/YamahaFS1R/YamahaFS1RBankDriver.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1378,
7332,
12,
7332,
11218,
16,
7332,
293,
16,
509,
4729,
2578,
13,
288,
202,
202,
474,
320,
1685,
273,
1689,
505,
1685,
12,
2272,
2578,
1769,
202,
202,
474,
320,
1225,
273,
261,
2272,
2578,
405,
12331,
692,
1624,
20789,
3395,
4931,
21,
54,
14572,
4668,
18,
20366,
67,
4307,
67,
7557,
67,
4574,
294,
1624,
20789,
3395,
4931,
21,
54,
25024,
4668,
18,
20366,
67,
4307,
67,
7557,
67,
4574,
1769,
202,
202,
430,
261,
83,
1225,
480,
293,
18,
9009,
20909,
18,
2469,
13,
288,
1082,
202,
46,
1895,
8485,
18,
4500,
1079,
6353,
12,
2011,
16,
315,
4990,
6872,
316,
453,
3784,
17,
52,
14260,
16,
776,
17725,
316,
776,
3784,
17,
58,
14260,
5753,
668,
3113,
804,
1895,
8485,
18,
3589,
67,
8723,
1769,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
3163,
18,
1126,
3530,
12,
84,
18,
9009,
20909,
16,
374,
16,
11218,
18,
9009,
20909,
16,
320,
1685,
16,
320,
1225,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1378,
7332,
12,
7332,
11218,
16,
7332,
293,
16,
509,
4729,
2578,
13,
288,
202,
202,
474,
320,
1685,
273,
1689,
505,
1685,
12,
2272,
2578,
1769,
202,
202,
474,
320,
1225,
273,
261,
2272,
2578,
405,
12331,
692,
1624,
20789,
3395,
4931,
21,
54,
14572,
4668,
18,
20366,
67,
4307,
67,
7557,
67,
4574,
294,
1624,
20789,
3395,
4931,
21,
54,
25024,
4668,
18,
20366,
67,
4307,
67,
7557,
67,
4574,
1769,
202,
202,
430,
261,
83,
1225,
480,
293,
18,
9009,
20909,
18,
2469,
13,
288,
1082,
202,
46,
1895,
8485,
18,
4500,
1079,
6353,
12,
2011,
16,
315,
4990,
6872,
316,
453,
3784,
17,
52,
14260,
16,
776,
17725,
316,
776,
3784,
2
] |
public double[] getChannelStats(int w);
|
public double[] getChannelStats(int w);
|
public double[] getChannelStats(int w); //Do we need that one?
|
55636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55636/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngine.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngine.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1645,
8526,
16454,
4195,
12,
474,
341,
1769,
368,
3244,
732,
1608,
716,
1245,
35,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1645,
8526,
16454,
4195,
12,
474,
341,
1769,
368,
3244,
732,
1608,
716,
1245,
35,
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
] |
ior = Util.getORB().object_to_string((org.omg.CORBA.Object) obj);
|
ior = getOrb().object_to_string((org.omg.CORBA.Object) obj);
|
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { HandleDelegate handleDelegate; try { handleDelegate = Util.getHandleDelegate(); } catch (NamingException e) { throw new IOException("Unable to lookup java:comp/HandleDelegate"); } EJBObject obj = handleDelegate.readEJBObject(in); try { ior = Util.getORB().object_to_string((org.omg.CORBA.Object) obj); } catch (Exception e) { throw new RemoteException("Unable to convert object to IOR", e); } }
|
47052 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47052/eb1e47123aa7f4a51299ff9d2a3028ff87732e07/CORBAHandle.java/buggy/openejb2/modules/core/src/java/org/openejb/corba/CORBAHandle.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
17362,
12,
921,
4348,
316,
13,
1216,
1860,
16,
10403,
288,
3639,
5004,
9586,
1640,
9586,
31,
3639,
775,
288,
5411,
1640,
9586,
273,
3564,
18,
588,
3259,
9586,
5621,
3639,
289,
1044,
261,
24102,
503,
425,
13,
288,
5411,
604,
394,
1860,
2932,
3370,
358,
3689,
2252,
30,
2919,
19,
3259,
9586,
8863,
3639,
289,
3639,
12157,
921,
1081,
273,
1640,
9586,
18,
896,
22719,
921,
12,
267,
1769,
3639,
775,
288,
5411,
277,
280,
273,
10117,
70,
7675,
1612,
67,
869,
67,
1080,
12443,
3341,
18,
362,
75,
18,
9428,
12536,
18,
921,
13,
1081,
1769,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
604,
394,
18361,
2932,
3370,
358,
1765,
733,
358,
467,
916,
3113,
425,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
17362,
12,
921,
4348,
316,
13,
1216,
1860,
16,
10403,
288,
3639,
5004,
9586,
1640,
9586,
31,
3639,
775,
288,
5411,
1640,
9586,
273,
3564,
18,
588,
3259,
9586,
5621,
3639,
289,
1044,
261,
24102,
503,
425,
13,
288,
5411,
604,
394,
1860,
2932,
3370,
358,
3689,
2252,
30,
2919,
19,
3259,
9586,
8863,
3639,
289,
3639,
12157,
921,
1081,
273,
1640,
9586,
18,
896,
22719,
921,
12,
267,
1769,
3639,
775,
288,
5411,
277,
280,
273,
10117,
70,
7675,
1612,
67,
869,
67,
1080,
12443,
3341,
18,
362,
75,
18,
9428,
12536,
18,
921,
13,
1081,
1769,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
604,
394,
18361,
2932,
3370,
358,
1765,
733,
358,
2
] |
int variable = extractVariableNumber( line ); seriesMap.get( currentSeriesAccession ).addToVariables( new GeoVariable() ); } else if ( startsWithIgnoreCase( line, "!Series_variable_description_" ) ) { int variable = extractVariableNumber( line ); } else if ( startsWithIgnoreCase( line, "!Series_variable_sample_list_" ) ) { int variable = extractVariableNumber( line ); } else if ( startsWithIgnoreCase( line, "!Series_variable_repeats_" ) ) { int variable = extractVariableNumber( line ); } else if ( startsWithIgnoreCase( line, "!Series_variable_repeats_sample_list" ) ) { int variable = extractVariableNumber( line );
|
Integer variableId = new Integer( extractVariableNumber( line ) ); GeoVariable v = new GeoVariable(); v.setName( value ); seriesMap.get( currentSeriesAccession ).addToVariables( variableId, v );
|
private void parseRegularLine( String line ) { if ( line.startsWith( "!" ) ) { String value = extractValue( line ); if ( inSample ) { if ( startsWithIgnoreCase( line, "!sample_table_begin" ) ) { inSampleTable = true; } else if ( startsWithIgnoreCase( line, "!sample_table_end" ) ) { inSampleTable = false; } else if ( startsWithIgnoreCase( line, "!Sample_title" ) ) { sampleSet( currentSampleAccession, "title", value ); } else if ( startsWithIgnoreCase( line, "!Sample_geo_accession" ) ) { currentSampleAccession = value; sampleMap.put( currentSampleAccession, new GeoSample() ); } else if ( startsWithIgnoreCase( line, "!Sample_status" ) ) { sampleSet( currentSampleAccession, "status", value ); } else if ( startsWithIgnoreCase( line, "!Sample_submission_date" ) ) { sampleSet( currentSampleAccession, "submissionDate", value ); } else if ( startsWithIgnoreCase( line, "!Sample_type" ) ) { sampleSet( currentSampleAccession, "type", value ); } else if ( startsWithIgnoreCase( line, "!Sample_channel_count" ) ) { int numExtraChannelsNeeded = Integer.parseInt( value ) - 1; for ( int i = 0; i < numExtraChannelsNeeded; i++ ) { sampleMap.get( currentSampleAccession ).addChannel(); } sampleSet( currentSampleAccession, "channelCount", new Integer( Integer.parseInt( value ) ) ); } else if ( startsWithIgnoreCase( line, "!Sample_source_name" ) ) { int channel = extractChannelNumber( line ); sampleChannelSet( currentSampleAccession, "sourceName", channel, value ); } else if ( startsWithIgnoreCase( line, "!Sample_organism" ) ) { int channel = extractChannelNumber( line ); sampleChannelSet( currentSampleAccession, "organism", channel, value ); } else if ( startsWithIgnoreCase( line, "!Sample_biomaterial_provider" ) ) { int channel = extractChannelNumber( line ); sampleChannelSet( currentSampleAccession, "bioMaterialProvider", channel, value ); } else if ( startsWithIgnoreCase( line, "!Sample_treatment_protocol" ) ) { int channel = extractChannelNumber( line ); sampleChannelAddTo( currentSampleAccession, "treatmentProtocol", channel, value ); } else if ( startsWithIgnoreCase( line, "!Sample_molecule" ) ) { int channel = extractChannelNumber( line ); sampleChannelSet( currentSampleAccession, "molecule", channel, value ); } else if ( startsWithIgnoreCase( line, "!Sample_growth_protocol" ) ) { int channel = extractChannelNumber( line ); sampleChannelAddTo( currentSampleAccession, "growthProtocol", channel, value ); } else if ( startsWithIgnoreCase( line, "!sample_extract_protocol" ) ) { int channel = extractChannelNumber( line ); sampleChannelAddTo( currentSampleAccession, "extractProtocol", channel, value ); } else if ( startsWithIgnoreCase( line, "!Sample_hyb_protocol" ) ) { sampleAddTo( currentSampleAccession, "hybProtocol", value ); } else if ( startsWithIgnoreCase( line, "!Sample_scan_protocol" ) ) { sampleAddTo( currentSampleAccession, "scanProtocol", value ); } else if ( startsWithIgnoreCase( line, "!Sample_data_processing" ) ) { sampleAddTo( currentSampleAccession, "dataProcessing", value ); } else if ( startsWithIgnoreCase( line, "!Sample_description" ) ) { sampleAddTo( currentSampleAccession, "description", value ); } else if ( startsWithIgnoreCase( line, "!Sample_label" ) ) { int channel = extractChannelNumber( line ); sampleChannelSet( currentSampleAccession, "label", channel, value ); } else if ( startsWithIgnoreCase( line, "!Sample_characteristics" ) ) { int channel = extractChannelNumber( line ); GeoSample sample = sampleMap.get( currentSampleAccession ); sample.getChannel( channel ).addCharacteristic( value ); } else if ( startsWithIgnoreCase( line, "!Sample_platform_id" ) ) { sampleSet( currentSampleAccession, "id", value ); if ( platformMap.containsKey( value ) ) { sampleMap.get( currentSampleAccession ).addPlatform( platformMap.get( value ) ); } } else if ( startsWithIgnoreCase( line, "!Sample_contact_name" ) ) { sampleContactSet( currentSampleAccession, "name", value ); } else if ( startsWithIgnoreCase( line, "!Sample_contact_email" ) ) { sampleContactSet( currentSampleAccession, "email", value ); } else if ( startsWithIgnoreCase( line, "!Sample_contact_institute" ) ) { sampleContactSet( currentSampleAccession, "institute", value ); } else if ( startsWithIgnoreCase( line, "!Sample_contact_laboratory" ) ) { sampleContactSet( currentSampleAccession, "laboratory", value ); } else if ( startsWithIgnoreCase( line, "!Sample_contact_department" ) ) { sampleContactSet( currentSampleAccession, "department", value ); } else if ( startsWithIgnoreCase( line, "!Sample_contact_address" ) ) { sampleContactSet( currentSampleAccession, "address", value ); } else if ( startsWithIgnoreCase( line, "!Sample_contact_city" ) ) { sampleContactSet( currentSampleAccession, "city", value ); } else if ( startsWithIgnoreCase( line, "!Sample_contact_phone" ) ) { sampleContactSet( currentSampleAccession, "phone", value ); } else if ( startsWithIgnoreCase( line, "!Sample_contact_web_link" ) ) { sampleContactSet( currentSampleAccession, "webLink", value ); } else if ( startsWithIgnoreCase( line, "!Sample_contact_fax" ) ) { sampleContactSet( currentSeriesAccession, "fax", value ); } else if ( startsWithIgnoreCase( line, "!Sample_series_id" ) ) { if ( seriesMap.containsKey( value ) ) { this.seriesMap.get( value ).addSample( this.sampleMap.get( currentSampleAccession ) ); } seriesSet( currentSeriesAccession, "seriesId", value ); // can be many? } else { throw new IllegalStateException( "Unknown flag: " + line ); } } else if ( inSeries ) { if ( startsWithIgnoreCase( line, "!Series_title" ) ) { seriesSet( currentSeriesAccession, "title", value ); } else if ( startsWithIgnoreCase( line, "!Series_geo_accession" ) ) { currentSeriesAccession = value; } else if ( startsWithIgnoreCase( line, "!Series_status" ) ) { seriesSet( currentSeriesAccession, "status", value ); } else if ( startsWithIgnoreCase( line, "!Series_submission_date" ) ) { seriesSet( currentSeriesAccession, "submissionDate", value ); } else if ( startsWithIgnoreCase( line, "!Series_pubmed_id" ) ) { seriesAddTo( currentSeriesAccession, "pubmedIds", value ); } else if ( startsWithIgnoreCase( line, "!Series_summary" ) ) { seriesAddTo( currentSeriesAccession, "summary", value ); } else if ( startsWithIgnoreCase( line, "!Series_type" ) ) { seriesSet( currentSeriesAccession, "type", value ); } else if ( startsWithIgnoreCase( line, "!Series_contributor" ) ) { seriesMap.get( currentSeriesAccession ).getContributers().add( value ); } else if ( startsWithIgnoreCase( line, "!Series_sample_id" ) ) { seriesMap.get( currentSeriesAccession ).getSampleIds().add( value ); if ( !this.sampleMap.containsKey( value ) ) { log.debug( "New sample: " + value ); GeoSample sample = new GeoSample(); sample.setGeoAccesssion( value ); } log.debug( "Adding sample: " + value + " to series " + currentSeriesAccession ); this.seriesMap.get( currentSeriesAccession ).addSample( this.sampleMap.get( value ) ); } else if ( startsWithIgnoreCase( line, "!Series_contact_name" ) ) { seriesContactSet( currentSeriesAccession, "name", value ); } else if ( startsWithIgnoreCase( line, "!Series_contact_email" ) ) { seriesContactSet( currentSeriesAccession, "email", value ); } else if ( startsWithIgnoreCase( line, "!Series_contact_institute" ) ) { seriesContactSet( currentSeriesAccession, "institute", value ); } else if ( startsWithIgnoreCase( line, "!Series_contact_laboratory" ) ) { seriesContactSet( currentSeriesAccession, "laboratory", value ); } else if ( startsWithIgnoreCase( line, "!Series_contact_department" ) ) { seriesContactSet( currentSeriesAccession, "department", value ); } else if ( startsWithIgnoreCase( line, "!Series_contact_address" ) ) { seriesContactSet( currentSeriesAccession, "address", value ); } else if ( startsWithIgnoreCase( line, "!Series_contact_city" ) ) { seriesContactSet( currentSeriesAccession, "city", value ); } else if ( startsWithIgnoreCase( line, "!Series_contact_phone" ) ) { seriesContactSet( currentSeriesAccession, "phone", value ); } else if ( startsWithIgnoreCase( line, "!Series_contact_fax" ) ) { seriesContactSet( currentSeriesAccession, "fax", value ); } else if ( startsWithIgnoreCase( line, "!Series_contact_web_link" ) ) { seriesContactSet( currentSeriesAccession, "webLink", value ); } else if ( startsWithIgnoreCase( line, "!series_platform_id" ) ) { seriesSet( currentSeriesAccession, "platformId", value ); } else if ( startsWithIgnoreCase( line, "!series_table_begin" ) ) { inSeriesTable = true; } else if ( startsWithIgnoreCase( line, "!series_table_end" ) ) { inSeriesTable = false; } else if ( startsWithIgnoreCase( line, "!Series_variable_" ) ) { int variable = extractVariableNumber( line ); seriesMap.get( currentSeriesAccession ).addToVariables( new GeoVariable() ); } else if ( startsWithIgnoreCase( line, "!Series_variable_description_" ) ) { int variable = extractVariableNumber( line ); // FIXME } else if ( startsWithIgnoreCase( line, "!Series_variable_sample_list_" ) ) { int variable = extractVariableNumber( line ); // FIXME } else if ( startsWithIgnoreCase( line, "!Series_variable_repeats_" ) ) { int variable = extractVariableNumber( line ); // FIXME } else if ( startsWithIgnoreCase( line, "!Series_variable_repeats_sample_list" ) ) { int variable = extractVariableNumber( line ); // FIXME } else { throw new IllegalStateException( "Unknown flag: " + line ); } } else if ( inDatabase ) { // we are going to ignore these lines. } else if ( inPlatform ) { if ( startsWithIgnoreCase( line, "!Platform_title" ) ) { platformSet( currentPlatformAccession, "title", value ); } else if ( startsWithIgnoreCase( line, "!Platform_geo_accession" ) ) { currentPlatformAccession = value; } else if ( startsWithIgnoreCase( line, "!Platform_status" ) ) { platformSet( currentPlatformAccession, "status", value ); } else if ( startsWithIgnoreCase( line, "!Platform_manufacturer" ) ) { platformSet( currentPlatformAccession, "manufacturer", value ); } else if ( startsWithIgnoreCase( line, "!Platform_manufacture_protocol" ) ) { platformSet( currentPlatformAccession, "manufactureProtocol", value ); } else if ( startsWithIgnoreCase( line, "!Platform_submission_date" ) ) { platformSet( currentPlatformAccession, "submissionDate", value ); } else if ( startsWithIgnoreCase( line, "!Platform_technology" ) ) { platformSet( currentPlatformAccession, "technology", value ); } else if ( startsWithIgnoreCase( line, "!Platform_distribution" ) ) { platformSet( currentPlatformAccession, "distribution", value ); } else if ( startsWithIgnoreCase( line, "!Platform_organism" ) ) { platformSet( currentPlatformAccession, "organism", value ); } else if ( startsWithIgnoreCase( line, "!Platform_description" ) ) { platformAddTo( currentPlatformAccession, "description", value ); } else if ( startsWithIgnoreCase( line, "!Platform_contact_name" ) ) { platformContactSet( currentPlatformAccession, "name", value ); } else if ( startsWithIgnoreCase( line, "!Platform_contact_email" ) ) { platformContactSet( currentPlatformAccession, "email", value ); } else if ( startsWithIgnoreCase( line, "!Platform_contact_institute" ) ) { platformContactSet( currentPlatformAccession, "institute", value ); } else if ( startsWithIgnoreCase( line, "!Platform_contact_laboratory" ) ) { platformContactSet( currentPlatformAccession, "laboratory", value ); } else if ( startsWithIgnoreCase( line, "!Platform_contact_department" ) ) { platformContactSet( currentPlatformAccession, "department", value ); } else if ( startsWithIgnoreCase( line, "!Platform_contact_address" ) ) { platformContactSet( currentPlatformAccession, "address", value ); } else if ( startsWithIgnoreCase( line, "!Platform_contact_city" ) ) { platformContactSet( currentPlatformAccession, "city", value ); } else if ( startsWithIgnoreCase( line, "!Platform_contact_phone" ) ) { platformContactSet( currentPlatformAccession, "phone", value ); } else if ( startsWithIgnoreCase( line, "!Platform_contact_web_link" ) ) { platformContactSet( currentPlatformAccession, "webLink", value ); } else if ( startsWithIgnoreCase( line, "!Platform_contact_fax" ) ) { platformContactSet( currentSeriesAccession, "fax", value ); } else if ( startsWithIgnoreCase( line, "!Platform_web_link" ) ) { platformSet( currentPlatformAccession, "webLink", value ); } else if ( startsWithIgnoreCase( line, "!Platform_sample_id" ) ) { platformSet( currentPlatformAccession, "id", value ); } else if ( startsWithIgnoreCase( line, "!platform_table_begin" ) ) { inPlatformTable = true; } else if ( startsWithIgnoreCase( line, "!platform_table_end" ) ) { inPlatformTable = false; } else if ( startsWithIgnoreCase( line, "!Platform_series_id" ) ) { // no-op? } else { throw new IllegalStateException( "Unknown flag: " + line ); } } else if ( inDataset ) { if ( startsWithIgnoreCase( line, "!Dataset_title" ) ) { datasetSet( currentDatasetAccession, "title", value ); } else if ( startsWithIgnoreCase( line, "!dataset_description" ) ) { datasetSet( currentDatasetAccession, "title", value ); } else if ( startsWithIgnoreCase( line, "!dataset_maximum_probes" ) ) { datasetSet( currentDatasetAccession, "numProbes", value ); } else if ( startsWithIgnoreCase( line, "!dataset_order" ) ) { datasetSet( currentDatasetAccession, "order", value ); } else if ( startsWithIgnoreCase( line, "!dataset_organism" ) ) { datasetSet( currentDatasetAccession, "organism", value ); } else if ( startsWithIgnoreCase( line, "!dataset_platform" ) ) { if ( !platformMap.containsKey( value ) ) { platformMap.put( value, new GeoPlatform() ); platformMap.get( value ).setGeoAccesssion( value ); } datasetMap.get( currentDatasetAccession ).setPlatform( platformMap.get( value ) ); } else if ( startsWithIgnoreCase( line, "!dataset_probe_type" ) ) { datasetSet( currentDatasetAccession, "probeType", value ); } else if ( startsWithIgnoreCase( line, "!dataset_reference_series" ) ) { if ( !seriesMap.containsKey( value ) ) { log.debug( "Adding series " + value ); seriesMap.put( value, new GeoSeries() ); seriesMap.get( value ).setGeoAccesssion( value ); } datasetMap.get( currentDatasetAccession ).addSeries( seriesMap.get( value ) ); } else if ( startsWithIgnoreCase( line, "!dataset_total_samples" ) ) { datasetSet( currentDatasetAccession, "numSamples", value ); } else if ( startsWithIgnoreCase( line, "!dataset_update_date" ) ) { datasetSet( currentDatasetAccession, "updateDate", value ); } else if ( startsWithIgnoreCase( line, "!dataset_value_type" ) ) { datasetSet( currentDatasetAccession, "valueType", value ); } else if ( startsWithIgnoreCase( line, "!dataset_completeness" ) ) { datasetSet( currentDatasetAccession, "completeness", value ); } else if ( startsWithIgnoreCase( line, "!dataset_experiment_type" ) ) { datasetSet( currentDatasetAccession, "experimentType", value ); } else { throw new IllegalStateException( "Unknown flag: " + line ); } } else if ( inSubset ) { if ( startsWithIgnoreCase( line, "!Dataset_title" ) ) { subsetSet( currentSubsetAccession, "title", value ); } else if ( startsWithIgnoreCase( line, "!subset_dataset_id" ) ) { subsetSet( currentSubsetAccession, "dataSet", value ); } else if ( startsWithIgnoreCase( line, "!subset_description" ) ) { subsetAddTo( currentSubsetAccession, "description", value ); } else if ( startsWithIgnoreCase( line, "!subset_sample_id" ) ) { String[] values = value.split( "," ); for ( int i = 0; i < values.length; i++ ) { String v = values[i]; if ( !sampleMap.containsKey( v ) ) { log.debug( "New sample: " + v ); sampleMap.put( v, new GeoSample() ); sampleMap.get( v ).setGeoAccesssion( v ); } log.debug( "Adding sample: " + v + " to subset " + currentSubsetAccession ); subsetMap.get( currentSubsetAccession ).setSample( sampleMap.get( v ) ); } } else if ( startsWithIgnoreCase( line, "!subset_type" ) ) { subsetSet( currentSubsetAccession, "type", value ); } else { throw new IllegalStateException( "Unknown flag: " + line ); } } else { throw new IllegalStateException( "Unknown flag: " + line ); } } else if ( line.startsWith( "#" ) ) { inDatasetTable = false; if ( inPlatform ) { platformMap.get( currentPlatformAccession ).getColumnNames().add( extractKeyValue( platformColumns, line ) ); } else if ( inSample ) { sampleMap.get( currentSampleAccession ).getColumnNames().add( extractKeyValue( sampleColumns, line ) ); } else if ( inSeries ) { seriesMap.get( currentSeriesAccession ).getColumnNames().add( extractKeyValue( seriesColumns, line ) ); } else if ( inSubset ) { // nothing. } else if ( inDataset ) { inDatasetTable = true; datasetMap.get( currentDatasetAccession ).getColumnNames() .add( extractKeyValue( datasetColumns, line ) ); } else { throw new IllegalStateException( "Wrong state to deal with '" + line + "'" ); } } else { if ( inPlatformTable ) { parsePlatformLine( line ); } else if ( inSampleTable ) { parseSampleDataLine( line ); } else if ( inSeriesTable ) { parseSeriesDataLine( line ); } else if ( inDatasetTable ) { } else { throw new IllegalStateException( "Wrong state to deal with '" + line + "'" ); } } }
|
4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/40f2fbe7d1a66b9bad50f98ae1298ce68905ce75/GeoFamilyParser.java/buggy/src/impl/edu/columbia/gemma/loader/expression/geo/GeoFamilyParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1109,
17974,
1670,
12,
514,
980,
262,
288,
3639,
309,
261,
980,
18,
17514,
1190,
12,
23717,
262,
262,
288,
5411,
514,
460,
273,
2608,
620,
12,
980,
11272,
5411,
309,
261,
316,
8504,
262,
288,
7734,
309,
261,
4969,
5556,
12,
980,
16,
17528,
6358,
67,
2121,
67,
10086,
6,
262,
262,
288,
10792,
316,
8504,
1388,
273,
638,
31,
7734,
289,
469,
309,
261,
4969,
5556,
12,
980,
16,
17528,
6358,
67,
2121,
67,
409,
6,
262,
262,
288,
10792,
316,
8504,
1388,
273,
629,
31,
7734,
289,
469,
309,
261,
4969,
5556,
12,
980,
16,
17528,
8504,
67,
2649,
6,
262,
262,
288,
10792,
3296,
694,
12,
783,
8504,
1862,
285,
16,
315,
2649,
3113,
460,
11272,
7734,
289,
469,
309,
261,
4969,
5556,
12,
980,
16,
17528,
8504,
67,
12376,
67,
3860,
285,
6,
262,
262,
288,
10792,
783,
8504,
1862,
285,
273,
460,
31,
10792,
3296,
863,
18,
458,
12,
783,
8504,
1862,
285,
16,
394,
9385,
8504,
1435,
11272,
7734,
289,
469,
309,
261,
4969,
5556,
12,
980,
16,
17528,
8504,
67,
2327,
6,
262,
262,
288,
10792,
3296,
694,
12,
783,
8504,
1862,
285,
16,
315,
2327,
3113,
460,
11272,
7734,
289,
469,
309,
261,
4969,
5556,
12,
980,
16,
17528,
8504,
67,
12684,
67,
712,
6,
262,
262,
288,
10792,
3296,
694,
12,
783,
8504,
1862,
285,
16,
315,
12684,
1626,
3113,
460,
11272,
7734,
289,
469,
309,
261,
4969,
5556,
12,
980,
16,
17528,
8504,
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,
1109,
17974,
1670,
12,
514,
980,
262,
288,
3639,
309,
261,
980,
18,
17514,
1190,
12,
23717,
262,
262,
288,
5411,
514,
460,
273,
2608,
620,
12,
980,
11272,
5411,
309,
261,
316,
8504,
262,
288,
7734,
309,
261,
4969,
5556,
12,
980,
16,
17528,
6358,
67,
2121,
67,
10086,
6,
262,
262,
288,
10792,
316,
8504,
1388,
273,
638,
31,
7734,
289,
469,
309,
261,
4969,
5556,
12,
980,
16,
17528,
6358,
67,
2121,
67,
409,
6,
262,
262,
288,
10792,
316,
8504,
1388,
273,
629,
31,
7734,
289,
469,
309,
261,
4969,
5556,
12,
980,
16,
17528,
8504,
67,
2649,
6,
262,
262,
288,
10792,
3296,
694,
12,
783,
8504,
1862,
285,
16,
315,
2
] |
elm.setAttribute( scriptEvent, "redirect('"+target+"','"+urlValue.getBaseUrl( )+"')" );
|
elm.setAttribute( scriptEvent, "redirect('"+target+"','"+urlValue.getBaseUrl( )+"')" );
|
private void addEventHandling( Element elm, StructureSource src, Trigger[] triggers ) { if ( elm != null ) { for ( int x = 0; x < triggers.length; x++ ) { Trigger tg = triggers[x]; String scriptEvent = getJsScriptEvent( tg.getCondition( ) .getValue( ) ); if ( scriptEvent != null ) { switch ( tg.getAction( ).getType( ).getValue( ) ) { case ActionType.SHOW_TOOLTIP : String tooltipText = ( (TooltipValue) tg.getAction( ) .getValue( ) ).getText( ); // make sure the tooltip text is not empty if ( ( tooltipText != null ) && ( tooltipText.trim( ).length( ) > 0 ) ) { Element title = svg_g2d.dom.createElement( "title" ); //$NON-NLS-1$ title.appendChild( svg_g2d.dom.createTextNode( tooltipText ) ); elm.appendChild( title ); //on mouse over is actually two events to show the tooltip if (scriptEvent.equals("onmouseover")){//$NON-NLS-1$ elm.setAttribute( "onmouseout", "TM.remove()" ); //$NON-NLS-1$ //$NON-NLS-2$ elm.setAttribute( "onmousemove", "TM.show(evt)" ); //$NON-NLS-1$ //$NON-NLS-2$ } else elm.setAttribute( scriptEvent, "TM.toggleToolTip(evt)" ); //$NON-NLS-1$ } break; case ActionType.URL_REDIRECT : URLValue urlValue = ( (URLValue) tg.getAction( ) .getValue( ) ); // See if this is an internal anchor link if ( urlValue.getBaseUrl( ).startsWith( "#" ) ) { //$NON-NLS-1$ Element aLink = svg_g2d.createElement( "g" ); //$NON-NLS-1$ aLink.setAttribute( scriptEvent, "top.document.location.hash='" + urlValue.getBaseUrl( ) + "';" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ aLink.setAttribute( "style", "cursor:pointer" ); //$NON-NLS-1$ //$NON-NLS-2$ aLink.appendChild( elm ); elm = aLink; } else { String target = urlValue.getTarget( ); if (target == null) target="null"; //$NON-NLS-1$ elm.setAttribute( scriptEvent, "redirect('"+target+"','"+urlValue.getBaseUrl( )+"')" ); //$NON-NLS-1$ } break; case ActionType.TOGGLE_VISIBILITY : case ActionType.TOGGLE_DATA_POINT_VISIBILITY: case ActionType.HIGHLIGHT: addJSCodeOnElement( src, tg, elm, scriptEvent, tg.getAction( ).getType( ).getValue( )); break; case ActionType.INVOKE_SCRIPT : // lets see if we need to add accessibility if ( tg.getCondition( ) .equals( TriggerCondition.ACCESSIBILITY_LITERAL ) ) { AccessibilityValue accessValue = ( (AccessibilityValue) tg.getAction( ) .getValue( ) ); if ( accessValue.getText( ) != null ) { Element title = svg_g2d.createElement( "title" ); //$NON-NLS-1$ title.appendChild( svg_g2d.dom.createTextNode( accessValue.getText( ) ) ); elm.appendChild( title ); } if ( accessValue.getAccessibility( ) != null ) { Element description = svg_g2d.createElement( "desc" ); //$NON-NLS-1$ description.appendChild( svg_g2d.dom.createTextNode( accessValue.getAccessibility( ) ) ); elm.appendChild( description ); } } else { // TODO add base, value, series name in callback String script = ( (ScriptValue) tg.getAction( ) .getValue( ) ).getScript( ); String callbackFunction = "callback" + Math.abs( script.hashCode( ) ) + "(evt," + src.getSource( ).hashCode( ) + ");"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ elm.setAttribute( scriptEvent, callbackFunction ); setCursor( elm ); if ( !( scripts.contains( script ) ) ) { svg_g2d.addScript( "function callback" + Math.abs( script.hashCode( ) ) + "(evt,source)" + "{" + script + "}" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ scripts.add( script ); } } break; } } } hotspotLayer.appendChild( elm ); } }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/dcb8bd6f51219152bbb08876a8035289f6b28d98/SVGInteractiveRenderer.java/clean/chart/org.eclipse.birt.chart.device.svg/src/org/eclipse/birt/chart/device/svg/SVGInteractiveRenderer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
21781,
14701,
12,
3010,
12531,
16,
13348,
1830,
1705,
16,
1082,
202,
6518,
8526,
11752,
262,
202,
95,
202,
202,
430,
261,
12531,
480,
446,
262,
202,
202,
95,
1082,
202,
1884,
261,
509,
619,
273,
374,
31,
619,
411,
11752,
18,
2469,
31,
619,
9904,
262,
1082,
202,
95,
9506,
202,
6518,
18289,
273,
11752,
63,
92,
15533,
9506,
202,
780,
2728,
1133,
273,
336,
8382,
3651,
1133,
12,
18289,
18,
588,
3418,
12,
262,
25083,
202,
18,
24805,
12,
262,
11272,
9506,
202,
430,
261,
2728,
1133,
480,
446,
262,
9506,
202,
95,
6862,
202,
9610,
261,
18289,
18,
588,
1803,
12,
262,
18,
588,
559,
12,
262,
18,
24805,
12,
262,
262,
6862,
202,
95,
25083,
202,
3593,
4382,
559,
18,
16677,
67,
26263,
56,
2579,
294,
6862,
1082,
202,
780,
11915,
1528,
273,
261,
261,
22444,
620,
13,
18289,
18,
588,
1803,
12,
262,
6862,
6862,
202,
18,
24805,
12,
262,
262,
18,
588,
1528,
12,
11272,
6862,
1082,
202,
759,
1221,
3071,
326,
11915,
977,
353,
486,
1008,
6862,
1082,
202,
430,
261,
261,
11915,
1528,
480,
446,
262,
6862,
6862,
202,
10,
10,
261,
11915,
1528,
18,
5290,
12,
262,
18,
2469,
12,
262,
405,
374,
262,
262,
6862,
1082,
202,
95,
6862,
9506,
202,
1046,
2077,
273,
9804,
67,
75,
22,
72,
18,
9859,
18,
2640,
1046,
12,
315,
2649,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
9506,
202,
2649,
18,
6923,
1763,
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,
21781,
14701,
12,
3010,
12531,
16,
13348,
1830,
1705,
16,
1082,
202,
6518,
8526,
11752,
262,
202,
95,
202,
202,
430,
261,
12531,
480,
446,
262,
202,
202,
95,
1082,
202,
1884,
261,
509,
619,
273,
374,
31,
619,
411,
11752,
18,
2469,
31,
619,
9904,
262,
1082,
202,
95,
9506,
202,
6518,
18289,
273,
11752,
63,
92,
15533,
9506,
202,
780,
2728,
1133,
273,
336,
8382,
3651,
1133,
12,
18289,
18,
588,
3418,
12,
262,
25083,
202,
18,
24805,
12,
262,
11272,
9506,
202,
430,
261,
2728,
1133,
480,
446,
262,
9506,
202,
95,
6862,
202,
9610,
261,
18289,
18,
588,
1803,
12,
262,
18,
588,
559,
12,
262,
18,
24805,
12,
262,
262,
2
] |
new AssignmentVisitor(getCurrentFrame().getEvalState()).assign(blockVar, value, yieldProc);
|
new AssignmentVisitor(getFrameSelf()).assign(blockVar, value, yieldProc);
|
private IRubyObject[] getBlockArgs(IRubyObject value, IRubyObject self, boolean yieldProc, boolean aValue, Block currentBlock) { Node blockVar = currentBlock.getVar(); if (blockVar != null) { if (blockVar instanceof ZeroArgNode) { // Better not have arguments for a no-arg block. if (yieldProc && arrayLength(value) != 0) { throw runtime.newArgumentError("wrong # of arguments(" + ((RubyArray)value).getLength() + "for 0)"); } } else if (blockVar instanceof MultipleAsgnNode) { if (!aValue) { value = sValueToMRHS(value, ((MultipleAsgnNode)blockVar).getHeadNode()); } value = mAssign(self, (MultipleAsgnNode)blockVar, (RubyArray)value, yieldProc); } else { if (aValue) { int length = arrayLength(value); if (length == 0) { value = runtime.getNil(); } else if (length == 1) { value = ((RubyArray)value).first(IRubyObject.NULL_ARRAY); } else { // XXXEnebo - Should be warning not error. //throw runtime.newArgumentError("wrong # of arguments(" + // length + "for 1)"); } } else if (value == null) { // XXXEnebo - Should be warning not error. //throw runtime.newArgumentError("wrong # of arguments(0 for 1)"); } new AssignmentVisitor(getCurrentFrame().getEvalState()).assign(blockVar, value, yieldProc); } } IRubyObject[] args = ArgsUtil.arrayify(value); return args; }
|
48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/6e15491217631472c05c6928672f9c7064a978b3/ThreadContext.java/clean/src/org/jruby/runtime/ThreadContext.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
15908,
10340,
921,
8526,
11902,
2615,
12,
7937,
10340,
921,
460,
16,
15908,
10340,
921,
365,
16,
1250,
2824,
15417,
16,
1250,
24406,
16,
3914,
30610,
13,
288,
3639,
2029,
1203,
1537,
273,
30610,
18,
588,
1537,
5621,
3639,
309,
261,
2629,
1537,
480,
446,
13,
288,
5411,
309,
261,
2629,
1537,
1276,
12744,
4117,
907,
13,
288,
7734,
368,
605,
11214,
486,
1240,
1775,
364,
279,
1158,
17,
3175,
1203,
18,
7734,
309,
261,
23604,
15417,
597,
526,
1782,
12,
1132,
13,
480,
374,
13,
288,
5397,
604,
3099,
18,
2704,
1379,
668,
2932,
21530,
468,
434,
1775,
2932,
397,
11794,
14015,
54,
10340,
1076,
13,
1132,
2934,
588,
1782,
1435,
397,
315,
1884,
374,
2225,
1769,
7734,
289,
5411,
289,
469,
309,
261,
2629,
1537,
1276,
13531,
37,
1055,
82,
907,
13,
288,
7734,
309,
16051,
69,
620,
13,
288,
10792,
460,
273,
16311,
774,
23464,
13173,
12,
1132,
16,
14015,
8438,
37,
1055,
82,
907,
13,
2629,
1537,
2934,
588,
1414,
907,
10663,
7734,
289,
7734,
460,
273,
312,
4910,
12,
2890,
16,
261,
8438,
37,
1055,
82,
907,
13,
2629,
1537,
16,
261,
54,
10340,
1076,
13,
1132,
16,
2824,
15417,
1769,
5411,
289,
469,
288,
7734,
309,
261,
69,
620,
13,
288,
10792,
509,
769,
273,
526,
1782,
12,
1132,
1769,
4766,
565,
309,
261,
2469,
422,
374,
13,
288,
13491,
460,
273,
3099,
18,
588,
12616,
5621,
10792,
289,
469,
309,
261,
2469,
422,
404,
13,
288,
13491,
460,
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,
15908,
10340,
921,
8526,
11902,
2615,
12,
7937,
10340,
921,
460,
16,
15908,
10340,
921,
365,
16,
1250,
2824,
15417,
16,
1250,
24406,
16,
3914,
30610,
13,
288,
3639,
2029,
1203,
1537,
273,
30610,
18,
588,
1537,
5621,
3639,
309,
261,
2629,
1537,
480,
446,
13,
288,
5411,
309,
261,
2629,
1537,
1276,
12744,
4117,
907,
13,
288,
7734,
368,
605,
11214,
486,
1240,
1775,
364,
279,
1158,
17,
3175,
1203,
18,
7734,
309,
261,
23604,
15417,
597,
526,
1782,
12,
1132,
13,
480,
374,
13,
288,
5397,
604,
3099,
18,
2704,
1379,
668,
2932,
21530,
468,
434,
1775,
2932,
397,
11794,
14015,
54,
10340,
1076,
13,
1132,
2934,
588,
1782,
1435,
397,
315,
1884,
374,
2225,
2
] |
Enumeration allUploadedFilenames = cms.getRequestContext().getRequest().getFileNames(); while (allUploadedFilenames.hasMoreElements()) { m_UploadResourceName = (String) allUploadedFilenames.nextElement(); }
|
Enumeration allUploadedFilenames = cms.getRequestContext().getRequest().getFileNames(); while (allUploadedFilenames.hasMoreElements()) { m_UploadResourceName = (String)allUploadedFilenames.nextElement(); }
|
private void readInput(CmsObject cms, Hashtable theParameters) throws CmsException { I_CmsSession session = cms.getRequestContext().getSession(true); // reset all member values first m_OldResourceName = null; m_OldResourceType = null; m_UploadResourceName = null; m_UploadResourceContent = null; m_UploadResourceType = null; m_NextStep = null; ////////////////////////////////////////////////////////////////////// // clear session values on the first load if (theParameters.get(I_CmsWpConstants.C_PARA_INITIAL) != null) { this.clearSessionValues(session); } ////////////////////////////////////////////////////////////////////// // save the name of the old resource in the session m_OldResourceName = (String) theParameters.get(I_CmsWpConstants.C_PARA_RESOURCE); if (m_OldResourceName != null) { session.putValue(I_CmsWpConstants.C_PARA_RESOURCE, m_OldResourceName); // preserve the type of the old resource depending on the file extension as well Hashtable fileExtensions = cms.readFileExtensions(); String uploadFilenameExtension = m_OldResourceName.substring(m_OldResourceName.lastIndexOf('.') + 1).toLowerCase(); if (fileExtensions != null) { m_OldResourceType = (String) fileExtensions.get(uploadFilenameExtension); } if (m_OldResourceType == null) { // the resource type should be at least the empty string m_OldResourceType = ""; } session.putValue("OLD_TYPE", m_OldResourceType); } else { m_OldResourceName = (String) session.getValue(I_CmsWpConstants.C_PARA_RESOURCE); m_OldResourceType = (String) session.getValue("OLD_TYPE"); } ////////////////////////////////////////////////////////////////////// // get the next step parameter that tells this class what to do next... m_NextStep = (String) theParameters.get(CmsReplace.C_PARA_NEXT_STEP); ////////////////////////////////////////////////////////////////////// // get both the name and content of the new resource and save it in the session Enumeration allUploadedFilenames = cms.getRequestContext().getRequest().getFileNames(); while (allUploadedFilenames.hasMoreElements()) { m_UploadResourceName = (String) allUploadedFilenames.nextElement(); } if (m_UploadResourceName != null) { session.putValue("NEW_RESOURCE", m_UploadResourceName); m_UploadResourceContent = cms.getRequestContext().getRequest().getFile(m_UploadResourceName); session.putValue(I_CmsWpConstants.C_PARA_FILECONTENT, m_UploadResourceContent); } else { m_UploadResourceName = (String) session.getValue("NEW_RESOURCE"); m_UploadResourceContent = (byte[]) session.getValue(I_CmsWpConstants.C_PARA_FILECONTENT); } m_XmlTemplateDocument.setData("NEW_RESOURCE", m_UploadResourceName); ////////////////////////////////////////////////////////////////////// // get the type of the new resource m_UploadResourceType = (String) theParameters.get(I_CmsWpConstants.C_PARA_NEWTYPE); if (m_UploadResourceType != null) { session.putValue(I_CmsWpConstants.C_PARA_NEWTYPE, m_UploadResourceType); } else { m_UploadResourceType = (String) session.getValue(I_CmsWpConstants.C_PARA_NEWTYPE); } ////////////////////////////////////////////////////////////////////// if (DEBUG > 0) { System.out.println("\nnext step: " + m_NextStep); System.out.println("old resource: " + m_OldResourceName); System.out.println("old type: " + m_OldResourceType); System.out.println("new resource: " + m_UploadResourceName); System.out.println("new type: " + m_UploadResourceType); } }
|
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/6cce177c14c6e3885b587df5eb3efe618285760f/CmsReplace.java/clean/src/com/opencms/workplace/CmsReplace.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
855,
1210,
12,
4747,
921,
6166,
16,
18559,
326,
2402,
13,
1216,
11228,
288,
202,
202,
45,
67,
4747,
2157,
1339,
273,
6166,
18,
588,
21426,
7675,
588,
2157,
12,
3767,
1769,
202,
202,
759,
2715,
777,
3140,
924,
1122,
202,
202,
81,
67,
7617,
19327,
273,
446,
31,
202,
202,
81,
67,
7617,
15631,
273,
446,
31,
202,
202,
81,
67,
4777,
19327,
273,
446,
31,
202,
202,
81,
67,
4777,
1420,
1350,
273,
446,
31,
202,
202,
81,
67,
4777,
15631,
273,
446,
31,
202,
202,
81,
67,
2134,
4160,
273,
446,
31,
202,
202,
14300,
18235,
202,
202,
759,
2424,
1339,
924,
603,
326,
1122,
1262,
202,
202,
430,
261,
5787,
2402,
18,
588,
12,
45,
67,
4747,
59,
84,
2918,
18,
39,
67,
2778,
37,
67,
28497,
13,
480,
446,
13,
288,
1082,
202,
2211,
18,
8507,
2157,
1972,
12,
3184,
1769,
202,
202,
97,
202,
202,
14300,
18235,
4202,
202,
202,
759,
1923,
326,
508,
434,
326,
1592,
1058,
316,
326,
1339,
202,
202,
81,
67,
7617,
19327,
273,
261,
780,
13,
326,
2402,
18,
588,
12,
45,
67,
4747,
59,
84,
2918,
18,
39,
67,
2778,
37,
67,
11395,
1769,
202,
202,
430,
261,
81,
67,
7617,
19327,
480,
446,
13,
288,
1082,
202,
3184,
18,
458,
620,
12,
45,
67,
4747,
59,
84,
2918,
18,
39,
67,
2778,
37,
67,
11395,
16,
312,
67,
7617,
19327,
1769,
1082,
202,
759,
9420,
326,
618,
434,
326,
1592,
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,
855,
1210,
12,
4747,
921,
6166,
16,
18559,
326,
2402,
13,
1216,
11228,
288,
202,
202,
45,
67,
4747,
2157,
1339,
273,
6166,
18,
588,
21426,
7675,
588,
2157,
12,
3767,
1769,
202,
202,
759,
2715,
777,
3140,
924,
1122,
202,
202,
81,
67,
7617,
19327,
273,
446,
31,
202,
202,
81,
67,
7617,
15631,
273,
446,
31,
202,
202,
81,
67,
4777,
19327,
273,
446,
31,
202,
202,
81,
67,
4777,
1420,
1350,
273,
446,
31,
202,
202,
81,
67,
4777,
15631,
273,
446,
31,
202,
202,
81,
67,
2134,
4160,
273,
446,
31,
202,
202,
14300,
18235,
202,
202,
759,
2424,
1339,
924,
603,
326,
1122,
1262,
202,
202,
430,
261,
5787,
2402,
2
] |
public StartupConfiguration(String instanceId)
|
public StartupConfiguration()
|
public StartupConfiguration(String instanceId) { setDefaultAuthenticatorConfigurations(); setDefaultBootstrapSchemas(); setDefaultInterceptorConfigurations(); setInstanceId( instanceId ); }
|
17035 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17035/54f45a0085728b13a7016a8c6086a236827b09f1/StartupConfiguration.java/buggy/core/src/main/java/org/apache/directory/server/core/configuration/StartupConfiguration.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3603,
416,
1750,
1435,
565,
288,
3639,
9277,
18977,
9698,
5621,
3639,
9277,
10445,
16749,
5621,
3639,
9277,
10281,
9698,
5621,
3639,
444,
15327,
12,
17608,
11272,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3603,
416,
1750,
1435,
565,
288,
3639,
9277,
18977,
9698,
5621,
3639,
9277,
10445,
16749,
5621,
3639,
9277,
10281,
9698,
5621,
3639,
444,
15327,
12,
17608,
11272,
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
] |
boolean error= (fCurrent != null) && (fCurrent.getName().length() == 0);
|
fTableViewer.getTable().setEnabled(valid); fAddButton.setEnabled(valid); fRemoveButton.setEnabled(selectionCount > 0 && selectionCount <= itemCount); fEnableAllButton.setEnabled(valid && itemCount > 0); fDisableAllButton.setEnabled(valid && itemCount > 0); setValid(valid);
|
private void updateButtons() { int selectionCount= ((IStructuredSelection) fTableViewer.getSelection()).size(); int itemCount= fTableViewer.getTable().getItemCount(); boolean error= (fCurrent != null) && (fCurrent.getName().length() == 0); fAddButton.setEnabled(!error); fRemoveButton.setEnabled(selectionCount > 0 && selectionCount <= itemCount); fEnableAllButton.setEnabled(itemCount > 0); fDisableAllButton.setEnabled(itemCount > 0); StatusInfo status= new StatusInfo(); if (error) status.setError(TemplateMessages.getString("TemplatePreferencePage.error.noname")); //$NON-NLS-1$ setValid(!status.matches(IStatus.ERROR)); StatusUtil.applyToStatusLine(this, status); }
|
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/2a1a288e8bb50e16af1bbdc89370024908f94f0d/TemplatePreferencePage.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/TemplatePreferencePage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1089,
14388,
1435,
288,
202,
202,
474,
4421,
1380,
33,
14015,
45,
30733,
6233,
13,
284,
1388,
18415,
18,
588,
6233,
1435,
2934,
1467,
5621,
202,
202,
474,
761,
1380,
33,
284,
1388,
18415,
18,
588,
1388,
7675,
588,
30687,
5621,
9506,
202,
6494,
555,
33,
261,
74,
3935,
480,
446,
13,
597,
261,
74,
3935,
18,
17994,
7675,
2469,
1435,
422,
374,
1769,
9506,
202,
74,
986,
3616,
18,
542,
1526,
12,
5,
1636,
1769,
202,
202,
74,
3288,
3616,
18,
542,
1526,
12,
10705,
1380,
405,
374,
597,
4421,
1380,
1648,
761,
1380,
1769,
202,
202,
74,
8317,
1595,
3616,
18,
542,
1526,
12,
1726,
1380,
405,
374,
1769,
202,
202,
74,
11879,
1595,
3616,
18,
542,
1526,
12,
1726,
1380,
405,
374,
1769,
202,
202,
1482,
966,
1267,
33,
394,
2685,
966,
5621,
202,
202,
430,
261,
1636,
13,
1082,
202,
2327,
18,
542,
668,
12,
2283,
5058,
18,
588,
780,
2932,
2283,
9624,
1964,
18,
1636,
18,
5836,
339,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
542,
1556,
12,
5,
2327,
18,
8436,
12,
45,
1482,
18,
3589,
10019,
202,
202,
1482,
1304,
18,
9010,
774,
1482,
1670,
12,
2211,
16,
1267,
1769,
9506,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1089,
14388,
1435,
288,
202,
202,
474,
4421,
1380,
33,
14015,
45,
30733,
6233,
13,
284,
1388,
18415,
18,
588,
6233,
1435,
2934,
1467,
5621,
202,
202,
474,
761,
1380,
33,
284,
1388,
18415,
18,
588,
1388,
7675,
588,
30687,
5621,
9506,
202,
6494,
555,
33,
261,
74,
3935,
480,
446,
13,
597,
261,
74,
3935,
18,
17994,
7675,
2469,
1435,
422,
374,
1769,
9506,
202,
74,
986,
3616,
18,
542,
1526,
12,
5,
1636,
1769,
202,
202,
74,
3288,
3616,
18,
542,
1526,
12,
10705,
1380,
405,
374,
597,
4421,
1380,
1648,
761,
1380,
1769,
202,
202,
74,
8317,
1595,
3616,
18,
542,
1526,
12,
1726,
1380,
405,
374,
1769,
202,
202,
74,
11879,
2
] |
@NotNull String getName();
|
String getName();
|
@NotNull String getName();
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/d73eee4fb928aaf7e4cae0d01759cf8b46ab3a83/LibraryLinkImpl.java/buggy/J2EE/source/com/intellij/j2ee/module/LibraryLinkImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
632,
5962,
514,
1723,
5621,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
632,
5962,
514,
1723,
5621,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public int[] getGlyphCodes(int beginGlyphIndex, int numEntries, int[] codeReturn);
|
int[] getGlyphCodes(int beginGlyphIndex, int numEntries, int[] codeReturn);
|
public int[] getGlyphCodes(int beginGlyphIndex, int numEntries, int[] codeReturn);
|
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/4c1a37c6e3e260eb88efd61d61285ad704f7c64a/GVTGlyphVector.java/buggy/sources/org/apache/batik/gvt/font/GVTGlyphVector.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
8526,
7162,
6451,
6295,
12,
474,
2376,
15141,
1016,
16,
509,
818,
5400,
16,
1171,
9079,
509,
8526,
981,
990,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
8526,
7162,
6451,
6295,
12,
474,
2376,
15141,
1016,
16,
509,
818,
5400,
16,
1171,
9079,
509,
8526,
981,
990,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if(now - softLastPacketSendTime > minSoftDelay / 2) { softLastPacketSendTime = now - (minSoftDelay / 2);
|
if(nowNS - softLastPacketSendTimeNSec > softLimitPeriodNSec) { softLastPacketSendTimeNSec = nowNS - (softLimitPeriodNSec);
|
private boolean delay(long startCycleTime) { // Get the current inter-packet delay long delay = throttle.getDelay(); while(true) { long now = System.currentTimeMillis(); long endTime = -1; boolean thenSend = true; // Synchronize on the static lock, and update synchronized(lastPacketSendTimeSync) { // Get the current time now = System.currentTimeMillis(); // Update time if necessary to avoid spurts if(hardLastPacketSendTime < (now - minPacketDelay)) hardLastPacketSendTime = now - minPacketDelay; // Wait until the next send window long newHardLastPacketSendTime = hardLastPacketSendTime + minPacketDelay; long earliestSendTime = startCycleTime + delay; if(earliestSendTime > newHardLastPacketSendTime) { // Don't clog up other senders! thenSend = false; endTime = earliestSendTime; } else { hardLastPacketSendTime = newHardLastPacketSendTime; endTime = hardLastPacketSendTime; // What about the soft limit? if(now - softLastPacketSendTime > minSoftDelay / 2) { softLastPacketSendTime = now - (minSoftDelay / 2); } softLastPacketSendTime += minSoftDelay; if(softLastPacketSendTime > hardLastPacketSendTime) { endTime = hardLastPacketSendTime = softLastPacketSendTime; } } } while(now < endTime) { synchronized(_senderThread) { if(_sendComplete) return true; try { _senderThread.wait(endTime - now); } catch (InterruptedException e) { // Ignore } } if(_sendComplete) return true; now = System.currentTimeMillis(); } if(thenSend) return false; } }
|
50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/2d2b5012400f5bab60d65d3d26d67efa9cf7d1d6/BlockTransmitter.java/clean/src/freenet/io/xfer/BlockTransmitter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
1152,
1250,
4624,
12,
5748,
787,
13279,
950,
13,
288,
6862,
9506,
202,
759,
968,
326,
783,
1554,
17,
11482,
4624,
9506,
202,
5748,
4624,
273,
18304,
18,
588,
6763,
5621,
6862,
9506,
202,
17523,
12,
3767,
13,
288,
6862,
25083,
202,
5748,
2037,
273,
2332,
18,
2972,
28512,
5621,
6862,
25083,
202,
5748,
13859,
273,
300,
21,
31,
6862,
25083,
202,
6494,
1508,
3826,
273,
638,
31,
6862,
25083,
202,
759,
26535,
554,
603,
326,
760,
2176,
16,
471,
1089,
6862,
202,
22043,
12,
2722,
6667,
3826,
950,
4047,
13,
288,
6862,
6862,
9506,
202,
759,
968,
326,
783,
813,
25083,
202,
3338,
273,
2332,
18,
2972,
28512,
5621,
6862,
6862,
9506,
202,
759,
2315,
813,
309,
4573,
358,
4543,
1694,
295,
3428,
25083,
202,
430,
12,
20379,
3024,
6667,
3826,
950,
411,
261,
3338,
300,
1131,
6667,
6763,
3719,
6862,
1082,
202,
20379,
3024,
6667,
3826,
950,
273,
2037,
300,
1131,
6667,
6763,
31,
6862,
6862,
9506,
202,
759,
5838,
3180,
326,
1024,
1366,
2742,
25083,
202,
5748,
394,
29601,
3024,
6667,
3826,
950,
273,
6862,
1082,
202,
20379,
3024,
6667,
3826,
950,
397,
1131,
6667,
6763,
31,
6862,
6862,
9506,
202,
5748,
20674,
3826,
950,
273,
787,
13279,
950,
397,
4624,
31,
6862,
6862,
9506,
202,
430,
12,
2091,
17452,
3826,
950,
405,
394,
29601,
3024,
6667,
3826,
950,
13,
288,
6862,
1082,
202,
759,
7615,
1404,
1219,
75,
731,
1308,
1366,
414,
5,
6862,
1082,
202,
15991,
3826,
273,
629,
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,
1875,
202,
1152,
1250,
4624,
12,
5748,
787,
13279,
950,
13,
288,
6862,
9506,
202,
759,
968,
326,
783,
1554,
17,
11482,
4624,
9506,
202,
5748,
4624,
273,
18304,
18,
588,
6763,
5621,
6862,
9506,
202,
17523,
12,
3767,
13,
288,
6862,
25083,
202,
5748,
2037,
273,
2332,
18,
2972,
28512,
5621,
6862,
25083,
202,
5748,
13859,
273,
300,
21,
31,
6862,
25083,
202,
6494,
1508,
3826,
273,
638,
31,
6862,
25083,
202,
759,
26535,
554,
603,
326,
760,
2176,
16,
471,
1089,
6862,
202,
22043,
12,
2722,
6667,
3826,
950,
4047,
13,
288,
6862,
6862,
9506,
202,
759,
968,
326,
783,
813,
25083,
202,
3338,
273,
2332,
18,
2972,
28512,
5621,
6862,
6862,
9506,
202,
759,
2315,
813,
2
] |
DocumentDomainObject document ;
|
DocumentDomainObject document;
|
public static DocumentDomainObject fromDocumentTypeId( int documentTypeId ) { DocumentDomainObject document ; switch ( documentTypeId ) { case DOCTYPE_TEXT: document = new TextDocumentDomainObject(); break; case DOCTYPE_URL: document = new UrlDocumentDomainObject(); break; case DOCTYPE_BROWSER: document = new BrowserDocumentDomainObject(); break; case DOCTYPE_FILE: document = new FileDocumentDomainObject(); break; case DOCTYPE_HTML: document = new HtmlDocumentDomainObject(); break; case DOCTYPE_CHAT: document = new ChatDocumentDomainObject(); break; case DOCTYPE_CONFERENCE: document = new ConferenceDocumentDomainObject(); break; case DOCTYPE_BILLBOARD: document = new BillboardDocumentDomainObject(); break; default: String errorMessage = "Unknown document-type-id: " + documentTypeId; log.error(errorMessage); throw new IllegalArgumentException( errorMessage ); } return document; }
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/c160124ae51914d98b73978e33bba2545d396483/DocumentDomainObject.java/clean/server/src/imcode/server/document/DocumentDomainObject.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
4319,
3748,
921,
628,
2519,
11731,
12,
509,
1668,
11731,
262,
288,
3639,
4319,
3748,
921,
1668,
31,
3639,
1620,
261,
1668,
11731,
262,
288,
5411,
648,
5467,
17331,
67,
5151,
30,
7734,
1668,
273,
394,
3867,
2519,
3748,
921,
5621,
7734,
898,
31,
5411,
648,
5467,
17331,
67,
1785,
30,
7734,
1668,
273,
394,
6816,
2519,
3748,
921,
5621,
7734,
898,
31,
5411,
648,
5467,
17331,
67,
38,
24846,
30,
7734,
1668,
273,
394,
15408,
2519,
3748,
921,
5621,
7734,
898,
31,
5411,
648,
5467,
17331,
67,
3776,
30,
7734,
1668,
273,
394,
1387,
2519,
3748,
921,
5621,
7734,
898,
31,
5411,
648,
5467,
17331,
67,
4870,
30,
7734,
1668,
273,
394,
5430,
2519,
3748,
921,
5621,
7734,
898,
31,
5411,
648,
5467,
17331,
67,
1792,
789,
30,
7734,
1668,
273,
394,
16903,
2519,
3748,
921,
5621,
7734,
898,
31,
5411,
648,
5467,
17331,
67,
2248,
10830,
30,
7734,
1668,
273,
394,
735,
1134,
2519,
3748,
921,
5621,
7734,
898,
31,
5411,
648,
5467,
17331,
67,
38,
15125,
5315,
8085,
30,
7734,
1668,
273,
394,
605,
737,
3752,
2519,
3748,
921,
5621,
7734,
898,
31,
5411,
805,
30,
7734,
514,
9324,
273,
315,
4874,
1668,
17,
723,
17,
350,
30,
315,
397,
1668,
11731,
31,
7734,
613,
18,
1636,
12,
1636,
1079,
1769,
7734,
604,
394,
2754,
12,
9324,
11272,
3639,
289,
3639,
327,
1668,
31,
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,
760,
4319,
3748,
921,
628,
2519,
11731,
12,
509,
1668,
11731,
262,
288,
3639,
4319,
3748,
921,
1668,
31,
3639,
1620,
261,
1668,
11731,
262,
288,
5411,
648,
5467,
17331,
67,
5151,
30,
7734,
1668,
273,
394,
3867,
2519,
3748,
921,
5621,
7734,
898,
31,
5411,
648,
5467,
17331,
67,
1785,
30,
7734,
1668,
273,
394,
6816,
2519,
3748,
921,
5621,
7734,
898,
31,
5411,
648,
5467,
17331,
67,
38,
24846,
30,
7734,
1668,
273,
394,
15408,
2519,
3748,
921,
5621,
7734,
898,
31,
5411,
648,
5467,
17331,
67,
3776,
30,
7734,
1668,
273,
394,
1387,
2519,
3748,
921,
5621,
7734,
898,
31,
5411,
648,
5467,
17331,
67,
4870,
30,
7734,
1668,
273,
394,
5430,
2519,
3748,
2
] |
ParamSender(0x410025|(element<<8)), new ParamSender(0x410025 | (element<<8)),
|
ParamSender(0x410025, element), new ParamSender(0x41ff25,element),
|
public ElementPanel ( int i ) { super(); element = i; setLayout( new BoxLayout(this, BoxLayout.Y_AXIS) ); Container c = new ControlPanel("Oscillator"); add(c); panel = Box.createHorizontalBox(); c.add(panel); addCombo("",0x41ff00,element,new String[] {"Off","On"}); bank = addCombo("Bank", 0x41ff01,element,new String[] {"Preset","User"}); wave = addCombo("Wave",0x41ff03,element, true, new String[] {""}); wave.cb.setModel(new NumberComboBoxModel(16384,0)); bank.cb.addActionListener(new BankActionListener()); addHGlue(); panel = Box.createHorizontalBox(); c.add(panel); addLabeledSlider("Level",0x41ff20,element, false, 0, 0x7f, 0); addLabeledSlider("Pan",0x41ff08, element, false, 0, 0x7f, -64); panel = Box.createHorizontalBox(); c.add(panel); addLabeledSlider("Random Pan Depth",0x41ff09,element, false, 0, 0x7f,0); addLabeledSlider("Alternate Pan Depth",0x41ff0A,element,false,0,0x7f,-64); panel = Box.createHorizontalBox(); c.add(panel); addLabeledSlider("Scaling Pan Depth",0x41ff0B,element,false,0,0x7f,-64); addLabeledSlider("Velocity Cross Fade",0x41ff10,element,false,0,0x7f,0); panel = Box.createHorizontalBox(); c.add(panel); addLabeledSlider("Note Limit Low", 0x41ff0C,element,false,0,0x7f,0); addLabeledSlider("Note Limit High",0x41ff0D,element,false,0,0x7f,0); panel = Box.createHorizontalBox(); c.add(panel); addLabeledSlider("Vel. Limit Low", 0x41ff0E,element,false,0,0x7f,0); addLabeledSlider("Vel. Limit High",0x41ff0F,element,false,0,0x7f,0); panel = Box.createHorizontalBox(); c.add(panel); addLabeledSlider("Level Velocity Sensitivity",0x41ff21,element,false, 0,0x7f,-64); addLabeledSlider("Level Sensitivity Curve",0x41ff22,element,false, 0,4,0); panel = Box.createHorizontalBox(); c.add(panel); addWidget(panel, new EnvelopeWidget("Amp Envelope", p, new EnvelopeNode[] { new EnvelopeNode(0,127, new MotifParamModel(p,0x41ff11, element), 0,0,null, 0, false, new ParamSender(0x410011 | (element<<8)),null, "Delay", null), new EnvelopeNode(10,10,null, 0,127, new MotifParamModel(p,0x41ff28, element), 0,false, null,new ParamSender(0x410028|(element<<8)), null,"Init"), new EnvelopeNode(0,127,new MotifParamModel(p,0x41ff24,element), 127,127,null,0,false,new ParamSender(0x410024|(element<<8)), null,"Attack",null), new EnvelopeNode(0,127,new MotifParamModel(p,0x41ff25,element), 0,127,new MotifParamModel(p,0x41ff2a,element), 0,false,new ParamSender(0x410025|(element<<8)), new ParamSender(0x410025 | (element<<8)), "Decay 1 Time", "Decay 1 Level"), new EnvelopeNode(0,127,new MotifParamModel(p,0x41ff26,element), 0,127,new MotifParamModel(p,0x41ff2b,element), 0,false,new ParamSender(0x410025|(element<<8)), new ParamSender(0x410025 | (element<<8)), "Decay 2", "Sustain"), new EnvelopeNode(100,100,null, EnvelopeNode.SAME,EnvelopeNode.SAME, null,0,false,null, null,null,null), new EnvelopeNode(0,127,new MotifParamModel(p,0x41ff24,element), 0,0, null,0,false,new ParamSender(0x410024|(element<<8)), null,"Release",null), }),600+10*element); }
|
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/a50d7b6cdc482c72fa49aac3e85ffad50cc79856/YamahaMotifNormalVoiceEditor.java/buggy/JSynthLib/synthdrivers/YamahaMotif/YamahaMotifNormalVoiceEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3010,
5537,
261,
509,
277,
262,
288,
1377,
2240,
5621,
1377,
930,
273,
277,
31,
1377,
18479,
12,
394,
8549,
3744,
12,
2211,
16,
8549,
3744,
18,
61,
67,
25614,
13,
11272,
1377,
4039,
276,
273,
394,
8888,
5537,
2932,
51,
1017,
737,
639,
8863,
1377,
527,
12,
71,
1769,
1377,
6594,
273,
8549,
18,
2640,
14457,
3514,
5621,
1377,
276,
18,
1289,
12,
13916,
1769,
1377,
527,
16156,
2932,
3113,
20,
92,
9803,
1403,
713,
16,
2956,
16,
2704,
514,
8526,
12528,
7210,
15937,
1398,
6,
22938,
1377,
11218,
273,
527,
16156,
2932,
16040,
3113,
374,
92,
9803,
1403,
1611,
16,
2956,
16,
2704,
514,
8526,
12528,
18385,
15937,
1299,
6,
22938,
1377,
10794,
273,
527,
16156,
2932,
22368,
3113,
20,
92,
9803,
1403,
4630,
16,
2956,
16,
638,
16,
394,
514,
8526,
288,
3660,
22938,
1377,
10794,
18,
7358,
18,
542,
1488,
12,
2704,
3588,
22199,
1488,
12,
2313,
17295,
16,
20,
10019,
1377,
11218,
18,
7358,
18,
1289,
1803,
2223,
12,
2704,
25610,
1803,
2223,
10663,
1377,
527,
44,
21308,
344,
5621,
1377,
6594,
273,
8549,
18,
2640,
14457,
3514,
5621,
1377,
276,
18,
1289,
12,
13916,
1769,
1377,
527,
2224,
329,
21824,
2932,
2355,
3113,
20,
92,
9803,
1403,
3462,
16,
2956,
16,
629,
16,
374,
16,
374,
92,
27,
74,
16,
374,
1769,
1377,
527,
2224,
329,
21824,
2932,
4069,
3113,
20,
92,
9803,
1403,
6840,
16,
930,
16,
629,
16,
374,
16,
374,
92,
27,
74,
16,
300,
1105,
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,
3010,
5537,
261,
509,
277,
262,
288,
1377,
2240,
5621,
1377,
930,
273,
277,
31,
1377,
18479,
12,
394,
8549,
3744,
12,
2211,
16,
8549,
3744,
18,
61,
67,
25614,
13,
11272,
1377,
4039,
276,
273,
394,
8888,
5537,
2932,
51,
1017,
737,
639,
8863,
1377,
527,
12,
71,
1769,
1377,
6594,
273,
8549,
18,
2640,
14457,
3514,
5621,
1377,
276,
18,
1289,
12,
13916,
1769,
1377,
527,
16156,
2932,
3113,
20,
92,
9803,
1403,
713,
16,
2956,
16,
2704,
514,
8526,
12528,
7210,
15937,
1398,
6,
22938,
1377,
11218,
273,
527,
16156,
2932,
16040,
3113,
374,
92,
9803,
1403,
1611,
16,
2956,
16,
2704,
514,
8526,
12528,
18385,
15937,
1299,
6,
22938,
1377,
10794,
273,
527,
2
] |
for (TaskInfo task : tasks) { addToInputTypeToModulesMap(map, task);
|
for (Iterator<AnalysisService> it = analysisServices.iterator(); it .hasNext();) { AnalysisService svc = it.next(); addToInputTypeToModulesMap(map, svc.getTaskInfo());
|
public static Map<String, Collection<TaskInfo>> getKindToModulesMap( TaskInfo[] tasks) { Map<String, Collection<TaskInfo>> map = new HashMap<String, Collection<TaskInfo>>(); for (TaskInfo task : tasks) { addToInputTypeToModulesMap(map, task); } return map; }
|
57344 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57344/0161c60988acd0837b7392536c3eb6d76fbbefc9/SemanticUtil.java/buggy/src/org/genepattern/util/SemanticUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1635,
32,
780,
16,
2200,
32,
2174,
966,
9778,
21842,
774,
7782,
863,
12,
5411,
3837,
966,
8526,
4592,
13,
288,
3639,
1635,
32,
780,
16,
2200,
32,
2174,
966,
9778,
852,
273,
394,
4317,
32,
780,
16,
2200,
32,
2174,
966,
9778,
5621,
3639,
364,
261,
2174,
966,
1562,
294,
4592,
13,
288,
5411,
9604,
1210,
559,
774,
7782,
863,
12,
1458,
16,
1562,
1769,
3639,
289,
3639,
327,
852,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
1635,
32,
780,
16,
2200,
32,
2174,
966,
9778,
21842,
774,
7782,
863,
12,
5411,
3837,
966,
8526,
4592,
13,
288,
3639,
1635,
32,
780,
16,
2200,
32,
2174,
966,
9778,
852,
273,
394,
4317,
32,
780,
16,
2200,
32,
2174,
966,
9778,
5621,
3639,
364,
261,
2174,
966,
1562,
294,
4592,
13,
288,
5411,
9604,
1210,
559,
774,
7782,
863,
12,
1458,
16,
1562,
1769,
3639,
289,
3639,
327,
852,
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
] |
public java.sql.ResultSet getIndexInfo(String catalog, String schema, String table, boolean unique, boolean approximate) throws SQLException
|
public java.sql.ResultSet getIndexInfo(String catalog, String schema, String tableName, boolean unique, boolean approximate) throws SQLException
|
public java.sql.ResultSet getIndexInfo(String catalog, String schema, String table, boolean unique, boolean approximate) throws SQLException { // for now, this returns an empty result set. Field f[] = new Field[13]; ResultSet r; // ResultSet for the SQL query that we need to do Vector v = new Vector(); // The new ResultSet tuple stuff f[0] = new Field(connection, "TABLE_CAT", iVarcharOid, 32); f[1] = new Field(connection, "TABLE_SCHEM", iVarcharOid, 32); f[2] = new Field(connection, "TABLE_NAME", iVarcharOid, 32); f[3] = new Field(connection, "NON_UNIQUE", iBoolOid, 1); f[4] = new Field(connection, "INDEX_QUALIFIER", iVarcharOid, 32); f[5] = new Field(connection, "INDEX_NAME", iVarcharOid, 32); f[6] = new Field(connection, "TYPE", iInt2Oid, 2); f[7] = new Field(connection, "ORDINAL_POSITION", iInt2Oid, 2); f[8] = new Field(connection, "COLUMN_NAME", iVarcharOid, 32); f[9] = new Field(connection, "ASC_OR_DESC", iVarcharOid, 32); f[10] = new Field(connection, "CARDINALITY", iInt4Oid, 4); f[11] = new Field(connection, "PAGES", iInt4Oid, 4); f[12] = new Field(connection, "FILTER_CONDITION", iVarcharOid, 32); return new ResultSet(connection, f, v, "OK", 1); }
|
46312 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46312/5abaa779c46eef880c993aad5266e64ad754904e/DatabaseMetaData.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2252,
18,
4669,
18,
13198,
8088,
966,
12,
780,
6222,
16,
514,
1963,
16,
514,
4775,
16,
1250,
3089,
16,
1250,
21204,
13,
1216,
6483,
225,
288,
565,
368,
364,
2037,
16,
333,
1135,
392,
1008,
563,
444,
18,
565,
2286,
284,
8526,
273,
394,
2286,
63,
3437,
15533,
565,
10842,
436,
31,
202,
759,
10842,
364,
326,
3063,
843,
716,
732,
1608,
358,
741,
565,
5589,
331,
273,
394,
5589,
5621,
202,
202,
759,
1021,
394,
10842,
3193,
10769,
565,
284,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
14130,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
565,
284,
63,
21,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
55,
10390,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
565,
284,
63,
22,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
565,
284,
63,
23,
65,
273,
394,
2286,
12,
4071,
16,
315,
3993,
67,
16879,
3113,
277,
7464,
19105,
16,
404,
1769,
565,
284,
63,
24,
65,
273,
394,
2286,
12,
4071,
16,
315,
9199,
67,
8729,
10591,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
565,
284,
63,
25,
65,
273,
394,
2286,
12,
4071,
16,
315,
9199,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
565,
284,
63,
26,
65,
273,
394,
2286,
12,
4071,
16,
315,
2399,
3113,
277,
1702,
22,
19105,
16,
576,
1769,
565,
284,
63,
27,
65,
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,
2252,
18,
4669,
18,
13198,
8088,
966,
12,
780,
6222,
16,
514,
1963,
16,
514,
4775,
16,
1250,
3089,
16,
1250,
21204,
13,
1216,
6483,
225,
288,
565,
368,
364,
2037,
16,
333,
1135,
392,
1008,
563,
444,
18,
565,
2286,
284,
8526,
273,
394,
2286,
63,
3437,
15533,
565,
10842,
436,
31,
202,
759,
10842,
364,
326,
3063,
843,
716,
732,
1608,
358,
741,
565,
5589,
331,
273,
394,
5589,
5621,
202,
202,
759,
1021,
394,
10842,
3193,
10769,
565,
284,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
14130,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
565,
284,
63,
21,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
2
] |
if(h == null) {
|
if (h == null) {
|
protected String getHadoopClientHome() { String h = env_.getProperty("HADOOP_HOME"); // standard Hadoop if(h == null) { //fail("Missing required environment variable: HADOOP_HOME"); h = "UNDEF"; } return h; }
|
55137 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55137/e10b40e8014547113799b2653164e8c990d41209/StreamJob.java/clean/src/contrib/streaming/src/java/org/apache/hadoop/streaming/StreamJob.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
514,
7628,
12460,
1227,
8684,
1435,
225,
288,
565,
514,
366,
273,
1550,
27799,
588,
1396,
2932,
44,
1880,
51,
3665,
67,
14209,
8863,
368,
4529,
23471,
565,
309,
261,
76,
422,
446,
13,
288,
1377,
368,
6870,
2932,
4841,
1931,
3330,
2190,
30,
670,
1880,
51,
3665,
67,
14209,
8863,
1377,
366,
273,
315,
2124,
12904,
14432,
565,
289,
565,
327,
366,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
514,
7628,
12460,
1227,
8684,
1435,
225,
288,
565,
514,
366,
273,
1550,
27799,
588,
1396,
2932,
44,
1880,
51,
3665,
67,
14209,
8863,
368,
4529,
23471,
565,
309,
261,
76,
422,
446,
13,
288,
1377,
368,
6870,
2932,
4841,
1931,
3330,
2190,
30,
670,
1880,
51,
3665,
67,
14209,
8863,
1377,
366,
273,
315,
2124,
12904,
14432,
565,
289,
565,
327,
366,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void run(){ _fileClosed(doc); }
|
public void run() { _setThreadDependentDebugMenuItems(false); _removeThreadLocationHighlight(); }
|
public void run(){ _fileClosed(doc); }
|
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/0b0e9049d382a4fa995a6c0df7ce197dd950d3eb/MainFrame.java/clean/drjava/src/edu/rice/cs/drjava/ui/MainFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
1086,
1435,
95,
2868,
389,
768,
7395,
12,
2434,
1769,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
1086,
1435,
95,
2868,
389,
768,
7395,
12,
2434,
1769,
5411,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
} else { boolean ok = false;
|
else { boolean ok = false;
|
public void expandFold(int line, boolean fully) { int initialFoldLevel = buffer.getFoldLevel(line); int lineCount = buffer.getLineCount(); int start = 0; int end = lineCount - 1; //{{{ Find fold start and fold end... if(line != lineCount - 1 && buffer._isLineVisible(line,index) && !buffer._isLineVisible(line + 1,index) && buffer.getFoldLevel(line + 1) > initialFoldLevel) { // this line is the start of a fold start = line + 1; for(int i = line + 1; i < lineCount; i++) { if(buffer._isLineVisible(i,index) && buffer.getFoldLevel(i) <= initialFoldLevel) { end = i - 1; break; } } } else { boolean ok = false; // scan backwards looking for the start for(int i = line - 1; i >= 0; i--) { if(buffer._isLineVisible(i,index) && buffer.getFoldLevel(i) < initialFoldLevel) { start = i + 1; ok = true; break; } } if(!ok) { // no folds in buffer return; } for(int i = line + 1; i < lineCount; i++) { if(buffer._isLineVisible(i,index) && buffer.getFoldLevel(i) < initialFoldLevel) { end = i - 1; break; } } } //}}} //{{{ Expand the fold... int delta = 0; // we need a different value of initialFoldLevel here! initialFoldLevel = buffer.getFoldLevel(start); for(int i = start; i <= end; i++) { if(buffer._isLineVisible(i,index)) { // do nothing } else if(!fully && buffer.getFoldLevel(i) > initialFoldLevel) { // don't expand lines with higher fold // levels } else { delta++; buffer._setLineVisible(i,index,true); } } virtualLineCount += delta; //}}} if(!fully && !buffer._isLineVisible(line,index)) { // this is a hack, and really needs to be done better. expandFold(line,false); return; } foldStructureChanged(); int virtualLine = physicalToVirtual(start); int firstLine = textArea.getFirstLine(); int visibleLines = textArea.getVisibleLines(); if(virtualLine + delta >= firstLine + visibleLines && delta < visibleLines - 1) { textArea.setFirstLine(virtualLine + delta - visibleLines + 1); } } //}}}
|
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/f060ff246d3d6f951799da71bcc89970ef4b5fcc/FoldVisibilityManager.java/clean/org/gjt/sp/jedit/textarea/FoldVisibilityManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4542,
15592,
12,
474,
980,
16,
1250,
7418,
13,
202,
95,
202,
202,
474,
2172,
15592,
2355,
273,
1613,
18,
588,
15592,
2355,
12,
1369,
1769,
202,
202,
474,
980,
1380,
273,
1613,
18,
588,
1670,
1380,
5621,
202,
202,
474,
787,
273,
374,
31,
202,
202,
474,
679,
273,
980,
1380,
300,
404,
31,
202,
202,
759,
12187,
95,
4163,
11590,
787,
471,
11590,
679,
2777,
202,
202,
430,
12,
1369,
480,
980,
1380,
300,
404,
1082,
202,
10,
10,
1613,
6315,
291,
1670,
6207,
12,
1369,
16,
1615,
13,
1082,
202,
10,
10,
401,
4106,
6315,
291,
1670,
6207,
12,
1369,
397,
404,
16,
1615,
13,
1082,
202,
10,
10,
1613,
18,
588,
15592,
2355,
12,
1369,
397,
404,
13,
405,
2172,
15592,
2355,
13,
202,
202,
95,
1082,
202,
759,
333,
980,
353,
326,
787,
434,
279,
11590,
1082,
202,
1937,
273,
980,
397,
404,
31,
1082,
202,
1884,
12,
474,
277,
273,
980,
397,
404,
31,
277,
411,
980,
1380,
31,
277,
27245,
1082,
202,
95,
9506,
202,
430,
12,
4106,
6315,
291,
1670,
6207,
12,
77,
16,
1615,
13,
597,
1613,
18,
588,
15592,
2355,
12,
77,
13,
1648,
2172,
15592,
2355,
13,
9506,
202,
95,
6862,
202,
409,
273,
277,
300,
404,
31,
6862,
202,
8820,
31,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
6494,
1529,
273,
629,
31,
1082,
202,
759,
4135,
12727,
7849,
364,
326,
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,
4542,
15592,
12,
474,
980,
16,
1250,
7418,
13,
202,
95,
202,
202,
474,
2172,
15592,
2355,
273,
1613,
18,
588,
15592,
2355,
12,
1369,
1769,
202,
202,
474,
980,
1380,
273,
1613,
18,
588,
1670,
1380,
5621,
202,
202,
474,
787,
273,
374,
31,
202,
202,
474,
679,
273,
980,
1380,
300,
404,
31,
202,
202,
759,
12187,
95,
4163,
11590,
787,
471,
11590,
679,
2777,
202,
202,
430,
12,
1369,
480,
980,
1380,
300,
404,
1082,
202,
10,
10,
1613,
6315,
291,
1670,
6207,
12,
1369,
16,
1615,
13,
1082,
202,
10,
10,
401,
4106,
6315,
291,
1670,
6207,
12,
1369,
397,
404,
16,
1615,
13,
1082,
202,
10,
10,
1613,
18,
588,
2
] |
public void mT16() throws RecognitionException { int T16_StartIndex = input.index(); try { int type = T16; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; if ( backtracking>0 && alreadyParsedRule(input, 2) ) { return ; } // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:7:7: ( 'package' ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:7:7: 'package' { match("package"); if (failed) return ; } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} } finally { if ( backtracking>0 ) { memoize(input, 2, T16_StartIndex); } } }
|
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/db9ec7bad93dfc15e8ce115941d6e9f0749d5a10/RuleParserLexer.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
21115,
2313,
1435,
1216,
9539,
288,
3639,
509,
399,
2313,
67,
16792,
273,
810,
18,
1615,
5621,
3639,
775,
288,
5411,
509,
618,
273,
399,
2313,
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,
309,
261,
6888,
34,
20,
597,
1818,
11257,
2175,
12,
2630,
16,
576,
13,
262,
288,
327,
274,
289,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
27,
30,
27,
30,
261,
296,
5610,
11,
262,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
27,
30,
27,
30,
296,
5610,
11,
5411,
288,
5411,
845,
2932,
5610,
8863,
309,
261,
7307,
13,
327,
274,
5411,
289,
5411,
309,
261,
1147,
631,
2011,
262,
288,
18356,
12,
723,
16,
1369,
16,
3001,
2555,
16,
4327,
16,
1937,
16,
588,
2156,
1016,
1435,
17,
21,
1769,
97,
3639,
289,
3639,
3095,
288,
5411,
309,
261,
6888,
34,
20,
262,
288,
27820,
12,
2630,
16,
576,
16,
399,
2313,
67,
16792,
1769,
289,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
21115,
2313,
1435,
1216,
9539,
288,
3639,
509,
399,
2313,
67,
16792,
273,
810,
18,
1615,
5621,
3639,
775,
288,
5411,
509,
618,
273,
399,
2313,
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,
309,
261,
6888,
34,
20,
597,
1818,
11257,
2175,
12,
2630,
16,
576,
13,
262,
288,
327,
274,
289,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
27,
30,
2
] |
||
private void convertElement(Element element) throws SAXException { // start prefix mapping for (int i = 0; i < element.getNamespaceDeclarationCount(); i++) { String prefix = element.getNamespacePrefix(i); contentHandler.startPrefixMapping(prefix, element.getNamespaceURI(prefix)); } ParentNode parentNode = element.getParent(); if (parentNode instanceof Element) { Element parent = (Element) parentNode; // now handle element's prefix if not declared on ancestor String prefix = element.getNamespacePrefix(); if (!element.getNamespaceURI(prefix) .equals(parent.getNamespaceURI(prefix))) { contentHandler.startPrefixMapping(prefix, element.getNamespaceURI(prefix)); } // Handle attributes' prefixes if not declared on ancestor for (int i = 0; i < element.getAttributeCount(); i++) { Attribute att = element.getAttribute(i); String attPrefix = att.getNamespacePrefix(); if (!element.getNamespaceURI(attPrefix) .equals(parent.getNamespaceURI(attPrefix)) && !element.getNamespacePrefix() .equals(attPrefix)) { contentHandler.startPrefixMapping(attPrefix, element.getNamespaceURI(attPrefix)); } } } else { // declare all prefixes String prefix = element.getNamespacePrefix(); if (!prefix.equals("")) { contentHandler.startPrefixMapping(prefix, element.getNamespaceURI()); } // Handle attributes' prefixes if not declared on ancestor for (int i = 0; i < element.getAttributeCount(); i++) { Attribute att = element.getAttribute(i); String attPrefix = att.getNamespacePrefix(); if (!attPrefix.equals("") && !attPrefix.equals(element.getNamespacePrefix())){ contentHandler.startPrefixMapping(attPrefix, att.getNamespaceURI()); } } } // add attributes AttributesImpl saxAttributes = new AttributesImpl(); for (int i = 0; i < element.getAttributeCount(); i++) { Attribute attribute = element.getAttribute(i); saxAttributes.addAttribute(attribute.getNamespaceURI(), attribute.getLocalName(), attribute.getQualifiedName(), getSAXType(attribute), attribute.getValue()); } contentHandler.startElement( element.getNamespaceURI(), element.getLocalName(), element.getQualifiedName(), saxAttributes); for (int i = 0; i < element.getChildCount(); i++) { process(element.getChild(i)); } contentHandler.endElement(element.getNamespaceURI(), element.getLocalName(), element.getQualifiedName()); // end prefix mappings for (int i = 0; i < element.getNamespaceDeclarationCount(); i++) { String prefix = element.getNamespacePrefix(i); contentHandler.endPrefixMapping(prefix); } if (parentNode instanceof Element) { Element parent = (Element) parentNode; // Now handle element's prefix if not declared on ancestor String prefix = element.getNamespacePrefix(); if (!element.getNamespaceURI(prefix) .equals(parent.getNamespaceURI(prefix))) { contentHandler.endPrefixMapping(prefix); } // Handle attributes' prefixes if not declared on ancestor for (int i = 0; i < element.getAttributeCount(); i++) { Attribute att = element.getAttribute(i); String attPrefix = att.getNamespacePrefix(); if (!element.getNamespaceURI(attPrefix) .equals(parent.getNamespaceURI(attPrefix)) && !element.getNamespacePrefix().equals( attPrefix)) { contentHandler.endPrefixMapping(attPrefix); } } } else { // undeclare all prefixes String prefix = element.getNamespacePrefix(); if (!prefix.equals("")) { contentHandler.endPrefixMapping(prefix); } // Handle attributes' prefixes if not declared on ancestor for (int i = 0; i < element.getAttributeCount(); i++) { Attribute att = element.getAttribute(i); String attPrefix = att.getNamespacePrefix(); if (!attPrefix.equals("") && !attPrefix .equals(element.getNamespacePrefix())) { contentHandler.endPrefixMapping(attPrefix); } } } }
|
626 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/626/d2a3cc4732c3762f11295528b060a43de1cb69fd/SAXConverter.java/buggy/src/nu/xom/converters/SAXConverter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1765,
1046,
12,
1046,
930,
13,
1216,
14366,
288,
3639,
368,
787,
1633,
2874,
3639,
364,
261,
474,
277,
273,
374,
31,
2868,
277,
411,
930,
18,
588,
3402,
6094,
1380,
5621,
2868,
277,
27245,
288,
5411,
514,
1633,
273,
930,
18,
588,
3402,
2244,
12,
77,
1769,
5411,
913,
1503,
18,
1937,
2244,
3233,
12,
3239,
16,
9079,
930,
18,
588,
3402,
3098,
12,
3239,
10019,
1850,
289,
3639,
9520,
907,
7234,
273,
930,
18,
588,
3054,
5621,
3639,
309,
261,
2938,
907,
1276,
3010,
13,
288,
5411,
3010,
982,
273,
261,
1046,
13,
7234,
31,
540,
368,
2037,
1640,
930,
1807,
1633,
309,
486,
7886,
603,
9731,
5411,
514,
1633,
273,
930,
18,
588,
3402,
2244,
5621,
5411,
309,
16051,
2956,
18,
588,
3402,
3098,
12,
3239,
13,
2868,
263,
14963,
12,
2938,
18,
588,
3402,
3098,
12,
3239,
20349,
288,
7734,
913,
1503,
18,
1937,
2244,
3233,
12,
3239,
16,
10402,
930,
18,
588,
3402,
3098,
12,
3239,
10019,
2868,
289,
5397,
368,
5004,
1677,
11,
9419,
309,
486,
7886,
603,
9731,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
930,
18,
588,
1499,
1380,
5621,
277,
27245,
288,
7734,
3601,
2403,
273,
930,
18,
588,
1499,
12,
77,
1769,
7734,
514,
2403,
2244,
273,
2403,
18,
588,
3402,
2244,
5621,
7734,
309,
16051,
2956,
18,
588,
3402,
3098,
12,
4558,
2244,
13,
5375,
263,
14963,
12,
2938,
18,
588,
3402,
3098,
12,
4558,
2244,
3719,
5375,
597,
401,
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,
1765,
1046,
12,
1046,
930,
13,
1216,
14366,
288,
3639,
368,
787,
1633,
2874,
3639,
364,
261,
474,
277,
273,
374,
31,
2868,
277,
411,
930,
18,
588,
3402,
6094,
1380,
5621,
2868,
277,
27245,
288,
5411,
514,
1633,
273,
930,
18,
588,
3402,
2244,
12,
77,
1769,
5411,
913,
1503,
18,
1937,
2244,
3233,
12,
3239,
16,
9079,
930,
18,
588,
3402,
3098,
12,
3239,
10019,
1850,
289,
3639,
9520,
907,
7234,
273,
930,
18,
588,
3054,
5621,
3639,
309,
261,
2938,
907,
1276,
3010,
13,
288,
5411,
3010,
982,
273,
261,
1046,
13,
7234,
31,
540,
368,
2037,
1640,
930,
1807,
1633,
309,
486,
7886,
603,
9731,
5411,
514,
1633,
273,
930,
18,
588,
2
] |
||
return getContextSupport().getFunctionContext();
|
FunctionContext answer = getContextSupport().getFunctionContext(); if ( answer == null ) { answer = createFunctionContext(); getContextSupport().setFunctionContext( answer ); } return answer;
|
public FunctionContext getFunctionContext() { return getContextSupport().getFunctionContext(); }
|
12974 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12974/8d10643e6f23d7589b9cfe41f0f72764bb3cf036/BaseXPath.java/clean/src/java/main/org/jaxen/BaseXPath.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4284,
1042,
18697,
1042,
1435,
565,
288,
3639,
4284,
1042,
5803,
273,
6474,
6289,
7675,
588,
2083,
1042,
5621,
309,
261,
5803,
422,
446,
262,
288,
5803,
273,
752,
2083,
1042,
5621,
6474,
6289,
7675,
542,
2083,
1042,
12,
5803,
11272,
289,
327,
5803,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4284,
1042,
18697,
1042,
1435,
565,
288,
3639,
4284,
1042,
5803,
273,
6474,
6289,
7675,
588,
2083,
1042,
5621,
309,
261,
5803,
422,
446,
262,
288,
5803,
273,
752,
2083,
1042,
5621,
6474,
6289,
7675,
542,
2083,
1042,
12,
5803,
11272,
289,
327,
5803,
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
] |
System.out.println("Unsupported codec (" + code + "); using QTJava reader");
|
debug("Unsupported codec (" + code + "); using QTJava reader");
|
public byte[] openBytes(String id, int no) throws FormatException, IOException { if (!id.equals(currentId)) initFile(id); if (no < 0 || no >= getImageCount(id)) { throw new FormatException("Invalid image number: " + no); } String code = codec; if (no >= getImageCount(id) - altPlanes) code = altCodec; boolean doLegacy = useLegacy; if (!doLegacy && !code.equals("raw ") && !code.equals("rle ") && !code.equals("jpeg") && !code.equals("mjpb") && !code.equals("rpza")) { if (debug) { System.out.println("Unsupported codec (" + code + "); using QTJava reader"); } doLegacy = true; } if (doLegacy) { if (legacy == null) legacy = createLegacyReader(); return legacy.openBytes(id, no); } int offset = ((Integer) offsets.get(no)).intValue(); int nextOffset = pixelBytes; scale = ((Integer) offsets.get(0)).intValue(); offset -= scale; if (no < offsets.size() - 1) { nextOffset = ((Integer) offsets.get(no + 1)).intValue(); nextOffset -= scale; } if ((nextOffset - offset) < 0) { int temp = offset; offset = nextOffset; nextOffset = temp; } byte[] pixs = new byte[nextOffset - offset]; in.seek(pixelOffset + offset); in.read(pixs); canUsePrevious = (prevPixels != null) && (prevPlane == no - 1); if (code.equals("jpeg") || code.equals("mjpb")) { return ImageTools.getBytes(openImage(id, no), false, no); } byte[] bytes = uncompress(pixs, code); // on rare occassions, we need to trim the data if (canUsePrevious && (prevPixels.length < bytes.length)) { byte[] temp = bytes; bytes = new byte[prevPixels.length]; System.arraycopy(temp, 0, bytes, 0, bytes.length); } if (flip) { // we need to flip the X and Y axes before displaying byte[] tmp = bytes; bytes = new byte[tmp.length]; int t = width; width = height; height = t; int b = bytes.length / (width * height); if (b % 3 != 0) { for (int i=0; i<width; i++) { for (int j=0; j<height; j++) { for (int k=0; k<b; k++) { bytes[j*width*b + (width - i) + b] = tmp[i*height*b + j + b]; } } } } else { for (int i=0; i<3; i++) { for (int j=0; j<width; j++) { for (int k=0; k<height; k++) { bytes[k*width +i*width*height + (width - j - 1)] = tmp[j*height + k + i*width*height]; } } } } } prevPixels = bytes; prevPlane = no; // determine whether we need to strip out any padding bytes int pad = width % 4; pad = (4 - pad) % 4; if (width * height * (bitsPerPixel / 8) == prevPixels.length) { pad = 0; } if (pad > 0 && !code.equals("rpza")) { bytes = new byte[prevPixels.length - height*pad]; for (int row=0; row<height; row++) { System.arraycopy(prevPixels, row*(width+pad), bytes, row*width, width); } } else if (code.equals("rpza")) { bytes = new byte[prevPixels.length]; int cut = 0; for (int i=width-1; i>=0; i--) { byte[] redColumn = new byte[height]; byte[] greenColumn = new byte[height]; byte[] blueColumn = new byte[height]; for (int j=0; j<cut; j++) { redColumn[j] = prevPixels[(j+height-cut)*width + i]; greenColumn[j] = prevPixels[(j+height-cut)*width + i + width*height]; blueColumn[j] = prevPixels[(j+height-cut)*width + i + 2*width*height]; } for (int j=cut; j<height; j++) { redColumn[j] = prevPixels[j*width + i]; greenColumn[j] = prevPixels[j*width + i + width*height]; blueColumn[j] = prevPixels[j*width + i + 2*width*height]; } if (i > width - 1 - height) cut++; for (int j=0; j<height; j++) { bytes[j*width + i] = redColumn[j]; bytes[j*width + i + width*height] = greenColumn[j]; bytes[j*width + i + 2*width*height] = blueColumn[j]; } } } if (flip) { int t = width; width = height; height = t; } if (bitsPerPixel == 40 || bitsPerPixel == 8) { // invert the pixels for (int i=0; i<bytes.length; i++) { bytes[i] = (byte) (255 - bytes[i]); } return bytes; } else if (bitsPerPixel == 32) { // strip out alpha channel byte[][] data = new byte[3][bytes.length / 4]; for (int i=0; i<data[0].length; i++) { data[0][i] = bytes[4*i + 1]; data[1][i] = bytes[4*i + 2]; data[2][i] = bytes[4*i + 3]; } byte[] rtn = new byte[data.length * data[0].length]; for (int i=0; i<data.length; i++) { System.arraycopy(data[i], 0, rtn, i * data[0].length, data[i].length); } return rtn; } else return bytes; }
|
55303 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55303/2c680a5618955854e02d652bc68024b9a011950a/QTReader.java/clean/loci/formats/in/QTReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1160,
8526,
1696,
2160,
12,
780,
612,
16,
509,
1158,
13,
565,
1216,
4077,
503,
16,
1860,
225,
288,
565,
309,
16051,
350,
18,
14963,
12,
2972,
548,
3719,
1208,
812,
12,
350,
1769,
565,
309,
261,
2135,
411,
374,
747,
1158,
1545,
10567,
1380,
12,
350,
3719,
288,
1377,
604,
394,
4077,
503,
2932,
1941,
1316,
1300,
30,
315,
397,
1158,
1769,
565,
289,
565,
514,
981,
273,
9196,
31,
565,
309,
261,
2135,
1545,
10567,
1380,
12,
350,
13,
300,
3770,
5365,
281,
13,
981,
273,
3770,
11008,
31,
565,
1250,
741,
12235,
273,
999,
12235,
31,
565,
309,
16051,
2896,
12235,
597,
401,
710,
18,
14963,
2932,
1899,
9369,
597,
401,
710,
18,
14963,
2932,
86,
298,
9369,
597,
1377,
401,
710,
18,
14963,
2932,
14423,
7923,
597,
401,
710,
18,
14963,
2932,
81,
78,
5733,
7923,
597,
401,
710,
18,
14963,
2932,
13832,
11939,
6,
3719,
565,
288,
1377,
309,
261,
4148,
13,
288,
3639,
2332,
18,
659,
18,
8222,
2932,
8544,
9196,
7566,
397,
1850,
981,
397,
315,
1769,
1450,
2238,
56,
5852,
2949,
8863,
1377,
289,
1377,
741,
12235,
273,
638,
31,
565,
289,
565,
309,
261,
2896,
12235,
13,
288,
1377,
309,
261,
17386,
422,
446,
13,
8866,
273,
752,
12235,
2514,
5621,
1377,
327,
8866,
18,
3190,
2160,
12,
350,
16,
1158,
1769,
565,
289,
565,
509,
1384,
273,
14015,
4522,
13,
8738,
18,
588,
12,
2135,
13,
2934,
474,
620,
5621,
565,
509,
1024,
2335,
273,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1160,
8526,
1696,
2160,
12,
780,
612,
16,
509,
1158,
13,
565,
1216,
4077,
503,
16,
1860,
225,
288,
565,
309,
16051,
350,
18,
14963,
12,
2972,
548,
3719,
1208,
812,
12,
350,
1769,
565,
309,
261,
2135,
411,
374,
747,
1158,
1545,
10567,
1380,
12,
350,
3719,
288,
1377,
604,
394,
4077,
503,
2932,
1941,
1316,
1300,
30,
315,
397,
1158,
1769,
565,
289,
565,
514,
981,
273,
9196,
31,
565,
309,
261,
2135,
1545,
10567,
1380,
12,
350,
13,
300,
3770,
5365,
281,
13,
981,
273,
3770,
11008,
31,
565,
1250,
741,
12235,
273,
999,
12235,
31,
565,
309,
16051,
2896,
12235,
597,
401,
710,
18,
14963,
2932,
1899,
9369,
597,
401,
710,
18,
14963,
2
] |
} else if (methodId == Id_toString) {
|
case Id_toString:
|
public Object execMethod (int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { if (prototypeFlag) { if (methodId == Id_constructor) { boolean b = ScriptRuntime.toBoolean(args, 0); if (thisObj == null) { // new Boolean(val) creates a new boolean object. return new NativeBoolean(b); } // Boolean(val) converts val to a boolean. return wrap_boolean(b); } else if (methodId == Id_toString) { return realThisBoolean(thisObj, f) ? "true" : "false"; } else if (methodId == Id_toSource) { if (realThisBoolean(thisObj, f)) return "(new Boolean(true))"; else return "(new Boolean(false))"; } else if (methodId == Id_valueOf) { return wrap_boolean(realThisBoolean(thisObj, f)); } } return super.execMethod(methodId, f, cx, scope, thisObj, args); }
|
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/8f28fc868ac3f30ea37494abfddb6358154786c3/NativeBoolean.java/clean/js/rhino/src/org/mozilla/javascript/NativeBoolean.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
284,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
18541,
4678,
13,
288,
5411,
309,
261,
2039,
548,
422,
3124,
67,
12316,
13,
288,
7734,
1250,
324,
273,
7739,
5576,
18,
869,
5507,
12,
1968,
16,
374,
1769,
7734,
309,
261,
2211,
2675,
422,
446,
13,
288,
10792,
368,
394,
3411,
12,
1125,
13,
3414,
279,
394,
1250,
733,
18,
10792,
327,
394,
16717,
5507,
12,
70,
1769,
7734,
289,
7734,
368,
3411,
12,
1125,
13,
7759,
1244,
358,
279,
1250,
18,
7734,
327,
2193,
67,
6494,
12,
70,
1769,
5411,
648,
3124,
67,
10492,
30,
7734,
327,
2863,
2503,
5507,
12,
2211,
2675,
16,
284,
13,
692,
315,
3767,
6,
294,
315,
5743,
14432,
5411,
289,
469,
309,
261,
2039,
548,
422,
3124,
67,
869,
1830,
13,
288,
7734,
309,
261,
7688,
2503,
5507,
12,
2211,
2675,
16,
284,
3719,
10792,
327,
7751,
2704,
3411,
12,
3767,
30743,
31,
7734,
469,
10792,
327,
7751,
2704,
3411,
12,
5743,
30743,
31,
5411,
289,
469,
309,
261,
2039,
548,
422,
3124,
67,
1132,
951,
13,
288,
7734,
327,
2193,
67,
6494,
12,
7688,
2503,
5507,
12,
2211,
2675,
16,
284,
10019,
5411,
289,
3639,
289,
3639,
327,
2240,
18,
4177,
1305,
12,
2039,
548,
16,
284,
16,
9494,
16,
2146,
16,
15261,
16,
833,
1769,
565,
289,
2,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
284,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
18541,
4678,
13,
288,
5411,
309,
261,
2039,
548,
422,
3124,
67,
12316,
13,
288,
7734,
1250,
324,
273,
7739,
5576,
18,
869,
5507,
12,
1968,
16,
374,
1769,
7734,
309,
261,
2211,
2675,
422,
446,
13,
288,
10792,
368,
394,
3411,
12,
1125,
13,
3414,
279,
394,
1250,
733,
18,
10792,
327,
394,
16717,
5507,
12,
70,
1769,
7734,
289,
7734,
368,
3411,
12,
1125,
13,
7759,
1244,
358,
279,
1250,
18,
7734,
327,
2193,
67,
6494,
12,
70,
1769,
2
] |
Properties eventProps =
|
Properties eventProps =
|
public void mouseEntered(java.awt.event.MouseEvent e){ if (e instanceof WCMouseEvent) { WCMouseEvent wcMouseEvent = (WCMouseEvent) e; Properties eventProps = (Properties) wcMouseEvent.getWebclientEvent().getEventData(); if (null == eventProps) { return; } if (e.isAltDown()) { System.out.println("Alt "); } if (e.isControlDown()) { System.out.println("Ctrl "); } if (e.isShiftDown()) { System.out.println("Shift "); } if (e.isMetaDown()) { // PENDING(edburns): this is always sent for some reason //System.out.println("Meta "); } String href = eventProps.getProperty("href"); if (null != href) { // if it's a relative URL if (null != currentURL && -1 == href.indexOf("://")) { int lastSlashIndex = currentURL.lastIndexOf('/'); if (-1 == lastSlashIndex) { href = currentURL + "/" + href; } else { href = currentURL.substring(0, lastSlashIndex) + "/"+ href; } } statusLabel.setText(href); } }}
|
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/afee19ff581e3d13844917014bf035cd25e515ae/EMWindow.java/clean/java/webclient/classes_spec/org/mozilla/webclient/test/EMWindow.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
7644,
10237,
329,
12,
6290,
18,
2219,
88,
18,
2575,
18,
9186,
1133,
425,
15329,
565,
309,
261,
73,
1276,
678,
39,
9186,
1133,
13,
288,
3639,
678,
39,
9186,
1133,
14310,
9186,
1133,
273,
261,
59,
39,
9186,
1133,
13,
425,
31,
3639,
6183,
871,
5047,
273,
2398,
261,
2297,
13,
14310,
9186,
1133,
18,
588,
4079,
2625,
1133,
7675,
588,
21299,
5621,
3639,
309,
261,
2011,
422,
871,
5047,
13,
288,
5411,
327,
31,
3639,
289,
3639,
309,
261,
73,
18,
291,
10655,
4164,
10756,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
10655,
315,
1769,
3639,
289,
3639,
309,
261,
73,
18,
291,
3367,
4164,
10756,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
12418,
315,
1769,
3639,
289,
3639,
309,
261,
73,
18,
291,
10544,
4164,
10756,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
10544,
315,
1769,
3639,
289,
3639,
309,
261,
73,
18,
291,
2781,
4164,
10756,
288,
5411,
368,
28454,
12,
329,
70,
321,
87,
4672,
333,
353,
3712,
3271,
364,
2690,
3971,
5411,
368,
3163,
18,
659,
18,
8222,
2932,
2781,
315,
1769,
3639,
289,
3639,
514,
3897,
273,
871,
5047,
18,
588,
1396,
2932,
7547,
8863,
3639,
309,
261,
2011,
480,
3897,
13,
288,
5411,
368,
309,
518,
1807,
279,
3632,
1976,
5411,
309,
261,
2011,
480,
783,
1785,
597,
300,
21,
422,
3897,
18,
31806,
2932,
14334,
3719,
288,
7734,
509,
1142,
11033,
1016,
273,
783,
1785,
18,
2722,
31985,
2668,
2473,
1769,
7734,
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,
1071,
918,
7644,
10237,
329,
12,
6290,
18,
2219,
88,
18,
2575,
18,
9186,
1133,
425,
15329,
565,
309,
261,
73,
1276,
678,
39,
9186,
1133,
13,
288,
3639,
678,
39,
9186,
1133,
14310,
9186,
1133,
273,
261,
59,
39,
9186,
1133,
13,
425,
31,
3639,
6183,
871,
5047,
273,
2398,
261,
2297,
13,
14310,
9186,
1133,
18,
588,
4079,
2625,
1133,
7675,
588,
21299,
5621,
3639,
309,
261,
2011,
422,
871,
5047,
13,
288,
5411,
327,
31,
3639,
289,
3639,
309,
261,
73,
18,
291,
10655,
4164,
10756,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
10655,
315,
1769,
3639,
289,
3639,
309,
261,
73,
18,
291,
3367,
4164,
10756,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
2
] |
return this.requiredClientProtocols;
|
return getClientProtocols();
|
public List<Protocol> getRequiredClientProtocols() { return this.requiredClientProtocols; }
|
14172 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14172/a2516d5a5ab95b24599e98d74b56fa636e172650/ConnectorService.java/buggy/module/org.restlet/src/org/restlet/service/ConnectorService.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
987,
32,
5752,
34,
19881,
1227,
21657,
1435,
202,
95,
202,
202,
2463,
333,
18,
4718,
1227,
21657,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
987,
32,
5752,
34,
19881,
1227,
21657,
1435,
202,
95,
202,
202,
2463,
333,
18,
4718,
1227,
21657,
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
] |
public Object fastpath(int fnid, boolean resulttype, FastpathArg[] args) throws SQLException { // added Oct 7 1998 to give us thread safety synchronized (stream) { // send the function call try { // 70 is 'F' in ASCII. Note: don't use SendChar() here as it adds padding // that confuses the backend. The 0 terminates the command line. stream.SendInteger(70, 1); stream.SendInteger(0, 1); stream.SendInteger(fnid, 4); stream.SendInteger(args.length, 4); for (int i = 0;i < args.length;i++) args[i].send(stream); // This is needed, otherwise data can be lost stream.flush(); } catch (IOException ioe) { throw new PSQLException("postgresql.fp.send", new Integer(fnid), ioe); } // Now handle the result // We should get 'V' on sucess or 'E' on error. Anything else is treated // as an error. //int in = stream.ReceiveChar(); //DriverManager.println("ReceiveChar() = "+in+" '"+((char)in)+"'"); //if (in!='V') { //if (in=='E') //throw new SQLException(stream.ReceiveString(conn.getEncoding())); //throw new SQLException("Fastpath: expected 'V' from backend, got "+((char)in)); //} // Now loop, reading the results Object result = null; // our result StringBuffer errorMessage = null; boolean loop = true; while (loop) { int in = stream.ReceiveChar(); //DriverManager.println("ReceiveChar() = "+in+" '"+((char)in)+"'"); switch (in) { case 'V': break; //------------------------------ // Function returned properly // case 'G': int sz = stream.ReceiveIntegerR(4); //DriverManager.println("G: size="+sz); //debug // Return an Integer if if (resulttype) result = new Integer(stream.ReceiveIntegerR(sz)); else { byte buf[] = new byte[sz]; stream.Receive(buf, 0, sz); result = buf; } break; //------------------------------ // Error message returned case 'E': if ( errorMessage == null ) errorMessage = new StringBuffer(); errorMessage.append(stream.ReceiveString(conn.getEncoding())); break; //------------------------------ // Notice from backend case 'N': conn.addWarning(stream.ReceiveString(conn.getEncoding())); break; //------------------------------ // End of results // // Here we simply return res, which would contain the result // processed earlier. If no result, this already contains null case '0': //DriverManager.println("returning "+result); // return result; break; case 'Z': // cause the loop to exit loop = false; break; default: throw new PSQLException("postgresql.fp.protocol", new Character((char)in)); } } if ( errorMessage != null ) throw new PSQLException("postgresql.fp.error", errorMessage.toString()); return result; } }
|
52628 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52628/ef7d7910745cf2812007668138eaaf0a8e1d8d99/Fastpath.java/buggy/src/interfaces/jdbc/org/postgresql/fastpath/Fastpath.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
14469,
12,
474,
2295,
350,
16,
1250,
563,
723,
16,
9545,
803,
4117,
8526,
833,
13,
1216,
6483,
202,
95,
202,
202,
759,
3096,
29482,
2371,
23673,
28,
358,
8492,
584,
2650,
24179,
202,
202,
22043,
261,
3256,
13,
202,
202,
95,
1082,
202,
759,
1366,
326,
445,
745,
1082,
202,
698,
1082,
202,
95,
9506,
202,
759,
16647,
353,
296,
42,
11,
316,
11768,
18,
3609,
30,
2727,
1404,
999,
2479,
2156,
1435,
2674,
487,
518,
4831,
4992,
9506,
202,
759,
716,
2195,
6117,
326,
4221,
18,
1021,
374,
30559,
326,
1296,
980,
18,
9506,
202,
3256,
18,
3826,
4522,
12,
7301,
16,
404,
1769,
9506,
202,
3256,
18,
3826,
4522,
12,
20,
16,
404,
1769,
9506,
202,
3256,
18,
3826,
4522,
12,
4293,
350,
16,
1059,
1769,
9506,
202,
3256,
18,
3826,
4522,
12,
1968,
18,
2469,
16,
1059,
1769,
9506,
202,
1884,
261,
474,
277,
273,
374,
31,
77,
411,
833,
18,
2469,
31,
77,
27245,
6862,
202,
1968,
63,
77,
8009,
4661,
12,
3256,
1769,
9506,
202,
759,
1220,
353,
3577,
16,
3541,
501,
848,
506,
13557,
9506,
202,
3256,
18,
11330,
5621,
1082,
202,
97,
1082,
202,
14683,
261,
14106,
10847,
13,
1082,
202,
95,
9506,
202,
12849,
394,
453,
23116,
2932,
2767,
24330,
18,
7944,
18,
4661,
3113,
394,
2144,
12,
4293,
350,
3631,
10847,
1769,
1082,
202,
97,
1082,
202,
759,
4494,
1640,
326,
563,
1082,
202,
759,
1660,
1410,
336,
296,
58,
11,
603,
1597,
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,
1033,
14469,
12,
474,
2295,
350,
16,
1250,
563,
723,
16,
9545,
803,
4117,
8526,
833,
13,
1216,
6483,
202,
95,
202,
202,
759,
3096,
29482,
2371,
23673,
28,
358,
8492,
584,
2650,
24179,
202,
202,
22043,
261,
3256,
13,
202,
202,
95,
1082,
202,
759,
1366,
326,
445,
745,
1082,
202,
698,
1082,
202,
95,
9506,
202,
759,
16647,
353,
296,
42,
11,
316,
11768,
18,
3609,
30,
2727,
1404,
999,
2479,
2156,
1435,
2674,
487,
518,
4831,
4992,
9506,
202,
759,
716,
2195,
6117,
326,
4221,
18,
1021,
374,
30559,
326,
1296,
980,
18,
9506,
202,
3256,
18,
3826,
4522,
12,
7301,
16,
404,
1769,
9506,
202,
3256,
18,
3826,
4522,
12,
20,
16,
2
] |
||
if (!args[0].isKindOf(runtime.getClasses().getNilClass()) && !args[0].isKindOf(runtime.getClasses().getStringClass())) { throw new TypeError(runtime, args[0], runtime.getClasses().getStringClass());
|
if (!args[0].isKindOf(getRuntime().getClasses().getNilClass()) && !args[0].isKindOf(getRuntime().getClasses().getStringClass())) { throw getRuntime().newTypeError(args[0], getRuntime().getClasses().getStringClass());
|
public RubyArray readlines(IRubyObject[] args) { IRubyObject[] separatorArgument; if (args.length > 0) { if (!args[0].isKindOf(runtime.getClasses().getNilClass()) && !args[0].isKindOf(runtime.getClasses().getStringClass())) { throw new TypeError(runtime, args[0], runtime.getClasses().getStringClass()); } separatorArgument = new IRubyObject[] { args[0] }; } else { separatorArgument = IRubyObject.NULL_ARRAY; } RubyArray result = RubyArray.newArray(runtime); IRubyObject line; while (! (line = internalGets(separatorArgument)).isNil()) { result.append(line); } return result; }
|
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyIO.java/clean/src/org/jruby/RubyIO.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
1076,
17546,
12,
7937,
10340,
921,
8526,
833,
13,
288,
3639,
15908,
10340,
921,
8526,
4182,
1379,
31,
3639,
309,
261,
1968,
18,
2469,
405,
374,
13,
288,
5411,
309,
16051,
1968,
63,
20,
8009,
291,
5677,
951,
12,
9448,
18,
588,
4818,
7675,
588,
12616,
797,
10756,
597,
7734,
401,
1968,
63,
20,
8009,
291,
5677,
951,
12,
9448,
18,
588,
4818,
7675,
588,
780,
797,
1435,
3719,
288,
7734,
604,
394,
3580,
12,
9448,
16,
833,
63,
20,
6487,
7682,
3099,
18,
588,
4818,
7675,
588,
780,
797,
10663,
5411,
289,
2398,
4182,
1379,
273,
394,
15908,
10340,
921,
8526,
288,
833,
63,
20,
65,
289,
31,
3639,
289,
469,
288,
5411,
4182,
1379,
273,
15908,
10340,
921,
18,
8560,
67,
8552,
31,
3639,
289,
3639,
19817,
1076,
563,
273,
19817,
1076,
18,
2704,
1076,
12,
9448,
1769,
3639,
15908,
10340,
921,
980,
31,
3639,
1323,
16051,
261,
1369,
273,
2713,
3002,
12,
11287,
1379,
13,
2934,
291,
12616,
10756,
288,
5411,
563,
18,
6923,
12,
1369,
1769,
3639,
289,
3639,
327,
563,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19817,
1076,
17546,
12,
7937,
10340,
921,
8526,
833,
13,
288,
3639,
15908,
10340,
921,
8526,
4182,
1379,
31,
3639,
309,
261,
1968,
18,
2469,
405,
374,
13,
288,
5411,
309,
16051,
1968,
63,
20,
8009,
291,
5677,
951,
12,
9448,
18,
588,
4818,
7675,
588,
12616,
797,
10756,
597,
7734,
401,
1968,
63,
20,
8009,
291,
5677,
951,
12,
9448,
18,
588,
4818,
7675,
588,
780,
797,
1435,
3719,
288,
7734,
604,
394,
3580,
12,
9448,
16,
833,
63,
20,
6487,
7682,
3099,
18,
588,
4818,
7675,
588,
780,
797,
10663,
5411,
289,
2398,
4182,
1379,
273,
394,
15908,
10340,
921,
8526,
288,
833,
63,
20,
65,
289,
31,
3639,
289,
469,
288,
5411,
4182,
1379,
2
] |
InfoExecutionPeriod infoExecutionPeriod = setExecutionContext(request); /* Criar o bean de semestres */ ArrayList semestres = new ArrayList(); semestres.add(new LabelValueBean("escolher", "")); semestres.add(new LabelValueBean("1 ", "1")); semestres.add(new LabelValueBean("2 ", "2")); session.setAttribute("semestres", semestres);
|
IUserView userView = SessionUtils.getUserView(request);
|
public ActionForward prepare( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { HttpSession session = request.getSession(false); if (session != null) { String inputPage = request.getParameter(SessionConstants.INPUT_PAGE); String nextPage = request.getParameter(SessionConstants.NEXT_PAGE); if (inputPage != null) session.setAttribute(SessionConstants.INPUT_PAGE, inputPage); if (nextPage != null) session.setAttribute(SessionConstants.NEXT_PAGE, nextPage); IUserView userView = SessionUtils.getUserView(request); InfoExecutionPeriod infoExecutionPeriod = setExecutionContext(request); //TODO: this semester and curricular year list needs to be refactored in order to incorporate masters /* Criar o bean de semestres */ ArrayList semestres = new ArrayList(); semestres.add(new LabelValueBean("escolher", "")); semestres.add(new LabelValueBean("1 ", "1")); semestres.add(new LabelValueBean("2 ", "2")); session.setAttribute("semestres", semestres); /* Criar o bean de anos curricutares */ ArrayList anosCurriculares = new ArrayList(); anosCurriculares.add(new LabelValueBean("escolher", "")); anosCurriculares.add(new LabelValueBean("1 ", "1")); anosCurriculares.add(new LabelValueBean("2 ", "2")); anosCurriculares.add(new LabelValueBean("3 ", "3")); anosCurriculares.add(new LabelValueBean("4 ", "4")); anosCurriculares.add(new LabelValueBean("5 ", "5")); session.setAttribute(SessionConstants.CURRICULAR_YEAR_LIST_KEY, anosCurriculares); /* Cria o form bean com as licenciaturas em execucao.*/ Object argsLerLicenciaturas[] = { infoExecutionPeriod.getInfoExecutionYear()}; List executionDegreeList = (List) ServiceUtils.executeService( userView, "ReadExecutionDegreesByExecutionYear", argsLerLicenciaturas); ArrayList licenciaturas = new ArrayList(); licenciaturas.add(new LabelValueBean("escolher", "")); Collections.sort(executionDegreeList, new ComparatorByNameForInfoExecutionDegree()); Iterator iterator = executionDegreeList.iterator(); int index = 0; while (iterator.hasNext()) { InfoExecutionDegree infoExecutionDegree = (InfoExecutionDegree) iterator.next(); String name = infoExecutionDegree .getInfoDegreeCurricularPlan() .getInfoDegree() .getNome(); name += duplicateInfoDegree( executionDegreeList, infoExecutionDegree) ? "-" + infoExecutionDegree .getInfoDegreeCurricularPlan() .getName() : ""; licenciaturas.add( new LabelValueBean(name, String.valueOf(index++))); } session.setAttribute( SessionConstants.INFO_EXECUTION_DEGREE_LIST_KEY, executionDegreeList); request.setAttribute(SessionConstants.DEGREES, licenciaturas); if (inputPage != null) return mapping.findForward(inputPage); else // TODO : throw a proper exception throw new Exception("SomeOne is messing around with the links"); } else throw new Exception(); // nao ocorre... pedido passa pelo filtro Autorizacao }
|
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/b341d764b1a81d744c03d4f08abe6a4623896c3e/ChooseContextDispatchAction.java/buggy/src/ServidorApresentacao/Action/commons/ChooseContextDispatchAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4382,
8514,
2911,
12,
202,
202,
1803,
3233,
2874,
16,
202,
202,
1803,
1204,
646,
16,
202,
202,
2940,
18572,
590,
16,
202,
202,
2940,
29910,
766,
13,
202,
202,
15069,
1185,
288,
1082,
202,
2940,
2157,
1339,
273,
590,
18,
588,
2157,
12,
5743,
1769,
1082,
202,
430,
261,
3184,
480,
446,
13,
288,
9506,
202,
780,
810,
1964,
273,
590,
18,
588,
1662,
12,
2157,
2918,
18,
15934,
67,
11219,
1769,
9506,
202,
780,
7580,
273,
590,
18,
588,
1662,
12,
2157,
2918,
18,
25539,
67,
11219,
1769,
9506,
202,
430,
261,
2630,
1964,
480,
446,
13,
6862,
202,
3184,
18,
542,
1499,
12,
2157,
2918,
18,
15934,
67,
11219,
16,
810,
1964,
1769,
9506,
202,
430,
261,
4285,
1964,
480,
446,
13,
6862,
202,
3184,
18,
542,
1499,
12,
2157,
2918,
18,
25539,
67,
11219,
16,
7580,
1769,
6862,
9506,
202,
45,
1299,
1767,
729,
1767,
273,
3877,
1989,
18,
588,
1299,
1767,
12,
2293,
1769,
9506,
202,
966,
3210,
5027,
1123,
3210,
5027,
273,
6862,
202,
542,
3210,
1042,
12,
2293,
1769,
9506,
202,
759,
6241,
30,
333,
6111,
7654,
471,
225,
662,
1512,
2490,
3286,
666,
4260,
358,
506,
283,
3493,
7653,
316,
1353,
358,
316,
3850,
3831,
340,
31354,
9506,
202,
20308,
385,
566,
297,
320,
3931,
443,
6111,
395,
455,
1195,
9506,
202,
19558,
6111,
395,
455,
273,
394,
2407,
5621,
9506,
202,
12000,
395,
455,
18,
1289,
12,
2704,
5287,
620,
3381,
2932,
742,
355,
1614,
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,
4382,
8514,
2911,
12,
202,
202,
1803,
3233,
2874,
16,
202,
202,
1803,
1204,
646,
16,
202,
202,
2940,
18572,
590,
16,
202,
202,
2940,
29910,
766,
13,
202,
202,
15069,
1185,
288,
1082,
202,
2940,
2157,
1339,
273,
590,
18,
588,
2157,
12,
5743,
1769,
1082,
202,
430,
261,
3184,
480,
446,
13,
288,
9506,
202,
780,
810,
1964,
273,
590,
18,
588,
1662,
12,
2157,
2918,
18,
15934,
67,
11219,
1769,
9506,
202,
780,
7580,
273,
590,
18,
588,
1662,
12,
2157,
2918,
18,
25539,
67,
11219,
1769,
9506,
202,
430,
261,
2630,
1964,
480,
446,
13,
6862,
202,
3184,
18,
542,
1499,
12,
2157,
2918,
18,
15934,
67,
11219,
16,
810,
1964,
1769,
2
] |
if (checkFieldsOutOfOrder && !message.hasValidStructure()) { throw new FieldException(SessionRejectReason.TAG_SPECIFIED_OUT_OF_REQUIRED_ORDER, message.getInvalidStructureTag()); }
|
if (checkFieldsOutOfOrder && !message.hasValidStructure()) { throw new FieldException( SessionRejectReason.TAG_SPECIFIED_OUT_OF_REQUIRED_ORDER, message.getInvalidStructureTag()); }
|
public void validate(Message message) throws IncorrectTagValue, FieldNotFound { if (hasVersion && !getVersion().equals(message.getHeader().getString(BeginString.FIELD))) { throw new UnsupportedVersion(); } if (checkFieldsOutOfOrder && !message.hasValidStructure()) { throw new FieldException(SessionRejectReason.TAG_SPECIFIED_OUT_OF_REQUIRED_ORDER, message.getInvalidStructureTag()); } String msgType = message.getHeader().getString(MsgType.FIELD); if (hasVersion) { checkMsgType(msgType); checkHasRequired(message.getHeader(), message, message.getTrailer(), msgType); } iterate(message.getHeader(), msgType); iterate(message, msgType); iterate(message.getTrailer(), msgType); }
|
52526 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52526/bc5f21c5a32614ef5c419366046d5f643c6e93ff/DataDictionary.java/clean/src/quickfix/DataDictionary.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1954,
12,
1079,
883,
13,
1216,
657,
6746,
1805,
620,
16,
2286,
2768,
288,
3639,
309,
261,
5332,
1444,
597,
401,
588,
1444,
7675,
14963,
12,
2150,
18,
588,
1864,
7675,
588,
780,
12,
8149,
780,
18,
6776,
20349,
288,
5411,
604,
394,
7221,
1444,
5621,
3639,
289,
3639,
309,
261,
1893,
2314,
11224,
2448,
597,
401,
2150,
18,
5332,
1556,
6999,
10756,
288,
5411,
604,
394,
2286,
503,
12,
2157,
21705,
8385,
18,
7927,
67,
13847,
13519,
67,
5069,
67,
3932,
67,
14977,
67,
7954,
16,
10792,
883,
18,
588,
1941,
6999,
1805,
10663,
3639,
289,
3639,
514,
1234,
559,
273,
883,
18,
588,
1864,
7675,
588,
780,
12,
3332,
559,
18,
6776,
1769,
3639,
309,
261,
5332,
1444,
13,
288,
5411,
866,
3332,
559,
12,
3576,
559,
1769,
5411,
866,
5582,
3705,
12,
2150,
18,
588,
1864,
9334,
883,
16,
883,
18,
588,
1609,
2895,
9334,
1234,
559,
1769,
3639,
289,
3639,
7401,
12,
2150,
18,
588,
1864,
9334,
1234,
559,
1769,
3639,
7401,
12,
2150,
16,
1234,
559,
1769,
3639,
7401,
12,
2150,
18,
588,
1609,
2895,
9334,
1234,
559,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1954,
12,
1079,
883,
13,
1216,
657,
6746,
1805,
620,
16,
2286,
2768,
288,
3639,
309,
261,
5332,
1444,
597,
401,
588,
1444,
7675,
14963,
12,
2150,
18,
588,
1864,
7675,
588,
780,
12,
8149,
780,
18,
6776,
20349,
288,
5411,
604,
394,
7221,
1444,
5621,
3639,
289,
3639,
309,
261,
1893,
2314,
11224,
2448,
597,
401,
2150,
18,
5332,
1556,
6999,
10756,
288,
5411,
604,
394,
2286,
503,
12,
2157,
21705,
8385,
18,
7927,
67,
13847,
13519,
67,
5069,
67,
3932,
67,
14977,
67,
7954,
16,
10792,
883,
18,
588,
1941,
6999,
1805,
10663,
3639,
289,
3639,
514,
1234,
559,
273,
883,
18,
588,
1864,
7675,
588,
780,
12,
3332,
559,
18,
6776,
1769,
3639,
2
] |
CompilationJob subjob = collectJobsRecursive (child, ourclasspath);
|
CompilationJob subjob = collectJobsRecursive(child, ourclasspath);
|
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
|
46579 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46579/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/buggy/src/lib/com/izforge/izpack/installer/CompileWorker.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
22416,
2278,
3274,
7276,
10483,
261,
15223,
756,
16,
2407,
10006,
13,
565,
1216,
1185,
225,
288,
565,
13864,
28999,
67,
4156,
273,
756,
18,
7924,
12600,
4212,
261,
1769,
565,
2407,
3134,
26302,
273,
261,
19558,
13,
26302,
18,
14056,
261,
1769,
565,
2407,
1390,
273,
394,
2407,
5621,
565,
1323,
261,
3669,
2815,
67,
4156,
18,
5332,
7417,
3471,
1832,
13,
565,
288,
1377,
1139,
11155,
1151,
273,
261,
15223,
13,
3669,
2815,
67,
4156,
18,
4285,
1046,
261,
1769,
1377,
309,
261,
3624,
18,
17994,
1832,
18,
14963,
7566,
26302,
6,
3719,
1377,
288,
3639,
2549,
22158,
261,
477,
26302,
16,
1151,
1769,
1377,
289,
1377,
469,
309,
261,
3624,
18,
17994,
1832,
18,
14963,
7566,
4688,
6,
3719,
1377,
288,
3639,
22416,
2278,
720,
4688,
273,
3274,
7276,
10483,
12,
3624,
16,
3134,
26302,
1769,
3639,
309,
261,
1717,
4688,
480,
446,
13,
1850,
333,
18,
10088,
18,
1289,
261,
1717,
4688,
1769,
1377,
289,
1377,
469,
309,
261,
3624,
18,
17994,
7675,
14963,
7566,
5149,
6,
3719,
1377,
288,
3639,
514,
508,
273,
1151,
18,
588,
1499,
7566,
529,
8863,
3639,
309,
261,
529,
480,
446,
13,
3639,
288,
1850,
368,
14811,
3152,
1850,
514,
727,
529,
273,
333,
18,
6904,
18,
1717,
17207,
261,
529,
16,
315,
7446,
8863,
1850,
1390,
18,
1289,
1595,
261,
9871,
2853,
261,
2704,
1387,
261,
6385,
529,
3719,
1769,
3639,
289,
1377,
289,
1377,
469,
309,
261,
3624,
18,
17994,
7675,
14963,
7566,
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,
22416,
2278,
3274,
7276,
10483,
261,
15223,
756,
16,
2407,
10006,
13,
565,
1216,
1185,
225,
288,
565,
13864,
28999,
67,
4156,
273,
756,
18,
7924,
12600,
4212,
261,
1769,
565,
2407,
3134,
26302,
273,
261,
19558,
13,
26302,
18,
14056,
261,
1769,
565,
2407,
1390,
273,
394,
2407,
5621,
565,
1323,
261,
3669,
2815,
67,
4156,
18,
5332,
7417,
3471,
1832,
13,
565,
288,
1377,
1139,
11155,
1151,
273,
261,
15223,
13,
3669,
2815,
67,
4156,
18,
4285,
1046,
261,
1769,
1377,
309,
261,
3624,
18,
17994,
1832,
18,
14963,
7566,
26302,
6,
3719,
1377,
288,
3639,
2549,
22158,
261,
477,
26302,
16,
1151,
1769,
1377,
289,
1377,
469,
309,
261,
3624,
18,
17994,
1832,
18,
2
] |
cus.addUrl(startUrl, false, true);
|
mau.addUrl(startUrl, false, true);
|
public void testReturnsRetriesWhenRetryableExceptionThrown() { MockCachedUrlSet cus = (MockCachedUrlSet)mau.getAuCachedUrlSet(); String url1="http://www.example.com/blah.html"; cus.addUrl(startUrl, false, true); parser.addUrlSetToReturn(startUrl, SetUtil.set(url1)); MyMockRetryableCacheException exception = new MyMockRetryableCacheException("Test exception"); cus.addUrl(url1, exception, DEFAULT_RETRY_TIMES-1); crawlRule.addUrlToCrawl(url1); crawler.doCrawl0(); Set expected = SetUtil.set(startUrl, url1); assertEquals(expected, cus.getCachedUrls()); }
|
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/1daae17bba467f29e3575dfd082f58a6511a6679/TestNewContentCrawler.java/clean/test/src/org/lockss/crawler/TestNewContentCrawler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
1356,
13656,
9434,
7539,
429,
503,
29591,
1435,
288,
565,
7867,
9839,
1489,
694,
27964,
273,
261,
9865,
9839,
1489,
694,
13,
2540,
89,
18,
588,
37,
89,
9839,
1489,
694,
5621,
565,
514,
880,
21,
1546,
2505,
2207,
5591,
18,
8236,
18,
832,
19,
3083,
9795,
18,
2620,
14432,
565,
312,
8377,
18,
1289,
1489,
12,
1937,
1489,
16,
629,
16,
638,
1769,
565,
2082,
18,
1289,
1489,
694,
27014,
12,
1937,
1489,
16,
1000,
1304,
18,
542,
12,
718,
21,
10019,
565,
8005,
9865,
7539,
429,
1649,
503,
1520,
273,
1377,
394,
8005,
9865,
7539,
429,
1649,
503,
2932,
4709,
1520,
8863,
565,
27964,
18,
1289,
1489,
12,
718,
21,
16,
1520,
16,
3331,
67,
24240,
67,
4684,
55,
17,
21,
1769,
565,
23182,
2175,
18,
1289,
1489,
774,
39,
15161,
12,
718,
21,
1769,
565,
18588,
18,
2896,
39,
15161,
20,
5621,
565,
1000,
2665,
273,
1000,
1304,
18,
542,
12,
1937,
1489,
16,
880,
21,
1769,
565,
1815,
8867,
12,
3825,
16,
27964,
18,
588,
9839,
10509,
10663,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
1356,
13656,
9434,
7539,
429,
503,
29591,
1435,
288,
565,
7867,
9839,
1489,
694,
27964,
273,
261,
9865,
9839,
1489,
694,
13,
2540,
89,
18,
588,
37,
89,
9839,
1489,
694,
5621,
565,
514,
880,
21,
1546,
2505,
2207,
5591,
18,
8236,
18,
832,
19,
3083,
9795,
18,
2620,
14432,
565,
312,
8377,
18,
1289,
1489,
12,
1937,
1489,
16,
629,
16,
638,
1769,
565,
2082,
18,
1289,
1489,
694,
27014,
12,
1937,
1489,
16,
1000,
1304,
18,
542,
12,
718,
21,
10019,
565,
8005,
9865,
7539,
429,
1649,
503,
1520,
273,
1377,
394,
8005,
9865,
7539,
429,
1649,
503,
2932,
4709,
1520,
8863,
565,
27964,
18,
1289,
1489,
12,
718,
21,
16,
1520,
16,
2
] |
if (projects.length == 1) return IDEWorkbenchMessages.DeleteResourceAction_titleProject1;
|
if (projects.length == 1) { return IDEWorkbenchMessages.DeleteResourceAction_titleProject1; }
|
static String getTitle(IResource[] projects) { if (projects.length == 1) return IDEWorkbenchMessages.DeleteResourceAction_titleProject1; return IDEWorkbenchMessages.DeleteResourceAction_titleProjectN; }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/DeleteResourceAction.java/buggy/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/DeleteResourceAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
760,
514,
10786,
12,
45,
1420,
8526,
10137,
13,
288,
5411,
309,
261,
13582,
18,
2469,
422,
404,
13,
7734,
327,
1599,
41,
2421,
22144,
5058,
18,
2613,
1420,
1803,
67,
2649,
4109,
21,
31,
5411,
327,
1599,
41,
2421,
22144,
5058,
18,
2613,
1420,
1803,
67,
2649,
4109,
50,
31,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
760,
514,
10786,
12,
45,
1420,
8526,
10137,
13,
288,
5411,
309,
261,
13582,
18,
2469,
422,
404,
13,
7734,
327,
1599,
41,
2421,
22144,
5058,
18,
2613,
1420,
1803,
67,
2649,
4109,
21,
31,
5411,
327,
1599,
41,
2421,
22144,
5058,
18,
2613,
1420,
1803,
67,
2649,
4109,
50,
31,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
fDocumentHandler.endElement(element);
|
fDocumentHandler.endElement(element, augs);
|
protected void handleEndElement(QName element, boolean isEmpty) throws XNIException { // bind element String eprefix = element.prefix != null ? element.prefix : fEmptySymbol; element.uri = fNamespaceSupport.getURI(eprefix); if (element.uri != null) { element.prefix = eprefix; } // call handlers if (fDocumentHandler != null && !fOnlyPassPrefixMappingEvents) { if (!isEmpty) { fDocumentHandler.endElement(element); } } // end prefix mappings if (fDocumentHandler != null) { int count = fNamespaceSupport.getDeclaredPrefixCount(); for (int i = count - 1; i >= 0; i--) { String prefix = fNamespaceSupport.getDeclaredPrefixAt(i); fDocumentHandler.endPrefixMapping(prefix); } } // pop context fNamespaceSupport.popContext(); } // handleEndElement(QName,boolean)
|
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/1281996de10d3af1b51f0b4d78cfcd75d8ade6fe/XMLNamespaceBinder.java/clean/src/org/apache/xerces/impl/XMLNamespaceBinder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1640,
1638,
1046,
12,
13688,
930,
16,
1250,
2709,
13,
3639,
1216,
1139,
50,
45,
503,
288,
3639,
368,
1993,
930,
3639,
514,
425,
3239,
273,
930,
18,
3239,
480,
446,
692,
930,
18,
3239,
294,
284,
1921,
5335,
31,
3639,
930,
18,
1650,
273,
284,
3402,
6289,
18,
588,
3098,
12,
881,
266,
904,
1769,
3639,
309,
261,
2956,
18,
1650,
480,
446,
13,
288,
5411,
930,
18,
3239,
273,
425,
3239,
31,
3639,
289,
3639,
368,
745,
4919,
3639,
309,
261,
74,
2519,
1503,
480,
446,
597,
401,
74,
3386,
6433,
2244,
3233,
3783,
13,
288,
5411,
309,
16051,
291,
1921,
13,
288,
7734,
284,
2519,
1503,
18,
409,
1046,
12,
2956,
16,
279,
9024,
1769,
5411,
289,
3639,
289,
3639,
368,
679,
1633,
7990,
3639,
309,
261,
74,
2519,
1503,
480,
446,
13,
288,
5411,
509,
1056,
273,
284,
3402,
6289,
18,
588,
18888,
2244,
1380,
5621,
5411,
364,
261,
474,
277,
273,
1056,
300,
404,
31,
277,
1545,
374,
31,
277,
413,
13,
288,
7734,
514,
1633,
273,
284,
3402,
6289,
18,
588,
18888,
2244,
861,
12,
77,
1769,
7734,
284,
2519,
1503,
18,
409,
2244,
3233,
12,
3239,
1769,
5411,
289,
3639,
289,
3639,
368,
1843,
819,
3639,
284,
3402,
6289,
18,
5120,
1042,
5621,
565,
289,
368,
1640,
1638,
1046,
12,
13688,
16,
6494,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1640,
1638,
1046,
12,
13688,
930,
16,
1250,
2709,
13,
3639,
1216,
1139,
50,
45,
503,
288,
3639,
368,
1993,
930,
3639,
514,
425,
3239,
273,
930,
18,
3239,
480,
446,
692,
930,
18,
3239,
294,
284,
1921,
5335,
31,
3639,
930,
18,
1650,
273,
284,
3402,
6289,
18,
588,
3098,
12,
881,
266,
904,
1769,
3639,
309,
261,
2956,
18,
1650,
480,
446,
13,
288,
5411,
930,
18,
3239,
273,
425,
3239,
31,
3639,
289,
3639,
368,
745,
4919,
3639,
309,
261,
74,
2519,
1503,
480,
446,
597,
401,
74,
3386,
6433,
2244,
3233,
3783,
13,
288,
5411,
309,
16051,
291,
1921,
13,
288,
7734,
284,
2519,
1503,
18,
409,
1046,
12,
2956,
16,
279,
2
] |
public PmdThreadFactory(Report report, RuleSetFactory ruleSetFactory) { this.report = report;
|
public PmdThreadFactory(RuleSetFactory ruleSetFactory) {
|
public PmdThreadFactory(Report report, RuleSetFactory ruleSetFactory) { this.report = report; this.ruleSetFactory = ruleSetFactory; }
|
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/70ef1ccc2fb76e2d90633f00a7a480a9d17711ff/PMD.java/buggy/pmd/src/net/sourceforge/pmd/PMD.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
453,
1264,
3830,
1733,
12,
4820,
2605,
16,
6781,
694,
1733,
31897,
1733,
13,
288,
5411,
333,
18,
6006,
273,
2605,
31,
5411,
333,
18,
5345,
694,
1733,
273,
31897,
1733,
31,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
453,
1264,
3830,
1733,
12,
4820,
2605,
16,
6781,
694,
1733,
31897,
1733,
13,
288,
5411,
333,
18,
6006,
273,
2605,
31,
5411,
333,
18,
5345,
694,
1733,
273,
31897,
1733,
31,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
assertEquals("length violation on MediaItem.0, 21 bytes is too long for MediaItem#fileData", e.getMessage());
|
assertEquals("length violation on MediaTestItem.0, 21 bytes is too long for MediaTestItem#fileData", e.getMessage());
|
public void testData() throws IOException { assertEquals(0, data0.length); assertEquals(4, data4.length); assertEquals(6, data6.length); assertEquals(8, data8.length); assertEquals(20, data20.length); assertEquals(21, data21.length); assertEqualsUnmodifiable(Arrays.asList(new Feature[]{ item.name, item.file, item.file.getData(), item.file.getMimeMajor(), item.file.getMimeMinor(), item.file.getLastModified(), item.image, item.image.getData(), item.image.getMimeMinor(), item.image.getLastModified(), item.photo, item.photo.getData(), item.photo.getLastModified(), item.foto, item.nameServer, }), item.TYPE.getFeatures()); // file assertEquals(null, item.file.getFixedMimeMajor()); assertEquals(null, item.file.getFixedMimeMinor()); assertEquals(20, item.file.getMaximumLength()); final DataAttribute fileData = item.file.getData(); assertSame(item.TYPE, fileData.getType()); assertSame("fileData", fileData.getName()); assertEquals(20, fileData.getMaximumLength()); assertEqualsUnmodifiable(list(item.file), fileData.getPatterns()); assertSame(item.file, Media.get(fileData)); final StringAttribute fileMajor = item.file.getMimeMajor(); assertSame(item.TYPE, fileMajor.getType()); assertEquals("fileMajor", fileMajor.getName()); assertEqualsUnmodifiable(list(item.file), fileMajor.getPatterns()); final StringAttribute fileMinor = item.file.getMimeMinor(); assertSame(item.TYPE, fileMinor.getType()); assertEquals("fileMinor", fileMinor.getName()); assertEqualsUnmodifiable(list(item.file), fileMinor.getPatterns()); final DateAttribute fileLastModified = item.file.getLastModified(); assertSame(item.TYPE, fileLastModified.getType()); assertEquals("fileLastModified", fileLastModified.getName()); assertEqualsUnmodifiable(list(item.file), fileLastModified.getPatterns()); assertSame(fileLastModified, item.file.getIsNull()); assertFileNull(); { final Date before = new Date(); item.setFile(stream(data4), "fileMajor/fileMinor"); final Date after = new Date(); assertStreamClosed(); assertFile(data4, before, after, "fileMajor/fileMinor", ".fileMajor.fileMinor"); } { final Date before = new Date(); item.setFile(stream(data6), "fileMajor2/fileMinor2"); final Date after = new Date(); assertStreamClosed(); assertFile(data6, before, after, "fileMajor2/fileMinor2", ".fileMajor2.fileMinor2"); try { item.setFile(stream(data4), "illegalContentType"); fail(); } catch(IllegalContentTypeException e) { assertStreamClosed(); assertEquals("illegalContentType", e.getMessage()); assertFile(data6, before, after, "fileMajor2/fileMinor2", ".fileMajor2.fileMinor2"); } } assertExtension("image/jpeg", ".jpg"); assertExtension("image/pjpeg", ".jpg"); assertExtension("image/png", ".png"); assertExtension("image/gif", ".gif"); assertExtension("text/html", ".html"); assertExtension("text/plain", ".txt"); assertExtension("text/css", ".css"); assertExtension("application/java-archive", ".jar"); if(!oracle) { final Date before = new Date(); item.setFile(stream(data0), "emptyMajor/emptyMinor"); final Date after = new Date(); assertStreamClosed(); assertFile(data0, before, after, "emptyMajor/emptyMinor", ".emptyMajor.emptyMinor"); } item.setFile((InputStream)null, null); assertFileNull(); { final Date before = new Date(); item.setFile(file(data8), "emptyMajor/emptyMinor"); final Date after = new Date(); assertFile(data8, before, after, "emptyMajor/emptyMinor", ".emptyMajor.emptyMinor"); } item.setFile((File)null, null); assertFileNull(); { final Date before = new Date(); item.setFile(data8, "emptyMajor/emptyMinor"); final Date after = new Date(); assertFile(data8, before, after, "emptyMajor/emptyMinor", ".emptyMajor.emptyMinor"); } item.setFile((byte[])null, null); assertFileNull(); { final Date before = new Date(); item.setFile(data20, "emptyMajor/emptyMinor"); final Date after = new Date(); assertFile(data20, before, after, "emptyMajor/emptyMinor", ".emptyMajor.emptyMinor"); try { item.setFile(data21, "emptyMajorLong/emptyMinorLong"); fail(); } catch(DataLengthViolationException e) { assertSame(fileData, e.getDataAttribute()); assertSame(fileData, e.getFeature()); assertSame(item, e.getItem()); assertEquals("length violation on MediaItem.0, 21 bytes is too long for MediaItem#fileData", e.getMessage()); } assertFile(data20, before, after, "emptyMajor/emptyMinor", ".emptyMajor.emptyMinor"); try { item.setFile(file(data21), "emptyMajorLong/emptyMinorLong"); fail(); } catch(DataLengthViolationException e) { assertSame(fileData, e.getDataAttribute()); assertSame(fileData, e.getFeature()); assertSame(item, e.getItem()); assertEquals("length violation on MediaItem.0, 21 bytes is too long for MediaItem#fileData", e.getMessage()); } assertFile(data20, before, after, "emptyMajor/emptyMinor", ".emptyMajor.emptyMinor"); try { item.setFile(stream(data21), "emptyMajorLong/emptyMinorLong"); fail(); } catch(DataLengthViolationException e) { assertSame(fileData, e.getDataAttribute()); assertSame(fileData, e.getFeature()); assertSame(item, e.getItem()); assertEquals("length violation on MediaItem.0, is too long for MediaItem#fileData", e.getMessage()); } assertStreamClosed(); //assertFile(data20, before, after, "emptyMajorLong/emptyMinorLong", ".emptyMajorLong.emptyMinorLong"); TODO } item.setFile((byte[])null, null); assertFileNull(); // image assertEquals("image", item.image.getFixedMimeMajor()); assertEquals(null, item.image.getFixedMimeMinor()); assertEquals(Media.DEFAULT_LENGTH, item.image.getMaximumLength()); final DataAttribute imageData = item.image.getData(); assertSame(item.TYPE, imageData.getType()); assertSame("imageData", imageData.getName()); assertEquals(Media.DEFAULT_LENGTH, imageData.getMaximumLength()); assertEqualsUnmodifiable(list(item.image), imageData.getPatterns()); assertSame(item.image, Media.get(imageData)); assertEquals(null, item.image.getMimeMajor()); final StringAttribute imageMinor = item.image.getMimeMinor(); assertSame(item.TYPE, imageMinor.getType()); assertEquals("imageMinor", imageMinor.getName()); assertEqualsUnmodifiable(list(item.image), imageMinor.getPatterns()); final DateAttribute imageLastModified = item.image.getLastModified(); assertSame(item.TYPE, imageLastModified.getType()); assertEquals("imageLastModified", imageLastModified.getName()); assertEqualsUnmodifiable(list(item.image), imageLastModified.getPatterns()); assertSame(imageLastModified, item.image.getIsNull()); assertImageNull(); item.setImage(stream(data4), "image/imageMinor"); assertStreamClosed(); assertImage(data4, "image/imageMinor", ".image.imageMinor"); item.setImage(stream(data6), "image/jpeg"); assertStreamClosed(); assertImage(data6, "image/jpeg", ".jpg"); try { item.setImage(stream(data4), "illegalContentType"); fail(); } catch(IllegalContentTypeException e) { assertStreamClosed(); assertEquals("illegalContentType", e.getMessage()); assertImage(data6, "image/jpeg", ".jpg"); } try { item.setImage(stream(data4), "text/html"); fail(); } catch(IllegalContentTypeException e) { assertStreamClosed(); assertEquals("text/html", e.getMessage()); assertImage(data6, "image/jpeg", ".jpg"); } item.setImage((InputStream)null, null); assertImageNull(); // photo assertEquals("image", item.photo.getFixedMimeMajor()); assertEquals("jpeg", item.photo.getFixedMimeMinor()); assertEquals(2000, item.photo.getMaximumLength()); final DataAttribute photoData = item.photo.getData(); assertSame(item.TYPE, photoData.getType()); assertSame("photoData", photoData.getName()); assertEquals(2000, photoData.getMaximumLength()); assertEqualsUnmodifiable(list(item.photo), photoData.getPatterns()); assertSame(item.photo, Media.get(photoData)); assertEquals(null, item.photo.getMimeMajor()); assertEquals(null, item.photo.getMimeMinor()); final DateAttribute photoLastModified = item.photo.getLastModified(); assertSame(item.TYPE, photoLastModified.getType()); assertEquals("photoLastModified", photoLastModified.getName()); assertEqualsUnmodifiable(list(item.photo), photoLastModified.getPatterns()); assertSame(photoLastModified, item.photo.getIsNull()); assertPhotoNull(); item.setPhoto(stream(data4), "image/jpeg"); assertStreamClosed(); assertPhoto(data4); item.setPhoto(stream(data6), "image/jpeg"); assertStreamClosed(); assertPhoto(data6); try { item.setPhoto(stream(data4), "illegalContentType"); fail(); } catch(IllegalContentTypeException e) { assertStreamClosed(); assertEquals("illegalContentType", e.getMessage()); assertPhoto(data6); } try { item.setPhoto(stream(data4), "image/png"); fail(); } catch(IllegalContentTypeException e) { assertStreamClosed(); assertEquals("image/png", e.getMessage()); assertPhoto(data6); } item.setPhoto((InputStream)null, null); assertPhotoNull(); // foto assertEquals(item.TYPE, item.foto.getType()); assertEquals("foto", item.foto.getName()); assertSame(item.photo, item.foto.getTarget()); // nameServer assertEquals(item.TYPE, item.nameServer.getType()); assertEquals("nameServer", item.nameServer.getName()); assertSame(item.name, item.nameServer.getSource()); // logs ----------------------------------------------- assertEquals(0, item.photo.noSuchItem.get()); assertEquals(0, item.photo.dataIsNull.get()); assertEquals(0, item.photo.notModified.get()); assertEquals(0, item.photo.delivered.get()); item.photo.noSuchItem.increment(); assertEquals(1, item.photo.noSuchItem.get()); assertEquals(0, item.photo.dataIsNull.get()); assertEquals(0, item.photo.notModified.get()); assertEquals(0, item.photo.delivered.get()); item.photo.noSuchItem.increment(); item.photo.dataIsNull.increment(); item.photo.notModified.increment(); item.photo.delivered.increment(); assertEquals(2, item.photo.noSuchItem.get()); assertEquals(1, item.photo.dataIsNull.get()); assertEquals(1, item.photo.notModified.get()); assertEquals(1, item.photo.delivered.get()); }
|
50290 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50290/33089a042893b053f97a739e57e31c1d1a72185c/MediaTest.java/clean/runtime/testsrc/com/exedio/cope/pattern/MediaTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
751,
1435,
1216,
1860,
202,
95,
202,
202,
11231,
8867,
12,
20,
16,
501,
20,
18,
2469,
1769,
202,
202,
11231,
8867,
12,
24,
16,
501,
24,
18,
2469,
1769,
202,
202,
11231,
8867,
12,
26,
16,
501,
26,
18,
2469,
1769,
202,
202,
11231,
8867,
12,
28,
16,
501,
28,
18,
2469,
1769,
202,
202,
11231,
8867,
12,
3462,
16,
501,
3462,
18,
2469,
1769,
202,
202,
11231,
8867,
12,
5340,
16,
501,
5340,
18,
2469,
1769,
9506,
202,
11231,
8867,
984,
13388,
12,
12726,
18,
345,
682,
12,
2704,
7881,
63,
7073,
9506,
202,
1726,
18,
529,
16,
9506,
202,
1726,
18,
768,
16,
9506,
202,
1726,
18,
768,
18,
588,
751,
9334,
9506,
202,
1726,
18,
768,
18,
588,
13320,
17581,
9334,
9506,
202,
1726,
18,
768,
18,
588,
13320,
19549,
9334,
9506,
202,
1726,
18,
768,
18,
588,
14747,
9334,
9506,
202,
1726,
18,
2730,
16,
9506,
202,
1726,
18,
2730,
18,
588,
751,
9334,
9506,
202,
1726,
18,
2730,
18,
588,
13320,
19549,
9334,
9506,
202,
1726,
18,
2730,
18,
588,
14747,
9334,
9506,
202,
1726,
18,
17232,
16,
9506,
202,
1726,
18,
17232,
18,
588,
751,
9334,
9506,
202,
1726,
18,
17232,
18,
588,
14747,
9334,
9506,
202,
1726,
18,
74,
6302,
16,
9506,
202,
1726,
18,
529,
2081,
16,
1082,
202,
97,
3631,
761,
18,
2399,
18,
588,
8696,
10663,
202,
202,
759,
585,
202,
202,
11231,
8867,
12,
2011,
16,
761,
18,
768,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
751,
1435,
1216,
1860,
202,
95,
202,
202,
11231,
8867,
12,
20,
16,
501,
20,
18,
2469,
1769,
202,
202,
11231,
8867,
12,
24,
16,
501,
24,
18,
2469,
1769,
202,
202,
11231,
8867,
12,
26,
16,
501,
26,
18,
2469,
1769,
202,
202,
11231,
8867,
12,
28,
16,
501,
28,
18,
2469,
1769,
202,
202,
11231,
8867,
12,
3462,
16,
501,
3462,
18,
2469,
1769,
202,
202,
11231,
8867,
12,
5340,
16,
501,
5340,
18,
2469,
1769,
9506,
202,
11231,
8867,
984,
13388,
12,
12726,
18,
345,
682,
12,
2704,
7881,
63,
7073,
9506,
202,
1726,
18,
529,
16,
9506,
202,
1726,
18,
768,
16,
9506,
202,
1726,
18,
768,
18,
588,
751,
2
] |
return widget instanceof AbstractTrimWidget;
|
return widget instanceof AbstractWorkbenchTrimWidget;
|
private final boolean isMoveableTrimWidget() { if (loadWidget()) { return widget instanceof AbstractTrimWidget; } return false; }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/9dd8f116eb524b7b4dec91164a1b51948397802c/WidgetProxy.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/WidgetProxy.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
1250,
353,
7607,
429,
14795,
4609,
1435,
288,
202,
202,
430,
261,
945,
4609,
10756,
288,
1082,
202,
2463,
3604,
1276,
4115,
14795,
4609,
31,
202,
202,
97,
9506,
202,
2463,
629,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
1250,
353,
7607,
429,
14795,
4609,
1435,
288,
202,
202,
430,
261,
945,
4609,
10756,
288,
1082,
202,
2463,
3604,
1276,
4115,
14795,
4609,
31,
202,
202,
97,
9506,
202,
2463,
629,
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
] |
this.width=width;
|
this.width = width;
|
public TblColumn(int width) { this.width=width; }
|
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/cd264ba6a67a155375a4ba85cdb6dc35503ef593/MIFDocument.java/buggy/src/org/apache/fop/mif/MIFDocument.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
399,
3083,
1494,
12,
474,
1835,
13,
288,
1082,
202,
2211,
18,
2819,
33,
2819,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
399,
3083,
1494,
12,
474,
1835,
13,
288,
1082,
202,
2211,
18,
2819,
33,
2819,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
ByteBuffer bborg; int idx; int inext; int iposition;
|
while ((i = sIS.read(outbuf,total,outbuf.length-total)) != -1) { total += i; if (i == 0 || total == outbuf.length) break; } sProc.waitFor();
|
public ArrayList scanEmail (ArrayList bufs) throws IOException,InterruptedException { if (bufs == null || bufs.size() == 0) return null; Process sProc = Runtime.getRuntime().exec(zSpamCmd); ReadableByteChannel sIS = Channels.newChannel(sProc.getInputStream()); WritableByteChannel sOS = Channels.newChannel(sProc.getOutputStream()); ByteBuffer bborg; int idx; int inext; int iposition; for (idx = 0; idx < bufs.size(); idx++) { bborg = (ByteBuffer)bufs.get(idx); //zLog.debug("write buf[" + idx + "], " + bborg); //iposition = bborg.position(); /* save position(), get() increments it */ //bborg.flip(); //inext = 0; //while (inext < iposition) //zLog.debug("[" + inext++ + "]" + (char)bborg.get()); bborg.flip(); sOS.write(bborg); } sOS.close(); int icapacity = READSZ; ByteBuffer bbread = ByteBuffer.allocate(icapacity); ArrayList al = new ArrayList(bufs.size()); int istart; int iend; int isz; byte nextb; boolean prevIsCR; idx = 0; while (true) { if (sIS.read(bbread) == -1) break; iposition = bbread.position(); /* update limit so that we don't process past position */ bbread.limit(iposition); //zLog.debug("newline: " + (int)'\n'); //zLog.debug("read buf[" + idx + "], " + bbread); //bbread.flip(); //inext = 0; //while (inext < iposition) //{ //zLog.debug("[" + inext + "]" + (char)bbread.get(inext)); //zLog.debug("(" + (int)bbread.get(inext) + ")"); //inext++; //} //bbread.position(iposition); /* restore */ //bbread.limit(iposition); /* restore */ istart = 0; /* for every read, read buffer position starts at 0 */ iend = 0; bbread.flip(); prevIsCR = false; while (false != bbread.hasRemaining()) { for (inext = istart; inext < iposition; inext++) { nextb = bbread.get(inext); if ((byte) '\r' == nextb) { prevIsCR = true; } else if ((byte) '\n' == nextb) { iend = inext + 1; break; /* for */ } else { prevIsCR = false; } } if (iend == istart) { /* last line in read buffer is incomplete * so read rest of line */ break; /* while */ } //bbread.position(istart); bbread.limit(iend); isz = false == prevIsCR ? (iend - istart + 1) : (iend - istart); if (idx < bufs.size()) { /* recycle org buffer */ bborg = (ByteBuffer)bufs.get(idx++); if (isz > bborg.capacity()) { /* org buffer is too small, create exact fit buffer */ bborg = ByteBuffer.allocate(isz); --idx; /* try to use org buffer again later */ } bborg.clear(); } else { /* we're out of org buffers, create new exact fit buffer */ bborg = ByteBuffer.allocate(isz); } bborg.put(bbread); if (false == prevIsCR) { /* SpamAssassin doesn't terminate lines that * it adds to message * with CRLF sequence * so we'll replace LF with CRLF */ bborg.put((isz - 2), (byte) '\r'); /* CR */ bborg.put((isz - 1), (byte) '\n'); /* LF */ /* we must manually update position for this put method */ bborg.position(isz); } bborg.limit(isz); /* we set limit since we may not have allocated buffer to exact size (we may be using one of original buffers) */ istart = iend; bbread.position(istart); bbread.limit(iposition); al.add(bborg); } if (false == bbread.hasRemaining()) { bbread.clear(); } else { if (0 == istart) { /* read buffer is full but too small so increase its size */ icapacity += READSZ; ByteBuffer bbtmp = ByteBuffer.allocate(icapacity); bbtmp.put(bbread); bbread = bbtmp; } else { /* else shift read buffer contents to start of buffer */ bbread.compact(); } } } int iexit; sProc.waitFor(); if ((iexit = sProc.exitValue()) != 0) throw new IOException("SpamAssassin exited with: " + iexit); sIS.close(); return al; }
|
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/3e15d48b9616befd19377e24d69b0c9b9fe215fa/SpamAssassin.java/buggy/tran/email/main/com/metavize/tran/email/SpamAssassin.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2407,
4135,
4134,
261,
19558,
1681,
87,
13,
1216,
1860,
16,
24485,
503,
565,
288,
3639,
309,
261,
4385,
87,
422,
446,
747,
1681,
87,
18,
1467,
1435,
422,
374,
13,
5411,
327,
446,
31,
3639,
4389,
272,
15417,
273,
2509,
18,
588,
5576,
7675,
4177,
12,
94,
3389,
301,
5931,
1769,
3639,
19852,
3216,
2909,
272,
5127,
273,
25263,
18,
2704,
2909,
12,
87,
15417,
18,
588,
4348,
10663,
3639,
14505,
3216,
2909,
272,
4618,
273,
25263,
18,
2704,
2909,
12,
87,
15417,
18,
588,
4632,
10663,
3639,
7400,
7129,
3341,
31,
3639,
509,
2067,
31,
3639,
509,
316,
408,
31,
3639,
509,
277,
3276,
31,
3639,
364,
261,
3465,
273,
374,
31,
2067,
411,
1681,
87,
18,
1467,
5621,
2067,
27245,
288,
5411,
7129,
3341,
273,
261,
12242,
13,
4385,
87,
18,
588,
12,
3465,
1769,
5411,
368,
94,
1343,
18,
4148,
2932,
2626,
1681,
9614,
397,
2067,
397,
315,
6487,
315,
397,
7129,
3341,
1769,
5411,
368,
625,
538,
608,
273,
7129,
3341,
18,
3276,
5621,
1748,
1923,
1754,
9334,
336,
1435,
17071,
518,
1195,
5411,
368,
9897,
3341,
18,
12357,
5621,
5411,
368,
267,
408,
273,
374,
31,
5411,
368,
17523,
261,
267,
408,
411,
277,
3276,
13,
1171,
368,
94,
1343,
18,
4148,
2932,
9614,
397,
316,
408,
9904,
397,
9870,
397,
261,
3001,
13,
9897,
3341,
18,
588,
10663,
5411,
7129,
3341,
18,
12357,
5621,
5411,
272,
4618,
18,
2626,
12,
9897,
3341,
1769,
3639,
289,
3639,
272,
4618,
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,
2407,
4135,
4134,
261,
19558,
1681,
87,
13,
1216,
1860,
16,
24485,
503,
565,
288,
3639,
309,
261,
4385,
87,
422,
446,
747,
1681,
87,
18,
1467,
1435,
422,
374,
13,
5411,
327,
446,
31,
3639,
4389,
272,
15417,
273,
2509,
18,
588,
5576,
7675,
4177,
12,
94,
3389,
301,
5931,
1769,
3639,
19852,
3216,
2909,
272,
5127,
273,
25263,
18,
2704,
2909,
12,
87,
15417,
18,
588,
4348,
10663,
3639,
14505,
3216,
2909,
272,
4618,
273,
25263,
18,
2704,
2909,
12,
87,
15417,
18,
588,
4632,
10663,
3639,
7400,
7129,
3341,
31,
3639,
509,
2067,
31,
3639,
509,
316,
408,
31,
3639,
509,
277,
3276,
31,
3639,
364,
261,
3465,
273,
374,
31,
2067,
411,
1681,
2
] |
if (desc.getId().equals(id)) return desc;
|
if (desc.getId().equals(id)) { return desc; }
|
public IActionSetDescriptor findActionSet(String id) { Iterator i = children.iterator(); while (i.hasNext()) { IActionSetDescriptor desc = (IActionSetDescriptor) i.next(); if (desc.getId().equals(id)) return desc; } return null; }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/ActionSetRegistry.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/ActionSetRegistry.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
1803,
694,
3187,
1104,
1803,
694,
12,
780,
612,
13,
288,
3639,
4498,
277,
273,
2325,
18,
9838,
5621,
3639,
1323,
261,
77,
18,
5332,
2134,
10756,
288,
5411,
467,
1803,
694,
3187,
3044,
273,
261,
45,
1803,
694,
3187,
13,
277,
18,
4285,
5621,
5411,
309,
261,
5569,
18,
26321,
7675,
14963,
12,
350,
3719,
7734,
327,
3044,
31,
3639,
289,
3639,
327,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
1803,
694,
3187,
1104,
1803,
694,
12,
780,
612,
13,
288,
3639,
4498,
277,
273,
2325,
18,
9838,
5621,
3639,
1323,
261,
77,
18,
5332,
2134,
10756,
288,
5411,
467,
1803,
694,
3187,
3044,
273,
261,
45,
1803,
694,
3187,
13,
277,
18,
4285,
5621,
5411,
309,
261,
5569,
18,
26321,
7675,
14963,
12,
350,
3719,
7734,
327,
3044,
31,
3639,
289,
3639,
327,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { keyring = new GnuPublicKeyring("HMAC-SHA-1", 20); } if (!(keyring instanceof IPublicKeyring)) { throw new IllegalStateException("not a public keyring"); } ((IPublicKeyring) keyring).putCertificate(alias, cert);
|
log.entering(this.getClass().getName(), "engineSetCertificateEntry", new Object[] { alias, cert }); ensureLoaded(); publicKR.putCertificate(alias, cert); log.exiting(this.getClass().getName(), "engineSetCertificateEntry");
|
public void engineSetCertificateEntry(String alias, Certificate cert) { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { keyring = new GnuPublicKeyring("HMAC-SHA-1", 20); } if (!(keyring instanceof IPublicKeyring)) { throw new IllegalStateException("not a public keyring"); } ((IPublicKeyring) keyring).putCertificate(alias, cert); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/GnuKeyring.java/clean/core/src/classpath/gnu/gnu/javax/crypto/jce/keyring/GnuKeyring.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
4073,
694,
4719,
1622,
12,
780,
2308,
16,
6660,
3320,
13,
225,
288,
565,
309,
16051,
4230,
13,
1377,
288,
3639,
604,
394,
5477,
7566,
902,
4203,
8863,
1377,
289,
565,
309,
261,
856,
8022,
422,
446,
13,
1377,
288,
3639,
20923,
273,
394,
611,
13053,
9632,
8022,
2932,
25624,
17,
8325,
17,
21,
3113,
4200,
1769,
1377,
289,
565,
309,
16051,
12,
856,
8022,
1276,
2971,
24312,
8022,
3719,
1377,
288,
3639,
604,
394,
5477,
2932,
902,
279,
1071,
20923,
8863,
1377,
289,
565,
14015,
2579,
24312,
8022,
13,
20923,
2934,
458,
4719,
12,
4930,
16,
3320,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
1071,
918,
4073,
694,
4719,
1622,
12,
780,
2308,
16,
6660,
3320,
13,
225,
288,
565,
309,
16051,
4230,
13,
1377,
288,
3639,
604,
394,
5477,
7566,
902,
4203,
8863,
1377,
289,
565,
309,
261,
856,
8022,
422,
446,
13,
1377,
288,
3639,
20923,
273,
394,
611,
13053,
9632,
8022,
2932,
25624,
17,
8325,
17,
21,
3113,
4200,
1769,
1377,
289,
565,
309,
16051,
12,
856,
8022,
1276,
2971,
24312,
8022,
3719,
1377,
288,
3639,
604,
394,
5477,
2932,
902,
279,
1071,
20923,
8863,
1377,
289,
565,
14015,
2579,
24312,
8022,
13,
20923,
2934,
458,
4719,
12,
4930,
16,
3320,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (params.get(parameter.getName()) != null) {
|
if (_params.get(parameter.getName()) != null) {
|
public void addParameter(JParameter parameter) throws IllegalArgumentException { if (parameter == null) return; //-- check current params if (params.get(parameter.getName()) != null) { StringBuffer err = new StringBuffer(); err.append("A parameter already exists for the constructor, "); err.append(this.declaringClass.getName()); err.append(", with the name: "); err.append(parameter.getName()); throw new IllegalArgumentException(err.toString()); } params.put(parameter.getName(), parameter); //-- be considerate and add the class name to the //-- declaring class's list of imports if (declaringClass != null) { JType jType = parameter.getType(); if (!jType.isPrimitive()) { declaringClass.addImport( jType.getName() ); } } } //-- addParameter
|
57307 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57307/639ed93115321ad51c2450f306c4d50d146ede46/JConstructor.java/buggy/src/main/java/org/exolab/javasource/JConstructor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
14436,
12,
46,
1662,
1569,
13,
540,
1216,
2754,
565,
288,
9079,
309,
261,
6775,
422,
446,
13,
327,
31,
3639,
368,
413,
866,
783,
859,
3639,
309,
261,
67,
2010,
18,
588,
12,
6775,
18,
17994,
10756,
480,
446,
13,
288,
5411,
6674,
393,
273,
394,
6674,
5621,
5411,
393,
18,
6923,
2932,
37,
1569,
1818,
1704,
364,
326,
3885,
16,
315,
1769,
5411,
393,
18,
6923,
12,
2211,
18,
8840,
14682,
18,
17994,
10663,
5411,
393,
18,
6923,
2932,
16,
598,
326,
508,
30,
315,
1769,
5411,
393,
18,
6923,
12,
6775,
18,
17994,
10663,
5411,
604,
394,
2754,
12,
370,
18,
10492,
10663,
3639,
289,
3639,
859,
18,
458,
12,
6775,
18,
17994,
9334,
1569,
1769,
7734,
368,
413,
506,
5260,
340,
471,
527,
326,
667,
508,
358,
326,
3639,
368,
413,
20845,
667,
1807,
666,
434,
10095,
3639,
309,
261,
8840,
14682,
480,
446,
13,
288,
5411,
804,
559,
525,
559,
273,
1569,
18,
588,
559,
5621,
5411,
309,
16051,
78,
559,
18,
291,
9840,
10756,
288,
7734,
3496,
14682,
18,
1289,
5010,
12,
525,
559,
18,
17994,
1435,
11272,
5411,
289,
3639,
289,
565,
289,
368,
413,
14436,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
14436,
12,
46,
1662,
1569,
13,
540,
1216,
2754,
565,
288,
9079,
309,
261,
6775,
422,
446,
13,
327,
31,
3639,
368,
413,
866,
783,
859,
3639,
309,
261,
67,
2010,
18,
588,
12,
6775,
18,
17994,
10756,
480,
446,
13,
288,
5411,
6674,
393,
273,
394,
6674,
5621,
5411,
393,
18,
6923,
2932,
37,
1569,
1818,
1704,
364,
326,
3885,
16,
315,
1769,
5411,
393,
18,
6923,
12,
2211,
18,
8840,
14682,
18,
17994,
10663,
5411,
393,
18,
6923,
2932,
16,
598,
326,
508,
30,
315,
1769,
5411,
393,
18,
6923,
12,
6775,
18,
17994,
10663,
5411,
604,
394,
2754,
12,
370,
18,
10492,
10663,
3639,
289,
3639,
859,
18,
458,
12,
6775,
18,
17994,
2
] |
yy_ScanError(YY_PUSHBACK_2BIG);
|
zzScanError(ZZ_PUSHBACK_2BIG);
|
private void yypushback(int number) { if ( number > yylength() ) yy_ScanError(YY_PUSHBACK_2BIG); yy_markedPos -= number; }
|
52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/689ed6b27a2e7acac33d90a4e6fea2ddf018345b/CSSTokenizerFilter.java/clean/src/freenet/clients/http/filter/CSSTokenizerFilter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
677,
879,
1218,
823,
12,
474,
1300,
13,
225,
288,
565,
309,
261,
1300,
405,
9016,
2469,
1435,
262,
1377,
11273,
7972,
668,
12,
27096,
67,
30348,
8720,
67,
22,
19044,
1769,
565,
9016,
67,
3355,
329,
1616,
3947,
1300,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
282,
3238,
918,
677,
879,
1218,
823,
12,
474,
1300,
13,
225,
288,
565,
309,
261,
1300,
405,
9016,
2469,
1435,
262,
1377,
11273,
7972,
668,
12,
27096,
67,
30348,
8720,
67,
22,
19044,
1769,
565,
9016,
67,
3355,
329,
1616,
3947,
1300,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
synchronized (this.browserControlCanvas.getTreeLock()) {
|
synchronized (this) {
|
void addListener(WebclientEventListener newListener){ Assert.assert(-1 != nativeWebShell); Assert.assert(null != windowControl); synchronized (this.browserControlCanvas.getTreeLock()) { if (null == listenersToAdd) { listenersToAdd = new Vector(); } listenersToAdd.add(newListener); }}
|
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/b10d328efa66a4ddccefc2bf267d689b6e0d615a/NativeEventThread.java/clean/java/webclient/classes_spec/org/mozilla/webclient/wrapper_native/NativeEventThread.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
918,
12087,
12,
4079,
2625,
7375,
394,
2223,
15329,
565,
5452,
18,
11231,
19236,
21,
480,
6448,
4079,
13220,
1769,
565,
5452,
18,
11231,
12,
2011,
480,
2742,
3367,
1769,
565,
3852,
261,
2211,
13,
288,
3639,
309,
261,
2011,
422,
4679,
13786,
13,
288,
5411,
4679,
13786,
273,
394,
5589,
5621,
3639,
289,
3639,
4679,
13786,
18,
1289,
12,
2704,
2223,
1769,
565,
10523,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
918,
12087,
12,
4079,
2625,
7375,
394,
2223,
15329,
565,
5452,
18,
11231,
19236,
21,
480,
6448,
4079,
13220,
1769,
565,
5452,
18,
11231,
12,
2011,
480,
2742,
3367,
1769,
565,
3852,
261,
2211,
13,
288,
3639,
309,
261,
2011,
422,
4679,
13786,
13,
288,
5411,
4679,
13786,
273,
394,
5589,
5621,
3639,
289,
3639,
4679,
13786,
18,
1289,
12,
2704,
2223,
1769,
565,
10523,
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
] |
/* logger.debug("MouseMoved Event Props: mode=" + c2dm.getDrawModeString() + ", trigger=" + event.isPopupTrigger() + ", Button number: " + event.getButton() + ", Click count: " + event.getClickCount()); */
|
public void mouseMoved(MouseEvent event) { // logger.debug("Mouse moved"); int mouseX = getWorldCoordinate(event.getX()); int mouseY = getWorldCoordinate(event.getY()); Atom atomInRange; Bond bondInRange; /** highlighting **/ atomInRange = getAtomInRange(mouseX, mouseY); if (atomInRange != null) { r2dm.setHighlightedAtom(atomInRange); r2dm.setHighlightedBond(null); } else { r2dm.setHighlightedAtom(null); bondInRange = getBondInRange(mouseX, mouseY); if (bondInRange != null) { r2dm.setHighlightedBond(bondInRange); } else { r2dm.setHighlightedBond(null); } } }
|
1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/a93e8e07e5d68ce4ee8d96990bd2b958c9d22d9d/JCPController2D.java/clean/src/org/openscience/cdk/controller/JCPController2D.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1748,
1194,
18,
4148,
2932,
9186,
25317,
2587,
1186,
1121,
30,
1965,
1546,
397,
276,
22,
10956,
18,
588,
6493,
2309,
780,
1435,
397,
3104,
3080,
1546,
397,
871,
18,
291,
13770,
6518,
1435,
397,
3104,
12569,
1300,
30,
315,
397,
871,
18,
588,
3616,
1435,
397,
3104,
18417,
1056,
30,
315,
397,
871,
18,
588,
6563,
1380,
10663,
1195,
1748,
1194,
18,
4148,
2932,
9186,
25317,
2587,
1186,
1121,
30,
1965,
1546,
397,
276,
22,
10956,
18,
588,
6493,
2309,
780,
1435,
397,
3104,
3080,
1546,
397,
871,
18,
291,
13770,
6518,
1435,
397,
3104,
12569,
1300,
30,
315,
397,
871,
18,
588,
3616,
1435,
397,
3104,
18417,
1056,
30,
315,
397,
871,
18,
588,
6563,
1380,
10663,
1195,
1748,
1194,
18,
4148,
2932,
9186,
25317,
2587,
1186,
1121,
30,
1965,
1546,
397,
276,
22,
10956,
18,
588,
6493,
2309,
780,
1435,
397,
3104,
3080,
1546,
397,
871,
18,
291,
13770,
6518,
1435,
397,
3104,
12569,
1300,
30,
315,
397,
871,
18,
588,
3616,
1435,
397,
3104,
18417,
1056,
30,
315,
397,
871,
18,
588,
6563,
1380,
10663,
1195,
1748,
1194,
18,
4148,
2932,
9186,
25317,
2587,
1186,
1121,
30,
1965,
1546,
397,
276,
22,
10956,
18,
588,
6493,
2309,
780,
1435,
397,
3104,
3080,
1546,
397,
871,
18,
291,
13770,
6518,
1435,
397,
3104,
12569,
1300,
30,
315,
397,
871,
18,
588,
3616,
1435,
397,
3104,
18417,
1056,
30,
315,
397,
871,
18,
588,
6563,
1380,
10663,
1195,
1748,
1194,
18,
4148,
2932,
9186,
25317,
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,
1748,
1194,
18,
4148,
2932,
9186,
25317,
2587,
1186,
1121,
30,
1965,
1546,
397,
276,
22,
10956,
18,
588,
6493,
2309,
780,
1435,
397,
3104,
3080,
1546,
397,
871,
18,
291,
13770,
6518,
1435,
397,
3104,
12569,
1300,
30,
315,
397,
871,
18,
588,
3616,
1435,
397,
3104,
18417,
1056,
30,
315,
397,
871,
18,
588,
6563,
1380,
10663,
1195,
1748,
1194,
18,
4148,
2932,
9186,
25317,
2587,
1186,
1121,
30,
1965,
1546,
397,
276,
22,
10956,
18,
588,
6493,
2309,
780,
1435,
397,
3104,
3080,
1546,
397,
871,
18,
291,
13770,
6518,
1435,
397,
3104,
12569,
1300,
30,
315,
397,
871,
18,
588,
3616,
1435,
397,
3104,
18417,
1056,
30,
315,
397,
871,
18,
588,
6563,
1380,
10663,
2
] |
|
return InsertInLayoutUtil.editPart2Model( getSelection( ) ).toList( );
|
return InsertInLayoutUtil.editPart2Model( TableUtil.filletCellInSelectionEditorpart( getSelection( ) )).toList( );
|
protected List getElements( ) { return InsertInLayoutUtil.editPart2Model( getSelection( ) ).toList( ); }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/ebb2f0a299e9a6818cbf61d858e1cd609f51ddfd/AddGroupAction.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/actions/AddGroupAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
987,
8886,
12,
262,
202,
95,
202,
202,
2463,
8040,
382,
3744,
1304,
18,
4619,
1988,
22,
1488,
12,
23204,
12,
262,
262,
18,
869,
682,
12,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
987,
8886,
12,
262,
202,
95,
202,
202,
2463,
8040,
382,
3744,
1304,
18,
4619,
1988,
22,
1488,
12,
23204,
12,
262,
262,
18,
869,
682,
12,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
FiniteAlphabet alpha = alphaResolver.resolveAlphabet(identifier);
|
FiniteAlphabet alpha = AlphabetResolver.resolveAlphabet(identifier);
|
private void makeSimilarity() throws BioException { subHitData.putAll(resultData); subHitData.putAll(hitData); // Try to get a valid TokenParser if (tokenParser == null) { String identifier; // Try explicit sequence type first if (subHitData.containsKey("hitSequenceType")) identifier = (String) subHitData.get("hitSequenceType"); // Otherwise try to resolve from the program name (only // works for Blast) else if (subHitData.containsKey("program")) identifier = (String) subHitData.get("program"); else throw new BioException("Failed to determine sequence type"); FiniteAlphabet alpha = alphaResolver.resolveAlphabet(identifier); tokenParser = alpha.getTokenization("token"); } // Set strands of hit on query and subject Strand qStrand = StrandedFeature.POSITIVE; Strand sStrand = StrandedFeature.POSITIVE; // In cases where an explicit strand is given (FASTA DNA, BLASTN) if (subHitData.containsKey("queryStrand") && subHitData.get("queryStrand").equals("minus")) qStrand = StrandedFeature.NEGATIVE; if (subHitData.containsKey("subjectStrand") && subHitData.get("subjectStrand").equals("minus")) sStrand = StrandedFeature.NEGATIVE; // In cases where a frame is given as this contains strand // information (TBLASTN for hit, TBLASTX for both query and // hit) if (subHitData.containsKey("queryFrame") && ((String) subHitData.get("queryFrame")).startsWith("minus")) qStrand = StrandedFeature.NEGATIVE; if (subHitData.containsKey("subjectFrame") && ((String) subHitData.get("subjectFrame")).startsWith("minus")) sStrand = StrandedFeature.NEGATIVE; // Get start/end int qStart = Integer.parseInt((String) subHitData.get("querySequenceStart")); int qEnd = Integer.parseInt((String) subHitData.get("querySequenceEnd")); int sStart = Integer.parseInt((String) subHitData.get("subjectSequenceStart")); int sEnd = Integer.parseInt((String) subHitData.get("subjectSequenceEnd")); // The start/end coordinates from BioJava XML don't follow the // BioJava paradigm of start < end, with orientation given by // the strand property. Rather, they present start/end as // displayed in BLAST output, with the coordinates being // inverted on the reverse strand. We account for this here. if (qStrand == StrandedFeature.NEGATIVE) { int swap = qStart; qStart = qEnd; qEnd = swap; } if (sStrand == StrandedFeature.NEGATIVE) { int swap = sStart; sStart = sEnd; sEnd = swap; } String subjectID = (String) subHitData.get("HitId"); Sequence queryView = makeQueryViewSequence(queryID); Sequence subjectView = makeSubjectViewSequence(subjectID); // Map of Alignment sequences Map labelMap = new HashMap(); try { // Set source to the program name String source = "unknown"; if (subHitData.containsKey("program")) source = (String) subHitData.get("program"); tokenBuffer.setLength(0); tokenBuffer.append((String) subHitData.get("querySequence")); labelMap.put(SimilarityPairFeature.QUERY_LABEL, new SimpleSymbolList(tokenParser, tokenBuffer.substring(0))); tokenBuffer.setLength(0); tokenBuffer.append((String) subHitData.get("subjectSequence")); labelMap.put(SimilarityPairFeature.SUBJECT_LABEL, new SimpleSymbolList(tokenParser, tokenBuffer.substring(0))); double score = 0.0; if (subHitData.containsKey("score")) score = Double.parseDouble((String) subHitData.get("score")); // Query sequence feature SimilarityPairFeature.Template qt = new SimilarityPairFeature.Template(); qt.type = SIMILARITY_PAIR_FEATURE_TYPE; qt.source = source; qt.location = new RangeLocation(qStart, qEnd); qt.strand = qStrand; qt.score = score; qt.annotation = AnnotationFactory.makeAnnotation(subHitData); // Subject sequence feature SimilarityPairFeature.Template st = new SimilarityPairFeature.Template(); st.type = SIMILARITY_PAIR_FEATURE_TYPE; st.source = source; st.location = new RangeLocation(sStart, sEnd); st.strand = sStrand; st.score = score; st.annotation = AnnotationFactory.makeAnnotation(subHitData); Alignment a = new SimpleAlignment(labelMap); qt.alignment = a; st.alignment = a; SimilarityPairFeature qf = (SimilarityPairFeature) queryView.createFeature(qt); SimilarityPairFeature sf = (SimilarityPairFeature) queryView.createFeature(qt); sf.setSibling(qf); qf.setSibling(sf); qf.addChangeListener(ChangeListener.ALWAYS_VETO); sf.addChangeListener(ChangeListener.ALWAYS_VETO); } catch (ChangeVetoException cve) { throw new BioError(cve, "Assertion failure creating SimilarityPairFeature. Template modification vetoed"); } }
|
50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/fcbeda1e0bc8dc82a3c505af04fa6bb0330580f8/SimilarityPairBuilder.java/clean/src/org/biojava/bio/program/ssbind/SimilarityPairBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1221,
16891,
560,
1435,
1216,
21209,
503,
565,
288,
3639,
720,
13616,
751,
18,
458,
1595,
12,
2088,
751,
1769,
3639,
720,
13616,
751,
18,
458,
1595,
12,
15989,
751,
1769,
3639,
368,
6161,
358,
336,
279,
923,
3155,
2678,
3639,
309,
261,
2316,
2678,
422,
446,
13,
3639,
288,
5411,
514,
2756,
31,
5411,
368,
6161,
5515,
3102,
618,
1122,
5411,
309,
261,
1717,
13616,
751,
18,
12298,
653,
2932,
15989,
4021,
559,
6,
3719,
7734,
2756,
273,
261,
780,
13,
720,
13616,
751,
18,
588,
2932,
15989,
4021,
559,
8863,
5411,
368,
5272,
775,
358,
2245,
628,
326,
5402,
508,
261,
3700,
5411,
368,
6330,
364,
605,
2722,
13,
5411,
469,
309,
261,
1717,
13616,
751,
18,
12298,
653,
2932,
12890,
6,
3719,
7734,
2756,
273,
261,
780,
13,
720,
13616,
751,
18,
588,
2932,
12890,
8863,
5411,
469,
7734,
604,
394,
21209,
503,
2932,
2925,
358,
4199,
3102,
618,
8863,
5411,
9458,
1137,
27316,
4190,
273,
2262,
8907,
4301,
18,
10828,
27316,
12,
5644,
1769,
5411,
1147,
2678,
273,
4190,
18,
588,
1345,
1588,
2932,
2316,
8863,
3639,
289,
3639,
368,
1000,
609,
5708,
434,
6800,
603,
843,
471,
3221,
3639,
3978,
464,
1043,
1585,
464,
273,
3978,
5860,
4595,
18,
7057,
16325,
31,
3639,
3978,
464,
272,
1585,
464,
273,
3978,
5860,
4595,
18,
7057,
16325,
31,
3639,
368,
657,
6088,
1625,
392,
5515,
16706,
353,
864,
261,
2046,
882,
37,
463,
11277,
16,
605,
14378,
50,
13,
3639,
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,
377,
3238,
918,
1221,
16891,
560,
1435,
1216,
21209,
503,
565,
288,
3639,
720,
13616,
751,
18,
458,
1595,
12,
2088,
751,
1769,
3639,
720,
13616,
751,
18,
458,
1595,
12,
15989,
751,
1769,
3639,
368,
6161,
358,
336,
279,
923,
3155,
2678,
3639,
309,
261,
2316,
2678,
422,
446,
13,
3639,
288,
5411,
514,
2756,
31,
5411,
368,
6161,
5515,
3102,
618,
1122,
5411,
309,
261,
1717,
13616,
751,
18,
12298,
653,
2932,
15989,
4021,
559,
6,
3719,
7734,
2756,
273,
261,
780,
13,
720,
13616,
751,
18,
588,
2932,
15989,
4021,
559,
8863,
5411,
368,
5272,
775,
358,
2245,
628,
326,
5402,
508,
261,
3700,
5411,
368,
6330,
364,
605,
2722,
13,
5411,
469,
309,
261,
1717,
2
] |
getLogger().debug( "Creating artifact with classifier." ); result = artifactFactory.createArtifactWithClassifier( groupId, artifactId, version, type, classifierBuffer.toString() );
|
classifier = remainingFilename.substring( classifierIndex + 1 ); remainingFilename = remainingFilename.substring( 0, classifierIndex ); result = artifactFactory.createArtifactWithClassifier( groupId, artifactId, remainingFilename, type, classifier );
|
private Artifact buildArtifact( File repositoryBase, String path, ArtifactRepository repository ) { StringTokenizer tokens = new StringTokenizer( path, "/\\" ); Artifact result = null; int numberOfTokens = tokens.countTokens(); if ( numberOfTokens != 3 ) { addKickedOutPath( path ); } else { String groupId = tokens.nextToken(); String type = tokens.nextToken(); if ( !type.endsWith( "s" ) ) { addKickedOutPath( path ); } else { type = type.substring( 0, type.length() - 1 ); // contains artifactId, version, classifier, and extension. String avceGlob = tokens.nextToken(); LinkedList avceTokenList = new LinkedList(); StringTokenizer avceTokenizer = new StringTokenizer( avceGlob, "-" ); while ( avceTokenizer.hasMoreTokens() ) { avceTokenList.addLast( avceTokenizer.nextToken() ); } String lastAvceToken = (String) avceTokenList.removeLast(); boolean valid = true; // TODO: share with other discoverer, use artifact handlers instead if ( lastAvceToken.endsWith( ".tar.gz" ) ) { type = "distribution-tgz"; lastAvceToken = lastAvceToken.substring( 0, lastAvceToken.length() - ".tar.gz".length() ); avceTokenList.addLast( lastAvceToken ); } else if ( lastAvceToken.endsWith( "sources.jar" ) ) { type = "java-source"; lastAvceToken = lastAvceToken.substring( 0, lastAvceToken.length() - ".jar".length() ); avceTokenList.addLast( lastAvceToken ); } else if ( lastAvceToken.endsWith( ".zip" ) ) { type = "distribution-zip"; lastAvceToken = lastAvceToken.substring( 0, lastAvceToken.length() - ".zip".length() ); avceTokenList.addLast( lastAvceToken ); } else { int extPos = lastAvceToken.lastIndexOf( '.' ); if ( extPos > 0 ) { String ext = lastAvceToken.substring( extPos + 1 ); if ( type.equals( ext ) ) { lastAvceToken = lastAvceToken.substring( 0, extPos ); avceTokenList.addLast( lastAvceToken ); } else { addKickedOutPath( path ); valid = false; } } else { // no extension addKickedOutPath( path ); valid = false; } } if ( valid ) { // let's discover the version, and whatever's leftover will be either // a classifier, or part of the artifactId, depending on position. // Since version is at the end, we have to move in from the back. Collections.reverse( avceTokenList ); // TODO: this is obscene - surely a better way? String validVersionParts = "([Dd][Ee][Vv][_.0-9]*)|" + "([Ss][Nn][Aa][Pp][Ss][Hh][Oo][Tt])|" + "([0-9][_.0-9a-zA-Z]*)|" + "([Gg]?[_.0-9ab]*([Pp][Rr][Ee]|[Rr][Cc]|[Gg]|[Mm])[_.0-9]*)|" + "([Aa][Ll][Pp][Hh][Aa][_.0-9]*)|" + "([Bb][Ee][Tt][Aa][_.0-9]*)|" + "([Rr][Cc][_.0-9]*)|" + "([Tt][Ee][Ss][Tt][_.0-9]*)|" + "([Dd][Ee][Bb][Uu][Gg][_.0-9]*)|" + "([Uu][Nn][Oo][Ff][Ff][Ii][Cc][Ii][Aa][Ll][_.0-9]*)|" + "([Cc][Uu][Rr][Rr][Ee][Nn][Tt])|" + "([Ll][Aa][Tt][Ee][Ss][Tt])|" + "([Ff][Cc][Ss])|" + "([Rr][Ee][Ll][Ee][Aa][Ss][Ee][_.0-9]*)|" + "([Nn][Ii][Gg][Hh][Tt][Ll][Yy])|" + "([AaBb][_.0-9]*)"; StringBuffer classifierBuffer = new StringBuffer(); StringBuffer versionBuffer = new StringBuffer(); boolean firstVersionTokenEncountered = false; boolean firstToken = true; int tokensIterated = 0; for ( Iterator it = avceTokenList.iterator(); it.hasNext(); ) { String token = (String) it.next(); boolean tokenIsVersionPart = token.matches( validVersionParts ); StringBuffer bufferToUpdate; // NOTE: logic in code is reversed, since we're peeling off the back // Any token after the last versionPart will be in the classifier. // Any token UP TO first non-versionPart is part of the version. if ( !tokenIsVersionPart ) { if ( firstVersionTokenEncountered ) { //noinspection BreakStatement break; } else { bufferToUpdate = classifierBuffer; } } else { firstVersionTokenEncountered = true; bufferToUpdate = versionBuffer; } if ( firstToken ) { firstToken = false; } else { bufferToUpdate.insert( 0, '-' ); } bufferToUpdate.insert( 0, token ); tokensIterated++; } getLogger().debug( "After parsing loop, state of buffers:\no Version Buffer: \'" + versionBuffer + "\'\no Classifier Buffer: \'" + classifierBuffer + "\'\no Number of Tokens Iterated: " + tokensIterated ); // Now, restore the proper ordering so we can build the artifactId. Collections.reverse( avceTokenList ); getLogger().debug( "Before repairing bad version and/or cleaning up used tokens, avce token list is:\n" + avceTokenList ); // if we didn't find a version, then punt. Use the last token // as the version, and set the classifier empty. if ( versionBuffer.length() < 1 ) { if ( avceTokenList.size() > 1 ) { int lastIdx = avceTokenList.size() - 1; versionBuffer.append( avceTokenList.get( lastIdx ) ); avceTokenList.remove( lastIdx ); } else { getLogger().debug( "Cannot parse version from artifact path: \'" + path + "\'." ); getLogger().debug( "artifact-version-classifier-extension remaining tokens is: \'" + avceTokenList + "\'" ); } classifierBuffer.setLength( 0 ); } else { getLogger().debug( "Removing " + tokensIterated + " tokens from avce token list." ); // if everything is kosher, then pop off all the classifier and // version tokens, leaving the naked artifact id in the list. avceTokenList = new LinkedList( avceTokenList.subList( 0, avceTokenList.size() - tokensIterated ) ); } getLogger().debug( "Now, remainder of avce token list is:\n" + avceTokenList ); StringBuffer artifactIdBuffer = new StringBuffer(); firstToken = true; for ( Iterator it = avceTokenList.iterator(); it.hasNext(); ) { String token = (String) it.next(); if ( firstToken ) { firstToken = false; } else { artifactIdBuffer.append( '-' ); } artifactIdBuffer.append( token ); } String artifactId = artifactIdBuffer.toString(); int lastVersionCharIdx = versionBuffer.length() - 1; if ( lastVersionCharIdx > -1 && versionBuffer.charAt( lastVersionCharIdx ) == '-' ) { versionBuffer.setLength( lastVersionCharIdx ); } String version = versionBuffer.toString(); if ( version.length() < 1 ) { addKickedOutPath( path ); } else { getLogger().debug( "Extracted artifact information from path:\n" + "groupId: \'" + groupId + "\'\n" + "artifactId: \'" + artifactId + "\'\n" + "type: \'" + type + "\'\n" + "version: \'" + version + "\'\n" + "classifier: \'" + classifierBuffer + "\'" ); if ( classifierBuffer.length() > 0 ) { getLogger().debug( "Creating artifact with classifier." ); result = artifactFactory.createArtifactWithClassifier( groupId, artifactId, version, type, classifierBuffer.toString() ); } else { result = artifactFactory.createArtifact( groupId, artifactId, version, Artifact.SCOPE_RUNTIME, type ); } result.setRepository( repository ); result.setFile( new File( repositoryBase, path ) ); } } } } return result; }
|
47019 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47019/0909ac5a928fdf34fdfe2fc9b5efdaf0e7d359f5/LegacyArtifactDiscoverer.java/clean/maven-repository-discovery/src/main/java/org/apache/maven/repository/discovery/LegacyArtifactDiscoverer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
14022,
1361,
7581,
12,
1387,
3352,
2171,
16,
514,
589,
16,
14022,
3305,
3352,
262,
565,
288,
3639,
16370,
2430,
273,
394,
16370,
12,
589,
16,
2206,
27576,
11272,
3639,
14022,
563,
273,
446,
31,
3639,
509,
7922,
5157,
273,
2430,
18,
1883,
5157,
5621,
3639,
309,
261,
7922,
5157,
480,
890,
262,
3639,
288,
5411,
527,
47,
1200,
329,
1182,
743,
12,
589,
11272,
3639,
289,
3639,
469,
3639,
288,
5411,
514,
6612,
273,
2430,
18,
4285,
1345,
5621,
5411,
514,
618,
273,
2430,
18,
4285,
1345,
5621,
5411,
309,
261,
401,
723,
18,
5839,
1190,
12,
315,
87,
6,
262,
262,
5411,
288,
7734,
527,
47,
1200,
329,
1182,
743,
12,
589,
11272,
5411,
289,
5411,
469,
5411,
288,
7734,
618,
273,
618,
18,
28023,
12,
374,
16,
618,
18,
2469,
1435,
300,
404,
11272,
7734,
368,
1914,
25496,
16,
1177,
16,
14622,
16,
471,
2710,
18,
7734,
514,
1712,
311,
13499,
273,
2430,
18,
4285,
1345,
5621,
7734,
10688,
1712,
311,
1345,
682,
273,
394,
10688,
5621,
7734,
16370,
1712,
311,
10524,
273,
394,
16370,
12,
1712,
311,
13499,
16,
7514,
11272,
7734,
1323,
261,
1712,
311,
10524,
18,
5332,
7417,
5157,
1435,
262,
7734,
288,
10792,
1712,
311,
1345,
682,
18,
1289,
3024,
12,
1712,
311,
10524,
18,
4285,
1345,
1435,
11272,
7734,
289,
7734,
514,
1142,
3769,
311,
1345,
273,
261,
780,
13,
1712,
311,
1345,
682,
18,
4479,
3024,
5621,
7734,
1250,
923,
273,
638,
31,
7734,
368,
2660,
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,
14022,
1361,
7581,
12,
1387,
3352,
2171,
16,
514,
589,
16,
14022,
3305,
3352,
262,
565,
288,
3639,
16370,
2430,
273,
394,
16370,
12,
589,
16,
2206,
27576,
11272,
3639,
14022,
563,
273,
446,
31,
3639,
509,
7922,
5157,
273,
2430,
18,
1883,
5157,
5621,
3639,
309,
261,
7922,
5157,
480,
890,
262,
3639,
288,
5411,
527,
47,
1200,
329,
1182,
743,
12,
589,
11272,
3639,
289,
3639,
469,
3639,
288,
5411,
514,
6612,
273,
2430,
18,
4285,
1345,
5621,
5411,
514,
618,
273,
2430,
18,
4285,
1345,
5621,
5411,
309,
261,
401,
723,
18,
5839,
1190,
12,
315,
87,
6,
262,
262,
5411,
288,
7734,
527,
47,
1200,
329,
1182,
743,
12,
589,
11272,
5411,
289,
2
] |
optimizeExact(FilterUtils.and(exSchema, aTranscript), aTranscript);
|
optimizeExact(FilterUtils.and(exSchema, aTranscript), FilterUtils.none()); optimizeExact(FilterUtils.and(reSchema, aTranscript), FilterUtils.none()); optimizeEquals(dbFilter, dbFilter);
|
public void testUseCases() { // schemas for our database features FeatureFilter transcript = FilterUtils.byType("transcript"); FeatureFilter exon = FilterUtils.byType("exon"); FeatureFilter repeat = FilterUtils.byType("repeat"); AnnotationType.Impl tsType = new AnnotationType.Impl(); tsType.setConstraints("transcript.id", new PropertyConstraint.ByClass(String.class), CardinalityConstraint.ONE); tsType.setDefaultConstraints(PropertyConstraint.NONE, CardinalityConstraint.NONE); FeatureFilter tsID = FilterUtils.byAnnotationType(tsType); AnnotationType.Impl exType = new AnnotationType.Impl(); exType.setConstraints("id", new PropertyConstraint.ByClass(String.class), CardinalityConstraint.ONE); exType.setDefaultConstraints(PropertyConstraint.NONE, CardinalityConstraint.NONE); FeatureFilter exID = FilterUtils.byAnnotationType(exType); AnnotationType.Impl rpType = new AnnotationType.Impl(); rpType.setConstraints("id", PropertyConstraint.ANY, CardinalityConstraint.ONE); rpType.setDefaultConstraints(PropertyConstraint.NONE, CardinalityConstraint.NONE); FeatureFilter repeatID = FilterUtils.hasAnnotation(rpType); FeatureFilter tsSchema = FilterUtils.and(transcript, tsID); FeatureFilter exSchema = FilterUtils.and(exon, exID); FeatureFilter reSchema = FilterUtils.and(repeat, repeatID); FeatureFilter dbFilter = FilterUtils.or(tsSchema, FilterUtils.or(exSchema, reSchema)); // pull out a feature by transcript.id FeatureFilter aTranscript = FilterUtils.byAnnotation("transcript.id", "ts:42"); // pull out a feature by id FeatureFilter hasID = FilterUtils.hasAnnotation("id"); // let the fun commence optimizeEquals(FilterUtils.and(tsSchema, aTranscript), FilterUtils.and(transcript, aTranscript)); optimizeExact(FilterUtils.and(exSchema, aTranscript), aTranscript); optimizeEquals(FilterUtils.and(dbFilter, aTranscript), FilterUtils.and(transcript, aTranscript)); }
|
50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/7e35756d6acc4e7db8b3eec8a8305a95ce838b70/FilterUtilsTest.java/clean/tests/org/biojava/bio/seq/FilterUtilsTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3727,
30744,
1435,
288,
1377,
368,
12783,
364,
3134,
2063,
4467,
1377,
7881,
1586,
15194,
273,
4008,
1989,
18,
1637,
559,
2932,
27257,
8863,
1377,
7881,
1586,
25668,
273,
4008,
1989,
18,
1637,
559,
2932,
338,
265,
8863,
1377,
7881,
1586,
7666,
273,
4008,
1989,
18,
1637,
559,
2932,
9374,
8863,
5411,
6090,
559,
18,
2828,
3742,
559,
273,
394,
6090,
559,
18,
2828,
5621,
1377,
3742,
559,
18,
542,
4878,
2932,
27257,
18,
350,
3113,
394,
4276,
5806,
18,
30032,
12,
780,
18,
1106,
3631,
14338,
9232,
5806,
18,
5998,
1769,
1377,
3742,
559,
18,
542,
1868,
4878,
12,
1396,
5806,
18,
9826,
16,
14338,
9232,
5806,
18,
9826,
1769,
1377,
7881,
1586,
3742,
734,
273,
4008,
1989,
18,
1637,
3257,
559,
12,
3428,
559,
1769,
5411,
6090,
559,
18,
2828,
431,
559,
273,
394,
6090,
559,
18,
2828,
5621,
1377,
431,
559,
18,
542,
4878,
2932,
350,
3113,
394,
4276,
5806,
18,
30032,
12,
780,
18,
1106,
3631,
14338,
9232,
5806,
18,
5998,
1769,
1377,
431,
559,
18,
542,
1868,
4878,
12,
1396,
5806,
18,
9826,
16,
14338,
9232,
5806,
18,
9826,
1769,
1377,
7881,
1586,
431,
734,
273,
4008,
1989,
18,
1637,
3257,
559,
12,
338,
559,
1769,
5411,
6090,
559,
18,
2828,
8715,
559,
273,
394,
6090,
559,
18,
2828,
5621,
1377,
8715,
559,
18,
542,
4878,
2932,
350,
3113,
4276,
5806,
18,
15409,
16,
14338,
9232,
5806,
18,
5998,
1769,
1377,
8715,
559,
18,
542,
1868,
4878,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3727,
30744,
1435,
288,
1377,
368,
12783,
364,
3134,
2063,
4467,
1377,
7881,
1586,
15194,
273,
4008,
1989,
18,
1637,
559,
2932,
27257,
8863,
1377,
7881,
1586,
25668,
273,
4008,
1989,
18,
1637,
559,
2932,
338,
265,
8863,
1377,
7881,
1586,
7666,
273,
4008,
1989,
18,
1637,
559,
2932,
9374,
8863,
5411,
6090,
559,
18,
2828,
3742,
559,
273,
394,
6090,
559,
18,
2828,
5621,
1377,
3742,
559,
18,
542,
4878,
2932,
27257,
18,
350,
3113,
394,
4276,
5806,
18,
30032,
12,
780,
18,
1106,
3631,
14338,
9232,
5806,
18,
5998,
1769,
1377,
3742,
559,
18,
542,
1868,
4878,
12,
1396,
5806,
18,
9826,
16,
14338,
9232,
5806,
18,
9826,
1769,
1377,
7881,
1586,
3742,
2
] |
public void mMISC() throws RecognitionException { int MISC_StartIndex = input.index(); try { int type = MISC; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; if ( backtracking>0 && alreadyParsedRule(input, 44) ) { return ; } // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:975:17: ( '!' | '@' | '$' | '%' | '^' | '&' | '*' | '_' | '-' | '+' | '|' | ',' | '{' | '}' | '[' | ']' | '=' | '/' | '(' | ')' | '\'' | '\\' | '||' | '&&' | '<<<' | '++' | '--' | '>>>' | '==' | '+=' | '=+' | '-=' | '=-' | '*=' | '=*' | '/=' | '=/' ) int alt1=37; 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=24; } else { alt1=6;} break; case '*': int LA1_7 = input.LA(2); if ( LA1_7=='=' ) { alt1=34; } else { alt1=7;} break; case '_': alt1=8; break; case '-': switch ( input.LA(2) ) { case '=': alt1=32; break; case '-': alt1=27; break; default: alt1=9;} break; case '+': switch ( input.LA(2) ) { case '=': alt1=30; break; case '+': alt1=26; break; default: alt1=10;} break; case '|': int LA1_11 = input.LA(2); if ( LA1_11=='|' ) { alt1=23; } 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 '=': switch ( input.LA(2) ) { case '/': alt1=37; break; case '=': alt1=29; break; case '+': alt1=31; break; case '-': alt1=33; break; case '*': alt1=35; break; default: alt1=17;} break; case '/': int LA1_18 = input.LA(2); if ( LA1_18=='=' ) { alt1=36; } else { alt1=18;} break; case '(': alt1=19; break; case ')': alt1=20; break; case '\'': alt1=21; break; case '\\': alt1=22; break; case '<': alt1=25; break; case '>': alt1=28; break; default: if (backtracking>0) {failed=true; return ;} NoViableAltException nvae = new NoViableAltException("974:1: MISC : ( \'!\' | \'@\' | \'$\' | \'%\' | \'^\' | \'&\' | \'*\' | \'_\' | \'-\' | \'+\' | \'|\' | \',\' | \'{\' | \'}\' | \'[\' | \']\' | \'=\' | \'/\' | \'(\' | \')\' | \'\\\'\' | \'\\\\\' | \'||\' | \'&&\' | \'<<<\' | \'++\' | \'--\' | \'>>>\' | \'==\' | \'+=\' | \'=+\' | \'-=\' | \'=-\' | \'*=\' | \'=*\' | \'/=\' | \'=/\' );", 1, 0, input); throw nvae; } switch (alt1) { case 1 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:975:17: '!' { match('!'); if (failed) return ; } break; case 2 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:975:23: '@' { match('@'); if (failed) return ; } break; case 3 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:975:29: '$' { match('$'); if (failed) return ; } break; case 4 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:975:35: '%' { match('%'); if (failed) return ; } break; case 5 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:975:41: '^' { match('^'); if (failed) return ; } break; case 6 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:975:47: '&' { match('&'); if (failed) return ; } break; case 7 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:975:53: '*' { match('*'); if (failed) return ; } break; case 8 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:975:59: '_' { match('_'); if (failed) return ; } break; case 9 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:975:65: '-' { match('-'); if (failed) return ; } break; case 10 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:975:71: '+' { match('+'); if (failed) return ; } break; case 11 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:976:19: '|' { match('|'); if (failed) return ; } break; case 12 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:976:25: ',' { match(','); if (failed) return ; } break; case 13 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:976:31: '{' { match('{'); if (failed) return ; } break; case 14 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:976:37: '}' { match('}'); if (failed) return ; } break; case 15 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:976:43: '[' { match('['); if (failed) return ; } break; case 16 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:976:49: ']' { match(']'); if (failed) return ; } break; case 17 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:976:55: '=' { match('='); if (failed) return ; } break; case 18 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:976:61: '/' { match('/'); if (failed) return ; } break; case 19 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:976:67: '(' { match('('); if (failed) return ; } break; case 20 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:976:73: ')' { match(')'); if (failed) return ; } break; case 21 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:976:79: '\'' { match('\''); if (failed) return ; } break; case 22 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:976:86: '\\' { match('\\'); if (failed) return ; } break; case 23 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:977:19: '||' { match("||"); if (failed) return ; } break; case 24 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:977:26: '&&' { match("&&"); if (failed) return ; } break; case 25 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:977:33: '<<<' { match("<<<"); if (failed) return ; } break; case 26 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:977:41: '++' { match("++"); if (failed) return ; } break; case 27 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:977:48: '--' { match("--"); if (failed) return ; } break; case 28 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:977:55: '>>>' { match(">>>"); if (failed) return ; } break; case 29 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:977:63: '==' { match("=="); if (failed) return ; } break; case 30 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:977:70: '+=' { match("+="); if (failed) return ; } break; case 31 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:977:77: '=+' { match("=+"); if (failed) return ; } break; case 32 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:977:84: '-=' { match("-="); if (failed) return ; } break; case 33 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:977:91: '=-' { match("=-"); if (failed) return ; } break; case 34 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:977:97: '*=' { match("*="); if (failed) return ; } break; case 35 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:977:104: '=*' { match("=*"); if (failed) return ; } break; case 36 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:978:19: '/=' { match("/="); if (failed) return ; } break; case 37 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:978:26: '=/' { match("=/"); if (failed) return ; } break; } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} } finally { if ( backtracking>0 ) { memoize(input, 44, MISC_StartIndex); } } }
|
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/cdf6cb875caeaced53629d36cdc1a31cdc22d9ca/RuleParserLexer.java/clean/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,
509,
20806,
2312,
67,
16792,
273,
810,
18,
1615,
5621,
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,
309,
261,
6888,
34,
20,
597,
1818,
11257,
2175,
12,
2630,
16,
13291,
13,
262,
288,
327,
274,
289,
5411,
368,
342,
6588,
19,
70,
947,
19,
17300,
87,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
4683,
19,
3341,
19,
12215,
19,
4936,
19,
72,
1321,
18,
75,
30,
29,
5877,
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,
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,
6418,
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,
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,
509,
20806,
2312,
67,
16792,
273,
810,
18,
1615,
5621,
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,
309,
261,
6888,
34,
20,
597,
1818,
11257,
2175,
12,
2630,
16,
13291,
13,
262,
288,
327,
274,
289,
5411,
368,
342,
6588,
19,
70,
947,
19,
17300,
87,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
4683,
19,
3341,
19,
12215,
19,
4936,
19,
72,
1321,
18,
75,
2
] |
||
a = i * angle; bottom_s[i] = (float)(0.5f - radius * Math.cos(a) / 2); bottom_t[i] = (float)(0.5f - radius * Math.sin(a) / 2);
|
private void recalc2DTexture() { if(!facetsChanged) return; // not a good idea because we should also leave this set to recalc // the 3D coordinates. facetsChanged = false; int vtx_count = (facetCount + 1) * 2; if (useTop) vtx_count += (facetCount + 1) * 2; if (useBottom) vtx_count += (facetCount + 1) * 2; if((texCoordinates2D == null) || (vtx_count * 2 > texCoordinates2D.length)) { texCoordinates2D = new float[vtx_count * 2]; } // local constant to make math calcs faster float segment_angle = 1 / (float)facetCount; float angle = (float)(2.0 * Math.PI / facetCount); int count = 0; int i, k; float s, a; float[] bottom_s = new float[facetCount + 1]; float[] bottom_t = new float[facetCount + 1]; for(i = 0; i < facetCount; i++) { s = i * segment_angle; texCoordinates2D[count++] = s; texCoordinates2D[count++] = 1; texCoordinates2D[count++] = s; texCoordinates2D[count++] = 0; a = i * angle; bottom_s[i] = (float)(0.5f - radius * Math.cos(a) / 2); bottom_t[i] = (float)(0.5f - radius * Math.sin(a) / 2); } texCoordinates2D[count++] = 1; texCoordinates2D[count++] = 1; texCoordinates2D[count++] = 1; texCoordinates2D[count++] = 0; if (useTop) { bottom_s[facetCount] = bottom_s[0]; bottom_t[facetCount] = bottom_t[0]; // top is a flat square that is based with the centre at // the centre of the cone. Start with the centre point first for(i = facetCount; --i >= 0; ) { texCoordinates2D[count++] = 0.5f; texCoordinates2D[count++] = 0.5f; texCoordinates2D[count++] = bottom_s[i]; texCoordinates2D[count++] = bottom_t[i]; } texCoordinates2D[count++] = 0.5f; texCoordinates2D[count++] = 0.5f; texCoordinates2D[count++] = bottom_s[0]; texCoordinates2D[count++] = bottom_t[1]; } if (useBottom) { // Bottom is a flat square that is based with the centre at // the centre of the cone. Start with the centre point first for(i = facetCount; --i >= 0; ) { texCoordinates2D[count++] = bottom_s[i]; texCoordinates2D[count++] = bottom_t[i]; texCoordinates2D[count++] = 0.5f; texCoordinates2D[count++] = 0.5f; } texCoordinates2D[count++] = bottom_s[0]; texCoordinates2D[count++] = bottom_t[1]; texCoordinates2D[count++] = 0.5f; texCoordinates2D[count++] = 0.5f; } numTexCoords2D = count; }
|
46075 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46075/bd71dae6bd4e02896cff1fcd75a384661298a778/CylinderGenerator.java/clean/src/java/org/j3d/geom/CylinderGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
283,
12448,
22,
40,
10967,
1435,
565,
288,
3639,
309,
12,
5,
11639,
2413,
5033,
13,
5411,
327,
31,
3639,
368,
486,
279,
7494,
21463,
2724,
732,
1410,
2546,
8851,
333,
444,
358,
283,
12448,
3639,
368,
326,
890,
40,
5513,
18,
3639,
21681,
5033,
273,
629,
31,
3639,
509,
331,
978,
67,
1883,
273,
261,
21568,
1380,
397,
404,
13,
380,
576,
31,
3639,
309,
261,
1202,
3401,
13,
5411,
331,
978,
67,
1883,
1011,
261,
21568,
1380,
397,
404,
13,
380,
576,
31,
3639,
309,
261,
1202,
10393,
13,
5411,
331,
978,
67,
1883,
1011,
261,
21568,
1380,
397,
404,
13,
380,
576,
31,
3639,
309,
12443,
21763,
13431,
22,
40,
422,
446,
13,
747,
6647,
261,
90,
978,
67,
1883,
380,
576,
405,
16573,
13431,
22,
40,
18,
2469,
3719,
3639,
288,
5411,
16573,
13431,
22,
40,
273,
394,
1431,
63,
90,
978,
67,
1883,
380,
576,
15533,
3639,
289,
3639,
368,
1191,
5381,
358,
1221,
4233,
1443,
2143,
12063,
3639,
1431,
3267,
67,
4341,
273,
404,
342,
261,
5659,
13,
21568,
1380,
31,
3639,
1431,
5291,
273,
261,
5659,
21433,
22,
18,
20,
380,
2361,
18,
1102,
342,
11082,
1380,
1769,
3639,
509,
1056,
273,
374,
31,
3639,
509,
277,
16,
417,
31,
3639,
1431,
272,
16,
279,
31,
3639,
1431,
8526,
5469,
67,
87,
273,
394,
1431,
63,
21568,
1380,
397,
404,
15533,
3639,
1431,
8526,
5469,
67,
88,
273,
394,
1431,
63,
21568,
1380,
397,
404,
15533,
3639,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
283,
12448,
22,
40,
10967,
1435,
565,
288,
3639,
309,
12,
5,
11639,
2413,
5033,
13,
5411,
327,
31,
3639,
368,
486,
279,
7494,
21463,
2724,
732,
1410,
2546,
8851,
333,
444,
358,
283,
12448,
3639,
368,
326,
890,
40,
5513,
18,
3639,
21681,
5033,
273,
629,
31,
3639,
509,
331,
978,
67,
1883,
273,
261,
21568,
1380,
397,
404,
13,
380,
576,
31,
3639,
309,
261,
1202,
3401,
13,
5411,
331,
978,
67,
1883,
1011,
261,
21568,
1380,
397,
404,
13,
380,
576,
31,
3639,
309,
261,
1202,
10393,
13,
5411,
331,
978,
67,
1883,
1011,
261,
21568,
1380,
397,
404,
13,
380,
576,
31,
3639,
309,
12443,
21763,
13431,
22,
40,
422,
446,
13,
2
] |
|
if (val == null || val == Undefined.instance) return false; if (val instanceof Boolean) return ((Boolean) val).booleanValue(); if (val instanceof Scriptable) { if (Context.getContext().isVersionECMA1()) { return true; } val = ((Scriptable) val).getDefaultValue(BooleanClass); if (val instanceof Scriptable) throw errorWithClassName("msg.primitive.expected", val);
|
for (;;) {
|
public static boolean toBoolean(Object val) { if (val == null || val == Undefined.instance) return false; if (val instanceof Boolean) return ((Boolean) val).booleanValue(); if (val instanceof Scriptable) { if (Context.getContext().isVersionECMA1()) { // pure ECMA return true; } // ECMA extension val = ((Scriptable) val).getDefaultValue(BooleanClass); if (val instanceof Scriptable) throw errorWithClassName("msg.primitive.expected", val); if (val instanceof Boolean) return ((Boolean) val).booleanValue(); // fall through } if (val instanceof String) return ((String) val).length() != 0; if (val instanceof Number) { double d = ((Number) val).doubleValue(); return (d == d && d != 0.0); } warnAboutNonJSObject(val); return true; }
|
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/7bdfe516485821b233d8d907446a24bf1f97ac73/ScriptRuntime.java/clean/js/rhino/src/org/mozilla/javascript/ScriptRuntime.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
358,
5507,
12,
921,
1244,
13,
565,
288,
3639,
309,
261,
1125,
422,
446,
747,
1244,
422,
22243,
18,
1336,
13,
5411,
327,
629,
31,
3639,
309,
261,
1125,
1276,
3411,
13,
5411,
327,
14015,
5507,
13,
1244,
2934,
6494,
620,
5621,
3639,
309,
261,
1125,
1276,
22780,
13,
288,
5411,
309,
261,
1042,
18,
29120,
7675,
291,
1444,
7228,
5535,
21,
10756,
288,
7734,
368,
16618,
7773,
5535,
7734,
327,
638,
31,
5411,
289,
5411,
368,
7773,
5535,
2710,
5411,
1244,
273,
14015,
3651,
429,
13,
1244,
2934,
588,
15646,
12,
5507,
797,
1769,
5411,
309,
261,
1125,
1276,
22780,
13,
7734,
604,
555,
1190,
3834,
2932,
3576,
18,
683,
5025,
18,
3825,
3113,
1244,
1769,
5411,
309,
261,
1125,
1276,
3411,
13,
7734,
327,
14015,
5507,
13,
1244,
2934,
6494,
620,
5621,
5411,
368,
4159,
3059,
3639,
289,
3639,
309,
261,
1125,
1276,
514,
13,
5411,
327,
14015,
780,
13,
1244,
2934,
2469,
1435,
480,
374,
31,
3639,
309,
261,
1125,
1276,
3588,
13,
288,
5411,
1645,
302,
273,
14015,
1854,
13,
1244,
2934,
9056,
620,
5621,
5411,
327,
261,
72,
422,
302,
597,
302,
480,
374,
18,
20,
1769,
3639,
289,
3639,
1894,
24813,
3989,
6479,
921,
12,
1125,
1769,
3639,
327,
638,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
358,
5507,
12,
921,
1244,
13,
565,
288,
3639,
309,
261,
1125,
422,
446,
747,
1244,
422,
22243,
18,
1336,
13,
5411,
327,
629,
31,
3639,
309,
261,
1125,
1276,
3411,
13,
5411,
327,
14015,
5507,
13,
1244,
2934,
6494,
620,
5621,
3639,
309,
261,
1125,
1276,
22780,
13,
288,
5411,
309,
261,
1042,
18,
29120,
7675,
291,
1444,
7228,
5535,
21,
10756,
288,
7734,
368,
16618,
7773,
5535,
7734,
327,
638,
31,
5411,
289,
5411,
368,
7773,
5535,
2710,
5411,
1244,
273,
14015,
3651,
429,
13,
1244,
2934,
588,
15646,
12,
5507,
797,
1769,
5411,
309,
261,
1125,
1276,
22780,
13,
7734,
604,
555,
1190,
3834,
2932,
3576,
18,
683,
5025,
18,
3825,
3113,
2
] |
throw new ArgumentError(runtime, "'" + next +
|
throw runtime.newArgumentError("'" + next +
|
public static RubyArray unpack(String encodedString, RubyString formatString) { Ruby runtime = formatString.getRuntime(); RubyArray result = RubyArray.newArray(runtime); PtrList format = new PtrList(runtime, formatString.getValue()); PtrList encode = new PtrList(runtime, encodedString); char type = format.nextChar(); // Type to be unpacked while(!format.isAtEnd()) { // Possible next type, format of current type, occurrences of type char next = format.nextChar(); // Next indicates to decode using native encoding format if (next == '_' || next == '!') { if (NATIVE_CODES.indexOf(type) == -1) { throw new ArgumentError(runtime, "'" + next + "' allowed only after types " + NATIVE_CODES); } // We advance in case occurences follows next = format.nextChar(); } // How many occurrences of 'type' we want int occurrences = 0; if (format.isAtEnd()) { occurrences = 1; } else if (next == '*') { occurrences = IS_STAR; next = format.nextChar(); } else if (Character.isDigit(next)) { format.backup(1); occurrences = format.nextAsciiNumber(); next = format.nextChar(); } else { occurrences = type == '@' ? 0 : 1; } // See if we have a converter for the job... Converter converter = (Converter) converters.get(new Character(type)); if (converter != null) { decode(runtime, encode, occurrences, result, converter); type = next; continue; } // Otherwise the unpack should be here... switch (type) { case '@' : encode.setPosition(occurrences); break; case '%' : throw new ArgumentError(runtime, "% is not supported"); case 'A' : { if (occurrences == IS_STAR || occurrences > encode.remaining()) { occurrences = encode.remaining(); } String potential = encode.nextSubstring(occurrences); for (int t = occurrences - 1; occurrences > 0; occurrences--, t--) { char c = potential.charAt(t); if (c != '\0' && c != ' ') { break; } } potential = potential.substring(0, occurrences); result.append(RubyString.newString(runtime, potential)); } break; case 'Z' : { if (occurrences == IS_STAR || occurrences > encode.remaining()) { occurrences = encode.remaining(); } String potential = encode.nextSubstring(occurrences); for (int t = occurrences - 1; occurrences > 0; occurrences--, t--) { char c = potential.charAt(t); if (c != '\0') { break; } } potential = potential.substring(0, occurrences); result.append(RubyString.newString(runtime, potential)); } break; case 'a' : if (occurrences == IS_STAR || occurrences > encode.remaining()) { occurrences = encode.remaining(); } result.append(RubyString.newString(runtime, encode.nextSubstring(occurrences))); break; case 'b' : { if (occurrences == IS_STAR || occurrences > encode.remaining() * 8) { occurrences = encode.remaining() * 8; } int bits = 0; StringBuffer lElem = new StringBuffer(occurrences); for (int lCurByte = 0; lCurByte < occurrences; lCurByte++) { if ((lCurByte & 7) != 0) { bits >>>= 1; } else { bits = encode.nextChar(); } lElem.append((bits & 1) != 0 ? '1' : '0'); } result.append(RubyString.newString(runtime, lElem.toString())); } break; case 'B' : { if (occurrences == IS_STAR || occurrences > encode.remaining() * 8) { occurrences = encode.remaining() * 8; } int bits = 0; StringBuffer lElem = new StringBuffer(occurrences); for (int lCurByte = 0; lCurByte < occurrences; lCurByte++) { if ((lCurByte & 7) != 0) bits <<= 1; else bits = encode.nextChar(); lElem.append((bits & 128) != 0 ? '1' : '0'); } result.append(RubyString.newString(runtime, lElem.toString())); } break; case 'h' : { if (occurrences == IS_STAR || occurrences > encode.remaining() * 2) { occurrences = encode.remaining() * 2; } int bits = 0; StringBuffer lElem = new StringBuffer(occurrences); for (int lCurByte = 0; lCurByte < occurrences; lCurByte++) { if ((lCurByte & 1) != 0) { bits >>>= 4; } else { bits = encode.nextChar(); } lElem.append(sHexDigits[bits & 15]); } result.append(RubyString.newString(runtime, lElem.toString())); } break; case 'H' : { if (occurrences == IS_STAR || occurrences > encode.remaining() * 2) { occurrences = encode.remaining() * 2; } int bits = 0; StringBuffer lElem = new StringBuffer(occurrences); for (int lCurByte = 0; lCurByte < occurrences; lCurByte++) { if ((lCurByte & 1) != 0) bits <<= 4; else bits = encode.nextChar(); lElem.append(sHexDigits[(bits >>> 4) & 15]); } result.append(RubyString.newString(runtime, lElem.toString())); } break; case 'U' : { if (occurrences == IS_STAR || occurrences > encode.remaining()) { occurrences = encode.remaining(); } //get the correct substring String toUnpack = encode.nextSubstring(occurrences); String lUtf8 = null; try { lUtf8 = new String(toUnpack.getBytes("iso8859-1"), "UTF-8"); } catch (java.io.UnsupportedEncodingException e) { Asserts.notReached("can't convert from UTF8"); } char[] c = lUtf8.toCharArray(); for (int lCurCharIdx = 0; occurrences-- > 0 && lCurCharIdx < c.length; lCurCharIdx++) result.append(RubyFixnum.newFixnum(runtime, c[lCurCharIdx])); } break; case 'X': if (occurrences == IS_STAR) { occurrences = encode.getLength() - encode.remaining(); } try { encode.backup(occurrences); } catch (IllegalArgumentException e) { throw new ArgumentError(runtime, "in `unpack': X outside of string"); } break; case 'x': if (occurrences == IS_STAR) { occurrences = encode.remaining(); } try { encode.nextSubstring(occurrences); } catch (IllegalArgumentException e) { throw new ArgumentError(runtime, "in `unpack': x outside of string"); } break; } type = next; } return result; }
|
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/870e1da9b41bfdbae259e1fc5f18fc8b76686998/Pack.java/clean/src/org/jruby/util/Pack.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
1076,
6167,
12,
780,
3749,
780,
16,
2398,
19817,
780,
27107,
13,
288,
3639,
19817,
3099,
273,
27107,
18,
588,
5576,
5621,
3639,
19817,
1076,
563,
273,
19817,
1076,
18,
2704,
1076,
12,
9448,
1769,
3639,
14898,
682,
740,
273,
394,
14898,
682,
12,
9448,
16,
27107,
18,
24805,
10663,
3639,
14898,
682,
2017,
273,
394,
14898,
682,
12,
9448,
16,
3749,
780,
1769,
3639,
1149,
618,
273,
740,
18,
4285,
2156,
5621,
368,
1412,
358,
506,
24195,
7734,
1323,
12,
5,
2139,
18,
291,
861,
1638,
10756,
288,
5411,
368,
25433,
1024,
618,
16,
740,
434,
783,
618,
16,
15698,
434,
618,
5411,
1149,
1024,
273,
740,
18,
4285,
2156,
5621,
13491,
368,
4804,
8527,
358,
2495,
1450,
6448,
2688,
740,
5411,
309,
261,
4285,
422,
4427,
747,
1024,
422,
15502,
13,
288,
7734,
309,
261,
50,
12992,
67,
17070,
18,
31806,
12,
723,
13,
422,
300,
21,
13,
288,
1171,
202,
12849,
3099,
18,
2704,
1379,
668,
2932,
4970,
397,
1024,
397,
1171,
3196,
3639,
2491,
2935,
1338,
1839,
1953,
315,
397,
423,
12992,
67,
17070,
1769,
7734,
289,
1171,
368,
1660,
8312,
316,
648,
9145,
18842,
764,
13040,
7734,
1024,
273,
740,
18,
4285,
2156,
5621,
5411,
289,
13491,
368,
9017,
4906,
15698,
434,
296,
723,
11,
732,
2545,
5411,
509,
15698,
273,
374,
31,
5411,
309,
261,
2139,
18,
291,
861,
1638,
10756,
288,
2398,
202,
26635,
12228,
273,
404,
31,
5411,
289,
469,
309,
261,
4285,
422,
5306,
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,
19817,
1076,
6167,
12,
780,
3749,
780,
16,
2398,
19817,
780,
27107,
13,
288,
3639,
19817,
3099,
273,
27107,
18,
588,
5576,
5621,
3639,
19817,
1076,
563,
273,
19817,
1076,
18,
2704,
1076,
12,
9448,
1769,
3639,
14898,
682,
740,
273,
394,
14898,
682,
12,
9448,
16,
27107,
18,
24805,
10663,
3639,
14898,
682,
2017,
273,
394,
14898,
682,
12,
9448,
16,
3749,
780,
1769,
3639,
1149,
618,
273,
740,
18,
4285,
2156,
5621,
368,
1412,
358,
506,
24195,
7734,
1323,
12,
5,
2139,
18,
291,
861,
1638,
10756,
288,
5411,
368,
25433,
1024,
618,
16,
740,
434,
783,
618,
16,
15698,
434,
618,
5411,
1149,
1024,
273,
740,
18,
4285,
2156,
5621,
13491,
368,
4804,
2
] |
fSegments = new String[1]; fSegments[0] = fPattern; fBound = fLength; }
|
fSegments = new String[1]; fSegments[0] = fPattern; fBound = fLength; }
|
private void parseNoWildCards() { fSegments = new String[1]; fSegments[0] = fPattern; fBound = fLength; }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/c93d807ed962723d90daba76fc2003e2c1801cbc/StringMatcher.java/buggy/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/StringMatcher.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1109,
2279,
59,
545,
30492,
1435,
288,
3639,
284,
7946,
273,
394,
514,
63,
21,
15533,
3639,
284,
7946,
63,
20,
65,
273,
284,
3234,
31,
3639,
284,
3499,
273,
284,
1782,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1109,
2279,
59,
545,
30492,
1435,
288,
3639,
284,
7946,
273,
394,
514,
63,
21,
15533,
3639,
284,
7946,
63,
20,
65,
273,
284,
3234,
31,
3639,
284,
3499,
273,
284,
1782,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public String getType (int i)
|
public String getType(int index)
|
public String getType (int i) { String type = parser.getAttributeType (elementName, getQName (i)); if (type == null) return "CDATA"; // ... use DeclHandler.attributeDecl to see enumerations if (type == "ENUMERATION") return "NMTOKEN"; return type; }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/24330cfb4cc445da21a71a819ce54efe764fab6e/SAXDriver.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/SAXDriver.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
3130,
12,
474,
770,
13,
565,
288,
202,
780,
202,
723,
273,
2082,
18,
588,
19529,
261,
2956,
461,
16,
336,
13688,
261,
77,
10019,
202,
430,
261,
723,
422,
446,
13,
202,
565,
327,
315,
18375,
14432,
202,
759,
1372,
999,
16110,
1503,
18,
4589,
3456,
358,
2621,
3557,
1012,
1377,
309,
261,
723,
422,
315,
16509,
654,
2689,
7923,
3639,
327,
315,
50,
6152,
6239,
14432,
202,
2463,
618,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3130,
12,
474,
770,
13,
565,
288,
202,
780,
202,
723,
273,
2082,
18,
588,
19529,
261,
2956,
461,
16,
336,
13688,
261,
77,
10019,
202,
430,
261,
723,
422,
446,
13,
202,
565,
327,
315,
18375,
14432,
202,
759,
1372,
999,
16110,
1503,
18,
4589,
3456,
358,
2621,
3557,
1012,
1377,
309,
261,
723,
422,
315,
16509,
654,
2689,
7923,
3639,
327,
315,
50,
6152,
6239,
14432,
202,
2463,
618,
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
] |
{Thread.sleep(100); } catch (Exception e) {}
|
{Thread.sleep(100); } catch (Exception e) {} ((Patch)p).sysex[2]=(byte)(0x30 + getChannel() - 1); try { send(((Patch)p).sysex); }catch (Exception e) {ErrorMsg.reportStatus(e);}
|
public void storePatch(Patch p, int bankNum,int patchNum) { try {Thread.sleep(100); } catch (Exception e) {} p.sysex[2]=(byte)(0x30 + getChannel() - 1); try { send(p.sysex); }catch (Exception e) {ErrorMsg.reportStatus(e);} }
|
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/b6e99a36d447b749f8ec1622f6d2477fcd586fcb/KorgWavestationSystemSetupDriver.java/buggy/JSynthLib/synthdrivers/KorgWavestation/KorgWavestationSystemSetupDriver.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1707,
7332,
12,
7332,
293,
16,
509,
11218,
2578,
16,
474,
4729,
2578,
13,
288,
3639,
775,
3639,
288,
3830,
18,
19607,
12,
6625,
1769,
289,
1044,
261,
503,
425,
13,
3639,
2618,
3639,
293,
18,
9009,
20909,
63,
22,
65,
28657,
7229,
21433,
20,
92,
5082,
397,
16454,
1435,
300,
404,
1769,
3639,
775,
288,
5411,
1366,
12,
84,
18,
9009,
20909,
1769,
3639,
289,
14683,
261,
503,
425,
13,
3639,
288,
668,
3332,
18,
6006,
1482,
12,
73,
1769,
97,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1707,
7332,
12,
7332,
293,
16,
509,
11218,
2578,
16,
474,
4729,
2578,
13,
288,
3639,
775,
3639,
288,
3830,
18,
19607,
12,
6625,
1769,
289,
1044,
261,
503,
425,
13,
3639,
2618,
3639,
293,
18,
9009,
20909,
63,
22,
65,
28657,
7229,
21433,
20,
92,
5082,
397,
16454,
1435,
300,
404,
1769,
3639,
775,
288,
5411,
1366,
12,
84,
18,
9009,
20909,
1769,
3639,
289,
14683,
261,
503,
425,
13,
3639,
288,
668,
3332,
18,
6006,
1482,
12,
73,
1769,
97,
282,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
final int currentlySelected = ((Integer) currentControlsState.getInitialRepeatIdToIndex().get(repeatId)).intValue();
|
final int currentlySelected = ((Integer) previousRepeatIdToIndex.get(repeatId)).intValue();
|
public void runAction(final PipelineContext pipelineContext, String targetId, XFormsEventHandlerContainer eventHandlerContainer, Element actionElement, ActionContext actionContext) { // Check that we understand the action element final String actionNamespaceURI = actionElement.getNamespaceURI(); if (!XFormsConstants.XFORMS_NAMESPACE_URI.equals(actionNamespaceURI)) { throw new OXFException("Invalid action namespace: " + actionNamespaceURI); } // Set binding context setBindingContext(pipelineContext, eventHandlerContainer.getId(), actionElement); final String actionEventName = actionElement.getName(); if (XFormsActions.XFORMS_SETVALUE_ACTION.equals(actionEventName)) { // 10.1.9 The setvalue Element // xforms:setvalue final String value = actionElement.attributeValue("value"); final String content = actionElement.getStringValue(); final XFormsInstance currentInstance = xformsControls.getCurrentInstance(); final String valueToSet; if (value != null) { // Value to set is computed with an XPath expression Map namespaceContext = Dom4jUtils.getNamespaceContextNoDefault(actionElement); valueToSet = currentInstance.evaluateXPathAsString(pipelineContext, xformsControls.getCurrentSingleNode(), value, namespaceContext, null, xformsControls.getFunctionLibrary(), null); } else { // Value to set is static content valueToSet = content; } // Set value on current node final Node currentNode = xformsControls.getCurrentSingleNode(); XFormsInstance.setValueForNode(currentNode, valueToSet); if (actionContext != null) { // "XForms Actions that change only the value of an instance node results in setting // the flags for recalculate, revalidate, and refresh to true and making no change to // the flag for rebuild". actionContext.recalculate = true; actionContext.revalidate = true; actionContext.refresh = true; } else { // Send events directly final XFormsModel model = xformsControls.getCurrentModel(); containingDocument.dispatchEvent(pipelineContext, new XFormsRecalculateEvent(model, true)); containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(model, true)); containingDocument.dispatchEvent(pipelineContext, new XFormsRefreshEvent(model)); } } else if (XFormsActions.XFORMS_RESET_ACTION.equals(actionEventName)) { // 10.1.11 The reset Element final String modelId = actionElement.attributeValue("model"); final Object modelObject = containingDocument.getObjectById(pipelineContext, modelId); if (modelObject instanceof XFormsModel) { final XFormsModel model = (XFormsModel) modelObject; containingDocument.dispatchEvent(pipelineContext, new XFormsResetEvent(model)); } else { throw new OXFException("xforms:reset model attribute must point to an xforms:model element."); } // "the reset action takes effect immediately and clears all of the flags." if (actionContext != null) actionContext.setAll(false); } else if (XFormsActions.XFORMS_ACTION_ACTION.equals(actionEventName)) { // 10.1.1 The action Element final ActionContext newActionContext = (actionContext == null) ? new ActionContext() : null; for (Iterator i = actionElement.elementIterator(); i.hasNext();) { final Element embeddedActionElement = (Element) i.next(); runAction(pipelineContext, targetId, eventHandlerContainer, embeddedActionElement, (newActionContext == null) ? actionContext : newActionContext ); } if (newActionContext != null) { // Binding context has to be reset as it may have been modified by sub-actions setBindingContext(pipelineContext, eventHandlerContainer.getId(), actionElement); final XFormsModel model = xformsControls.getCurrentModel(); // Process deferred behavior if (newActionContext.rebuild) containingDocument.dispatchEvent(pipelineContext, new XFormsRebuildEvent(model)); if (newActionContext.recalculate) containingDocument.dispatchEvent(pipelineContext, new XFormsRecalculateEvent(model, true)); if (newActionContext.revalidate) containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(model, true)); if (newActionContext.refresh) containingDocument.dispatchEvent(pipelineContext, new XFormsRefreshEvent(model)); } } else if (XFormsActions.XFORMS_REBUILD_ACTION.equals(actionEventName)) { // 10.1.3 The rebuild Element final XFormsModel model = xformsControls.getCurrentModel(); containingDocument.dispatchEvent(pipelineContext, new XFormsRebuildEvent(model)); // "Actions that directly invoke rebuild, recalculate, revalidate, or refresh always // have an immediate effect, and clear the corresponding flag." if (actionContext != null) actionContext.rebuild = false; } else if (XFormsActions.XFORMS_RECALCULATE_ACTION.equals(actionEventName)) { // 10.1.4 The recalculate Element final XFormsModel model = xformsControls.getCurrentModel(); containingDocument.dispatchEvent(pipelineContext, new XFormsRecalculateEvent(model, true)); // "Actions that directly invoke rebuild, recalculate, revalidate, or refresh always // have an immediate effect, and clear the corresponding flag." if (actionContext != null) actionContext.recalculate = false; } else if (XFormsActions.XFORMS_REVALIDATE_ACTION.equals(actionEventName)) { // 10.1.5 The revalidate Element final XFormsModel model = xformsControls.getCurrentModel(); containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(model, true)); // "Actions that directly invoke rebuild, recalculate, revalidate, or refresh always // have an immediate effect, and clear the corresponding flag." if (actionContext != null) actionContext.revalidate = false; } else if (XFormsActions.XFORMS_REFRESH_ACTION.equals(actionEventName)) { // 10.1.6 The refresh Element final XFormsModel model = xformsControls.getCurrentModel(); containingDocument.dispatchEvent(pipelineContext, new XFormsRefreshEvent(model)); // "Actions that directly invoke rebuild, recalculate, revalidate, or refresh always // have an immediate effect, and clear the corresponding flag." if (actionContext != null) actionContext.refresh = false; } else if (XFormsActions.XFORMS_TOGGLE_ACTION.equals(actionEventName)) { // 9.2.3 The toggle Element final String caseId = actionElement.attributeValue("case"); // Update xforms:switch info and dispatch events xformsControls.updateSwitchInfo(pipelineContext, caseId); } else if (XFormsActions.XFORMS_INSERT_ACTION.equals(actionEventName)) { // 9.3.5 The insert Element final String atAttribute = actionElement.attributeValue("at"); final String positionAttribute = actionElement.attributeValue("position"); // Set current binding in order to evaluate the current nodeset // "1. The homogeneous collection to be updated is determined by evaluating the Node Set Binding." final List collectionToBeUpdated = xformsControls.getCurrentNodeset(); if (collectionToBeUpdated.size() > 0) { // "If the collection is empty, the insert action has no effect." // "2. The node-set binding identifies a homogeneous collection in the instance // data. The final member of this collection is cloned to produce the node that will // be inserted." final Element clonedElement; { final Element lastElement = (Element) collectionToBeUpdated.get(collectionToBeUpdated.size() - 1); clonedElement = (Element) lastElement.createCopy(); } // "Finally, this newly created node is inserted into the instance data at the location // specified by attributes position and at." final XFormsInstance currentInstance = xformsControls.getCurrentInstance(); final String insertionIndexString = currentInstance.evaluateXPathAsString(pipelineContext, xformsControls.getCurrentSingleNode(), "round(" + atAttribute + ")", Dom4jUtils.getNamespaceContextNoDefault(actionElement), null, xformsControls.getFunctionLibrary(), null); // Don't think we will get NaN with XPath 2.0... int insertionIndex = "NaN".equals(insertionIndexString) ? collectionToBeUpdated.size() : Integer.parseInt(insertionIndexString) ; // Adjust index to be in range if (insertionIndex > collectionToBeUpdated.size()) insertionIndex = collectionToBeUpdated.size(); if (insertionIndex < 1) insertionIndex = 1; // Find actual insertion point and insert final Element indexElement = (Element) collectionToBeUpdated.get(insertionIndex - 1); final Element parentElement = indexElement.getParent(); final List siblingElements = parentElement.elements(); final int actualIndex = siblingElements.indexOf(indexElement); // Insert new element (changes to the list are reflected in the document) final int newNodeIndex; if ("after".equals(positionAttribute) || "NaN".equals(insertionIndexString)) { siblingElements.add(actualIndex + 1, clonedElement); newNodeIndex = insertionIndex + 1; } else if ("before".equals(positionAttribute)) { siblingElements.add(actualIndex, clonedElement); newNodeIndex = insertionIndex; } else { throw new OXFException("Invalid 'position' attribute: " + positionAttribute + ". Must be either 'before' or 'after'."); } // "3. The index for any repeating sequence that is bound to the homogeneous // collection where the node was added is updated to point to the newly added node. // The indexes for inner nested repeat collections are re-initialized to // startindex." // Find list of affected repeat ids final Map boundRepeatIds = new HashMap(); final Map childrenRepeatIds = new HashMap(); findAffectedRepeatIds(pipelineContext, parentElement, boundRepeatIds, childrenRepeatIds); // Rebuild ControlsState xformsControls.rebuildCurrentControlsState(pipelineContext); final XFormsControls.ControlsState currentControlsState = xformsControls.getCurrentControlsState(); // Update repeat information for the ids found if (boundRepeatIds.size() != 0 || childrenRepeatIds.size() != 0) { for (Iterator i = boundRepeatIds.keySet().iterator(); i.hasNext();) { final String repeatId = (String) i.next(); currentControlsState.updateRepeatIndex(repeatId, newNodeIndex); } for (Iterator i = childrenRepeatIds.keySet().iterator(); i.hasNext();) { final String repeatId = (String) i.next(); //final int newIndex = ((Integer) currentControlsState.getInitialRepeatIdToIndex().get(repeatId)).intValue(); final int newIndex = 1; currentControlsState.updateRepeatIndex(repeatId, newIndex); } } // "4. If the insert is successful, the event xforms-insert is dispatched." containingDocument.dispatchEvent(pipelineContext, new XFormsInsertEvent(currentInstance, atAttribute)); if (actionContext != null) { // "XForms Actions that change the tree structure of instance data result in setting all four flags to true" actionContext.setAll(true); } else { // Binding context has to be reset as the controls have been updated setBindingContext(pipelineContext, eventHandlerContainer.getId(), actionElement); final XFormsModel model = xformsControls.getCurrentModel(); // Send events directly containingDocument.dispatchEvent(pipelineContext, new XFormsRebuildEvent(model)); containingDocument.dispatchEvent(pipelineContext, new XFormsRecalculateEvent(model, true)); containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(model, true)); containingDocument.dispatchEvent(pipelineContext, new XFormsRefreshEvent(model)); } } } else if (XFormsActions.XFORMS_DELETE_ACTION.equals(actionEventName)) { // 9.3.6 The delete Element final String atAttribute = actionElement.attributeValue("at"); // Set current binding in order to evaluate the current nodeset // "1. The homogeneous collection to be updated is determined by evaluating the Node Set Binding." final List collectionToBeUpdated = xformsControls.getCurrentNodeset(); if (collectionToBeUpdated.size() > 0) { // "If the collection is empty, the delete action has no effect." final XFormsInstance currentInstance = xformsControls.getCurrentInstance(); final Element parentElement; int deletionIndex; { final String deletionIndexString = currentInstance.evaluateXPathAsString(pipelineContext, xformsControls.getCurrentSingleNode(), "round(" + atAttribute + ")", Dom4jUtils.getNamespaceContextNoDefault(actionElement), null, xformsControls.getFunctionLibrary(), null); // Don't think we will get NaN with XPath 2.0... deletionIndex = "NaN".equals(deletionIndexString) ? collectionToBeUpdated.size() : Integer.parseInt(deletionIndexString) ; // Adjust index to be in range if (deletionIndex > collectionToBeUpdated.size()) deletionIndex = collectionToBeUpdated.size(); if (deletionIndex < 1) deletionIndex = 1; // Find actual deletion point final Element indexElement = (Element) collectionToBeUpdated.get(deletionIndex - 1); parentElement = indexElement.getParent(); final List siblingElements = parentElement.elements(); final int actualIndex = siblingElements.indexOf(indexElement); // Delete node siblingElements.remove(actualIndex); } // Rebuild ControlsState xformsControls.rebuildCurrentControlsState(pipelineContext); final XFormsControls.ControlsState currentControlsState = xformsControls.getCurrentControlsState(); // Update repeat information for the ids found // Find list of affected repeat ids final Map boundRepeatIds = new HashMap(); final Map childrenRepeatIds = new HashMap(); findAffectedRepeatIds(pipelineContext, parentElement, boundRepeatIds, childrenRepeatIds); // Update repeat information for the ids found if (boundRepeatIds.size() != 0 || childrenRepeatIds.size() != 0) { boolean updateInnerRepeats = false; for (Iterator i = boundRepeatIds.keySet().iterator(); i.hasNext();) { final String repeatId = (String) i.next(); final int currentlySelected = ((Integer) currentControlsState.getInitialRepeatIdToIndex().get(repeatId)).intValue(); if (currentlySelected == deletionIndex) { if (deletionIndex == collectionToBeUpdated.size()) { // o "When the last remaining item in the collection is removed, // the index position becomes 0." // o "When the index was pointing to the deleted node, which was // the last item in the collection, the index will point to the new // last node of the collection and the index of inner repeats is // reinitialized." currentControlsState.updateRepeatIndex(repeatId, currentlySelected - 1); updateInnerRepeats = true; } else { // o "When the index was pointing to the deleted node, which was // not the last item in the collection, the index position is not // changed and the index of inner repeats is re-initialized." updateInnerRepeats = true; } } } if (updateInnerRepeats) { for (Iterator i = childrenRepeatIds.keySet().iterator(); i.hasNext();) { final String repeatId = (String) i.next(); //final int newIndex = ((Integer) currentControlsState.getInitialRepeatIdToIndex().get(repeatId)).intValue(); final int newIndex = 1; currentControlsState.updateRepeatIndex(repeatId, newIndex); } } } // "4. If the delete is successful, the event xforms-delete is dispatched." containingDocument.dispatchEvent(pipelineContext, new org.orbeon.oxf.xforms.event.events.XFormsDeleteEvent(currentInstance, atAttribute)); if (actionContext != null) { // "XForms Actions that change the tree structure of instance data result in setting all four flags to true" actionContext.setAll(true); } else { // Binding context has to be reset as the controls have been updated setBindingContext(pipelineContext, eventHandlerContainer.getId(), actionElement); final XFormsModel model = xformsControls.getCurrentModel(); // Send events directly containingDocument.dispatchEvent(pipelineContext, new XFormsRebuildEvent(model)); containingDocument.dispatchEvent(pipelineContext, new XFormsRecalculateEvent(model, true)); containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(model, true)); containingDocument.dispatchEvent(pipelineContext, new XFormsRefreshEvent(model)); } } } else if (XFormsActions.XFORMS_SETINDEX_ACTION.equals(actionEventName)) { // 9.3.7 The setindex Element final String repeatId = actionElement.attributeValue("repeat"); final String indexXPath = actionElement.attributeValue("index"); final XFormsInstance currentInstance = xformsControls.getCurrentInstance(); final String indexString = currentInstance.evaluateXPathAsString(pipelineContext, xformsControls.getCurrentSingleNode(), "string(number(" + indexXPath + "))", Dom4jUtils.getNamespaceContextNoDefault(actionElement), null, xformsControls.getFunctionLibrary(), null); if ("NaN".equals(indexString)) { // "If the index evaluates to NaN the action has no effect." } else { // Rebuild ControlsState if needed as we are going to make some changes if (xformsControls.getCurrentControlsState() == xformsControls.getInitialControlsState()) xformsControls.rebuildCurrentControlsState(pipelineContext); final XFormsControls.ControlsState currentControlsState = xformsControls.getCurrentControlsState(); final int index = Integer.parseInt(indexString); final Map repeatIdToRepeatControlInfo = currentControlsState.getRepeatIdToRepeatControlInfo(); final XFormsControls.RepeatControlInfo repeatControlInfo = (XFormsControls.RepeatControlInfo) repeatIdToRepeatControlInfo.get(repeatId); if (index <= 0) { // "If the selected index is 0 or less, an xforms-scroll-first event is dispatched // and the index is set to 1." containingDocument.dispatchEvent(pipelineContext, new XFormsScrollFirstEvent(repeatControlInfo)); currentControlsState.updateRepeatIndex(repeatId, 1); } else { final List children = repeatControlInfo.getChildren(); if (children != null && index > children.size()) { // "If the selected index is greater than the index of the last repeat // item, an xforms-scroll-last event is dispatched and the index is set to // that of the last item." containingDocument.dispatchEvent(pipelineContext, new XFormsScrollLastEvent(repeatControlInfo)); currentControlsState.updateRepeatIndex(repeatId, children.size()); } else { // Otherwise just set the index currentControlsState.updateRepeatIndex(repeatId, index); } } // "The indexes for inner nested repeat collections are re-initialized to 1." final List nestedRepeatIds = currentControlsState.getNestedRepeatIds(repeatId); if (nestedRepeatIds != null) { for (Iterator i = nestedRepeatIds.iterator(); i.hasNext();) { final String currentRepeatId = (String) i.next(); currentControlsState.updateRepeatIndex(currentRepeatId, 1); } } } } else if (XFormsActions.XFORMS_SEND_ACTION.equals(actionEventName)) { // 10.1.10 The send Element // Find submission object final String submissionId = actionElement.attributeValue("submission"); if (submissionId == null) throw new OXFException("Missing mandatory submission attribute on xforms:send element."); final Object submission = containingDocument.getObjectById(pipelineContext, submissionId); if (submission == null || !(submission instanceof XFormsModelSubmission)) throw new OXFException("submission attribute on xforms:send element does not refer to existing xforms:submission element."); // Dispatch event to submission object containingDocument.dispatchEvent(pipelineContext, new XFormsSubmitEvent((XFormsEventTarget) submission)); } else if (XFormsActions.XFORMS_DISPATCH_ACTION.equals(actionEventName)) { // 10.1.2 The dispatch Element // Mandatory attributes final String newEventName = actionElement.attributeValue("name"); if (newEventName == null) throw new OXFException("Missing mandatory name attribute on xforms:dispatch element."); final String newEventTargetId = actionElement.attributeValue("target"); if (newEventTargetId == null) throw new OXFException("Missing mandatory target attribute on xforms:dispatch element."); // Optional attributes final boolean newEventBubbles; { final String newEventBubblesString = actionElement.attributeValue("bubbles"); // FIXME: "The default value depends on the definition of a custom event. For predefined events, this attribute has no effect." newEventBubbles = Boolean.getBoolean((newEventBubblesString == null) ? "true" : newEventBubblesString); } final boolean newEventCancelable; { // FIXME: "The default value depends on the definition of a custom event. For predefined events, this attribute has no effect." final String newEventCancelableString = actionElement.attributeValue("cancelable"); newEventCancelable = Boolean.getBoolean((newEventCancelableString == null) ? "true" : newEventCancelableString); } final Object newTargetObject = containingDocument.getObjectById(pipelineContext, newEventTargetId); if (newTargetObject instanceof XFormsEventTarget) { // This can be anything containingDocument.dispatchEvent(pipelineContext, XFormsEventFactory.createEvent(newEventName, (XFormsEventTarget) newTargetObject, newEventBubbles, newEventCancelable)); } else { throw new OXFException("Invalid event target for id: " + newEventTargetId); } } else { throw new OXFException("Invalid action requested: " + actionEventName); } }
|
51410 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51410/f47125486958c2c8d813e9358be6afdc01f7d210/XFormsActionInterpreter.java/buggy/src/java/org/orbeon/oxf/xforms/action/XFormsActionInterpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1803,
12,
6385,
13671,
1042,
5873,
1042,
16,
514,
27729,
16,
1139,
18529,
16402,
2170,
30441,
2170,
16,
3010,
1301,
1046,
16,
4382,
1042,
1301,
1042,
13,
288,
3639,
368,
2073,
716,
732,
22413,
326,
1301,
930,
3639,
727,
514,
1301,
3402,
3098,
273,
1301,
1046,
18,
588,
3402,
3098,
5621,
3639,
309,
16051,
60,
18529,
2918,
18,
60,
4983,
55,
67,
11368,
67,
3098,
18,
14963,
12,
1128,
3402,
3098,
3719,
288,
5411,
604,
394,
531,
60,
42,
503,
2932,
1941,
1301,
1981,
30,
315,
397,
1301,
3402,
3098,
1769,
3639,
289,
3639,
368,
1000,
5085,
819,
3639,
444,
5250,
1042,
12,
14511,
1042,
16,
30441,
2170,
18,
26321,
9334,
1301,
1046,
1769,
3639,
727,
514,
1301,
24320,
273,
1301,
1046,
18,
17994,
5621,
3639,
309,
261,
60,
18529,
6100,
18,
60,
4983,
55,
67,
4043,
4051,
67,
12249,
18,
14963,
12,
1128,
24320,
3719,
288,
5411,
368,
1728,
18,
21,
18,
29,
1021,
444,
1132,
3010,
5411,
368,
619,
9741,
30,
542,
1132,
5411,
727,
514,
460,
273,
1301,
1046,
18,
4589,
620,
2932,
1132,
8863,
5411,
727,
514,
913,
273,
1301,
1046,
18,
588,
19733,
5621,
5411,
727,
1139,
18529,
1442,
783,
1442,
273,
619,
9741,
16795,
18,
588,
3935,
1442,
5621,
5411,
727,
514,
460,
25208,
31,
5411,
309,
261,
1132,
480,
446,
13,
288,
7734,
368,
1445,
358,
444,
353,
8470,
598,
392,
10172,
2652,
7734,
1635,
1981,
1042,
273,
12965,
24,
78,
1989,
18,
588,
3402,
1042,
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,
1086,
1803,
12,
6385,
13671,
1042,
5873,
1042,
16,
514,
27729,
16,
1139,
18529,
16402,
2170,
30441,
2170,
16,
3010,
1301,
1046,
16,
4382,
1042,
1301,
1042,
13,
288,
3639,
368,
2073,
716,
732,
22413,
326,
1301,
930,
3639,
727,
514,
1301,
3402,
3098,
273,
1301,
1046,
18,
588,
3402,
3098,
5621,
3639,
309,
16051,
60,
18529,
2918,
18,
60,
4983,
55,
67,
11368,
67,
3098,
18,
14963,
12,
1128,
3402,
3098,
3719,
288,
5411,
604,
394,
531,
60,
42,
503,
2932,
1941,
1301,
1981,
30,
315,
397,
1301,
3402,
3098,
1769,
3639,
289,
3639,
368,
1000,
5085,
819,
3639,
444,
5250,
1042,
12,
14511,
1042,
16,
30441,
2170,
18,
26321,
9334,
1301,
1046,
1769,
3639,
2
] |
curArea.setIPD(width);
|
area.setIPD(width);
|
protected void widthAdjustArea(LayoutContext context) { double dAdjust = context.getIPDAdjust(); int width = areaInfo.ipdArea.opt; if (dAdjust < 0) { width = (int) (width + dAdjust * (areaInfo.ipdArea.opt - areaInfo.ipdArea.min)); } else if (dAdjust > 0) { width = (int) (width + dAdjust * (areaInfo.ipdArea.max - areaInfo.ipdArea.opt)); } curArea.setIPD(width); }
|
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/5ceefcc7d76554e2cf178d60628e229a03f468fb/LeafNodeLayoutManager.java/buggy/src/java/org/apache/fop/layoutmgr/LeafNodeLayoutManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1835,
10952,
5484,
12,
3744,
1042,
819,
13,
288,
3639,
1645,
302,
10952,
273,
819,
18,
588,
2579,
40,
10952,
5621,
3639,
509,
1835,
273,
5091,
966,
18,
625,
72,
5484,
18,
3838,
31,
3639,
309,
261,
72,
10952,
411,
374,
13,
288,
5411,
1835,
273,
261,
474,
13,
261,
2819,
397,
302,
10952,
380,
261,
5036,
966,
18,
625,
72,
5484,
18,
3838,
4766,
2398,
300,
5091,
966,
18,
625,
72,
5484,
18,
1154,
10019,
3639,
289,
469,
309,
261,
72,
10952,
405,
374,
13,
288,
5411,
1835,
273,
261,
474,
13,
261,
2819,
397,
302,
10952,
380,
261,
5036,
966,
18,
625,
72,
5484,
18,
1896,
4766,
2398,
300,
5091,
966,
18,
625,
72,
5484,
18,
3838,
10019,
3639,
289,
3639,
5091,
18,
542,
2579,
40,
12,
2819,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
4750,
918,
1835,
10952,
5484,
12,
3744,
1042,
819,
13,
288,
3639,
1645,
302,
10952,
273,
819,
18,
588,
2579,
40,
10952,
5621,
3639,
509,
1835,
273,
5091,
966,
18,
625,
72,
5484,
18,
3838,
31,
3639,
309,
261,
72,
10952,
411,
374,
13,
288,
5411,
1835,
273,
261,
474,
13,
261,
2819,
397,
302,
10952,
380,
261,
5036,
966,
18,
625,
72,
5484,
18,
3838,
4766,
2398,
300,
5091,
966,
18,
625,
72,
5484,
18,
1154,
10019,
3639,
289,
469,
309,
261,
72,
10952,
405,
374,
13,
288,
5411,
1835,
273,
261,
474,
13,
261,
2819,
397,
302,
10952,
380,
261,
5036,
966,
18,
625,
72,
5484,
18,
1896,
4766,
2398,
300,
5091,
966,
18,
625,
72,
2
] |
Assert.assertEquals("1 saved value ", "12", val1.getText());
|
Assert.assertEquals("1 saved value ", "12", ((JTextField)val1).getText());
|
public void testVariableSynch() { // initialize the system ProgDebugger p = new ProgDebugger(); InstanceManager.setProgrammer(p); Vector v = createCvVector(); CvValue cv = new CvValue(81); v.setElementAt(cv, 81); // create a variable pointed at CV 81, loaded as 5, manually notified DecVariableValue var = new DecVariableValue("name", "comment", false, 81, "XXVVVVXX", 0, 255, v, null); ((JTextField)var.getValue()).setText("5"); ((JTextField)var.getValue()).postActionEvent(); // now get value, check JTextField val1 = (JTextField) var.getValue(); Assert.assertEquals("initial value ", "5", val1.getText()); // now get rep, check JTextField rep1 = (JTextField) var.getRep(""); Assert.assertEquals("initial rep ", "5", rep1.getText()); // update via value ((JTextField)var.getValue()).setText("12"); ((JTextField)var.getValue()).postActionEvent(); // check again with existing references Assert.assertEquals("1 saved value ", "12", val1.getText()); Assert.assertEquals("1 saved rep ", "12", rep1.getText()); // pick up new references and check Assert.assertEquals("1 new value ", "12", ((JTextField) var.getValue()).getText()); Assert.assertEquals("1 new rep ", "12", ((JTextField) var.getRep("")).getText()); // update via rep rep1.setText("201"); rep1.postActionEvent(); // check again with existing references Assert.assertEquals("2 saved value ", "201", val1.getText()); Assert.assertEquals("2 saved rep ", "201", rep1.getText()); // pick up new references and check Assert.assertEquals("2 new value ", "201", ((JTextField) var.getValue()).getText()); Assert.assertEquals("2 new rep ", "201", ((JTextField) var.getRep("")).getText()); }
|
2652 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2652/05221baa63c93924d7a8a915d5315f776d83fe32/VariableValueTest.java/clean/tests/jmrit/symbolicprog/VariableValueTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3092,
55,
2515,
1435,
288,
202,
202,
759,
4046,
326,
2619,
202,
202,
626,
75,
24113,
293,
273,
394,
1186,
75,
24113,
5621,
202,
202,
1442,
1318,
18,
542,
9459,
6592,
12,
84,
1769,
9506,
202,
5018,
331,
273,
752,
39,
90,
5018,
5621,
202,
202,
39,
90,
620,
8951,
273,
394,
385,
90,
620,
12,
11861,
1769,
202,
202,
90,
18,
542,
1046,
861,
12,
19774,
16,
29424,
1769,
202,
202,
759,
752,
279,
2190,
25874,
622,
385,
58,
29424,
16,
4203,
487,
1381,
16,
10036,
18791,
202,
202,
1799,
3092,
620,
569,
273,
394,
3416,
3092,
620,
2932,
529,
3113,
315,
3469,
3113,
629,
16,
29424,
16,
315,
5619,
58,
58,
58,
58,
5619,
3113,
374,
16,
4561,
16,
331,
16,
446,
1769,
202,
202,
12443,
46,
16157,
13,
1401,
18,
24805,
1435,
2934,
542,
1528,
2932,
25,
8863,
202,
202,
12443,
46,
16157,
13,
1401,
18,
24805,
1435,
2934,
2767,
1803,
1133,
5621,
202,
202,
759,
2037,
336,
460,
16,
866,
202,
202,
46,
16157,
1244,
21,
273,
261,
46,
16157,
13,
569,
18,
24805,
5621,
202,
202,
8213,
18,
11231,
8867,
2932,
6769,
460,
3104,
315,
25,
3113,
1244,
21,
18,
588,
1528,
10663,
202,
202,
759,
2037,
336,
2071,
16,
866,
202,
202,
46,
16157,
2071,
21,
273,
261,
46,
16157,
13,
569,
18,
588,
18933,
2932,
8863,
202,
202,
8213,
18,
11231,
8867,
2932,
6769,
2071,
3104,
315,
25,
3113,
2071,
21,
18,
588,
1528,
10663,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3092,
55,
2515,
1435,
288,
202,
202,
759,
4046,
326,
2619,
202,
202,
626,
75,
24113,
293,
273,
394,
1186,
75,
24113,
5621,
202,
202,
1442,
1318,
18,
542,
9459,
6592,
12,
84,
1769,
9506,
202,
5018,
331,
273,
752,
39,
90,
5018,
5621,
202,
202,
39,
90,
620,
8951,
273,
394,
385,
90,
620,
12,
11861,
1769,
202,
202,
90,
18,
542,
1046,
861,
12,
19774,
16,
29424,
1769,
202,
202,
759,
752,
279,
2190,
25874,
622,
385,
58,
29424,
16,
4203,
487,
1381,
16,
10036,
18791,
202,
202,
1799,
3092,
620,
569,
273,
394,
3416,
3092,
620,
2932,
529,
3113,
315,
3469,
3113,
629,
16,
29424,
16,
315,
5619,
58,
58,
58,
2
] |
oldValue = getPreferenceStore( ).getString( getPreferenceName( ) ); if ( oldValue != null )
|
String value = getPreferenceStore( ).getString( getPreferenceName( ) ); if ( value != null )
|
protected void doLoad( ) { oldValue = getPreferenceStore( ).getString( getPreferenceName( ) ); if ( oldValue != null ) { fValue = oldValue; fText.setText( fValue ); } }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/3db900b760af24686a4f6ffff7e4dc15c19b1036/BgImageFieldEditor.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/BgImageFieldEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
741,
2563,
12,
262,
202,
95,
202,
202,
1673,
620,
273,
336,
9624,
2257,
12,
262,
18,
588,
780,
12,
336,
9624,
461,
12,
262,
11272,
202,
202,
430,
261,
11144,
480,
446,
262,
202,
202,
95,
1082,
202,
74,
620,
273,
11144,
31,
1082,
202,
74,
1528,
18,
542,
1528,
12,
284,
620,
11272,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
741,
2563,
12,
262,
202,
95,
202,
202,
1673,
620,
273,
336,
9624,
2257,
12,
262,
18,
588,
780,
12,
336,
9624,
461,
12,
262,
11272,
202,
202,
430,
261,
11144,
480,
446,
262,
202,
202,
95,
1082,
202,
74,
620,
273,
11144,
31,
1082,
202,
74,
1528,
18,
542,
1528,
12,
284,
620,
11272,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
} else {
|
} else { */
|
public Node getAccessNode(String id) { id = id.intern(); if (id.charAt(0) == '#') { // Special variable or constant id = id.substring(1).intern(); if (id == "self") { return nf.newSelf(); } else if (id == "nil") { return nf.newNil(); } else if (id == "true") { return nf.newTrue(); } else if (id == "false") { return nf.newFalse(); } else if (id == "__FILE__") { return nf.newStr(RubyString.newString(ruby, ruby.getSourceFile())); } else if (id == "__LINE__") { return nf.newLit(RubyFixnum.newFixnum(ruby, ruby.getSourceLine())); } } else { if (IdUtil.isLocal(id)) { if (dyna_in_block() && RubyVarmap.isDefined(ruby, id)) { return nf.newDVar(id); } else if (isLocalRegistered(id)) { return nf.newLVar(id); } /* * method call without arguments */ return nf.newVCall(id); } else if (IdUtil.isGlobal(id)) { return nf.newGVar(id); } else if (IdUtil.isInstanceVariable(id)) { return nf.newIVar(id); } else if (IdUtil.isConstant(id)) { return nf.newConst(id); } else if (IdUtil.isClassVariable(id)) { if (isInSingle()) { return nf.newCVar2(id); } return nf.newCVar(id); } } rb_bug("Invalid id '" + id + "' for getAccessNode."); return null; }
|
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/d31a76ee29d5978a9bec41e3ac9134cee024bcab/ParserHelper.java/clean/org/jruby/parser/ParserHelper.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2029,
21909,
907,
12,
780,
612,
13,
288,
3639,
612,
273,
612,
18,
267,
798,
5621,
3639,
309,
261,
350,
18,
3001,
861,
12,
20,
13,
422,
2946,
6134,
288,
5411,
368,
13409,
2190,
578,
5381,
5411,
612,
273,
612,
18,
28023,
12,
21,
2934,
267,
798,
5621,
5411,
309,
261,
350,
422,
315,
2890,
7923,
288,
7734,
327,
13958,
18,
2704,
10084,
5621,
5411,
289,
469,
309,
261,
350,
422,
315,
20154,
7923,
288,
7734,
327,
13958,
18,
2704,
12616,
5621,
5411,
289,
469,
309,
261,
350,
422,
315,
3767,
7923,
288,
7734,
327,
13958,
18,
2704,
5510,
5621,
5411,
289,
469,
309,
261,
350,
422,
315,
5743,
7923,
288,
7734,
327,
13958,
18,
2704,
8381,
5621,
5411,
289,
469,
309,
261,
350,
422,
10425,
3776,
972,
7923,
288,
7734,
327,
13958,
18,
2704,
1585,
12,
54,
10340,
780,
18,
2704,
780,
12,
27768,
16,
22155,
18,
588,
31150,
1435,
10019,
5411,
289,
469,
309,
261,
350,
422,
10425,
5997,
972,
7923,
288,
7734,
327,
13958,
18,
2704,
23707,
12,
54,
10340,
8585,
2107,
18,
2704,
8585,
2107,
12,
27768,
16,
22155,
18,
588,
1830,
1670,
1435,
10019,
5411,
289,
3639,
289,
469,
288,
1195,
2398,
309,
261,
548,
1304,
18,
291,
2042,
12,
350,
3719,
288,
7734,
309,
261,
72,
23041,
67,
267,
67,
2629,
1435,
597,
19817,
1537,
1458,
18,
291,
8116,
12,
27768,
16,
612,
3719,
288,
10792,
327,
13958,
18,
2704,
40,
1537,
12,
350,
1769,
7734,
289,
469,
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,
377,
1071,
2029,
21909,
907,
12,
780,
612,
13,
288,
3639,
612,
273,
612,
18,
267,
798,
5621,
3639,
309,
261,
350,
18,
3001,
861,
12,
20,
13,
422,
2946,
6134,
288,
5411,
368,
13409,
2190,
578,
5381,
5411,
612,
273,
612,
18,
28023,
12,
21,
2934,
267,
798,
5621,
5411,
309,
261,
350,
422,
315,
2890,
7923,
288,
7734,
327,
13958,
18,
2704,
10084,
5621,
5411,
289,
469,
309,
261,
350,
422,
315,
20154,
7923,
288,
7734,
327,
13958,
18,
2704,
12616,
5621,
5411,
289,
469,
309,
261,
350,
422,
315,
3767,
7923,
288,
7734,
327,
13958,
18,
2704,
5510,
5621,
5411,
289,
469,
309,
261,
350,
422,
315,
5743,
7923,
288,
7734,
327,
13958,
18,
2704,
8381,
2
] |
BaseClientKey k = ClientKey.getBaseKey(uri);
|
BaseClientKey k = BaseClientKey.getBaseKey(uri);
|
private void handleMetadata() throws FetchException, MetadataParseException, ArchiveFailureException, ArchiveRestartException { while(true) { if(metadata.isSimpleManifest()) { Logger.minor(this, "Is simple manifest"); String name; if(metaStrings.isEmpty()) throw new FetchException(FetchException.NOT_ENOUGH_METASTRINGS); else name = (String) metaStrings.removeFirst(); // Since metadata is a document, we just replace metadata here Logger.minor(this, "Next meta-string: "+name); if(name == null) { metadata = metadata.getDefaultDocument(); if(metadata == null) throw new FetchException(FetchException.NOT_ENOUGH_METASTRINGS); } else { metadata = metadata.getDocument(name); thisKey = thisKey.pushMetaString(name); if(metadata == null) throw new FetchException(FetchException.NOT_IN_ARCHIVE); } continue; // loop } else if(metadata.isArchiveManifest()) { Logger.minor(this, "Is archive manifest"); if(metaStrings.isEmpty() && ctx.returnZIPManifests) { // Just return the archive, whole. metadata.setSimpleRedirect(); continue; } // First we need the archive metadata. // Then parse it. // Then we may need to fetch something from inside the archive. ah = (ArchiveStoreContext) ctx.archiveManager.makeHandler(thisKey, metadata.getArchiveType(), false); archiveMetadata = metadata; // ah is set. This means we are currently handling an archive. Bucket metadataBucket; metadataBucket = ah.getMetadata(actx, null, recursionLevel+1, true); if(metadataBucket != null) { try { metadata = Metadata.construct(metadataBucket); } catch (IOException e) { // Bucket error? throw new FetchException(FetchException.BUCKET_ERROR, e); } } else { fetchArchive(false, archiveMetadata); // will result in this function being called again return; } continue; } else if(metadata.isArchiveInternalRedirect()) { Logger.minor(this, "Is archive-internal redirect"); clientMetadata.mergeNoOverwrite(metadata.getClientMetadata()); // Fetch it from the archive if(ah == null) throw new FetchException(FetchException.UNKNOWN_METADATA, "Archive redirect not in an archive manifest"); String filename = metadata.getZIPInternalName(); Logger.minor(this, "Fetching "+filename); Bucket dataBucket = ah.get(filename, actx, null, recursionLevel+1, true); if(dataBucket != null) { Logger.minor(this, "Returning data"); // The client may free it, which is bad, or it may hang on to it for so long that it gets // freed by us, which is also bad. // So copy it. // FIXME this is stupid, reconsider how we determine when to free buckets; refcounts maybe? Bucket out; try { if(returnBucket != null) out = returnBucket; else out = ctx.bucketFactory.makeBucket(dataBucket.size()); BucketTools.copy(dataBucket, out); } catch (IOException e) { onFailure(new FetchException(FetchException.BUCKET_ERROR)); return; } // Return the data onSuccess(new FetchResult(this.clientMetadata, out)); return; } else { Logger.minor(this, "Fetching archive"); // Metadata cannot contain pointers to files which don't exist. // We enforce this in ArchiveHandler. // Therefore, the archive needs to be fetched. fetchArchive(true, archiveMetadata); // Will call back into this function when it has been fetched. return; } } else if(metadata.isMultiLevelMetadata()) { Logger.minor(this, "Is multi-level metadata"); // Fetch on a second SingleFileFetcher, like with archives. Metadata newMeta = (Metadata) metadata.clone(); newMeta.setSimpleRedirect(); SingleFileFetcher f = new SingleFileFetcher(this, newMeta, new MultiLevelMetadataCallback(), ctx); f.handleMetadata(); return; } else if(metadata.isSingleFileRedirect()) { Logger.minor(this, "Is single-file redirect"); clientMetadata.mergeNoOverwrite(metadata.getClientMetadata()); // even splitfiles can have mime types! // FIXME implement implicit archive support // Simple redirect // Just create a new SingleFileFetcher // Which will then fetch the target URI, and call the rcd.success // Hopefully! FreenetURI uri = metadata.getSingleTarget(); Logger.minor(this, "Redirecting to "+uri); ClientKey key; try { BaseClientKey k = ClientKey.getBaseKey(uri); if(k instanceof ClientKey) key = (ClientKey) k; else // FIXME do we want to allow redirects to USKs? // Without redirects to USKs, all SSK and CHKs are static. // This may be a desirable property. throw new FetchException(FetchException.UNKNOWN_METADATA, "Redirect to a USK"); } catch (MalformedURLException e) { throw new FetchException(FetchException.INVALID_URI, e); } if(key instanceof ClientCHK && !((ClientCHK)key).isMetadata()) rcb.onBlockSetFinished(this); LinkedList newMetaStrings = uri.listMetaStrings(); // Move any new meta strings to beginning of our list of remaining meta strings while(!newMetaStrings.isEmpty()) { Object o = newMetaStrings.removeLast(); metaStrings.addFirst(o); } // **FIXME** Is key in the call to SingleFileFetcher here supposed to be this.key or the same key used in the try block above? MultiLevelMetadataCallback.onSuccess() below uses this.key, thus the question SingleFileFetcher f = new SingleFileFetcher((ClientGetter)parent, rcb, clientMetadata, key, metaStrings, ctx, actx, maxRetries, recursionLevel, false, null, true, returnBucket); if(metadata.isCompressed()) { Compressor codec = Compressor.getCompressionAlgorithmByMetadataID(metadata.getCompressionCodec()); f.addDecompressor(codec); } f.schedule(); // All done! No longer our problem! return; } else if(metadata.isSplitfile()) { Logger.minor(this, "Fetching splitfile"); // FIXME implicit archive support clientMetadata.mergeNoOverwrite(metadata.getClientMetadata()); // even splitfiles can have mime types! // Splitfile (possibly compressed) if(metadata.isCompressed()) { Compressor codec = Compressor.getCompressionAlgorithmByMetadataID(metadata.getCompressionCodec()); addDecompressor(codec); } long len = metadata.dataLength(); if(metadata.uncompressedDataLength() > len) len = metadata.uncompressedDataLength(); if(len > ctx.maxOutputLength || len > ctx.maxTempLength) { boolean finished = (rcb == parent); onFailure(new FetchException(FetchException.TOO_BIG, len, finished, clientMetadata.getMIMEType())); return; } SplitFileFetcher sf = new SplitFileFetcher(metadata, rcb, (ClientGetter)parent, ctx, decompressors, clientMetadata, actx, recursionLevel, returnBucket, false); sf.schedule(); rcb.onBlockSetFinished(this); // SplitFile will now run. // Then it will return data to rcd. // We are now out of the loop. Yay! return; } else { Logger.error(this, "Don't know what to do with metadata: "+metadata); throw new FetchException(FetchException.UNKNOWN_METADATA); } } }
|
50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/SingleFileFetcher.java/clean/src/freenet/client/async/SingleFileFetcher.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1640,
2277,
1435,
1216,
8065,
503,
16,
6912,
13047,
16,
13124,
14389,
16,
13124,
15057,
503,
288,
202,
202,
17523,
12,
3767,
13,
288,
1082,
202,
430,
12,
4165,
18,
291,
5784,
9121,
10756,
288,
9506,
202,
3328,
18,
17364,
12,
2211,
16,
315,
2520,
4143,
5643,
8863,
9506,
202,
780,
508,
31,
9506,
202,
430,
12,
3901,
7957,
18,
291,
1921,
10756,
6862,
202,
12849,
394,
8065,
503,
12,
5005,
503,
18,
4400,
67,
1157,
26556,
16715,
67,
19294,
5804,
55,
1769,
9506,
202,
12107,
6862,
202,
529,
273,
261,
780,
13,
2191,
7957,
18,
4479,
3759,
5621,
9506,
202,
759,
7897,
1982,
353,
279,
1668,
16,
732,
2537,
1453,
1982,
2674,
9506,
202,
3328,
18,
17364,
12,
2211,
16,
315,
2134,
2191,
17,
1080,
30,
13773,
529,
1769,
9506,
202,
430,
12,
529,
422,
446,
13,
288,
6862,
202,
4165,
273,
1982,
18,
588,
1868,
2519,
5621,
6862,
202,
430,
12,
4165,
422,
446,
13,
25083,
202,
12849,
394,
8065,
503,
12,
5005,
503,
18,
4400,
67,
1157,
26556,
16715,
67,
19294,
5804,
55,
1769,
9506,
202,
97,
469,
288,
6862,
202,
4165,
273,
1982,
18,
588,
2519,
12,
529,
1769,
6862,
202,
2211,
653,
273,
333,
653,
18,
6206,
2781,
780,
12,
529,
1769,
6862,
202,
430,
12,
4165,
422,
446,
13,
25083,
202,
12849,
394,
8065,
503,
12,
5005,
503,
18,
4400,
67,
706,
67,
10586,
5354,
1769,
9506,
202,
97,
9506,
202,
17143,
31,
368,
2798,
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,
1640,
2277,
1435,
1216,
8065,
503,
16,
6912,
13047,
16,
13124,
14389,
16,
13124,
15057,
503,
288,
202,
202,
17523,
12,
3767,
13,
288,
1082,
202,
430,
12,
4165,
18,
291,
5784,
9121,
10756,
288,
9506,
202,
3328,
18,
17364,
12,
2211,
16,
315,
2520,
4143,
5643,
8863,
9506,
202,
780,
508,
31,
9506,
202,
430,
12,
3901,
7957,
18,
291,
1921,
10756,
6862,
202,
12849,
394,
8065,
503,
12,
5005,
503,
18,
4400,
67,
1157,
26556,
16715,
67,
19294,
5804,
55,
1769,
9506,
202,
12107,
6862,
202,
529,
273,
261,
780,
13,
2191,
7957,
18,
4479,
3759,
5621,
9506,
202,
759,
7897,
1982,
353,
279,
1668,
16,
732,
2537,
1453,
1982,
2674,
9506,
202,
2
] |
background = item.getControl().getDisplay().getSystemColor(SWT.COLOR_WIDGET_BACKGROUND);
|
background = getItemBackgroundColor(item.getControl());
|
void addItem(final AnimationItem item) { items.add(item); if (background == null) background = item.getControl().getDisplay().getSystemColor(SWT.COLOR_WIDGET_BACKGROUND); item.getControl().addDisposeListener(new DisposeListener() { /* (non-Javadoc) * @see org.eclipse.swt.events.DisposeListener#widgetDisposed(org.eclipse.swt.events.DisposeEvent) */ public void widgetDisposed(DisposeEvent e) { AnimationManager.this.items.remove(item); } }); }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5fbfe10e19bbc4cfe42b1f0afa95f83d30b99e0c/AnimationManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/AnimationManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
15009,
12,
6385,
22685,
1180,
761,
13,
288,
202,
202,
3319,
18,
1289,
12,
1726,
1769,
202,
202,
430,
261,
9342,
422,
446,
13,
1082,
202,
9342,
273,
761,
18,
588,
3367,
7675,
588,
4236,
7675,
588,
3163,
2957,
12,
55,
8588,
18,
10989,
67,
59,
734,
3264,
67,
8720,
20166,
1769,
202,
202,
1726,
18,
588,
3367,
7675,
1289,
1669,
4150,
2223,
12,
2704,
3035,
4150,
2223,
1435,
288,
1082,
202,
20308,
261,
5836,
17,
24060,
13,
9506,
380,
632,
5946,
2358,
18,
20416,
18,
5328,
88,
18,
5989,
18,
1669,
4150,
2223,
7,
6587,
1669,
7423,
12,
3341,
18,
20416,
18,
5328,
88,
18,
5989,
18,
1669,
4150,
1133,
13,
9506,
1195,
1082,
202,
482,
918,
3604,
1669,
7423,
12,
1669,
4150,
1133,
425,
13,
288,
9506,
202,
10816,
1318,
18,
2211,
18,
3319,
18,
4479,
12,
1726,
1769,
1082,
202,
97,
202,
202,
22938,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
6459,
15009,
12,
6385,
22685,
1180,
761,
13,
288,
202,
202,
3319,
18,
1289,
12,
1726,
1769,
202,
202,
430,
261,
9342,
422,
446,
13,
1082,
202,
9342,
273,
761,
18,
588,
3367,
7675,
588,
4236,
7675,
588,
3163,
2957,
12,
55,
8588,
18,
10989,
67,
59,
734,
3264,
67,
8720,
20166,
1769,
202,
202,
1726,
18,
588,
3367,
7675,
1289,
1669,
4150,
2223,
12,
2704,
3035,
4150,
2223,
1435,
288,
1082,
202,
20308,
261,
5836,
17,
24060,
13,
9506,
380,
632,
5946,
2358,
18,
20416,
18,
5328,
88,
18,
5989,
18,
1669,
4150,
2223,
7,
6587,
1669,
7423,
12,
3341,
18,
20416,
18,
5328,
88,
18,
5989,
18,
1669,
4150,
1133,
13,
9506,
1195,
1082,
202,
2
] |
if (element instanceof PyStackFrame) {
|
IEditorInput edInput = null; if (element instanceof PyStackFrame) {
|
public IEditorInput getEditorInput(Object element) { if (element instanceof PyStackFrame) { IPath path = ((PyStackFrame)element).getPath(); if (path != null && !path.toString().startsWith("<")) { IEditorPart part = PydevPlugin.doOpenEditor(path, false); if (part != null) { return part.getEditorInput(); } } } return null; }
|
1319 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1319/7da9063519f43d1c89993cc1a0315dc676bf6d1b/PySourceLocator.java/buggy/org.python.pydev.debug/src/org/python/pydev/debug/model/PySourceLocator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
6946,
1210,
336,
6946,
1210,
12,
921,
930,
13,
288,
202,
202,
430,
261,
2956,
1276,
4707,
2624,
3219,
13,
288,
1082,
202,
45,
743,
589,
273,
14015,
9413,
2624,
3219,
13,
2956,
2934,
588,
743,
5621,
1082,
202,
430,
261,
803,
480,
446,
597,
401,
803,
18,
10492,
7675,
17514,
1190,
2932,
32,
6,
3719,
288,
9506,
202,
45,
6946,
1988,
1087,
273,
4707,
5206,
3773,
18,
2896,
3678,
6946,
12,
803,
16,
629,
1769,
9506,
202,
430,
261,
2680,
480,
446,
13,
288,
6862,
202,
2463,
1087,
18,
588,
6946,
1210,
5621,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
446,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
6946,
1210,
336,
6946,
1210,
12,
921,
930,
13,
288,
202,
202,
430,
261,
2956,
1276,
4707,
2624,
3219,
13,
288,
1082,
202,
45,
743,
589,
273,
14015,
9413,
2624,
3219,
13,
2956,
2934,
588,
743,
5621,
1082,
202,
430,
261,
803,
480,
446,
597,
401,
803,
18,
10492,
7675,
17514,
1190,
2932,
32,
6,
3719,
288,
9506,
202,
45,
6946,
1988,
1087,
273,
4707,
5206,
3773,
18,
2896,
3678,
6946,
12,
803,
16,
629,
1769,
9506,
202,
430,
261,
2680,
480,
446,
13,
288,
6862,
202,
2463,
1087,
18,
588,
6946,
1210,
5621,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
446,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100
] |
} /*
|
} /*
|
private void processLockedObjects(boolean commit) { List<SGSUUID> listeners = new ArrayList<SGSUUID>(); for (Entry<Long, Serializable> entry : lockedObjectsMap.entrySet()) { Long l = entry.getKey(); try { keyTrans.lock(l); TSODataHeader hdr = (TSODataHeader) keyTrans.read(l); hdr.free = true; keyTrans.write(l, hdr); listeners.addAll(hdr.availabilityListeners); if (commit) { mainTrans.write(hdr.objectID, entry.getValue()); } } catch (NonExistantObjectIDException e) { e.printStackTrace(); } } keyTrans.commit(); if (commit) { mainTrans.commit(); } else { mainTrans.abort(); } lockedObjectsMap.clear(); ostore.notifyAvailabilityListeners(listeners); ostore.deregisterActiveTransaction(this); } /*
|
48631 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48631/2047398952dc1a021679c3c4d8acc712f50310a8/TSOTransaction.java/clean/src/com/sun/gi/objectstore/tso/TSOTransaction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1207,
8966,
4710,
12,
6494,
3294,
13,
288,
202,
202,
682,
32,
55,
16113,
5562,
34,
4679,
273,
394,
2407,
32,
55,
16113,
5562,
34,
5621,
202,
202,
1884,
261,
1622,
32,
3708,
16,
13687,
34,
1241,
294,
8586,
4710,
863,
18,
4099,
694,
10756,
288,
1082,
202,
3708,
328,
273,
1241,
18,
588,
653,
5621,
1082,
202,
698,
288,
9506,
202,
856,
1429,
18,
739,
12,
80,
1769,
9506,
202,
56,
3584,
751,
1864,
7723,
273,
261,
56,
3584,
751,
1864,
13,
498,
1429,
18,
896,
12,
80,
1769,
9506,
202,
16587,
18,
9156,
273,
638,
31,
9506,
202,
856,
1429,
18,
2626,
12,
80,
16,
7723,
1769,
6862,
6862,
202,
16072,
18,
1289,
1595,
12,
16587,
18,
24318,
5583,
1769,
9506,
202,
430,
261,
7371,
13,
288,
6862,
202,
5254,
1429,
18,
2626,
12,
16587,
18,
1612,
734,
16,
1241,
18,
24805,
10663,
9506,
202,
97,
1082,
202,
97,
1044,
261,
3989,
4786,
970,
22359,
503,
425,
13,
288,
9506,
202,
73,
18,
1188,
6332,
5621,
1082,
202,
97,
202,
202,
97,
202,
202,
856,
1429,
18,
7371,
5621,
202,
202,
430,
261,
7371,
13,
288,
1082,
202,
5254,
1429,
18,
7371,
5621,
202,
202,
97,
469,
288,
1082,
202,
5254,
1429,
18,
18623,
5621,
202,
202,
97,
1082,
202,
15091,
4710,
863,
18,
8507,
5621,
202,
202,
669,
479,
18,
12336,
10427,
5583,
12,
16072,
1769,
202,
202,
669,
479,
18,
765,
1332,
1249,
3896,
3342,
12,
2211,
1769,
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,
1207,
8966,
4710,
12,
6494,
3294,
13,
288,
202,
202,
682,
32,
55,
16113,
5562,
34,
4679,
273,
394,
2407,
32,
55,
16113,
5562,
34,
5621,
202,
202,
1884,
261,
1622,
32,
3708,
16,
13687,
34,
1241,
294,
8586,
4710,
863,
18,
4099,
694,
10756,
288,
1082,
202,
3708,
328,
273,
1241,
18,
588,
653,
5621,
1082,
202,
698,
288,
9506,
202,
856,
1429,
18,
739,
12,
80,
1769,
9506,
202,
56,
3584,
751,
1864,
7723,
273,
261,
56,
3584,
751,
1864,
13,
498,
1429,
18,
896,
12,
80,
1769,
9506,
202,
16587,
18,
9156,
273,
638,
31,
9506,
202,
856,
1429,
18,
2626,
12,
80,
16,
7723,
1769,
6862,
6862,
202,
16072,
18,
1289,
2
] |
-1, -1, -1, -1, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, 125, -1, 341, -1, -1, -1, -1, -1, 347, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1,
|
-1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, -1, -1, 335, 336, 337, -1, 125, 340, -1, -1, -1, -1, -1, 346, -1, 348, -1, 350, -1, 352, 353, 354, 355, 356, 357, 358, -1, 360, 361, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, 262, 263, 264, 281, 282, -1, 268, 269, -1, 271, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 293, 294, 295, 296, 297, -1, -1, 10, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, -1, -1, 335, 336, 337, -1, 339, 340, -1, -1, -1, -1, -1, 346, 41, 348, -1, 350, -1, 352, 353, 354, 355, 356, 357, 358, -1, 360, -1, 0, -1, 58, 59, -1, -1, -1, -1, -1, -1, 10, -1,
|
private static final short[] yyCheck2() { return new short[] { -1, 91, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, 339, -1, -1, 342, 343, 344, 345, 346, -1, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, 339, -1, -1, 342, 343, 344, 345, 346, -1, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, -1, 61, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, -1, 61, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, 339, -1, -1, 342, 343, 344, 345, 346, -1, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, 339, -1, -1, 342, 343, 344, 345, 346, -1, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 0, 363, 364, 365, 366, 367, 368, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, 41, -1, -1, 44, -1, -1, -1, 41, -1, -1, -1, -1, 0, -1, 61, -1, -1, -1, -1, -1, 61, -1, 10, -1, -1, 59, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, -1, -1, -1, -1, 91, -1, -1, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, -1, 281, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, 0, -1, 302, 303, 304, 305, 306, 307, 308, 309, 10, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, 262, 263, 264, -1, 279, 280, 268, 269, 331, 271, 279, -1, -1, -1, -1, 338, 339, -1, 41, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, 58, 59, 360, -1, -1, 363, 364, 365, 366, 367, 368, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 331, -1, -1, -1, -1, -1, 331, 338, 280, 281, 282, -1, 343, 338, 93, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 359, 0, -1, 362, -1, -1, 359, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, 125, -1, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 0, -1, 336, 337, 338, -1, -1, 341, 41, -1, 10, -1, -1, 347, -1, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, 59, 361, 362, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 41, -1, -1, 44, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, 125, 93, -1, -1, -1, -1, -1, 59, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, 125, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, 41, -1, -1, 44, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 58, 59, -1, 61, -1, 63, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 347, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, 125, -1, -1, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 58, 59, -1, 61, -1, 63, -1, -1, 280, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, 262, 263, 264, 91, -1, 93, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, 125, -1, 341, -1, -1, -1, -1, -1, 347, -1, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, 362, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, 0, -1, -1, -1, -1, 281, 282, -1, -1, -1, 10, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 58, 59, 336, 337, 338, -1, 340, 341, -1, -1, -1, -1, -1, 347, -1, 349, -1, 351, 0, 353, 354, 355, 356, 357, 358, 359, -1, 361, 10, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, 41, 281, 282, 44, -1, -1, -1, -1, 125, -1, 290, 291, 41, 293, 294, 295, 296, 297, 59, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, 59, -1, -1, -1, 10, -1, -1, -1, -1, -1, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, -1, -1, 341, -1, -1, -1, 41, -1, 347, 44, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, 58, 59, 125, 61, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, 93, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, 125, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 41, -1, -1, 44, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 58, 59, -1, 61, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, 93, -1, -1, -1, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, -1, 262, 263, 264, -1, -1, 0, 268, 269, -1, 271, -1, -1, -1, -1, -1, 10, 125, -1, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 58, 59, -1, -1, -1, 63, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, 91, -1, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, 125, -1, 341, -1, -1, -1, -1, -1, 347, -1, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, -1, -1, 341, -1, -1, -1, 41, -1, 347, 44, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, 0, 361, 58, 59, -1, -1, -1, 63, -1, -1, 10, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, 93, -1, -1, -1, 41, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, 0, 59, -1, -1, -1, -1, -1, -1, -1, -1, 10, 125, -1, -1, -1, -1, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, -1, -1, 341, -1, -1, -1, 41, -1, 347, 44, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, 58, 59, -1, -1, -1, 63, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, 93, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 58, 59, -1, -1, -1, 63, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, 91, -1, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, 125, -1, 341, -1, -1, -1, -1, -1, 347, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 58, 59, -1, -1, -1, 63, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, 91, -1, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, 125, -1, 341, -1, -1, -1, -1, -1, 347, -1, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, -1, -1, 341, -1, -1, -1, 41, -1, 347, 44, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, 58, 59, -1, -1, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, 93, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, 125, -1, -1, -1, -1, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, -1, -1, 341, -1, -1, -1, 41, -1, 347, 44, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, 58, 59, -1, -1, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, 93, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 58, 59, -1, -1, -1, 63, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, 91, -1, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, 125, -1, 341, -1, -1, -1, -1, -1, 347, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 58, 59, -1, -1, -1, 63, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, 91, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, 125, -1, 341, -1, -1, -1, -1, -1, 347, -1, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, 0, -1, -1, -1, -1, 281, 282, -1, -1, -1, 10, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 58, 59, 336, 337, 338, 63, -1, 341, -1, -1, -1, -1, -1, 347, -1, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, -1, -1, -1, -1, -1, 91, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, -1, -1, 125, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, -1, -1, 341, -1, -1, -1, -1, -1, -1, 41, 349, 0, 351, -1, 353, 354, 355, 356, 357, 358, 359, 10, 361, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, -1, -1, 93, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, 125, 271, -1, -1, -1, -1, -1, -1, -1, 91, -1, 281, -1, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, 125, 10, -1, -1, -1, -1, -1, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, -1, -1, 341, -1, -1, -1, 41, -1, -1, 44, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, 58, 59, -1, -1, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, -1, -1, -1, -1, -1, -1, -1, 0, -1, 262, 263, 264, -1, -1, 267, 268, 269, 10, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, 125, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, 41, -1, -1, 44, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, 58, 59, -1, -1, -1, 63, 281, -1, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, -1, -1, 341, 125, -1, -1, -1, -1, -1, -1, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, 0, -1, 262, 263, 264, -1, -1, 267, 268, 269, 10, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, 41, 290, 291, 44, 293, 294, 295, 296, 297, -1, -1, -1, 41, -1, -1, 44, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, -1, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, 332, 333, -1, -1, 336, 337, -1, -1, -1, 341, -1, -1, -1, -1, -1, 347, -1, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 125, -1, -1, -1, 0, -1, -1, -1, -1, 281, 282, -1, 125, -1, 10, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, 332, 333, 58, 59, 336, 337, -1, 63, -1, 341, -1, -1, -1, -1, -1, 347, -1, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, -1, -1, -1, -1, -1, -1, -1, 93, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, 41, 271, -1, 44, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, -1, -1, 58, 59, -1, -1, -1, 63, 293, 294, 295, 296, 297, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 341, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 58, 59, -1, -1, -1, 63, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, 332, 333, -1, -1, 336, 337, -1, 125, -1, 341, 0, -1, -1, -1, -1, 347, -1, 349, -1, 351, 10, 353, 354, 355, 356, 357, 358, 359, -1, 361, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, 41, -1, -1, 44, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 58, 59, -1, -1, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, 332, 333, -1, 93, 336, 337, -1, -1, -1, 341, -1, -1, -1, -1, -1, 347, -1, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, 0, -1, -1, -1, -1, 281, 282, -1, -1, -1, 10, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, 332, 333, 58, 59, 336, 337, -1, 63, -1, 341, -1, -1, -1, -1, -1, 347, -1, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, -1, -1, -1, -1, -1, -1, -1, 93, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 125, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, 41, 290, 291, 44, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, -1, 61, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, 332, 333, -1, -1, 336, 337, -1, 91, -1, 341, -1, -1, -1, -1, -1, 347, -1, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 59, -1, 61, -1, 63, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, 91, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, 332, 333, -1, -1, 336, 337, -1, 125, 0, 341, -1, -1, -1, -1, -1, 347, -1, 349, 10, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, 58, 59, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, -1, 340, -1, 41, -1, -1, 44, -1, -1, -1, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, 59, 361, 61, -1, 63, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, }; }
|
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/a404cb04ade8bbc527b55cf473199686102428e1/YyTables.java/clean/src/org/jruby/parser/YyTables.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1564,
22,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
6647,
300,
21,
16,
282,
26936,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
5411,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
5411,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
5411,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
225,
30616,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
5411,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
5411,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
225,
6969,
27,
16,
225,
6969,
28,
16,
225,
576,
6162,
16,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1564,
22,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
6647,
300,
21,
16,
282,
26936,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
5411,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
5411,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
2
] |
if(initNodeConnection()) break;
|
if (warningDialog != null) { if(initNodeConnection()) break; }
|
public void update(final Observable o, final Object target) { Logger.debug(this, "Move on the connection (?)"); if((o == connection) && !connection.isConnected()) { disconnect(); int nmbReconnect = 0; final JDialog warningDialog = new JDialog(getMainWindow().getMainFrame()); warningDialog.setTitle("Thaw - reconnection"); warningDialog.setModal(false); warningDialog.setSize(500, 40); warningDialog.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); final JPanel warningPanel = new JPanel(); final JLabel warningLabel = new JLabel(I18n.getMessage("thaw.warning.autoreconnecting"), SwingConstants.CENTER); warningPanel.add(warningLabel); warningDialog.setContentPane(warningPanel); warningDialog.setVisible(true); for(nmbReconnect = 0; nmbReconnect < Core.MAX_CONNECT_TRIES ; nmbReconnect++) { try { Thread.sleep(Core.TIME_BETWEEN_EACH_TRY); } catch(final java.lang.InterruptedException e) { // brouzouf } Logger.notice(this, "Trying to reconnect ... : "+ Integer.toString(nmbReconnect)); if(initNodeConnection()) break; } warningDialog.setVisible(false); if(nmbReconnect == Core.MAX_CONNECT_TRIES) { while(!initNodeConnection()) { final int ret = JOptionPane.showOptionDialog((java.awt.Component)null, I18n.getMessage("thaw.warning.disconnected"), "Thaw - "+I18n.getMessage("thaw.warning.title"), JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE, (javax.swing.Icon)null, (java.lang.Object[])null, (java.lang.Object)null); if((ret == JOptionPane.CLOSED_OPTION) || (ret == JOptionPane.CANCEL_OPTION) || (ret == JOptionPane.NO_OPTION)) break; } } getPluginManager().stopPlugins(); getPluginManager().loadPlugins(); getPluginManager().runPlugins(); } }
|
47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/3f6ecf9c0f1680811c190ad03a20e181f7301f15/Core.java/clean/src/thaw/core/Core.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
12,
6385,
4310,
320,
16,
727,
1033,
1018,
13,
288,
202,
202,
3328,
18,
4148,
12,
2211,
16,
315,
7607,
603,
326,
1459,
13590,
2225,
1769,
202,
202,
430,
12443,
83,
422,
1459,
13,
597,
401,
4071,
18,
291,
8932,
10756,
288,
1082,
202,
20177,
5621,
1082,
202,
474,
290,
1627,
20427,
273,
374,
31,
1082,
202,
6385,
804,
6353,
3436,
6353,
273,
394,
804,
6353,
12,
588,
6376,
3829,
7675,
588,
6376,
3219,
10663,
1082,
202,
8551,
6353,
18,
542,
4247,
2932,
1315,
2219,
300,
283,
4071,
8863,
1082,
202,
8551,
6353,
18,
542,
20191,
12,
5743,
1769,
1082,
202,
8551,
6353,
18,
542,
1225,
12,
12483,
16,
8063,
1769,
1082,
202,
8551,
6353,
18,
542,
1868,
4605,
2988,
12,
3829,
2918,
18,
13498,
23757,
67,
673,
67,
13384,
1769,
1082,
202,
6385,
24048,
3436,
5537,
273,
394,
24048,
5621,
1082,
202,
6385,
21403,
3436,
2224,
273,
394,
21403,
12,
45,
2643,
82,
18,
24906,
2932,
451,
2219,
18,
8551,
18,
5854,
479,
3612,
310,
6,
3631,
6862,
9506,
26145,
2918,
18,
19835,
1769,
1082,
202,
8551,
5537,
18,
1289,
12,
8551,
2224,
1769,
1082,
202,
8551,
6353,
18,
542,
1350,
8485,
12,
8551,
5537,
1769,
1082,
202,
8551,
6353,
18,
542,
6207,
12,
3767,
1769,
1082,
202,
1884,
12,
82,
1627,
20427,
273,
374,
31,
9506,
565,
290,
1627,
20427,
411,
4586,
18,
6694,
67,
11032,
67,
6566,
3991,
274,
9506,
565,
290,
1627,
20427,
27245,
288,
9506,
202,
698,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
12,
6385,
4310,
320,
16,
727,
1033,
1018,
13,
288,
202,
202,
3328,
18,
4148,
12,
2211,
16,
315,
7607,
603,
326,
1459,
13590,
2225,
1769,
202,
202,
430,
12443,
83,
422,
1459,
13,
597,
401,
4071,
18,
291,
8932,
10756,
288,
1082,
202,
20177,
5621,
1082,
202,
474,
290,
1627,
20427,
273,
374,
31,
1082,
202,
6385,
804,
6353,
3436,
6353,
273,
394,
804,
6353,
12,
588,
6376,
3829,
7675,
588,
6376,
3219,
10663,
1082,
202,
8551,
6353,
18,
542,
4247,
2932,
1315,
2219,
300,
283,
4071,
8863,
1082,
202,
8551,
6353,
18,
542,
20191,
12,
5743,
1769,
1082,
202,
8551,
6353,
18,
542,
1225,
12,
12483,
16,
8063,
1769,
1082,
202,
8551,
2
] |
uname = Base64Coder.decode(b64username); password = Base64Coder.decode(b64password);
|
uname = new String(Base64.decode(b64username.getBytes())); password = new String(Base64.decode(b64password.getBytes()));
|
private void handle_auth(SMTPCommand cmd) { String uname; String password; if (cmd.args.length == 0) { this.ps.print("504 No auth type given\r\n"); return; } else if (cmd.args[0].equalsIgnoreCase("login")) { this.ps.print("334"+Base64Coder.encode("Username:")+"\r\n"); String b64username; String b64password; try { b64username = this.bufrdr.readLine(); } catch (IOException ioe) { return; } if (b64username == null) return; this.ps.print("334"+Base64Coder.encode("Password:")+"\r\n"); try { b64password = this.bufrdr.readLine(); } catch (IOException ioe) { return; } if (b64password == null) return; uname = Base64Coder.decode(b64username); password = Base64Coder.decode(b64password); } else if (cmd.args[0].equalsIgnoreCase("plain")) { String b64creds; if (cmd.args.length > 1) { b64creds = cmd.args[1]; } else { this.ps.print("334 Credentials:\r\n"); try { b64creds = this.bufrdr.readLine(); if (b64creds == null) return; } catch (IOException ioe) { return; } } String[] creds = Base64Coder.decode(b64creds).split("\0"); if (creds.length < 2) return; // most documents seem to reckon you send the // username twice. Some think only once. // This will work either way. uname = creds[0]; // there may be a null first (is this always the case?) if (uname.length() < 1) { uname = creds[1]; } password = creds[creds.length - 1]; } else { this.ps.print("504 Auth type unimplemented - weren't you listening?\r\n"); return; } if (AccountManager.authenticate(uname, password)) { this.username = uname; this.ps.print("235 Authenticated\r\n"); } else { this.ps.print("535 Authentication failed\r\n"); } }
|
10031 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10031/8ed9869b94d8a8a55ec909f7137fe641f1a268fa/SMTPHandler.java/clean/src/freemail/smtp/SMTPHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1640,
67,
1944,
12,
55,
14636,
2189,
1797,
13,
288,
202,
202,
780,
31444,
31,
202,
202,
780,
2201,
31,
9506,
202,
430,
261,
4172,
18,
1968,
18,
2469,
422,
374,
13,
288,
1082,
202,
2211,
18,
1121,
18,
1188,
2932,
25,
3028,
2631,
1357,
618,
864,
64,
86,
64,
82,
8863,
1082,
202,
2463,
31,
202,
202,
97,
469,
309,
261,
4172,
18,
1968,
63,
20,
8009,
14963,
5556,
2932,
5819,
6,
3719,
288,
1082,
202,
2211,
18,
1121,
18,
1188,
2932,
3707,
24,
6,
15,
2171,
1105,
39,
5350,
18,
3015,
2932,
8575,
2773,
13,
9078,
64,
86,
64,
82,
8863,
25083,
202,
780,
324,
1105,
5053,
31,
1082,
202,
780,
324,
1105,
3664,
31,
1082,
202,
698,
288,
9506,
202,
70,
1105,
5053,
273,
333,
18,
4385,
86,
3069,
18,
896,
1670,
5621,
1082,
202,
97,
1044,
261,
14106,
10847,
13,
288,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
430,
261,
70,
1105,
5053,
422,
446,
13,
327,
31,
25083,
202,
2211,
18,
1121,
18,
1188,
2932,
3707,
24,
6,
15,
2171,
1105,
39,
5350,
18,
3015,
2932,
3913,
2773,
13,
9078,
64,
86,
64,
82,
8863,
1082,
202,
698,
288,
9506,
202,
70,
1105,
3664,
273,
333,
18,
4385,
86,
3069,
18,
896,
1670,
5621,
1082,
202,
97,
1044,
261,
14106,
10847,
13,
288,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
430,
261,
70,
1105,
3664,
422,
446,
13,
327,
31,
25083,
202,
318,
339,
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,
1640,
67,
1944,
12,
55,
14636,
2189,
1797,
13,
288,
202,
202,
780,
31444,
31,
202,
202,
780,
2201,
31,
9506,
202,
430,
261,
4172,
18,
1968,
18,
2469,
422,
374,
13,
288,
1082,
202,
2211,
18,
1121,
18,
1188,
2932,
25,
3028,
2631,
1357,
618,
864,
64,
86,
64,
82,
8863,
1082,
202,
2463,
31,
202,
202,
97,
469,
309,
261,
4172,
18,
1968,
63,
20,
8009,
14963,
5556,
2932,
5819,
6,
3719,
288,
1082,
202,
2211,
18,
1121,
18,
1188,
2932,
3707,
24,
6,
15,
2171,
1105,
39,
5350,
18,
3015,
2932,
8575,
2773,
13,
9078,
64,
86,
64,
82,
8863,
25083,
202,
780,
324,
1105,
5053,
31,
1082,
202,
780,
324,
1105,
2
] |
c = in.read();
|
c = getChar();
|
public int getToken() throws IOException { int c; tokenno++; // Check for pushed-back token if (this.pushbackToken != EOF) { int result = this.pushbackToken; this.pushbackToken = EOF; return result; } // Eat whitespace, possibly sensitive to newlines. do { c = in.read(); if (c == '\n') { flags &= ~TSF_DIRTYLINE; if ((flags & TSF_NEWLINES) != 0) break; } } while (isJSSpace(c) || c == '\n'); if (c == EOF_CHAR) return EOF; if (c != '-' && c != '\n') flags |= TSF_DIRTYLINE; // identifier/keyword/instanceof? // watch out for starting with a <backslash> boolean identifierStart; boolean isUnicodeEscapeStart = false; if (c == '\\') { c = in.read(); if (c == 'u') { identifierStart = true; isUnicodeEscapeStart = true; stringBufferTop = 0; } else { identifierStart = false; c = '\\'; in.unread(); } } else { identifierStart = Character.isJavaIdentifierStart((char)c); if (identifierStart) { stringBufferTop = 0; addToString(c); } } if (identifierStart) { boolean containsEscape = isUnicodeEscapeStart; for (;;) { if (isUnicodeEscapeStart) { // strictly speaking we should probably push-back // all the bad characters if the <backslash>uXXXX // sequence is malformed. But since there isn't a // correct context(is there?) for a bad Unicode // escape sequence in an identifier, we can report // an error here. int escapeVal = 0; for (int i = 0; i != 4; ++i) { c = in.read(); escapeVal = (escapeVal << 4) | xDigitToInt(c); // Next check takes care about c < 0 and bad escape if (escapeVal < 0) { break; } } if (escapeVal < 0) { reportSyntaxError("msg.invalid.escape", null); return ERROR; } addToString(escapeVal); isUnicodeEscapeStart = false; } else { c = in.read(); if (c == '\\') { c = in.read(); if (c == 'u') { isUnicodeEscapeStart = true; containsEscape = true; } else { reportSyntaxError("msg.illegal.character", null); return ERROR; } } else { if (!Character.isJavaIdentifierPart((char)c)) { break; } addToString(c); } } } in.unread(); String str = getStringFromBuffer(); if (!containsEscape) { // OPT we shouldn't have to make a string (object!) to // check if it's a keyword. // Return the corresponding token if it's a keyword int result = stringToKeyword(str); if (result != EOF) { if (result != RESERVED) { return result; } else if (!Context.getContext().hasFeature( Context.FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER)) { return result; } else { // If implementation permits to use future reserved // keywords in violation with the EcmaScript standard, // treat it as name but issue warning Object[] errArgs = { str }; reportSyntaxWarning("msg.reserved.keyword", errArgs); } } } this.string = str; return NAME; } // is it a number? if (isDigit(c) || (c == '.' && isDigit(in.peek()))) { stringBufferTop = 0; int base = 10; if (c == '0') { c = in.read(); if (c == 'x' || c == 'X') { base = 16; c = in.read(); } else if (isDigit(c)) { base = 8; } else { addToString('0'); } } if (base == 16) { while (0 <= xDigitToInt(c)) { addToString(c); c = in.read(); } } else { while ('0' <= c && c <= '9') { /* * We permit 08 and 09 as decimal numbers, which * makes our behavior a superset of the ECMA * numeric grammar. We might not always be so * permissive, so we warn about it. */ if (base == 8 && c >= '8') { Object[] errArgs = { c == '8' ? "8" : "9" }; reportSyntaxWarning("msg.bad.octal.literal", errArgs); base = 10; } addToString(c); c = in.read(); } } boolean isInteger = true; if (base == 10 && (c == '.' || c == 'e' || c == 'E')) { isInteger = false; if (c == '.') { do { addToString(c); c = in.read(); } while (isDigit(c)); } if (c == 'e' || c == 'E') { addToString(c); c = in.read(); if (c == '+' || c == '-') { addToString(c); c = in.read(); } if (!isDigit(c)) { reportSyntaxError("msg.missing.exponent", null); return ERROR; } do { addToString(c); c = in.read(); } while (isDigit(c)); } } in.unread(); String numString = getStringFromBuffer(); double dval; if (base == 10 && !isInteger) { try { // Use Java conversion to number from string... dval = (Double.valueOf(numString)).doubleValue(); } catch (NumberFormatException ex) { Object[] errArgs = { ex.getMessage() }; reportSyntaxError("msg.caught.nfe", errArgs); return ERROR; } } else { dval = ScriptRuntime.stringToNumber(numString, 0, base); } this.number = dval; return NUMBER; } // is it a string? if (c == '"' || c == '\'') { // We attempt to accumulate a string the fast way, by // building it directly out of the reader. But if there // are any escaped characters in the string, we revert to // building it out of a StringBuffer. int quoteChar = c; int val = 0; stringBufferTop = 0; c = in.read(); strLoop: while (c != quoteChar) { if (c == '\n' || c == EOF_CHAR) { in.unread(); reportSyntaxError("msg.unterminated.string.lit", null); return ERROR; } if (c == '\\') { // We've hit an escaped character c = in.read(); switch (c) { case 'b': c = '\b'; break; case 'f': c = '\f'; break; case 'n': c = '\n'; break; case 'r': c = '\r'; break; case 't': c = '\t'; break; // \v a late addition to the ECMA spec, // it is not in Java, so use 0xb case 'v': c = 0xb; break; case 'u': { /* * Get 4 hex digits; if the u escape is not * followed by 4 hex digits, use 'u' + the literal * character sequence that follows. */ int escapeStart = stringBufferTop; addToString('u'); int escapeVal = 0; for (int i = 0; i != 4; ++i) { c = in.read(); escapeVal = (escapeVal << 4) | xDigitToInt(c); if (escapeVal < 0) { continue strLoop; } addToString(c); } // prepare for replace of stored 'u' sequence // by escape value stringBufferTop = escapeStart; c = escapeVal; } break; case 'x': { /* Get 2 hex digits, defaulting to 'x' + literal * sequence, as above. */ c = in.read(); int escapeVal = xDigitToInt(c); if (escapeVal < 0) { addToString('x'); continue strLoop; } else { int c1 = c; c = in.read(); escapeVal = (escapeVal << 4) | xDigitToInt(c); if (escapeVal < 0) { addToString('x'); addToString(c1); continue strLoop; } else { // got 2 hex digits c = escapeVal; } } } break; default: if ('0' <= c && c < '8') { val = c - '0'; c = in.read(); if ('0' <= c && c < '8') { val = 8 * val + c - '0'; c = in.read(); if ('0' <= c && c < '8' && val <= 037) { // c is 3rd char of octal sequence only if // the resulting val <= 0377 val = 8 * val + c - '0'; c = in.read(); } } in.unread(); c = val; } } } addToString(c); c = in.read(); } this.string = getStringFromBuffer(); return STRING; } switch (c) { case '\n': return EOL; case ';': return SEMI; case '[': return LB; case ']': return RB; case '{': return LC; case '}': return RC; case '(': return LP; case ')': return RP; case ',': return COMMA; case '?': return HOOK; case ':': return COLON; case '.': return DOT; case '|': if (in.match('|')) { return OR; } else if (in.match('=')) { this.op = BITOR; return ASSIGN; } else { return BITOR; } case '^': if (in.match('=')) { this.op = BITXOR; return ASSIGN; } else { return BITXOR; } case '&': if (in.match('&')) { return AND; } else if (in.match('=')) { this.op = BITAND; return ASSIGN; } else { return BITAND; } case '=': if (in.match('=')) { if (in.match('=')) this.op = SHEQ; else this.op = EQ; return EQOP; } else { this.op = NOP; return ASSIGN; } case '!': if (in.match('=')) { if (in.match('=')) this.op = SHNE; else this.op = NE; return EQOP; } else { this.op = NOT; return UNARYOP; } case '<': /* NB:treat HTML begin-comment as comment-till-eol */ if (in.match('!')) { if (in.match('-')) { if (in.match('-')) { skipLine(); return getToken(); // in place of 'goto retry' } in.unread(); } in.unread(); } if (in.match('<')) { if (in.match('=')) { this.op = LSH; return ASSIGN; } else { this.op = LSH; return SHOP; } } else { if (in.match('=')) { this.op = LE; return RELOP; } else { this.op = LT; return RELOP; } } case '>': if (in.match('>')) { if (in.match('>')) { if (in.match('=')) { this.op = URSH; return ASSIGN; } else { this.op = URSH; return SHOP; } } else { if (in.match('=')) { this.op = RSH; return ASSIGN; } else { this.op = RSH; return SHOP; } } } else { if (in.match('=')) { this.op = GE; return RELOP; } else { this.op = GT; return RELOP; } } case '*': if (in.match('=')) { this.op = MUL; return ASSIGN; } else { return MUL; } case '/': // is it a // comment? if (in.match('/')) { skipLine(); return getToken(); } if (in.match('*')) { while ((c = in.read()) != -1 && !(c == '*' && in.match('/'))) { ; // empty loop body } if (c == EOF_CHAR) { reportSyntaxError("msg.unterminated.comment", null); return ERROR; } return getToken(); // `goto retry' } // is it a regexp? if ((flags & TSF_REGEXP) != 0) { stringBufferTop = 0; while ((c = in.read()) != '/') { if (c == '\n' || c == EOF_CHAR) { in.unread(); reportSyntaxError("msg.unterminated.re.lit", null); return ERROR; } if (c == '\\') { addToString(c); c = in.read(); } addToString(c); } int reEnd = stringBufferTop; while (true) { if (in.match('g')) addToString('g'); else if (in.match('i')) addToString('i'); else if (in.match('m')) addToString('m'); else break; } if (isAlpha(in.peek())) { reportSyntaxError("msg.invalid.re.flag", null); return ERROR; } this.string = new String(stringBuffer, 0, reEnd); this.regExpFlags = new String(stringBuffer, reEnd, stringBufferTop - reEnd); return REGEXP; } if (in.match('=')) { this.op = DIV; return ASSIGN; } else { return DIV; } case '%': this.op = MOD; if (in.match('=')) { return ASSIGN; } else { return MOD; } case '~': this.op = BITNOT; return UNARYOP; case '+': if (in.match('=')) { this.op = ADD; return ASSIGN; } else if (in.match('+')) { return INC; } else { return ADD; } case '-': if (in.match('=')) { this.op = SUB; c = ASSIGN; } else if (in.match('-')) { if (0 == (flags & TSF_DIRTYLINE)) { // treat HTML end-comment after possible whitespace // after line start as comment-utill-eol if (in.match('>')) { skipLine(); return getToken(); } } c = DEC; } else { c = SUB; } flags |= TSF_DIRTYLINE; return c; default: reportSyntaxError("msg.illegal.character", null); return ERROR; } }
|
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/5739d875ab983543fdf729f70a15773fdbe9b1bd/TokenStream.java/clean/src/org/mozilla/javascript/TokenStream.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
9162,
1435,
1216,
1860,
288,
3639,
509,
276,
31,
3639,
1147,
2135,
9904,
31,
3639,
368,
2073,
364,
18543,
17,
823,
1147,
3639,
309,
261,
2211,
18,
6206,
823,
1345,
480,
6431,
13,
288,
5411,
509,
563,
273,
333,
18,
6206,
823,
1345,
31,
5411,
333,
18,
6206,
823,
1345,
273,
6431,
31,
5411,
327,
563,
31,
3639,
289,
3639,
368,
512,
270,
7983,
16,
10016,
16692,
358,
19181,
18,
3639,
741,
288,
5411,
276,
273,
23577,
5621,
5411,
309,
261,
71,
422,
2337,
82,
6134,
288,
7734,
2943,
12058,
4871,
8047,
42,
67,
4537,
5538,
5997,
31,
7734,
309,
14015,
7133,
473,
15508,
42,
67,
12917,
5997,
55,
13,
480,
374,
13,
10792,
898,
31,
5411,
289,
3639,
289,
1323,
261,
291,
46,
1260,
909,
12,
71,
13,
747,
276,
422,
2337,
82,
8284,
3639,
309,
261,
71,
422,
6431,
67,
7305,
13,
5411,
327,
6431,
31,
3639,
309,
261,
71,
480,
4014,
597,
276,
480,
2337,
82,
6134,
5411,
2943,
5626,
15508,
42,
67,
4537,
5538,
5997,
31,
3639,
368,
2756,
19,
11041,
19,
1336,
792,
35,
3639,
368,
4267,
596,
364,
5023,
598,
279,
411,
823,
12877,
34,
3639,
1250,
2756,
1685,
31,
3639,
1250,
353,
16532,
8448,
1685,
273,
629,
31,
3639,
309,
261,
71,
422,
5282,
13,
288,
5411,
276,
273,
23577,
5621,
5411,
309,
261,
71,
422,
296,
89,
6134,
288,
7734,
2756,
1685,
273,
638,
31,
7734,
353,
16532,
8448,
1685,
273,
638,
31,
7734,
533,
1892,
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,
9162,
1435,
1216,
1860,
288,
3639,
509,
276,
31,
3639,
1147,
2135,
9904,
31,
3639,
368,
2073,
364,
18543,
17,
823,
1147,
3639,
309,
261,
2211,
18,
6206,
823,
1345,
480,
6431,
13,
288,
5411,
509,
563,
273,
333,
18,
6206,
823,
1345,
31,
5411,
333,
18,
6206,
823,
1345,
273,
6431,
31,
5411,
327,
563,
31,
3639,
289,
3639,
368,
512,
270,
7983,
16,
10016,
16692,
358,
19181,
18,
3639,
741,
288,
5411,
276,
273,
23577,
5621,
5411,
309,
261,
71,
422,
2337,
82,
6134,
288,
7734,
2943,
12058,
4871,
8047,
42,
67,
4537,
5538,
5997,
31,
7734,
309,
14015,
7133,
473,
15508,
42,
67,
12917,
5997,
55,
13,
480,
374,
13,
10792,
898,
31,
2
] |
logger.info("Reading rest of file"); line = input.readLine(); linecount++; logger.debug("Line " + linecount + ": " + line); atoms = Integer.valueOf(line.substring(0, 3).trim()).intValue(); logger.debug("Atomcount: " + atoms); bonds = Integer.valueOf(line.substring(3, 6).trim()).intValue(); logger.debug("Bondcount: " + bonds); logger.info("Reading atom block"); for (int f = 0; f < atoms; f++) { line = input.readLine(); linecount++; x = new Double(line.substring(0, 10).trim()).doubleValue(); y = new Double(line.substring(10, 20).trim()).doubleValue(); z = new Double(line.substring(20, 30).trim()).doubleValue(); totalZ += z; logger.debug("Coordinates: " + x + "; " + y + "; " + z); String element = line.substring(31, 34).trim(); logger.debug("Atom type: ", element); if (isotopeFactory.isElement(element)) { atom = isotopeFactory.configure(new Atom(element)); } else { logger.debug("Atom ", element, " is not an regular element. Creating a PseudoAtom."); atom = new PseudoAtom(element); } atom.setPoint3d(new Point3d(x, y, z)); String massDiffString = line.substring(34, 36).trim(); logger.debug("Mass difference: ", massDiffString); if (!(atom instanceof PseudoAtom)) { try { int massDiff = Integer.parseInt(massDiffString); if (massDiff != 0) { Isotope major = isotopeFactory.getMajorIsotope(element); atom.setAtomicNumber(major.getAtomicNumber() + massDiff); } } catch (Exception exception) { logger.error("Could not parse mass difference field"); } } else { logger.error("Cannot set mass difference for a non-element!"); } String chargeCodeString = line.substring(36, 39).trim(); logger.debug("Atom charge code: ", chargeCodeString); int chargeCode = Integer.parseInt(chargeCodeString); if (chargeCode == 0) { } else if (chargeCode == 1) { atom.setFormalCharge(+3); } else if (chargeCode == 2) { atom.setFormalCharge(+2); } else if (chargeCode == 3) { atom.setFormalCharge(+1); } else if (chargeCode == 4) { } else if (chargeCode == 5) { atom.setFormalCharge(-1); } else if (chargeCode == 6) { atom.setFormalCharge(-2); } else if (chargeCode == 7) { atom.setFormalCharge(-3); } try { String reactionAtomIDString = line.substring(60, 63).trim(); logger.debug("Parsing mapping id: ", reactionAtomIDString); try { int reactionAtomID = Integer.parseInt(reactionAtomIDString); if (reactionAtomID != 0) { atom.setID(reactionAtomIDString); } } catch (Exception exception) { logger.error("Mapping number ", reactionAtomIDString, " is not an integer."); logger.debug(exception); } } catch (Exception exception) { logger.warn("A few fields are missing. Older MDL MOL file?"); } molecule.addAtom(atom); } if (totalZ == 0.0 && !forceReadAs3DCoords.isSet()) { logger.info("Total 3D Z is 0.0, interpreting it as a 2D structure"); Atom[] atomsToUpdate = molecule.getAtoms(); for (int f = 0; f < atomsToUpdate.length; f++) { Atom atomToUpdate = atomsToUpdate[f]; Point3d p3d = atomToUpdate.getPoint3d(); atomToUpdate.setPoint2d(new Point2d(p3d.x, p3d.y)); atomToUpdate.setPoint3d(null); } } logger.info("Reading bond block"); for (int f = 0; f < bonds; f++) { line = input.readLine(); linecount++; atom1 = java.lang.Integer.valueOf(line.substring(0, 3).trim()).intValue(); atom2 = java.lang.Integer.valueOf(line.substring(3, 6).trim()).intValue(); order = java.lang.Integer.valueOf(line.substring(6, 9).trim()).intValue(); stereo = java.lang.Integer.valueOf(line.substring(9, 12).trim()).intValue(); if (logger.isDebugEnabled()) { logger.debug("Bond: " + atom1 + " - " + atom2 + "; order " + order); } if (stereo == 1) { stereo = CDKConstants.STEREO_BOND_UP; } else if (stereo == 6) { stereo = CDKConstants.STEREO_BOND_DOWN; } else if (stereo == 4) { stereo = CDKConstants.STEREO_BOND_UNDEFINED; } Atom a1 = molecule.getAtomAt(atom1 - 1); Atom a2 = molecule.getAtomAt(atom2 - 1); if (order == 4) { bond = new Bond(a1, a2, CDKConstants.BONDORDER_AROMATIC, stereo); bond.setFlag(CDKConstants.ISAROMATIC, true); a1.setFlag(CDKConstants.ISAROMATIC, true); a2.setFlag(CDKConstants.ISAROMATIC, true); molecule.addBond(bond); } else { bond = new Bond(a1, a2, (double) order, stereo); molecule.addBond(bond); } } logger.info("Reading property block"); while (input.ready() && line != null) { line = input.readLine(); linecount++; if ("M END".equals(line)) { break; } if (line == null) { throw new CDKException("The expected property block is missing!"); } boolean lineRead = false; if (line.startsWith("M CHG")) { int infoCount = Integer.parseInt(line.substring(6, 9).trim()); StringTokenizer st = new StringTokenizer(line.substring(9)); for (int i = 1; i <= infoCount; i++) { String token = st.nextToken(); int atomNumber = Integer.parseInt(token.trim()); token = st.nextToken(); int charge = Integer.parseInt(token.trim()); molecule.getAtomAt(atomNumber - 1).setFormalCharge(charge); } } else if (line.startsWith("M ISO")) { try { String countString = line.substring(6, 9).trim(); int infoCount = Integer.parseInt(countString); StringTokenizer st = new StringTokenizer(line.substring(9)); for (int i = 1; i <= infoCount; i++) { int atomNumber = Integer.parseInt(st.nextToken().trim()); int absMass = Integer.parseInt(st.nextToken().trim()); if (absMass != 0) { Atom isotope = molecule.getAtomAt(atomNumber - 1); isotope.setMassNumber(absMass); } } } catch (NumberFormatException exception) { String error = "Error (" + exception.getMessage() + ") while parsing line " + linecount + ": " + line + " in property block."; logger.error(error); throw new CDKException("NumberFormatException in isotope information on line: " + line); } } else if (line.startsWith("M RAD")) { try { String countString = line.substring(6, 9).trim(); int infoCount = Integer.parseInt(countString); StringTokenizer st = new StringTokenizer(line.substring(9)); for (int i = 1; i <= infoCount; i++) { int atomNumber = Integer.parseInt(st.nextToken().trim()); int spinMultiplicity = Integer.parseInt(st.nextToken().trim()); if (spinMultiplicity > 1) { Atom radical = molecule.getAtomAt(atomNumber - 1); for (int j = 2; j <= spinMultiplicity; j++) { molecule.addElectronContainer(new SingleElectron(radical)); } } } } catch (NumberFormatException exception) { String error = "Error (" + exception.getMessage() + ") while parsing line " + linecount + ": " + line + " in property block."; logger.error(error); throw new CDKException("NumberFormatException in radical information on line: " + line); } } else if (line.startsWith("G ")) { try { String atomNumberString = line.substring(3, 6).trim(); int atomNumber = Integer.parseInt(atomNumberString); String whatIsThisString = line.substring(6, 9).trim(); String atomName = input.readLine(); Atom prevAtom = molecule.getAtomAt(atomNumber - 1); PseudoAtom pseudoAtom = new PseudoAtom(atomName); if (prevAtom.getPoint2d() != null) { pseudoAtom.setPoint2d(prevAtom.getPoint2d()); } if (prevAtom.getPoint3d() != null) { pseudoAtom.setPoint3d(prevAtom.getPoint3d()); } AtomContainerManipulator.replaceAtomByAtom(molecule, prevAtom, pseudoAtom); } catch (NumberFormatException exception) { String error = "Error (" + exception.toString() + ") while parsing line " + linecount + ": " + line + " in property block."; logger.error(error); throw new CDKException("NumberFormatException in group information on line: " + line); } } if (!lineRead) { logger.warn("Skipping line in property block: ", line); } } } catch (CDKException exception) { String error = "Error while parsing line " + linecount + ": " + line + " in property block: " + exception.getMessage(); throw exception; } catch (Exception exception) { String error = "Error while parsing line " + linecount + ": " + line + " in property block: " + exception.getMessage(); logger.error(error); logger.debug(exception); throw new CDKException(error);
|
atom.setPoint3d(new Point3d(x, y, z)); String massDiffString = line.substring(34,36).trim(); logger.debug("Mass difference: ", massDiffString); if (!(atom instanceof PseudoAtom)) { try { int massDiff = Integer.parseInt(massDiffString); if (massDiff != 0) { Isotope major = isotopeFactory.getMajorIsotope(element); atom.setAtomicNumber(major.getAtomicNumber() + massDiff); } } catch (Exception exception) { logger.error("Could not parse mass difference field"); } } else { logger.error("Cannot set mass difference for a non-element!"); } String chargeCodeString = line.substring(36,39).trim(); logger.debug("Atom charge code: ", chargeCodeString); int chargeCode = Integer.parseInt(chargeCodeString); if (chargeCode == 0) { } else if (chargeCode == 1) { atom.setFormalCharge(+3); } else if (chargeCode == 2) { atom.setFormalCharge(+2); } else if (chargeCode == 3) { atom.setFormalCharge(+1); } else if (chargeCode == 4) { } else if (chargeCode == 5) { atom.setFormalCharge(-1); } else if (chargeCode == 6) { atom.setFormalCharge(-2); } else if (chargeCode == 7) { atom.setFormalCharge(-3); } try { String reactionAtomIDString = line.substring(60,63).trim(); logger.debug("Parsing mapping id: ", reactionAtomIDString); try { int reactionAtomID = Integer.parseInt(reactionAtomIDString); if (reactionAtomID != 0) { atom.setID(reactionAtomIDString); } } catch (Exception exception) { logger.error("Mapping number ", reactionAtomIDString, " is not an integer."); logger.debug(exception); } } catch (Exception exception) { logger.warn("A few fields are missing. Older MDL MOL file?"); } molecule.addAtom(atom); } if (totalZ == 0.0 && !forceReadAs3DCoords.isSet()) { logger.info("Total 3D Z is 0.0, interpreting it as a 2D structure"); Atom[] atomsToUpdate = molecule.getAtoms(); for (int f = 0; f<atomsToUpdate.length; f++) { Atom atomToUpdate = atomsToUpdate[f]; Point3d p3d = atomToUpdate.getPoint3d(); atomToUpdate.setPoint2d(new Point2d(p3d.x, p3d.y)); atomToUpdate.setPoint3d(null); } } logger.info("Reading bond block"); for (int f = 0; f < bonds; f++) { line = input.readLine(); linecount++; atom1 = java.lang.Integer.valueOf(line.substring(0,3).trim()).intValue(); atom2 = java.lang.Integer.valueOf(line.substring(3,6).trim()).intValue(); order = java.lang.Integer.valueOf(line.substring(6,9).trim()).intValue(); stereo = java.lang.Integer.valueOf(line.substring(9,12).trim()).intValue(); if (logger.isDebugEnabled()) { logger.debug("Bond: " + atom1 + " - " + atom2 + "; order " + order); } if (stereo == 1) { stereo = CDKConstants.STEREO_BOND_UP; } else if (stereo == 6) { stereo = CDKConstants.STEREO_BOND_DOWN; } else if (stereo == 4) { stereo = CDKConstants.STEREO_BOND_UNDEFINED; } Atom a1 = molecule.getAtomAt(atom1 - 1); Atom a2 = molecule.getAtomAt(atom2 - 1); if (order == 4) { bond = new Bond(a1, a2, CDKConstants.BONDORDER_AROMATIC, stereo); bond.setFlag(CDKConstants.ISAROMATIC, true); a1.setFlag(CDKConstants.ISAROMATIC, true); a2.setFlag(CDKConstants.ISAROMATIC, true); molecule.addBond(bond); } else { bond = new Bond(a1, a2, (double) order, stereo); molecule.addBond(bond); } } logger.info("Reading property block"); while (true) { line = input.readLine(); linecount++; if (line == null) { throw new CDKException("The expected property block is missing!"); } if (line.startsWith("M END")) break; boolean lineRead = false; if (line.startsWith("M CHG")) { int infoCount = Integer.parseInt(line.substring(6,9).trim()); StringTokenizer st = new StringTokenizer(line.substring(9)); for (int i=1; i <= infoCount; i++) { String token = st.nextToken(); int atomNumber = Integer.parseInt(token.trim()); token = st.nextToken(); int charge = Integer.parseInt(token.trim()); molecule.getAtomAt(atomNumber - 1).setFormalCharge(charge); } } else if (line.startsWith("M ISO")) { try { String countString = line.substring(6,9).trim(); int infoCount = Integer.parseInt(countString); StringTokenizer st = new StringTokenizer(line.substring(9)); for (int i=1; i <= infoCount; i++) { int atomNumber = Integer.parseInt(st.nextToken().trim()); int absMass = Integer.parseInt(st.nextToken().trim()); if (absMass != 0) { Atom isotope = molecule.getAtomAt(atomNumber - 1); isotope.setMassNumber(absMass); } } } catch (NumberFormatException exception) { String error = "Error (" + exception.getMessage() + ") while parsing line " + linecount + ": " + line + " in property block."; logger.error(error); throw new CDKException("NumberFormatException in isotope information on line: " + line); } } else if (line.startsWith("M RAD")) { try { String countString = line.substring(6,9).trim(); int infoCount = Integer.parseInt(countString); StringTokenizer st = new StringTokenizer(line.substring(9)); for (int i=1; i <= infoCount; i++) { int atomNumber = Integer.parseInt(st.nextToken().trim()); int spinMultiplicity = Integer.parseInt(st.nextToken().trim()); if (spinMultiplicity > 1) { Atom radical = molecule.getAtomAt(atomNumber - 1); for (int j=2; j <= spinMultiplicity; j++) { molecule.addElectronContainer(new SingleElectron(radical)); } } } } catch (NumberFormatException exception) { String error = "Error (" + exception.getMessage() + ") while parsing line " + linecount + ": " + line + " in property block."; logger.error(error); throw new CDKException("NumberFormatException in radical information on line: " + line); } } else if (line.startsWith("G ")) { try { String atomNumberString = line.substring(3,6).trim(); int atomNumber = Integer.parseInt(atomNumberString); String whatIsThisString = line.substring(6,9).trim(); String atomName = input.readLine(); Atom prevAtom = molecule.getAtomAt(atomNumber - 1); PseudoAtom pseudoAtom = new PseudoAtom(atomName); if (prevAtom.getPoint2d() != null) { pseudoAtom.setPoint2d(prevAtom.getPoint2d()); } if (prevAtom.getPoint3d() != null) { pseudoAtom.setPoint3d(prevAtom.getPoint3d()); } AtomContainerManipulator.replaceAtomByAtom(molecule, prevAtom, pseudoAtom); } catch (NumberFormatException exception) { String error = "Error (" + exception.toString() + ") while parsing line " + linecount + ": " + line + " in property block."; logger.error(error); throw new CDKException("NumberFormatException in group information on line: " + line); } } if (!lineRead) { logger.warn("Skipping line in property block: ", line); } } } catch (CDKException exception) { String error = "Error while parsing line " + linecount + ": " + line + " in property block: " + exception.getMessage(); throw exception; } catch (Exception exception) { String error = "Error while parsing line " + linecount + ": " + line + " in property block: " + exception.getMessage(); logger.error(error); logger.debug(exception); throw new CDKException(error);
|
private Molecule readMolecule(Molecule molecule) throws CDKException { logger.debug("Reading new molecule"); int linecount = 0; int atoms = 0; int bonds = 0; int atom1 = 0; int atom2 = 0; int order = 0; int stereo = 0; double x = 0.0; double y = 0.0; double z = 0.0; double totalZ = 0.0; int[][] conMat = new int[0][0]; String help; Bond bond; Atom atom; String line = ""; try { logger.info("Reading header"); line = input.readLine(); linecount++; if (line == null) { return molecule; } logger.debug("Line " + linecount + ": " + line); if (line.startsWith("$$$$")) { logger.debug("File is empty, returning empty molecule"); return molecule; } if (line.length() > 0) { molecule.setProperty(CDKConstants.TITLE, line); } line = input.readLine(); linecount++; logger.debug("Line " + linecount + ": " + line); line = input.readLine(); linecount++; logger.debug("Line " + linecount + ": " + line); if (line.length() > 0) { molecule.setProperty(CDKConstants.REMARK, line); } logger.info("Reading rest of file"); line = input.readLine(); linecount++; logger.debug("Line " + linecount + ": " + line); atoms = Integer.valueOf(line.substring(0, 3).trim()).intValue(); logger.debug("Atomcount: " + atoms); bonds = Integer.valueOf(line.substring(3, 6).trim()).intValue(); logger.debug("Bondcount: " + bonds); // read ATOM block logger.info("Reading atom block"); for (int f = 0; f < atoms; f++) { line = input.readLine(); linecount++; x = new Double(line.substring(0, 10).trim()).doubleValue(); y = new Double(line.substring(10, 20).trim()).doubleValue(); z = new Double(line.substring(20, 30).trim()).doubleValue(); totalZ += z; logger.debug("Coordinates: " + x + "; " + y + "; " + z); String element = line.substring(31, 34).trim(); logger.debug("Atom type: ", element); if (isotopeFactory.isElement(element)) { atom = isotopeFactory.configure(new Atom(element)); } else { logger.debug("Atom ", element, " is not an regular element. Creating a PseudoAtom."); atom = new PseudoAtom(element); } // store as 3D for now, convert to 2D (if totalZ == 0.0) later atom.setPoint3d(new Point3d(x, y, z)); // parse further fields String massDiffString = line.substring(34, 36).trim(); logger.debug("Mass difference: ", massDiffString); if (!(atom instanceof PseudoAtom)) { try { int massDiff = Integer.parseInt(massDiffString); if (massDiff != 0) { Isotope major = isotopeFactory.getMajorIsotope(element); atom.setAtomicNumber(major.getAtomicNumber() + massDiff); } } catch (Exception exception) { logger.error("Could not parse mass difference field"); } } else { logger.error("Cannot set mass difference for a non-element!"); } String chargeCodeString = line.substring(36, 39).trim(); logger.debug("Atom charge code: ", chargeCodeString); int chargeCode = Integer.parseInt(chargeCodeString); if (chargeCode == 0) { // uncharged species } else if (chargeCode == 1) { atom.setFormalCharge(+3); } else if (chargeCode == 2) { atom.setFormalCharge(+2); } else if (chargeCode == 3) { atom.setFormalCharge(+1); } else if (chargeCode == 4) { } else if (chargeCode == 5) { atom.setFormalCharge(-1); } else if (chargeCode == 6) { atom.setFormalCharge(-2); } else if (chargeCode == 7) { atom.setFormalCharge(-3); } try { // read the mmm field as position 61-63 String reactionAtomIDString = line.substring(60, 63).trim(); logger.debug("Parsing mapping id: ", reactionAtomIDString); try { int reactionAtomID = Integer.parseInt(reactionAtomIDString); if (reactionAtomID != 0) { atom.setID(reactionAtomIDString); } } catch (Exception exception) { logger.error("Mapping number ", reactionAtomIDString, " is not an integer."); logger.debug(exception); } } catch (Exception exception) { // older mol files don't have all these fields... logger.warn("A few fields are missing. Older MDL MOL file?"); } molecule.addAtom(atom); } // convert to 2D, if totalZ == 0 if (totalZ == 0.0 && !forceReadAs3DCoords.isSet()) { logger.info("Total 3D Z is 0.0, interpreting it as a 2D structure"); Atom[] atomsToUpdate = molecule.getAtoms(); for (int f = 0; f < atomsToUpdate.length; f++) { Atom atomToUpdate = atomsToUpdate[f]; Point3d p3d = atomToUpdate.getPoint3d(); atomToUpdate.setPoint2d(new Point2d(p3d.x, p3d.y)); atomToUpdate.setPoint3d(null); } } // read BOND block logger.info("Reading bond block"); for (int f = 0; f < bonds; f++) { line = input.readLine(); linecount++; atom1 = java.lang.Integer.valueOf(line.substring(0, 3).trim()).intValue(); atom2 = java.lang.Integer.valueOf(line.substring(3, 6).trim()).intValue(); order = java.lang.Integer.valueOf(line.substring(6, 9).trim()).intValue(); stereo = java.lang.Integer.valueOf(line.substring(9, 12).trim()).intValue(); if (logger.isDebugEnabled()) { logger.debug("Bond: " + atom1 + " - " + atom2 + "; order " + order); } if (stereo == 1) { // MDL up bond stereo = CDKConstants.STEREO_BOND_UP; } else if (stereo == 6) { // MDL down bond stereo = CDKConstants.STEREO_BOND_DOWN; } else if (stereo == 4) { //MDL bond undefined stereo = CDKConstants.STEREO_BOND_UNDEFINED; } // interpret CTfile's special bond orders Atom a1 = molecule.getAtomAt(atom1 - 1); Atom a2 = molecule.getAtomAt(atom2 - 1); if (order == 4) { // aromatic bond bond = new Bond(a1, a2, CDKConstants.BONDORDER_AROMATIC, stereo); // mark both atoms and the bond as aromatic bond.setFlag(CDKConstants.ISAROMATIC, true); a1.setFlag(CDKConstants.ISAROMATIC, true); a2.setFlag(CDKConstants.ISAROMATIC, true); molecule.addBond(bond); } else { bond = new Bond(a1, a2, (double) order, stereo); molecule.addBond(bond); } } // read PROPERTY block logger.info("Reading property block"); while (input.ready() && line != null) { line = input.readLine(); linecount++; if ("M END".equals(line)) { break; } if (line == null) { throw new CDKException("The expected property block is missing!"); } boolean lineRead = false; if (line.startsWith("M CHG")) { // FIXME: if this is encountered for the first time, all // atom charges should be set to zero first! int infoCount = Integer.parseInt(line.substring(6, 9).trim()); StringTokenizer st = new StringTokenizer(line.substring(9)); for (int i = 1; i <= infoCount; i++) { String token = st.nextToken(); int atomNumber = Integer.parseInt(token.trim()); token = st.nextToken(); int charge = Integer.parseInt(token.trim()); molecule.getAtomAt(atomNumber - 1).setFormalCharge(charge); } } else if (line.startsWith("M ISO")) { try { String countString = line.substring(6, 9).trim(); int infoCount = Integer.parseInt(countString); StringTokenizer st = new StringTokenizer(line.substring(9)); for (int i = 1; i <= infoCount; i++) { int atomNumber = Integer.parseInt(st.nextToken().trim()); int absMass = Integer.parseInt(st.nextToken().trim()); if (absMass != 0) { Atom isotope = molecule.getAtomAt(atomNumber - 1); isotope.setMassNumber(absMass); } } } catch (NumberFormatException exception) { String error = "Error (" + exception.getMessage() + ") while parsing line " + linecount + ": " + line + " in property block."; logger.error(error); throw new CDKException("NumberFormatException in isotope information on line: " + line); } } else if (line.startsWith("M RAD")) { try { String countString = line.substring(6, 9).trim(); int infoCount = Integer.parseInt(countString); StringTokenizer st = new StringTokenizer(line.substring(9)); for (int i = 1; i <= infoCount; i++) { int atomNumber = Integer.parseInt(st.nextToken().trim()); int spinMultiplicity = Integer.parseInt(st.nextToken().trim()); if (spinMultiplicity > 1) { Atom radical = molecule.getAtomAt(atomNumber - 1); for (int j = 2; j <= spinMultiplicity; j++) { // 2 means doublet -> one unpaired electron // 3 means triplet -> two unpaired electron molecule.addElectronContainer(new SingleElectron(radical)); } } } } catch (NumberFormatException exception) { String error = "Error (" + exception.getMessage() + ") while parsing line " + linecount + ": " + line + " in property block."; logger.error(error); throw new CDKException("NumberFormatException in radical information on line: " + line); } } else if (line.startsWith("G ")) { try { String atomNumberString = line.substring(3, 6).trim(); int atomNumber = Integer.parseInt(atomNumberString); String whatIsThisString = line.substring(6, 9).trim(); String atomName = input.readLine(); // convert Atom into a PseudoAtom Atom prevAtom = molecule.getAtomAt(atomNumber - 1); PseudoAtom pseudoAtom = new PseudoAtom(atomName); if (prevAtom.getPoint2d() != null) { pseudoAtom.setPoint2d(prevAtom.getPoint2d()); } if (prevAtom.getPoint3d() != null) { pseudoAtom.setPoint3d(prevAtom.getPoint3d()); } AtomContainerManipulator.replaceAtomByAtom(molecule, prevAtom, pseudoAtom); } catch (NumberFormatException exception) { String error = "Error (" + exception.toString() + ") while parsing line " + linecount + ": " + line + " in property block."; logger.error(error); throw new CDKException("NumberFormatException in group information on line: " + line); } } if (!lineRead) { logger.warn("Skipping line in property block: ", line); } } } catch (CDKException exception) { String error = "Error while parsing line " + linecount + ": " + line + " in property block: " + exception.getMessage(); throw exception; } catch (Exception exception) { String error = "Error while parsing line " + linecount + ": " + line + " in property block: " + exception.getMessage(); logger.error(error); logger.debug(exception); throw new CDKException(error); } return molecule; }
|
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/ecb9d31c5230f6f02b64ce2745990e5ed36d6fa6/MDLReader.java/buggy/src/org/openscience/cdk/io/MDLReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
490,
10545,
855,
29669,
12,
29669,
13661,
13,
1216,
24570,
202,
95,
202,
202,
4901,
18,
4148,
2932,
15714,
394,
13661,
8863,
202,
202,
474,
4739,
557,
592,
273,
374,
31,
202,
202,
474,
9006,
273,
374,
31,
202,
202,
474,
15692,
273,
374,
31,
202,
202,
474,
3179,
21,
273,
374,
31,
202,
202,
474,
3179,
22,
273,
374,
31,
202,
202,
474,
1353,
273,
374,
31,
202,
202,
474,
29558,
273,
374,
31,
202,
202,
9056,
619,
273,
374,
18,
20,
31,
202,
202,
9056,
677,
273,
374,
18,
20,
31,
202,
202,
9056,
998,
273,
374,
18,
20,
31,
202,
202,
9056,
2078,
62,
273,
374,
18,
20,
31,
202,
202,
474,
63,
6362,
65,
356,
15947,
273,
394,
509,
63,
20,
6362,
20,
15533,
202,
202,
780,
2809,
31,
202,
202,
9807,
8427,
31,
202,
202,
3641,
3179,
31,
202,
202,
780,
980,
273,
1408,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
4901,
18,
1376,
2932,
15714,
1446,
8863,
1082,
202,
1369,
273,
810,
18,
896,
1670,
5621,
1082,
202,
7511,
557,
592,
9904,
31,
1082,
202,
430,
261,
1369,
422,
446,
13,
1082,
202,
95,
9506,
202,
2463,
13661,
31,
1082,
202,
97,
1082,
202,
4901,
18,
4148,
2932,
1670,
315,
397,
4739,
557,
592,
397,
6398,
315,
397,
980,
1769,
1082,
202,
430,
261,
1369,
18,
17514,
1190,
2932,
16547,
8,
12911,
3719,
1082,
202,
95,
9506,
202,
4901,
18,
4148,
2932,
812,
353,
1008,
16,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
490,
10545,
855,
29669,
12,
29669,
13661,
13,
1216,
24570,
202,
95,
202,
202,
4901,
18,
4148,
2932,
15714,
394,
13661,
8863,
202,
202,
474,
4739,
557,
592,
273,
374,
31,
202,
202,
474,
9006,
273,
374,
31,
202,
202,
474,
15692,
273,
374,
31,
202,
202,
474,
3179,
21,
273,
374,
31,
202,
202,
474,
3179,
22,
273,
374,
31,
202,
202,
474,
1353,
273,
374,
31,
202,
202,
474,
29558,
273,
374,
31,
202,
202,
9056,
619,
273,
374,
18,
20,
31,
202,
202,
9056,
677,
273,
374,
18,
20,
31,
202,
202,
9056,
998,
273,
374,
18,
20,
31,
202,
202,
9056,
2078,
62,
273,
374,
18,
20,
31,
202,
202,
474,
63,
2
] |
assertIsValidDestinationURL(rawValue);
|
if (! assertIsValidDestinationURL(rawValue, throwOnFailure)) { return null; }
|
public Destination findRequiredDestination(Map decodedParameters, HJBRoot root, String sessionProviderName) { Object rawValue = decodedParameters.get(HJBServletConstants.DESTINATION_URL); assertIsValidDestinationURL(rawValue); String destinationURL = (String) rawValue; Matcher m = getDestinationPathMatcher().matcher(destinationURL); m.matches(); String destinationProviderName = m.group(1); String destinationName = applyURLDecoding(m.group(2)); assertIsSameProvider(sessionProviderName, destinationProviderName); HJBTreeWalker walker = new HJBTreeWalker(root, destinationURL); return walker.findDestination(destinationProviderName, destinationName); }
|
54391 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54391/f97c3c6aebdf0d6bbd32eec99832ad31ff53e8ee/JMSArgumentFinder.java/clean/trunk/src/hjb/http/cmd/JMSArgumentFinder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10691,
1104,
3705,
5683,
12,
863,
6383,
2402,
16,
4766,
9079,
670,
8877,
2375,
1365,
16,
4766,
9079,
514,
1339,
31192,
13,
288,
3639,
1033,
22539,
273,
6383,
2402,
18,
588,
12,
44,
8877,
4745,
2918,
18,
29451,
67,
1785,
1769,
3639,
309,
16051,
1815,
20536,
5683,
1785,
12,
1899,
620,
16,
604,
1398,
5247,
3719,
288,
327,
446,
31,
289,
3639,
514,
2929,
1785,
273,
261,
780,
13,
22539,
31,
3639,
9757,
312,
273,
17611,
743,
6286,
7675,
22761,
12,
10590,
1785,
1769,
3639,
312,
18,
8436,
5621,
3639,
514,
2929,
31192,
273,
312,
18,
1655,
12,
21,
1769,
3639,
514,
2929,
461,
273,
2230,
1785,
1799,
4751,
12,
81,
18,
1655,
12,
22,
10019,
3639,
1815,
2520,
8650,
2249,
12,
3184,
31192,
16,
2929,
31192,
1769,
3639,
670,
8877,
2471,
16246,
14810,
273,
394,
670,
8877,
2471,
16246,
12,
3085,
16,
2929,
1785,
1769,
3639,
327,
14810,
18,
4720,
5683,
12,
10590,
31192,
16,
2929,
461,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10691,
1104,
3705,
5683,
12,
863,
6383,
2402,
16,
4766,
9079,
670,
8877,
2375,
1365,
16,
4766,
9079,
514,
1339,
31192,
13,
288,
3639,
1033,
22539,
273,
6383,
2402,
18,
588,
12,
44,
8877,
4745,
2918,
18,
29451,
67,
1785,
1769,
3639,
309,
16051,
1815,
20536,
5683,
1785,
12,
1899,
620,
16,
604,
1398,
5247,
3719,
288,
327,
446,
31,
289,
3639,
514,
2929,
1785,
273,
261,
780,
13,
22539,
31,
3639,
9757,
312,
273,
17611,
743,
6286,
7675,
22761,
12,
10590,
1785,
1769,
3639,
312,
18,
8436,
5621,
3639,
514,
2929,
31192,
273,
312,
18,
1655,
12,
21,
1769,
3639,
514,
2929,
461,
273,
2230,
1785,
1799,
4751,
12,
81,
18,
1655,
12,
22,
10019,
3639,
2
] |
xml.append("<alert fileRegExpr=\"filename1\" address=\"filename1@host.com\" />"); xml.append("<alert fileRegExpr=\"basedir/subdirectory2/.*\" address=\"subdir2@host.com\" />"); xml.append("<alert fileRegExpr=\"basedir/subdirectory3/filename3\" address=\"filename3@host.com\" />"); xml.append("<alert fileRegExpr=\"basedir/subdirectory5/.*\" address=\"basedirSubdirectory5@host.com\" />"); xml.append("<alert fileRegExpr=\"\" address=\"\" />");
|
xml.append("<alert fileRegExpr='filename1' address='filename1@host.com' />"); xml.append("<alert fileRegExpr='basedir/subdirectory2/.*' address='subdir2@host.com' />"); xml.append("<alert fileRegExpr='basedir/subdirectory3/filename3' address='filename3@host.com' />"); xml.append("<alert fileRegExpr='basedir/subdirectory5/.*' address='basedirSubdirectory5@host.com' />"); xml.append("<alert fileRegExpr='' address='' />");
|
protected String generateXML(boolean includeAlerts) { StringBuffer xml = new StringBuffer(); xml.append("<email defaultsuffix=\"@host.com\">"); xml.append("<always address=\"always1\"/>"); xml.append("<always address=\"always1@host.com\"/>"); xml.append("<always address=\"always2@host.com\"/>"); xml.append("<always address=\"dropletteruser1\"/>"); xml.append("<failure address=\"failure1\"/>"); xml.append("<failure address=\"failure2@host.com\" reportWhenFixed=\"true\"/>"); xml.append("<success address='success1' />"); xml.append("<success address='success2@host.com' />"); xml.append("<map alias=\"user3\" address=\"user3@host2.com\"/>"); if (includeAlerts) { //xml.append("<alert file=\".*\" address=\"anyFileMod@host.com\" />"); xml.append("<alert fileRegExpr=\"filename1\" address=\"filename1@host.com\" />"); xml.append("<alert fileRegExpr=\"basedir/subdirectory2/.*\" address=\"subdir2@host.com\" />"); xml.append("<alert fileRegExpr=\"basedir/subdirectory3/filename3\" address=\"filename3@host.com\" />"); xml.append("<alert fileRegExpr=\"basedir/subdirectory5/.*\" address=\"basedirSubdirectory5@host.com\" />"); xml.append("<alert fileRegExpr=\"\" address=\"\" />"); } xml.append("</email>"); return xml.toString(); }
|
52149 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52149/a5237fc07f2873d4e477d877fa6ac17cfec5f754/EmailPublisherTest.java/clean/main/test/net/sourceforge/cruisecontrol/publishers/EmailPublisherTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
2103,
4201,
12,
6494,
2341,
37,
29729,
13,
288,
3639,
6674,
2025,
273,
394,
6674,
5621,
3639,
2025,
18,
6923,
2932,
32,
3652,
3467,
2609,
5189,
36,
2564,
18,
832,
21121,
1769,
3639,
2025,
18,
6923,
2932,
32,
17737,
1758,
5189,
17737,
21,
2412,
26293,
1769,
3639,
2025,
18,
6923,
2932,
32,
17737,
1758,
5189,
17737,
21,
36,
2564,
18,
832,
2412,
26293,
1769,
3639,
2025,
18,
6923,
2932,
32,
17737,
1758,
5189,
17737,
22,
36,
2564,
18,
832,
2412,
26293,
1769,
3639,
2025,
18,
6923,
2932,
32,
17737,
1758,
5189,
9005,
1469,
387,
1355,
21,
2412,
26293,
1769,
3639,
2025,
18,
6923,
2932,
32,
12251,
1758,
5189,
12251,
21,
2412,
26293,
1769,
3639,
2025,
18,
6923,
2932,
32,
12251,
1758,
5189,
12251,
22,
36,
2564,
18,
832,
2412,
2605,
9434,
7505,
5189,
3767,
2412,
26293,
1769,
3639,
2025,
18,
6923,
2932,
32,
4768,
1758,
2218,
4768,
21,
11,
28505,
1769,
3639,
2025,
18,
6923,
2932,
32,
4768,
1758,
2218,
4768,
22,
36,
2564,
18,
832,
11,
28505,
1769,
3639,
2025,
18,
6923,
2932,
32,
1458,
2308,
5189,
1355,
23,
2412,
1758,
5189,
1355,
23,
36,
2564,
22,
18,
832,
2412,
26293,
1769,
3639,
309,
261,
6702,
37,
29729,
13,
288,
5411,
368,
2902,
18,
6923,
2932,
32,
11798,
585,
5189,
4509,
2412,
1758,
5189,
2273,
812,
1739,
36,
2564,
18,
832,
2412,
28505,
1769,
5411,
2025,
18,
6923,
2932,
32,
11798,
585,
1617,
4742,
5189,
3459,
21,
2412,
1758,
5189,
3459,
21,
36,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
2103,
4201,
12,
6494,
2341,
37,
29729,
13,
288,
3639,
6674,
2025,
273,
394,
6674,
5621,
3639,
2025,
18,
6923,
2932,
32,
3652,
3467,
2609,
5189,
36,
2564,
18,
832,
21121,
1769,
3639,
2025,
18,
6923,
2932,
32,
17737,
1758,
5189,
17737,
21,
2412,
26293,
1769,
3639,
2025,
18,
6923,
2932,
32,
17737,
1758,
5189,
17737,
21,
36,
2564,
18,
832,
2412,
26293,
1769,
3639,
2025,
18,
6923,
2932,
32,
17737,
1758,
5189,
17737,
22,
36,
2564,
18,
832,
2412,
26293,
1769,
3639,
2025,
18,
6923,
2932,
32,
17737,
1758,
5189,
9005,
1469,
387,
1355,
21,
2412,
26293,
1769,
3639,
2025,
18,
6923,
2932,
32,
12251,
1758,
5189,
12251,
21,
2412,
26293,
1769,
3639,
2025,
18,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.