rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
String action = req.getMethod() ; if(action.equals("POST")) this.doPost(req,res) ; else this.doPost(req,res) ; } | String action = req.getMethod() ; if(action.equals("POST")) this.doPost(req,res) ; else this.doPost(req,res) ; } | public void service (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { String action = req.getMethod() ; // log("Action:" + action) ; if(action.equals("POST")) this.doPost(req,res) ; else this.doPost(req,res) ; } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/a270627916b37a677a391dd9f45c54d3d6f12503/ChatHelp.java/clean/servlets/chat/ChatHelp.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1156,
261,
2940,
18572,
1111,
16,
12446,
400,
13,
202,
15069,
16517,
16,
1860,
202,
95,
202,
202,
780,
1301,
273,
1111,
18,
588,
1305,
1435,
274,
202,
202,
759,
613,
2932... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1156,
261,
2940,
18572,
1111,
16,
12446,
400,
13,
202,
15069,
16517,
16,
1860,
202,
95,
202,
202,
780,
1301,
273,
1111,
18,
588,
1305,
1435,
274,
202,
202,
759,
613,
2932... |
{ LegendItemType result = LegendItemType.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); return result; } | return createLegendItemTypeFromString( eDataType, initialValue ); | public Object createFromString( EDataType eDataType, String initialValue ) { switch ( eDataType.getClassifierID( ) ) { case AttributePackage.ACTION_TYPE : { ActionType result = ActionType.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.ANCHOR : { Anchor result = Anchor.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.ANGLE_TYPE : { AngleType result = AngleType.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.AXIS_TYPE : { AxisType result = AxisType.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.CHART_DIMENSION : { ChartDimension result = ChartDimension.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.CHART_TYPE : { ChartType result = ChartType.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.DATA_POINT_COMPONENT_TYPE : { DataPointComponentType result = DataPointComponentType.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.DATA_TYPE : { DataType result = DataType.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.DATE_FORMAT_DETAIL : { DateFormatDetail result = DateFormatDetail.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.DATE_FORMAT_TYPE : { DateFormatType result = DateFormatType.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.DIRECTION : { Direction result = Direction.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.GROUPING_UNIT_TYPE : { GroupingUnitType result = GroupingUnitType.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.HORIZONTAL_ALIGNMENT : { HorizontalAlignment result = HorizontalAlignment.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.INTERSECTION_TYPE : { IntersectionType result = IntersectionType.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.LEADER_LINE_STYLE : { LeaderLineStyle result = LeaderLineStyle.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.LEGEND_BEHAVIOR_TYPE : { LegendBehaviorType result = LegendBehaviorType.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.LEGEND_ITEM_TYPE : { LegendItemType result = LegendItemType.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.LINE_DECORATOR : { LineDecorator result = LineDecorator.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.LINE_STYLE : { LineStyle result = LineStyle.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.MARKER_TYPE : { MarkerType result = MarkerType.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.ORIENTATION : { Orientation result = Orientation.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.POSITION : { Position result = Position.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.RISER_TYPE : { RiserType result = RiserType.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.RULE_TYPE : { RuleType result = RuleType.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.SCALE_UNIT_TYPE : { ScaleUnitType result = ScaleUnitType.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.SORT_OPTION : { SortOption result = SortOption.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.STRETCH : { Stretch result = Stretch.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.STYLED_COMPONENT : { StyledComponent result = StyledComponent.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.TICK_STYLE : { TickStyle result = TickStyle.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.TRIGGER_CONDITION : { TriggerCondition result = TriggerCondition.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.TRIGGER_FLOW : { TriggerFlow result = TriggerFlow.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.UNITS_OF_MEASUREMENT : { UnitsOfMeasurement result = UnitsOfMeasurement.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.VERTICAL_ALIGNMENT : { VerticalAlignment result = VerticalAlignment.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; } case AttributePackage.ACTION_TYPE_OBJECT : return createActionTypeObjectFromString( eDataType, initialValue ); case AttributePackage.ANCHOR_OBJECT : return createAnchorObjectFromString( eDataType, initialValue ); case AttributePackage.ANGLE_TYPE_OBJECT : return createAngleTypeObjectFromString( eDataType, initialValue ); case AttributePackage.AXIS_TYPE_OBJECT : return createAxisTypeObjectFromString( eDataType, initialValue ); case AttributePackage.CHART_DIMENSION_OBJECT : return createChartDimensionObjectFromString( eDataType, initialValue ); case AttributePackage.CHART_TYPE_OBJECT : return createChartTypeObjectFromString( eDataType, initialValue ); case AttributePackage.DATA_POINT_COMPONENT_TYPE_OBJECT : return createDataPointComponentTypeObjectFromString( eDataType, initialValue ); case AttributePackage.DATA_TYPE_OBJECT : return createDataTypeObjectFromString( eDataType, initialValue ); case AttributePackage.DATE_FORMAT_DETAIL_OBJECT : return createDateFormatDetailObjectFromString( eDataType, initialValue ); case AttributePackage.DATE_FORMAT_TYPE_OBJECT : return createDateFormatTypeObjectFromString( eDataType, initialValue ); case AttributePackage.DIRECTION_OBJECT : return createDirectionObjectFromString( eDataType, initialValue ); case AttributePackage.GROUPING_UNIT_TYPE_OBJECT : return createGroupingUnitTypeObjectFromString( eDataType, initialValue ); case AttributePackage.HORIZONTAL_ALIGNMENT_OBJECT : return createHorizontalAlignmentObjectFromString( eDataType, initialValue ); case AttributePackage.ID : return createIDFromString( eDataType, initialValue ); case AttributePackage.INTERSECTION_TYPE_OBJECT : return createIntersectionTypeObjectFromString( eDataType, initialValue ); case AttributePackage.LEADER_LINE_STYLE_OBJECT : return createLeaderLineStyleObjectFromString( eDataType, initialValue ); case AttributePackage.LEGEND_BEHAVIOR_TYPE_OBJECT : return createLegendBehaviorTypeObjectFromString( eDataType, initialValue ); case AttributePackage.LEGEND_ITEM_TYPE_OBJECT : return createLegendItemTypeObjectFromString( eDataType, initialValue ); case AttributePackage.LINE_DECORATOR_OBJECT : return createLineDecoratorObjectFromString( eDataType, initialValue ); case AttributePackage.LINE_STYLE_OBJECT : return createLineStyleObjectFromString( eDataType, initialValue ); case AttributePackage.MARKER_TYPE_OBJECT : return createMarkerTypeObjectFromString( eDataType, initialValue ); case AttributePackage.ORIENTATION_OBJECT : return createOrientationObjectFromString( eDataType, initialValue ); case AttributePackage.PERCENTAGE : return createPercentageFromString( eDataType, initialValue ); case AttributePackage.PERCENTAGE_OBJECT : return createPercentageObjectFromString( eDataType, initialValue ); case AttributePackage.POSITION_OBJECT : return createPositionObjectFromString( eDataType, initialValue ); case AttributePackage.RGB_VALUE : return createRGBValueFromString( eDataType, initialValue ); case AttributePackage.RGB_VALUE_OBJECT : return createRGBValueObjectFromString( eDataType, initialValue ); case AttributePackage.RISER_TYPE_OBJECT : return createRiserTypeObjectFromString( eDataType, initialValue ); case AttributePackage.RULE_TYPE_OBJECT : return createRuleTypeObjectFromString( eDataType, initialValue ); case AttributePackage.SCALE_UNIT_TYPE_OBJECT : return createScaleUnitTypeObjectFromString( eDataType, initialValue ); case AttributePackage.SORT_OPTION_OBJECT : return createSortOptionObjectFromString( eDataType, initialValue ); case AttributePackage.STRETCH_OBJECT : return createStretchObjectFromString( eDataType, initialValue ); case AttributePackage.STYLED_COMPONENT_OBJECT : return createStyledComponentObjectFromString( eDataType, initialValue ); case AttributePackage.TICK_STYLE_OBJECT : return createTickStyleObjectFromString( eDataType, initialValue ); case AttributePackage.TRIGGER_CONDITION_OBJECT : return createTriggerConditionObjectFromString( eDataType, initialValue ); case AttributePackage.TRIGGER_FLOW_OBJECT : return createTriggerFlowObjectFromString( eDataType, initialValue ); case AttributePackage.UNITS_OF_MEASUREMENT_OBJECT : return createUnitsOfMeasurementObjectFromString( eDataType, initialValue ); case AttributePackage.VERTICAL_ALIGNMENT_OBJECT : return createVerticalAlignmentObjectFromString( eDataType, initialValue ); default : throw new IllegalArgumentException( "The datatype '" + eDataType.getName( ) + "' is not a valid classifier" ); //$NON-NLS-1$ //$NON-NLS-2$ } } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/036e8c78765730b146e5854b9d6c397a296fed86/AttributeFactoryImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/AttributeFactoryImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
752,
9193,
12,
20807,
11479,
16,
514,
11837,
262,
202,
95,
202,
202,
9610,
261,
11479,
18,
588,
13860,
734,
12,
262,
262,
202,
202,
95,
1082,
202,
3593,
3601,
2261,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
752,
9193,
12,
20807,
11479,
16,
514,
11837,
262,
202,
95,
202,
202,
9610,
261,
11479,
18,
588,
13860,
734,
12,
262,
262,
202,
202,
95,
1082,
202,
3593,
3601,
2261,
18,
... |
performConstraintsTest(TEST_UNIQUE_INDEX_MODEL, true); | if (getPlatformInfo().isIndicesSupported()) { performConstraintsTest(TEST_UNIQUE_INDEX_MODEL, true); } | public void testUniqueIndex() { performConstraintsTest(TEST_UNIQUE_INDEX_MODEL, true); } | 3517 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3517/dbff6cd85d996d384f554939c30209eb50b80f5a/TestConstraints.java/buggy/src/test/org/apache/ddlutils/io/TestConstraints.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
6303,
1016,
1435,
565,
288,
3639,
309,
261,
588,
8201,
966,
7675,
291,
8776,
7223,
10756,
288,
3073,
4878,
4709,
12,
16961,
67,
16879,
67,
9199,
67,
17391,
16,
638,
1769,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
6303,
1016,
1435,
565,
288,
3639,
309,
261,
588,
8201,
966,
7675,
291,
8776,
7223,
10756,
288,
3073,
4878,
4709,
12,
16961,
67,
16879,
67,
9199,
67,
17391,
16,
638,
1769,... |
while(!filter.matched()) { | boolean fmatched = false; while(!(fmatched = filter.matched())) { | public Message waitFor(MessageFilter filter) { long startTime = System.currentTimeMillis(); Message ret = null; // Check to see whether the filter matches any of the recently _unclaimed messages synchronized (_filters) { Logger.debug(this, "Checking _unclaimed"); for (ListIterator i = _unclaimed.listIterator(); i.hasNext();) { Message m = (Message) i.next(); if (filter.match(m)) { i.remove(); ret = m; Logger.debug(this, "Matching from _unclaimed"); } } Logger.debug(this, "Not in _unclaimed"); if (ret == null) { // Insert filter into filter list in order of timeout ListIterator i = _filters.listIterator(); while (true) { if (!i.hasNext()) { i.add(filter); Logger.debug(this, "Added at end"); break; } MessageFilter mf = (MessageFilter) i.next(); if (mf.getTimeout() > filter.getTimeout()) { i.previous(); i.add(filter); Logger.debug(this, "Added in middle - mf timeout="+mf.getTimeout()+" - my timeout="+filter.getTimeout()); break; } } } } // Unlock to wait on filter // Waiting on the filter won't release the outer lock // So we have to release it here if(ret == null) { Logger.debug(this, "Waiting..."); synchronized (filter) { try { // Precaution against filter getting matched between being added to _filters and // here - bug discovered by Mason while(!filter.matched()) { long wait = filter.getTimeout()-System.currentTimeMillis(); if(wait > 0) filter.wait(wait); else break; } } catch (InterruptedException e) { } ret = filter.getMessage(); filter.clearMatched(); } Logger.debug(this, "Returning "+ret+" from "+filter); } // Probably get rid...// if (Dijjer.getDijjer().getDumpMessageWaitTimes() != null) {// Dijjer.getDijjer().getDumpMessageWaitTimes().println(filter.toString() + "\t" + filter.getInitialTimeout() + "\t"// + (System.currentTimeMillis() - startTime));// Dijjer.getDijjer().getDumpMessageWaitTimes().flush();// } long endTime = System.currentTimeMillis(); Logger.debug(this, "Returning in "+(endTime-startTime)+"ms"); return ret; } | 52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/67ffc74c653c146c3327643dba419ef696af844a/UdpSocketManager.java/clean/src/freenet/io/comm/UdpSocketManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2350,
10712,
12,
1079,
1586,
1034,
13,
288,
202,
202,
5748,
8657,
273,
2332,
18,
2972,
28512,
5621,
202,
202,
1079,
325,
273,
446,
31,
202,
202,
759,
2073,
358,
2621,
2856,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2350,
10712,
12,
1079,
1586,
1034,
13,
288,
202,
202,
5748,
8657,
273,
2332,
18,
2972,
28512,
5621,
202,
202,
1079,
325,
273,
446,
31,
202,
202,
759,
2073,
358,
2621,
2856,
32... |
System.out.println("NativeEventThread.delete: interrupted while waiting\n\t for NativeEventThread to notify() after destruction of initContext: " + e + | System.out.println("NativeEventThread.delete: interrupted while waiting\n\t for NativeEventThread to notify() after destruction of initContext: " + e + | public void delete(){ // setting this to null causes the run thread to exit synchronized(this) { // this has to be inside the synchronized block! browserControlCanvas = null; synchronized (this) { try { wait(); } catch (Exception e) { System.out.println("NativeEventThread.delete: interrupted while waiting\n\t for NativeEventThread to notify() after destruction of initContext: " + e + " " + e.getMessage()); } } } // PENDING(ashuk): do any necessary cleanup. listenersToAdd = null; doRemoveListeners(); listenersToRemove = null; nativeWebShell = -1; windowControl = null; browserControl = null; tempEnum = null;} | 12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/c51f266635955ea9a40fa057209a78cf7b0fb900/NativeEventThread.java/clean/java/webclient/classes_spec/org/mozilla/webclient/wrapper_native/NativeEventThread.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
1430,
1435,
95,
565,
368,
3637,
333,
358,
446,
14119,
326,
1086,
2650,
358,
2427,
565,
3852,
12,
2211,
13,
288,
3639,
368,
333,
711,
358,
506,
4832,
326,
3852,
1203,
5,
3639,
4748... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1430,
1435,
95,
565,
368,
3637,
333,
358,
446,
14119,
326,
1086,
2650,
358,
2427,
565,
3852,
12,
2211,
13,
288,
3639,
368,
333,
711,
358,
506,
4832,
326,
3852,
1203,
5,
3639,
4748... |
/* | public CmsStaticExport(CmsObject cms, Vector startpoints, boolean doTheExport, Vector projectResources, CmsPublishedResources changedResources) throws CmsException{ m_cms = cms; m_startpoints = startpoints; m_exportPath = cms.getStaticExportPath(); c_perlUtil = new Perl5Util(); if(changedResources != null){ m_afterPublish = true; } if(!doTheExport){ // this is just to generate the dynamic rulesets if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_STATICEXPORT, "[CmsStaticExport] Generating the dynamic rulesets."); } createDynamicRules(); }else{ if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_STATICEXPORT, "[CmsStaticExport] Starting the static export."); } createDynamicRules(); checkExportPath(); Vector exportLinks = null; if(m_afterPublish){ exportLinks = getChangedLinks(changedResources); }else{ exportLinks = getStartLinks(); } // we only need the names of the projectResources if(projectResources != null){ m_projectResources = new Vector(projectResources.size()); for(int i=0; i<projectResources.size(); i++){ m_projectResources.addElement( ((CmsResource)projectResources.elementAt(i)).getAbsolutePath()); } } if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_STATICEXPORT, "[CmsStaticExport] got "+exportLinks.size()+" links to start with."); } for(int i=0; i < exportLinks.size(); i++){ String aktLink = (String)exportLinks.elementAt(i); exportLink(aktLink, exportLinks); } } } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/a04c74323cbbda5bea1280af65bad0745c186ce3/CmsStaticExport.java/buggy/src/com/opencms/file/CmsStaticExport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1748,
1748,
1748,
1748,
1071,
20308,
2149,
5788,
6144,
12,
4747,
921,
20308,
6166,
16,
20308,
5589,
20308,
787,
4139,
16,
20308,
1250,
20308,
741,
1986,
6144,
16,
20308,
1748,
1748,
1748,
1748,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1748,
1748,
1748,
1071,
20308,
2149,
5788,
6144,
12,
4747,
921,
20308,
6166,
16,
20308,
5589,
20308,
787,
4139,
16,
20308,
1250,
20308,
741,
1986,
6144,
16,
20308,
1748,
1748,
1748,
1748,
... | |
File localFile = file.getLocation().toFile(); return Long.toString(localFile.length()); | File localFile = getFile(file); if(localFile == null) return FILE_NOT_FOUND; else return Long.toString(localFile.length()); | private String getSizeString(IFile file) { if (!file.isLocal(IResource.DEPTH_ZERO)) return NOT_LOCAL_TEXT; else { File localFile = file.getLocation().toFile(); return Long.toString(localFile.length()); }} | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/4ed92a77a2f9e955e930d0db4eea877e5a7f1686/FilePropertySource.java/clean/bundles/org.eclipse.ui/Eclipse UI Standard Components/org/eclipse/ui/views/properties/FilePropertySource.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
514,
9950,
780,
12,
45,
812,
585,
13,
288,
202,
430,
16051,
768,
18,
291,
2042,
12,
45,
1420,
18,
27479,
67,
24968,
3719,
202,
202,
2463,
4269,
67,
14922,
67,
5151,
31,
202,
12107,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
514,
9950,
780,
12,
45,
812,
585,
13,
288,
202,
430,
16051,
768,
18,
291,
2042,
12,
45,
1420,
18,
27479,
67,
24968,
3719,
202,
202,
2463,
4269,
67,
14922,
67,
5151,
31,
202,
12107,
2... |
if (!file.exists()) { locationString += " " + FILE_NOT_EXIST_TEXT; } return locationString; | if (!file.exists()) { locationString += " " + FILE_NOT_EXIST_TEXT; | private String getResolvedLocationText(IResource resource) { if (!resource.isLocal(IResource.DEPTH_ZERO)) { return NOT_LOCAL_TEXT; } IPath location = resource.getLocation(); if (location == null) { if (resource.isLinked()) { return UNDEFINED_PATH_VARIABLE; } return FILE_NOT_FOUND; } else { String locationString = location.toOSString(); File file = location.toFile(); if (!file.exists()) { locationString += " " + FILE_NOT_EXIST_TEXT; //$NON-NLS-1$ } return locationString; } } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/a1ca365a318b96e23065f4e725ff1528454d7642/ResourcePropertySource.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/properties/ResourcePropertySource.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
336,
12793,
2735,
1528,
12,
45,
1420,
1058,
13,
288,
3639,
309,
16051,
3146,
18,
291,
2042,
12,
45,
1420,
18,
27479,
67,
24968,
3719,
288,
1082,
202,
2463,
4269,
67,
14922,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
336,
12793,
2735,
1528,
12,
45,
1420,
1058,
13,
288,
3639,
309,
16051,
3146,
18,
291,
2042,
12,
45,
1420,
18,
27479,
67,
24968,
3719,
288,
1082,
202,
2463,
4269,
67,
14922,
6... |
public void setPOA(POA poa) { | public void setPOA(POA poa) { | public void setPOA(POA poa) { poa_ = poa; } | 46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/b914fd6ef0aa122dbdecdcbeef832bfc41032c72/AbstractAdmin.java/buggy/src/org/jacorb/notification/servant/AbstractAdmin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
2419,
37,
12,
2419,
37,
8275,
69,
13,
288,
3639,
8275,
69,
67,
273,
8275,
69,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
2419,
37,
12,
2419,
37,
8275,
69,
13,
288,
3639,
8275,
69,
67,
273,
8275,
69,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
public FirefoxCustomProfileLauncher(int port) { | public FirefoxCustomProfileLauncher() { | public FirefoxCustomProfileLauncher(int port) { super(findBrowserLaunchLocation()); this.port = port; } | 4718 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4718/13b471c65563ed945c399b0a68932cb37a9c3135/FirefoxCustomProfileLauncher.java/buggy/server/src/main/java/org/openqa/selenium/server/browserlaunchers/FirefoxCustomProfileLauncher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
22950,
3802,
4029,
28820,
1435,
288,
3639,
2240,
12,
4720,
9132,
9569,
2735,
10663,
3639,
333,
18,
655,
273,
1756,
31,
565,
289,
2,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
22950,
3802,
4029,
28820,
1435,
288,
3639,
2240,
12,
4720,
9132,
9569,
2735,
10663,
3639,
333,
18,
655,
273,
1756,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
evaluateEqual( new BinaryExpression(new VariableExpression(loop.getVariable()), Token.newSymbol(Types.EQUAL, -1, -1), expression)); | evaluateEqual( BinaryExpression.newAssignmentExpression(loop.getVariable(), expression) ); | public void visitForLoop(ForStatement loop) { onLineNumber(loop); Type variableType = checkValidType(loop.getVariableType(), loop, "for loop variable"); int iIdx = defineVariable(loop.getVariable(), variableType, true).getIndex(); loop.getCollectionExpression().visit(this); asIteratorMethod.call(cv); final int iteratorIdx = defineVariable(createVariableName("iterator"), "java.util.Iterator", false).getIndex(); cv.visitVarInsn(ASTORE, iteratorIdx); pushBlockScope(); Label continueLabel = scope.getContinueLabel(); cv.visitJumpInsn(GOTO, continueLabel); Label label2 = new Label(); cv.visitLabel(label2); BytecodeExpression expression = new BytecodeExpression() { public void visit(GroovyCodeVisitor visitor) { cv.visitVarInsn(ALOAD, iteratorIdx); iteratorNextMethod.call(cv); } }; evaluateEqual( new BinaryExpression(new VariableExpression(loop.getVariable()), Token.newSymbol(Types.EQUAL, -1, -1), expression)); loop.getLoopBlock().visit(this); cv.visitLabel(continueLabel); cv.visitVarInsn(ALOAD, iteratorIdx); iteratorHasNextMethod.call(cv); cv.visitJumpInsn(IFNE, label2); cv.visitLabel(scope.getBreakLabel()); popScope(); } | 6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/c38dc7208744f1a7388f7471b277add7929e17b3/ClassGenerator.java/buggy/src/main/org/codehaus/groovy/classgen/ClassGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
31451,
12,
1290,
3406,
2798,
13,
288,
3639,
603,
31063,
12,
6498,
1769,
3639,
1412,
2190,
559,
273,
29969,
559,
12,
6498,
18,
588,
3092,
559,
9334,
2798,
16,
315,
1884,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
31451,
12,
1290,
3406,
2798,
13,
288,
3639,
603,
31063,
12,
6498,
1769,
3639,
1412,
2190,
559,
273,
29969,
559,
12,
6498,
18,
588,
3092,
559,
9334,
2798,
16,
315,
1884,
... |
} else { Logging.defaultLogger().warn("Sizer.getTaskMass: asset - " + | } else { if (logger.isDebugEnabled()) { logger.debug("Sizer.getTaskMass: asset - " + | public static Mass getTaskMass(Task task, int quantityUnit) { switch (quantityUnit) { case (EACHES): GLMAsset assetToBePacked = (GLMAsset) task.getDirectObject(); if (assetToBePacked.hasPhysicalPG()) { Mass massPerEach = assetToBePacked.getPhysicalPG().getMass(); double taskWeight = task.getPreferredValue(AspectType.QUANTITY) * massPerEach.getShortTons(); return new Mass(taskWeight, Mass.SHORT_TONS); } else { Logging.defaultLogger().warn("Sizer.getTaskMass: asset - " + assetToBePacked + " - does not have a PhysicalPG. " + "Assuming QUANTITY preference is in stort tons."); return new Mass(task.getPreferredValue(AspectType.QUANTITY), Mass.SHORT_TONS); } case (TONS): return new Mass(task.getPreferredValue(AspectType.QUANTITY), Mass.SHORT_TONS); default: Logging.defaultLogger().error("Sizer: invalid quantity unit specified - " + quantityUnit + " - assuming TONS."); return new Mass(task.getPreferredValue(AspectType.QUANTITY), Mass.SHORT_TONS); } } | 7171 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7171/27be4b30418a48f272b9cdc43d84e06deb635c64/Sizer.java/buggy/glm/src/org/cougaar/glm/packer/Sizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
490,
428,
11478,
18060,
12,
2174,
1562,
16,
509,
10457,
2802,
13,
288,
565,
1620,
261,
16172,
2802,
13,
288,
565,
648,
261,
41,
18133,
3991,
4672,
1377,
10252,
49,
6672,
3310,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
490,
428,
11478,
18060,
12,
2174,
1562,
16,
509,
10457,
2802,
13,
288,
565,
1620,
261,
16172,
2802,
13,
288,
565,
648,
261,
41,
18133,
3991,
4672,
1377,
10252,
49,
6672,
3310,
... |
else { if (errorstate != null) { errortsholder.clearTokenState(errorstate.tokenID); } return null; } | return null; | public String requestComplete() { try { if (ThreadErrorState.isError()) { TargettedMessageList errors = ThreadErrorState.getErrorState().errors; // the errors arose from this cycle, and hence must be referred to // by SVEs from this cycle. If it is a GET cycle, rsvc will be empty, // but then all errors will have global target. fixupErrors(errors, requestrsvc); allocateOutgoingToken(); errorstate.globaltargetid = globaltargetid; errorstate.rsvc = requestrsvc; errorstate.errors = errors; Logger.log.info(errorstate.rsvc.entries.size() + " RSVC values stored under error token " + errorstate.tokenID); errortsholder.putTokenState(errorstate.tokenID, errorstate); return errorstate.tokenID; } else { if (errorstate != null) { errortsholder.clearTokenState(errorstate.tokenID); } return null; } } finally { ThreadErrorState.endRequest(); } } | 49142 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49142/019870a39edd86c6670e37b269d61719cf0967bd/ErrorStateManager.java/buggy/src/uk/org/ponder/rsf/state/ErrorStateManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
590,
6322,
1435,
288,
565,
775,
288,
1377,
309,
261,
3830,
668,
1119,
18,
291,
668,
10756,
288,
3639,
5916,
2344,
1079,
682,
1334,
273,
4884,
668,
1119,
18,
588,
668,
1119,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
590,
6322,
1435,
288,
565,
775,
288,
1377,
309,
261,
3830,
668,
1119,
18,
291,
668,
10756,
288,
3639,
5916,
2344,
1079,
682,
1334,
273,
4884,
668,
1119,
18,
588,
668,
1119,
7... |
HighWireArchivalUnit au = | ConfigurableArchivalUnit au = | public void testGetFilterRuleNoContentType() throws Exception { HighWireArchivalUnit au = makeAu(new URL("http://shadow1.stanford.edu/"), 42); assertNull(au.getFilterRule(null)); } | 8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/7213af99d56a7766716f5d711aa30ad85c71d195/TestHighWireArchivalUnit.java/clean/test/src/org/lockss/plugin/highwire/TestHighWireArchivalUnit.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1071,
918,
1842,
967,
1586,
2175,
2279,
8046,
1435,
1216,
1185,
288,
565,
29312,
12269,
5162,
2802,
20309,
273,
1377,
1221,
37,
89,
12,
2704,
1976,
2932,
2505,
2207,
19119,
21,
18,
541,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1071,
918,
1842,
967,
1586,
2175,
2279,
8046,
1435,
1216,
1185,
288,
565,
29312,
12269,
5162,
2802,
20309,
273,
1377,
1221,
37,
89,
12,
2704,
1976,
2932,
2505,
2207,
19119,
21,
18,
541,
3... |
jar_ = packageJobJar(); if(jar_ != null) { jobConf_.setJar(jar_); | setOutputSpec(); if (testMerge_) { fmt = MuxOutputFormat.class; } else { fmt = StreamOutputFormat.class; | protected void setJobConf() throws IOException { msg("hadoopAliasConf_ = " + hadoopAliasConf_); config_ = new Configuration(); if(!cluster_.equals("default")) { config_.addFinalResource(new Path(getHadoopAliasConfFile())); } else { // use only defaults: hadoop-default.xml and hadoop-site.xml } Iterator it = configPath_.iterator(); while(it.hasNext()) { String pathName = (String)it.next(); config_.addFinalResource(new Path(pathName)); } // general MapRed job properties jobConf_ = new JobConf(config_); for(int i=0; i<inputGlobs_.size(); i++) { jobConf_.addInputPath(new Path((String)inputGlobs_.get(i))); } jobConf_.setInputFormat(StreamInputFormat.class); // for SequenceFile, input classes may be overriden in getRecordReader jobConf_.setInputKeyClass(Text.class); jobConf_.setInputValueClass(Text.class); jobConf_.setOutputKeyClass(Text.class); jobConf_.setOutputValueClass(Text.class); //jobConf_.setCombinerClass(); jobConf_.setOutputPath(new Path(output_)); jobConf_.setOutputFormat(StreamOutputFormat.class); jobConf_.set("stream.addenvironment", addTaskEnvironment_); String defaultPackage = this.getClass().getPackage().getName(); Class c = StreamUtil.goodClassOrNull(mapCmd_, defaultPackage); if(c != null) { jobConf_.setMapperClass(c); } else { jobConf_.setMapperClass(PipeMapper.class); jobConf_.set("stream.map.streamprocessor", mapCmd_); } if(comCmd_ != null) { c = StreamUtil.goodClassOrNull(comCmd_, defaultPackage); if(c != null) { jobConf_.setCombinerClass(c); } else { jobConf_.setCombinerClass(PipeCombiner.class); jobConf_.set("stream.combine.streamprocessor", comCmd_); } } if(redCmd_ != null) { c = StreamUtil.goodClassOrNull(redCmd_, defaultPackage); if(c != null) { jobConf_.setReducerClass(c); } else { jobConf_.setReducerClass(PipeReducer.class); jobConf_.set("stream.reduce.streamprocessor", redCmd_); } } if(inReaderSpec_ != null) { String[] args = inReaderSpec_.split(","); String readerClass = args[0]; // this argument can only be a Java class c = StreamUtil.goodClassOrNull(readerClass, defaultPackage); if(c != null) { jobConf_.set("stream.recordreader.class", c.getName()); } else { fail("-inputreader: class not found: " + readerClass); } for(int i=1; i<args.length; i++) { String[] nv = args[i].split("=", 2); String k = "stream.recordreader." + nv[0]; String v = (nv.length>1) ? nv[1] : ""; jobConf_.set(k, v); } } jar_ = packageJobJar(); if(jar_ != null) { jobConf_.setJar(jar_); } // last, allow user to override anything // (although typically used with properties we didn't touch) it = userJobConfProps_.iterator(); while(it.hasNext()) { String prop = (String)it.next(); String[] nv = prop.split("=", 2); msg("xxxJobConf: set(" + nv[0] + ", " + nv[1]+")"); jobConf_.set(nv[0], nv[1]); } msg("submitting to jobconf: " + getJobTrackerHostPort()); } | 53958 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53958/e10b40e8014547113799b2653164e8c990d41209/StreamJob.java/buggy/src/contrib/streaming/src/java/org/apache/hadoop/streaming/StreamJob.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
444,
2278,
3976,
1435,
1216,
1860,
225,
288,
565,
1234,
2932,
76,
12460,
2936,
3976,
67,
273,
315,
397,
22840,
2936,
3976,
67,
1769,
565,
642,
67,
273,
394,
4659,
5621,
565,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
444,
2278,
3976,
1435,
1216,
1860,
225,
288,
565,
1234,
2932,
76,
12460,
2936,
3976,
67,
273,
315,
397,
22840,
2936,
3976,
67,
1769,
565,
642,
67,
273,
394,
4659,
5621,
565,
... |
if(!frame.isResizable()) { | if (!frame.isResizable()) { | void check(Component comp) { Component thisParent = finalThis.getParent(); if(thisParent == null) { return; } Component parent = finalT1.getParent(); boolean leftDocked = true; boolean rightDocked = true; boolean adjustVerticalSplit = false; if(parent != null) { if(parent != finalP1) { while(!(parent instanceof JFrame)) { parent = parent.getParent(); } JFrame frame = (JFrame)parent; finalDb.addTopLevel("Variables", frame); // We need the following hacks because: // - We want an undocked toolbar to be // resizable. // - We are using JToolbar as a container of a // JComboBox. Without this JComboBox's popup // can get left floating when the toolbar is // re-docked. // // We make the frame resizable and then // remove JToolbar's window listener // and insert one of our own that first ensures // the JComboBox's popup window is closed // and then calls JToolbar's window listener. if(!frame.isResizable()) { frame.setResizable(true); frame.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); final EventListener[] l = frame.getListeners(WindowListener.class); frame.removeWindowListener((WindowListener)l[0]); frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { context.hidePopup(); ((WindowListener)l[0]).windowClosing(e); } }); //adjustVerticalSplit = true; } leftDocked = false; } else { leftDocked = true; } } parent = finalT2.getParent(); if(parent != null) { if(parent != finalP2) { while(!(parent instanceof JFrame)) { parent = parent.getParent(); } JFrame frame = (JFrame)parent; finalDb.addTopLevel("Evaluate", frame); frame.setResizable(true); rightDocked = false; } else { rightDocked = true; } } if(leftDocked && t2Docked && rightDocked && t2Docked) { // no change return; } t1Docked = leftDocked; t2Docked = rightDocked; JSplitPane split = (JSplitPane)thisParent; if(leftDocked) { if(rightDocked) { finalSplit.setDividerLocation(0.5); } else { finalSplit.setDividerLocation(1.0); } if(adjustVerticalSplit) { split.setDividerLocation(0.66); } } else if(rightDocked) { finalSplit.setDividerLocation(0.0); split.setDividerLocation(0.66); } else { // both undocked split.setDividerLocation(1.0); } } | 19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/bebd557da53b74c60ab8525aa96904d4cee6224c/Main.java/buggy/toolsrc/org/mozilla/javascript/tools/debugger/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
918,
866,
12,
1841,
1161,
13,
288,
10792,
5435,
333,
3054,
273,
727,
2503,
18,
588,
3054,
5621,
10792,
309,
12,
2211,
3054,
422,
446,
13,
288,
13491,
327,
31,
10792,
289,
10792,
5435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
918,
866,
12,
1841,
1161,
13,
288,
10792,
5435,
333,
3054,
273,
727,
2503,
18,
588,
3054,
5621,
10792,
309,
12,
2211,
3054,
422,
446,
13,
288,
13491,
327,
31,
10792,
289,
10792,
5435,
... |
result = vs.validate(dataURL); } catch (GDEMException ge){ result = ge.getMessage(); } res.getWriter().write(result); } else{ try{ xqScript = Utils.readStrFromFile(xqScriptFile); } catch(Exception e){ res.getWriter().write("<html>Could not read script from file: " + xqScriptFile + "</html>"); return; } | if (Utils.isNullStr(xml_schema)){ writeHTMLMessage(res, "XML Schema cannot be empty!"); return; } if(!Utils.isNullStr(req.getParameter("runnow"))) { String xqScriptId = req.getParameter("script"); String xqScript=null; if (xqScriptId.equals(String.valueOf(JOB_VALIDATION))){ res.setContentType(HTML_CONTENT_TYPE); try{ ValidationService vs = new ValidationService(); vs.setTrustedMode(false); vs.setTicket(getTicket(req)); | public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { String result=null; res.setContentType("text/html"); //save changes in XQ script to repository if(!Utils.isNullStr(req.getParameter("save"))) { String q_id = req.getParameter("ID"); String xqFileName = req.getParameter("file_name"); String xqScript = req.getParameter(XQ_SCRIPT_PARAM); if(Utils.isNullStr(xqScript)) { res.getWriter().write("<html>The script cannot be empty!</html>"); return; } try{ Utils.saveStrToFile(xqFileName, xqScript, null); res.sendRedirect(Names.SANDBOX_JSP + "?ID=" + q_id); } catch (Exception ge){ result = "<html>Error occured during saving file: " + xqFileName + "<br/>"+ ge.getMessage() + "</html>"; res.getWriter().write(result); } return; } String dataURL = req.getParameter(XQ_SOURCE_PARAM_NAME); if (Utils.isNullStr(dataURL)){ res.getWriter().write("<html>The data URL cannot be empty!</html>"); return; } String sandboxtype = req.getParameter("sandboxtype"); if (Utils.isNullStr(sandboxtype)){ res.getWriter().write("<html>Sandbox type cannot be empty!</html>"); return; } //search all scripts according to XML Schema and send back to sandbox if(!Utils.isNullStr(req.getParameter("findscripts"))) { res.sendRedirect(Names.SANDBOX_JSP + "?SOURCE_URL=" + dataURL); return; } if (sandboxtype.equals("SCHEMA")){ //execute all the scripts for 1 schema String xml_schema = req.getParameter("xml_schema"); if (Utils.isNullStr(xml_schema)){ res.getWriter().write("<html>XML Schema cannot be empty!</html>"); return; } // Run immediately // if(!Utils.isNullStr(req.getParameter("runnow"))) { String xqScriptFile = req.getParameter("script"); String xqScript=null; if (xqScriptFile.equals(String.valueOf(JOB_VALIDATION))){ try{ ValidationService vs = new ValidationService(); vs.setTrustedMode(false); vs.setTicket(getTicket(req)); //result = vs.validateSchema(dataURL, xml_schema); result = vs.validate(dataURL); } catch (GDEMException ge){ result = ge.getMessage(); } res.getWriter().write(result); } else{ try{ xqScript = Utils.readStrFromFile(xqScriptFile); } catch(Exception e){ res.getWriter().write("<html>Could not read script from file: " + xqScriptFile + "</html>"); return; } String[] pars = new String[1]; pars[0] = XQ_SOURCE_PARAM_NAME + "=" + dataURL; XQScript xq = new XQScript(xqScript, pars); OutputStream outstream = res.getOutputStream(); try { System.out.println("siin"); xq.getResult(outstream); } catch (GDEMException ge){ result = ge.getMessage(); outstream.write(result.getBytes()); } } } // Add jobs to workqueue engine // else { XQueryService xqE = new XQueryService(); try { Hashtable h = new Hashtable(); Vector files = new Vector(); files.add(dataURL); h.put(xml_schema, files); Vector v_result = xqE.analyzeXMLFiles(h); PrintWriter writer = res.getWriter(); if (Utils.isNullVector(v_result)){ writer.write("<html>No jobs has been added to the workqueue!</html>"); } else{ writer.write("<html>The following jobs has been added to the <a href='workqueue.jsp'>workqueue</a>."); for (int i=0;i<v_result.size();i++){ Vector v = (Vector)v_result.get(i); writer.write("<br/>" + String.valueOf(i+1) + ". job ID: " + (String)v.get(0)); } } } catch (GDEMException ge){ result = ge.getMessage(); res.getWriter().write(result); } } } else if(sandboxtype.equals("SCRIPT")){ //execute only 1 script from textarea String xqScript = req.getParameter(XQ_SCRIPT_PARAM); String[] pars = new String[1]; pars[0] = XQ_SOURCE_PARAM_NAME + "=" + dataURL; XQScript xq = null; if(!Utils.isNullStr(xqScript)) { // Run immediately // if(!Utils.isNullStr(req.getParameter("runnow"))) { xq = new XQScript(xqScript, pars); OutputStream outstream = res.getOutputStream(); try { //System.out.println("siin2"); xq.getResult(outstream); //result = xq.getResult(); } catch (GDEMException ge){ result = ge.getMessage(); outstream.write(result.getBytes()); } } // Add job to workqueue engine // else { XQueryService xqE = new XQueryService(); try { result = xqE.analyze(dataURL, xqScript); res.getWriter().write("<html>Job (id: " + result + ") successfully added to the <a href='workqueue.jsp'>workqueue</a>.</html>"); } catch (GDEMException ge){ result = ge.getMessage(); res.getWriter().write(result); } } } else res.getWriter().write("<html>The script cannot be empty!</html>"); } } | 6392 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6392/8f380b71f411a688f6499bc6c1b15e77dae39c9f/SandBox.java/clean/src/eionet/gdem/qa/servlets/SandBox.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1071,
918,
741,
3349,
12,
2940,
18572,
1111,
16,
12446,
400,
13,
202,
15069,
16517,
16,
1860,
565,
288,
565,
514,
563,
33,
2011,
31,
565,
400,
18,
542,
8046,
2932,
955,
19,
2620,
8863,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1071,
918,
741,
3349,
12,
2940,
18572,
1111,
16,
12446,
400,
13,
202,
15069,
16517,
16,
1860,
565,
288,
565,
514,
563,
33,
2011,
31,
565,
400,
18,
542,
8046,
2932,
955,
19,
2620,
8863,
... |
private static int msFromTime(double t) { | private static int msFromTime(double t) { | private static int msFromTime(double t) { double result; result = t % msPerSecond; if (result < 0) result += msPerSecond; return (int) result; } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/ba8f69355a752cc7402f5b559a19be4d84c54e22/NativeDate.java/buggy/js/rhino/src/org/mozilla/javascript/NativeDate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
509,
4086,
1265,
950,
12,
9056,
268,
13,
288,
3639,
1645,
563,
31,
3639,
563,
273,
225,
268,
738,
4086,
2173,
8211,
31,
3639,
309,
261,
2088,
411,
374,
13,
5411,
563,
1011,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
509,
4086,
1265,
950,
12,
9056,
268,
13,
288,
3639,
1645,
563,
31,
3639,
563,
273,
225,
268,
738,
4086,
2173,
8211,
31,
3639,
309,
261,
2088,
411,
374,
13,
5411,
563,
1011,
... |
private static void getPassedStructs (StreamGraph sg) { | private static void getPassedStructs (StreamGraph sg, Set<CType> passedTypes) { | private static void getPassedStructs (StreamGraph sg) { for (StaticStreamGraph ssg : sg.getStaticSubGraphs()) { for (FlatNode node : ssg.getFlatNodes()) { if (node.isFilter()) { SIRFilter fnode = (SIRFilter)node.contents; if (debugging) { System.err.println("StructureIncludeFile processing filter " + fnode.getName() + ": " + fnode.getInputType() + "->" + fnode.getOutputType()); } passedTypes.add(fnode.getOutputType()); passedTypes.add(fnode.getInputType()); } } } } | 5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/f1197ac29a976f6015baaa30c8e231cc5cf68a9f/StructureIncludeFile.java/buggy/streams/src/at/dms/kjc/cluster/StructureIncludeFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
1689,
2185,
3823,
87,
261,
1228,
4137,
11150,
16,
1000,
32,
39,
559,
34,
2275,
2016,
13,
288,
3639,
364,
261,
5788,
1228,
4137,
272,
1055,
294,
11150,
18,
588,
5788,
167... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
1689,
2185,
3823,
87,
261,
1228,
4137,
11150,
16,
1000,
32,
39,
559,
34,
2275,
2016,
13,
288,
3639,
364,
261,
5788,
1228,
4137,
272,
1055,
294,
11150,
18,
588,
5788,
167... |
caPolicy = confParser.readCaPolicy(cadnname, role); | caPolicy = configParser.getCaPolicy(cadnname); | public void doPost (HttpServletRequest req, HttpServletResponse res) throws ServletException,IOException { PrintWriter out=res.getWriter(); String role=null; String cadnname=null; cadnname =(String)req.getParameter("cadnname"); role =(String)req.getParameter("role"); if (debug) { System.out.println(cadnname + " - " + role); } if((cadnname==null)||( cadnname=="")) { out.print("Error ---Unknown type CA dn name :"); out.flush(); out.close(); return; } try { caPolicy = confParser.readCaPolicy(cadnname, role); certificateFinder = CertDirectoryServiceFactory.getCertDirectoryServiceClientInstance( caPolicy.ldapType, caPolicy.ldapURL); } catch (Exception e) { out.print("Unable to read policy file: " + e); out.flush(); out.close(); return; } out.println("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">"); out.println("<html>"); out.println("<head>"); out.println("<title>Pending Certificate List</title>"); out.println("<script language=\"javascript\">"); out.println("function submitme(form)"); out.println("{ form.submit()}</script>"); out.println("</head>"); out.println("<body>"); out.println("<H2>Pending Certificate List</H2>"); //out.println("<H3>Issuer: " + cadnname + "</H3>"); //out.println("<H3>LDAP: " + caPolicy.ldapURL + "</H3>"); out.println("<table>"); String filter = "(cn=*)"; String uri = req.getRequestURI(); String certDetailsUri = uri.substring(0, uri.lastIndexOf('/')) + "/pendingdetail"; if (role == "") role = null; if (debug) { System.out.println("calling create table will role:" + role); } String certpath=secprop.getProperty(secprop.CA_CERTPATH); String confpath=secprop.getProperty(secprop.CRYPTO_CONFIG); PendingCertCache pendingCache = PendingCertCache.getPendingCache(cadnname, role, certpath, confpath, support.getServiceBroker()); Hashtable certtable = (Hashtable)pendingCache.get(caPolicy.pendingDirectory); out.println(createtable(certtable, cadnname, role, certDetailsUri)); out.println("</body></html>"); out.flush(); out.close(); } | 12869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12869/8e5ab4106a38968de2c28e9761a1d5161240f55f/PendingCertificateServlet.java/clean/securityservices/src/com/nai/security/certauthority/servlet/PendingCertificateServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
741,
3349,
261,
2940,
18572,
225,
1111,
16,
12446,
400,
13,
565,
1216,
16517,
16,
14106,
225,
288,
565,
14071,
596,
33,
455,
18,
588,
2289,
5621,
565,
514,
2478,
33,
2011,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
741,
3349,
261,
2940,
18572,
225,
1111,
16,
12446,
400,
13,
565,
1216,
16517,
16,
14106,
225,
288,
565,
14071,
596,
33,
455,
18,
588,
2289,
5621,
565,
514,
2478,
33,
2011,
31... |
jjAddStates(58, 59); | jjAddStates(57, 58); | static private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 97; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 0: if ((0x3ff081800000000L & l) != 0L) { if (kind > 24) kind = 24; jjCheckNAddStates(0, 6); } else if (curChar == 39) jjAddStates(7, 9); else if (curChar == 34) jjCheckNAddStates(10, 13); else if (curChar == 46) jjCheckNAdd(4); if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(14, 20); if ((0x3fe000000000000L & l) != 0L) { if (kind > 4) kind = 4; jjCheckNAddTwoStates(1, 2); } else if (curChar == 48) { if (kind > 6) kind = 6; jjCheckNAddStates(21, 25); } break; case 1: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 4) kind = 4; jjCheckNAddTwoStates(1, 2); break; case 3: if (curChar == 46) jjCheckNAdd(4); break; case 4: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 10) kind = 10; jjCheckNAddStates(26, 28); break; case 6: if ((0x280000000000L & l) != 0L) jjCheckNAdd(7); break; case 7: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 10) kind = 10; jjCheckNAddTwoStates(7, 8); break; case 25: if (curChar == 34) jjCheckNAddStates(10, 13); break; case 26: if ((0xfffffffbffffdbffL & l) != 0L) jjCheckNAddStates(10, 13); break; case 28: if ((0x8400000000L & l) != 0L) jjCheckNAddStates(10, 13); break; case 30: if ((0x3ff000000000000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 31; break; case 31: if ((0x3ff000000000000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 32; break; case 32: if ((0x3ff000000000000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 33; break; case 33: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(10, 13); break; case 35: if (curChar == 34 && kind > 13) kind = 13; break; case 36: if ((0xff000000000000L & l) != 0L) jjCheckNAddStates(29, 33); break; case 37: if ((0xff000000000000L & l) != 0L) jjCheckNAddStates(10, 13); break; case 38: if ((0xf000000000000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 39; break; case 39: if ((0xff000000000000L & l) != 0L) jjCheckNAdd(37); break; case 40: if (curChar == 39) jjAddStates(7, 9); break; case 41: if ((0xffffff7fffffdbffL & l) != 0L) jjCheckNAdd(42); break; case 42: if (curChar == 39 && kind > 14) kind = 14; break; case 44: if ((0x8400000000L & l) != 0L) jjCheckNAdd(42); break; case 45: if ((0xff000000000000L & l) != 0L) jjCheckNAddTwoStates(46, 42); break; case 46: if ((0xff000000000000L & l) != 0L) jjCheckNAdd(42); break; case 47: if ((0xf000000000000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 48; break; case 48: if ((0xff000000000000L & l) != 0L) jjCheckNAdd(46); break; case 50: if ((0x3ff000000000000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 51; break; case 51: if ((0x3ff000000000000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 52; break; case 52: if ((0x3ff000000000000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 53; break; case 53: if ((0x3ff000000000000L & l) != 0L) jjCheckNAdd(42); break; case 56: if ((0x3ff081800000000L & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAddTwoStates(56, 57); break; case 57: if (curChar == 46) jjCheckNAdd(58); break; case 58: if ((0x3ff081800000000L & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAddTwoStates(57, 58); break; case 59: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(14, 20); break; case 60: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(60, 61); break; case 61: if (curChar != 46) break; if (kind > 10) kind = 10; jjCheckNAddStates(34, 36); break; case 62: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 10) kind = 10; jjCheckNAddStates(34, 36); break; case 64: if ((0x280000000000L & l) != 0L) jjCheckNAdd(65); break; case 65: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 10) kind = 10; jjCheckNAddTwoStates(65, 8); break; case 66: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(66, 67); break; case 68: if ((0x280000000000L & l) != 0L) jjCheckNAdd(69); break; case 69: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 10) kind = 10; jjCheckNAddTwoStates(69, 8); break; case 70: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(37, 39); break; case 72: if ((0x280000000000L & l) != 0L) jjCheckNAdd(73); break; case 73: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(73, 8); break; case 74: if (curChar != 48) break; if (kind > 6) kind = 6; jjCheckNAddStates(21, 25); break; case 75: if (curChar == 48) jjCheckNAddTwoStates(75, 2); break; case 77: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 5) kind = 5; jjAddStates(40, 41); break; case 79: if ((0xff000000000000L & l) == 0L) break; if (kind > 6) kind = 6; jjCheckNAddTwoStates(79, 80); break; case 81: if ((0x3ff081800000000L & l) == 0L) break; if (kind > 24) kind = 24; jjCheckNAddStates(0, 6); break; case 82: if ((0x3ff081800000000L & l) == 0L) break; if (kind > 24) kind = 24; jjCheckNAdd(82); break; case 83: if ((0x3ff081800000000L & l) == 0L) break; if (kind > 25) kind = 25; jjCheckNAddStates(42, 45); break; case 84: if (curChar == 46) jjCheckNAdd(85); break; case 85: if ((0x3ff081800000000L & l) == 0L) break; if (kind > 25) kind = 25; jjCheckNAddStates(46, 49); break; case 93: if (curChar == 46) jjstateSet[jjnewStateCnt++] = 92; break; case 94: if ((0x3ff081800000000L & l) == 0L) break; if (kind > 26) kind = 26; jjCheckNAddTwoStates(94, 95); break; case 95: if (curChar == 46) jjCheckNAdd(96); break; case 96: if ((0x3ff081800000000L & l) == 0L) break; if (kind > 26) kind = 26; jjCheckNAddTwoStates(95, 96); break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 0: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 24) kind = 24; jjCheckNAddStates(0, 6); } else if (curChar == 64) jjCheckNAdd(56); if (curChar == 70) jjstateSet[jjnewStateCnt++] = 23; else if (curChar == 84) jjstateSet[jjnewStateCnt++] = 19; else if (curChar == 102) jjstateSet[jjnewStateCnt++] = 15; else if (curChar == 116) jjstateSet[jjnewStateCnt++] = 11; break; case 2: if ((0x100000001000L & l) != 0L && kind > 4) kind = 4; break; case 5: if ((0x2000000020L & l) != 0L) jjAddStates(50, 51); break; case 8: if ((0x5000000050L & l) != 0L && kind > 10) kind = 10; break; case 9: if (curChar == 101 && kind > 12) kind = 12; break; case 10: if (curChar == 117) jjCheckNAdd(9); break; case 11: if (curChar == 114) jjstateSet[jjnewStateCnt++] = 10; break; case 12: if (curChar == 116) jjstateSet[jjnewStateCnt++] = 11; break; case 13: if (curChar == 115) jjCheckNAdd(9); break; case 14: if (curChar == 108) jjstateSet[jjnewStateCnt++] = 13; break; case 15: if (curChar == 97) jjstateSet[jjnewStateCnt++] = 14; break; case 16: if (curChar == 102) jjstateSet[jjnewStateCnt++] = 15; break; case 17: if (curChar == 69 && kind > 12) kind = 12; break; case 18: if (curChar == 85) jjCheckNAdd(17); break; case 19: if (curChar == 82) jjstateSet[jjnewStateCnt++] = 18; break; case 20: if (curChar == 84) jjstateSet[jjnewStateCnt++] = 19; break; case 21: if (curChar == 83) jjCheckNAdd(17); break; case 22: if (curChar == 76) jjstateSet[jjnewStateCnt++] = 21; break; case 23: if (curChar == 65) jjstateSet[jjnewStateCnt++] = 22; break; case 24: if (curChar == 70) jjstateSet[jjnewStateCnt++] = 23; break; case 26: if ((0xffffffffefffffffL & l) != 0L) jjCheckNAddStates(10, 13); break; case 27: if (curChar == 92) jjAddStates(52, 54); break; case 28: if ((0x14404410000000L & l) != 0L) jjCheckNAddStates(10, 13); break; case 29: if (curChar == 117) jjstateSet[jjnewStateCnt++] = 30; break; case 30: if ((0x7e0000007eL & l) != 0L) jjstateSet[jjnewStateCnt++] = 31; break; case 31: if ((0x7e0000007eL & l) != 0L) jjstateSet[jjnewStateCnt++] = 32; break; case 32: if ((0x7e0000007eL & l) != 0L) jjstateSet[jjnewStateCnt++] = 33; break; case 33: if ((0x7e0000007eL & l) != 0L) jjCheckNAddStates(10, 13); break; case 34: if (curChar == 92) jjstateSet[jjnewStateCnt++] = 29; break; case 41: if ((0xffffffffefffffffL & l) != 0L) jjCheckNAdd(42); break; case 43: if (curChar == 92) jjAddStates(55, 57); break; case 44: if ((0x14404410000000L & l) != 0L) jjCheckNAdd(42); break; case 49: if (curChar == 117) jjstateSet[jjnewStateCnt++] = 50; break; case 50: if ((0x7e0000007eL & l) != 0L) jjstateSet[jjnewStateCnt++] = 51; break; case 51: if ((0x7e0000007eL & l) != 0L) jjstateSet[jjnewStateCnt++] = 52; break; case 52: if ((0x7e0000007eL & l) != 0L) jjstateSet[jjnewStateCnt++] = 53; break; case 53: if ((0x7e0000007eL & l) != 0L) jjCheckNAdd(42); break; case 54: if (curChar == 92) jjstateSet[jjnewStateCnt++] = 49; break; case 55: if (curChar == 64) jjCheckNAdd(56); break; case 56: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAddTwoStates(56, 57); break; case 58: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAddTwoStates(57, 58); break; case 63: if ((0x2000000020L & l) != 0L) jjAddStates(58, 59); break; case 67: if ((0x2000000020L & l) != 0L) jjAddStates(60, 61); break; case 71: if ((0x2000000020L & l) != 0L) jjAddStates(62, 63); break; case 76: if ((0x100000001000000L & l) != 0L) jjCheckNAdd(77); break; case 77: if ((0x7e0000007eL & l) == 0L) break; if (kind > 5) kind = 5; jjCheckNAddTwoStates(77, 78); break; case 78: if ((0x100000001000L & l) != 0L && kind > 5) kind = 5; break; case 80: if ((0x100000001000L & l) != 0L && kind > 6) kind = 6; break; case 81: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 24) kind = 24; jjCheckNAddStates(0, 6); break; case 82: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 24) kind = 24; jjCheckNAdd(82); break; case 83: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 25) kind = 25; jjCheckNAddStates(42, 45); break; case 85: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 25) kind = 25; jjCheckNAddStates(46, 49); break; case 86: if (curChar == 93) jjCheckNAddTwoStates(87, 93); break; case 87: if (curChar == 91) jjstateSet[jjnewStateCnt++] = 86; break; case 88: if (curChar == 115 && kind > 25) kind = 25; break; case 89: if (curChar == 115) jjstateSet[jjnewStateCnt++] = 88; break; case 90: if (curChar == 97) jjstateSet[jjnewStateCnt++] = 89; break; case 91: if (curChar == 108) jjstateSet[jjnewStateCnt++] = 90; break; case 92: if (curChar == 99) jjstateSet[jjnewStateCnt++] = 91; break; case 94: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 26) kind = 26; jjCheckNAddTwoStates(94, 95); break; case 96: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 26) kind = 26; jjCheckNAddTwoStates(95, 96); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 26: if (jjCanMove_0(hiByte, i1, i2, l1, l2)) jjAddStates(10, 13); break; case 41: if (jjCanMove_0(hiByte, i1, i2, l1, l2)) jjstateSet[jjnewStateCnt++] = 42; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 97 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }} | 7955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7955/befabeaf1dae0421113bebb4e027c4e3de1dc654/AnnotationParserTokenManager.java/buggy/backport175/src/main/org/codehaus/backport175/compiler/parser/ast/AnnotationParserTokenManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
760,
3238,
727,
509,
10684,
7607,
50,
507,
67,
20,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
760,
3238,
727,
509,
10684,
7607,
50,
507,
67,
20,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
... |
if (pos < 0) | if (pos < top) | private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * FIXME: This searches the whole file in a very slow manner if the * file isn't a zip file. */ long pos = raf.length() - ENDHDR; byte[] ebs = new byte[CENHDR]; do { if (pos < 0) throw new ZipException ("central directory not found, probably not a zip file: " + name); raf.seek(pos--); } while (readLeInt(raf, ebs) != ENDSIG); if (raf.skipBytes(ENDTOT - ENDNRD) != ENDTOT - ENDNRD) throw new EOFException(name); int count = readLeShort(raf, ebs); if (raf.skipBytes(ENDOFF - ENDSIZ) != ENDOFF - ENDSIZ) throw new EOFException(name); int centralOffset = readLeInt(raf, ebs); entries = new HashMap(count+count/2); raf.seek(centralOffset); byte[] buffer = new byte[16]; for (int i = 0; i < count; i++) { raf.readFully(ebs); if (readLeInt(ebs, 0) != CENSIG) throw new ZipException("Wrong Central Directory signature: " + name); int method = readLeShort(ebs, CENHOW); int dostime = readLeInt(ebs, CENTIM); int crc = readLeInt(ebs, CENCRC); int csize = readLeInt(ebs, CENSIZ); int size = readLeInt(ebs, CENLEN); int nameLen = readLeShort(ebs, CENNAM); int extraLen = readLeShort(ebs, CENEXT); int commentLen = readLeShort(ebs, CENCOM); int offset = readLeInt(ebs, CENOFF); int needBuffer = Math.max(nameLen, commentLen); if (buffer.length < needBuffer) buffer = new byte[needBuffer]; raf.readFully(buffer, 0, nameLen); String name; try { name = new String(buffer, 0, nameLen, "UTF-8"); } catch (UnsupportedEncodingException uee) { throw new AssertionError(uee); } ZipEntry entry = new ZipEntry(name); entry.setMethod(method); entry.setCrc(crc & 0xffffffffL); entry.setSize(size & 0xffffffffL); entry.setCompressedSize(csize & 0xffffffffL); entry.setDOSTime(dostime); if (extraLen > 0) { byte[] extra = new byte[extraLen]; raf.readFully(extra); entry.setExtra(extra); } if (commentLen > 0) { raf.readFully(buffer, 0, commentLen); try { entry.setComment(new String(buffer, 0, commentLen, "UTF-8")); } catch (UnsupportedEncodingException uee) { throw new AssertionError(uee); } } entry.offset = offset; entries.put(name, entry); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/ZipFile.java/buggy/core/src/classpath/java/java/util/zip/ZipFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
855,
5400,
1435,
1216,
8603,
503,
16,
1860,
225,
288,
202,
202,
20308,
5167,
364,
326,
4403,
8031,
385,
12839,
8930,
18,
225,
5203,
279,
3144,
2879,
353,
1875,
380,
3430,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
855,
5400,
1435,
1216,
8603,
503,
16,
1860,
225,
288,
202,
202,
20308,
5167,
364,
326,
4403,
8031,
385,
12839,
8930,
18,
225,
5203,
279,
3144,
2879,
353,
1875,
380,
3430,
326,
... |
throw new MessageInvalidException(ProtocolErrorMessage.URL_PARSE_ERROR, "Error parsing ref URL <"+urlString+">: "+e.getMessage(), null); | throw new MessageInvalidException(ProtocolErrorMessage.URL_PARSE_ERROR, "Error parsing ref URL <"+urlString+">: "+e.getMessage(), null, false); | public void run(FCPConnectionHandler handler, Node node) throws MessageInvalidException { String urlString = fs.get("URL"); String fileString = fs.get("File"); StringBuffer ref = null; BufferedReader in; if(urlString != null) { try { URL url = new URL(urlString); URLConnection uc = url.openConnection(); in = new BufferedReader( new InputStreamReader(uc.getInputStream())); ref = new StringBuffer(1024); String line; while((line = in.readLine()) != null) { line = line.trim(); ref.append( line ).append('\n'); } in.close(); } catch (MalformedURLException e) { throw new MessageInvalidException(ProtocolErrorMessage.URL_PARSE_ERROR, "Error parsing ref URL <"+urlString+">: "+e.getMessage(), null); } catch (IOException e) { throw new MessageInvalidException(ProtocolErrorMessage.URL_PARSE_ERROR, "IO error while retrieving ref URL <"+urlString+">: "+e.getMessage(), null); } ref = new StringBuffer(ref.toString().trim()); if(ref == null) { throw new MessageInvalidException(ProtocolErrorMessage.REF_PARSE_ERROR, "Error parsing ref from URL <"+urlString+ '>', null); } if(ref.equals("")) { throw new MessageInvalidException(ProtocolErrorMessage.REF_PARSE_ERROR, "Error parsing ref from URL <"+urlString+ '>', null); } try { fs = new SimpleFieldSet(ref.toString()); } catch (IOException e) { throw new MessageInvalidException(ProtocolErrorMessage.REF_PARSE_ERROR, "Error parsing ref from URL <"+urlString+">: "+e.getMessage(), null); } } else if(fileString != null) { File f = new File(fileString); if(!f.isFile()) { throw new MessageInvalidException(ProtocolErrorMessage.NOT_A_FILE_ERROR, "The given ref file path <"+fileString+"> is not a file", null); } try { in = new BufferedReader(new FileReader(f)); ref = new StringBuffer(1024); String line; while((line = in.readLine()) != null) { line = line.trim(); ref.append( line ).append('\n'); } in.close(); } catch (FileNotFoundException e) { throw new MessageInvalidException(ProtocolErrorMessage.FILE_NOT_FOUND, "File not found when retrieving ref file <"+fileString+">: "+e.getMessage(), null); } catch (IOException e) { throw new MessageInvalidException(ProtocolErrorMessage.FILE_PARSE_ERROR, "IO error while retrieving ref file <"+fileString+">: "+e.getMessage(), null); } ref = new StringBuffer(ref.toString().trim()); if(ref == null) { throw new MessageInvalidException(ProtocolErrorMessage.REF_PARSE_ERROR, "Error parsing ref from file <"+fileString+ '>', null); } if(ref.equals("")) { throw new MessageInvalidException(ProtocolErrorMessage.REF_PARSE_ERROR, "Error parsing ref from file <"+fileString+ '>', null); } try { fs = new SimpleFieldSet(ref.toString()); } catch (IOException e) { throw new MessageInvalidException(ProtocolErrorMessage.REF_PARSE_ERROR, "Error parsing ref from file <"+fileString+">: "+e.getMessage(), null); } } PeerNode pn; try { pn = new PeerNode(fs, node, false); } catch (FSParseException e) { throw new MessageInvalidException(ProtocolErrorMessage.REF_PARSE_ERROR, "Error parsing retrieved ref: "+e.getMessage(), null); } catch (PeerParseException e) { throw new MessageInvalidException(ProtocolErrorMessage.REF_PARSE_ERROR, "Error parsing retrieved ref: "+e.getMessage(), null); } catch (ReferenceSignatureVerificationException e) { // TODO: maybe a special ProtocolErrorMessage ? throw new MessageInvalidException(ProtocolErrorMessage.REF_PARSE_ERROR, "Error parsing retrieved ref: "+e.getMessage(), null); } // **FIXME** Handle duplicates somehow maybe? What about when node.addDarknetConnection() fails for some reason? if(node.addDarknetConnection(pn)) System.out.println("Added peer: "+pn); handler.outputHandler.queue(new Peer(pn, true, true)); } | 45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/bbb3c23ec38ea1c7abb48040a17f5fc7932248bc/AddPeer.java/buggy/src/freenet/node/fcp/AddPeer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
12,
42,
4258,
1952,
1503,
1838,
16,
2029,
756,
13,
1216,
2350,
1941,
503,
288,
202,
202,
780,
29374,
273,
2662,
18,
588,
2932,
1785,
8863,
202,
202,
780,
585,
780,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
12,
42,
4258,
1952,
1503,
1838,
16,
2029,
756,
13,
1216,
2350,
1941,
503,
288,
202,
202,
780,
29374,
273,
2662,
18,
588,
2932,
1785,
8863,
202,
202,
780,
585,
780,
... |
* Listens to part activation and updates the active workbench | * when the part closes, remove the listener to the workbench page * and remove all listeners. | protected AbstractActionHandler(final IWorkbenchPage workbenchPage) { super(); assert null != workbenchPage : "null workbenchPage"; //$NON-NLS-1$ this.workbenchPage = workbenchPage; this.partListener = new PartListenerAdapter() { /** * Listens to part activation and updates the active workbench */ public void partActivated(IWorkbenchPart part) { setWorkbenchPart(part); if (part != null) refresh(); } }; workbenchPage.addPartListener(partListener); } | 1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/af130b3fb6c9e6d14720afee4133e9fa73d2e955/AbstractActionHandler.java/buggy/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.common.ui/src/org/eclipse/gmf/runtime/common/ui/action/AbstractActionHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
4115,
1803,
1503,
12,
6385,
467,
2421,
22144,
1964,
1440,
22144,
1964,
13,
288,
202,
202,
9565,
5621,
202,
202,
11231,
446,
480,
1440,
22144,
1964,
294,
315,
2011,
1440,
22144,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
4115,
1803,
1503,
12,
6385,
467,
2421,
22144,
1964,
1440,
22144,
1964,
13,
288,
202,
202,
9565,
5621,
202,
202,
11231,
446,
480,
1440,
22144,
1964,
294,
315,
2011,
1440,
22144,
... |
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JLabel(parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 2, 1, 1.0, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(infoLabel, gbConstraints); add(infoLabel); textArea = new JTextArea(licence); textArea.setCaretPosition(0); textArea.setEditable(false); textArea.setLineWrap(true); textArea.setWrapStyleWord(true); scroller = new JScrollPane(textArea); parent.buildConstraints(gbConstraints, 0, 1, 2, 1, 1.0, 1.0); gbConstraints.anchor = GridBagConstraints.CENTER; gbConstraints.fill = GridBagConstraints.BOTH; layout.addLayoutComponent(scroller, gbConstraints); add(scroller); agreeLabel = new JLabel(parent.langpack.getString("LicencePanel.agree"), parent.icons.getImageIcon("help"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 2, 2, 1, 1.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(agreeLabel, gbConstraints); add(agreeLabel); ButtonGroup group = new ButtonGroup(); yesRadio = new JRadioButton(parent.langpack.getString("LicencePanel.yes"), false); group.add(yesRadio); parent.buildConstraints(gbConstraints, 0, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHWEST; layout.addLayoutComponent(yesRadio, gbConstraints); add(yesRadio); yesRadio.addActionListener(this); noRadio = new JRadioButton(parent.langpack.getString("LicencePanel.no"), false); group.add(noRadio); parent.buildConstraints(gbConstraints, 1, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHEAST; layout.addLayoutComponent(noRadio, gbConstraints); add(noRadio); noRadio.addActionListener(this); } | 28044 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28044/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
48,
335,
802,
5537,
12,
18678,
3219,
2938,
16,
6410,
751,
350,
396,
15329,
9565,
12,
2938,
16,
350,
396,
1769,
759,
3218,
11160,
477,
6741,
6741,
33,
2704,
6313,
5013,
3744,
5621,
4490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
48,
335,
802,
5537,
12,
18678,
3219,
2938,
16,
6410,
751,
350,
396,
15329,
9565,
12,
2938,
16,
350,
396,
1769,
759,
3218,
11160,
477,
6741,
6741,
33,
2704,
6313,
5013,
3744,
5621,
4490,
... | ||
public FileInputStream(File file) throws FileNotFoundException, IOException | public FileInputStream(String name) throws FileNotFoundException | public FileInputStream(File file) throws FileNotFoundException, IOException { this(file.getPath()); } | 5916 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5916/01fb6185d10749fd45980e9423656ff95bdedc27/FileInputStream.java/buggy/libjava/java/io/FileInputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
11907,
12,
780,
508,
13,
1216,
13707,
225,
288,
565,
333,
12,
768,
18,
588,
743,
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,
... | [
1,
1,
1,
1,
1,
1,
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,
282,
1071,
11907,
12,
780,
508,
13,
1216,
13707,
225,
288,
565,
333,
12,
768,
18,
588,
743,
10663,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Util.bind("status.nameCollision", destinationResource.getFullPath().toString()))); | Messages.bind(Messages.status_nameCollision, (new String[] {destinationResource.getFullPath().toString()})))); | private void processPackageFragmentResource(PackageFragment source, PackageFragmentRoot root, String newName) throws JavaModelException { try { String[] newFragName = (newName == null) ? source.names : Util.getTrimmedSimpleNames(newName); IPackageFragment newFrag = root.getPackageFragment(newFragName); IResource[] resources = collectResourcesOfInterest(source); // if isMove() can we move the folder itself ? (see http://bugs.eclipse.org/bugs/show_bug.cgi?id=22458) boolean shouldMoveFolder = isMove() && !newFrag.getResource().exists(); // if new pkg fragment exists, it is an override IFolder srcFolder = (IFolder)source.getResource(); IPath destPath = newFrag.getPath(); if (shouldMoveFolder) { // check if destination is not included in source if (srcFolder.getFullPath().isPrefixOf(destPath)) { shouldMoveFolder = false; } else { // check if there are no sub-packages IResource[] members = srcFolder.members(); for (int i = 0; i < members.length; i++) { if ( members[i] instanceof IFolder) { shouldMoveFolder = false; break; } } } } boolean containsReadOnlySubPackageFragments = createNeededPackageFragments((IContainer) source.getParent().getResource(), root, newFragName, shouldMoveFolder); boolean sourceIsReadOnly = Util.isReadOnly(srcFolder); // Process resources if (shouldMoveFolder) { // move underlying resource // TODO Revisit once bug 43044 is fixed if (sourceIsReadOnly) { Util.setReadOnly(srcFolder, false); } srcFolder.move(destPath, force, true /* keep history */, getSubProgressMonitor(1)); if (sourceIsReadOnly) { Util.setReadOnly(srcFolder, true); } this.setAttribute(HAS_MODIFIED_RESOURCE_ATTR, TRUE); } else { // process the leaf resources if (resources.length > 0) { if (isRename()) { if (! destPath.equals(source.getPath())) { moveResources(resources, destPath); } } else if (isMove()) { // we need to delete this resource if this operation wants to override existing resources for (int i = 0, max = resources.length; i < max; i++) { IResource destinationResource = ResourcesPlugin.getWorkspace().getRoot().findMember(destPath.append(resources[i].getName())); if (destinationResource != null) { if (force) { deleteResource(destinationResource, IResource.KEEP_HISTORY); } else { throw new JavaModelException(new JavaModelStatus( IJavaModelStatusConstants.NAME_COLLISION, Util.bind("status.nameCollision", destinationResource.getFullPath().toString()))); //$NON-NLS-1$ } } } moveResources(resources, destPath); } else { // we need to delete this resource if this operation wants to override existing resources for (int i = 0, max = resources.length; i < max; i++) { IResource destinationResource = ResourcesPlugin.getWorkspace().getRoot().findMember(destPath.append(resources[i].getName())); if (destinationResource != null) { if (force) { // we need to delete this resource if this operation wants to override existing resources deleteResource(destinationResource, IResource.KEEP_HISTORY); } else { throw new JavaModelException(new JavaModelStatus( IJavaModelStatusConstants.NAME_COLLISION, Util.bind("status.nameCollision", destinationResource.getFullPath().toString()))); //$NON-NLS-1$ } } } copyResources(resources, destPath); } } } // Update package statement in compilation unit if needed if (!Util.equalArraysOrNull(newFragName, source.names)) { // if package has been renamed, update the compilation units char[][] inclusionPatterns = root.fullInclusionPatternChars(); char[][] exclusionPatterns = root.fullExclusionPatternChars(); for (int i = 0; i < resources.length; i++) { String resourceName = resources[i].getName(); if (Util.isJavaLikeFileName(resourceName)) { // we only consider potential compilation units ICompilationUnit cu = newFrag.getCompilationUnit(resourceName); if (Util.isExcluded(cu.getPath(), inclusionPatterns, exclusionPatterns, false/*not a folder*/)) continue; this.parser.setSource(cu); CompilationUnit astCU = (CompilationUnit) this.parser.createAST(this.progressMonitor); AST ast = astCU.getAST(); ASTRewrite rewrite = ASTRewrite.create(ast); updatePackageStatement(astCU, newFragName, rewrite); IDocument document = getDocument(cu); TextEdit edits = rewrite.rewriteAST(document, null); try { edits.apply(document); } catch (BadLocationException e) { throw new JavaModelException(e, IJavaModelStatusConstants.INVALID_CONTENTS); } cu.save(null, false); } } } // Discard empty old package (if still empty after the rename) boolean isEmpty = true; if (isMove()) { // delete remaining files in this package (.class file in the case where Proj=src=bin) // in case of a copy updateReadOnlyPackageFragmentsForMove((IContainer) source.getParent().getResource(), root, newFragName, sourceIsReadOnly); if (srcFolder.exists()) { IResource[] remaining = srcFolder.members(); for (int i = 0, length = remaining.length; i < length; i++) { IResource file = remaining[i]; if (file instanceof IFile) { if (Util.isReadOnly(file)) { Util.setReadOnly(file, false); } this.deleteResource(file, IResource.FORCE | IResource.KEEP_HISTORY); } else { isEmpty = false; } } } if (isEmpty) { IResource rootResource; // check if source is included in destination if (destPath.isPrefixOf(srcFolder.getFullPath())) { rootResource = newFrag.getResource(); } else { rootResource = source.getParent().getResource(); } // delete recursively empty folders deleteEmptyPackageFragment(source, false, rootResource); } } else if (containsReadOnlySubPackageFragments) { // in case of a copy updateReadOnlyPackageFragmentsForCopy((IContainer) source.getParent().getResource(), root, newFragName); } // workaround for bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=24505 if (isEmpty && isMove() && !(Util.isExcluded(source) || Util.isExcluded(newFrag))) { IJavaProject sourceProject = source.getJavaProject(); getDeltaFor(sourceProject).movedFrom(source, newFrag); IJavaProject destProject = newFrag.getJavaProject(); getDeltaFor(destProject).movedTo(newFrag, source); } } catch (JavaModelException e) { throw e; } catch (CoreException ce) { throw new JavaModelException(ce); } } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/7ed8fb3f335f5407b01a590a0c668733ebc19aa6/CopyResourceElementsOperation.java/clean/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CopyResourceElementsOperation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1207,
2261,
7456,
1420,
12,
2261,
7456,
1084,
16,
7508,
7456,
2375,
1365,
16,
514,
13253,
13,
1216,
5110,
1488,
503,
288,
202,
202,
698,
288,
1082,
202,
780,
8526,
394,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2261,
7456,
1420,
12,
2261,
7456,
1084,
16,
7508,
7456,
2375,
1365,
16,
514,
13253,
13,
1216,
5110,
1488,
503,
288,
202,
202,
698,
288,
1082,
202,
780,
8526,
394,
... |
buildStatus.getProperties().get(BuildStatus.MOST_RECENT_LOGFILE_KEY)); | properties.get(BuildStatus.MOST_RECENT_LOGFILE_KEY)); | public void testGetModifications() throws Exception { File tempDir = new File(System.getProperty("java.io.tmpdir")); buildStatus.setLogDir(tempDir.getAbsolutePath()); buildStatus.validate(); Calendar calendar = Calendar.getInstance(); Date today = calendar.getTime(); calendar.add(Calendar.DATE, -1); Date yesterday = calendar.getTime(); calendar.add(Calendar.DATE, -1); Date twoDaysAgo = calendar.getTime(); // Should be no modifications at this point List modifications = buildStatus.getModifications(twoDaysAgo, null); assertEquals("Wrong number of modifications", 0, modifications.size()); // Verify an unsuccessful build does not show up File yesterdayLog = new File(tempDir, Log.formatLogFileName(yesterday)); yesterdayLog.createNewFile(); try { modifications = buildStatus.getModifications(twoDaysAgo, null); assertEquals("Wrong number of modifications", 0, modifications.size()); } finally { yesterdayLog.delete(); } // Verify a successful build shows up File yesterdayLog2 = new File(tempDir, Log.formatLogFileName(yesterday, "good.1")); yesterdayLog2.createNewFile(); try { modifications = buildStatus.getModifications(twoDaysAgo, null); assertEquals("Wrong number of modifications", 1, modifications.size()); // Verify properties were set correctly assertEquals("Property was not set correctly", tempDir.getAbsolutePath(), buildStatus.getProperties().get(BuildStatus.MOST_RECENT_LOGDIR_KEY)); assertEquals("Property was not set correctly", yesterdayLog2.getName(), buildStatus.getProperties().get(BuildStatus.MOST_RECENT_LOGFILE_KEY)); assertEquals("Property was not set correctly", DateUtil.getFormattedTime(yesterday), buildStatus.getProperties().get(BuildStatus.MOST_RECENT_LOGTIME_KEY)); assertEquals("Property was not set correctly", "good.1", buildStatus.getProperties().get(BuildStatus.MOST_RECENT_LOGLABEL_KEY)); // Verify date range works modifications = buildStatus.getModifications(today, null); assertEquals("Wrong number of modifications", 0, modifications.size()); // Verify properties are set correctly when there are multiple modifications File todayLog = new File(tempDir, Log.formatLogFileName(today, "good.2")); todayLog.createNewFile(); try { modifications = buildStatus.getModifications(twoDaysAgo, null); assertEquals("Wrong number of modifications", 2, modifications.size()); // Verify properties were set correctly assertEquals("Property was not set correctly", tempDir.getAbsolutePath(), buildStatus.getProperties().get(BuildStatus.MOST_RECENT_LOGDIR_KEY)); assertEquals("Property was not set correctly", todayLog.getName(), buildStatus.getProperties().get(BuildStatus.MOST_RECENT_LOGFILE_KEY)); assertEquals("Property was not set correctly", DateUtil.getFormattedTime(today), buildStatus.getProperties().get(BuildStatus.MOST_RECENT_LOGTIME_KEY)); assertEquals("Property was not set correctly", "good.2", buildStatus.getProperties().get(BuildStatus.MOST_RECENT_LOGLABEL_KEY)); } finally { todayLog.delete(); } } finally { yesterdayLog2.delete(); } } | 55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/c879b70b24afa19e65b4d2d550b27f6e981821f1/BuildStatusTest.java/buggy/main/test/net/sourceforge/cruisecontrol/sourcecontrols/BuildStatusTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
967,
28340,
1435,
1216,
1185,
288,
3639,
1387,
20719,
273,
394,
1387,
12,
3163,
18,
588,
1396,
2932,
6290,
18,
1594,
18,
5645,
1214,
7923,
1769,
3639,
1361,
1482,
18,
542... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
967,
28340,
1435,
1216,
1185,
288,
3639,
1387,
20719,
273,
394,
1387,
12,
3163,
18,
588,
1396,
2932,
6290,
18,
1594,
18,
5645,
1214,
7923,
1769,
3639,
1361,
1482,
18,
542... |
initialize(getLoader()); | initialize(getPluginClassLoader()); | public void setLoader(IdeaClassLoader loader) { myLoader = loader; //Now we're ready to load root area extensions Extensions.getRootArea().registerAreaExtensionsAndPoints(this, myExtensionsPoints, myExtensions); initialize(getLoader()); } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/7ad8fd0b384940c9415e8143b949db5fd0fe3121/IdeaPluginDescriptorImpl.java/buggy/plugins-management/src/com/intellij/ide/plugins/IdeaPluginDescriptorImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
2886,
12,
45,
323,
69,
7805,
4088,
13,
288,
565,
3399,
2886,
273,
4088,
31,
565,
368,
8674,
732,
4565,
5695,
358,
1262,
1365,
5091,
4418,
565,
23105,
18,
588,
2375,
5484... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
2886,
12,
45,
323,
69,
7805,
4088,
13,
288,
565,
3399,
2886,
273,
4088,
31,
565,
368,
8674,
732,
4565,
5695,
358,
1262,
1365,
5091,
4418,
565,
23105,
18,
588,
2375,
5484... |
return contents; | return new Object[][] { { "ui_language", "en" }, { "help_language", "en" }, { "language", "en" }, { "alphabet", new CharArrayWrapper(new char[]{ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z' })}, { "tradAlphabet", new CharArrayWrapper(new char[]{ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z' }) }, { "orientation", "LeftToRight" }, { "numbering", "additive" }, }; | public Object[][] getContents() { return contents; } | 2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/2d07c253b814672a82d969836d58577bfa628b88/XResourceBundle.java/buggy/src/org/apache/xml/utils/res/XResourceBundle.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
63,
6362,
65,
15015,
1435,
225,
288,
565,
327,
394,
1033,
63,
6362,
65,
288,
288,
315,
4881,
67,
4923,
3113,
315,
275,
6,
19879,
288,
315,
5201,
67,
4923,
3113,
315,
275,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
63,
6362,
65,
15015,
1435,
225,
288,
565,
327,
394,
1033,
63,
6362,
65,
288,
288,
315,
4881,
67,
4923,
3113,
315,
275,
6,
19879,
288,
315,
5201,
67,
4923,
3113,
315,
275,
... |
VM.sysWrite(right(decimal(imm), SOURCE_AREA_SIZE) + " | "); asm.writeLastInstruction(i); VM.sysWrite("\n"); | VM.sysWrite(right(decimal(imm), SOURCE_AREA_SIZE)); end(i); | final void RDRI (int i, String op, byte R0, int d, byte R1, int imm) { VM.sysWrite(right(hex(i),6) + "| "); VM.sysWrite(right("", PREFIX_AREA_SIZE) + " "); VM.sysWrite( left(op, OP_AREA_SIZE)); VM.sysWrite(right(decimal(d) + "[" + GPR_NAMES[R0] + "]", DEST_AREA_SIZE)); VM.sysWrite(right(isFP(op)?FPR_NAMES[R1]:GPR_NAMES[R1] + " ", SOURCE_AREA_SIZE)); VM.sysWrite(right(decimal(imm), SOURCE_AREA_SIZE) + " | "); asm.writeLastInstruction(i); VM.sysWrite("\n"); } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/29b10a8056b3781b5fe29732137068e962ff1954/VM_Lister.java/clean/rvm/src/vm/arch/intel/assembler/VM_Lister.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
918,
534,
40,
2259,
261,
474,
277,
16,
514,
1061,
16,
1160,
534,
20,
16,
509,
302,
16,
1160,
534,
21,
16,
509,
709,
81,
13,
288,
565,
8251,
18,
9499,
3067,
12,
4083,
12,
7118,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
918,
534,
40,
2259,
261,
474,
277,
16,
514,
1061,
16,
1160,
534,
20,
16,
509,
302,
16,
1160,
534,
21,
16,
509,
709,
81,
13,
288,
565,
8251,
18,
9499,
3067,
12,
4083,
12,
7118,
... |
if (!(argNames != null && 0 <= argCount && argCount <= argNames.length)) { throw new IllegalArgumentException(); } if (!(this.argNames == null)) { throw new IllegalStateException(); } | public final void initScriptFunction(Context cx, Scriptable scope, int version, String functionName, String[] argNames, int argCount) { if (!(argNames != null && 0 <= argCount && argCount <= argNames.length)) { throw new IllegalArgumentException(); } if (!(this.argNames == null)) { // Initialization can only be done once throw new IllegalStateException(); } this.functionName = functionName; this.argNames = argNames; this.argCount = argCount; this.version = version; ScriptRuntime.setFunctionProtoAndParent(this, scope); } | 47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/08f0cfede0b5665f6b5139b8993251dc3a80ec16/NativeFunction.java/buggy/src/org/mozilla/javascript/NativeFunction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
918,
1208,
3651,
2083,
12,
1042,
9494,
16,
22780,
2146,
16,
29159,
509,
1177,
16,
514,
14117,
16,
29159,
514,
8526,
1501,
1557,
16,
509,
1501,
1380,
13,
565,
288,
3639,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
918,
1208,
3651,
2083,
12,
1042,
9494,
16,
22780,
2146,
16,
29159,
509,
1177,
16,
514,
14117,
16,
29159,
514,
8526,
1501,
1557,
16,
509,
1501,
1380,
13,
565,
288,
3639,
309,
... | |
return rawValue == null ? true : rawValue .matches("\\d{1,3},\\d{1,3},\\d{1,3}"); | return rawValue.indexOf(',') >= 0; | private static boolean isDirectValue(String rawValue) { return rawValue == null ? true : rawValue .matches("\\d{1,3},\\d{1,3},\\d{1,3}"); //$NON-NLS-1$ } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/528c62e810dd96140b435fd651b5ed05c662d4ec/ColorUtils.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/themes/ColorUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1250,
353,
5368,
620,
12,
780,
22539,
13,
288,
3639,
327,
22539,
422,
446,
692,
638,
294,
22539,
7734,
263,
8436,
2932,
1695,
72,
95,
21,
16,
23,
5779,
1695,
72,
95,
21,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1250,
353,
5368,
620,
12,
780,
22539,
13,
288,
3639,
327,
22539,
422,
446,
692,
638,
294,
22539,
7734,
263,
8436,
2932,
1695,
72,
95,
21,
16,
23,
5779,
1695,
72,
95,
21,
16... |
ex.printStackTrace(); out.println("-ERR. Some deleted messages were not removed."); | out.println("-ERR. Some deleted messages were not removed"); logger.log("Some deleted messages were not removed: " + ex.getMessage(), "POP3Server", logger.ERROR); | private boolean parseCommand(String command) { if (command == null) return false; logger.log("Command recieved: " + command, "POP3Server", logger.INFO); StringTokenizer commandLine = new StringTokenizer(command.trim(), " "); int arguments = commandLine.countTokens(); if (arguments == 0) { return true; } else if(arguments > 0) { command = commandLine.nextToken(); } String argument = (String) null; if(arguments > 1) { argument = commandLine.nextToken(); } String argument1 = (String) null; if(arguments > 2) { argument1 = commandLine.nextToken(); } if (command.equalsIgnoreCase("USER")) { if (state == AUTHENTICATION_READY && argument != null) { user = argument; state = AUTHENTICATION_USERSET; out.println("+OK."); } else { out.println("-ERR."); } return true; } else if (command.equalsIgnoreCase("PASS")) { if (state == AUTHENTICATION_USERSET && argument != null) { if (userRepository.test(user, argument)) { state = TRANSACTION; out.println("+OK. Welcome " + user); userInbox = mailServer.getUserInbox(user); stat(); } else { state = AUTHENTICATION_READY; out.println("-ERR. Authentication failed."); } } else { out.println("-ERR."); } return true; } else if (command.equalsIgnoreCase("STAT")) { if (state == TRANSACTION) { long size = 0; int count = 0; try { for (Enumeration e = userMailbox.elements(); e.hasMoreElements(); ) { MessageContainer mc = (MessageContainer) e.nextElement(); if (mc != DELETED) { size += mc.getMessage().getSize(); count++; } } out.println("+OK " + count + " " + size); } catch (MessagingException me) { out.println("-ERR."); } } else { out.println("-ERR."); } return true; } else if (command.equalsIgnoreCase("LIST")) { if (state == TRANSACTION) { if (argument == null) { long size = 0; int count = 0; try { for (Enumeration e = userMailbox.elements(); e.hasMoreElements(); ) { MessageContainer mc = (MessageContainer) e.nextElement(); if (mc != DELETED) { size += mc.getMessage().getSize(); count++; } } out.println("+OK " + count + " " + size); count = 0; for (Enumeration e = userMailbox.elements(); e.hasMoreElements(); count++) { MessageContainer mc = (MessageContainer) e.nextElement(); if (mc != DELETED) { out.println(count + " " + mc.getMessage().getSize()); } } out.println("."); } catch (MessagingException me) { out.println("-ERR."); } } else { int num = 0; try { num = Integer.parseInt(argument); MessageContainer mc = (MessageContainer) userMailbox.elementAt(num); if (mc != DELETED) { out.println("+OK " + num + " " + mc.getMessage().getSize()); } else { out.println("-ERR. Message (" + num + ") does not exist."); } } catch (ArrayIndexOutOfBoundsException npe) { out.println("-ERR. Message (" + num + ") does not exist."); } catch (NumberFormatException nfe) { out.println("-ERR. " + argument + " is not a valid number"); } catch (MessagingException me) { out.println("-ERR."); } } } else { out.println("-ERR."); } return true; } else if (command.equalsIgnoreCase("UIDL")) { if (state == TRANSACTION) { if (argument == null) { out.println("+OK unique-id listing follows"); int count = 0; for (Enumeration e = userMailbox.elements(); e.hasMoreElements(); count++) { MessageContainer mc = (MessageContainer) e.nextElement(); if (mc != DELETED) { out.println(count + " " + mc.getMessageId()); } } out.println("."); } else { int num = 0; try { num = Integer.parseInt(argument); MessageContainer mc = (MessageContainer) userMailbox.elementAt(num); if (mc != DELETED) { out.println("+OK " + num + " " + mc.getMessageId()); } else { out.println("-ERR. Message (" + num + ") does not exist."); } } catch (ArrayIndexOutOfBoundsException npe) { out.println("-ERR. Message (" + num + ") does not exist."); } catch (NumberFormatException nfe) { out.println("-ERR. " + argument + " is not a valid number"); } } } else { out.println("-ERR."); } return true; } else if (command.equalsIgnoreCase("RSET")) { if (state == TRANSACTION) { stat(); out.println("+OK."); } else { out.println("-ERR."); } return true; } else if (command.equalsIgnoreCase("DELE")) { if (state == TRANSACTION) { int num = 0; try { num = Integer.parseInt(argument); } catch (Exception e) { out.println("-ERR. Usage: DELE [mail number]"); return true; } try { userMailbox.setElementAt(DELETED, num); out.println("+OK Message removed"); } catch (ArrayIndexOutOfBoundsException iob) { out.println("-ERR. Message (" + num + ") does not exist."); } } else { out.println("-ERR."); } return true; } else if (command.equalsIgnoreCase("NOOP")) { out.println("+OK"); return true; } else if (command.equalsIgnoreCase("RETR")) { if (state == TRANSACTION) { int num = 0; try { num = Integer.parseInt(argument.trim()); } catch (Exception e) { out.println("-ERR. Usage: RETR [mail number]"); return true; }//?May be written as return parseCommand("TOP " + num + " " + Integer.MAX_VALUE);? try { MessageContainer mc = (MessageContainer) userMailbox.elementAt(num); if (mc != DELETED) { out.println("+OK Message follows"); mc.getMessage().writeTo(outs); } else { out.println("-ERR. Message (" + num + ") deleted."); } } catch (IOException ioe) { out.println("-ERR. Error while retrieving message."); } catch (MessagingException me) { out.println("-ERR. Error while retrieving message."); } catch (ArrayIndexOutOfBoundsException iob) { out.println("-ERR. Message (" + num + ") does not exist."); }// -------------------------------------------? } else { out.println("-ERR."); } return true; } else if (command.equalsIgnoreCase("TOP")) { if (state == TRANSACTION) { int num = 0; int lines = 0; try { num = Integer.parseInt(argument); lines = Integer.parseInt(argument1); } catch (NumberFormatException nfe) { out.println("-ERR. Usage: TOP [mail number] [Line number]"); return true; } try { MessageContainer mc = (MessageContainer) userMailbox.elementAt(num); if (mc != DELETED) { out.println("+OK Message follows"); for (Enumeration e = mc.getMessage().getAllHeaderLines(); e.hasMoreElements(); ) { out.println(e.nextElement()); } out.println("");// FIXME!!!: need to print first "lines" of the message while (lines-- > 0) { out.println("!!! PARTYALLY SUPPORTED COMMAND !!!"); } } else { out.println("-ERR. Message (" + num + ") already deleted."); } } catch (MessagingException me) { out.println("-ERR. Error while retrieving message."); } catch (ArrayIndexOutOfBoundsException iob) { out.println("-ERR. Message (" + num + ") does not exist."); } } else { out.println("-ERR."); } return true; } else if (command.equalsIgnoreCase("QUIT")) { if (state == AUTHENTICATION_READY || state == AUTHENTICATION_USERSET) { return false; } Vector toBeRemoved = new Vector(); for (Enumeration e = backupUserMailbox.elements(); e.hasMoreElements(); ) { Object mail = e.nextElement(); if (!userMailbox.contains(mail)) { toBeRemoved.addElement(mail); } } try { for (Enumeration e = toBeRemoved.elements(); e.hasMoreElements(); ) { MessageContainer mc = (MessageContainer) e.nextElement(); userInbox.remove(mc.getMessageId()); } out.println("+OK. Apache James POP3 Server signinig off."); } catch (Exception ex) { ex.printStackTrace(); out.println("-ERR. Some deleted messages were not removed."); } return false; } else { out.println("-ERR."); return true; } } | 47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/47e1f1dd324aaa19b69c89398ecab34856a55c89/POP3Handler.java/buggy/trunk/src/org/apache/james/pop3server/POP3Handler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
1109,
2189,
12,
780,
1296,
13,
288,
3639,
309,
261,
3076,
422,
446,
13,
327,
629,
31,
3639,
1194,
18,
1330,
2932,
2189,
1950,
1385,
2155,
30,
315,
397,
1296,
16,
315,
30374,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
1109,
2189,
12,
780,
1296,
13,
288,
3639,
309,
261,
3076,
422,
446,
13,
327,
629,
31,
3639,
1194,
18,
1330,
2932,
2189,
1950,
1385,
2155,
30,
315,
397,
1296,
16,
315,
30374,... |
axis.add( a ); | axes.add( a ); | public void attachAxis( Axis a ) { if(a == null) return; try { axis.add( a ); a.set_g2d(this); } catch (Exception e) { System.err.println("Failed to attach Axis"); e.printStackTrace(); }} | 13245 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13245/37f8cebca3b3404864c466e7456eb7a6bbd1debe/Graph.java/buggy/src/clients/graph/Graph.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
3306,
6558,
12,
15509,
279,
262,
288,
202,
430,
12,
69,
422,
446,
13,
327,
31,
202,
698,
288,
3196,
202,
4890,
18,
1289,
12,
279,
11272,
202,
202,
69,
18,
542,
67,
75,
22,
72,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3306,
6558,
12,
15509,
279,
262,
288,
202,
430,
12,
69,
422,
446,
13,
327,
31,
202,
698,
288,
3196,
202,
4890,
18,
1289,
12,
279,
11272,
202,
202,
69,
18,
542,
67,
75,
22,
72,... |
loop65: | loop66: | public PatternDescr lhs_or() throws RecognitionException { PatternDescr d; PatternDescr left = null; PatternDescr right = null; d = null; try { // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1106:17: (left= lhs_and ( ('or'|'||') opt_eol right= lhs_and )* ) // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1106:17: left= lhs_and ( ('or'|'||') opt_eol right= lhs_and )* { OrDescr or = null; following.push(FOLLOW_lhs_and_in_lhs_or3015); left=lhs_and(); following.pop(); d = left; // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1108:17: ( ('or'|'||') opt_eol right= lhs_and )* loop65: do { int alt65=2; int LA65_0 = input.LA(1); if ( (LA65_0>=44 && LA65_0<=45) ) { alt65=1; } switch (alt65) { case 1 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1108:19: ('or'|'||') opt_eol right= lhs_and { if ( (input.LA(1)>=44 && input.LA(1)<=45) ) { input.consume(); errorRecovery=false; } else { MismatchedSetException mse = new MismatchedSetException(null,input); recoverFromMismatchedSet(input,mse,FOLLOW_set_in_lhs_or3024); throw mse; } following.push(FOLLOW_opt_eol_in_lhs_or3029); opt_eol(); following.pop(); following.push(FOLLOW_lhs_and_in_lhs_or3036); right=lhs_and(); following.pop(); if ( or == null ) { or = new OrDescr(); or.addDescr( left ); d = or; } or.addDescr( right ); } break; default : break loop65; } } while (true); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; } | 5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/12c8feffd968f958100f654d836fa3c2ee21ded8/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6830,
16198,
8499,
67,
280,
1435,
1216,
9539,
288,
6647,
6830,
16198,
302,
31,
3639,
6830,
16198,
2002,
273,
446,
31,
3639,
6830,
16198,
2145,
273,
446,
31,
540,
202,
202,
72,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6830,
16198,
8499,
67,
280,
1435,
1216,
9539,
288,
6647,
6830,
16198,
302,
31,
3639,
6830,
16198,
2002,
273,
446,
31,
3639,
6830,
16198,
2145,
273,
446,
31,
540,
202,
202,
72,
273,
... |
if ( !currentChart.getType( ).equals( TYPE_LITERAL ) ) { currentChart.setSampleData( getConvertedSampleData( currentChart.getSampleData( ), ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getType( ) ) ); } | private Chart getConvertedChart( Chart currentChart, String sNewSubType, Orientation newOrientation, String sNewDimension ) { Chart helperModel = (Chart) EcoreUtil.copy( currentChart ); //Cache series to keep attributes during conversion ChartCacheManager.getInstance( ) .cacheSeries( ChartUIUtil.getAllOrthogonalSeriesDefinitions( helperModel ) ); if ( ( currentChart instanceof ChartWithAxes ) ) // Chart is // ChartWithAxes { if ( currentChart.getType( ).equals( TYPE_LITERAL ) ) { if ( !currentChart.getSubType( ).equals( sNewSubType ) ) { currentChart.setSubType( sNewSubType ); EList axes = ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ); for ( int i = 0; i < axes.size( ); i++ ) { ( (Axis) axes.get( i ) ).setPercent( false ); EList seriesdefinitions = ( (Axis) axes.get( i ) ).getSeriesDefinitions( ); for ( int j = 0; j < seriesdefinitions.size( ); j++ ) { Series series = ( (SeriesDefinition) seriesdefinitions.get( j ) ).getDesignTimeSeries( ); series.setStacked( false ); } } } ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setCategoryAxis( false ); if ( currentChart instanceof ChartWithAxes && !( (ChartWithAxes) currentChart ).getOrientation( ) .equals( newOrientation ) ) { ( (ChartWithAxes) currentChart ).setOrientation( newOrientation ); } return currentChart; } else if ( currentChart.getType( ).equals( LineChart.TYPE_LITERAL ) || currentChart.getType( ).equals( AreaChart.TYPE_LITERAL ) || currentChart.getType( ).equals( BarChart.TYPE_LITERAL ) || currentChart.getType( ) .equals( ScatterChart.TYPE_LITERAL ) || currentChart.getType( ).equals( StockChart.TYPE_LITERAL ) || currentChart.getType( ) .equals( BubbleChart.TYPE_LITERAL ) || currentChart.getType( ) .equals( DifferenceChart.TYPE_LITERAL ) ) { if ( !currentChart.getType( ).equals( TYPE_LITERAL ) ) { currentChart.setSampleData( getConvertedSampleData( currentChart.getSampleData( ), ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getType( ) ) ); } currentChart.setType( TYPE_LITERAL ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setCategoryAxis( true ); currentChart.setSubType( sNewSubType ); currentChart.getTitle( ) .getLabel( ) .getCaption( ) .setValue( CHART_TITLE ); EList axes = ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ); for ( int i = 0, seriesIndex = 0; i < axes.size( ); i++ ) { ( (Axis) axes.get( i ) ).setPercent( false ); ( (Axis) axes.get( i ) ).setType( AxisType.DATE_TIME_LITERAL ); EList seriesdefinitions = ( (Axis) axes.get( i ) ).getSeriesDefinitions( ); for ( int j = 0; j < seriesdefinitions.size( ); j++ ) { Series series = ( (SeriesDefinition) seriesdefinitions.get( j ) ).getDesignTimeSeries( ); series = getConvertedSeries( series, seriesIndex++ ); series.setStacked( false ); ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .clear( ); ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .add( series ); } } } else { return null; } } else { // Create a new instance of the correct type and set initial // properties currentChart = ChartWithAxesImpl.create( ); currentChart.setType( TYPE_LITERAL ); currentChart.setSubType( sNewSubType ); ( (ChartWithAxes) currentChart ).setOrientation( newOrientation ); currentChart.setDimension( getDimensionFor( sNewDimension ) ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setOrientation( Orientation.HORIZONTAL_LITERAL ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setType( AxisType.TEXT_LITERAL ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setCategoryAxis( true ); ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).setOrientation( Orientation.VERTICAL_LITERAL ); ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).setType( AxisType.DATE_TIME_LITERAL ); // Copy generic chart properties from the old chart currentChart.setBlock( helperModel.getBlock( ) ); currentChart.setDescription( helperModel.getDescription( ) ); currentChart.setGridColumnCount( helperModel.getGridColumnCount( ) ); currentChart.setSampleData( getConvertedSampleData( helperModel.getSampleData( ), ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getType( ) ) ); currentChart.setScript( helperModel.getScript( ) ); currentChart.setSeriesThickness( helperModel.getSeriesThickness( ) ); currentChart.setUnits( helperModel.getUnits( ) ); if ( helperModel.getType( ).equals( PieChart.TYPE_LITERAL ) || helperModel.getType( ).equals( MeterChart.TYPE_LITERAL ) ) { // Clear existing series definitions ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).getSeriesDefinitions( ) .clear( ); // Copy base series definitions ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).getSeriesDefinitions( ) .add( ( (ChartWithoutAxes) helperModel ).getSeriesDefinitions( ) .get( 0 ) ); // Clear existing series definitions ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).getSeriesDefinitions( ) .clear( ); // Copy orthogonal series definitions ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).getSeriesDefinitions( ) .addAll( ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getSeriesDefinitions( ) ); // Update the base series Series series = ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getDesignTimeSeries( ); // Clear existing series ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getSeries( ) .clear( ); // Add converted series ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getSeries( ) .add( series ); // Update the orthogonal series EList seriesdefinitions = ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).getSeriesDefinitions( ); for ( int j = 0; j < seriesdefinitions.size( ); j++ ) { series = ( (SeriesDefinition) seriesdefinitions.get( j ) ).getDesignTimeSeries( ); series = getConvertedSeries( series, j ); series.getLabel( ).setVisible( false ); series.setStacked( false ); // Clear any existing series ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .clear( ); // Add the new series ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .add( series ); } } else { return null; } currentChart.getTitle( ) .getLabel( ) .getCaption( ) .setValue( CHART_TITLE ); } if ( currentChart instanceof ChartWithAxes && !( (ChartWithAxes) currentChart ).getOrientation( ) .equals( newOrientation ) ) { ( (ChartWithAxes) currentChart ).setOrientation( newOrientation ); } if ( !currentChart.getDimension( ) .equals( getDimensionFor( sNewDimension ) ) ) { currentChart.setDimension( getDimensionFor( sNewDimension ) ); } return currentChart; } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/4ce1e97aa23d1fe4046bd76743f3c5f90658bab6/GanttChart.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/GanttChart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
14804,
336,
22063,
7984,
12,
14804,
783,
7984,
16,
514,
272,
1908,
30511,
16,
1082,
202,
14097,
394,
14097,
16,
514,
272,
1908,
8611,
262,
202,
95,
202,
202,
7984,
4222,
1488,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
14804,
336,
22063,
7984,
12,
14804,
783,
7984,
16,
514,
272,
1908,
30511,
16,
1082,
202,
14097,
394,
14097,
16,
514,
272,
1908,
8611,
262,
202,
95,
202,
202,
7984,
4222,
1488,
... | |
if(o1 == null && o2 == null) | if((o1 == null) && (o2 == null)) | public int ocompare(Object o1, Object o2) { // Nulls at the end of the list if(o1 == null && o2 == null) return 0; // null == null if(o1 != null && o2 == null) return nullAtStart? -1 : 1; // anything > null if(o2 != null && o1 == null) return nullAtStart ? 1 : -1; long i1, i2; if(o1 instanceof IntNumberedItem) i1 = ((IntNumberedItem)o1).getNumber(); else if(o1 instanceof Integer) i1 = ((Integer)o1).intValue(); else throw new ClassCastException(o1.toString()); if(o2 instanceof IntNumberedItem) i2 = ((IntNumberedItem)o2).getNumber(); else if(o2 instanceof Integer) i2 = ((Integer)o2).intValue(); else throw new ClassCastException(o2.toString()); if(i1 == i2) return 0; if(i1 > i2) return 1; else return -1; } | 46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/SimpleIntNumberedItemComparator.java/clean/src/freenet/support/SimpleIntNumberedItemComparator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
320,
9877,
12,
921,
320,
21,
16,
1033,
320,
22,
13,
288,
3639,
368,
4112,
87,
622,
326,
679,
434,
326,
666,
3639,
309,
12443,
83,
21,
422,
446,
13,
597,
261,
83,
22,
422,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
320,
9877,
12,
921,
320,
21,
16,
1033,
320,
22,
13,
288,
3639,
368,
4112,
87,
622,
326,
679,
434,
326,
666,
3639,
309,
12443,
83,
21,
422,
446,
13,
597,
261,
83,
22,
422,... |
return createConst(getValue()); | return factory.createDConst(getValue()); | protected DoubleWordItem cloneConstant() { return createConst(getValue()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e304bedac9ab86f88bdb27ffd782a9777505c449/DoubleItem.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/DoubleItem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
3698,
3944,
1180,
3236,
6902,
1435,
288,
202,
202,
2463,
752,
9661,
12,
24805,
10663,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
3698,
3944,
1180,
3236,
6902,
1435,
288,
202,
202,
2463,
752,
9661,
12,
24805,
10663,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (null == ((IImageContent) image.getContent()).getData()) | if (null == imageContent.getData()) | protected void drawImage( IImageArea image ) { Image img = null; cb.saveState(); ContainerPosition curPos; if ( !containerStack.isEmpty() ) curPos = (ContainerPosition)containerStack.peek(); else curPos = new ContainerPosition(0, 0); int imageX = curPos.x + image.getX(); int imageY = curPos.y + image.getY(); try { //lookup the source type of the image area switch (((IImageContent) image.getContent()).getImageSource()) { case IImageContent.IMAGE_FILE: case IImageContent.IMAGE_URI: if (null == ((IImageContent) image.getContent()).getURI()) return; img = Image.getInstance(((IImageContent) image.getContent()).getURI()); break; case IImageContent.IMAGE_NAME: case IImageContent.IMAGE_EXPRESSION: if (null == ((IImageContent) image.getContent()).getData()) return; img = Image.getInstance(((IImageContent) image.getContent()) .getData()); } //img.setDpi(5*img.getDpiX(),5*img.getDpiY()); // add the image to the given contentByte cb.addImage(img, pdfMeasure(image.getWidth()), 0f, 0f, pdfMeasure(image.getHeight()), layoutAreaX2PDF(imageX), layoutAreaY2PDF(imageY, image.getHeight())); } catch (BadElementException bee) { logger.log( Level.WARNING, bee.getMessage( ), bee ); } catch (IOException ioe) { logger.log( Level.WARNING, ioe.getMessage( ), ioe ); } catch (DocumentException de) { logger.log( Level.WARNING, de.getMessage( ), de ); } catch (Throwable t) { logger.log( Level.WARNING, t.getMessage( ), t ); } cb.restoreState(); //Check if itself is the destination of a bookmark. //if so, make a bookmark; if not, do nothing makeBookmark(image, curPos); //handle hyper-link action handleHyperlinkAction(image, curPos); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/a24d9278aeb5c2dd20e590ec3eb185276d8cc254/PDFEmitter.java/buggy/engine/org.eclipse.birt.report.engine.emitter.pdf/src/org/eclipse/birt/report/engine/emitter/pdf/PDFEmitter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1117,
918,
25783,
12,
467,
2040,
5484,
1316,
262,
202,
202,
95,
9506,
202,
2040,
3774,
273,
446,
31,
1082,
202,
7358,
18,
5688,
1119,
5621,
1082,
202,
2170,
2555,
662,
1616,
31,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1117,
918,
25783,
12,
467,
2040,
5484,
1316,
262,
202,
202,
95,
9506,
202,
2040,
3774,
273,
446,
31,
1082,
202,
7358,
18,
5688,
1119,
5621,
1082,
202,
2170,
2555,
662,
1616,
31,
1... |
if ( project.getPrerequisites() != null && project.getPrerequisites().getMaven() != null ) { DefaultArtifactVersion requiredVersion = new DefaultArtifactVersion( project.getPrerequisites().getMaven() ); | if ( pluginProject.getPrerequisites() != null && pluginProject.getPrerequisites().getMaven() != null ) { DefaultArtifactVersion requiredVersion = new DefaultArtifactVersion( pluginProject.getPrerequisites().getMaven() ); | private String resolveMetaVersion( String groupId, String artifactId, List remoteRepositories, ArtifactRepository localRepository, String metaVersionId ) throws PluginVersionResolutionException { Artifact artifact = artifactFactory.createProjectArtifact( groupId, artifactId, metaVersionId ); String version = null; try { ResolutionGroup resolutionGroup = artifactMetadataSource.retrieve( artifact, localRepository, remoteRepositories ); // switching this out with the actual resolved artifact instance, since the MMSource re-creates the pom // artifact. artifact = resolutionGroup.getPomArtifact(); // make sure this artifact was actually resolved to a file in the repo... if ( artifact.getFile() != null ) { MavenProject project = mavenProjectBuilder.buildFromRepository( artifact, remoteRepositories, localRepository, false ); boolean pluginValid = true; // if we don't have the required Maven version, then ignore an update if ( project.getPrerequisites() != null && project.getPrerequisites().getMaven() != null ) { DefaultArtifactVersion requiredVersion = new DefaultArtifactVersion( project.getPrerequisites().getMaven() ); if ( runtimeInformation.getApplicationVersion().compareTo( requiredVersion ) < 0 ) { getLogger().info( "Ignoring available plugin update: " + artifact.getVersion() + " as it requires Maven version " + requiredVersion ); pluginValid = false; } } String artifactVersion = artifact.getVersion(); if ( pluginValid && !metaVersionId.equals( artifactVersion ) ) { version = artifactVersion; } } } catch ( ArtifactMetadataRetrievalException e ) { getLogger().debug( "Failed to resolve " + metaVersionId + " version", e ); } catch ( ProjectBuildingException e ) { throw new PluginVersionResolutionException( groupId, artifactId, "Unable to build resolve plugin project information", e ); } catch ( IOException e ) { throw new PluginVersionResolutionException( groupId, artifactId, "Unable to determine Maven version for comparison", e ); } return version; } | 1315 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1315/f685d8605d2680e70b1ff2895947d2d11787e3c9/DefaultPluginVersionManager.java/clean/maven-core/src/main/java/org/apache/maven/plugin/version/DefaultPluginVersionManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
2245,
2781,
1444,
12,
514,
6612,
16,
514,
25496,
16,
987,
2632,
18429,
16,
4766,
4202,
14022,
3305,
1191,
3305,
16,
514,
2191,
28039,
262,
3639,
1216,
6258,
1444,
11098,
503,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
2245,
2781,
1444,
12,
514,
6612,
16,
514,
25496,
16,
987,
2632,
18429,
16,
4766,
4202,
14022,
3305,
1191,
3305,
16,
514,
2191,
28039,
262,
3639,
1216,
6258,
1444,
11098,
503,
5... |
jobConf_.set("stream.reduce.streamprocessor", redCmd_); | jobConf_.set("stream.reduce.streamprocessor", URLEncoder.encode(redCmd_, "UTF-8")); | protected void setJobConf() throws IOException { msg("hadoopAliasConf_ = " + hadoopAliasConf_); config_ = new Configuration(); if (!cluster_.equals("default")) { config_.addFinalResource(new Path(getHadoopAliasConfFile())); } else { // use only defaults: hadoop-default.xml and hadoop-site.xml } Iterator it = configPath_.iterator(); while (it.hasNext()) { String pathName = (String) it.next(); config_.addFinalResource(new Path(pathName)); } testMerge_ = (-1 != userJobConfProps_.toString().indexOf("stream.testmerge")); // general MapRed job properties jobConf_ = new JobConf(config_); setUserJobConfProps(true); // The correct FS must be set before this is called! // (to resolve local vs. dfs drive letter differences) // (mapred.working.dir will be lazily initialized ONCE and depends on FS) for (int i = 0; i < inputSpecs_.size(); i++) { addInputSpec((String) inputSpecs_.get(i), i); } jobConf_.setBoolean("stream.inputtagged", inputTagged_); jobConf_.set("stream.numinputspecs", "" + inputSpecs_.size()); Class fmt; if (testMerge_ && false == hasSimpleInputSpecs_) { // this ignores -inputreader fmt = MergerInputFormat.class; } else { // need to keep this case to support custom -inputreader // and their parameters ,n=v,n=v fmt = StreamInputFormat.class; } jobConf_.setInputFormat(fmt); // for SequenceFile, input classes may be overriden in getRecordReader jobConf_.setInputKeyClass(Text.class); jobConf_.setInputValueClass(Text.class); jobConf_.setOutputKeyClass(Text.class); jobConf_.setOutputValueClass(Text.class); jobConf_.set("stream.addenvironment", addTaskEnvironment_); String defaultPackage = this.getClass().getPackage().getName(); Class c = StreamUtil.goodClassOrNull(mapCmd_, defaultPackage); if (c != null) { jobConf_.setMapperClass(c); } else { jobConf_.setMapperClass(PipeMapper.class); jobConf_.set("stream.map.streamprocessor", mapCmd_); } if (comCmd_ != null) { c = StreamUtil.goodClassOrNull(comCmd_, defaultPackage); if (c != null) { jobConf_.setCombinerClass(c); } else { jobConf_.setCombinerClass(PipeCombiner.class); jobConf_.set("stream.combine.streamprocessor", comCmd_); } } reducerNone_ = false; if (redCmd_ != null) { reducerNone_ = redCmd_.equals(REDUCE_NONE); c = StreamUtil.goodClassOrNull(redCmd_, defaultPackage); if (c != null) { jobConf_.setReducerClass(c); } else { jobConf_.setReducerClass(PipeReducer.class); jobConf_.set("stream.reduce.streamprocessor", redCmd_); } } if (inReaderSpec_ != null) { String[] args = inReaderSpec_.split(","); String readerClass = args[0]; // this argument can only be a Java class c = StreamUtil.goodClassOrNull(readerClass, defaultPackage); if (c != null) { jobConf_.set("stream.recordreader.class", c.getName()); } else { fail("-inputreader: class not found: " + readerClass); } for (int i = 1; i < args.length; i++) { String[] nv = args[i].split("=", 2); String k = "stream.recordreader." + nv[0]; String v = (nv.length > 1) ? nv[1] : ""; jobConf_.set(k, v); } } setUserJobConfProps(false); // output setup is done late so we can customize for reducerNone_ //jobConf_.setOutputDir(new File(output_)); setOutputSpec(); if (testMerge_) { fmt = MuxOutputFormat.class; } else { fmt = StreamOutputFormat.class; } jobConf_.setOutputFormat(fmt); // last, allow user to override anything // (although typically used with properties we didn't touch) jar_ = packageJobJar(); if (jar_ != null) { jobConf_.setJar(jar_); } if ((cacheArchives != null) || (cacheFiles != null)){ getURIs(cacheArchives, cacheFiles); boolean b = DistributedCache.checkURIs(fileURIs, archiveURIs); if (!b) fail(LINK_URI); DistributedCache.createSymlink(jobConf_); } // set the jobconf for the caching parameters if (cacheArchives != null) DistributedCache.setCacheArchives(archiveURIs, jobConf_); if (cacheFiles != null) DistributedCache.setCacheFiles(fileURIs, jobConf_); if(verbose_) { listJobConfProperties(); } msg("submitting to jobconf: " + getJobTrackerHostPort()); } | 53958 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53958/96036392380ce3857a126419ebc8d065e656d033/StreamJob.java/clean/src/contrib/streaming/src/java/org/apache/hadoop/streaming/StreamJob.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
444,
2278,
3976,
1435,
1216,
1860,
288,
565,
1234,
2932,
76,
12460,
2936,
3976,
67,
273,
315,
397,
22840,
2936,
3976,
67,
1769,
565,
642,
67,
273,
394,
4659,
5621,
565,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
444,
2278,
3976,
1435,
1216,
1860,
288,
565,
1234,
2932,
76,
12460,
2936,
3976,
67,
273,
315,
397,
22840,
2936,
3976,
67,
1769,
565,
642,
67,
273,
394,
4659,
5621,
565,
309,
... |
s = s.trim(); if (s.length() == 0) return; if (s.endsWith("new Action")) s = s.substring(0, s.length() - 10); | s = s.trim(); if (s.length() == 0) return; if (s.endsWith("new Action")) s = s.substring(0, s.length() - 10); | public void parseStimulus(MStimulus sti, String s) { // strip any trailing semi-colons s = s.trim(); if (s.length() == 0) return; if (s.charAt(s.length()-1) == ';') s = s.substring(0, s.length() - 2); //cut trailing string "new Action" s = s.trim(); if (s.length() == 0) return; if (s.endsWith("new Action")) s = s.substring(0, s.length() - 10); String name = ""; String action = ""; String actionfirst = ""; if (s.indexOf(":", 0) > -1) { name = s.substring(0, s.indexOf(":")).trim(); actionfirst = s.substring(s.indexOf(":") + 1).trim(); if (actionfirst.indexOf(":", 0) > 1) { action = actionfirst.substring(0, actionfirst.indexOf(":")).trim(); } else action = actionfirst; } else name = s; Object act = ModelFacade.getDispatchAction(sti); ModelFacade.setName(act, action); ModelFacade.setName(sti, name); } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/ParserDisplay.java/clean/src_new/org/argouml/uml/generator/ParserDisplay.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1109,
510,
381,
17284,
12,
49,
510,
381,
17284,
384,
77,
16,
514,
272,
13,
288,
565,
368,
2569,
1281,
7341,
23161,
17,
1293,
7008,
565,
272,
273,
272,
18,
5290,
5621,
565,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1109,
510,
381,
17284,
12,
49,
510,
381,
17284,
384,
77,
16,
514,
272,
13,
288,
565,
368,
2569,
1281,
7341,
23161,
17,
1293,
7008,
565,
272,
273,
272,
18,
5290,
5621,
565,
... |
public String curly_chunk() throws RecognitionException { String text; Token any=null; String c = null; text = null; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:834:17: ( ( options {greedy=false; } : '{' c= curly_chunk '}' | any= . )* ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:834:17: ( options {greedy=false; } : '{' c= curly_chunk '}' | any= . )* { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:834:17: ( options {greedy=false; } : '{' c= curly_chunk '}' | any= . )* loop55: do { int alt55=3; switch ( input.LA(1) ) { case 25: alt55=3; break; case 24: alt55=1; break; case EOL: case ID: case INT: case BOOL: case STRING: case FLOAT: case MISC: case WS: case SH_STYLE_SINGLE_LINE_COMMENT: case C_STYLE_SINGLE_LINE_COMMENT: case MULTI_LINE_COMMENT: case 15: case 16: case 17: case 18: case 19: case 20: case 21: case 22: case 23: case 26: case 27: case 28: case 29: case 30: case 31: case 32: case 33: case 34: case 35: case 36: case 37: case 38: case 39: case 40: case 41: case 42: case 43: case 44: case 45: case 46: case 47: case 48: case 49: case 50: case 51: case 52: case 53: case 54: case 55: case 56: case 57: alt55=2; break; } switch (alt55) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:835:25: '{' c= curly_chunk '}' { match(input,24,FOLLOW_24_in_curly_chunk2301); following.push(FOLLOW_curly_chunk_in_curly_chunk2305); c=curly_chunk(); following.pop(); match(input,25,FOLLOW_25_in_curly_chunk2307); //System.err.println( "chunk [" + c + "]" ); if ( c == null ) { c = ""; } if ( text == null ) { text = "{ " + c + " }"; } else { text = text + " { " + c + " }"; } } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:847:19: any= . { any=(Token)input.LT(1); matchAny(input); //System.err.println( "any [" + any.getText() + "]" ); if ( text == null ) { text = any.getText(); } else { text = text + " " + any.getText(); } } break; default : break loop55; } } while (true); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return text; } | 5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/7f81b86a0f548bd02b09afc74b46454cdf158154/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
29270,
67,
6551,
1435,
1216,
9539,
288,
6647,
514,
977,
31,
3639,
3155,
1281,
33,
2011,
31,
3639,
514,
276,
273,
446,
31,
1171,
202,
202,
955,
273,
446,
31,
540,
202,
3639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
29270,
67,
6551,
1435,
1216,
9539,
288,
6647,
514,
977,
31,
3639,
3155,
1281,
33,
2011,
31,
3639,
514,
276,
273,
446,
31,
1171,
202,
202,
955,
273,
446,
31,
540,
202,
3639,
... | ||
int oldWidth = OS.GTK_WIDGET_WIDTH (handle); int oldHeight = OS.GTK_WIDGET_HEIGHT (handle); OS.gtk_widget_set_size_request (handle, -1, -1); GtkRequisition requisition = new GtkRequisition (); OS.gtk_widget_size_request (handle, requisition); OS.gtk_widget_set_size_request (handle, oldWidth, oldHeight); width = Math.max (width + clientX + clientX, requisition.width); | width += clientX + clientX; | public Rectangle computeTrim (int x, int y, int width, int height) { checkWidget(); int clientX = OS.GTK_WIDGET_X (clientHandle); int clientY = OS.GTK_WIDGET_Y (clientHandle); x -= clientX; y -= clientY; int oldWidth = OS.GTK_WIDGET_WIDTH (handle); int oldHeight = OS.GTK_WIDGET_HEIGHT (handle); OS.gtk_widget_set_size_request (handle, -1, -1); GtkRequisition requisition = new GtkRequisition (); OS.gtk_widget_size_request (handle, requisition); OS.gtk_widget_set_size_request (handle, oldWidth, oldHeight); width = Math.max (width + clientX + clientX, requisition.width); height += clientX + clientY; return new Rectangle (x, y, width, height);} | 12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/d2ddfc32951da0946164c31d7145c25600f5b599/Group.java/clean/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Group.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
13264,
3671,
14795,
261,
474,
619,
16,
509,
677,
16,
509,
1835,
16,
509,
2072,
13,
288,
202,
1893,
4609,
5621,
202,
474,
28609,
273,
5932,
18,
16506,
47,
67,
59,
734,
3264,
67,
60,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
13264,
3671,
14795,
261,
474,
619,
16,
509,
677,
16,
509,
1835,
16,
509,
2072,
13,
288,
202,
1893,
4609,
5621,
202,
474,
28609,
273,
5932,
18,
16506,
47,
67,
59,
734,
3264,
67,
60,
2... |
throw new RuntimeException("PRB is aborted"); | throw new AbortedException("PRB is aborted"); | public boolean allReceived() { if (_aborted) { throw new RuntimeException("PRB is aborted"); } return _receivedCount == _packets; } | 51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/b4ecaa4055b5835413830d4125c72de27d68e306/PartiallyReceivedBlock.java/clean/src/freenet/io/xfer/PartiallyReceivedBlock.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
777,
8872,
1435,
288,
202,
202,
430,
261,
67,
18623,
329,
13,
288,
1082,
202,
12849,
394,
3235,
2932,
8025,
38,
353,
18166,
8863,
202,
202,
97,
202,
202,
2463,
389,
1521... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
777,
8872,
1435,
288,
202,
202,
430,
261,
67,
18623,
329,
13,
288,
1082,
202,
12849,
394,
3235,
2932,
8025,
38,
353,
18166,
8863,
202,
202,
97,
202,
202,
2463,
389,
1521... |
editor.editorGUI.replaceText(token.start, token.end, name); | editor.editorGUI.replaceText(token.getStart(), token.getEnd(), name); | public void renameToken(Token t, String name) { List tokens = editor.getTokens(); String attr = t.getAttribute(); for(int index = tokens.size()-1; index>0; index--) { Token token = (Token) tokens.get(index); if(token.type == t.type && token.getAttribute().equals(attr)) { editor.editorGUI.replaceText(token.start, token.end, name); } } } | 51505 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51505/f13d59e2934691783709edc81c3eb7cea20d0849/MenuGrammar.java/clean/src/org/antlr/works/editor/actions/MenuGrammar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
6472,
1345,
12,
1345,
268,
16,
514,
508,
13,
288,
3639,
987,
2430,
273,
4858,
18,
588,
5157,
5621,
3639,
514,
1604,
273,
268,
18,
588,
1499,
5621,
3639,
364,
12,
474,
770,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6472,
1345,
12,
1345,
268,
16,
514,
508,
13,
288,
3639,
987,
2430,
273,
4858,
18,
588,
5157,
5621,
3639,
514,
1604,
273,
268,
18,
588,
1499,
5621,
3639,
364,
12,
474,
770,
... |
log().debug("scheduleInterfacesWithService: svcName = " + svcName); | log().info("scheduleInterfacesWithService: svcName = " + svcName); | private void scheduleInterfacesWithService(String svcName) { log().debug("scheduleInterfacesWithService: svcName = " + svcName); Collection ifsWithServices = getIpInterfaceDao().findHierarchyByServiceType( svcName); for (Iterator it = ifsWithServices.iterator(); it.hasNext();) { OnmsIpInterface iface = (OnmsIpInterface) it.next(); scheduleInterface(iface, svcName, true); } } | 11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/de899312c4d14aaf63fe1b327cc67214c6220916/Collectd.java/buggy/opennms-services/src/main/java/org/opennms/netmgt/collectd/Collectd.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4788,
10273,
1190,
1179,
12,
780,
7538,
461,
13,
288,
3639,
613,
7675,
1376,
2932,
10676,
10273,
1190,
1179,
30,
7538,
461,
273,
315,
397,
7538,
461,
1769,
3639,
2200,
309,
87,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4788,
10273,
1190,
1179,
12,
780,
7538,
461,
13,
288,
3639,
613,
7675,
1376,
2932,
10676,
10273,
1190,
1179,
30,
7538,
461,
273,
315,
397,
7538,
461,
1769,
3639,
2200,
309,
87,... |
{ view.getHistogramPanel().addMouseListener(this); view.getHistogramPanel().addMouseMotionListener(this); view.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent we) { view.dispose(); } }); } | { view.getHistogramPanel().addMouseListener(this); view.getHistogramPanel().addMouseMotionListener(this); view.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent we) { view.dispose(); } }); } | void attachListeners() { view.getHistogramPanel().addMouseListener(this); view.getHistogramPanel().addMouseMotionListener(this); view.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent we) { view.dispose(); } }); } | 55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/HistogramDialogManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/pane/HistogramDialogManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
3306,
5583,
1435,
202,
95,
202,
202,
1945,
18,
588,
12874,
5537,
7675,
1289,
9186,
2223,
12,
2211,
1769,
202,
202,
1945,
18,
588,
12874,
5537,
7675,
1289,
9186,
29360,
2223,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
3306,
5583,
1435,
202,
95,
202,
202,
1945,
18,
588,
12874,
5537,
7675,
1289,
9186,
2223,
12,
2211,
1769,
202,
202,
1945,
18,
588,
12874,
5537,
7675,
1289,
9186,
29360,
2223,
12... |
public synchronized void run(ImageProcessor ip) { success = false; // prompt for the filename to save to SaveDialog sd = new SaveDialog("Save...", imp.getTitle(), ""); String filename = sd.getFileName(); if (filename == null) return; String fileDir = sd.getDirectory(); filename = fileDir + filename; try { long t1 = System.currentTimeMillis(); ImageWriter writer = new ImageWriter(); FormatWriter w2 = writer.getWriter(filename); if (imp == null) return; ImageStack stack = imp.getStack(); int size = imp.getStackSize(); long t3 = System.currentTimeMillis(); if (w2.canDoStacks(filename)) { for (int i=0; i<size; i++) { ImageProcessor proc = stack.getProcessor(i+1); Image img = proc.createImage(); w2.setColorModel(proc.getColorModel()); IJ.showStatus("Writing plane " + (i+1) + " / " + size); IJ.showProgress((double) i / size); w2.save(filename, img, i == (size - 1)); } } else { ImageProcessor proc = imp.getProcessor(); Image img = imp.getImage(); w2.setColorModel(proc.getColorModel()); IJ.showStatus("Writing plane 1 / 1"); w2.save(filename, img, true); } long t4 = System.currentTimeMillis(); if (size == 1) { IJ.showStatus((t4 - t1) + " ms"); } else { long average = (t4 - t3) / size; IJ.showStatus((t4 - t1) + " ms (" + average + " ms per plane)"); } IJ.showProgress(1); success = true; } catch (Exception exc) { exc.printStackTrace(); IJ.showStatus(""); String msg = exc.getMessage(); IJ.showMessage("LOCI Bio-Formats", "Sorry, there was a problem " + "writing the data" + (msg == null ? "." : (": " + msg))); } } | 11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/f8fea5aec2de454fd84e68759019ac47d99be52a/LociExporter.java/buggy/loci/formats/LociExporter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
918,
1086,
12,
2040,
5164,
2359,
13,
288,
565,
2216,
273,
629,
31,
4202,
368,
6866,
364,
326,
1544,
358,
1923,
358,
7734,
7074,
6353,
8349,
273,
394,
7074,
6353,
2932,
4755,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
918,
1086,
12,
2040,
5164,
2359,
13,
288,
565,
2216,
273,
629,
31,
4202,
368,
6866,
364,
326,
1544,
358,
1923,
358,
7734,
7074,
6353,
8349,
273,
394,
7074,
6353,
2932,
4755,
... | ||
assertEquals( enumE.getName(), "E"); assertQualifiedName( enumE.getFullyQualifiedName(), new String [] { "A", "E" } ); | assertEquals( enumE.getName(), "E"); assertQualifiedName( enumE.getFullyQualifiedName(), new String [] { "A", "E" } ); | public void testEnumerations() throws Exception { Iterator declarations = parse( "namespace A { enum E { e1, e2, e3 }; E varE;}").getDeclarations(); IASTNamespaceDefinition namespaceA = (IASTNamespaceDefinition)declarations.next(); Iterator namespaceMembers = getDeclarations( namespaceA ); IASTEnumerationSpecifier enumE = (IASTEnumerationSpecifier)((IASTAbstractTypeSpecifierDeclaration)namespaceMembers.next()).getTypeSpecifier(); assertEquals( enumE.getName(), "E"); assertQualifiedName( enumE.getFullyQualifiedName(), new String [] { "A", "E" } ); Iterator enumerators = enumE.getEnumerators(); IASTEnumerator enumerator_e1 = (IASTEnumerator)enumerators.next(); IASTEnumerator enumerator_e2 = (IASTEnumerator)enumerators.next(); IASTEnumerator enumerator_e3 = (IASTEnumerator)enumerators.next(); assertFalse( enumerators.hasNext() ); assertEquals( enumerator_e1.getName(), "e1"); assertEquals( enumerator_e2.getName(), "e2"); assertEquals( enumerator_e3.getName(), "e3"); IASTVariable varE = (IASTVariable)namespaceMembers.next(); assertEquals( ((IASTSimpleTypeSpecifier)varE.getAbstractDeclaration().getTypeSpecifier()).getTypeSpecifier(), enumE ); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/3a6ffef8f855652606f74a14d4b15478c81e5db4/CompleteParseASTTest.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/CompleteParseASTTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3572,
264,
1012,
1435,
1216,
1185,
202,
95,
202,
202,
3198,
12312,
273,
1109,
12,
315,
4937,
432,
288,
2792,
512,
288,
425,
21,
16,
425,
22,
16,
425,
23,
289,
31,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3572,
264,
1012,
1435,
1216,
1185,
202,
95,
202,
202,
3198,
12312,
273,
1109,
12,
315,
4937,
432,
288,
2792,
512,
288,
425,
21,
16,
425,
22,
16,
425,
23,
289,
31,... |
FissuresNamingServiceImpl fissuresNamingService = new FissuresNamingServiceImpl(orb); | FissuresNamingService fissuresNamingService = new FissuresNamingService(orb); | public Channel[] retrieve_grouping(org.omg.CORBA_2_3.ORB orb, ChannelId channelId) { Channel[] group; try { FissuresNamingServiceImpl fissuresNamingService = new FissuresNamingServiceImpl(orb); NetworkDC[] networkReferences = fissuresNamingService.getNetworkDCObjects(); // ChannelId channelId = channel.get_id(); for(int counter = 0; counter < networkReferences.length; counter++) { try { NetworkAccess networkAccess = networkReferences[counter].a_finder().retrieve_by_id(channelId.network_id); Channel channel = networkAccess.retrieve_channel(channelId); Channel[] channels = networkAccess.retrieve_for_station(channel.my_site.my_station.get_id()); ChannelGrouperImpl channelGrouperImpl = new ChannelGrouperImpl(); group = channelGrouperImpl.retrieve_grouping(channels, channel); if(group.length == 3) return group; } catch(Throwable e) { e.printStackTrace(); continue; } } } catch(Exception e) { e.printStackTrace(); return new Channel[0]; } return null; } | 52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/3ef2dc10b1be92168c8f9bc82960195a3606ecbe/ChannelProxy.java/buggy/src/edu/sc/seis/fissuresUtil/chooser/ChannelProxy.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
225,
5307,
8526,
4614,
67,
25592,
12,
3341,
18,
362,
75,
18,
9428,
12536,
67,
22,
67,
23,
18,
916,
38,
16823,
16,
5307,
548,
27709,
13,
288,
565,
5307,
8526,
1041,
31,
565,
775,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
225,
5307,
8526,
4614,
67,
25592,
12,
3341,
18,
362,
75,
18,
9428,
12536,
67,
22,
67,
23,
18,
916,
38,
16823,
16,
5307,
548,
27709,
13,
288,
565,
5307,
8526,
1041,
31,
565,
775,... |
MylarPlugin.fail(e, "couldn't update marker", false); | ErrorLogger.fail(e, "couldn't update marker", false); | public void landmarkAdded(final IMylarElement node) { if (node == null || node.getContentType() == null) return; if (node.getContentType().equals(JavaStructureBridge.CONTENT_TYPE)) { final IJavaElement element = JavaCore.create(node.getHandleIdentifier()); if (!element.exists()) return; if (element instanceof IMember) { try { final ISourceRange range = ((IMember)element).getNameRange(); final IResource resource = element.getUnderlyingResource(); if (resource == null) return; IWorkspaceRunnable runnable = new IWorkspaceRunnable() { public void run(IProgressMonitor monitor) throws CoreException { IMarker marker = resource.createMarker("org.eclipse.mylar.ui.landmark");//MylarUiPlugin.MARKER_LANDMARK); if (marker != null && range != null) { marker.setAttribute(IMarker.CHAR_START, range.getOffset()); marker.setAttribute(IMarker.CHAR_END, range.getOffset() + range.getLength()); marker.setAttribute(IMarker.MESSAGE, "Mylar Landmark"); marker.setAttribute(IMarker.SEVERITY, IMarker.SEVERITY_INFO); markerMap.put(node, marker.getId()); } } }; if (resource != null) resource.getWorkspace().run(runnable, null); } catch (JavaModelException e) { MylarPlugin.fail(e, "couldn't update marker", false); }catch (CoreException e) { MylarPlugin.fail(e, "couldn't update marker", false); } } } } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/6e4c36ce82823e91011a538b1e18917054cfdf11/LandmarkMarkerManager.java/buggy/org.eclipse.mylyn.java.ui/src/org/eclipse/mylyn/java/ui/LandmarkMarkerManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
19193,
3355,
8602,
12,
6385,
6246,
93,
7901,
1046,
756,
13,
288,
3639,
309,
261,
2159,
422,
446,
747,
756,
18,
588,
8046,
1435,
422,
446,
13,
327,
31,
3639,
309,
261,
2159,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19193,
3355,
8602,
12,
6385,
6246,
93,
7901,
1046,
756,
13,
288,
3639,
309,
261,
2159,
422,
446,
747,
756,
18,
588,
8046,
1435,
422,
446,
13,
327,
31,
3639,
309,
261,
2159,
... |
action.setText(Messages.getString("ShowAllResizableCompartmentsAction.HideAllText")); action.setToolTipText(Messages.getString("ShowAllResizableCompartmentsAction.HideAllTooltip")); action.setImageDescriptor( Images.DESC_ACTION_HIDE_ALL_RESIZABLE_COMPARTMENTS); action.setHoverImageDescriptor( Images.DESC_ACTION_HIDE_ALL_RESIZABLE_COMPARTMENTS); | action.setText(DiagramActionsResourceManager.getI18NString("ShowAllResizableCompartmentsAction.HideAllText")); action.setToolTipText(DiagramActionsResourceManager.getI18NString("ShowAllResizableCompartmentsAction.HideAllTooltip")); ImageDescriptor imageDesc = DiagramActionsResourceManager .getInstance() .getImageDescriptor( DiagramActionsResourceManager.IMAGE_HIDE_ALL_RESIZABLE_COMPARTMENTS); action.setImageDescriptor(imageDesc); action.setHoverImageDescriptor(imageDesc); | public static AllCompartmentsAction createHideAllCompartmentsAction(IWorkbenchPage workbenchPage) { AllCompartmentsAction action = new AllCompartmentsAction(workbenchPage, false); action.setId(ActionIds.ACTION_COMPARTMENT_NONE); action.setText(Messages.getString("ShowAllResizableCompartmentsAction.HideAllText")); //$NON-NLS-1$ action.setToolTipText(Messages.getString("ShowAllResizableCompartmentsAction.HideAllTooltip")); //$NON-NLS-1$ action.setImageDescriptor( Images.DESC_ACTION_HIDE_ALL_RESIZABLE_COMPARTMENTS); action.setHoverImageDescriptor( Images.DESC_ACTION_HIDE_ALL_RESIZABLE_COMPARTMENTS); return action; } | 1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/8cde65fc058a9faaf847d04bf9b28594ea600f8f/AllCompartmentsAction.java/buggy/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.diagram.ui.actions/src/org/eclipse/gmf/runtime/diagram/ui/actions/internal/AllCompartmentsAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
4826,
799,
2680,
1346,
1803,
752,
15690,
1595,
799,
2680,
1346,
1803,
12,
45,
2421,
22144,
1964,
1440,
22144,
1964,
13,
288,
202,
202,
1595,
799,
2680,
1346,
1803,
1301,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
4826,
799,
2680,
1346,
1803,
752,
15690,
1595,
799,
2680,
1346,
1803,
12,
45,
2421,
22144,
1964,
1440,
22144,
1964,
13,
288,
202,
202,
1595,
799,
2680,
1346,
1803,
1301,
27... |
{ tempReal = prevHigh - prevLow; tempReal2 = Math.abs(prevHigh - prevClose); if (tempReal2 > tempReal) tempReal = tempReal2; tempReal2 = Math.abs(prevLow - prevClose); if (tempReal2 > tempReal) tempReal = tempReal2; } ; if ((((-0.00000001) < tempReal) && (tempReal < 0.00000001))) outReal[outIdx++] = (double) 0.0; else outReal[outIdx++] = diffM / tempReal; } else outReal[outIdx++] = (double) 0.0; prevClose = inClose[today]; } | public TA_RetCode MINUS_DI(int startIdx, int endIdx, double inHigh[], double inLow[], double inClose[], int optInTimePeriod, MInteger outBegIdx, MInteger outNbElement, double outReal[]) { int today, lookbackTotal, outIdx; double prevHigh, prevLow, prevClose; double prevMinusDM, prevTR; double tempReal, tempReal2, diffP, diffM; int i; if (startIdx < 0) return TA_RetCode.TA_OUT_OF_RANGE_START_INDEX; if ((endIdx < 0) || (endIdx < startIdx)) return TA_RetCode.TA_OUT_OF_RANGE_END_INDEX; if ((int) optInTimePeriod == (Integer.MIN_VALUE )) optInTimePeriod = 14; else if (((int) optInTimePeriod < 1) || ((int) optInTimePeriod > 100000)) return TA_RetCode.TA_BAD_PARAM; if (optInTimePeriod > 1) lookbackTotal = optInTimePeriod + (this.unstablePeriod[TA_FuncUnstId.TA_FUNC_UNST_MINUS_DI .ordinal()]); else lookbackTotal = 1; if (startIdx < lookbackTotal) startIdx = lookbackTotal; if (startIdx > endIdx) { outBegIdx.value = 0; outNbElement.value = 0; return TA_RetCode.TA_SUCCESS; } outIdx = 0; if (optInTimePeriod <= 1) { outBegIdx.value = startIdx; today = startIdx - 1; prevHigh = inHigh[today]; prevLow = inLow[today]; prevClose = inClose[today]; while (today < endIdx) { today++; tempReal = inHigh[today]; diffP = tempReal - prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow - tempReal; prevLow = tempReal; if ((diffM > 0) && (diffP < diffM)) { { tempReal = prevHigh - prevLow; tempReal2 = Math.abs(prevHigh - prevClose); if (tempReal2 > tempReal) tempReal = tempReal2; tempReal2 = Math.abs(prevLow - prevClose); if (tempReal2 > tempReal) tempReal = tempReal2; } ; if ((((-0.00000001) < tempReal) && (tempReal < 0.00000001))) outReal[outIdx++] = (double) 0.0; else outReal[outIdx++] = diffM / tempReal; } else outReal[outIdx++] = (double) 0.0; prevClose = inClose[today]; } outNbElement.value = outIdx; return TA_RetCode.TA_SUCCESS; } outBegIdx.value = today = startIdx; prevMinusDM = 0.0; prevTR = 0.0; today = startIdx - lookbackTotal; prevHigh = inHigh[today]; prevLow = inLow[today]; prevClose = inClose[today]; i = optInTimePeriod - 1; while (i-- > 0) { today++; tempReal = inHigh[today]; diffP = tempReal - prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow - tempReal; prevLow = tempReal; if ((diffM > 0) && (diffP < diffM)) { prevMinusDM += diffM; } { tempReal = prevHigh - prevLow; tempReal2 = Math.abs(prevHigh - prevClose); if (tempReal2 > tempReal) tempReal = tempReal2; tempReal2 = Math.abs(prevLow - prevClose); if (tempReal2 > tempReal) tempReal = tempReal2; } ; prevTR += tempReal; prevClose = inClose[today]; } i = (this.unstablePeriod[TA_FuncUnstId.TA_FUNC_UNST_MINUS_DI.ordinal()]) + 1; while (i-- != 0) { today++; tempReal = inHigh[today]; diffP = tempReal - prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow - tempReal; prevLow = tempReal; if ((diffM > 0) && (diffP < diffM)) { prevMinusDM = prevMinusDM - (prevMinusDM / optInTimePeriod) + diffM; } else { prevMinusDM = prevMinusDM - (prevMinusDM / optInTimePeriod); } { tempReal = prevHigh - prevLow; tempReal2 = Math.abs(prevHigh - prevClose); if (tempReal2 > tempReal) tempReal = tempReal2; tempReal2 = Math.abs(prevLow - prevClose); if (tempReal2 > tempReal) tempReal = tempReal2; } ; prevTR = prevTR - (prevTR / optInTimePeriod) + tempReal; prevClose = inClose[today]; } if (!(((-0.00000001) < prevTR) && (prevTR < 0.00000001))) outReal[0] = (100.0 * (prevMinusDM / prevTR)); else outReal[0] = 0.0; outIdx = 1; while (today < endIdx) { today++; tempReal = inHigh[today]; diffP = tempReal - prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow - tempReal; prevLow = tempReal; if ((diffM > 0) && (diffP < diffM)) { prevMinusDM = prevMinusDM - (prevMinusDM / optInTimePeriod) + diffM; } else { prevMinusDM = prevMinusDM - (prevMinusDM / optInTimePeriod); } { tempReal = prevHigh - prevLow; tempReal2 = Math.abs(prevHigh - prevClose); if (tempReal2 > tempReal) tempReal = tempReal2; tempReal2 = Math.abs(prevLow - prevClose); if (tempReal2 > tempReal) tempReal = tempReal2; } ; prevTR = prevTR - (prevTR / optInTimePeriod) + tempReal; prevClose = inClose[today]; if (!(((-0.00000001) < prevTR) && (prevTR < 0.00000001))) outReal[outIdx++] = (100.0 * (prevMinusDM / prevTR)); else outReal[outIdx++] = 0.0; } outNbElement.value = outIdx; return TA_RetCode.TA_SUCCESS; } | 51465 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51465/cf65b93eedaca922be2993fe424b023f73c7562d/Core.java/buggy/trunk/ta-lib/java/src/TA/Lib/Core.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
399,
37,
67,
7055,
1085,
6989,
3378,
67,
2565,
12,
474,
27108,
16,
509,
679,
4223,
16,
1645,
316,
8573,
63,
6487,
1082,
202,
9056,
316,
10520,
63,
6487,
1645,
316,
4605,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
399,
37,
67,
7055,
1085,
6989,
3378,
67,
2565,
12,
474,
27108,
16,
509,
679,
4223,
16,
1645,
316,
8573,
63,
6487,
1082,
202,
9056,
316,
10520,
63,
6487,
1645,
316,
4605,
63,
... | |
return new CalendarObject(calItem); | return new CalendarObject(ctxt, calItem); | public DavResource createItem(DavContext ctxt, String user, String name) throws DavException, IOException { HttpServletRequest req = ctxt.getRequest(); if (req.getContentLength() <= 0) throw new DavException("empty request", HttpServletResponse.SC_BAD_REQUEST, null); if (!req.getContentType().equalsIgnoreCase(Mime.CT_TEXT_CALENDAR)) throw new DavException("empty request", HttpServletResponse.SC_BAD_REQUEST, null); /* * chandler doesn't set User-Agent header, doesn't understand * If-None-Match or If-Match headers. assume the worst, and don't expect * If-None-Match or If-Match headers unless the client is verified * to work correctly with those headers, like Evolution 2.8. */ String userAgent = req.getHeader(DavProtocol.HEADER_USER_AGENT); boolean beLessRestrictive = (userAgent == null) || !userAgent.startsWith("Evolution"); String etag = req.getHeader(DavProtocol.HEADER_IF_MATCH); String noneMatch = req.getHeader(DavProtocol.HEADER_IF_NONE_MATCH); if (!beLessRestrictive && (etag != null && noneMatch != null || etag == null && noneMatch == null || name == null)) throw new DavException("bad request", HttpServletResponse.SC_BAD_REQUEST, null); boolean isUpdate = (etag != null); if (name.endsWith(CalendarObject.CAL_EXTENSION)) name = name.substring(0, name.length()-CalendarObject.CAL_EXTENSION.length()); Provisioning prov = Provisioning.getInstance(); try { byte[] item = ByteUtil.getContent(req.getInputStream(), req.getContentLength()); ZCalendar.ZVCalendar vcalendar = ZCalendar.ZCalendarBuilder.build(new InputStreamReader(new ByteArrayInputStream(item))); List<Invite> invites = Invite.createFromCalendar(ctxt.getAuthAccount(), findSummary(vcalendar), vcalendar, true); Account account = prov.get(AccountBy.name, user); if (account == null) throw new DavException("no such account "+user, HttpServletResponse.SC_NOT_FOUND, null); String uid = findEventUid(invites); if (!uid.equals(name)) { // because we are keying off the URI, we don't have // much choice except to use the UID of VEVENT for calendar item URI. // Evolution doesn't use UID as the URI, so we'll force it // by issuing redirect to the URI we want it to be at. StringBuilder url = new StringBuilder(); url.append(DavServlet.getDavUrl(user)); url.append(getUri()); url.append(uid); url.append(CalendarObject.CAL_EXTENSION); ctxt.getResponse().sendRedirect(url.toString()); throw new DavException("wrong url", HttpServletResponse.SC_MOVED_PERMANENTLY, null); } Mailbox mbox = MailboxManager.getInstance().getMailboxByAccount(account); CalendarItem calItem = mbox.getCalendarItemByUid(ctxt.getOperationContext(), name); if (calItem == null && isUpdate) throw new DavException("event not found", HttpServletResponse.SC_NOT_FOUND, null); if (!beLessRestrictive && calItem != null && !isUpdate) throw new DavException("event already exists", HttpServletResponse.SC_CONFLICT, null); if (isUpdate) { CalendarObject calObj = new CalendarObject(calItem); ResourceProperty etagProp = calObj.getProperty(DavElements.P_GETETAG); if (!etagProp.getStringValue().equals(etag)) throw new DavException("event not found", HttpServletResponse.SC_BAD_REQUEST, null); } for (Invite i : invites) { if (i.getUid() == null) i.setUid(LdapUtil.generateUUID()); mbox.addInvite(ctxt.getOperationContext(), i, mId, false, null); } calItem = mbox.getCalendarItemByUid(ctxt.getOperationContext(), uid); return new CalendarObject(calItem); } catch (ServiceException e) { throw new DavException("cannot create icalendar item", HttpServletResponse.SC_INTERNAL_SERVER_ERROR, e); } } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/6cf456f33a0bab2d58fe8ac83f6e2fc9e0f6cf8d/CalendarCollection.java/clean/ZimbraServer/src/java/com/zimbra/cs/dav/resource/CalendarCollection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
463,
842,
1420,
29274,
12,
40,
842,
1042,
14286,
16,
514,
729,
16,
514,
508,
13,
1216,
463,
842,
503,
16,
1860,
288,
202,
202,
2940,
18572,
1111,
273,
14286,
18,
588,
691,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
463,
842,
1420,
29274,
12,
40,
842,
1042,
14286,
16,
514,
729,
16,
514,
508,
13,
1216,
463,
842,
503,
16,
1860,
288,
202,
202,
2940,
18572,
1111,
273,
14286,
18,
588,
691,
5... |
result = ERXFileUtilities.bytesFromInputStream(is); finished = true; | int read = -1; byte[] buf = new byte[1024 * 50]; while ((read = is.read(buf)) != -1) { bout.write(buf, 0, read); } | public void run() { try { result = ERXFileUtilities.bytesFromInputStream(is); finished = true; } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } | 50512 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50512/b02f80c55811ef4839961efc50641714b73f8eb5/ERXRuntimeUtilities.java/clean/Common/Frameworks/ERExtensions/Sources/er/extensions/ERXRuntimeUtilities.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
1086,
1435,
288,
10792,
775,
288,
13491,
563,
273,
4232,
60,
812,
11864,
18,
3890,
1265,
4348,
12,
291,
1769,
13491,
6708,
273,
638,
31,
10792,
289,
1044,
261,
14106,
425,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
1086,
1435,
288,
10792,
775,
288,
13491,
563,
273,
4232,
60,
812,
11864,
18,
3890,
1265,
4348,
12,
291,
1769,
13491,
6708,
273,
638,
31,
10792,
289,
1044,
261,
14106,
425,
13,... |
} catch (IOException ex) { imc = renewInterface(server) ; imc.activateChild(Integer.parseInt(meta_id), user) ; return ; } | public void activateChild(String server, String meta_id ) throws IOException { imcode.server.IMCServiceInterface imc = getInterface( server ) ; try { imc.activateChild(Integer.parseInt(meta_id), user) ; return ; } catch (IOException ex) { imc = renewInterface(server) ; imc.activateChild(Integer.parseInt(meta_id), user) ; return ; } } // activateChild | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/cbaf8fbf9eeaf7b9db5163cf0496eea1be5ce141/RmiLayer.java/clean/server/src/imcode/external/diverse/RmiLayer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
10235,
1763,
12,
780,
1438,
16,
514,
2191,
67,
350,
262,
1216,
1860,
288,
540,
709,
710,
18,
3567,
18,
3445,
39,
18348,
709,
71,
273,
336,
1358,
12,
1438,
262,
274,
540,
77... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10235,
1763,
12,
780,
1438,
16,
514,
2191,
67,
350,
262,
1216,
1860,
288,
540,
709,
710,
18,
3567,
18,
3445,
39,
18348,
709,
71,
273,
336,
1358,
12,
1438,
262,
274,
540,
77... | |
public boolean doesLoadFromCache( ) | public boolean doesLoadFromCache( IBaseDataSourceDesign dataSourceDesign, IBaseDataSetDesign dataSetDesign, Collection parameterHints, int cacheOption, int alwaysCacheRowCount ) | public boolean doesLoadFromCache( ) { if ( needsToCache( dataSetDesign, cacheOption, alwaysCacheRowCount ) == false ) return false; return cacheMapManager.doesLoadFromCache( DataSourceAndDataSet.newInstance( this.dataSourceDesign, this.dataSetDesign, this.parameterHints ) ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/1d03884b007ddb1f250d6bd06c55c03a49fc577e/DataSetCacheManager.java/buggy/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/DataSetCacheManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1552,
2563,
19800,
12,
262,
202,
95,
202,
202,
430,
261,
4260,
774,
1649,
12,
14837,
15478,
16,
1247,
1895,
16,
3712,
1649,
26359,
262,
422,
629,
262,
1082,
202,
2463,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1552,
2563,
19800,
12,
262,
202,
95,
202,
202,
430,
261,
4260,
774,
1649,
12,
14837,
15478,
16,
1247,
1895,
16,
3712,
1649,
26359,
262,
422,
629,
262,
1082,
202,
2463,
6... |
try { Thread.sleep(30 * 1000); } catch(InterruptedException ex) {} | private LocalSeismogram[][] getDataViaQueue(EventVectorPair ecp, RequestFilter[][] rf, ProxySeismogramDC dataCenter) throws FissuresException { LocalSeismogram[][] localSeismograms = new LocalSeismogram[rf.length][]; String[] id = new String[rf.length]; // send each request to server for(int i = 0; i < id.length; i++) { int retries = 0; int MAX_RETRY = 5; while(retries < MAX_RETRY) { try { id[i] = dataCenter.queue_seismograms(rf[i]); logger.info("request id: " + id); } catch(org.omg.CORBA.SystemException e) { retries++; logger.debug("after failed queue_seismograms, retries=" + retries); if(retries < MAX_RETRY) { logger.info("Caught CORBA exception, retrying..." + retries, e); try { Thread.sleep(1000 * retries); } catch(InterruptedException ex) {} if(retries % 2 == 0) { // reget from Name service every other // time dataCenter.reset(); } } else { handle(ecp, Stage.DATA_RETRIEVAL, e); return (LocalSeismogram[][])null; } } } } for(int i = 0; i < id.length; i++) { // keep checking until request is done, then retrieve it String status = LocalSeismogramArm.RETRIEVING_DATA; int retries = 0; int MAX_RETRY = 5; while(status.equals(LocalSeismogramArm.RETRIEVING_DATA)) { try { Thread.sleep(30 * 1000); } catch(InterruptedException ex) {} while(retries < MAX_RETRY) { try { status = dataCenter.request_status(id[i]); } catch(org.omg.CORBA.SystemException e) { retries++; logger.debug("after failed request_status, retries=" + retries); if(retries < MAX_RETRY) { logger.info("Caught CORBA exception, retrying..." + retries, e); try { Thread.sleep(1000 * retries); } catch(InterruptedException ex) {} if(retries % 2 == 0) { // reget from Name service every other // time dataCenter.reset(); } } else { handle(ecp, Stage.DATA_RETRIEVAL, e); return (LocalSeismogram[][])null; } } } } if(status.equals(LocalSeismogramArm.DATA_RETRIEVED)) { retries = 0; while(retries < MAX_RETRY) { try { localSeismograms[i] = dataCenter.retrieve_queue(id[i]); } catch(org.omg.CORBA.SystemException e) { retries++; logger.debug("after failed retrieve_queue, retries=" + retries); if(retries < MAX_RETRY) { logger.info("Caught CORBA exception, retrying..." + retries, e); try { Thread.sleep(1000 * retries); } catch(InterruptedException ex) {} if(retries % 2 == 0) { // reget from Name service every other // time dataCenter.reset(); } } else { handle(ecp, Stage.DATA_RETRIEVAL, e); return (LocalSeismogram[][])null; } } } } else { localSeismograms[i] = new LocalSeismogram[0]; failLogger.info("Did not get seismogram " + i + " status was: " + status); } } return localSeismograms; } | 45996 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45996/4150401cb68a34b4c3387f186c0430c29a0e4349/MotionVectorArm.java/clean/src/edu/sc/seis/sod/MotionVectorArm.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3566,
1761,
6228,
5553,
63,
6362,
65,
4303,
21246,
3183,
12,
1133,
5018,
4154,
425,
4057,
16,
4766,
7734,
1567,
1586,
63,
6362,
65,
9075,
16,
4766,
7734,
7659,
1761,
6228,
5553,
552... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3566,
1761,
6228,
5553,
63,
6362,
65,
4303,
21246,
3183,
12,
1133,
5018,
4154,
425,
4057,
16,
4766,
7734,
1567,
1586,
63,
6362,
65,
9075,
16,
4766,
7734,
7659,
1761,
6228,
5553,
552... | |
node.setParentNode(parent); | private IDocumentNode createImport(IDocumentNode parent) { PluginImportNode node = new PluginImportNode(); node.setParentNode(parent); node.setModel(fModel); node.setInTheModel(true); return node; } | 14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/5f54aeb0c6b0dedbd16348f38c2089aa976e950f/PluginDocumentNodeFactory.java/buggy/ui/org.eclipse.pde.core/text/org/eclipse/pde/internal/core/text/plugin/PluginDocumentNodeFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1599,
504,
650,
907,
752,
5010,
12,
734,
504,
650,
907,
982,
13,
288,
202,
202,
3773,
5010,
907,
756,
273,
394,
6258,
5010,
907,
5621,
202,
202,
2159,
18,
542,
3054,
907,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1599,
504,
650,
907,
752,
5010,
12,
734,
504,
650,
907,
982,
13,
288,
202,
202,
3773,
5010,
907,
756,
273,
394,
6258,
5010,
907,
5621,
202,
202,
2159,
18,
542,
3054,
907,
1... | |
if(rsp_list.size() > 1) if(log.isWarnEnabled()) log.warn("response list contains " + "more that 1 response; returning first response !"); rsp=(Rsp)rsp_list.elementAt(0); if(rsp.wasSuspected()) | if (rsp_list.size() > 1) { if (log.isWarnEnabled()) { log.warn("response list contains " + "more that 1 response; returning first response !"); } } rsp = (Rsp) rsp_list.elementAt(0); if (rsp.wasSuspected()) { | public Object sendMessage(Message msg, int mode, long timeout) throws TimeoutException, SuspectedException { Vector mbrs=new Vector(); RspList rsp_list=null; Object dest=msg.getDest(); Rsp rsp; GroupRequest _req=null; if(dest == null) { if(log.isErrorEnabled()) log.error("the message's destination is null, " + "cannot send message"); return null; } mbrs.addElement(dest); // dummy membership (of destination address) _req=new GroupRequest(msg, corr, mbrs, mode, timeout, 0); _req.execute(); if(mode == GroupRequest.GET_NONE) return null; rsp_list=_req.getResults(); if(rsp_list.size() == 0) { if(log.isWarnEnabled()) log.warn(" response list is empty"); return null; } if(rsp_list.size() > 1) if(log.isWarnEnabled()) log.warn("response list contains " + "more that 1 response; returning first response !"); rsp=(Rsp)rsp_list.elementAt(0); if(rsp.wasSuspected()) throw new SuspectedException(dest); if(!rsp.wasReceived()) throw new TimeoutException(); return rsp.getValue(); } | 3550 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3550/146a9f744cbe901c4fe56f6ceb2100ee15e7e898/MessageDispatcher.java/buggy/src/org/jgroups/blocks/MessageDispatcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
15399,
12,
1079,
1234,
16,
509,
1965,
16,
1525,
2021,
13,
1216,
23334,
16,
348,
407,
1789,
503,
288,
3639,
5589,
3639,
312,
2848,
87,
33,
2704,
5589,
5621,
3639,
534,
1752,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
15399,
12,
1079,
1234,
16,
509,
1965,
16,
1525,
2021,
13,
1216,
23334,
16,
348,
407,
1789,
503,
288,
3639,
5589,
3639,
312,
2848,
87,
33,
2704,
5589,
5621,
3639,
534,
1752,
... |
return absolute(current_row+rows); | return absolute(current_row+1+rows); | public boolean relative(int rows) throws SQLException { return absolute(current_row+rows); } | 46563 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46563/d3ef753686384256c0a1439b3afb023bd96589ff/ResultSet.java/clean/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
3632,
12,
474,
2595,
13,
1216,
6483,
565,
288,
202,
327,
4967,
12,
2972,
67,
492,
15,
21,
15,
3870,
1769,
565,
289,
2,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
3632,
12,
474,
2595,
13,
1216,
6483,
565,
288,
202,
327,
4967,
12,
2972,
67,
492,
15,
21,
15,
3870,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if ( !isUpdateable() ) { throw new PSQLException( "postgresql.updateable.notupdateable" ); } | public synchronized void updateInt(int columnIndex, int x) throws SQLException { if ( !isUpdateable() ) { throw new PSQLException( "postgresql.updateable.notupdateable" ); } if ( Driver.logDebug ) Driver.debug("updating int " + fields[columnIndex - 1].getName() + "=" + x); doingUpdates = !onInsertRow; updateValues.put( fields[columnIndex - 1].getName(), new Integer(x) ); } | 49504 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49504/b0146a2407f54166582450bd8ae2af0ca9800506/AbstractJdbc2ResultSet.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
1089,
1702,
12,
474,
14882,
16,
509,
619,
13,
202,
15069,
6483,
202,
95,
202,
202,
430,
261,
401,
291,
1891,
429,
1435,
262,
202,
202,
95,
1082,
202,
12849,
394,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
1089,
1702,
12,
474,
14882,
16,
509,
619,
13,
202,
15069,
6483,
202,
95,
202,
202,
430,
261,
401,
291,
1891,
429,
1435,
262,
202,
202,
95,
1082,
202,
12849,
394,
... | |
cmdl.createArgument().setValue("-" + OUTPUT_FILE + ":" | cmdl.createArgument().setValue("-" + OUTPUT_FILE + ":" | public void execute() throws BuildException { // load command line with optional attributes Enumeration iter = optionalAttrs.keys(); while (iter.hasMoreElements()) { String name = (String) iter.nextElement(); Object value = optionalAttrs.get(name); cmdl.createArgument().setValue("-" + name + ":" + value.toString()); } if (target == null || !target.isFile()) { throw new BuildException("Invalid target: " + target); } if (outputFile != null) { cmdl.createArgument().setValue("-" + OUTPUT_FILE + ":" + outputFile.replace('\\', '/')); } File javaFile = null; // use the directory containing the target as the output directory if (outputDirectory == null) { javaFile = new File(createOutputFileName(target, outputFile, null)); } else { if (!outputDirectory.isDirectory()) { throw new BuildException("'outputdirectory' " + outputDirectory + " is not a directory."); } // convert backslashes to slashes, otherwise jjtree will // put this as comments and this seems to confuse javacc cmdl.createArgument().setValue("-OUTPUT_DIRECTORY:" + outputDirectory.getAbsolutePath() .replace('\\', '/')); javaFile = new File(createOutputFileName(target, outputFile, outputDirectory .getPath())); } if (javaFile.exists() && target.lastModified() < javaFile.lastModified()) { log("Target is already built - skipping (" + target + ")", Project.MSG_VERBOSE); return; } cmdl.createArgument().setValue(target.getAbsolutePath()); cmdl.setClassname(JavaCC.getMainClass(javaccHome, JavaCC.TASKDEF_TYPE_JJTREE)); final Path classpath = cmdl.createClasspath(getProject()); final File javaccJar = JavaCC.getArchiveFile(javaccHome); classpath.createPathElement().setPath(javaccJar.getAbsolutePath()); classpath.addJavaRuntime(); final Commandline.Argument arg = cmdl.createVmArgument(); arg.setValue("-mx140M"); arg.setValue("-Dinstall.root=" + javaccHome.getAbsolutePath()); final Execute process = new Execute(new LogStreamHandler(this, Project.MSG_INFO, Project.MSG_INFO), null); log(cmdl.describeCommand(), Project.MSG_VERBOSE); process.setCommandline(cmdl.getCommandline()); try { if (process.execute() != 0) { throw new BuildException("JJTree failed."); } } catch (IOException e) { throw new BuildException("Failed to launch JJTree", e); } } | 639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/fa49c592432de2a96225b797b938cdbd1e4394b8/JJTree.java/buggy/src/main/org/apache/tools/ant/taskdefs/optional/javacc/JJTree.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
1216,
18463,
288,
3639,
368,
1262,
1296,
980,
598,
3129,
1677,
3639,
13864,
1400,
273,
3129,
8262,
18,
2452,
5621,
3639,
1323,
261,
2165,
18,
5332,
7417,
3471,
10756,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
1216,
18463,
288,
3639,
368,
1262,
1296,
980,
598,
3129,
1677,
3639,
13864,
1400,
273,
3129,
8262,
18,
2452,
5621,
3639,
1323,
261,
2165,
18,
5332,
7417,
3471,
10756,... |
tii.setSQL( "SELECT * FROM "+tables[i] ); | tii.setSQL( "SELECT * FROM "+srcDbInfo.quoteField(tables[i]) ); | public boolean ripDB( String jobName, RepositoryDirectory repositoryDirectory, DatabaseMeta srcDbInfo, DatabaseMeta tgtDbInfo, String[] tablesToRip ) { final String[] tables = tablesToRip; final DatabaseMeta sourceDbInfo = srcDbInfo; final DatabaseMeta targetDbInfo = tgtDbInfo; final RepositoryDirectory repdir = repositoryDirectory; final String jobname = jobName; // // Create a new job... // jobMeta=new JobMeta(log); jobMeta.readDatabases(rep); setFilename(null); jobMeta.setName(jobname); jobMeta.setDirectory( repdir ); refreshTree(); refreshGraph(); final Point location = new Point(50, 50); // The start entry... final JobEntryCopy start = jobMeta.findStart(); start.setLocation(new Point(location.x, location.y)); start.setDrawn(); final Thread parentThread = Thread.currentThread(); // Create a dialog with a progress indicator! IRunnableWithProgress op = new IRunnableWithProgress() { public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { // This is running in a new process: copy some KettleVariables info LocalVariables.getInstance().createKettleVariables(Thread.currentThread().getName(), parentThread.getName(), true); monitor.beginTask(Messages.getString("Chef.RipDB.Monitor.BuildingNewJob"), tables.length); //$NON-NLS-1$ monitor.worked(0); JobEntryCopy previous = start; // Loop over the table-names... for (int i=0;i<tables.length && !monitor.isCanceled();i++) { monitor.setTaskName(Messages.getString("Chef.RipDB.Monitor.ProcessingTable")+tables[i]+"]..."); //$NON-NLS-1$ //$NON-NLS-2$ // // Create the new transformation... // String transname = Messages.getString("Chef.RipDB.Monitor.Transname1")+sourceDbInfo+"].["+tables[i]+Messages.getString("Chef.RipDB.Monitor.Transname2")+targetDbInfo+"]"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ TransMeta ti = new TransMeta((String)null, transname, null); ti.setDirectory( repdir ); // // Add a note // String note = Messages.getString("Chef.RipDB.Monitor.Note1")+tables[i]+Messages.getString("Chef.RipDB.Monitor.Note2")+sourceDbInfo+"]"+Const.CR; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ note+=Messages.getString("Chef.RipDB.Monitor.Note3")+tables[i]+Messages.getString("Chef.RipDB.Monitor.Note4")+targetDbInfo+"]"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ NotePadMeta ni = new NotePadMeta(note, 150, 10, -1, -1); ti.addNote(ni); // // Add the TableInputMeta step... // String fromstepname = Messages.getString("Chef.RipDB.Monitor.FromStep.Name")+tables[i]+"]"; //$NON-NLS-1$ //$NON-NLS-2$ TableInputMeta tii = new TableInputMeta(); tii.setDatabaseMeta( sourceDbInfo ); tii.setSQL( "SELECT * FROM "+tables[i] ); //$NON-NLS-1$ String fromstepid = StepLoader.getInstance().getStepPluginID(tii); StepMeta fromstep = new StepMeta(log, fromstepid, fromstepname, (StepMetaInterface)tii ); fromstep.setLocation(150,100); fromstep.setDraw(true); fromstep.setDescription(Messages.getString("Chef.RipDB.Monitor.FromStep.Description")+tables[i]+Messages.getString("Chef.RipDB.Monitor.FromStep.Description2")+sourceDbInfo+"]"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ ti.addStep(fromstep); // // Add the TableOutputMeta step... // String tostepname = Messages.getString("Chef.RipDB.Monitor.ToStep.Name")+tables[i]+"]"; //$NON-NLS-1$ //$NON-NLS-2$ TableOutputMeta toi = new TableOutputMeta(); toi.setDatabase( targetDbInfo ); toi.setTablename( tables[i] ); toi.setCommitSize( 100 ); toi.setTruncateTable( true ); String tostepid = StepLoader.getInstance().getStepPluginID(toi); StepMeta tostep = new StepMeta(log, tostepid, tostepname, (StepMetaInterface)toi ); tostep.setLocation(500,100); tostep.setDraw(true); tostep.setDescription(Messages.getString("Chef.RipDB.Monitor.ToStep.Description1")+tables[i]+Messages.getString("Chef.RipDB.Monitor.ToStep.Description2")+targetDbInfo+"]"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ ti.addStep(tostep); // // Add a hop between the two steps... // TransHopMeta hi = new TransHopMeta(fromstep, tostep); ti.addTransHop(hi); // // Now we generate the SQL needed to run for this transformation. // // First set the limit to 1 to speed things up! String tmpSql = tii.getSQL(); tii.setSQL( tii.getSQL()+sourceDbInfo.getLimitClause(1) ); String sql = ""; //$NON-NLS-1$ try { sql = ti.getSQLStatementsString(); } catch(KettleStepException kse) { throw new InvocationTargetException(kse, Messages.getString("Chef.RipDB.Exception.ErrorGettingSQLFromTransformation")+ti+"] : "+kse.getMessage()); //$NON-NLS-1$ //$NON-NLS-2$ } // remove the limit tii.setSQL( tmpSql ); // // Now, save the transformation... // try { ti.saveRep(rep); } catch(KettleException dbe) { throw new InvocationTargetException(dbe, Messages.getString("Chef.RipDB.Exception.UnableToSaveTransformationToRepository")); //$NON-NLS-1$ } // We can now continue with the population of the job... //////////////////////////////////////////////////////////////////////// location.x=250; if (i>0) location.y += 100; // // We can continue defining the job. // // First the SQL, but only if needed! // If the table exists & has the correct format, nothing is done // if (sql!=null && sql.length()>0) { String jesqlname = Messages.getString("Chef.RipDB.JobEntrySQL.Name")+tables[i]+"]"; //$NON-NLS-1$ //$NON-NLS-2$ JobEntrySQL jesql = new JobEntrySQL(jesqlname); jesql.setDatabase(targetDbInfo); jesql.setSQL(sql); jesql.setDescription(Messages.getString("Chef.RipDB.JobEntrySQL.Description")+targetDbInfo+"].["+tables[i]+"]"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ JobEntryCopy jecsql = new JobEntryCopy(log); jecsql.setEntry(jesql); jecsql.setLocation(new Point(location.x, location.y)); jecsql.setDrawn(); jobMeta.addJobEntry(jecsql); // Add the hop too... JobHopMeta jhi = new JobHopMeta(previous, jecsql); jobMeta.addJobHop(jhi); previous = jecsql; } // // Add the jobentry for the transformation too... // String jetransname = Messages.getString("Chef.RipDB.JobEntryTrans.Name")+tables[i]+"]"; //$NON-NLS-1$ //$NON-NLS-2$ JobEntryTrans jetrans = new JobEntryTrans(jetransname); jetrans.setTransname(ti.getName()); jetrans.setDirectory(ti.getDirectory()); JobEntryCopy jectrans = new JobEntryCopy(log, jetrans); jectrans.setDescription(Messages.getString("Chef.RipDB.JobEntryTrans.Description1")+Const.CR+Messages.getString("Chef.RipDB.JobEntryTrans.Description2")+sourceDbInfo+"].["+tables[i]+"]"+Const.CR+Messages.getString("Chef.RipDB.JobEntryTrans.Description3")+targetDbInfo+"].["+tables[i]+"]"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$ //$NON-NLS-7$ jectrans.setDrawn(); location.x+=400; jectrans.setLocation(new Point(location.x, location.y)); jobMeta.addJobEntry(jectrans); // Add a hop between the last 2 job entries. JobHopMeta jhi2 = new JobHopMeta(previous, jectrans); jobMeta.addJobHop(jhi2); previous = jectrans; monitor.worked( 1 ); } monitor.worked(100); monitor.done(); } }; try { ProgressMonitorDialog pmd = new ProgressMonitorDialog(shell); pmd.run(false, true, op); } catch (InvocationTargetException e) { new ErrorDialog(shell, props, Messages.getString("Chef.ErrorDialog.RipDB.ErrorRippingTheDatabase.Title"), Messages.getString("Chef.ErrorDialog.RipDB.ErrorRippingTheDatabase.Message"), e); //$NON-NLS-1$ //$NON-NLS-2$ return false; } catch (InterruptedException e) { new ErrorDialog(shell, props, Messages.getString("Chef.ErrorDialog.RipDB.ErrorRippingTheDatabase.Title"), Messages.getString("Chef.ErrorDialog.RipDB.ErrorRippingTheDatabase.Message"), e); //$NON-NLS-1$ //$NON-NLS-2$ return false; } finally { refreshGraph(); refreshTree(); } return true; } | 58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/86a73af0aeabc1a1589235aadd28800bcfabecbb/Chef.java/buggy/kettle/src/be/ibridge/kettle/chef/Chef.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
436,
625,
2290,
12,
202,
780,
17833,
16,
15106,
202,
3305,
2853,
3352,
2853,
16,
15106,
202,
4254,
2781,
1705,
4331,
966,
16,
15106,
202,
4254,
2781,
11680,
4331,
966,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
436,
625,
2290,
12,
202,
780,
17833,
16,
15106,
202,
3305,
2853,
3352,
2853,
16,
15106,
202,
4254,
2781,
1705,
4331,
966,
16,
15106,
202,
4254,
2781,
11680,
4331,
966,
16,... |
return protocol; } | return protocol; } | public String getProtocol() { return protocol; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e204bcd94e42168df8116332c5e2f0db99bd1c55/URL.java/buggy/core/src/classpath/java/java/net/URL.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
18648,
1435,
288,
202,
202,
2463,
1771,
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,
... | [
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
18648,
1435,
288,
202,
202,
2463,
1771,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if ((i + 1) < s.length() && (s.charAt(i) != ' ' && s.charAt(i + 1) != '\t')) throw new ParseException("Illegal character after '?': " | if ((i + 1) < s.length() && (s.charAt(i) != ' ' && s.charAt(i + 1) != '\t')) { throw new ParseException("Illegal character after '?': " | protected int storeExpressionVals(int pos, String s, int type) throws ParseException { int incr = 0; int i = skipWhiteSpace(pos, s); if (i >= s.length()) return i; char c = s.charAt(i); if ((c >= 'A') && (c <= 'Z') && (!s.equals("L")) && (!s.equals("LW"))) { String sub = s.substring(i, i + 3); int sval = -1; int eval = -1; if (type == MONTH) { sval = getMonthNumber(sub) + 1; if (sval < 0) throw new ParseException("Invalid Month value: '" + sub + "'", i); if (s.length() > i + 3) { c = s.charAt(i + 3); if (c == '-') { i += 4; sub = s.substring(i, i + 3); eval = getMonthNumber(sub) + 1; if (eval < 0) throw new ParseException( "Invalid Month value: '" + sub + "'", i); } } } else if (type == DAY_OF_WEEK) { sval = getDayOfWeekNumber(sub); if (sval < 0) throw new ParseException("Invalid Day-of-Week value: '" + sub + "'", i); if (s.length() > i + 3) { c = s.charAt(i + 3); if (c == '-') { i += 4; sub = s.substring(i, i + 3); eval = getDayOfWeekNumber(sub); if (eval < 0) throw new ParseException( "Invalid Day-of-Week value: '" + sub + "'", i); if (sval > eval) throw new ParseException( "Invalid Day-of-Week sequence: " + sval + " > " + eval, i); } else if (c == '#') { try { i += 4; nthdayOfWeek = Integer.parseInt(s.substring(i)); if (nthdayOfWeek < 1 || nthdayOfWeek > 5) throw new Exception(); } catch (Exception e) { throw new ParseException( "A numeric value between 1 and 5 must follow the '#' option", i); } } else if (c == 'L') { lastdayOfWeek = true; i++; } } } else { throw new ParseException( "Illegal characters for this position: '" + sub + "'", i); } if (eval != -1) incr = 1; addToSet(sval, eval, incr, type); return (i + 3); } if (c == '?') { i++; if ((i + 1) < s.length() && (s.charAt(i) != ' ' && s.charAt(i + 1) != '\t')) throw new ParseException("Illegal character after '?': " + s.charAt(i), i); if (type != DAY_OF_WEEK && type != DAY_OF_MONTH) throw new ParseException( "'?' can only be specfied for Day-of-Month or Day-of-Week.", i); if (type == DAY_OF_WEEK && !lastdayOfMonth) { int val = ((Integer) daysOfMonth.last()).intValue(); if (val == NO_SPEC_INT) throw new ParseException( "'?' can only be specfied for Day-of-Month -OR- Day-of-Week.", i); } addToSet(NO_SPEC_INT, -1, 0, type); return i; } if (c == '*' || c == '/') { if (c == '*' && (i + 1) >= s.length()) { addToSet(ALL_SPEC_INT, -1, incr, type); return i + 1; } else if (c == '/' && ((i + 1) >= s.length() || s.charAt(i + 1) == ' ' || s .charAt(i + 1) == '\t')) throw new ParseException( "'/' must be followed by an integer.", i); else if (c == '*') i++; c = s.charAt(i); if (c == '/') { // is an increment specified? i++; if (i >= s.length()) throw new ParseException("Unexpected end of string.", i); incr = getNumericValue(s, i); i++; if (incr > 10) i++; if (incr > 59 && (type == SECOND || type == MINUTE)) throw new ParseException( "Increment > 60 : " + incr, i); else if (incr > 23 && (type == HOUR)) throw new ParseException( "Increment > 24 : " + incr, i); else if (incr > 31 && (type == DAY_OF_MONTH)) throw new ParseException( "Increment > 31 : " + incr, i); else if (incr > 7 && (type == DAY_OF_WEEK)) throw new ParseException( "Increment > 7 : " + incr, i); else if (incr > 12 && (type == MONTH)) throw new ParseException("Increment > 12 : " + incr, i); } else incr = 1; addToSet(ALL_SPEC_INT, -1, incr, type); return i; } else if (c == 'L') { i++; if (type == DAY_OF_MONTH) lastdayOfMonth = true; if (type == DAY_OF_WEEK) addToSet(7, 7, 0, type); if(type == DAY_OF_MONTH && s.length() > i) { c = s.charAt(i); if(c == 'W') { nearestWeekday = true; i++; } } return i; } else if (c >= '0' && c <= '9') { int val = Integer.parseInt(String.valueOf(c)); i++; if (i >= s.length()) addToSet(val, -1, -1, type); else { c = s.charAt(i); if (c >= '0' && c <= '9') { ValueSet vs = getValue(val, s, i); val = vs.value; i = vs.pos; } i = checkNext(i, s, val, type); return i; } } else throw new ParseException("Unexpected character: " + c, i); return i; } | 15562 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15562/f6eeea5a952e67d6b7fc8b54ae64d0b9e7098a98/CronExpression.java/clean/src/java/org/quartz/CronExpression.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
509,
1707,
2300,
13169,
12,
474,
949,
16,
514,
272,
16,
509,
618,
13,
5411,
1216,
10616,
288,
3639,
509,
17633,
273,
374,
31,
3639,
509,
277,
273,
2488,
23108,
12,
917,
16,
272,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
509,
1707,
2300,
13169,
12,
474,
949,
16,
514,
272,
16,
509,
618,
13,
5411,
1216,
10616,
288,
3639,
509,
17633,
273,
374,
31,
3639,
509,
277,
273,
2488,
23108,
12,
917,
16,
272,
... |
public boolean isPublic() { return (atd.modifiers & Mod.PUBLIC) != 0; } | public Access getAccess() { return UnitCompiler.modifiers2Access(atd.modifiers); } | private IClass resolve(final Java.TypeDeclaration td) { final Java.AbstractTypeDeclaration atd = (Java.AbstractTypeDeclaration) td; if (atd.resolvedType == null) atd.resolvedType = new IClass() { protected IClass.IMethod[] getDeclaredIMethods2() { IClass.IMethod[] res = new IClass.IMethod[atd.declaredMethods.size()]; int i = 0; for (Iterator it = atd.declaredMethods.iterator(); it.hasNext();) { res[i++] = UnitCompiler.this.toIMethod((Java.MethodDeclarator) it.next()); } return res; } private IClass[] declaredClasses = null; protected IClass[] getDeclaredIClasses2() { if (this.declaredClasses == null) { IClass[] mts = new IClass[atd.declaredClassesAndInterfaces.size()]; int i = 0; for (Iterator it = atd.declaredClassesAndInterfaces.iterator(); it.hasNext();) { mts[i++] = UnitCompiler.this.resolve((Java.AbstractTypeDeclaration) it.next()); } this.declaredClasses = mts; } return this.declaredClasses; } protected IClass getDeclaringIClass2() { Java.Scope s = atd; for (; !(s instanceof Java.TypeBodyDeclaration); s = s.getEnclosingScope()) { if (s instanceof Java.CompilationUnit) return null; } return UnitCompiler.this.resolve((Java.AbstractTypeDeclaration) s.getEnclosingScope()); } protected IClass getOuterIClass2() throws CompileException { Java.AbstractTypeDeclaration oc = (Java.AbstractTypeDeclaration) UnitCompiler.getOuterClass(atd); if (oc == null) return null; return UnitCompiler.this.resolve(oc); } protected final String getDescriptor2() { return Descriptor.fromClassName(atd.getClassName()); } public boolean isArray() { return false; } protected IClass getComponentType2() { throw new RuntimeException(); } public boolean isPrimitive() { return false; } public boolean isPrimitiveNumeric() { return false; } protected IConstructor[] getDeclaredIConstructors2() { if (atd instanceof Java.ClassDeclaration) { Java.ConstructorDeclarator[] cs = ((Java.ClassDeclaration) atd).getConstructors(); IClass.IConstructor[] res = new IClass.IConstructor[cs.length]; for (int i = 0; i < cs.length; ++i) res[i] = UnitCompiler.this.toIConstructor(cs[i]); return res; } return new IClass.IConstructor[0]; } protected IField[] getDeclaredIFields2() { if (atd instanceof Java.ClassDeclaration) { Java.ClassDeclaration cd = (Java.ClassDeclaration) atd; List l = new ArrayList(); // IClass.IField // Determine variable declarators of type declaration. for (int i = 0; i < cd.variableDeclaratorsAndInitializers.size(); ++i) { Java.BlockStatement vdoi = (Java.BlockStatement) cd.variableDeclaratorsAndInitializers.get(i); if (vdoi instanceof Java.FieldDeclaration) { Java.FieldDeclaration fd = (Java.FieldDeclaration) vdoi; IClass.IField[] flds = UnitCompiler.this.getIFields(fd); for (int j = 0; j < flds.length; ++j) l.add(flds[j]); } } return (IClass.IField[]) l.toArray(new IClass.IField[l.size()]); } else if (atd instanceof Java.InterfaceDeclaration) { Java.InterfaceDeclaration id = (Java.InterfaceDeclaration) atd; List l = new ArrayList(); // Determine static fields. for (int i = 0; i < id.constantDeclarations.size(); ++i) { Java.BlockStatement bs = (Java.BlockStatement) id.constantDeclarations.get(i); if (bs instanceof Java.FieldDeclaration) { Java.FieldDeclaration fd = (Java.FieldDeclaration) bs; IClass.IField[] flds = UnitCompiler.this.getIFields(fd); for (int j = 0; j < flds.length; ++j) l.add(flds[j]); } } return (IClass.IField[]) l.toArray(new IClass.IField[l.size()]); } else { throw new RuntimeException(); } } public IField[] getSyntheticIFields() { if (atd instanceof Java.ClassDeclaration) { Collection c = ((Java.ClassDeclaration) atd).syntheticFields.values(); return (IField[]) c.toArray(new IField[c.size()]); } return new IField[0]; } protected IClass getSuperclass2() throws CompileException { if (atd instanceof Java.AnonymousClassDeclaration) { IClass bt = UnitCompiler.this.getType(((Java.AnonymousClassDeclaration) atd).baseType); return bt.isInterface() ? UnitCompiler.this.iClassLoader.OBJECT : bt; } if (atd instanceof Java.NamedClassDeclaration) { Java.NamedClassDeclaration ncd = (Java.NamedClassDeclaration) atd; if (ncd.optionalExtendedType == null) return UnitCompiler.this.iClassLoader.OBJECT; IClass superclass = UnitCompiler.this.getType(ncd.optionalExtendedType); if (superclass.isInterface()) UnitCompiler.this.compileError("\"" + superclass.toString() + "\" is an interface; classes can only extend a class", td.getLocation()); return superclass; } return null; } public boolean isPublic() { return (atd.modifiers & Mod.PUBLIC) != 0; } public boolean isFinal() { return (atd.modifiers & Mod.FINAL) != 0; } protected IClass[] getInterfaces2() throws CompileException { if (atd instanceof Java.AnonymousClassDeclaration) { IClass bt = UnitCompiler.this.getType(((Java.AnonymousClassDeclaration) atd).baseType); return bt.isInterface() ? new IClass[] { bt } : new IClass[0]; } else if (atd instanceof Java.NamedClassDeclaration) { Java.NamedClassDeclaration ncd = (Java.NamedClassDeclaration) atd; IClass[] res = new IClass[ncd.implementedTypes.length]; for (int i = 0; i < res.length; ++i) { res[i] = UnitCompiler.this.getType(ncd.implementedTypes[i]); if (!res[i].isInterface()) UnitCompiler.this.compileError("\"" + res[i].toString() + "\" is not an interface; classes can only implement interfaces", td.getLocation()); } return res; } else if (atd instanceof Java.InterfaceDeclaration) { Java.InterfaceDeclaration id = (Java.InterfaceDeclaration) atd; IClass[] res = new IClass[id.extendedTypes.length]; for (int i = 0; i < res.length; ++i) { res[i] = UnitCompiler.this.getType(id.extendedTypes[i]); if (!res[i].isInterface()) UnitCompiler.this.compileError("\"" + res[i].toString() + "\" is not an interface; interfaces can only extend interfaces", td.getLocation()); } return res; } else { throw new RuntimeException(); } } public boolean isAbstract() { return ( (atd instanceof Java.InterfaceDeclaration) || (atd.modifiers & Mod.ABSTRACT) != 0 ); } public boolean isInterface() { return atd instanceof Java.InterfaceDeclaration; } }; return atd.resolvedType; } | 9453 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9453/9144825a0ce7c4e3f8cc307fff204eb4550cc555/UnitCompiler.java/buggy/janino/src/org/codehaus/janino/UnitCompiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
467,
797,
2245,
12,
6385,
5110,
18,
559,
6094,
6655,
13,
288,
3639,
727,
5110,
18,
7469,
559,
6094,
622,
72,
273,
261,
5852,
18,
7469,
559,
6094,
13,
6655,
31,
3639,
309,
261,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
467,
797,
2245,
12,
6385,
5110,
18,
559,
6094,
6655,
13,
288,
3639,
727,
5110,
18,
7469,
559,
6094,
622,
72,
273,
261,
5852,
18,
7469,
559,
6094,
13,
6655,
31,
3639,
309,
261,
2... |
return runtime.callbackFactory(); | return getRuntime().callbackFactory(); | protected CallbackFactory callbackFactory() { return runtime.callbackFactory(); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyObject.java/clean/src/org/jruby/RubyObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
8444,
1733,
1348,
1733,
1435,
288,
3639,
327,
18814,
7675,
3394,
1733,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
8444,
1733,
1348,
1733,
1435,
288,
3639,
327,
18814,
7675,
3394,
1733,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
getPlayer(connId).setDone (game.getEntitiesOwnedBy(getPlayer(connId)) <= 0); | player.setDone( game.getEntitiesOwnedBy(player) <= 0 ); | private void sendCurrentInfo(int connId) { transmitAllPlayerConnects(connId); send(connId, createGameSettingsPacket()); Player player = game.getPlayer(connId); send(connId, new Packet(Packet.COMMAND_SENDING_MINEFIELDS, player.getMinefields())); switch (game.getPhase()) { case Game.PHASE_LOUNGE : send(connId, createMapSettingsPacket()); // Send Entities *after* the Lounge Phase Change send(connId, new Packet(Packet.COMMAND_PHASE_CHANGE, new Integer(game.getPhase()))); if (doBlind()) { send(connId, createFilteredEntitiesPacket(getPlayer(connId))); } else { send(connId, createEntitiesPacket()); } break; case Game.PHASE_INITIATIVE : case Game.PHASE_MOVEMENT_REPORT : case Game.PHASE_FIRING_REPORT : case Game.PHASE_END : case Game.PHASE_VICTORY : send(connId, createReportPacket()); default : // Send Entites *before* other phase changes. send(connId, createGameSettingsPacket()); if (doBlind()) { send(connId, createFilteredEntitiesPacket(getPlayer(connId))); } else { send(connId, createEntitiesPacket()); } getPlayer(connId).setDone (game.getEntitiesOwnedBy(getPlayer(connId)) <= 0); send(connId, createBoardPacket()); send(connId, new Packet(Packet.COMMAND_PHASE_CHANGE, new Integer(game.getPhase()))); break; } if (game.getPhase() == Game.PHASE_FIRING || game.getPhase() == Game.PHASE_PHYSICAL) { // can't go above, need board to have been sent send(createAttackPacket(game.getActionsVector(), false)); send(createAttackPacket(game.getChargesVector(), true)); } if (game.phaseHasTurns(game.getPhase())) { send(connId, createTurnVectorPacket()); send(connId, createTurnIndexPacket()); } } | 4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/61d2f0a273d936b1d7448d4a9c14e05cb5523612/Server.java/buggy/megamek/src/megamek/server/Server.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1366,
3935,
966,
12,
474,
1487,
548,
13,
288,
3639,
23323,
1595,
12148,
21500,
12,
4646,
548,
1769,
3639,
1366,
12,
4646,
548,
16,
752,
12496,
2628,
6667,
10663,
3639,
19185,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1366,
3935,
966,
12,
474,
1487,
548,
13,
288,
3639,
23323,
1595,
12148,
21500,
12,
4646,
548,
1769,
3639,
1366,
12,
4646,
548,
16,
752,
12496,
2628,
6667,
10663,
3639,
19185,
7... |
return eDynamicGet( eFeature, resolve ); | return super.eGet( featureID, resolve, coreType ); | public Object eGet( EStructuralFeature eFeature, boolean resolve ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case DataPackage.RULE__TYPE : return getType( ); case DataPackage.RULE__VALUE : return getValue( ); } return eDynamicGet( eFeature, resolve ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/036e8c78765730b146e5854b9d6c397a296fed86/RuleImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/data/impl/RuleImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
15952,
12,
512,
14372,
4595,
425,
4595,
16,
1250,
2245,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
15952,
12,
512,
14372,
4595,
425,
4595,
16,
1250,
2245,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202... |
sig.getEnv(true).resolveType(parameter.type); | sig.getEnv(true).resolveType(sig, parameter.type); | static public rcc.tc.TypeSig defaultInstantiation(rcc.tc.TypeSig sig) { boolean t = inAnnotation; inAnnotation = true; FormalParaDeclVec fpv = (FormalParaDeclVec)PrepTypeDeclaration.typeParametersDecoration.get(sig); ExprVec args = ExprVec.make(); if (fpv != null) { for (int i = 0; i<fpv.size(); i++) { FormalParaDecl parameter = fpv.elementAt(i); ExprObjectDesignator eod = ExprObjectDesignator. make(parameter.getStartLoc(), ThisExpr.make(sig, parameter.getStartLoc())); FieldAccess fa = FieldAccess. make( eod, parameter.id, parameter.getStartLoc()); args.addElement(fa); sig.getEnv(true).resolveType(parameter.type); setType(fa, parameter.type); fa.decl = (FieldDecl)PrepTypeDeclaration. parameterDeclDecoration.get(parameter); setType(eod.expr, sig); // good enough for now. change below to correct sig } } TypeSig s = ((rcc.tc.PrepTypeDeclaration)PrepTypeDeclaration.inst). findTypeSignature(sig.getEnv(true), (rcc.tc.TypeSig)sig, args, sig.getTypeDecl().getStartLoc()); for (int i = 0; i<args.size(); i++) { FieldAccess fa = (FieldAccess)args.elementAt(i); setType(((ExprObjectDesignator)fa.od).expr, s); s.getEnv(true).resolveType(getType(fa)); } inAnnotation = t; return (rcc.tc.TypeSig)s; } | 46634 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46634/da3049db1eb4330268b3c4bcabb61e7ecd42804f/FlowInsensitiveChecks.java/buggy/src/escjava/trunk/ESCTools/Rcc/java/rcc/tc/FlowInsensitiveChecks.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1071,
436,
952,
18,
5111,
18,
559,
8267,
805,
10675,
7072,
12,
86,
952,
18,
5111,
18,
559,
8267,
3553,
13,
288,
3639,
1250,
268,
273,
316,
3257,
31,
3639,
316,
3257,
273,
638,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1071,
436,
952,
18,
5111,
18,
559,
8267,
805,
10675,
7072,
12,
86,
952,
18,
5111,
18,
559,
8267,
3553,
13,
288,
3639,
1250,
268,
273,
316,
3257,
31,
3639,
316,
3257,
273,
638,
31... |
head=0; tail=0; | while (!isEmpty()) removeFirst(); | public void clear() { head=0; tail=0; } | 5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/b1ade0b8450e32c70c240cff70ded3c5f33d2d63/Buffer.java/buggy/components/gnutella-core/src/main/java/com/limegroup/gnutella/util/Buffer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2424,
1435,
288,
3639,
910,
33,
20,
31,
3639,
5798,
33,
20,
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,
... | [
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2424,
1435,
288,
3639,
910,
33,
20,
31,
3639,
5798,
33,
20,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
StaticEntity.setProperty( "mpRecoveryScript", mpRecoveryScriptField.getText() ); StaticEntity.setProperty( "mpRestores", getSettingString( mpRestoreCheckbox ) ); | StaticEntity.setProperty( "mpAutoRecoverItems", getSettingString( mpRestoreCheckbox ) ); | private void saveRestoreSettings() { StaticEntity.setProperty( "betweenBattleScript", betweenBattleScriptField.getText() ); StaticEntity.setProperty( "hpAutoRecover", String.valueOf( ((double)(hpAutoRecoverSelect.getSelectedIndex() - 1) / 10.0) ) ); StaticEntity.setProperty( "hpAutoRecoverTarget", String.valueOf( ((double)(hpAutoRecoverTargetSelect.getSelectedIndex() - 1) / 10.0) ) ); StaticEntity.setProperty( "hpRecoveryScript", hpRecoveryScriptField.getText() ); StaticEntity.setProperty( "hpRestores", getSettingString( hpRestoreCheckbox ) ); StaticEntity.setProperty( "mpAutoRecover", String.valueOf( ((double)(mpAutoRecoverSelect.getSelectedIndex() - 1) / 10.0) ) ); StaticEntity.setProperty( "mpAutoRecoverTarget", String.valueOf( ((double)(mpAutoRecoverTargetSelect.getSelectedIndex() - 1) / 10.0) ) ); StaticEntity.setProperty( "mpRecoveryScript", mpRecoveryScriptField.getText() ); StaticEntity.setProperty( "mpRestores", getSettingString( mpRestoreCheckbox ) ); } | 50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/1ef11b5937b83e95c043e0af842e0150c81a627b/RestoreOptionsFrame.java/buggy/src/net/sourceforge/kolmafia/RestoreOptionsFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1923,
10874,
2628,
1435,
202,
95,
202,
202,
5788,
1943,
18,
542,
1396,
12,
315,
15019,
38,
4558,
298,
3651,
3113,
3086,
38,
4558,
298,
3651,
974,
18,
588,
1528,
1435,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1923,
10874,
2628,
1435,
202,
95,
202,
202,
5788,
1943,
18,
542,
1396,
12,
315,
15019,
38,
4558,
298,
3651,
3113,
3086,
38,
4558,
298,
3651,
974,
18,
588,
1528,
1435,
11... |
if ( o!=null ) { ArrayList v = null; if ( o instanceof ArrayList ) { v = (ArrayList)o; if ( value instanceof List ) { List v2 = (List)value; for (int i = 0; v!=v2 && i < v2.size(); i++) { v.add(v2.get(i)); } } else { v.add(value); } } else { v = new ArrayList(); rawSetAttribute(this.attributes, name, v); v.add(o); if ( value instanceof List ) { List v2 = (List)value; for (int i = 0; i < v2.size(); i++) { v.add(v2.get(i)); } } else { v.add(value); } | if ( o==null ) { rawSetAttribute(this.attributes, name, value); return; } STAttributeList v = null; if ( o.getClass() == STAttributeList.class ) { v = (STAttributeList)o; } else if ( o instanceof List ) { List listAttr = (List)o; v = new STAttributeList(listAttr.size()); v.addAll(listAttr); rawSetAttribute(this.attributes, name, v); } else { v = new STAttributeList(); rawSetAttribute(this.attributes, name, v); v.add(o); } if ( value instanceof List ) { if ( v!=value ) { v.addAll((List)value); | public void setAttribute(String name, Object value) { if ( value==null ) { return; } if ( attributes==null ) { attributes = new HashMap(); } if ( value instanceof StringTemplate ) { ((StringTemplate)value).setEnclosingInstance(this); } else { // convert value if array value = ASTExpr.convertArrayToList(value); } // convert plain collections // get exactly in this scope (no enclosing) Object o = this.attributes.get(name); if ( o!=null ) { // it's a multi-value attribute //System.out.println("exists: "+name+"="+o); ArrayList v = null; if ( o instanceof ArrayList ) { // already a List v = (ArrayList)o; if ( value instanceof List ) { // flatten incoming list into existing // (do nothing if same List to avoid trouble) List v2 = (List)value; for (int i = 0; v!=v2 && i < v2.size(); i++) { // System.out.println("flattening "+name+"["+i+"]="+v2.elementAt(i)+" into existing value"); v.add(v2.get(i)); } } else { v.add(value); } } else { // second attribute, must convert existing to ArrayList v = new ArrayList(); // make list to hold multiple values // make it point to list now rawSetAttribute(this.attributes, name, v); v.add(o); // add previous single-valued attribute if ( value instanceof List ) { // flatten incoming list into existing List v2 = (List)value; for (int i = 0; i < v2.size(); i++) { v.add(v2.get(i)); } } else { v.add(value); } } } else { rawSetAttribute(this.attributes, name, value); } } | 51898 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51898/48a48aeab0ea26b2b05a76c85ae930e03ee3183c/StringTemplate.java/clean/java/main/src/org/antlr/stringtemplate/StringTemplate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4730,
12,
780,
508,
16,
1033,
460,
13,
288,
202,
202,
430,
261,
460,
631,
2011,
262,
288,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
430,
261,
1677,
631,
2011,
262,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4730,
12,
780,
508,
16,
1033,
460,
13,
288,
202,
202,
430,
261,
460,
631,
2011,
262,
288,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
430,
261,
1677,
631,
2011,
262,
... |
Marker blue = Marker.getMarker(BLUE); | Marker blue = MarkerFactory.getMarker(BLUE); | public void testStar() { Marker blue = Marker.getMarker(BLUE); assertEquals(BLUE, blue.getName()); Marker star = Marker.getMarker("*"); //assertTrue(blue.isImmutable()); assertTrue(blue.matches("*")); assertTrue(blue.matches(star)); assertTrue(star.matches("asdasd")); assertTrue(star.matches(star)); assertTrue(star.matches(blue)); } | 47996 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47996/5813ec1f27de9d0b21969c4da66ee09180dbddd4/MarkerTest.java/clean/tests/src/java/org/slf4j/MarkerTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
18379,
1435,
288,
565,
14742,
8024,
273,
14742,
1733,
18,
588,
7078,
12,
14618,
1821,
1769,
565,
1815,
8867,
12,
14618,
1821,
16,
8024,
18,
17994,
10663,
565,
14742,
10443,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
18379,
1435,
288,
565,
14742,
8024,
273,
14742,
1733,
18,
588,
7078,
12,
14618,
1821,
1769,
565,
1815,
8867,
12,
14618,
1821,
16,
8024,
18,
17994,
10663,
565,
14742,
10443,... |
tree.repaint(); | treeState.setExpandedState(event.getPath(), false); | public void treeCollapsed(TreeExpansionEvent event) { validCachedPreferredSize = false; tree.repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8a78b0a127a68dcc6823fee2b8bdb1cbb7ec268d/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2151,
28084,
12,
2471,
2966,
12162,
1133,
871,
13,
565,
288,
1377,
923,
9839,
16028,
1225,
273,
629,
31,
1377,
2151,
1119,
18,
542,
17957,
1119,
12,
2575,
18,
588,
743,
9334,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2151,
28084,
12,
2471,
2966,
12162,
1133,
871,
13,
565,
288,
1377,
923,
9839,
16028,
1225,
273,
629,
31,
1377,
2151,
1119,
18,
542,
17957,
1119,
12,
2575,
18,
588,
743,
9334,
... |
AST __t371 = _t; org.exist.xquery.parser.XQueryAST tmp26_AST_in = (org.exist.xquery.parser.XQueryAST)_t; | AST __t96 = _t; org.exist.xquery.parser.XQueryAST tmp25_AST_in = (org.exist.xquery.parser.XQueryAST)_t; | public final Expression expr(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { Expression step; org.exist.xquery.parser.XQueryAST expr_AST_in = (_t == ASTNULL) ? null : (org.exist.xquery.parser.XQueryAST)_t; org.exist.xquery.parser.XQueryAST castAST = null; org.exist.xquery.parser.XQueryAST t = null; org.exist.xquery.parser.XQueryAST someVarName = null; org.exist.xquery.parser.XQueryAST everyVarName = null; org.exist.xquery.parser.XQueryAST varName = null; org.exist.xquery.parser.XQueryAST posVar = null; org.exist.xquery.parser.XQueryAST letVarName = null; org.exist.xquery.parser.XQueryAST collURI = null; step= null; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_cast: { AST __t326 = _t; castAST = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_cast); _t = _t.getFirstChild(); PathExpr expr= new PathExpr(context); int cardinality= Cardinality.EXACTLY_ONE; step=expr(_t,expr); _t = _retTree; t = (org.exist.xquery.parser.XQueryAST)_t; match(_t,ATOMIC_TYPE); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QUESTION: { org.exist.xquery.parser.XQueryAST tmp3_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,QUESTION); _t = _t.getNextSibling(); cardinality= Cardinality.ZERO_OR_ONE; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } QName qn= QName.parse(context, t.getText()); int code= Type.getType(qn); CastExpression castExpr= new CastExpression(context, expr, code, cardinality); castExpr.setASTNode(castAST); path.add(castExpr); step = castExpr; _t = __t326; _t = _t.getNextSibling(); break; } case COMMA: { AST __t328 = _t; org.exist.xquery.parser.XQueryAST tmp4_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,COMMA); _t = _t.getFirstChild(); PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; SequenceConstructor sc= new SequenceConstructor(context); sc.addPath(left); sc.addPath(right); path.addPath(sc); step = sc; _t = __t328; _t = _t.getNextSibling(); break; } case LITERAL_if: { AST __t329 = _t; org.exist.xquery.parser.XQueryAST tmp5_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_if); _t = _t.getFirstChild(); PathExpr testExpr= new PathExpr(context); PathExpr thenExpr= new PathExpr(context); PathExpr elseExpr= new PathExpr(context); step=expr(_t,testExpr); _t = _retTree; step=expr(_t,thenExpr); _t = _retTree; step=expr(_t,elseExpr); _t = _retTree; ConditionalExpression cond= new ConditionalExpression(context, testExpr, thenExpr, elseExpr); path.add(cond); step = cond; _t = __t329; _t = _t.getNextSibling(); break; } case LITERAL_some: { AST __t330 = _t; org.exist.xquery.parser.XQueryAST tmp6_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_some); _t = _t.getFirstChild(); List clauses= new ArrayList(); PathExpr satisfiesExpr = new PathExpr(context); { _loop335: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VARIABLE_BINDING)) { AST __t332 = _t; someVarName = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,VARIABLE_BINDING); _t = _t.getFirstChild(); ForLetClause clause= new ForLetClause(); PathExpr inputSequence = new PathExpr(context); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_as: { AST __t334 = _t; org.exist.xquery.parser.XQueryAST tmp7_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_as); _t = _t.getFirstChild(); sequenceType(_t,clause.sequenceType); _t = _retTree; _t = __t334; _t = _t.getNextSibling(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 127: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 139: case 140: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 144: case 145: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_preceding: case COMP_DOC_CONSTRUCTOR: { break; } default: { throw new NoViableAltException(_t); } } } step=expr(_t,inputSequence); _t = _retTree; clause.varName= someVarName.getText(); clause.inputSequence= inputSequence; clauses.add(clause); _t = __t332; _t = _t.getNextSibling(); } else { break _loop335; } } while (true); } step=expr(_t,satisfiesExpr); _t = _retTree; Expression action = satisfiesExpr; for (int i= clauses.size() - 1; i >= 0; i--) { ForLetClause clause= (ForLetClause) clauses.get(i); BindingExpression expr = new QuantifiedExpression(context, QuantifiedExpression.SOME); expr.setVariable(clause.varName); expr.setSequenceType(clause.sequenceType); expr.setInputSequence(clause.inputSequence); expr.setReturnExpression(action); satisfiesExpr= null; action= expr; } path.add(action); step = action; _t = __t330; _t = _t.getNextSibling(); break; } case LITERAL_every: { AST __t336 = _t; org.exist.xquery.parser.XQueryAST tmp8_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_every); _t = _t.getFirstChild(); List clauses= new ArrayList(); PathExpr satisfiesExpr = new PathExpr(context); { _loop341: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VARIABLE_BINDING)) { AST __t338 = _t; everyVarName = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,VARIABLE_BINDING); _t = _t.getFirstChild(); ForLetClause clause= new ForLetClause(); PathExpr inputSequence = new PathExpr(context); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_as: { AST __t340 = _t; org.exist.xquery.parser.XQueryAST tmp9_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_as); _t = _t.getFirstChild(); sequenceType(_t,clause.sequenceType); _t = _retTree; _t = __t340; _t = _t.getNextSibling(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 127: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 139: case 140: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 144: case 145: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_preceding: case COMP_DOC_CONSTRUCTOR: { break; } default: { throw new NoViableAltException(_t); } } } step=expr(_t,inputSequence); _t = _retTree; clause.varName= everyVarName.getText(); clause.inputSequence= inputSequence; clauses.add(clause); _t = __t338; _t = _t.getNextSibling(); } else { break _loop341; } } while (true); } step=expr(_t,satisfiesExpr); _t = _retTree; Expression action = satisfiesExpr; for (int i= clauses.size() - 1; i >= 0; i--) { ForLetClause clause= (ForLetClause) clauses.get(i); BindingExpression expr = new QuantifiedExpression(context, QuantifiedExpression.EVERY); expr.setVariable(clause.varName); expr.setSequenceType(clause.sequenceType); expr.setInputSequence(clause.inputSequence); expr.setReturnExpression(action); satisfiesExpr= null; action= expr; } path.add(action); step = action; _t = __t336; _t = _t.getNextSibling(); break; } case LITERAL_return: { AST __t342 = _t; org.exist.xquery.parser.XQueryAST tmp10_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_return); _t = _t.getFirstChild(); List clauses= new ArrayList(); Expression action= new PathExpr(context); PathExpr whereExpr= null; List orderBy= null; { int _cnt357=0; _loop357: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_for: { AST __t344 = _t; org.exist.xquery.parser.XQueryAST tmp11_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_for); _t = _t.getFirstChild(); { int _cnt350=0; _loop350: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VARIABLE_BINDING)) { AST __t346 = _t; varName = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,VARIABLE_BINDING); _t = _t.getFirstChild(); ForLetClause clause= new ForLetClause(); PathExpr inputSequence= new PathExpr(context); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_as: { AST __t348 = _t; org.exist.xquery.parser.XQueryAST tmp12_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_as); _t = _t.getFirstChild(); clause.sequenceType= new SequenceType(); sequenceType(_t,clause.sequenceType); _t = _retTree; _t = __t348; _t = _t.getNextSibling(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case POSITIONAL_VAR: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 127: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 139: case 140: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 144: case 145: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_preceding: case COMP_DOC_CONSTRUCTOR: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case POSITIONAL_VAR: { posVar = (org.exist.xquery.parser.XQueryAST)_t; match(_t,POSITIONAL_VAR); _t = _t.getNextSibling(); clause.posVar= posVar.getText(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 127: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 139: case 140: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 144: case 145: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_preceding: case COMP_DOC_CONSTRUCTOR: { break; } default: { throw new NoViableAltException(_t); } } } step=expr(_t,inputSequence); _t = _retTree; clause.varName= varName.getText(); clause.inputSequence= inputSequence; clauses.add(clause); _t = __t346; _t = _t.getNextSibling(); } else { if ( _cnt350>=1 ) { break _loop350; } else {throw new NoViableAltException(_t);} } _cnt350++; } while (true); } _t = __t344; _t = _t.getNextSibling(); break; } case LITERAL_let: { AST __t351 = _t; org.exist.xquery.parser.XQueryAST tmp13_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_let); _t = _t.getFirstChild(); { int _cnt356=0; _loop356: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VARIABLE_BINDING)) { AST __t353 = _t; letVarName = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,VARIABLE_BINDING); _t = _t.getFirstChild(); ForLetClause clause= new ForLetClause(); clause.isForClause= false; PathExpr inputSequence= new PathExpr(context); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_as: { AST __t355 = _t; org.exist.xquery.parser.XQueryAST tmp14_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_as); _t = _t.getFirstChild(); clause.sequenceType= new SequenceType(); sequenceType(_t,clause.sequenceType); _t = _retTree; _t = __t355; _t = _t.getNextSibling(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 127: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 139: case 140: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 144: case 145: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_preceding: case COMP_DOC_CONSTRUCTOR: { break; } default: { throw new NoViableAltException(_t); } } } step=expr(_t,inputSequence); _t = _retTree; clause.varName= letVarName.getText(); clause.inputSequence= inputSequence; clauses.add(clause); _t = __t353; _t = _t.getNextSibling(); } else { if ( _cnt356>=1 ) { break _loop356; } else {throw new NoViableAltException(_t);} } _cnt356++; } while (true); } _t = __t351; _t = _t.getNextSibling(); break; } default: { if ( _cnt357>=1 ) { break _loop357; } else {throw new NoViableAltException(_t);} } } _cnt357++; } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_where: { org.exist.xquery.parser.XQueryAST tmp15_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_where); _t = _t.getNextSibling(); whereExpr= new PathExpr(context); step=expr(_t,whereExpr); _t = _retTree; break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case ORDER_BY: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 127: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 139: case 140: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 144: case 145: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_preceding: case COMP_DOC_CONSTRUCTOR: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ORDER_BY: { AST __t360 = _t; org.exist.xquery.parser.XQueryAST tmp16_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,ORDER_BY); _t = _t.getFirstChild(); orderBy= new ArrayList(3); { int _cnt367=0; _loop367: do { if (_t==null) _t=ASTNULL; if ((_tokenSet_0.member(_t.getType()))) { PathExpr orderSpecExpr= new PathExpr(context); step=expr(_t,orderSpecExpr); _t = _retTree; OrderSpec orderSpec= new OrderSpec(context, orderSpecExpr); int modifiers= 0; orderBy.add(orderSpec); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_ascending: case LITERAL_descending: { { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_ascending: { org.exist.xquery.parser.XQueryAST tmp17_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_ascending); _t = _t.getNextSibling(); break; } case LITERAL_descending: { org.exist.xquery.parser.XQueryAST tmp18_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_descending); _t = _t.getNextSibling(); modifiers= OrderSpec.DESCENDING_ORDER; orderSpec.setModifiers(modifiers); break; } default: { throw new NoViableAltException(_t); } } } break; } case 3: case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LITERAL_collation: case LCURLY: case COMMA: case LITERAL_empty: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 127: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 139: case 140: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 144: case 145: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_preceding: case COMP_DOC_CONSTRUCTOR: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_empty: { org.exist.xquery.parser.XQueryAST tmp19_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_empty); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_greatest: { org.exist.xquery.parser.XQueryAST tmp20_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_greatest); _t = _t.getNextSibling(); break; } case LITERAL_least: { org.exist.xquery.parser.XQueryAST tmp21_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_least); _t = _t.getNextSibling(); modifiers |= OrderSpec.EMPTY_LEAST; orderSpec.setModifiers(modifiers); break; } default: { throw new NoViableAltException(_t); } } } break; } case 3: case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LITERAL_collation: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 127: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 139: case 140: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 144: case 145: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_preceding: case COMP_DOC_CONSTRUCTOR: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_collation: { org.exist.xquery.parser.XQueryAST tmp22_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_collation); _t = _t.getNextSibling(); collURI = (org.exist.xquery.parser.XQueryAST)_t; match(_t,STRING_LITERAL); _t = _t.getNextSibling(); orderSpec.setCollation(collURI.getText()); break; } case 3: case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 127: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 139: case 140: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 144: case 145: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_preceding: case COMP_DOC_CONSTRUCTOR: { break; } default: { throw new NoViableAltException(_t); } } } } else { if ( _cnt367>=1 ) { break _loop367; } else {throw new NoViableAltException(_t);} } _cnt367++; } while (true); } _t = __t360; _t = _t.getNextSibling(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 127: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 139: case 140: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 144: case 145: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_preceding: case COMP_DOC_CONSTRUCTOR: { break; } default: { throw new NoViableAltException(_t); } } } step=expr(_t,(PathExpr) action); _t = _retTree; for (int i= clauses.size() - 1; i >= 0; i--) { ForLetClause clause= (ForLetClause) clauses.get(i); BindingExpression expr; if (clause.isForClause) expr= new ForExpr(context); else expr= new LetExpr(context); expr.setVariable(clause.varName); expr.setSequenceType(clause.sequenceType); expr.setInputSequence(clause.inputSequence); expr.setReturnExpression(action); if (clause.isForClause) ((ForExpr) expr).setPositionalVariable(clause.posVar); if (whereExpr != null) { expr.setWhereExpression(whereExpr); whereExpr= null; } action= expr; } if (orderBy != null) { OrderSpec orderSpecs[]= new OrderSpec[orderBy.size()]; int k= 0; for (Iterator j= orderBy.iterator(); j.hasNext(); k++) { OrderSpec orderSpec= (OrderSpec) j.next(); orderSpecs[k]= orderSpec; } ((BindingExpression)action).setOrderSpecs(orderSpecs); } path.add(action); step = action; _t = __t342; _t = _t.getNextSibling(); break; } case LITERAL_instance: { AST __t368 = _t; org.exist.xquery.parser.XQueryAST tmp23_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_instance); _t = _t.getFirstChild(); PathExpr expr = new PathExpr(context); SequenceType type= new SequenceType(); step=expr(_t,expr); _t = _retTree; sequenceType(_t,type); _t = _retTree; step = new InstanceOfExpression(context, expr, type); path.add(step); _t = __t368; _t = _t.getNextSibling(); break; } case LITERAL_or: { AST __t369 = _t; org.exist.xquery.parser.XQueryAST tmp24_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_or); _t = _t.getFirstChild(); PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t369; _t = _t.getNextSibling(); OpOr or= new OpOr(context); or.addPath(left); or.addPath(right); path.addPath(or); step = or; break; } case LITERAL_and: { AST __t370 = _t; org.exist.xquery.parser.XQueryAST tmp25_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_and); _t = _t.getFirstChild(); PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t370; _t = _t.getNextSibling(); OpAnd and= new OpAnd(context); and.addPath(left); and.addPath(right); path.addPath(and); step = and; break; } case UNION: { AST __t371 = _t; org.exist.xquery.parser.XQueryAST tmp26_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,UNION); _t = _t.getFirstChild(); PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t371; _t = _t.getNextSibling(); Union union= new Union(context, left, right); path.add(union); step = union; break; } case LITERAL_intersect: { AST __t372 = _t; org.exist.xquery.parser.XQueryAST tmp27_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_intersect); _t = _t.getFirstChild(); PathExpr left = new PathExpr(context); PathExpr right = new PathExpr(context); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t372; _t = _t.getNextSibling(); Intersection intersect = new Intersection(context, left, right); path.add(intersect); step = intersect; break; } case LITERAL_except: { AST __t373 = _t; org.exist.xquery.parser.XQueryAST tmp28_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_except); _t = _t.getFirstChild(); PathExpr left = new PathExpr(context); PathExpr right = new PathExpr(context); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t373; _t = _t.getNextSibling(); Except intersect = new Except(context, left, right); path.add(intersect); step = intersect; break; } case ABSOLUTE_SLASH: { AST __t374 = _t; org.exist.xquery.parser.XQueryAST tmp29_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,ABSOLUTE_SLASH); _t = _t.getFirstChild(); RootNode root= new RootNode(context); path.add(root); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 127: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 139: case 140: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 144: case 145: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_preceding: case COMP_DOC_CONSTRUCTOR: { step=expr(_t,path); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t374; _t = _t.getNextSibling(); break; } case ABSOLUTE_DSLASH: { AST __t376 = _t; org.exist.xquery.parser.XQueryAST tmp30_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,ABSOLUTE_DSLASH); _t = _t.getFirstChild(); RootNode root= new RootNode(context); path.add(root); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 127: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 139: case 140: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 144: case 145: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_preceding: case COMP_DOC_CONSTRUCTOR: { step=expr(_t,path); _t = _retTree; if (step instanceof LocationStep) { LocationStep s= (LocationStep) step; if (s.getAxis() == Constants.ATTRIBUTE_AXIS) // combines descendant-or-self::node()/attribute:* s.setAxis(Constants.DESCENDANT_ATTRIBUTE_AXIS); else s.setAxis(Constants.DESCENDANT_SELF_AXIS); } else step.setPrimaryAxis(Constants.DESCENDANT_SELF_AXIS); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t376; _t = _t.getNextSibling(); break; } case LITERAL_to: { AST __t378 = _t; org.exist.xquery.parser.XQueryAST tmp31_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_to); _t = _t.getFirstChild(); PathExpr start= new PathExpr(context); PathExpr end= new PathExpr(context); List args= new ArrayList(2); args.add(start); args.add(end); step=expr(_t,start); _t = _retTree; step=expr(_t,end); _t = _retTree; RangeExpression range= new RangeExpression(context); range.setArguments(args); path.addPath(range); step = range; _t = __t378; _t = _t.getNextSibling(); break; } case EQ: case LT: case GT: case NEQ: case GTEQ: case LTEQ: { step=generalComp(_t,path); _t = _retTree; break; } case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: { step=valueComp(_t,path); _t = _retTree; break; } case BEFORE: case AFTER: case LITERAL_is: case LITERAL_isnot: { step=nodeComp(_t,path); _t = _retTree; break; } case ANDEQ: case OREQ: { step=fulltextComp(_t,path); _t = _retTree; break; } case PARENTHESIZED: case FUNCTION: case VARIABLE_REF: case ELEMENT: case TEXT: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case STRING_LITERAL: case LCURLY: case XML_COMMENT: case XML_PI: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case COMP_DOC_CONSTRUCTOR: { step=primaryExpr(_t,path); _t = _retTree; break; } case QNAME: case WILDCARD: case PREFIX_WILDCARD: case ATTRIBUTE_TEST: case NCNAME: case LITERAL_element: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 127: case SELF: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 139: case 140: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 144: case 145: case LITERAL_preceding: { step=pathExpr(_t,path); _t = _retTree; break; } case UNARY_MINUS: case UNARY_PLUS: case STAR: case PLUS: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: { step=numericExpr(_t,path); _t = _retTree; break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; return step; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/06537933dfbae14c444eb15b44247b312b5f47d7/XQueryTreeParser.java/clean/src/org/exist/xquery/parser/XQueryTreeParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
5371,
225,
3065,
12,
9053,
389,
88,
16,
202,
202,
743,
4742,
589,
202,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
16,
14124,
503,
288,
202,
202,
2300,
2235,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
5371,
225,
3065,
12,
9053,
389,
88,
16,
202,
202,
743,
4742,
589,
202,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
16,
14124,
503,
288,
202,
202,
2300,
2235,
3... |
public void set(org.quickfix.field.PartyID value) | public void set(quickfix.field.PartyID value) | public void set(org.quickfix.field.PartyID value) { setField(value); } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/RegistrationInstructionsResponse.java/clean/src/java/src/quickfix/fix43/RegistrationInstructionsResponse.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
12,
19525,
904,
18,
1518,
18,
17619,
734,
460,
13,
225,
288,
16331,
12,
1132,
1769,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
12,
19525,
904,
18,
1518,
18,
17619,
734,
460,
13,
225,
288,
16331,
12,
1132,
1769,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (typeName == null) return null; | if( typeName == null ) { return null; } | private static String normalizeTypeName(String typeName) { if (typeName == null) return null; if (typeName.endsWith("Impl") && typeName.length() > "Impl".length()) { return typeName.substring(0, typeName.length() - "Impl".length()); } return typeName; } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/c0acc0d23c610efb640c80212199ae2ad36ce3ac/CodeStyleManagerImpl.java/buggy/source/com/intellij/psi/impl/source/codeStyle/CodeStyleManagerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
514,
3883,
7947,
12,
780,
8173,
13,
288,
565,
309,
12,
8173,
422,
446,
262,
288,
327,
446,
31,
289,
565,
309,
261,
723,
461,
18,
5839,
1190,
2932,
2828,
7923,
597,
8173,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
514,
3883,
7947,
12,
780,
8173,
13,
288,
565,
309,
12,
8173,
422,
446,
262,
288,
327,
446,
31,
289,
565,
309,
261,
723,
461,
18,
5839,
1190,
2932,
2828,
7923,
597,
8173,
18... |
private static byte int2AddrSigExt(OPT_Instruction s) { | private static DefUseEffect int2AddrSigExt(OPT_Instruction s) { | private static byte int2AddrSigExt(OPT_Instruction s) { if (CF_ADDR) { OPT_Operand op = Unary.getVal(s); if (op.isIntConstant()) { // CONSTANT: FOLD int val = op.asIntConstant().value; Move.mutate(s, REF_MOVE, Unary.getClearResult(s), AC(Address.fromIntSignExtend(val))); return MOVE_FOLDED; } } return UNCHANGED; } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/4f52a59569c48e68010a63e605ee6691083a9e97/OPT_Simplifier.java/buggy/rvm/src/com/ibm/jikesrvm/opt/OPT_Simplifier.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
10922,
3727,
12477,
509,
22,
3178,
8267,
2482,
12,
15620,
67,
11983,
272,
13,
288,
282,
309,
261,
8955,
67,
14142,
13,
288,
1377,
16456,
67,
10265,
1061,
273,
20324,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
10922,
3727,
12477,
509,
22,
3178,
8267,
2482,
12,
15620,
67,
11983,
272,
13,
288,
282,
309,
261,
8955,
67,
14142,
13,
288,
1377,
16456,
67,
10265,
1061,
273,
20324,
18,
588,
... |
XSDocumentInfo (Document schemaDoc, XSAttributeChecker attrChecker, SymbolTable symbolTable) { fSchemaDoc = schemaDoc; fNamespaceSupport = new SchemaNamespaceSupport(); fIsChameleonSchema = false; fSymbolTable = symbolTable; // During XML Schema traversal bind "xml" prefix to // "http://www.w3.org/XML/1998/namespace" // per Namespace Constraint: Prefix Declared (Namespaces in XML REC) fNamespaceSupport.declarePrefix(symbolTable.addSymbol("xml"), symbolTable.addSymbol("http://www.w3.org/XML/1998/namespace")); if(schemaDoc != null) { Element root = DOMUtil.getRoot(schemaDoc); Object[] schemaAttrs = attrChecker.checkAttributes(root, true, this); fAreLocalAttributesQualified = ((XInt)schemaAttrs[XSAttributeChecker.ATTIDX_AFORMDEFAULT]).intValue() == SchemaSymbols.FORM_QUALIFIED; fAreLocalElementsQualified = ((XInt)schemaAttrs[XSAttributeChecker.ATTIDX_EFORMDEFAULT]).intValue() == SchemaSymbols.FORM_QUALIFIED; fBlockDefault = ((XInt)schemaAttrs[XSAttributeChecker.ATTIDX_BLOCKDEFAULT]).shortValue(); fFinalDefault = ((XInt)schemaAttrs[XSAttributeChecker.ATTIDX_FINALDEFAULT]).shortValue(); fTargetNamespace = (String)schemaAttrs[XSAttributeChecker.ATTIDX_TARGETNAMESPACE]; if(fTargetNamespace != null && fTargetNamespace.length() == 0) fTargetNamespace = null; if (fTargetNamespace != null) fTargetNamespace = symbolTable.addSymbol(fTargetNamespace); fNamespaceSupportRoot = new SchemaNamespaceSupport(fNamespaceSupport); //set namespace support fValidationContext.setNamespaceSupport(fNamespaceSupport); fValidationContext.setSymbolTable(symbolTable); // REVISIT: we can't return, becaues we can't pop fNamespaceSupport //attrChecker.returnAttrArray(schemaAttrs, this); } } | 1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/970ce40ae1182183dee7e0be723e7037875919c2/XSDocumentInfo.java/clean/src/org/apache/xerces/impl/xs/traversers/XSDocumentInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1139,
55,
2519,
966,
261,
2519,
1963,
1759,
16,
1139,
55,
1499,
8847,
1604,
8847,
16,
8565,
1388,
26086,
13,
288,
3639,
284,
3078,
1759,
273,
1963,
1759,
31,
3639,
284,
3402,
6289,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1139,
55,
2519,
966,
261,
2519,
1963,
1759,
16,
1139,
55,
1499,
8847,
1604,
8847,
16,
8565,
1388,
26086,
13,
288,
3639,
284,
3078,
1759,
273,
1963,
1759,
31,
3639,
284,
3402,
6289,
273,
... | ||
PrimArray result; | public PrimIntegerArray hold(int index, IntegerValue value, boolean canModify) { PrimArray result; if (index < 0) { throw new IndexOutOfBoundsException(); } if (index >= count()) { if (((PrimIntegerSpec) spec()).canHold(value)) { result = spec().copyGrow(this, index + 1 - count()); } else { result = PrimSpec.toHold(value).copyGrow(this, index + 1 - count()); } } else { if (((PrimIntegerSpec) spec()).canHold(value)) { if (canModify) { result = this; } else { result = copy(); } } else { result = PrimSpec.toHold(value).copy(this); } } ((PrimIntegerArray) result).storeInteger(index, value); return (PrimIntegerArray) result; // RPTR(PrimIntegerArray) PrimIntegerArray::hold (Int32 index, // IntegerVar value, // BooleanVar canModify/* = FALSE*/) // { // /* Store a new value into the array at the given index. If // the value does not fit into the range that can be stored // here, return an array of a kind that will accept it. If the // index is past the end, return a larger array. // If canModify, then returns a newly created array only if the // value will not fit into this one, otherwise will always // return a new array. */ // // SPTR(PrimArray) result; // // if (index < 0) { // BLAST(IndexOutOfBounds); // } // if (index >= this->count()) { // if (CAST(PrimIntegerSpec,this->spec())->canHold(value)) { // result = this->spec()->copyGrow(this, index + 1 - this->count()); // } else { // result = PrimSpec::toHold(value)->copyGrow(this, index + 1 - this->count()); // } // } else { // if (CAST(PrimIntegerSpec,this->spec())->canHold(value)) { // if (canModify) { // result = this; // } else { // result = this->copy(); // } // } else { // result = PrimSpec::toHold(value)->copy(this); // } // } // CAST(PrimIntegerArray,result)->storeInteger(index, value); // return CAST(PrimIntegerArray,result); // } } | 6519 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6519/e5454863320bd523ca613fc31472d9b4461de427/PrimIntegerArray.java/clean/src/org/abora/white/collection/arrays/PrimIntegerArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2301,
381,
4522,
1076,
6887,
12,
474,
770,
16,
2144,
620,
460,
16,
1250,
848,
11047,
13,
288,
202,
202,
2050,
381,
1076,
563,
31,
202,
202,
430,
261,
1615,
411,
374,
13,
288... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2301,
381,
4522,
1076,
6887,
12,
474,
770,
16,
2144,
620,
460,
16,
1250,
848,
11047,
13,
288,
202,
202,
2050,
381,
1076,
563,
31,
202,
202,
430,
261,
1615,
411,
374,
13,
288... | |
return node.key; | return e.getKey(); | public SK firstKey() { Node<SK,SV> node = (Node<SK,SV>) lowestGreaterThan(minKey, true); if (node == nil || ! keyInRange(node.key)) throw new NoSuchElementException(); return node.key; } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/7959ecb038eadae99e617348ee69bbc2e9d87e2f/TreeMap.java/clean/java/util/TreeMap.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
12038,
1122,
653,
1435,
565,
288,
1377,
2029,
32,
11129,
16,
23927,
34,
756,
273,
261,
907,
32,
11129,
16,
23927,
23429,
11981,
28130,
12,
1154,
653,
16,
638,
1769,
1377,
309,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
12038,
1122,
653,
1435,
565,
288,
1377,
2029,
32,
11129,
16,
23927,
34,
756,
273,
261,
907,
32,
11129,
16,
23927,
23429,
11981,
28130,
12,
1154,
653,
16,
638,
1769,
1377,
309,
261,
... |
floatingWindow = null; return false; | synchronized(windowLock){ floatingWindow = null; return false; } | public boolean shouldRun() { if (AnimationManager.getInstance().isAnimated()) return true; //If there is no window than do not run floatingWindow = null; return false; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/20f92ea456f837343325deaa5f296d646e527227/AnimationItem.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/AnimationItem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
1250,
1410,
1997,
1435,
288,
9506,
202,
430,
261,
10816,
1318,
18,
588,
1442,
7675,
291,
979,
17275,
10756,
6862,
202,
2463,
638,
31,
9506,
202,
759,
2047,
1915,
353,
1158,
274... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
482,
1250,
1410,
1997,
1435,
288,
9506,
202,
430,
261,
10816,
1318,
18,
588,
1442,
7675,
291,
979,
17275,
10756,
6862,
202,
2463,
638,
31,
9506,
202,
759,
2047,
1915,
353,
1158,
274... |
}); } catch (final Throwable t) { SwingUtilities.invokeLater(new Runnable() { public void run() { SchemaTabSet.this.martTab.getMartTabSet() .getMartBuilder().showStackTrace(t); } }); } } | public void run() { try { // Remove the key. MartBuilderUtils.removeKey(SchemaTabSet.this.martTab .getMart(), key); SwingUtilities.invokeLater(new Runnable() { public void run() { // Recalculate the schema diagram this key appears // in, as // the table components will have changed size, and // some // relations may have disappeared. SchemaTabSet.this.recalculateSchemaDiagram(key .getTable().getSchema()); // The same may have happened in the all-schemas // diagram if // this key had any external relations, or belonged // to a // table which had external relations on some other // key. SchemaTabSet.this.recalculateOverviewDiagram(); // This may have caused new dimensions or subclass // tables to // appear in datasets referring to tables in this // schema, so // we need to recalculate all dataset // org.biomart.builder.view.gui.diagrams just // in case. SchemaTabSet.this.martTab.getDataSetTabSet() .recalculateAllDataSetDiagrams(); // Set the dataset tabset status to modified. SchemaTabSet.this.martTab.getMartTabSet() .setModifiedStatus(true); } }); } catch (final Throwable t) { SwingUtilities.invokeLater(new Runnable() { public void run() { SchemaTabSet.this.martTab.getMartTabSet() .getMartBuilder().showStackTrace(t); } }); } } | 2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/c76d481210454f27e1173655b5a81de5e759e689/SchemaTabSet.java/clean/src/java/org/biomart/builder/view/gui/SchemaTabSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1086,
1435,
288,
9506,
202,
698,
288,
6862,
202,
759,
3581,
326,
498,
18,
6862,
202,
49,
485,
1263,
1989,
18,
4479,
653,
12,
3078,
5661,
694,
18,
2211,
18,
81,
485,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1086,
1435,
288,
9506,
202,
698,
288,
6862,
202,
759,
3581,
326,
498,
18,
6862,
202,
49,
485,
1263,
1989,
18,
4479,
653,
12,
3078,
5661,
694,
18,
2211,
18,
81,
485,
56... | |
public boolean supportsCustomEditor() { return false; } | public boolean supportsCustomEditor() { return false; } | public boolean supportsCustomEditor() { return false; } | 25337 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25337/d1d54223348b2f353d3505c9de3cf685bdb5301f/PropertyEditorSupport.java/buggy/libjava/java/beans/PropertyEditorSupport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
6146,
3802,
6946,
1435,
288,
202,
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,
... | [
1,
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,
482,
1250,
6146,
3802,
6946,
1435,
288,
202,
202,
2463,
629,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
setEnabled(hasSingleConcreteSelection(selection)); | setEnabled(Util.isSingleConcreteSelection(selection)); | public void selectionChanged(IStructuredSelection selection) { setEnabled(hasSingleConcreteSelection(selection)); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/73103bc58e685398eb5ea2343dc210da72bc916e/ActionProblemProperties.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionProblemProperties.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4421,
5033,
12,
45,
30733,
6233,
4421,
13,
288,
3639,
12888,
12,
1304,
18,
291,
5281,
25845,
6233,
12,
10705,
10019,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
4421,
5033,
12,
45,
30733,
6233,
4421,
13,
288,
3639,
12888,
12,
1304,
18,
291,
5281,
25845,
6233,
12,
10705,
10019,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
{ return rom.readByte(row * ROW_SIZE, row == getRowCount() - 1 ? getLastRowSize() : ROW_SIZE); } | { return rom.readByte(row * ROW_SIZE, row == getRowCount() - 1 ? getLastRowSize() : ROW_SIZE); } | public byte[] getRow(int row) { return rom.readByte(row * ROW_SIZE, row == getRowCount() - 1 ? getLastRowSize() : ROW_SIZE); } | 3699 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3699/c27209e5494d2d743b31e73feafe356ba0db2891/HexRom.java/buggy/src/net/starmen/pkhack/HexRom.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1160,
8526,
11835,
12,
474,
1027,
13,
3639,
288,
5411,
327,
24137,
18,
896,
3216,
12,
492,
380,
29589,
67,
4574,
16,
1027,
422,
11835,
1380,
1435,
300,
404,
692,
7595,
1999,
1225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1160,
8526,
11835,
12,
474,
1027,
13,
3639,
288,
5411,
327,
24137,
18,
896,
3216,
12,
492,
380,
29589,
67,
4574,
16,
1027,
422,
11835,
1380,
1435,
300,
404,
692,
7595,
1999,
1225,
... |
if ( getTrim() | if ( isTrim() | public Script getBody() { if ( getTrim() && ! hasTrimmed ) { trimBody(); } return body; } | 51800 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51800/7187733c4e911454e5767e96869b87f8462aac9c/TagSupport.java/buggy/src/java/org/apache/commons/jelly/TagSupport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
7739,
7587,
1435,
288,
3639,
309,
261,
353,
14795,
1435,
2398,
597,
2398,
401,
711,
14795,
2937,
262,
3639,
288,
5411,
2209,
2250,
5621,
3639,
289,
3639,
327,
1417,
31,
565,
289,
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,
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,
7739,
7587,
1435,
288,
3639,
309,
261,
353,
14795,
1435,
2398,
597,
2398,
401,
711,
14795,
2937,
262,
3639,
288,
5411,
2209,
2250,
5621,
3639,
289,
3639,
327,
1417,
31,
565,
289,
2,... |
public org.quickfix.field.SettlDate2 getSettlDate2() throws FieldNotFound { org.quickfix.field.SettlDate2 value = new org.quickfix.field.SettlDate2(); | public quickfix.field.SettlDate2 getSettlDate2() throws FieldNotFound { quickfix.field.SettlDate2 value = new quickfix.field.SettlDate2(); | public org.quickfix.field.SettlDate2 getSettlDate2() throws FieldNotFound { org.quickfix.field.SettlDate2 value = new org.quickfix.field.SettlDate2(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/Quote.java/clean/src/java/src/quickfix/fix44/Quote.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
694,
6172,
1626,
22,
336,
694,
6172,
1626,
22,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
694,
6172,
1626,
22,
460,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
694,
6172,
1626,
22,
336,
694,
6172,
1626,
22,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
694,
6172,
1626,
22,
460,
... |
assertEquals(capacityNormal, this.channel1 | assertEquals(CAPACITY_NORMAL, this.channel1 | public void testReadByteBuffer_BufNull() throws Exception { assertTrue(this.server1.isBound()); java.nio.ByteBuffer readBuf = java.nio.ByteBuffer.allocate(0); // note: blocking-mode will make the read process endless! this.channel1.configureBlocking(false); try { assertEquals(capacityNormal, this.channel1 .read((java.nio.ByteBuffer) null)); fail("Should throw NPE"); } catch (NullPointerException e) { // correct } this.channel1.connect(localAddr1); if (tryFinish()) { try { assertEquals(capacityNormal, this.channel1 .read((java.nio.ByteBuffer) null)); fail("Should throw NPE"); } catch (NullPointerException e) { // correct } assertEquals(0, this.channel1.read(readBuf)); } this.server1.close(); try { assertEquals(capacityNormal, this.channel1 .read((java.nio.ByteBuffer) null)); fail("Should throw NPE"); } catch (NullPointerException e) { // correct } } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/dd7d7186a3fd62e298a4a14d517dace20da8539c/SocketChannelTest.java/buggy/modules/nio/src/test/java/org/apache/harmony/tests/java/nio/channels/SocketChannelTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1994,
12242,
67,
5503,
2041,
1435,
1216,
1185,
288,
3639,
1815,
5510,
12,
2211,
18,
3567,
21,
18,
291,
3499,
10663,
3639,
2252,
18,
82,
1594,
18,
12242,
855,
5503,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1994,
12242,
67,
5503,
2041,
1435,
1216,
1185,
288,
3639,
1815,
5510,
12,
2211,
18,
3567,
21,
18,
291,
3499,
10663,
3639,
2252,
18,
82,
1594,
18,
12242,
855,
5503,
273,
... |
if (jj_scan_token(TILDE)) return true; | if (jj_scan_token(IDENTIFIER)) return true; if (jj_scan_token(ASSIGN)) return true; if (jj_3R_87()) return true; | final private boolean jj_3R_278() { if (jj_scan_token(TILDE)) return true; return false; } | 45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/1d8de6b34ea0ddb64fc94b478c0950c0d35de605/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
5324,
28,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
16606,
3719,
327,
638,
31,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
2328... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
5324,
28,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
16606,
3719,
327,
638,
31,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
2328... |
public void setRemoved(boolean removedValue) { | protected void setRemoved(boolean removedValue) { | public void setRemoved(boolean removedValue) { this.removed = removedValue; } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/c6cdb64c69aa98d81cdbb14125043293310564cc/PendingUpdateAdapter.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/progress/PendingUpdateAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
444,
10026,
12,
6494,
3723,
620,
13,
288,
3639,
333,
18,
14923,
273,
3723,
620,
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,
... | [
1,
1,
1,
1,
1,
1,
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,
4750,
918,
444,
10026,
12,
6494,
3723,
620,
13,
288,
3639,
333,
18,
14923,
273,
3723,
620,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Node internalInsertBefore(Node newChild, Node refChild,int mutationMask) throws DOMException { if (isReadOnly()) throw new DOMExceptionImpl( DOMException.NO_MODIFICATION_ALLOWED_ERR, "DOM001 Modification not allowed"); boolean errorChecking = ownerDocument.errorChecking; if (errorChecking && newChild.getOwnerDocument() != ownerDocument) { throw new DOMExceptionImpl(DOMException.WRONG_DOCUMENT_ERR, "DOM005 Wrong document"); } if (needsSyncChildren()) { synchronizeChildren(); } if (errorChecking) { // Prevent cycles in the tree boolean treeSafe = true; for (NodeImpl a = parentNode(); treeSafe && a != null; a = a.parentNode()) { treeSafe = newChild != a; } if(!treeSafe) { throw new DOMExceptionImpl(DOMException.HIERARCHY_REQUEST_ERR, "DOM006 Hierarchy request error"); } // refChild must in fact be a child of this node (or null) if(refChild != null && refChild.getParentNode() != this) { throw new DOMExceptionImpl(DOMException.NOT_FOUND_ERR, "DOM008 Not found"); } } if (newChild.getNodeType() == Node.DOCUMENT_FRAGMENT_NODE) { // SLOW BUT SAFE: We could insert the whole subtree without // juggling so many next/previous pointers. (Wipe out the // parent's child-list, patch the parent pointers, set the // ends of the list.) But we know some subclasses have special- // case behavior they add to insertBefore(), so we don't risk it. // This approch also takes fewer bytecodes. // NOTE: If one of the children is not a legal child of this // node, throw HIERARCHY_REQUEST_ERR before _any_ of the children // have been transferred. (Alternative behaviors would be to // reparent up to the first failure point or reparent all those // which are acceptable to the target node, neither of which is // as robust. PR-DOM-0818 isn't entirely clear on which it // recommends????? // No need to check kids for right-document; if they weren't, // they wouldn't be kids of that DocFrag. for (Node kid = newChild.getFirstChild(); // Prescan kid != null; kid = kid.getNextSibling()) { if (errorChecking && !ownerDocument.isKidOK(this, kid)) { throw new DOMExceptionImpl( DOMException.HIERARCHY_REQUEST_ERR, "DOM006 Hierarchy request error"); } } while (newChild.hasChildNodes()) { insertBefore(newChild.getFirstChild(), refChild); } } else if (errorChecking && (!(newChild instanceof ChildNode) || !ownerDocument.isKidOK(this, newChild))) { throw new DOMExceptionImpl(DOMException.HIERARCHY_REQUEST_ERR, "DOM006 Hierarchy request error"); } else { // Convert to internal type, to avoid repeated casting ChildNode newInternal = (ChildNode)newChild; EnclosingAttr enclosingAttr=null; if(MUTATIONEVENTS && (mutationMask&MUTATION_AGGREGATE)!=0) { // MUTATION PREPROCESSING // No direct pre-events, but if we're within the scope // of an Attr and DOMAttrModified was requested, // we need to preserve its previous value. LCount lc=LCount.lookup(MutationEventImpl.DOM_ATTR_MODIFIED); if(lc.captures+lc.bubbles+lc.defaults>0) { enclosingAttr=getEnclosingAttr(); } } Node oldparent = newInternal.parentNode(); if (oldparent != null) { oldparent.removeChild(newInternal); } // Convert to internal type, to avoid repeated casting ChildNode refInternal = (ChildNode)refChild; ChildNode prev; // Find the node we're inserting after, if any (null if // inserting to head of list) prev = (refInternal == null) ? lastChild() : refInternal.previousSibling; // Attach up newInternal.ownerNode = this; newInternal.isOwned(true); // Attach after newInternal.previousSibling = prev; if (refInternal == firstChild) { firstChild = newInternal; newInternal.isFirstChild(true); } else { prev.nextSibling = newInternal; } // Attach before newInternal.nextSibling = refInternal; if (refInternal == null) { // store lastChild as previous sibling of first child firstChild.previousSibling = newInternal; } else { refInternal.previousSibling = newInternal; refInternal.isFirstChild(false); } changed(); // update cache if we have any if (nodeListLength != -1) { nodeListLength++; } if (nodeListIndex != -1) { // if the cache happens to be the refNode do the obvious if (nodeListNode == refInternal) { nodeListIndex--; nodeListNode = newInternal; } else { // otherwise just invalidate it nodeListIndex = -1; } } if(MUTATIONEVENTS) { // MUTATION POST-EVENTS: // "Local" events (non-aggregated) if( (mutationMask&MUTATION_LOCAL) != 0) { // New child is told it was inserted, and where LCount lc = LCount.lookup(MutationEventImpl.DOM_NODE_INSERTED); if(lc.captures+lc.bubbles+lc.defaults>0) { MutationEvent me= new MutationEventImpl(); //?????ownerDocument.createEvent("MutationEvents"); me.initMutationEvent( MutationEventImpl.DOM_NODE_INSERTED, true,false,this,null,null,null); newInternal.dispatchEvent(me); } // If within the Document, tell the subtree it's been added // to the Doc. lc=LCount.lookup( MutationEventImpl.DOM_NODE_INSERTED_INTO_DOCUMENT); if(lc.captures+lc.bubbles+lc.defaults>0) { NodeImpl eventAncestor=this; if(enclosingAttr!=null) eventAncestor= (NodeImpl)(enclosingAttr.node.getOwnerElement()); if(eventAncestor!=null) // Might have been orphan Attr { NodeImpl p=eventAncestor; while(p!=null) { eventAncestor=p; // Last non-null ancestor // In this context, ancestry includes // walking back from Attr to Element if(p.getNodeType()==ATTRIBUTE_NODE) p=(ElementImpl) ((AttrImpl)p).getOwnerElement(); else p=p.parentNode(); } if(eventAncestor.getNodeType()==Node.DOCUMENT_NODE) { MutationEvent me= new MutationEventImpl(); //??ownerDocument.createEvent("MutationEvents") me.initMutationEvent(MutationEventImpl .DOM_NODE_INSERTED_INTO_DOCUMENT, false,false, null,null,null,null); dispatchEventToSubtree(newInternal,me); } } } } // Subroutine: Transmit DOMAttrModified and DOMSubtreeModified // (Common to most kinds of mutation) if( (mutationMask&MUTATION_AGGREGATE) != 0) dispatchAggregateEvents(enclosingAttr); } } return newChild; } // internalInsertBefore(Node,Node,int):Node | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/42188be95585cd27cb21281ae3b2fd0eb6e81439/ParentNode.java/clean/src/org/apache/xerces/dom/ParentNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2029,
2713,
4600,
4649,
12,
907,
19783,
16,
2029,
1278,
1763,
16,
474,
11934,
5796,
13,
540,
1216,
4703,
503,
288,
377,
202,
430,
261,
291,
12066,
10756,
5411,
604,
394,
4703,
503,
2828,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2029,
2713,
4600,
4649,
12,
907,
19783,
16,
2029,
1278,
1763,
16,
474,
11934,
5796,
13,
540,
1216,
4703,
503,
288,
377,
202,
430,
261,
291,
12066,
10756,
5411,
604,
394,
4703,
503,
2828,
... | ||
match(_t,INPUT); _t = _t.getNextSibling(); break; } case OUTPUT: | match(_t,OUTPUT); _t = _t.getNextSibling(); break; } case INPUTOUTPUT: | public final void defineparameterstate(AST _t) throws RecognitionException { AST defineparameterstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST def = null; AST bid = null; AST brec = null; AST id = null; AST ds = null; AST id3 = null; AST id2 = null; AST __t535 = _t; def = _t==ASTNULL ? null :(AST)_t; match(_t,DEFINE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NEW: case SHARED: { def_shared(_t); _t = _retTree; break; } case INPUT: case INPUTOUTPUT: case OUTPUT: case PARAMETER: case PRIVATE: case PUBLIC: case RETURN: case PROTECTED: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PRIVATE: case PUBLIC: case PROTECTED: { def_visib(_t); _t = _retTree; break; } case INPUT: case INPUTOUTPUT: case OUTPUT: case PARAMETER: case RETURN: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PARAMETER: { AST tmp1107_AST_in = (AST)_t; match(_t,PARAMETER); _t = _t.getNextSibling(); AST tmp1108_AST_in = (AST)_t; match(_t,BUFFER); _t = _t.getNextSibling(); bid = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); AST tmp1109_AST_in = (AST)_t; match(_t,FOR); _t = _t.getNextSibling(); brec = _t==ASTNULL ? null : (AST)_t; tbl(_t,CQ.SYMBOL); _t = _retTree; if ( inputState.guessing==0 ) { action.defineBuffer(def, bid, brec, true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PRESELECT: { AST tmp1110_AST_in = (AST)_t; match(_t,PRESELECT); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case COLUMNLABEL: case FIELDS: case LABEL: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case EOF: case PERIOD: case FIELDS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FIELDS: { AST __t542 = _t; AST tmp1111_AST_in = (AST)_t; match(_t,FIELDS); _t = _t.getFirstChild(); { _loop544: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Field_ref)) { fld1(_t,CQ.SYMBOL); _t = _retTree; } else { break _loop544; } } while (true); } _t = __t542; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } break; } case INPUT: case INPUTOUTPUT: case OUTPUT: case RETURN: { { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case INPUT: { AST tmp1112_AST_in = (AST)_t; match(_t,INPUT); _t = _t.getNextSibling(); break; } case OUTPUT: { AST tmp1113_AST_in = (AST)_t; match(_t,OUTPUT); _t = _t.getNextSibling(); break; } case INPUTOUTPUT: { AST tmp1114_AST_in = (AST)_t; match(_t,INPUTOUTPUT); _t = _t.getNextSibling(); break; } case RETURN: { AST tmp1115_AST_in = (AST)_t; match(_t,RETURN); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } AST tmp1116_AST_in = (AST)_t; match(_t,PARAMETER); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TABLE: { AST tmp1117_AST_in = (AST)_t; match(_t,TABLE); _t = _t.getNextSibling(); AST tmp1118_AST_in = (AST)_t; match(_t,FOR); _t = _t.getNextSibling(); tbl(_t,CQ.TEMPTABLESYMBOL); _t = _retTree; { _loop548: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case APPEND: { AST tmp1119_AST_in = (AST)_t; match(_t,APPEND); _t = _t.getNextSibling(); break; } case BIND: { AST tmp1120_AST_in = (AST)_t; match(_t,BIND); _t = _t.getNextSibling(); break; } default: { break _loop548; } } } while (true); } break; } case TABLEHANDLE: { AST tmp1121_AST_in = (AST)_t; match(_t,TABLEHANDLE); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FOR: { AST tmp1122_AST_in = (AST)_t; match(_t,FOR); _t = _t.getNextSibling(); break; } case ID: { break; } default: { throw new NoViableAltException(_t); } } } id = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); { _loop551: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case APPEND: { AST tmp1123_AST_in = (AST)_t; match(_t,APPEND); _t = _t.getNextSibling(); break; } case BIND: { AST tmp1124_AST_in = (AST)_t; match(_t,BIND); _t = _t.getNextSibling(); break; } default: { break _loop551; } } } while (true); } if ( inputState.guessing==0 ) { action.addToSymbolScope(action.defineVariable(def, id, HANDLE)); } break; } case DATASET: { AST tmp1125_AST_in = (AST)_t; match(_t,DATASET); _t = _t.getNextSibling(); AST tmp1126_AST_in = (AST)_t; match(_t,FOR); _t = _t.getNextSibling(); ds = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); { _loop553: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case APPEND: { AST tmp1127_AST_in = (AST)_t; match(_t,APPEND); _t = _t.getNextSibling(); break; } case BYVALUE: { AST tmp1128_AST_in = (AST)_t; match(_t,BYVALUE); _t = _t.getNextSibling(); break; } case BIND: { AST tmp1129_AST_in = (AST)_t; match(_t,BIND); _t = _t.getNextSibling(); break; } default: { break _loop553; } } } while (true); } if ( inputState.guessing==0 ) { action.addToSymbolScope(action.defineSymbol(DATASET, ds, ds)); } break; } case DATASETHANDLE: { AST tmp1130_AST_in = (AST)_t; match(_t,DATASETHANDLE); _t = _t.getNextSibling(); id3 = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); { _loop555: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case APPEND: { AST tmp1131_AST_in = (AST)_t; match(_t,APPEND); _t = _t.getNextSibling(); break; } case BYVALUE: { AST tmp1132_AST_in = (AST)_t; match(_t,BYVALUE); _t = _t.getNextSibling(); break; } case BIND: { AST tmp1133_AST_in = (AST)_t; match(_t,BIND); _t = _t.getNextSibling(); break; } default: { break _loop555; } } } while (true); } if ( inputState.guessing==0 ) { action.addToSymbolScope(action.defineVariable(def, id3, HANDLE)); } break; } case ID: { id2 = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); if ( inputState.guessing==0 ) { push(action.defineVariable(def, id2)); } defineparam_var(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TRIGGERS: { triggerphrase(_t); _t = _retTree; break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.addToSymbolScope(pop()); } break; } default: { throw new NoViableAltException(_t); } } } break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t535; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/041a16c78289f1c3ae5e575d3edc5e893a658e50/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
4426,
6775,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
4426,
6775,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4426,
6775,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
4426,
6775,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
29... |
case 0: | say("Ah, quests... just like the old days when I was young! I remember one quest that was about... Oh look, a bird!hmm, what?! Oh, Oops! I forgot it! :("); | protected void createDialog() { Behaviours.addGreeting(this); Behaviours.addJob(this,"Hehehe! Job! hehehe! Muahahaha!."); Behaviours.addHelp(this,"I can't help you, but you can help Stendhal: tell your friends about Stendhal and help us to create maps."); Behaviours.addGoodbye(this); add(1, "quest", null, 1, null, new SpeakerNPC.ChatAction() { public void fire(Player player, String text, SpeakerNPC engine) { switch(Rand.rand(2)) { case 0: say("Ah, quests... just like the old days when I was young! I remember one quest that was about... Oh look, a bird!hmm, what?! Oh, Oops! I forgot it! :("); break; case 1: say("I have been told that on the deepest place of the dungeon under this city someone also buy sheeps, but *it* pays better!."); break; } } }); add(1, "cleanme!", null, 1, "What?", new SpeakerNPC.ChatAction() { public void fire(Player player, String text, SpeakerNPC engine) { if(player.isAdmin()) { for(String quest: player.getQuests()) { player.removeQuest(quest); } } else { say("Ummm! No, you clean me! begin with my back!"); player.setHP(player.getHP()-5); world.modify(player); } } }); } | 4438 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4438/d512245d8e26069d9f1c5a15fba078b322c3b0ac/Semos.java/buggy/src/games/stendhal/server/maps/Semos.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
4750,
918,
752,
6353,
1435,
3639,
288,
3639,
4823,
3962,
4390,
18,
1289,
43,
9015,
310,
12,
2211,
1769,
3639,
4823,
3962,
4390,
18,
1289,
2278,
12,
2211,
10837,
5256,
580,
580,
5,
3956,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
4750,
918,
752,
6353,
1435,
3639,
288,
3639,
4823,
3962,
4390,
18,
1289,
43,
9015,
310,
12,
2211,
1769,
3639,
4823,
3962,
4390,
18,
1289,
2278,
12,
2211,
10837,
5256,
580,
580,
5,
3956,
... |
appendTag("FAMILY", lastName); appendTag("GIVEN", firstName); appendTag("MIDDLE", middleName); | sb.append(tagText.trim()); | public void addTagContent() { appendTag("FAMILY", lastName); appendTag("GIVEN", firstName); appendTag("MIDDLE", middleName); } | 4336 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4336/237ab44301a7f04522e1c943e66dc5aad4f17a33/VCard.java/buggy/source/org/jivesoftware/smackx/packet/VCard.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
21495,
1350,
1435,
288,
10792,
714,
1805,
2932,
25002,
25554,
3113,
23439,
1769,
10792,
714,
1805,
2932,
43,
8188,
1157,
3113,
22033,
1769,
10792,
714,
1805,
2932,
49,
25578,
3113... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
21495,
1350,
1435,
288,
10792,
714,
1805,
2932,
25002,
25554,
3113,
23439,
1769,
10792,
714,
1805,
2932,
43,
8188,
1157,
3113,
22033,
1769,
10792,
714,
1805,
2932,
49,
25578,
3113... |
if(selected != 1) { window.list.setSelectedIndex(selected - 1); window.list.ensureIndexIsVisible(selected - 1); } | if(selected == 0) selected = window.list.getModel().getSize() - 1; else selected = selected - 1; window.list.setSelectedIndex(selected); window.list.ensureIndexIsVisible(selected); | void handleTopLevelUp(KeyEvent evt) { if(window.isShowing()) { int selected = window.list.getSelectedIndex(); if(selected != 1) { window.list.setSelectedIndex(selected - 1); window.list.ensureIndexIsVisible(selected - 1); } evt.consume(); } else super.processKeyEvent(evt); } | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/f9aee13250730719b064ed496c41323a7de62ed4/CommandLine.java/buggy/org/gjt/sp/jedit/gui/CommandLine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
6459,
1640,
27046,
1211,
12,
653,
1133,
6324,
13,
202,
202,
95,
1082,
202,
430,
12,
5668,
18,
291,
5706,
310,
10756,
1082,
202,
95,
9506,
202,
474,
3170,
273,
2742,
18,
1098,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
6459,
1640,
27046,
1211,
12,
653,
1133,
6324,
13,
202,
202,
95,
1082,
202,
430,
12,
5668,
18,
291,
5706,
310,
10756,
1082,
202,
95,
9506,
202,
474,
3170,
273,
2742,
18,
1098,
18,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.