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 |
|---|---|---|---|---|---|---|
Debug.output(Debug.IMR | Debug.DEBUG1, "Pinging " + host + " / " + port); | Debug.output(4,"Pinging " + host + " / " + port); | private static boolean checkServerActive (String host, int port, byte []object_key) { ClientConnectionManager cm = null; IIOPAddress address = null; ClientConnection connection = null; LocateRequestOutputStream lros = null; LocateReplyReceiver receiver = null; LocateReplyInputStream lris = null; boolean result = false; cm = ((org.jacorb.orb.ORB)orb).getClientConnectionManager (); address = new IIOPAddress (host, port); connection = cm.getConnection (new IIOPProfile (address, object_key)); Debug.output(Debug.IMR | Debug.DEBUG1, "Pinging " + host + " / " + port); try { lros = new LocateRequestOutputStream (object_key, connection.getId(), 2); receiver = new LocateReplyReceiver (); connection.sendRequest( lros, receiver, lros.getRequestId (), true ); // response expected lris = receiver.getReply(); switch (lris.rep_hdr.locate_status.value ()) { case LocateStatusType_1_2._UNKNOWN_OBJECT: case LocateStatusType_1_2._OBJECT_HERE: case LocateStatusType_1_2._OBJECT_FORWARD: case LocateStatusType_1_2._OBJECT_FORWARD_PERM: case LocateStatusType_1_2._LOC_SYSTEM_EXCEPTION: case LocateStatusType_1_2._LOC_NEEDS_ADDRESSING_MODE: default: { result = true; break; } } } catch (Throwable ex) { result = false; } finally { cm.releaseConnection (connection); } return result; } | 46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/18367b9c8638a766302195ae097901c5637ea11f/ImplementationRepositoryImpl.java/clean/src/org/jacorb/imr/ImplementationRepositoryImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1250,
866,
2081,
3896,
3639,
261,
780,
1479,
16,
509,
1756,
16,
1160,
5378,
1612,
67,
856,
13,
565,
288,
3639,
2445,
1952,
1318,
282,
5003,
6647,
273,
446,
31,
3639,
23076,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1250,
866,
2081,
3896,
3639,
261,
780,
1479,
16,
509,
1756,
16,
1160,
5378,
1612,
67,
856,
13,
565,
288,
3639,
2445,
1952,
1318,
282,
5003,
6647,
273,
446,
31,
3639,
23076,
3... |
_isMandatory = ERXUtilities.booleanValue(aValue); | _isMandatory = ERXValueUtilities.booleanValue(aValue); | public void setIsMandatory(Object aValue) { try { _isMandatory = ERXUtilities.booleanValue(aValue); } catch (Throwable e) { String error = "WOToOneRelationship (setIsMandatory) - unable to set isMandatory value "+e.getMessage(); NSLog.err.appendln(error); } } | 22541 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/22541/030cb3f23617518601f8abfb46f84c89445f1881/WOToOneRelationship.java/clean/Common/Frameworks/ERExtensions/Sources/er/extensions/WOToOneRelationship.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
15269,
49,
10018,
12,
921,
24406,
13,
288,
3639,
775,
288,
5411,
389,
291,
49,
10018,
273,
4232,
60,
620,
11864,
18,
6494,
620,
12,
69,
620,
1769,
3639,
289,
1044,
261,
15155... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15269,
49,
10018,
12,
921,
24406,
13,
288,
3639,
775,
288,
5411,
389,
291,
49,
10018,
273,
4232,
60,
620,
11864,
18,
6494,
620,
12,
69,
620,
1769,
3639,
289,
1044,
261,
15155... |
SQLObject[] path = new SQLObject[pathToPkTable.length + 1]; | SQLObject[] path = new SQLObject[pathToPkTable.length + 2]; | public SQLObject[] getPkPathToRelationship(SQLRelationship rel) { SQLObject[] pathToPkTable = getPathToNode(rel.getPkTable()); SQLObject[] path = new SQLObject[pathToPkTable.length + 1]; System.arraycopy(pathToPkTable, 0, path, 0, pathToPkTable.length); path[path.length - 1] = rel; return path; } | 53257 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53257/aff0e3aa894c073108f74b76de573b90e108c5c1/DBTreeModel.java/clean/src/ca/sqlpower/architect/swingui/DBTreeModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3063,
921,
8526,
1689,
79,
743,
774,
8180,
12,
3997,
8180,
1279,
13,
288,
202,
202,
3997,
921,
8526,
12221,
7789,
1388,
273,
4339,
31403,
12,
2878,
18,
588,
7789,
1388,
10663,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3063,
921,
8526,
1689,
79,
743,
774,
8180,
12,
3997,
8180,
1279,
13,
288,
202,
202,
3997,
921,
8526,
12221,
7789,
1388,
273,
4339,
31403,
12,
2878,
18,
588,
7789,
1388,
10663,
... |
wrappedWriter.setCompressed(true); | public void render(IResponseWriter writer, IRequestCycle cycle) throws RequestCycleException { IResponseWriter wrappedWriter; boolean compressed = false; String href; String[] context; boolean enabled; if (cycle.getAttribute(ATTRIBUTE_NAME) != null) throw new RequestCycleException( "IServiceLink components may not be nested.", this); try { rendering = true; body = Body.get(cycle); cycle.setAttribute(ATTRIBUTE_NAME, this); setup(cycle); enabled = isEnabled(); if (enabled) { context = getContext(cycle); writer.begin("a"); href = buildURL(cycle, context); writer.attribute("href", href); // Allow the wrapped components a chance to render. // Along the way, they may interact with this component // and cause the name variable to get set. compressed = writer.compress(true); wrappedWriter = writer.getNestedWriter(); wrappedWriter.setCompressed(true); } else wrappedWriter = writer; renderWrapped(wrappedWriter, cycle); if (enabled) { // Write any attributes specified by wrapped components. writeEventHandlers(writer); // Generate additional attributes from informal parameters. generateAttributes(cycle, writer, reservedNames); // Dump in HTML provided by wrapped components wrappedWriter.close(); // Close the <a> tag writer.end(); writer.setCompressed(compressed); } cycle.removeAttribute(ATTRIBUTE_NAME); } finally { rendering = false; eventHandlers = null; // May be possible to keep body from cycle to cycle, but // let's just be safe. body = null; } } | 4433 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4433/f70b16ee1a3f91e06ad51460d82beb9ebefdec4c/AbstractServiceLink.java/clean/framework/src/com/primix/tapestry/link/AbstractServiceLink.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1743,
12,
45,
1064,
2289,
2633,
16,
467,
691,
13279,
8589,
13,
202,
15069,
1567,
13279,
503,
202,
95,
202,
202,
45,
1064,
2289,
5805,
2289,
31,
202,
202,
6494,
8968,
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,
225,
202,
482,
918,
1743,
12,
45,
1064,
2289,
2633,
16,
467,
691,
13279,
8589,
13,
202,
15069,
1567,
13279,
503,
202,
95,
202,
202,
45,
1064,
2289,
5805,
2289,
31,
202,
202,
6494,
8968,
273,... | |
public UMOConnector createConnector() throws Exception { | public UMOConnector createConnector() throws Exception { | public UMOConnector createConnector() throws Exception { connector = new JmsConnector(); connector.setSpecification(JmsConstants.JMS_SPECIFICATION_11); Properties props = JmsTestUtils.getJmsProperties(JmsTestUtils.ACTIVE_MQ_JMS_PROPERTIES); connector.setConnectionFactoryJndiName("JmsQueueConnectionFactory"); Properties factoryProps = new Properties(); factoryProps.setProperty("brokerURL", BROKER_URL); connector.setJndiProviderProperties(props); connector.setConnectionFactoryProperties(factoryProps); connector.setName(CONNECTOR_NAME); connector.getDispatcherThreadingProfile().setDoThreading(false); SimpleRetryConnectionStrategy strategy = new SimpleRetryConnectionStrategy(); strategy.setRetryCount(10); strategy.setFrequency(5000); strategy.setDoThreading(true); connector.setConnectionStrategy(strategy); return connector; } | 28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/fd2e8421d55af0c0fec4891c10b5e0c4208f4841/JmsReconnectionTestCase.java/buggy/tests/integration/src/test/java/org/mule/test/integration/providers/jms/activemq/JmsReconnectionTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
587,
5980,
7487,
752,
7487,
1435,
1216,
1185,
565,
288,
3639,
8703,
273,
394,
19870,
7487,
5621,
3639,
8703,
18,
542,
8615,
12,
23058,
2918,
18,
46,
3537,
67,
13847,
14865,
67,
2499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
587,
5980,
7487,
752,
7487,
1435,
1216,
1185,
565,
288,
3639,
8703,
273,
394,
19870,
7487,
5621,
3639,
8703,
18,
542,
8615,
12,
23058,
2918,
18,
46,
3537,
67,
13847,
14865,
67,
2499... |
public org.quickfix.field.Product getProduct() throws FieldNotFound { org.quickfix.field.Product value = new org.quickfix.field.Product(); | public quickfix.field.Product getProduct() throws FieldNotFound { quickfix.field.Product value = new quickfix.field.Product(); | public org.quickfix.field.Product getProduct() throws FieldNotFound { org.quickfix.field.Product value = new org.quickfix.field.Product(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/MassQuote.java/buggy/src/java/src/quickfix/fix43/MassQuote.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
4133,
15880,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
4133,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
413... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
4133,
15880,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
4133,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
413... |
Collections.<MechSummary> sort(allMechs, bvComparator); Collections.<MechSummary> sort(allTanks, bvComparator); Collections.<MechSummary> sort(allInfantry, bvComparator); Collections.<MechSummary> sort(allBA, bvComparator); int mechWeight = countBV(allMechs) / Math.max(1, allMechs.size()); int tankWeight = countBV(allTanks) / Math.max(1, allTanks.size()); int infWeight = countBV(allInfantry) / Math.max(1, allInfantry.size()); int baWeight = countBV(allBA) / Math.max(1, allBA.size()); int baBV = (p.ba * baWeight * p.maxBV) / ((p.mechs * mechWeight) + (p.tanks * tankWeight) + (p.infantry * infWeight) + (p.ba * baWeight)); if(p.ba > 0 && allBA.size() > 0) { baBV = Math.max(baBV, p.ba * allBA.get(0).getBV()); baBV = Math.min(baBV, p.ba * allBA.get(allBA.size()-1).getBV()); } else { baBV = 0; } int mechBV = (p.mechs * mechWeight * p.maxBV) / ((p.mechs * mechWeight) + (p.tanks * tankWeight) + (p.infantry * infWeight) + (p.ba * baWeight)); if(p.mechs > 0 && allMechs.size() > 0) { mechBV = Math.max(mechBV, p.mechs * allMechs.get(0).getBV()); mechBV = Math.min(mechBV, p.mechs * allMechs.get(allMechs.size()-1).getBV()); } else { mechBV = 0; } int tankBV = (p.tanks * tankWeight * p.maxBV) / ((p.mechs * mechWeight) + (p.tanks * tankWeight) + (p.infantry * infWeight) + (p.ba * baWeight)); if(p.tanks > 0 && allTanks.size() > 0) { tankBV = Math.max(tankBV, p.tanks * allTanks.get(0).getBV()); tankBV = Math.min(tankBV, p.tanks * allTanks.get(allTanks.size()-1).getBV()); } else { tankBV = 0; } ArrayList<MechSummary> units = generateArmy(allBA, p.ba, baBV, allowedVariance); units.addAll(generateArmy(allTanks, p.tanks, tankBV + baBV - countBV(units), allowedVariance)); units.addAll(generateArmy(allMechs, p.mechs, mechBV + tankBV + baBV - countBV(units), allowedVariance)); if(p.padWithInfantry) { int inf = (p.maxBV - countBV(units)) / infWeight; units.addAll(generateArmy(allInfantry, inf, p.maxBV - countBV(units), allowedVariance)); } else { units.addAll(generateArmy(allInfantry, p.infantry, p.maxBV - countBV(units), allowedVariance)); | for (int i = 0; i < count; i++) { MechSummary m = unitList.get(selection[i]); units.add(m); | public static ArrayList<MechSummary> generateArmy(Parameters p) { int allowedVariance = java.lang.Math.abs(p.maxBV - p.minBV); MechSummary[] all = MechSummaryCache.getInstance().getAllMechs(); ArrayList<MechSummary> allMechs = new ArrayList<MechSummary>(); ArrayList<MechSummary> allTanks = new ArrayList<MechSummary>(); ArrayList<MechSummary> allInfantry = new ArrayList<MechSummary>(); ArrayList<MechSummary> allBA = new ArrayList<MechSummary>(); for (MechSummary m : all) { if (p.tech != TechConstants.T_ALL && p.tech != m.getType()) { // advanced rules includes basic too if (p.tech == TechConstants.T_CLAN_LEVEL_3) { if (m.getType() != TechConstants.T_CLAN_LEVEL_2) continue; } else if (p.tech == TechConstants.T_IS_LEVEL_3) { if (m.getType() != TechConstants.T_IS_LEVEL_1 && m.getType() != TechConstants.T_IS_LEVEL_2) continue; } else if (p.tech == TechConstants.T_IS_LEVEL_2) { if (m.getType() != TechConstants.T_IS_LEVEL_1) continue; } else if (p.tech == TechConstants.T_LEVEL_2_ALL) { if (m.getType() != TechConstants.T_IS_LEVEL_1 && m.getType() != TechConstants.T_IS_LEVEL_2 && m.getType() != TechConstants.T_CLAN_LEVEL_2) continue; } else { continue; } } if ((m.getYear() < p.minYear || m.getYear() > p.maxYear) && !m.getUnitType().equals( UnitType.getTypeName(UnitType.INFANTRY))) continue; if (p.canon && !m.isCanon()) continue; // Unit accepted, add to the appropriate list if (m.getUnitType().equals(UnitType.getTypeName(UnitType.MEK))) allMechs.add(m); else if (m.getUnitType() .equals(UnitType.getTypeName(UnitType.TANK)) || m.getUnitType().equals( UnitType.getTypeName(UnitType.VTOL))) allTanks.add(m); else if (m.getUnitType().equals( UnitType.getTypeName(UnitType.BATTLE_ARMOR))) allBA.add(m); else if (m.getUnitType().equals( UnitType.getTypeName(UnitType.INFANTRY))) allInfantry.add(m); } Collections.<MechSummary> sort(allMechs, bvComparator); Collections.<MechSummary> sort(allTanks, bvComparator); Collections.<MechSummary> sort(allInfantry, bvComparator); Collections.<MechSummary> sort(allBA, bvComparator); //get the average BV for each unit class, to determine how to split up the total int mechWeight = countBV(allMechs) / Math.max(1, allMechs.size()); int tankWeight = countBV(allTanks) / Math.max(1, allTanks.size()); int infWeight = countBV(allInfantry) / Math.max(1, allInfantry.size()); int baWeight = countBV(allBA) / Math.max(1, allBA.size()); int baBV = (p.ba * baWeight * p.maxBV) / ((p.mechs * mechWeight) + (p.tanks * tankWeight) + (p.infantry * infWeight) + (p.ba * baWeight)); if(p.ba > 0 && allBA.size() > 0) { baBV = Math.max(baBV, p.ba * allBA.get(0).getBV()); baBV = Math.min(baBV, p.ba * allBA.get(allBA.size()-1).getBV()); } else { baBV = 0; } int mechBV = (p.mechs * mechWeight * p.maxBV) / ((p.mechs * mechWeight) + (p.tanks * tankWeight) + (p.infantry * infWeight) + (p.ba * baWeight)); if(p.mechs > 0 && allMechs.size() > 0) { mechBV = Math.max(mechBV, p.mechs * allMechs.get(0).getBV()); mechBV = Math.min(mechBV, p.mechs * allMechs.get(allMechs.size()-1).getBV()); } else { mechBV = 0; } int tankBV = (p.tanks * tankWeight * p.maxBV) / ((p.mechs * mechWeight) + (p.tanks * tankWeight) + (p.infantry * infWeight) + (p.ba * baWeight)); if(p.tanks > 0 && allTanks.size() > 0) { tankBV = Math.max(tankBV, p.tanks * allTanks.get(0).getBV()); tankBV = Math.min(tankBV, p.tanks * allTanks.get(allTanks.size()-1).getBV()); } else { tankBV = 0; } //add the units in roughly increasing BV order ArrayList<MechSummary> units = generateArmy(allBA, p.ba, baBV, allowedVariance); units.addAll(generateArmy(allTanks, p.tanks, tankBV + baBV - countBV(units), allowedVariance)); units.addAll(generateArmy(allMechs, p.mechs, mechBV + tankBV + baBV - countBV(units), allowedVariance)); if(p.padWithInfantry) { int inf = (p.maxBV - countBV(units)) / infWeight; units.addAll(generateArmy(allInfantry, inf, p.maxBV - countBV(units), allowedVariance)); } else { units.addAll(generateArmy(allInfantry, p.infantry, p.maxBV - countBV(units), allowedVariance)); } return units; } | 4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/47c438842e9a3787ae0b273c2778998f157320e7/RandomArmyCreator.java/buggy/megamek/src/megamek/common/util/RandomArmyCreator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
2407,
32,
4667,
343,
4733,
34,
2103,
686,
4811,
12,
2402,
293,
13,
288,
3639,
509,
2935,
25987,
273,
2252,
18,
4936,
18,
10477,
18,
5113,
12,
84,
18,
1896,
38,
58,
300,
293... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
2407,
32,
4667,
343,
4733,
34,
2103,
686,
4811,
12,
2402,
293,
13,
288,
3639,
509,
2935,
25987,
273,
2252,
18,
4936,
18,
10477,
18,
5113,
12,
84,
18,
1896,
38,
58,
300,
293... |
stmt.execute("create table ##testBigDecimal1 (id int primary key, data01 decimal(38,0), data02 decimal(38,12) null, data03 money)"); | stmt.execute("create table #testBigDecimal1 (id int primary key, data01 decimal(38,0), data02 decimal(38,12) null, data03 money)"); | public void testBigDecimal1() throws Exception { Statement stmt = con.createStatement(); ResultSet rs = stmt.executeQuery("SELECT @@MAX_PRECISION"); assertTrue(rs.next()); int maxPrecision = rs.getInt(1); rs.close(); BigDecimal maxval = new BigDecimal("1E+" + maxPrecision); maxval = maxval.subtract(new BigDecimal(1)); // maxval now = 99999999999999999999999999999999999999 if (maxPrecision > 28) { stmt.execute("create table ##testBigDecimal1 (id int primary key, data01 decimal(38,0), data02 decimal(38,12) null, data03 money)"); } else { stmt.execute("create table ##testBigDecimal1 (id int primary key, data01 decimal(28,0), data02 decimal(28,12) null, data03 money)"); } PreparedStatement pstmt = con.prepareStatement("insert into ##testBigDecimal1 (id, data01, data02, data03) values (?,?,?,?)"); pstmt.setInt(1, 1); try { pstmt.setBigDecimal(2, maxval.add(new BigDecimal(1))); assertTrue(false); // Should fail } catch (SQLException e) { // System.out.println(e.getMessage()); // OK Genuinely can't send this one! } pstmt.setBigDecimal(2, maxval); pstmt.setBigDecimal(3, new BigDecimal(1.0 / 3.0)); // Scale > 38 pstmt.setBigDecimal(4, new BigDecimal("12345.56789")); assertTrue(pstmt.executeUpdate() == 1); pstmt.close(); rs = stmt.executeQuery("SELECT * FROM ##testBigDecimal1"); assertTrue(rs.next()); assertEquals(maxval, rs.getBigDecimal(2)); assertEquals(new BigDecimal("0.333333333333"), rs.getBigDecimal(3)); // Rounded to scale 10 assertEquals(new BigDecimal("12345.5679"), rs.getBigDecimal(4)); // Money has scale of 4 rs.close(); maxval = maxval.negate(); Statement stmt2 = con.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_UPDATABLE); rs = stmt2.executeQuery("SELECT * FROM ##testBigDecimal1"); SQLWarning warn = stmt.getWarnings(); while (warn != null) { System.out.println(warn.getMessage()); warn = warn.getNextWarning(); } assertTrue(rs.next()); rs.updateBigDecimal("data01", maxval); rs.updateNull("data02"); rs.updateObject("data03", new BigDecimal("-12345.56789"), 2); // Round to scale 2 rs.updateRow(); rs.close(); stmt2.close(); rs = stmt.executeQuery("SELECT * FROM ##testBigDecimal1"); assertTrue(rs.next()); assertEquals(maxval, rs.getBigDecimal(2)); assertEquals(null, rs.getBigDecimal(3)); assertEquals(new BigDecimal("-12345.5700"), rs.getBigDecimal(4)); rs.close(); stmt.close(); } | 5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/93bb993d42543a9ead4cdd949b33895244cc0ee8/SAfeTest.java/clean/src/test/net/sourceforge/jtds/test/SAfeTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
29436,
21,
1435,
1216,
1185,
288,
3639,
8056,
3480,
273,
356,
18,
2640,
3406,
5621,
3639,
10842,
3597,
273,
3480,
18,
8837,
1138,
2932,
4803,
22175,
6694,
67,
3670,
26913,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29436,
21,
1435,
1216,
1185,
288,
3639,
8056,
3480,
273,
356,
18,
2640,
3406,
5621,
3639,
10842,
3597,
273,
3480,
18,
8837,
1138,
2932,
4803,
22175,
6694,
67,
3670,
26913,
... |
public void clear(ModuleHandle handle ) | public void clear( ModuleHandle handle ) | public void clear(ModuleHandle handle ) { mediatorMap.remove( handle ); if(handle == getReportDesignHandle( )) { setReportDesignHandle( null ); } } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/0c3229334ab3352862830f19eec73f8815cb56fb/SessionHandleAdapter.java/buggy/UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/core/model/SessionHandleAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2424,
12,
3120,
3259,
1640,
262,
202,
95,
202,
202,
17113,
863,
18,
4479,
12,
1640,
11272,
202,
202,
430,
12,
4110,
422,
22452,
15478,
3259,
12,
8623,
202,
202,
95,
1082,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
918,
2424,
12,
3120,
3259,
1640,
262,
202,
95,
202,
202,
17113,
863,
18,
4479,
12,
1640,
11272,
202,
202,
430,
12,
4110,
422,
22452,
15478,
3259,
12,
8623,
202,
202,
95,
1082,... |
this.sessionEndpoint.connectionEndpoint.consumers.remove(id); | this.sessionEndpoint.connectionEndpoint.consumers.remove(Integer.valueOf(id)); | void remove() throws JMSException { if (log.isTraceEnabled()) log.trace("attempting to remove receiver " + this + " from destination " + channel); for(Iterator i = deliveries.values().iterator(); i.hasNext(); ) { SingleReceiverDelivery d = (SingleReceiverDelivery)i.next(); try { d.cancel(); } catch(Throwable t) { throw new JBossJMSException("Failed to cancel delivery", t); } } deliveries.clear(); if (!disconnected) { close(); } this.sessionEndpoint.connectionEndpoint.consumers.remove(id); if (this.channel instanceof CoreSubscription) { ((CoreSubscription)channel).closeConsumer(); } this.sessionEndpoint.consumers.remove(this.id); } | 3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/bb5207822a56158d5b94faff7c6dbe5f094f6f4c/ServerConsumerEndpoint.java/buggy/src/main/org/jboss/jms/server/endpoint/ServerConsumerEndpoint.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
918,
1206,
1435,
1216,
20343,
282,
288,
1377,
309,
261,
1330,
18,
291,
3448,
1526,
10756,
613,
18,
5129,
2932,
11764,
310,
358,
1206,
5971,
315,
397,
333,
397,
315,
628,
2929,
315,
397,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
918,
1206,
1435,
1216,
20343,
282,
288,
1377,
309,
261,
1330,
18,
291,
3448,
1526,
10756,
613,
18,
5129,
2932,
11764,
310,
358,
1206,
5971,
315,
397,
333,
397,
315,
628,
2929,
315,
397,
... |
log.debug("The group Id:" + grp.getGroupId()); | log.debug("The user Id:" + grp.getGroupId()); | public User getUser(String loginName) { Session s = null; User user = null; try { User search = new User(); search.setLoginName(loginName); //String query = "FROM // gov.nih.nci.security.authorization.domianobjects.Application"; s = sf.openSession(); List list = s.createCriteria(User.class) .add(Example.create(search)).list(); //p = (Privilege)s.load(Privilege.class,new Long(privilegeId)); if (list.size() != 0) { user = (User) list.get(0); } Collection groups = user.getGroups(); Iterator it = groups.iterator(); while (it.hasNext()) { Group grp = (Group) it.next(); log.debug("The group Id:" + grp.getGroupId()); } } catch (Exception ex) { log.fatal("Unable to find Group", ex); } finally { try { s.close(); } catch (Exception ex2) { } } return user; } | 56056 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56056/91e0c54386a3125463e1bc4da8d808e865a34e91/AuthorizationDAOImpl.java/buggy/api/src/gov/nih/nci/security/dao/AuthorizationDAOImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2177,
4735,
12,
780,
3925,
461,
13,
288,
202,
202,
2157,
272,
273,
446,
31,
202,
202,
1299,
729,
273,
446,
31,
202,
202,
698,
288,
1082,
202,
1299,
1623,
273,
394,
2177,
562... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2177,
4735,
12,
780,
3925,
461,
13,
288,
202,
202,
2157,
272,
273,
446,
31,
202,
202,
1299,
729,
273,
446,
31,
202,
202,
698,
288,
1082,
202,
1299,
1623,
273,
394,
2177,
562... |
ch.startElement("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "itemsets"); | private void outputResponse(XFormsContainingDocument containingDocument, boolean allEvents, Map valueChangeControlIds, PipelineContext pipelineContext, ContentHandler contentHandler, String requestPageGenerationId, ExternalContext externalContext, XFormsState xformsState) { final XFormsControls xformsControls = containingDocument.getXFormsControls(); try { final ContentHandlerHelper ch = new ContentHandlerHelper(contentHandler); ch.startDocument(); contentHandler.startPrefixMapping("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI); ch.startElement("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "event-response"); // Output state boolean[] requireClientSubmission = new boolean[1]; { // Produce static state if needed final String currentPageGenerationId = (requestPageGenerationId != null) ? requestPageGenerationId : UUIDUtils.createPseudoUUID(); // Create and encode dynamic state final String newEncodedDynamicState; { final Document dynamicStateDocument = createDynamicStateDocument(containingDocument, requireClientSubmission); newEncodedDynamicState = XFormsUtils.encodeXML(pipelineContext, dynamicStateDocument, containingDocument.isSessionStateHandling() ? null : XFormsUtils.getEncryptionKey()); } final XFormsState newXFormsState = new XFormsState(xformsState.getStaticState(), newEncodedDynamicState); ch.startElement("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "dynamic-state"); if (containingDocument.isSessionStateHandling()) { // Produce dynamic state key final String newRequestId = UUIDUtils.createPseudoUUID(); final XFormsServerSessionStateCache sessionStateCache = XFormsServerSessionStateCache.instance(externalContext.getSession(true), true); sessionStateCache.add(currentPageGenerationId, newRequestId, newXFormsState); ch.text(SESSION_STATE_PREFIX + newRequestId); } else { // Send state to the client ch.text(newEncodedDynamicState); } ch.endElement(); // Cache document if requested and possible if (XFormsUtils.isCacheDocument()) { if (!requireClientSubmission[0]) { // NOTE: We check on requireClientSubmission because the event is encoded // in the dynamic state. But if we stored the event separately, then we // could still cache the containing document. XFormsServerDocumentCache.instance().add(pipelineContext, newXFormsState, containingDocument); } else { // Since we cannot cache the result, we have to get the object out of its current pool final ObjectPool objectPool = containingDocument.getSourceObjectPool(); if (objectPool != null) { logger.debug("XForms - containing document cache: discarding non-cacheable document from pool."); try { objectPool.invalidateObject(containingDocument); containingDocument.setSourceObjectPool(null); } catch (Exception e1) { throw new OXFException(e1); } } } } } // Output action { ch.startElement("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "action"); // Output new controls values and associated information final Map itemsetsFull1 = new HashMap(); final Map itemsetsFull2 = new HashMap(); { ch.startElement("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "control-values"); if (!allEvents) { // Common case if (xformsControls.isDirty()) { // Only output changes if needed xformsControls.rebuildCurrentControlsStateIfNeeded(pipelineContext); final XFormsControls.ControlsState currentControlsState = xformsControls.getCurrentControlsState(); diffControlsState(ch, containingDocument, xformsControls.getInitialControlsState().getChildren(), currentControlsState.getChildren(), itemsetsFull1, itemsetsFull2, valueChangeControlIds); } } else { // Reload / back case xformsControls.rebuildCurrentControlsStateIfNeeded(pipelineContext); final XFormsControls.ControlsState currentControlsState = xformsControls.getCurrentControlsState(); final XFormsContainingDocument initialContainingDocument = createXFormsContainingDocument(pipelineContext, new XFormsState(xformsState.getStaticState(), null), null);// TODO: use cached static state if possible diffControlsState(ch, containingDocument, initialContainingDocument.getXFormsControls().getInitialControlsState().getChildren(), currentControlsState.getChildren(), itemsetsFull1, itemsetsFull2, null); } ch.endElement(); } // Output divs information { ch.startElement("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "divs"); outputSwitchDivs(ch, xformsControls.getCurrentControlsState());// TODO: move switch state out of ControlsState + handle diffs ch.endElement(); } // Output repeats information { // Output index updates // TODO: move index state out of ControlsState + handle diffs final Map initialRepeatIdToIndex = xformsControls.getInitialControlsState().getRepeatIdToIndex(); final Map currentRepeatIdToIndex = xformsControls.getCurrentControlsState().getRepeatIdToIndex(); if (currentRepeatIdToIndex.size() != 0) { boolean found = false; for (Iterator i = initialRepeatIdToIndex.entrySet().iterator(); i.hasNext();) { final Map.Entry currentEntry = (Map.Entry) i.next(); final String repeatId = (String) currentEntry.getKey(); final Integer index = (Integer) currentEntry.getValue(); // Output information if there is a difference final Integer newIndex = (Integer) currentRepeatIdToIndex.get(repeatId); if (!index.equals(newIndex)) { if (!found) { ch.startElement("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "repeat-indexes"); found = true; } ch.element("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "repeat-index", new String[] {"id", repeatId, "old-index", index.toString(), "new-index", newIndex.toString()}); } } if (found) ch.endElement(); } } // Output itemset information { ch.startElement("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "itemsets"); // Diff itemset information final Map itemsetUpdate = diffItemsets(itemsetsFull1, itemsetsFull2); outputItemsets(ch, itemsetUpdate); ch.endElement(); } // Check if we want to require the client to perform a form submission { if (requireClientSubmission[0]) outputSubmissionInfo(externalContext, ch); } // TODO: the following should be correctly ordered in the order they were requested // Output messages to display { final List messages = containingDocument.getMessagesToRun(); if (messages != null) { outputMessagesInfo(ch, messages); } } // Output loads { final List loads = containingDocument.getLoadsToRun(); if (loads != null) { outputLoadsInfo(ch, loads); } } // Output scripts { final List scripts = containingDocument.getScriptsToRun(); if (scripts != null) { outputScriptsInfo(ch, scripts); } } // Output focus instructions { final String focusEffectiveControlId = containingDocument.getClientFocusEffectiveControlId(pipelineContext); if (focusEffectiveControlId != null) { outputFocusInfo(ch, focusEffectiveControlId); } } ch.endElement(); } ch.endElement(); contentHandler.endPrefixMapping("xxf"); ch.endDocument(); } catch (SAXException e) { throw new OXFException(e); } } | 52783 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52783/e6584a8ec7d3e7b40a7fd4d2e3bbdc6387b25d5b/XFormsServer.java/clean/src/java/org/orbeon/oxf/xforms/processor/XFormsServer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
876,
1064,
12,
60,
18529,
24344,
2519,
4191,
2519,
16,
1250,
777,
3783,
16,
1635,
460,
3043,
3367,
2673,
16,
27573,
13671,
1042,
5873,
1042,
16,
3697,
1503,
913,
1503,
16,
514,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
876,
1064,
12,
60,
18529,
24344,
2519,
4191,
2519,
16,
1250,
777,
3783,
16,
1635,
460,
3043,
3367,
2673,
16,
27573,
13671,
1042,
5873,
1042,
16,
3697,
1503,
913,
1503,
16,
514,... | |
Subject subj = SubjectFactory.getSubject(Constants.rootI, Constants.rootT); | Subject subj = null; try { subj = SubjectFactory.getSubject(Constants.rootI, Constants.rootT); } catch (SubjectNotFoundException e1) { e1.printStackTrace(); } | public void testDelAttrs() { Subject subj = SubjectFactory.getSubject(Constants.rootI, Constants.rootT); GrouperSession s = GrouperSession.start(subj); // Create ns0 GrouperStem ns = GrouperStem.create( s, Constants.ns0s, Constants.ns0e ); try { ns.attribute("displayname", null); Assert.fail("delete displayname"); } catch (RuntimeException e) { Assert.assertTrue("delete displayname", true); } try { ns.attribute("extension", null); Assert.fail("delete extension"); } catch (RuntimeException e) { Assert.assertTrue("delete extension", true); } try { ns.attribute("name", null); Assert.fail("delete name"); } catch (RuntimeException e) { Assert.assertTrue("delete name", true); } try { ns.attribute("stem", null); Assert.fail("delete stem"); } catch (RuntimeException e) { Assert.assertTrue("delete stem", true); } s.stop(); } | 5235 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5235/299be707e24937a76973f84a9cb849e117e6129a/TestStemsAttrsNoMod.java/buggy/grouper/java/tests/test/edu/internet2/middleware/grouper/TestStemsAttrsNoMod.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
2837,
8262,
1435,
288,
565,
9912,
15333,
273,
446,
31,
775,
288,
15333,
273,
9912,
1733,
18,
588,
6638,
12,
2918,
18,
3085,
45,
16,
5245,
18,
3085,
56,
1769,
289,
1044,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2837,
8262,
1435,
288,
565,
9912,
15333,
273,
446,
31,
775,
288,
15333,
273,
9912,
1733,
18,
588,
6638,
12,
2918,
18,
3085,
45,
16,
5245,
18,
3085,
56,
1769,
289,
1044,... |
if (date == null) date = new Date(); | if (date == null) { date = new Date(); } | public static Date getEvenSecondDateBefore(Date date) { if (date == null) date = new Date(); Calendar c = Calendar.getInstance(); c.setTime(date); c.set(Calendar.MILLISECOND, 0); return c.getTime(); } | 3431 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3431/0ca5d7d851637eb8695746dba9608de14253a225/TriggerUtils.java/buggy/src/java/org/quartz/TriggerUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
2167,
4774,
3995,
8211,
1626,
4649,
12,
1626,
1509,
13,
288,
3639,
309,
261,
712,
422,
446,
13,
288,
1509,
273,
394,
2167,
5621,
289,
3639,
5542,
276,
273,
5542,
18,
588,
144... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
2167,
4774,
3995,
8211,
1626,
4649,
12,
1626,
1509,
13,
288,
3639,
309,
261,
712,
422,
446,
13,
288,
1509,
273,
394,
2167,
5621,
289,
3639,
5542,
276,
273,
5542,
18,
588,
144... |
base += 2; | protected void compactRanges() { boolean DEBUG = false; if (this.ranges == null || this.ranges.length == 2) return; if (this.isCompacted()) return; int base = 0, target = 0; while (target < this.ranges.length) { if (base != target) { this.ranges[base] = this.ranges[target++]; this.ranges[base+1] = this.ranges[target++]; } else target += 2; if (target >= this.ranges.length) break; int baseend = this.ranges[base+1]; while (target < this.ranges.length) { if (baseend+1 < this.ranges[target]) break; if (baseend+1 == this.ranges[target]) { if (DEBUG) System.err.println("Token#compactRanges(): Compaction: ["+this.ranges[base] +", "+this.ranges[base+1] +"], ["+this.ranges[target] +", "+this.ranges[target+1] +"] -> ["+this.ranges[base] +", "+this.ranges[target+1] +"]"); this.ranges[base+1] = this.ranges[target+1]; baseend = this.ranges[base+1]; target += 2; } else if (baseend >= this.ranges[target+1]) { if (DEBUG) System.err.println("Token#compactRanges(): Compaction: ["+this.ranges[base] +", "+this.ranges[base+1] +"], ["+this.ranges[target] +", "+this.ranges[target+1] +"] -> ["+this.ranges[base] +", "+this.ranges[base+1] +"]"); target += 2; } else if (baseend < this.ranges[target+1]) { if (DEBUG) System.err.println("Token#compactRanges(): Compaction: ["+this.ranges[base] +", "+this.ranges[base+1] +"], ["+this.ranges[target] +", "+this.ranges[target+1] +"] -> ["+this.ranges[base] +", "+this.ranges[target+1] +"]"); this.ranges[base+1] = this.ranges[target+1]; baseend = this.ranges[base+1]; target += 2; } else { throw new RuntimeException("Token#compactRanges(): Internel Error: [" +this.ranges[base] +","+this.ranges[base+1] +"] ["+this.ranges[target] +","+this.ranges[target+1]+"]"); } } base += 2; } base += 2; if (base != this.ranges.length) { int[] result = new int[base]; System.arraycopy(this.ranges, 0, result, 0, base); this.ranges = result; } this.setCompacted(); } | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/a0bbc4dd8c8a7fc81862f96dec1f28070b5ed1ff/RangeToken.java/buggy/src/org/apache/xerces/utils/regex/RangeToken.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
6739,
9932,
1435,
288,
3639,
1250,
6369,
273,
629,
31,
3639,
309,
261,
2211,
18,
14530,
422,
446,
747,
333,
18,
14530,
18,
2469,
422,
576,
13,
5411,
327,
31,
3639,
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,
4750,
918,
6739,
9932,
1435,
288,
3639,
1250,
6369,
273,
629,
31,
3639,
309,
261,
2211,
18,
14530,
422,
446,
747,
333,
18,
14530,
18,
2469,
422,
576,
13,
5411,
327,
31,
3639,
309,
261,
... | |
return new Character(expr.evalChar(env)); | return expr.evalRef(env); | public Object marshall(Env env, Expr expr, Class expectedClass) { return new Character(expr.evalChar(env)); } | 3863 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3863/a3879eb2a32247c23a8fbdcdae591df76cbac554/Marshall.java/buggy/quercus/src/main/java/com/caucho/quercus/module/Marshall.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1833,
12,
3491,
1550,
16,
8074,
3065,
16,
1659,
2665,
797,
13,
565,
288,
4202,
327,
3065,
18,
8622,
1957,
12,
3074,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1833,
12,
3491,
1550,
16,
8074,
3065,
16,
1659,
2665,
797,
13,
565,
288,
4202,
327,
3065,
18,
8622,
1957,
12,
3074,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
sb.append(getHref()).append("', 'tab_contents_update_").append(id).append("', '"); | sb.append( getParameters().get("href")).append("', 'tab_contents_update_").append(id).append("', '"); | public void emittInstanceConfigurationJavascript( PageContext page ) {// super.emittInstanceConfigurationJavascript( pageContext ); JspWriter out = page.getOut(); StringBuffer sb = new StringBuffer(); // create the remote div object sb.append("var remotediv_").append(id); sb.append(" = new RemoteUpdateComponent( '"); sb.append(getHref()).append("', 'tab_contents_update_").append(id).append("', '");// sb.append(getReloadingText()).append("', '"); sb.append(getErrorText()).append("', '").append(getShowErrorTransportText()).append("' );\n"); // subscribe to the tab selection topics sb.append("var tabpanel_").append(id).append(" = new TabContent( \"").append(id).append("\" );\n"); sb.append("dojo.event.topic.subscribe( \"").append( subscribeTopicName ).append("\""); sb.append( ", tabpanel_" ).append(id).append( ", " ); sb.append("\"updateVisibility\"").append(" );"); sb.append("\n"); // code to update the panel when it is selected sb.append("dojo.event.topic.subscribe( \"").append( subscribeTopicName ).append("\""); sb.append( ", remotediv_" ).append(id).append( ", " ); sb.append("\"tabbedElementIdRefresh\"").append(" );"); sb.append("\n"); try { out.println(sb.toString()); out.flush(); } catch (IOException e) { LOG.error( "Error writting JS to pageContext.out", e ); } } | 15560 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15560/de3b5a7aed90a8ad73b79c45ef0ece471db12286/RemotePanelTag.java/buggy/src/java/com/opensymphony/webwork/views/jsp/ui/ajax/RemotePanelTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3626,
88,
1442,
1750,
27129,
12,
3460,
1042,
1363,
262,
288,
759,
3639,
2240,
18,
18356,
88,
1442,
1750,
27129,
12,
21442,
11272,
3639,
19300,
2289,
596,
273,
1363,
18,
588,
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,
377,
1071,
918,
3626,
88,
1442,
1750,
27129,
12,
3460,
1042,
1363,
262,
288,
759,
3639,
2240,
18,
18356,
88,
1442,
1750,
27129,
12,
21442,
11272,
3639,
19300,
2289,
596,
273,
1363,
18,
588,
11... |
{ return isWritable(column); } | { return isWritable(column); } | public boolean isDefinitelyWritable(int column) throws SQLException { return isWritable(column); } | 45672 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45672/6a061da272f04e1463864065f87f1f3fd61d6162/ResultSetMetaData.java/clean/src/interfaces/jdbc/postgresql/ResultSetMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
6443,
25818,
12061,
12,
474,
1057,
13,
1216,
6483,
202,
95,
202,
202,
2463,
353,
12061,
12,
2827,
1769,
202,
97,
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,
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,
225,
202,
482,
1250,
353,
6443,
25818,
12061,
12,
474,
1057,
13,
1216,
6483,
202,
95,
202,
202,
2463,
353,
12061,
12,
2827,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (pres.isNewObject()) | protected void setAudienceSelectionVariables(HttpSession session, Presentation pres) { String baseUrl = this.getServerConfigurationService().getServerUrl(); ResourceBundle myResources = ResourceBundle.getBundle("org.theospi.portfolio.presentation.bundle.Messages"); if (pres.isNewObject()) session.setAttribute(AudienceSelectionHelper.AUDIENCE_FUNCTION, "osp.presentation.view"); String id = pres.getId()!=null ? pres.getId().getValue() : pres.getNewId().getValue(); session.setAttribute(AudienceSelectionHelper.AUDIENCE_PORTFOLIO_WIZARD, "true"); session.setAttribute(AudienceSelectionHelper.AUDIENCE_QUALIFIER, id); session.setAttribute(AudienceSelectionHelper.AUDIENCE_GLOBAL_TITLE, pres.isNewObject()? myResources.getString("title_addPortfolio") : myResources.getString("title_editPresentation1")); session.setAttribute(AudienceSelectionHelper.AUDIENCE_INSTRUCTIONS, myResources.getString("instructions_addViewersToPresentation")); session.setAttribute(AudienceSelectionHelper.AUDIENCE_GROUP_TITLE, myResources.getString("instructions_publishToGroup")); session.setAttribute(AudienceSelectionHelper.AUDIENCE_INDIVIDUAL_TITLE, myResources.getString("instructions_publishToIndividual")); session.setAttribute(AudienceSelectionHelper.AUDIENCE_PUBLIC_FLAG, pres.getIsPublic() ? "true" : "false"); session.setAttribute(AudienceSelectionHelper.AUDIENCE_PUBLIC_TITLE, myResources.getString("instructions_publishToInternet")); session.setAttribute(AudienceSelectionHelper.AUDIENCE_SELECTED_TITLE, myResources.getString("instructions_selectedAudience")); session.setAttribute(AudienceSelectionHelper.AUDIENCE_FILTER_INSTRUCTIONS, myResources.getString("instructions_selectFilterUserList")); session.setAttribute(AudienceSelectionHelper.AUDIENCE_GUEST_EMAIL, "true"); session.setAttribute(AudienceSelectionHelper.AUDIENCE_WORKSITE_LIMITED, "false"); session.setAttribute(AudienceSelectionHelper.AUDIENCE_PUBLIC_INSTRUCTIONS, myResources.getString("publish_message")); session.setAttribute(AudienceSelectionHelper.AUDIENCE_PUBLIC_URL, baseUrl + "/osp-presentation-tool/viewPresentation.osp?id=" + pres.getId().getValue()); session.setAttribute(AudienceSelectionHelper.AUDIENCE_CANCEL_TARGET, PARAM_CANCEL); session.setAttribute(AudienceSelectionHelper.AUDIENCE_SAVE_NOTIFY_TARGET, PARAM_FINISH_AND_NOTIFY); session.setAttribute(AudienceSelectionHelper.AUDIENCE_SAVE_TARGET, PARAM_FINISH); session.setAttribute(AudienceSelectionHelper.AUDIENCE_BACK_TARGET, PARAM_TARGET + (pres.getPresentationType().equals(Presentation.FREEFORM_TYPE)?2:3)); } | 48996 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48996/f3a0beeeef6b7e8289e80ccd6165f5220326fb0b/AddPresentationController.java/clean/presentation/tool/src/java/org/theospi/portfolio/presentation/control/AddPresentationController.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
444,
30418,
6233,
6158,
12,
2940,
2157,
1339,
16,
25130,
367,
4075,
13,
288,
1377,
514,
9818,
273,
333,
18,
588,
2081,
1750,
1179,
7675,
588,
2081,
1489,
5621,
1377,
19198,
339... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
444,
30418,
6233,
6158,
12,
2940,
2157,
1339,
16,
25130,
367,
4075,
13,
288,
1377,
514,
9818,
273,
333,
18,
588,
2081,
1750,
1179,
7675,
588,
2081,
1489,
5621,
1377,
19198,
339... | |
return this.taint; } | return this.taint; } | public boolean isTaint() { return this.taint; } | 46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/addcb75d5d86d9b1fd628d84d22b74cfc41f078e/RubyObject.java/buggy/org/jruby/RubyObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
29048,
1435,
288,
3639,
327,
333,
18,
88,
1598,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
29048,
1435,
288,
3639,
327,
333,
18,
88,
1598,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
String name = strings[getShort(iCode, pc + 1)]; | String name = strings[getIndex(iCode, pc + 1)]; | static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, double[] argsDbl, int argShift, int argCount, NativeFunction fnOrScript, InterpreterData idata) throws JavaScriptException { if (cx.interpreterSecurityDomain != idata.securityDomain) { return execWithNewDomain(cx, scope, thisObj, args, argsDbl, argShift, argCount, fnOrScript, idata); } final Object DBL_MRK = Interpreter.DBL_MRK; final Scriptable undefined = Undefined.instance; final int VAR_SHFT = 0; final int maxVars = idata.itsMaxVars; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int TRY_STACK_SHFT = LOCAL_SHFT + idata.itsMaxLocals; final int STACK_SHFT = TRY_STACK_SHFT + idata.itsMaxTryDepth;// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_STACK_SHFT]: used for newtemp/usetemp// stack[TRY_STACK_SHFT <= i < STACK_SHFT]: stack of try scopes// stack[STACK_SHFT <= i < STACK_SHFT + idata.itsMaxStack]: stack data// sDbl[TRY_STACK_SHFT <= i < STACK_SHFT]: stack of try block pc, stored as doubles// sDbl[any other i]: if stack[i] is DBL_MRK, sDbl[i] holds the number value int maxFrameArray = idata.itsMaxFrameArray; if (maxFrameArray != STACK_SHFT + idata.itsMaxStack) Context.codeBug(); Object[] stack = new Object[maxFrameArray]; double[] sDbl = new double[maxFrameArray]; int stackTop = STACK_SHFT - 1; int tryStackTop = 0; // add TRY_STACK_SHFT to get real index int definedArgs = fnOrScript.argCount; if (definedArgs > argCount) { definedArgs = argCount; } for (int i = 0; i != definedArgs; ++i) { Object arg = args[argShift + i]; stack[VAR_SHFT + i] = arg; if (arg == DBL_MRK) { sDbl[VAR_SHFT + i] = argsDbl[argShift + i]; } } for (int i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } DebugFrame debuggerFrame = null; if (cx.debugger != null) { DebuggableScript dscript = (DebuggableScript)fnOrScript; debuggerFrame = cx.debugger.getFrame(cx, dscript); } if (idata.itsFunctionType != 0) { if (fnOrScript.itsClosure != null) { scope = fnOrScript.itsClosure; } else if (!idata.itsUseDynamicScope) { scope = fnOrScript.getParentScope(); } if (idata.itsCheckThis) { thisObj = ScriptRuntime.getThis(thisObj); } if (idata.itsNeedsActivation) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } } else { scope = ScriptRuntime.initScript(cx, scope, fnOrScript, thisObj, idata.itsFromEvalCode); } if (idata.itsNestedFunctions != null) { if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) Context.codeBug(); for (int i = 0; i < idata.itsNestedFunctions.length; i++) { createFunctionObject(idata.itsNestedFunctions[i], scope, idata.itsFromEvalCode); } } boolean useActivationVars = false; if (debuggerFrame != null) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) { useActivationVars = true; scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } debuggerFrame.onEnter(cx, scope, thisObj, args); } Object result = undefined; byte[] iCode = idata.itsICode; String[] strings = idata.itsStringTable; int pc = 0; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; Loop: while (true) { try { switch (iCode[pc] & 0xff) { // Back indent to ease imlementation reading case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : stack[TRY_STACK_SHFT + tryStackTop] = scope; sDbl[TRY_STACK_SHFT + tryStackTop] = (double)pc; ++tryStackTop; // Skip starting pc of catch/finally blocks pc += 4; break; case TokenStream.GE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.LE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.GT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.LT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.IN : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.INSTANCEOF : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.EQ : { --stackTop; boolean valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.NE : { --stackTop; boolean valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.SHEQ : { --stackTop; boolean valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.SHNE : { --stackTop; boolean valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.IFNE : { Object val = stack[stackTop]; boolean valBln; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { double valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; } case TokenStream.IFEQ : { boolean valBln; Object val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { double valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; } case TokenStream.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : { int slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = (int)sDbl[LOCAL_SHFT + slot]; continue; } case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break Loop; case RETURN_UNDEF_ICODE : result = undefined; break Loop; case END_ICODE: break Loop; case TokenStream.BITNOT : { int rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; } case TokenStream.BITAND : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; } case TokenStream.BITOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; } case TokenStream.BITXOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; } case TokenStream.LSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; } case TokenStream.RSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; } case TokenStream.URSH : { int rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; break; } case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; } case TokenStream.NEG : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; } case TokenStream.POS : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; } case TokenStream.MUL : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; } case TokenStream.DIV : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; } case TokenStream.MOD : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; } case TokenStream.BINDNAME : { String name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; } case TokenStream.GETBASE : { String name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.getBase(scope, name); pc += 2; break; } case TokenStream.SETNAME : { String name = strings[getShort(iCode, pc + 1)]; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; // what about class cast exception here for lhs? Scriptable lhs = (Scriptable)stack[stackTop]; stack[stackTop] = ScriptRuntime.setName(lhs, rhs, scope, name); pc += 2; break; } case TokenStream.DELPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; } case TokenStream.GETPROP : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; } case TokenStream.SETPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; } case TokenStream.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case TokenStream.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case TokenStream.PROPINC : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; } case TokenStream.PROPDEC : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; } case TokenStream.ELEMINC : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; } case TokenStream.ELEMDEC : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; } case TokenStream.GETTHIS : { Scriptable lhs = (Scriptable)stack[stackTop]; stack[stackTop] = ScriptRuntime.getThis(lhs); break; } case TokenStream.NEWTEMP : { int slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; } case TokenStream.USETEMP : { int slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; } case TokenStream.CALLSPECIAL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int lineNum = getShort(iCode, pc + 1); String name = strings[getShort(iCode, pc + 3)]; int count = getShort(iCode, pc + 5); stackTop -= count; Object[] outArgs = getArgsArray(stack, sDbl, stackTop + 1, count); Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, thisObj, scope, name, lineNum); pc += 6; instructionCount = cx.instructionCount; break; } case TokenStream.CALL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; int count = getShort(iCode, pc + 3); stackTop -= count; int calleeArgShft = stackTop + 1; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; Scriptable calleeScope = scope; if (idata.itsNeedsActivation) { calleeScope = ScriptableObject.getTopLevelScope(scope); } Scriptable calleeThis; if (rhs instanceof Scriptable || rhs == null) { calleeThis = (Scriptable)rhs; } else { calleeThis = ScriptRuntime.toObject(cx, calleeScope, rhs); } if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.call not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; stack[stackTop] = interpret(cx, calleeScope, calleeThis, stack, sDbl, calleeArgShft, count, f, f.itsData); } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.call(cx, calleeScope, calleeThis, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined int i = getShort(iCode, pc + 1); if (i != -1) lhs = strings[i]; } throw NativeGlobal.typeError1 ("msg.isnt.function", ScriptRuntime.toString(lhs), calleeScope); } pc += 4; instructionCount = cx.instructionCount; break; } case TokenStream.NEW : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getShort(iCode, pc + 3); stackTop -= count; int calleeArgShft = stackTop + 1; Object lhs = stack[stackTop]; if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.construct not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; Scriptable newInstance = f.createObject(cx, scope); Object callResult = interpret(cx, scope, newInstance, stack, sDbl, calleeArgShft, count, f, f.itsData); if (callResult instanceof Scriptable && callResult != undefined) { stack[stackTop] = callResult; } else { stack[stackTop] = newInstance; } } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.construct(cx, scope, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined int i = getShort(iCode, pc + 1); if (i != -1) lhs = strings[i]; } throw NativeGlobal.typeError1 ("msg.isnt.function", ScriptRuntime.toString(lhs), scope); } pc += 4; instructionCount = cx.instructionCount; break; } case TokenStream.TYPEOF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; } case TokenStream.TYPEOFNAME : { String name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; } case TokenStream.STRING : stack[++stackTop] = strings[getShort(iCode, pc + 1)]; pc += 2; break; case SHORTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc + 1); pc += 2; break; case INTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc + 1); pc += 4; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = idata.itsDoubleTable[getShort(iCode, pc + 1)]; pc += 2; break; case TokenStream.NAME : { String name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.name(scope, name); pc += 2; break; } case TokenStream.NAMEINC : { String name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.postIncrement(scope, name); pc += 2; break; } case TokenStream.NAMEDEC : { String name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.postDecrement(scope, name); pc += 2; break; } case TokenStream.SETVAR : { int slot = (iCode[++pc] & 0xFF); if (!useActivationVars) { stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; } else { Object val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); activationPut(fnOrScript, scope, slot, val); } break; } case TokenStream.GETVAR : { int slot = (iCode[++pc] & 0xFF); ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; } else { stack[stackTop] = activationGet(fnOrScript, scope, slot); } break; } case TokenStream.VARINC : { int slot = (iCode[++pc] & 0xFF); ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; } else { Object val = activationGet(fnOrScript, scope, slot); stack[stackTop] = val; val = doubleWrap(ScriptRuntime.toNumber(val) + 1.0); activationPut(fnOrScript, scope, slot, val); } break; } case TokenStream.VARDEC : { int slot = (iCode[++pc] & 0xFF); ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; } else { Object val = activationGet(fnOrScript, scope, slot); stack[stackTop] = val; val = doubleWrap(ScriptRuntime.toNumber(val) - 1.0); activationPut(fnOrScript, scope, slot, val); } break; } case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : { Object exception = stack[stackTop]; if (exception == DBL_MRK) exception = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(exception); } case TokenStream.JTHROW : { Object exception = stack[stackTop]; // No need to check for DBL_MRK: exception must be Exception --stackTop; if (exception instanceof JavaScriptException) throw (JavaScriptException)exception; else throw (RuntimeException)exception; } case TokenStream.ENTERWITH : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; } case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : { int slot = (iCode[++pc] & 0xFF); Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; } case TokenStream.ENUMNEXT : { int slot = (iCode[++pc] & 0xFF); Object val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime.nextEnum(val); break; } case TokenStream.GETPROTO : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; } case TokenStream.GETPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; } case TokenStream.GETSCOPEPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; } case TokenStream.SETPROTO : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; } case TokenStream.SETPARENT : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; } case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : { int i = getShort(iCode, pc + 1); InterpretedFunction f = idata.itsNestedFunctions[i]; InterpretedFunction closure = new InterpretedFunction(f, scope, cx); createFunctionObject(closure, scope, idata.itsFromEvalCode); stack[++stackTop] = closure; pc += 2; break; } case TokenStream.REGEXP : { int i = getShort(iCode, pc + 1); stack[++stackTop] = idata.itsRegExpLiterals[i]; pc += 2; break; } case SOURCEFILE_ICODE : cx.interpreterSourceFile = idata.itsSourceFile; break; case LINE_ICODE : { int line = getShort(iCode, pc + 1); cx.interpreterLine = line; if (debuggerFrame != null) { debuggerFrame.onLineChange(cx, line); } pc += 2; break; } default : { dumpICode(idata); throw new RuntimeException ("Unknown icode : "+(iCode[pc] & 0xff)+" @ pc : "+pc); } // end of interpreter switch } pc++; } catch (Throwable ex) { if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } final int SCRIPT_THROW = 0, ECMA = 1, RUNTIME = 2, OTHER = 3; int exType; Object catchObj = ex; // Object seen by script catch for (;;) { if (catchObj instanceof JavaScriptException) { catchObj = ScriptRuntime.unwrapJavaScriptException ((JavaScriptException)catchObj); exType = SCRIPT_THROW; } else if (catchObj instanceof EcmaError) { // an offical ECMA error object, catchObj = ((EcmaError)catchObj).getErrorObject(); exType = ECMA; } else if (catchObj instanceof RuntimeException) { if (catchObj instanceof WrappedException) { Object w = ((WrappedException) catchObj).unwrap(); if (w instanceof Throwable) { catchObj = ex = (Throwable) w; continue; } } catchObj = null; // script can not catch this exType = RUNTIME; } else { // Error instance catchObj = null; // script can not catch this exType = OTHER; } break; } if (exType != OTHER && debuggerFrame != null) { debuggerFrame.onExceptionThrown(cx, ex); } boolean rethrow = true; if (exType != OTHER && tryStackTop > 0) { // Do not allow for JS to interfere with Error instances // (exType == OTHER), as they can be used to terminate // long running script --tryStackTop; int try_pc = (int)sDbl[TRY_STACK_SHFT + tryStackTop]; if (exType == SCRIPT_THROW || exType == ECMA) { // Allow JS to catch only JavaScriptException and // EcmaError int catch_offset = getShort(iCode, try_pc + 1); if (catch_offset != 0) { // Has catch block rethrow = false; pc = try_pc + catch_offset; stackTop = STACK_SHFT; stack[stackTop] = catchObj; } } if (rethrow) { int finally_offset = getShort(iCode, try_pc + 3); if (finally_offset != 0) { // has finally block rethrow = false; pc = try_pc + finally_offset; stackTop = STACK_SHFT; stack[stackTop] = ex; } } } if (rethrow) { if (debuggerFrame != null) { debuggerFrame.onExit(cx, true, ex); } if (idata.itsNeedsActivation) { ScriptRuntime.popActivation(cx); } if (exType == SCRIPT_THROW) throw (JavaScriptException)ex; if (exType == ECMA || exType == RUNTIME) throw (RuntimeException)ex; throw (Error)ex; } // We caught an exception, // Notify instruction observer if necessary // and point pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc; // restore scope at try point scope = (Scriptable)stack[TRY_STACK_SHFT + tryStackTop]; } } if (debuggerFrame != null) { debuggerFrame.onExit(cx, false, result); } if (idata.itsNeedsActivation) { ScriptRuntime.popActivation(cx); } if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } return result; } | 51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/85132aacd6645eb0864e9deff934a25c44792a21/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
18701,
1033,
8526,
833,
16,
1645,
8526,
833,
40,
3083,
16,
18701,
509,
1501,
10544,
16,
509,
1501,
1380,
16,
18701... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
18701,
1033,
8526,
833,
16,
1645,
8526,
833,
40,
3083,
16,
18701,
509,
1501,
10544,
16,
509,
1501,
1380,
16,
18701... |
sqlb.append(",subject"); | sqlb.append(",sort_subject"); | private static String createSqlInternal(BrowseScope scope, String itemValue, boolean isCount) { String tablename = BrowseTables.getTable(scope); String column = BrowseTables.getValueColumn(scope); int browseType = scope.getBrowseType(); StringBuffer sqlb = new StringBuffer(); sqlb.append("select "); sqlb.append(isCount ? "count(" : ""); sqlb.append(getTargetColumns(scope)); /** * This next bit adds another column to the query, so authors don't show * up lower-case */ if ((browseType == AUTHORS_BROWSE) && !isCount) { sqlb.append(",author"); } if ((browseType == SUBJECTS_BROWSE) && !isCount) { sqlb.append(",subject"); } sqlb.append(isCount ? ")" : ""); sqlb.append(" from (SELECT DISTINCT * "); sqlb.append(" from "); sqlb.append(tablename); sqlb.append(" ) as distinct_view"); // If the browse uses items (or item ids) instead of String values // make a subquery. // We use a separate query to make sure the subquery works correctly // when item values are the same. (this is transactionally // safe because we set the isolation level). // If we're NOT searching from the start, add some clauses boolean addedWhereClause = false; if (scope.hasFocus()) { String subquery = null; if (scope.focusIsItem()) { subquery = new StringBuffer().append(" or ( ").append(column) .append(" = ? and item_id {0} ").append( scope.getFocusItemId()).append(")").toString(); } if (log.isDebugEnabled()) { log.debug("Subquery is \"" + subquery + "\""); } sqlb.append(" where ").append("(").append(column).append(" {1} ") .append("?").append(scope.focusIsItem() ? subquery : "") .append(")"); addedWhereClause = true; } String connector = addedWhereClause ? " and " : " where "; sqlb.append(getScopeClause(scope, connector)); // For counting, skip the "order by" and "limit" clauses if (isCount) { return sqlb.toString(); } // Add an order by clause -- a parameter sqlb .append(" order by ") .append(column) .append("{2}") .append( ((scope.focusIsString() && (scope.getBrowseType() != ITEMS_BY_DATE_BROWSE)) || (scope.getBrowseType() == AUTHORS_BROWSE) || (scope .getBrowseType() == SUBJECTS_BROWSE)) ? "" : ", item_id{2}"); String myquery = sqlb.toString(); // A limit on the total returned (Postgres extension) if (!scope.hasNoLimit()) { if ("oracle".equals(ConfigurationManager.getProperty("db.name"))) { myquery = "SELECT * FROM (" + myquery + ") WHERE ROWNUM <= {3} "; } else { // postgres uses LIMIT myquery = myquery + " LIMIT {3} "; } } return myquery; } | 47214 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47214/1b944606f6f6c98c5f06636bd44ebb8890f9b6f4/Browse.java/clean/dspace/src/org/dspace/browse/Browse.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
514,
752,
5101,
3061,
12,
27304,
3876,
2146,
16,
5411,
514,
761,
620,
16,
1250,
353,
1380,
13,
565,
288,
3639,
514,
19096,
273,
605,
12481,
6905,
18,
588,
1388,
12,
4887,
176... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
752,
5101,
3061,
12,
27304,
3876,
2146,
16,
5411,
514,
761,
620,
16,
1250,
353,
1380,
13,
565,
288,
3639,
514,
19096,
273,
605,
12481,
6905,
18,
588,
1388,
12,
4887,
176... |
log.fatal(e); | if(log.isFatalEnabled()){ log.fatal(e); } | private boolean getCertificate() { try{ KeyStore store = KeyStore.getInstance(this.keystore_type); java.io.FileInputStream fis = new java.io.FileInputStream(this.keystore_path); store.load(fis, this.keystore_password); this.cipher = Cipher.getInstance(this.cipher_type); this.certificate = (X509Certificate) store.getCertificate(this.cert_alias); log.debug("certificate = " + this.certificate.toString()); this.cipher.init(Cipher.ENCRYPT_MODE, this.certificate); this.encryptedToken = this.cipher.doFinal(this.token_attr.getBytes()); log.debug("encryptedToken = " + this.encryptedToken); KeyStore.PrivateKeyEntry privateKey = (KeyStore.PrivateKeyEntry)store.getEntry(this.cert_alias, new KeyStore.PasswordProtection(this.cert_password)); this.certPrivateKey = privateKey.getPrivateKey(); log.debug("certPrivateKey = " + this.certPrivateKey.toString()); return true; }catch(Exception e){ log.fatal(e); return false; } } | 49475 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49475/00009177ae09a0e763e35d49dfcdfc4da0a63f99/X509Token1_5.java/buggy/src/org/jgroups/auth/X509Token1_5.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
27653,
1435,
288,
3639,
775,
95,
5411,
17017,
1707,
273,
17017,
18,
588,
1442,
12,
2211,
18,
856,
2233,
67,
723,
1769,
5411,
2252,
18,
1594,
18,
812,
4348,
15324,
273,
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,
377,
3238,
1250,
27653,
1435,
288,
3639,
775,
95,
5411,
17017,
1707,
273,
17017,
18,
588,
1442,
12,
2211,
18,
856,
2233,
67,
723,
1769,
5411,
2252,
18,
1594,
18,
812,
4348,
15324,
273,
394,
... |
actionType.equals(EditorCellAction.INSERT) || actionType.equals(EditorCellAction.INSERT_BEFORE)) { | EditorCellAction.INSERT.equals(actionType) || EditorCellAction.INSERT_BEFORE.equals(actionType)) { | public boolean processKeyPressed(final EditorContext editorContext, final KeyEvent keyEvent) { AbstractEditorComponent editor = editorContext.getNodeEditorComponent(); SNodeProxy sNodeProxy = editor.getRootCell().getSNodeProxy(); boolean notEditable = sNodeProxy != null && sNodeProxy.getModel().isNotEditable(); notEditable = (editorContext.getNodeEditorComponent().isReadOnly() || notEditable); if (notEditable) return false; EditorCell selectedCell = editor.getSelectedCell(); // process cell keymaps first if (selectedCell != null) { List<Pair<EditorCellKeyMapAction, EditorCell>> actionsInfo = KeyMapUtil.getKeyMapActionsForEvent(selectedCell, keyEvent, editorContext); if (actionsInfo.size() == 1) { EditorCellKeyMapAction action = actionsInfo.get(0).o1; EditorCell contextCell = actionsInfo.get(0).o2; KeyMapUtil.executeKeyMapAction(action, keyEvent, contextCell, editorContext); return true; } else if (actionsInfo.size() > 1) { // show menu EditorUtil.showActionsMenu(actionsInfo, keyEvent, editorContext, selectedCell); return true; } } String actionType = editor.getActionType(keyEvent, editorContext); // pre-process action if (selectedCell != null) { boolean endEditKeystroke = isEndEditKeystroke(keyEvent); boolean deleteKeystroke = isDeleteKeystroke(keyEvent); boolean backspaceKeystroke = isBackspaceKeystroke(keyEvent); boolean strictMatching = endEditKeystroke || EditorCellAction.RIGHT_TRANSFORM.equals(actionType); if (!EditorUtil.isValidCell(selectedCell)) { if (endEditKeystroke || actionType.equals(EditorCellAction.INSERT) || actionType.equals(EditorCellAction.INSERT_BEFORE)) { EditorUtil.validateCell(selectedCell, editorContext, strictMatching); return true; } if (actionType.equals(EditorCellAction.RIGHT_TRANSFORM)) { // !side effect: can change selection! if (!EditorUtil.validateCell(selectedCell, editorContext, strictMatching)) { return true; } } selectedCell = editor.getSelectedCell(); if (selectedCell == null) { return true; } } // we may want to change action Type as result of pre-processing if (deleteKeystroke) { if (!(selectedCell instanceof EditorCell_Label && ((EditorCell_Label) selectedCell).isEditable())) { actionType = EditorCellAction.DELETE; keyEvent.consume(); } } else if (backspaceKeystroke) { if (selectedCell instanceof EditorCell_Constant && !((EditorCell_Label) selectedCell).isEditable() && !((EditorCell_Label) selectedCell).getTextLine().isFirstCaretPosition()) { actionType = EditorCellAction.DELETE; keyEvent.consume(); } } else if (EditorCellAction.RIGHT_TRANSFORM.equals(actionType)) { if (selectedCell instanceof EditorCell_Label && selectedCell.isErrorState()) { // stop here return true; } if (EditorUtil.getCellAction(selectedCell, EditorCellAction.RIGHT_TRANSFORM, editorContext) == null) { if (selectedCell instanceof EditorCell_Constant) { actionType = EditorCellAction.RIGHT_SPECIAL; keyEvent.consume(); } else if (selectedCell instanceof EditorCell_Property) { String text = ((EditorCell_Property) selectedCell).getText(); if (!((EditorCell_Property) selectedCell).getModelAccessor().isValidText(text + " ")) { actionType = EditorCellAction.RIGHT_SPECIAL; keyEvent.consume(); } } else { // stop here return true; } } } } // process action if (selectedCell != null) { if (actionType != null && !actionType.equals(EditorCellAction.DELETE)) { if (EditorUtil.executeCellAction(selectedCell, actionType, editorContext)) { return true; } } if (!keyEvent.isConsumed()) { // auto-completion (AKA node substitution) if ((keyEvent.getKeyCode() == KeyEvent.VK_SPACE && keyEvent.isControlDown() && !(keyEvent.isAltDown() || keyEvent.isShiftDown())) || (keyEvent.getKeyCode() == KeyEvent.VK_ENTER && keyEvent.isAltDown() && !(keyEvent.isControlDown() || keyEvent.isShiftDown()))) { if (editor.activateNodeSubstituteChooser(selectedCell, keyEvent.getKeyCode() == KeyEvent.VK_ENTER)) { LOG.debug("SUBSTITUTE"); return true; } LOG.debug("NO SUBSTITUTE"); } if (editor.getNodeRangeSelection().isSelectionKeystroke(keyEvent)) { if (editor.getNodeRangeSelection().activate(keyEvent)) { return true; } } // process parsing if any if (Parsing.getInstance().handleKeyPress(selectedCell, keyEvent)) return true; // allow selected cell to process event. if (allowCellToProcessEvent(selectedCell, keyEvent, editorContext)) return true; }// if (!keyEvent.isConsumed()) if (EditorCellAction.DELETE.equals(actionType)) { if (EditorUtil.executeCellAction(selectedCell, actionType, editorContext)) { return true; } } if (!keyEvent.isConsumed()) { //allow deepest selected cell to process event. EditorCell deepestSelectedCell = editor.getDeepestSelectedCell(); if (allowCellToProcessEvent(deepestSelectedCell, keyEvent, editorContext)) { editor.changeSelection(deepestSelectedCell); return true; } } // if (!keyEvent.isConsumed()) } // if (selectedCell != null) if (actionType != null) { if (editor.executeComponentAction(actionType)) { return true; } } // special case - don't allow kbd focus to leave editor area if (keyEvent.getKeyCode() == KeyEvent.VK_UP && keyEvent.isControlDown()) { keyEvent.consume(); } return false; } | 14939 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14939/38f1eafcd53b6e2a57573186f2a2bd7d0dc10393/EditorComponentKeyboardHandler.java/clean/source/jetbrains/mps/nodeEditor/EditorComponentKeyboardHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
1207,
653,
24624,
12,
6385,
18451,
1042,
4858,
1042,
16,
727,
23737,
498,
1133,
13,
288,
565,
4115,
6946,
1841,
4858,
273,
4858,
1042,
18,
588,
907,
6946,
1841,
5621,
565,
348... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
1207,
653,
24624,
12,
6385,
18451,
1042,
4858,
1042,
16,
727,
23737,
498,
1133,
13,
288,
565,
4115,
6946,
1841,
4858,
273,
4858,
1042,
18,
588,
907,
6946,
1841,
5621,
565,
348... |
if( !task.isMapTask() && this.defaultJobConf.getSpeculativeExecution() ){ try{ String systemDir = task.getConf().get("mapred.system.dir"); String taskTempDir = systemDir + "/" + task.getJobId() + "/" + task.getTipId(); fs.delete(new Path(taskTempDir)) ; }catch(IOException e){ LOG.warn("Error in deleting reduce temporary output",e); } } | public synchronized void killAndCleanup(boolean wasFailure ) throws IOException { if (runstate == TaskStatus.State.RUNNING) { wasKilled = true; if (wasFailure) { failures += 1; } runner.kill(); runstate = TaskStatus.State.KILLED; } else if (runstate == TaskStatus.State.UNASSIGNED) { if (wasFailure) { failures += 1; runstate = TaskStatus.State.FAILED; } else { runstate = TaskStatus.State.KILLED; } } // the temporary file names in speculative exn are generated in // the launched JVM, and we dont talk to it when killing so cleanup // should happen here. find the task id and delete the temp directory // for the task. only for killed speculative reduce instances // Note: it would be better to couple this with delete localfiles // which is in conf currently, it doenst belong there. if( !task.isMapTask() && this.defaultJobConf.getSpeculativeExecution() ){ try{ String systemDir = task.getConf().get("mapred.system.dir"); String taskTempDir = systemDir + "/" + task.getJobId() + "/" + task.getTipId(); fs.delete(new Path(taskTempDir)) ; }catch(IOException e){ LOG.warn("Error in deleting reduce temporary output",e); } } } | 55137 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55137/4df2bb4f8d68980cd02bfbdff8c5bda4526ff260/TaskTracker.java/buggy/src/java/org/apache/hadoop/mapred/TaskTracker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
3852,
918,
8673,
1876,
15007,
12,
6494,
1703,
5247,
4766,
7734,
262,
1216,
1860,
288,
5411,
309,
261,
2681,
2019,
422,
29628,
18,
1119,
18,
29358,
13,
288,
7734,
1703,
47,
13148,
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,
540,
1071,
3852,
918,
8673,
1876,
15007,
12,
6494,
1703,
5247,
4766,
7734,
262,
1216,
1860,
288,
5411,
309,
261,
2681,
2019,
422,
29628,
18,
1119,
18,
29358,
13,
288,
7734,
1703,
47,
13148,
27... | |
log.error(ex); | System.err.println(ex); | public void sendClearPanelMsg() { int tmp[]=new int[1]; tmp[0]=0; DrawCommand comm=new DrawCommand(DrawCommand.CLEAR); ObjectOutputStream os; try { out.reset(); os=new ObjectOutputStream(out); os.writeObject(comm); os.flush(); data_channel.send(new Message(null, null, out.toByteArray())); } catch(Exception ex) { log.error(ex); } } | 3550 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3550/5ad015d9a78e1da3350d9b398b46b2f5d4508564/Draw2Channels.java/buggy/src/org/jgroups/demos/Draw2Channels.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1366,
9094,
5537,
3332,
1435,
288,
202,
474,
5375,
1853,
8526,
33,
2704,
509,
63,
21,
15533,
1853,
63,
20,
65,
33,
20,
31,
202,
6493,
2189,
1850,
1543,
33,
2704,
10184,
2189,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1366,
9094,
5537,
3332,
1435,
288,
202,
474,
5375,
1853,
8526,
33,
2704,
509,
63,
21,
15533,
1853,
63,
20,
65,
33,
20,
31,
202,
6493,
2189,
1850,
1543,
33,
2704,
10184,
2189,... |
final String message = REZ.getString( "write-folder.error", file ); throw new FileSystemException( message ); | throw new FileSystemException( "vfs.provider/write-folder.error", file ); | public OutputStream getOutputStream() throws FileSystemException { if( file.isFolder() ) { final String message = REZ.getString( "write-folder.error", file ); throw new FileSystemException( message ); } if ( state != STATE_NONE ) { final String message = REZ.getString( "write-in-use.error", file ); throw new FileSystemException( message ); } // Get the raw output stream OutputStream outstr = file.getOutputStream(); // Create wrapper // TODO - reuse this.outstr = new FileContentOutputStream( outstr ); state = STATE_WRITING; return this.outstr; } | 50122 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50122/4ee826b62afd102046c4f84d8f2a82bb7210454d/DefaultFileContent.java/buggy/src/java/org/apache/commons/vfs/provider/DefaultFileContent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8962,
22553,
1435,
1216,
10931,
503,
565,
288,
3639,
309,
12,
585,
18,
291,
3899,
1435,
262,
3639,
288,
5411,
727,
514,
883,
273,
2438,
62,
18,
588,
780,
12,
315,
2626,
17,
5609,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8962,
22553,
1435,
1216,
10931,
503,
565,
288,
3639,
309,
12,
585,
18,
291,
3899,
1435,
262,
3639,
288,
5411,
727,
514,
883,
273,
2438,
62,
18,
588,
780,
12,
315,
2626,
17,
5609,
... |
taskInfoEditor.setParentEditor(this); | public MylarTaskEditor() { super(); IWorkbench workbench = MylarTaskListPlugin.getDefault().getWorkbench(); IWorkbenchWindow window = workbench.getActiveWorkbenchWindow(); IWorkbenchPage activePage = window.getActivePage(); partListener = new TaskEditorListener(); activePage.addPartListener(partListener); taskInfoEditor = new TaskInfoEditor(); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/c2b903e46f237cb0ac028032f82587419787da6d/MylarTaskEditor.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/MylarTaskEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
84,
440,
933,
835,
966,
6946,
18,
542,
3054,
6946,
12,
2211,
1769,
8005,
7901,
2174,
6946,
1435,
4146,
966,
6946,
18,
542,
3054,
6946,
12,
2211,
1769,
288,
202,
202,
9565,
5621,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
84,
440,
933,
835,
966,
6946,
18,
542,
3054,
6946,
12,
2211,
1769,
8005,
7901,
2174,
6946,
1435,
4146,
966,
6946,
18,
542,
3054,
6946,
12,
2211,
1769,
288,
202,
202,
9565,
5621,
20... | |
return stringValue( dph.getUserValue( handle.getTargetBookmark( ) ) ); | return ChartUtil.stringValue( dph.getUserValue( handle.getTargetBookmark( ) ) ); | public String getActionString( ) { if ( DesignChoiceConstants.ACTION_LINK_TYPE_HYPERLINK.equals( handle.getLinkType( ) ) ) return stringValue( dph.getUserValue( handle.getURI( ) ) ); if ( DesignChoiceConstants.ACTION_LINK_TYPE_BOOKMARK_LINK.equals( handle.getLinkType( ) ) ) return stringValue( dph.getUserValue( handle.getTargetBookmark( ) ) ); return null; } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/b97efbf27e8e8dc78bd2cf832bc457e4fafc4e45/BIRTActionRenderer.java/buggy/chart/org.eclipse.birt.chart.reportitem/src/org/eclipse/birt/chart/reportitem/BIRTActionRenderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
9944,
202,
482,
514,
12473,
780,
12,
262,
25083,
202,
95,
6862,
1082,
202,
430,
261,
29703,
10538,
2918,
18,
12249,
67,
10554,
67,
2399,
67,
44,
61,
3194,
10554,
18,
14963,
12,
1640,
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,
9944,
202,
482,
514,
12473,
780,
12,
262,
25083,
202,
95,
6862,
1082,
202,
430,
261,
29703,
10538,
2918,
18,
12249,
67,
10554,
67,
2399,
67,
44,
61,
3194,
10554,
18,
14963,
12,
1640,
18,
588... |
final BugPatternTableSorter sorter = new BugPatternTableSorter(); | final BugPatternTableSorter sorter = new BugPatternTableSorter(this); | private Table buildAvailableRulesTableViewer( Composite parent, IProject project) { final BugPatternTableSorter sorter = new BugPatternTableSorter(); int tableStyle = SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL | SWT.SINGLE | SWT.FULL_SELECTION | SWT.CHECK; availableRulesTableViewer = CheckboxTableViewer.newCheckList(parent, tableStyle); Table ruleTable = availableRulesTableViewer.getTable(); TableColumn ruleNameColumn = new TableColumn(ruleTable, SWT.LEFT); ruleNameColumn.setResizable(true); ruleNameColumn.setText(getMessage("Factory name")); ruleNameColumn.setWidth(200); ruleNameColumn.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { // TODO hardcoded column idx sorter.setSortColumnIndex(0); availableRulesTableViewer.refresh(); } }); TableColumn rulePriorityColumn = new TableColumn(ruleTable, SWT.LEFT); rulePriorityColumn.setResizable(true); rulePriorityColumn.setText(getMessage("Bug detector speed")); rulePriorityColumn.setWidth(110); rulePriorityColumn.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { // TODO hardcoded column idx sorter.setSortColumnIndex(1); availableRulesTableViewer.refresh(); } }); TableColumn ruleDescriptionColumn = new TableColumn(ruleTable, SWT.LEFT); ruleDescriptionColumn.setResizable(true); ruleDescriptionColumn.setText(getMessage("Detector description")); ruleDescriptionColumn.setWidth(200); ruleTable.setLinesVisible(true); ruleTable.setHeaderVisible(true); availableRulesTableViewer.setContentProvider( new DetectorFactoriesContentProvider()); availableRulesTableViewer.setLabelProvider( new DetectorFactoryLabelProvider()); availableRulesTableViewer.setColumnProperties( new String[] { COLUMN_PROPS_NAME, COLUMN_PROPS_PRIORITY, COLUMN_PROPS_DESCRIPTION }); availableRulesTableViewer.setSorter(sorter); populateAvailableRulesTable(project); ruleTable.setEnabled(true); return ruleTable; } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/3cfc82de7adaec17ee967351fa84018bfda53a1a/FindbugsPropertyPage.java/buggy/findbugs/src/eclipsePlugin/de.tobject.findbugs/src/de/tobject/findbugs/properties/FindbugsPropertyPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3555,
1361,
5268,
4478,
1388,
18415,
12,
202,
202,
9400,
982,
16,
202,
202,
45,
4109,
1984,
13,
288,
202,
202,
6385,
16907,
3234,
1388,
24952,
19867,
273,
394,
16907,
3234,
138... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3555,
1361,
5268,
4478,
1388,
18415,
12,
202,
202,
9400,
982,
16,
202,
202,
45,
4109,
1984,
13,
288,
202,
202,
6385,
16907,
3234,
1388,
24952,
19867,
273,
394,
16907,
3234,
138... |
int length = 1; | private static String parseHHMMSS(String text) { int indexT = text.indexOf('T'); if (indexT == -1) return null; String time = text.substring(indexT); int length = 1; if (time.length() < 7) return null; return time.substring(0, 7); } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/6b77e1c2e944cf869b178987a88c86b7707494b6/ICalTimeZone.java/buggy/ZimbraServer/src/java/com/zimbra/cs/mailbox/calendar/ICalTimeZone.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
760,
514,
1109,
17500,
8206,
1260,
12,
780,
977,
13,
288,
540,
202,
474,
770,
56,
273,
977,
18,
31806,
2668,
56,
8284,
5411,
309,
261,
1615,
56,
422,
300,
21,
13,
7734,
327,
446... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
760,
514,
1109,
17500,
8206,
1260,
12,
780,
977,
13,
288,
540,
202,
474,
770,
56,
273,
977,
18,
31806,
2668,
56,
8284,
5411,
309,
261,
1615,
56,
422,
300,
21,
13,
7734,
327,
446... | |
private void initializeParameters() { Map<String, String> m = new TreeMap<String, String>(); Enumeration ep = getService().enumerateParameter(); while (ep.hasMoreElements()) { Parameter p = (Parameter) ep.nextElement(); m.put(p.getKey(), p.getValue()); } if(storeByIfAlias() != null && isTrue(storeByIfAlias())) { m.put("storeByIfAlias", "true"); if(storeByNodeId() != null) { if(isTrue(storeByNodeId())) { m.put("storeByNodeID", "true"); } else if(isFalse(storeByNodeId())) { m.put("storeByNodeID", "false"); } else { m.put("storeByNodeID", "normal"); } } if(ifAliasDomain() != null) { m.put("domain", ifAliasDomain()); } else { m.put("domain", getPackageName()); } if(storeFlagOverride() != null && isTrue(storeFlagOverride())) { m.put("storFlagOverride", "true"); } m.put("ifAliasComment", ifAliasComment()); if (log().isDebugEnabled()) log().debug("ifAliasDomain = " + ifAliasDomain() + ", storeByIfAlias = " + storeByIfAlias() + ", storeByNodeID = " + storeByNodeId() + ", storFlagOverride = " + storeFlagOverride() + ", ifAliasComment = " + ifAliasComment()); } m_parameters = m; } | 25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/ca9016b6fe5dcf40d28ff1625eb8e8af92f74aed/CollectionSpecification.java/clean/opennms-services/src/main/java/org/opennms/netmgt/collectd/CollectionSpecification.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
6459,
11160,
2402,
1435,
95,
202,
202,
863,
32,
780,
16,
780,
34,
81,
33,
2704,
2471,
863,
32,
780,
16,
780,
34,
5621,
202,
202,
21847,
881,
33,
588,
1179,
7675,
7924,
1260... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6459,
11160,
2402,
1435,
95,
202,
202,
863,
32,
780,
16,
780,
34,
81,
33,
2704,
2471,
863,
32,
780,
16,
780,
34,
5621,
202,
202,
21847,
881,
33,
588,
1179,
7675,
7924,
1260... | ||
Node m = n.disambiguateOverride(parent, this); | Node m = n.del().disambiguateOverride(parent, this); | public Node override(Node parent, Node n) { try { if (Report.should_report(Report.visit, 2)) Report.report(2, ">> " + this + "::override " + n); Node m = n.disambiguateOverride(parent, this); if (Report.should_report(Report.visit, 2)) Report.report(2, "<< " + this + "::override " + n + " -> " + m); return m; } catch (SemanticException e) { if (e.getMessage() != null) { Position position = e.position(); if (position == null) { position = n.position(); } this.errorQueue().enqueue(ErrorInfo.SEMANTIC_ERROR, e.getMessage(), position); } else { // silent error; these should be thrown only // when the error has already been reported } return n; } } | 11982 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11982/6de834652cef54684499249eed9820e54e4390bc/AmbiguityRemover.java/clean/src/polyglot/visit/AmbiguityRemover.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2029,
3849,
12,
907,
982,
16,
2029,
290,
13,
288,
3639,
775,
288,
5411,
309,
261,
4820,
18,
13139,
67,
6006,
12,
4820,
18,
11658,
16,
576,
3719,
7734,
8706,
18,
6006,
12,
22,
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,
1071,
2029,
3849,
12,
907,
982,
16,
2029,
290,
13,
288,
3639,
775,
288,
5411,
309,
261,
4820,
18,
13139,
67,
6006,
12,
4820,
18,
11658,
16,
576,
3719,
7734,
8706,
18,
6006,
12,
22,
16... |
if (cptr == -1 || cptr < bptr) { return false; | bptr = cptr; | public boolean decide(String name, ScriptInstance script, Stack locals) { String b = locals.pop().toString(); String a = locals.pop().toString(); if ((a.length() == 0 || b.length() == 0) && a.length() != b.length()) return false; int aptr = 0, bptr = 0, cptr; while (aptr < a.length()) { if (a.charAt(aptr) == '*') { boolean greedy = ((aptr + 1) < a.length() && a.charAt(aptr + 1) == '*'); while (a.charAt(aptr) == '*') { aptr++; if (aptr == a.length()) { return true; } } for (cptr = aptr; cptr < a.length() && a.charAt(cptr) != '?' && a.charAt(cptr) != '*'; cptr++); if (greedy) cptr = b.lastIndexOf(a.substring(aptr, cptr)); else cptr = b.indexOf(a.substring(aptr, cptr), bptr); if (cptr == -1 || cptr < bptr) // < - require 0 or more chars, <= - requires 1 or more chars { return false; } bptr = cptr; } else if (a.charAt(aptr) == '\\') { aptr++; if (aptr < a.length() && a.charAt(aptr) != b.charAt(bptr)) return false; } else if (a.charAt(aptr) != '?' && a.charAt(aptr) != b.charAt(bptr)) { return false; } aptr++; bptr++; } return (bptr == b.length()); } | 11726 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11726/4c52aea87ed56e045ddfc2aae0bca8d053acb00e/BasicStrings.java/clean/sleep/src/sleep/bridges/BasicStrings.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1250,
16288,
12,
780,
508,
16,
7739,
1442,
2728,
16,
7283,
8985,
13,
3639,
288,
6647,
514,
324,
273,
8985,
18,
5120,
7675,
10492,
5621,
6647,
514,
279,
273,
8985,
18,
5120,
7675,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1250,
16288,
12,
780,
508,
16,
7739,
1442,
2728,
16,
7283,
8985,
13,
3639,
288,
6647,
514,
324,
273,
8985,
18,
5120,
7675,
10492,
5621,
6647,
514,
279,
273,
8985,
18,
5120,
7675,
... |
disable(); | success = false; | private void registerAspects(final BcelWeaver weaver, final ClassLoader loader, final List definitions) { if (trace.isTraceEnabled()) trace.enter("registerAspects",this, new Object[] { weaver, loader, definitions} ); boolean success = true; //TODO: the exclude aspect allow to exclude aspect defined upper in the CL hierarchy - is it what we want ?? // if not, review the getResource so that we track which resource is defined by which CL //iterate aspectClassNames //exclude if in any of the exclude list for (Iterator iterator = definitions.iterator(); iterator.hasNext();) { Definition definition = (Definition) iterator.next(); for (Iterator aspects = definition.getAspectClassNames().iterator(); aspects.hasNext();) { String aspectClassName = (String) aspects.next(); if (acceptAspect(aspectClassName)) { info("register aspect " + aspectClassName);// System.err.println("? ClassLoaderWeavingAdaptor.registerAspects() aspectName=" + aspectClassName + ", loader=" + loader + ", bundle=" + weavingContext.getClassLoaderName()); /*ResolvedType aspect = */weaver.addLibraryAspect(aspectClassName); //generate key for SC if(namespace==null){ namespace=new StringBuffer(aspectClassName); }else{ namespace = namespace.append(";"+aspectClassName); } } else {// warn("aspect excluded: " + aspectClassName); lint("aspectExcludedByConfiguration", new String[] { aspectClassName, getClassLoaderName(loader) }); } } } //iterate concreteAspects //exclude if in any of the exclude list - note that the user defined name matters for that to happen for (Iterator iterator = definitions.iterator(); iterator.hasNext();) { Definition definition = (Definition) iterator.next(); for (Iterator aspects = definition.getConcreteAspects().iterator(); aspects.hasNext();) { Definition.ConcreteAspect concreteAspect = (Definition.ConcreteAspect) aspects.next(); if (acceptAspect(concreteAspect.name)) { info("define aspect " + concreteAspect.name); ConcreteAspectCodeGen gen = new ConcreteAspectCodeGen(concreteAspect, weaver.getWorld()); if (!gen.validate()) { error("Concrete-aspect '"+concreteAspect.name+"' could not be registered"); success = false; break; } ((BcelWorld)weaver.getWorld()).addSourceObjectType(Utility.makeJavaClass(concreteAspect.name, gen.getBytes())); concreteAspects.add(gen); weaver.addLibraryAspect(concreteAspect.name); //generate key for SC if(namespace==null){ namespace=new StringBuffer(concreteAspect.name); }else{ namespace = namespace.append(";"+concreteAspect.name); } } } } /* We couldn't register one or more aspects so disable the adaptor */ if (!success) { disable(); warn("failure(s) registering aspects. Disabling weaver for class loader " + getClassLoaderName(loader)); } /* We didn't register any aspects so disable the adaptor */ else if (namespace == null) { disable(); info("no aspects registered. Disabling weaver for class loader " + getClassLoaderName(loader)); } if (trace.isTraceEnabled()) trace.exit("registerAspects",isEnabled()); } | 53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/c315f9d9a754d01ea608d6d1ae020889d4018fc6/ClassLoaderWeavingAdaptor.java/clean/loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1744,
17468,
87,
12,
6385,
605,
2183,
3218,
21851,
732,
21851,
16,
727,
9403,
4088,
16,
727,
987,
6377,
13,
288,
377,
202,
430,
261,
5129,
18,
291,
3448,
1526,
10756,
2606,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1744,
17468,
87,
12,
6385,
605,
2183,
3218,
21851,
732,
21851,
16,
727,
9403,
4088,
16,
727,
987,
6377,
13,
288,
377,
202,
430,
261,
5129,
18,
291,
3448,
1526,
10756,
2606,
1... |
private void addNodeState(NodeState parent, QName nodeName, QName nodeTypeName, String uuid, QNodeDefinition definition, int options) throws RepositoryException, ConstraintViolationException, AccessDeniedException, UnsupportedRepositoryOperationException, NoSuchNodeTypeException, ItemExistsException, VersionException { | private void addNodeState(NodeState parent, QName nodeName, QName nodeTypeName, String uuid, QNodeDefinition definition, int options) throws RepositoryException, ConstraintViolationException, AccessDeniedException, UnsupportedRepositoryOperationException, NoSuchNodeTypeException, ItemExistsException, VersionException { | private void addNodeState(NodeState parent, QName nodeName, QName nodeTypeName, String uuid, QNodeDefinition definition, int options) throws RepositoryException, ConstraintViolationException, AccessDeniedException, UnsupportedRepositoryOperationException, NoSuchNodeTypeException, ItemExistsException, VersionException { // TODO: improve... // check if add node is possible. note, that the options differ if // the 'addNode' is called from inside a regular add-node to create // autocreated child nodes that my are 'protected' by their def. validator.checkAddNode(parent, nodeName, nodeTypeName, options); try { validator.getEffectiveNodeType(new QName[]{nodeTypeName}); } catch (NodeTypeConflictException e) { throw new RepositoryException("node type conflict: " + e.getMessage()); } if (nodeTypeName == null) { // no primary node type specified, // try default primary type from definition nodeTypeName = definition.getDefaultPrimaryType(); if (nodeTypeName == null) { String msg = "an applicable node type could not be determined for " + nodeName; log.debug(msg); throw new ConstraintViolationException(msg); } } NodeState nodeState = transientStateMgr.createNewNodeState(nodeName, uuid, nodeTypeName, definition, parent); EffectiveNodeType ent = validator.getEffectiveNodeType(nodeState); // add 'auto-create' properties defined in node type QPropertyDefinition[] pda = ent.getAutoCreatePropDefs(); for (int i = 0; i < pda.length; i++) { QPropertyDefinition pd = pda[i]; QValue[] autoValue = computeSystemGeneratedPropertyValues(nodeState, pd); if (autoValue != null) { int propOptions = 0; // nothing to check // execute 'addProperty' without adding operation. addPropertyState(nodeState, pd.getQName(), pd.getRequiredType(), autoValue, pd, propOptions); } } // recursively add 'auto-create' child nodes defined in node type QNodeDefinition[] nda = ent.getAutoCreateNodeDefs(); for (int i = 0; i < nda.length; i++) { QNodeDefinition nd = nda[i]; // execute 'addNode' without adding the operation. int opt = ItemStateValidator.CHECK_LOCK | ItemStateValidator.CHECK_COLLISION; addNodeState(nodeState, nd.getQName(), nd.getDefaultPrimaryType(), null, nd, opt); } } | 48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/9ae8bbb5c63832a2db95f20a916c3c350f4f0681/SessionItemStateManager.java/clean/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/SessionItemStateManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
23063,
1119,
12,
907,
1119,
982,
16,
16723,
7553,
16,
16723,
756,
7947,
16,
514,
3822,
16,
2238,
907,
1852,
2379,
16,
509,
702,
13,
1216,
13367,
16,
10770,
27052,
16,
21665,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23063,
1119,
12,
907,
1119,
982,
16,
16723,
7553,
16,
16723,
756,
7947,
16,
514,
3822,
16,
2238,
907,
1852,
2379,
16,
509,
702,
13,
1216,
13367,
16,
10770,
27052,
16,
21665,
... |
this(SwingConstants.HORIZONTAL, 0, 10, 0, 100); | this(SwingConstants.VERTICAL, 0, 10, 0, 100); | public JScrollBar() { this(SwingConstants.HORIZONTAL, 0, 10, 0, 100); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JScrollBar.java/clean/core/src/classpath/javax/javax/swing/JScrollBar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
804,
6806,
5190,
1435,
225,
288,
565,
333,
12,
6050,
310,
2918,
18,
21654,
10109,
16,
374,
16,
1728,
16,
374,
16,
2130,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
804,
6806,
5190,
1435,
225,
288,
565,
333,
12,
6050,
310,
2918,
18,
21654,
10109,
16,
374,
16,
1728,
16,
374,
16,
2130,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
result.append(".."); | result.append(".."); | public String getText() { XSDWildcard xsdWildcard = (XSDWildcard) target; StringBuffer result = new StringBuffer(); Element element = xsdWildcard.getElement(); if (element != null) { result.append(element.getNodeName()); boolean hasMinOccurs = element.hasAttribute(XSDConstants.MINOCCURS_ATTRIBUTE); boolean hasMaxOccurs = element.hasAttribute(XSDConstants.MAXOCCURS_ATTRIBUTE); if (hasMinOccurs || hasMaxOccurs) { result.append(" ["); //$NON-NLS-1$ if (hasMinOccurs) { int min = ((XSDParticle) xsdWildcard.getContainer()).getMinOccurs(); if (min == XSDParticle.UNBOUNDED) { result.append("*"); } else { result.append(String.valueOf(min)); } } else // print default { int min = ((XSDParticle) xsdWildcard.getContainer()).getMinOccurs(); result.append(String.valueOf(min)); } if (hasMaxOccurs) { int max = ((XSDParticle) xsdWildcard.getContainer()).getMaxOccurs(); result.append(".."); if (max == XSDParticle.UNBOUNDED) { result.append("*"); } else { result.append(String.valueOf(max)); } } else // print default { result.append(".."); int max = ((XSDParticle) xsdWildcard.getContainer()).getMaxOccurs(); result.append(String.valueOf(max)); } result.append("]"); } } return result.toString(); } | 13989 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13989/618a19448e2301333a97badaa47bd90747a663db/XSDWildcardAdapter.java/clean/bundles/org.eclipse.wst.xsd.ui/src-adt-xsd/org/eclipse/wst/xsd/ui/internal/adapters/XSDWildcardAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
6701,
1435,
225,
288,
565,
26462,
12121,
14802,
12121,
273,
261,
31244,
12121,
13,
1018,
31,
565,
6674,
563,
273,
394,
6674,
5621,
565,
3010,
930,
273,
14802,
12121,
18,
21336,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6701,
1435,
225,
288,
565,
26462,
12121,
14802,
12121,
273,
261,
31244,
12121,
13,
1018,
31,
565,
6674,
563,
273,
394,
6674,
5621,
565,
3010,
930,
273,
14802,
12121,
18,
21336,
... |
public void setFlagged(boolean value) { | public void setFlagged(boolean value) { | public void setFlagged(boolean value) { try { m.setFlags(new Flags(Flags.Flag.ANSWERED), value); } catch (MessagingException e) { } } | 7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/0cc63cb388a13f01532486f9d178811914e6d71b/MessageExtraWrapper.java/buggy/grendel/sources/grendel/storage/MessageExtraWrapper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
4678,
2423,
12,
6494,
460,
13,
288,
565,
775,
288,
1377,
312,
18,
542,
5094,
12,
2704,
10104,
12,
5094,
18,
4678,
18,
11607,
18839,
2056,
3631,
460,
1769,
565,
289,
1044... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
4678,
2423,
12,
6494,
460,
13,
288,
565,
775,
288,
1377,
312,
18,
542,
5094,
12,
2704,
10104,
12,
5094,
18,
4678,
18,
11607,
18839,
2056,
3631,
460,
1769,
565,
289,
1044... |
} else if (!session.getState().containsKey(SMTPSession.CURRENT_HELO_MODE) && session.useHeloEhloEnforcement()) { | } else if (!session.isHeloEhloSend() && session.useHeloEhloEnforcement()) { | private void doMAIL(SMTPSession session, String argument) { String responseString = null; StringBuffer responseBuffer = session.getResponseBuffer(); String sender = null; boolean badSenderDomain = false; if ((argument != null) && (argument.indexOf(":") > 0)) { int colonIndex = argument.indexOf(":"); sender = argument.substring(colonIndex + 1); argument = argument.substring(0, colonIndex); } if (session.getState().containsKey(SMTPSession.SENDER)) { responseString = "503 "+DSNStatus.getStatus(DSNStatus.PERMANENT,DSNStatus.DELIVERY_OTHER)+" Sender already specified"; session.writeResponse(responseString); } else if (!session.getState().containsKey(SMTPSession.CURRENT_HELO_MODE) && session.useHeloEhloEnforcement()) { responseString = "503 "+DSNStatus.getStatus(DSNStatus.PERMANENT,DSNStatus.DELIVERY_OTHER)+" Need HELO or EHLO before MAIL"; session.writeResponse(responseString); } else if (argument == null || !argument.toUpperCase(Locale.US).equals("FROM") || sender == null) { responseString = "501 "+DSNStatus.getStatus(DSNStatus.PERMANENT,DSNStatus.DELIVERY_INVALID_ARG)+" Usage: MAIL FROM:<sender>"; session.writeResponse(responseString); } else { sender = sender.trim(); // the next gt after the first lt ... AUTH may add more <> int lastChar = sender.indexOf('>', sender.indexOf('<')); // Check to see if any options are present and, if so, whether they are correctly formatted // (separated from the closing angle bracket by a ' '). if ((lastChar > 0) && (sender.length() > lastChar + 2) && (sender.charAt(lastChar + 1) == ' ')) { String mailOptionString = sender.substring(lastChar + 2); // Remove the options from the sender sender = sender.substring(0, lastChar + 1); StringTokenizer optionTokenizer = new StringTokenizer(mailOptionString, " "); while (optionTokenizer.hasMoreElements()) { String mailOption = optionTokenizer.nextToken(); int equalIndex = mailOption.indexOf('='); String mailOptionName = mailOption; String mailOptionValue = ""; if (equalIndex > 0) { mailOptionName = mailOption.substring(0, equalIndex).toUpperCase(Locale.US); mailOptionValue = mailOption.substring(equalIndex + 1); } // Handle the SIZE extension keyword if (mailOptionName.startsWith(MAIL_OPTION_SIZE)) { if (!(doMailSize(session, mailOptionValue, sender))) { return; } } else { // Unexpected option attached to the Mail command if (getLogger().isDebugEnabled()) { StringBuffer debugBuffer = new StringBuffer(128) .append("MAIL command had unrecognized/unexpected option ") .append(mailOptionName) .append(" with value ") .append(mailOptionValue); getLogger().debug(debugBuffer.toString()); } } } } if (!sender.startsWith("<") || !sender.endsWith(">")) { responseString = "501 "+DSNStatus.getStatus(DSNStatus.PERMANENT,DSNStatus.ADDRESS_SYNTAX_SENDER)+" Syntax error in MAIL command"; session.writeResponse(responseString); if (getLogger().isErrorEnabled()) { StringBuffer errorBuffer = new StringBuffer(128) .append("Error parsing sender address: ") .append(sender) .append(": did not start and end with < >"); getLogger().error(errorBuffer.toString()); } return; } MailAddress senderAddress = null; //Remove < and > sender = sender.substring(1, sender.length() - 1); if (sender.length() == 0) { //This is the <> case. Let senderAddress == null } else { if (sender.indexOf("@") < 0) { sender = sender + "@localhost"; } try { senderAddress = new MailAddress(sender); } catch (Exception pe) { responseString = "501 "+DSNStatus.getStatus(DSNStatus.PERMANENT,DSNStatus.ADDRESS_SYNTAX_SENDER)+" Syntax error in sender address"; session.writeResponse(responseString); if (getLogger().isErrorEnabled()) { StringBuffer errorBuffer = new StringBuffer(256) .append("Error parsing sender address: ") .append(sender) .append(": ") .append(pe.getMessage()); getLogger().error(errorBuffer.toString()); } return; } } if (checkValidSenderDomain == true) { /** * don't check if the ip address is allowed to relay. Only check if it is set in the config. */ if (checkAuthClients || !session.isRelayingAllowed()) { // Maybe we should build a static method in org.apache.james.dnsserver.DNSServer ? Collection records; records = dnsServer.findMXRecords(senderAddress.getHost()); if (records == null || records.size() == 0) { badSenderDomain = true; } // try to resolv the provided domain in the senderaddress. If it can not resolved do not accept it. if (badSenderDomain) { responseString = "501 "+DSNStatus.getStatus(DSNStatus.PERMANENT,DSNStatus.ADDRESS_SYNTAX_SENDER)+ " sender " + senderAddress + " contains a domain with no valid MX records"; session.writeResponse(responseString); getLogger().info(responseString); } } } if (!badSenderDomain) { session.getState().put(SMTPSession.SENDER, senderAddress); responseBuffer.append("250 "+DSNStatus.getStatus(DSNStatus.SUCCESS,DSNStatus.ADDRESS_OTHER)+" Sender <") .append(sender) .append("> OK"); responseString = session.clearResponseBuffer(); session.writeResponse(responseString); } } } | 47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/bbb0a0ed18a86c22ec9ffdc15347c0f9a6821835/MailCmdHandler.java/clean/src/java/org/apache/james/smtpserver/MailCmdHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
741,
18191,
12,
55,
14636,
2157,
1339,
16,
514,
1237,
13,
288,
3639,
514,
766,
780,
273,
446,
31,
3639,
6674,
766,
1892,
273,
1339,
18,
588,
1064,
1892,
5621,
3639,
514,
5793... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
18191,
12,
55,
14636,
2157,
1339,
16,
514,
1237,
13,
288,
3639,
514,
766,
780,
273,
446,
31,
3639,
6674,
766,
1892,
273,
1339,
18,
588,
1064,
1892,
5621,
3639,
514,
5793... |
2 : elements.length) ]; | 2 : elements.length) ]; | public final void insertElementAt(String obj, int index) { if( count == elements.length ) { String[] newElements = new String[ 2*(elements.length==0 ? 2 : elements.length) ]; System.arraycopy(elements, 0, newElements, 0, elements.length ); /*@ assume (forall StringVec s; s==null || s==this || s.elements!=newElements) */ elements = newElements; } for( int i=count; i>index; i--) elements[i]=elements[i-1]; elements[index]=obj; count++; } | 46634 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46634/da3049db1eb4330268b3c4bcabb61e7ecd42804f/StringVec.java/buggy/src/escjava/trunk/ESCTools/Rcc/java/rcc/ast/StringVec.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
918,
2243,
1046,
861,
12,
780,
1081,
16,
509,
770,
13,
288,
565,
309,
12,
1056,
422,
2186,
18,
2469,
262,
288,
1377,
514,
8526,
394,
3471,
273,
394,
514,
63,
576,
21556,
62... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
918,
2243,
1046,
861,
12,
780,
1081,
16,
509,
770,
13,
288,
565,
309,
12,
1056,
422,
2186,
18,
2469,
262,
288,
1377,
514,
8526,
394,
3471,
273,
394,
514,
63,
576,
21556,
62... |
chooserStartDir = mPrefs.getChooserStartDir(); | chooserStartDir = mPrefs.getRawChooserStartDir(); | public PrefsDialog (Frame owner, String title, GlobalPreferencesService prefs) { super(owner, title); enableEvents(AWTEvent.WINDOW_EVENT_MASK); mPrefs = prefs; userLevel = mPrefs.getUserLevel(); lookAndFeel = mPrefs.getLookAndFeel(); beanViewer = mPrefs.getBeanViewer(); windowWidth = mPrefs.getWindowWidth(); windowHeight = mPrefs.getWindowHeight(); chooserStartDir = mPrefs.getChooserStartDir(); defaultCorbaHost = mPrefs.getDefaultCorbaHost(); defaultCorbaPort = mPrefs.getDefaultCorbaPort(); defaultIiopVersion = mPrefs.getDefaultIiopVersion(); try { jbInit(); } catch(Exception e) { e.printStackTrace(); } this.configComboBoxes(); mCorbaHostField.setText(String.valueOf(defaultCorbaHost)); mCorbaPortField.setText(String.valueOf(defaultCorbaPort)); mIiopVerField.setText(String.valueOf(defaultIiopVersion)); mWindowWidthField.setText(String.valueOf(windowWidth)); mWindowHeightField.setText(String.valueOf(windowHeight)); this.setModal(true); this.pack(); } | 49828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49828/a0c9fbe2ff9e62c725eb88242c4b599b9459f42b/PrefsDialog.java/clean/modules/tweek/java/org/vrjuggler/tweek/gui/PrefsDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
453,
9316,
6353,
261,
3219,
3410,
16,
514,
2077,
16,
15604,
8510,
12377,
1179,
15503,
13,
282,
288,
1377,
2240,
12,
8443,
16,
2077,
1769,
1377,
4237,
3783,
12,
37,
8588,
1133,
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,
565,
1071,
453,
9316,
6353,
261,
3219,
3410,
16,
514,
2077,
16,
15604,
8510,
12377,
1179,
15503,
13,
282,
288,
1377,
2240,
12,
8443,
16,
2077,
1769,
1377,
4237,
3783,
12,
37,
8588,
1133,
18,
... |
if (validationEnabled && (attDefType == XMLAttributeDecl.DEFAULT_TYPE_FIXED || requiredAndFixed)) { | if (validationEnabled && fixed) { | private int addDefaultAttributes(int elementIndex, XMLAttrList attrList, int attrIndex, boolean validationEnabled, boolean standalone) throws Exception { //System.out.println("XMLValidator#addDefaultAttributes"); //System.out.print(" "); //fGrammar.printAttributes(elementIndex); // // Check after all specified attrs are scanned // (1) report error for REQUIRED attrs that are missing (V_TAGc) // (2) report error for PROHIBITED attrs that are present (V_TAGc) // (3) check that FIXED attrs have matching value (V_TAGd) // (4) add default attrs (FIXED and NOT_FIXED) // fGrammar.getElementDecl(elementIndex,fTempElementDecl); int elementNameIndex = fTempElementDecl.name.localpart; int attlistIndex = fGrammar.getFirstAttributeDeclIndex(elementIndex); int firstCheck = attrIndex; int lastCheck = -1; while (attlistIndex != -1) { fGrammar.getAttributeDecl(attlistIndex, fTempAttDecl); int attPrefix = fTempAttDecl.name.prefix; int attName = fTempAttDecl.name.localpart; int attType = attributeTypeName(fTempAttDecl); int attDefType =fTempAttDecl.defaultType; int attValue = -1 ; if (fTempAttDecl.defaultValue != null ) { attValue = fStringPool.addSymbol(fTempAttDecl.defaultValue); } boolean specified = false; boolean required = attDefType == XMLAttributeDecl.DEFAULT_TYPE_REQUIRED; boolean prohibited = attDefType == XMLAttributeDecl.DEFAULT_TYPE_PROHIBITED; boolean requiredAndFixed = attDefType == XMLAttributeDecl.DEFAULT_TYPE_REQUIRED_AND_FIXED; if (firstCheck != -1) { boolean cdata = attType == fCDATASymbol; if (!cdata || required || prohibited || attValue != -1 || requiredAndFixed) { int i = attrList.getFirstAttr(firstCheck); while (i != -1 && (lastCheck == -1 || i <= lastCheck)) { if ( (fGrammarIsDTDGrammar && (attrList.getAttrName(i) == fTempAttDecl.name.rawname)) || ( fStringPool.equalNames(attrList.getAttrLocalpart(i), attName) && fStringPool.equalNames(attrList.getAttrURI(i), fTempAttDecl.name.uri) ) ) { if (prohibited && validationEnabled) { Object[] args = { fStringPool.toString(elementNameIndex), fStringPool.toString(attName)}; fErrorReporter.reportError(fErrorReporter.getLocator(), SchemaMessageProvider.SCHEMA_DOMAIN, SchemaMessageProvider.ProhibitedAttributePresent, SchemaMessageProvider.MSG_NONE, args, XMLErrorReporter.ERRORTYPE_RECOVERABLE_ERROR); } if (validationEnabled && (attDefType == XMLAttributeDecl.DEFAULT_TYPE_FIXED || requiredAndFixed)) { int alistValue = attrList.getAttValue(i); if (alistValue != attValue && !fStringPool.toString(alistValue).equals(fStringPool.toString(attValue))) { Object[] args = { fStringPool.toString(elementNameIndex), fStringPool.toString(attName), fStringPool.toString(alistValue), fStringPool.toString(attValue)}; fErrorReporter.reportError(fErrorReporter.getLocator(), XMLMessages.XML_DOMAIN, XMLMessages.MSG_FIXED_ATTVALUE_INVALID, XMLMessages.VC_FIXED_ATTRIBUTE_DEFAULT, args, XMLErrorReporter.ERRORTYPE_RECOVERABLE_ERROR); } } specified = true; break; } i = attrList.getNextAttr(i); } } } if (!specified) { if (required || requiredAndFixed) { if (validationEnabled) { Object[] args = { fStringPool.toString(elementNameIndex), fStringPool.toString(attName)}; fErrorReporter.reportError(fErrorReporter.getLocator(), XMLMessages.XML_DOMAIN, XMLMessages.MSG_REQUIRED_ATTRIBUTE_NOT_SPECIFIED, XMLMessages.VC_REQUIRED_ATTRIBUTE, args, XMLErrorReporter.ERRORTYPE_RECOVERABLE_ERROR); } } else if (attValue != -1) { if (validationEnabled && standalone ) { if ( fGrammarIsDTDGrammar && ((DTDGrammar) fGrammar).getAttributeDeclIsExternal(attlistIndex) ) { Object[] args = { fStringPool.toString(elementNameIndex), fStringPool.toString(attName)}; fErrorReporter.reportError(fErrorReporter.getLocator(), XMLMessages.XML_DOMAIN, XMLMessages.MSG_DEFAULTED_ATTRIBUTE_NOT_SPECIFIED, XMLMessages.VC_STANDALONE_DOCUMENT_DECLARATION, args, XMLErrorReporter.ERRORTYPE_RECOVERABLE_ERROR); } } if (validationEnabled) { if (attType == fIDREFSymbol) { this.fValIDRef.validate( fStringPool.toString(attValue), null ); } else if (attType == fIDREFSSymbol) { this.fValIDRefs.validate( fStringPool.toString(attValue), null ); } } if (attrIndex == -1) { attrIndex = attrList.startAttrList(); } // REVISIT: Validation. What should the prefix be? fTempQName.setValues(attPrefix, attName, attName, fTempAttDecl.name.uri); int newAttr = attrList.addAttr(fTempQName, attValue, attType, false, false); if (lastCheck == -1) { lastCheck = newAttr; } } } attlistIndex = fGrammar.getNextAttributeDeclIndex(attlistIndex); } return attrIndex; } // addDefaultAttributes(int,XMLAttrList,int,boolean,boolean):int | 1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/63597ca041f2ace1ab2478457827da4f358e7555/XMLValidator.java/buggy/src/org/apache/xerces/validators/common/XMLValidator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
509,
28297,
2498,
12,
474,
930,
1016,
16,
3167,
3843,
682,
1604,
682,
16,
509,
1604,
1016,
16,
1250,
3379,
1526,
16,
1250,
17676,
13,
1216,
1185,
288,
1377,
368,
3163,
18,
659,
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,
565,
3238,
509,
28297,
2498,
12,
474,
930,
1016,
16,
3167,
3843,
682,
1604,
682,
16,
509,
1604,
1016,
16,
1250,
3379,
1526,
16,
1250,
17676,
13,
1216,
1185,
288,
1377,
368,
3163,
18,
659,
18... |
stmt.execute("UPDATE jiveVersion SET version=" + i + " WHERE name='wildfire'"); | stmt.execute("UPDATE jiveVersion SET version=" + i + " WHERE name='asterisk-im'"); | public static boolean upgradeDatabase(Connection con) throws Exception { if (!tablesExist(con)) { DbConnectionManager.DatabaseType databaseType = DbConnectionManager.getDatabaseType(); if (databaseType == DbConnectionManager.DatabaseType.unknown) { Log.info(LocaleUtils.getLocalizedString("upgrade.database.unknown_db")); System.out.println(LocaleUtils.getLocalizedString("upgrade.database.unknown_db")); return false; } else if (databaseType == DbConnectionManager.DatabaseType.interbase) { Log.info(LocaleUtils.getLocalizedString("upgrade.database.interbase_db")); System.out.println(LocaleUtils.getLocalizedString("upgrade.database.interbase_db")); return false; } // Resource will be like "/database/upgrade/6/wildfire_hsqldb.sql" String resourceName = "/database/asterisk-im_" + databaseType + ".sql"; InputStream resource = DbConnectionManager.class.getResourceAsStream(resourceName); applyScript(resource, con); updateVersionNumber(con); return true; } int version = 0; PreparedStatement pstmt = null; try { pstmt = con.prepareStatement(CHECK_VERSION); pstmt.setString(1, "asterisk-im"); ResultSet rs = pstmt.executeQuery(); rs.next(); version = rs.getInt(1); rs.close(); } catch (SQLException sqle) { // Releases of Wildfire before 2.6.0 stored a major and minor version // number so the normal check for version can fail. Check for the // version using the old format in that case. try { if (pstmt != null) { pstmt.close(); } pstmt = con.prepareStatement(CHECK_VERSION_OLD); ResultSet rs = pstmt.executeQuery(); rs.next(); version = rs.getInt(1); rs.close(); } catch (SQLException sqle2) { // Must be database version 0. } } finally { try { if (pstmt != null) { pstmt.close(); } } catch (Exception e) { Log.error(e); } } if (version == DATABASE_VERSION) { return false; } // The database is an old version that needs to be upgraded. Log.info(LocaleUtils.getLocalizedString("upgrade.database.old_schema")); System.out.println(LocaleUtils.getLocalizedString("upgrade.database.old_schema")); DbConnectionManager.DatabaseType databaseType = DbConnectionManager.getDatabaseType(); if (databaseType == DbConnectionManager.DatabaseType.unknown) { Log.info(LocaleUtils.getLocalizedString("upgrade.database.unknown_db")); System.out.println(LocaleUtils.getLocalizedString("upgrade.database.unknown_db")); return false; } else if (databaseType == DbConnectionManager.DatabaseType.interbase) { Log.info(LocaleUtils.getLocalizedString("upgrade.database.interbase_db")); System.out.println(LocaleUtils.getLocalizedString("upgrade.database.interbase_db")); return false; } // Run all upgrade scripts until we're up to the latest schema. for (int i = version + 1; i <= DATABASE_VERSION; i++) { Statement stmt; InputStream resource = null; try { // Resource will be like "/database/upgrade/6/wildfire_hsqldb.sql" String resourceName = "/database/upgrade/" + i + "/asterisk-im_" + databaseType + ".sql"; resource = DbConnectionManager.class.getResourceAsStream(resourceName); if (resource == null) { // If the resource is null, the specific upgrade number is not available. continue; } applyScript(resource, con); // If the version is greater than 6, automatically update the version information. // Previous to version 6, the upgrade scripts set the version themselves. if (version > 6) { stmt = con.createStatement(); stmt.execute("UPDATE jiveVersion SET version=" + i + " WHERE name='wildfire'"); stmt.close(); } } finally { if (resource != null) { try { resource.close(); } catch (Exception e) { // Ignore. } } } } updateVersionNumber(con); Log.info(LocaleUtils.getLocalizedString("upgrade.database.success")); System.out.println(LocaleUtils.getLocalizedString("upgrade.database.success")); return true; } | 11898 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11898/30a5360f8912d60d9ea151a7a97e023b07e57e90/DatabaseUtil.java/clean/server/src/java/org/jivesoftware/phone/database/DatabaseUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
8400,
4254,
12,
1952,
356,
13,
1216,
1185,
288,
3639,
309,
16051,
9373,
4786,
12,
591,
3719,
288,
5411,
8408,
1952,
1318,
18,
4254,
559,
2063,
559,
273,
8408,
1952,
1318,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
8400,
4254,
12,
1952,
356,
13,
1216,
1185,
288,
3639,
309,
16051,
9373,
4786,
12,
591,
3719,
288,
5411,
8408,
1952,
1318,
18,
4254,
559,
2063,
559,
273,
8408,
1952,
1318,... |
assert(!usedNames.contains(theName)); usedNames.add(theName); } | static void assignJavaPropertyNames(Set usedNames, SchemaProperty[] props, SchemaType baseType, boolean doInherited) { StscState state = StscState.get(); // We have to special case the document types. The reason is that a // document type can inherit from another document type without // containing all of the base type's properties (which is impossible // for normal types) if (baseType.isDocumentType() && !doInherited) { SchemaProperty s = baseType.getElementProperties()[0]; usedNames.add(s.getJavaPropertyName()); } // two passes: first deal with inherited properties, then with new ones. // this ensures that we match up with base class definitions cleanly // BUGBUG(radup) We have to look for particles that have been removed // in the derivation tree for this type using derivation by restriction, // because they have not been removed in Java and may collide with // this type's properties. for (int i = 0; i < props.length; i++) { SchemaPropertyImpl sImpl = (SchemaPropertyImpl)props[i]; SchemaProperty baseProp = (sImpl.isAttribute() ? baseType.getAttributeProperty(sImpl.getName()) : baseType.getElementProperty(sImpl.getName())); if ((baseProp != null) != doInherited) continue; QName propQName = sImpl.getName(); String theName; if (baseProp == null) theName = pickJavaPropertyName(usedNames, propQName.getLocalPart(), state.getJavaname(propQName)); else { theName = baseProp.getJavaPropertyName(); assert(!usedNames.contains(theName)); usedNames.add(theName); } sImpl.setJavaPropertyName(theName); boolean isArray = (sImpl.getMaxOccurs() == null || sImpl.getMaxOccurs().compareTo(BigInteger.ONE) > 0); boolean isSingleton = !isArray && (sImpl.getMaxOccurs().signum() > 0); boolean isOption = isSingleton && (sImpl.getMinOccurs().signum() == 0); SchemaType javaBasedOnType = sImpl.getType(); if (baseProp != null) { if (baseProp.extendsJavaArray()) { isSingleton = false; isOption = false; isArray = true; } if (baseProp.extendsJavaSingleton()) { isSingleton = true; } if (baseProp.extendsJavaOption()) { isOption = true; } javaBasedOnType = baseProp.javaBasedOnType(); } sImpl.setExtendsJava(javaBasedOnType.getRef(), isSingleton, isOption, isArray); } } | 3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/3003aefaceb8e9f31ac6ae03c22b04f88cdce70e/StscJavaizer.java/clean/src/typeimpl/org/apache/xmlbeans/impl/schema/StscJavaizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
918,
2683,
5852,
29932,
12,
694,
1399,
1557,
16,
4611,
1396,
8526,
3458,
16,
4611,
559,
23937,
16,
1250,
741,
29078,
13,
565,
288,
3639,
934,
1017,
1119,
919,
273,
934,
1017,
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,
377,
760,
918,
2683,
5852,
29932,
12,
694,
1399,
1557,
16,
4611,
1396,
8526,
3458,
16,
4611,
559,
23937,
16,
1250,
741,
29078,
13,
565,
288,
3639,
934,
1017,
1119,
919,
273,
934,
1017,
1119,
... | |
return 1; | return super.methodArity(methodId); | public int methodArity(int methodId, IdFunction function) { if (methodId == Id_reverse || methodId == Id_toString) { return 0; } return 1; } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/1ff3bdef3331d41a4f56e8f5a546c04a686b5488/NativeArray.java/clean/js/rhino/src/org/mozilla/javascript/NativeArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
707,
686,
560,
12,
474,
707,
548,
16,
3124,
2083,
445,
13,
288,
3639,
309,
261,
2039,
548,
422,
3124,
67,
9845,
747,
707,
548,
422,
3124,
67,
10492,
13,
288,
5411,
327,
374... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
707,
686,
560,
12,
474,
707,
548,
16,
3124,
2083,
445,
13,
288,
3639,
309,
261,
2039,
548,
422,
3124,
67,
9845,
747,
707,
548,
422,
3124,
67,
10492,
13,
288,
5411,
327,
374... |
private void putRemoteFile( ArtifactRepository repository, File source, String remotePath, TransferListener downloadMonitor ) throws TransferFailedException { failIfNotOnline(); String protocol = repository.getProtocol(); Wagon wagon; try { wagon = getWagon( protocol ); configureWagon( wagon, repository ); } catch ( UnsupportedProtocolException e ) { throw new TransferFailedException( "Unsupported Protocol: '" + protocol + "': " + e.getMessage(), e ); } if ( downloadMonitor != null ) { wagon.addTransferListener( downloadMonitor ); } Map checksums = new HashMap( 2 ); Map sums = new HashMap( 2 ); // TODO: configure these on the repository try { ChecksumObserver checksumObserver = new ChecksumObserver( "MD5" ); wagon.addTransferListener( checksumObserver ); checksums.put( "md5", checksumObserver ); checksumObserver = new ChecksumObserver( "SHA-1" ); wagon.addTransferListener( checksumObserver ); checksums.put( "sha1", checksumObserver ); } catch ( NoSuchAlgorithmException e ) { throw new TransferFailedException( "Unable to add checksum methods: " + e.getMessage(), e ); } try { Repository artifactRepository = new Repository( repository.getId(), repository.getUrl() ); if ( serverPermissionsMap.containsKey( repository.getId() ) ) { RepositoryPermissions perms = (RepositoryPermissions) serverPermissionsMap.get( repository.getId() ); getLogger().debug( "adding permissions to wagon connection: " + perms.getFileMode() + " " + perms.getDirectoryMode() ); artifactRepository.setPermissions( perms ); } else { getLogger().debug( "not adding permissions to wagon connection" ); } wagon.connect( artifactRepository, getAuthenticationInfo( repository.getId() ), getProxy( protocol ) ); wagon.put( source, remotePath ); wagon.removeTransferListener( downloadMonitor ); // Pre-store the checksums as any future puts will overwrite them for ( Iterator i = checksums.keySet().iterator(); i.hasNext(); ) { String extension = (String) i.next(); ChecksumObserver observer = (ChecksumObserver) checksums.get( extension ); sums.put( extension, observer.getActualChecksum() ); } // We do this in here so we can checksum the artifact metadata too, otherwise it could be metadata itself for ( Iterator i = checksums.keySet().iterator(); i.hasNext(); ) { String extension = (String) i.next(); // TODO: shouldn't need a file intermediatary - improve wagon to take a stream File temp = File.createTempFile( "maven-artifact", null ); temp.deleteOnExit(); FileUtils.fileWrite( temp.getAbsolutePath(), (String) sums.get( extension ) ); wagon.put( temp, remotePath + "." + extension ); } } catch ( ConnectionException e ) { throw new TransferFailedException( "Connection failed: " + e.getMessage(), e ); } catch ( AuthenticationException e ) { throw new TransferFailedException( "Authentication failed: " + e.getMessage(), e ); } catch ( AuthorizationException e ) { throw new TransferFailedException( "Authorization failed: " + e.getMessage(), e ); } catch ( ResourceDoesNotExistException e ) { throw new TransferFailedException( "Resource to deploy not found: " + e.getMessage(), e ); } catch ( IOException e ) { throw new TransferFailedException( "Error creating temporary file for deployment: " + e.getMessage(), e ); } finally { disconnectWagon( wagon ); releaseWagon( wagon ); } } | 50542 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50542/013435e2cff39f92fe4de42a5860d123a65c3238/DefaultWagonManager.java/buggy/maven-artifact-manager/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1378,
5169,
812,
12,
14022,
3305,
3352,
16,
1387,
1084,
16,
514,
2632,
743,
16,
27573,
12279,
2223,
4224,
7187,
262,
3639,
1216,
12279,
12417,
565,
288,
3639,
2321,
10288,
16860,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1378,
5169,
812,
12,
14022,
3305,
3352,
16,
1387,
1084,
16,
514,
2632,
743,
16,
27573,
12279,
2223,
4224,
7187,
262,
3639,
1216,
12279,
12417,
565,
288,
3639,
2321,
10288,
16860,... | ||
return _req.getResults(); } | return _req.getResults(); } | public RspList castMessage(final Vector dests, Message msg, int mode, long timeout) { GroupRequest _req=null; Vector real_dests; Channel tmp; // we need to clone because we don't want to modify the original // (we remove ourselves if LOCAL is false, see below) ! real_dests=dests != null ? (Vector)dests.clone() : (members != null? (Vector)members.clone() : null); // if local delivery is off, then we should not wait for the message from the local member. // therefore remove it from the membership tmp=channel; if(tmp == null) { if(adapter != null && adapter.getTransport() instanceof Channel) tmp=(Channel)adapter.getTransport(); } if(tmp != null && tmp.getOpt(Channel.LOCAL).equals(Boolean.FALSE)) { if(local_addr == null) local_addr=tmp.getLocalAddress(); if(local_addr != null && real_dests != null) real_dests.removeElement(local_addr); } // don't even send the message if the destination list is empty if(log.isDebugEnabled()) log.debug("real_dests=" + real_dests); if(real_dests == null || real_dests.size() == 0) { { if(log.isInfoEnabled()) log.info("destination list is empty, won't send message"); return new RspList(); // return empty response list } } _req=new GroupRequest(msg, corr, real_dests, mode, timeout, 0); _req.execute(); return _req.getResults(); } | 3550 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3550/de11e563cde19970f8491cbb8d689fbc8fd53f0f/MessageDispatcher.java/clean/src/org/jgroups/blocks/MessageDispatcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
534,
1752,
682,
4812,
1079,
12,
6385,
5589,
1570,
87,
16,
2350,
1234,
16,
509,
1965,
16,
1525,
2021,
13,
288,
4202,
3756,
691,
225,
389,
3658,
33,
2011,
31,
4202,
5589,
3639,
2863... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
534,
1752,
682,
4812,
1079,
12,
6385,
5589,
1570,
87,
16,
2350,
1234,
16,
509,
1965,
16,
1525,
2021,
13,
288,
4202,
3756,
691,
225,
389,
3658,
33,
2011,
31,
4202,
5589,
3639,
2863... |
if (element instanceof LeafElement || element.getElementType() == searchedType){ | if (element instanceof LeafElement || element.getElementType() == searchedType) { | private static TreeElement findFirstLeaf(TreeElement element, IElementType searchedType, CommonParentState commonParent) { if(commonParent != null){ initStrongWhitespaceHolder(commonParent, element, false); } if (element instanceof LeafElement || element.getElementType() == searchedType){ return element; } else{ for(TreeElement child = element.getFirstChildNode(); child != null; child = child.getTreeNext()){ TreeElement leaf = findFirstLeaf(child, searchedType, commonParent); if (leaf != null) return leaf; } return null; } } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/db4365e72e5685d16ed28252776f5e0da7a3f32a/ParseUtil.java/clean/source/com/intellij/psi/impl/source/parsing/ParseUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
4902,
1046,
19590,
9858,
12,
2471,
1046,
930,
16,
467,
17481,
19242,
559,
16,
5658,
3054,
1119,
2975,
3054,
13,
288,
565,
309,
12,
6054,
3054,
480,
446,
15329,
1377,
1208,
1585... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4902,
1046,
19590,
9858,
12,
2471,
1046,
930,
16,
467,
17481,
19242,
559,
16,
5658,
3054,
1119,
2975,
3054,
13,
288,
565,
309,
12,
6054,
3054,
480,
446,
15329,
1377,
1208,
1585... |
return size() >= CACHE_SIZE; } | return size() >= CACHE_SIZE; } | protected boolean removeEldestEntry(Map.Entry<String, byte[]> eldest) { return size() >= CACHE_SIZE; } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/ba99a86d7eadf0d524847f70cfe01ca73b2fec7a/SourceFinder.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/SourceFinder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1250,
1206,
41,
1236,
395,
1622,
12,
863,
18,
1622,
32,
780,
16,
1160,
8526,
34,
415,
10488,
13,
288,
202,
565,
327,
963,
1435,
1545,
13669,
67,
4574,
31,
202,
97,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1250,
1206,
41,
1236,
395,
1622,
12,
863,
18,
1622,
32,
780,
16,
1160,
8526,
34,
415,
10488,
13,
288,
202,
565,
327,
963,
1435,
1545,
13669,
67,
4574,
31,
202,
97,
2,
-100,... |
public void writeTaskList(TaskList tlist, File outFile) { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db; Document doc = null; try { db = dbf.newDocumentBuilder(); doc = db.newDocument(); } catch (ParserConfigurationException e) { MylarStatusHandler.log(e, "could not create document"); e.printStackTrace(); } Element root = doc.createElement(ELEMENT_TASK_LIST); root.setAttribute(ATTRIBUTE_VERSION, VALUE_VERSION); for (ITaskListExternalizer externalizer : externalizers) { externalizer.createRegistry(doc, root); } for (ITaskCategory category : tlist.getCategories()) { Element element = null; for (ITaskListExternalizer externalizer : externalizers) { if (externalizer.canCreateElementFor(category)) element = externalizer.createCategoryElement(category, doc, root); } if (element == null && delagatingExternalizer.canCreateElementFor(category)) { delagatingExternalizer.createCategoryElement(category, doc, root); } else if (element == null) { MylarStatusHandler.log("Did not externalize: " + category, this); } } for (ITaskQuery query : tlist.getQueries()) { Element element = null; for (ITaskListExternalizer externalizer : externalizers) { if (externalizer.canCreateElementFor(query)) element = externalizer.createQueryElement(query, doc, root); } if (element == null && delagatingExternalizer.canCreateElementFor(query)) { delagatingExternalizer.createQueryElement(query, doc, root); } else if (element == null) { MylarStatusHandler.log("Did not externalize: " + query, this); } } for (ITask task : tlist.getRootTasks()) { try { Element element = null; for (ITaskListExternalizer externalizer : externalizers) { if (externalizer.canCreateElementFor(task)) element = externalizer.createTaskElement(task, doc, root); } if (element == null && delagatingExternalizer.canCreateElementFor(task)) { delagatingExternalizer.createTaskElement(task, doc, root); } else if (element == null) { MylarStatusHandler.log("Did not externalize: " + task, this); } } catch (Exception e) { MylarStatusHandler.log(e, e.getMessage()); } } doc.appendChild(root); writeDOMtoFile(doc, outFile); return; } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/2265a34a2358ae09552e2b2504408e9941a6004d/TaskListWriter.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/internal/TaskListWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1045,
2174,
682,
12,
2174,
682,
268,
1098,
16,
1387,
21651,
13,
288,
202,
202,
2519,
20692,
1319,
74,
273,
30236,
18,
2704,
1442,
5621,
202,
202,
2519,
1263,
1319,
31,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1045,
2174,
682,
12,
2174,
682,
268,
1098,
16,
1387,
21651,
13,
288,
202,
202,
2519,
20692,
1319,
74,
273,
30236,
18,
2704,
1442,
5621,
202,
202,
2519,
1263,
1319,
31,
20... | ||
navigatorTree.setShowsRootHandles(true); | private void postInitComponents() { viewPanelLayout = (CardLayout) viewPanel.getLayout(); navigatorTree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION); navigatorTree.addTreeSelectionListener(new TreeSelectionListener() { public void valueChanged(TreeSelectionEvent e) { navigatorTreeSelectionChanged(e); } }); DefaultTreeCellRenderer renderer = new DefaultTreeCellRenderer(); navigatorTree.setCellRenderer(new FindBugsFrame.MyCellRenderer()); navigatorTree.setShowsRootHandles(true); jarFileList.setModel(new DefaultListModel()); sourceDirList.setModel(new DefaultListModel()); } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/f29ba61769881e425d5197421d3e2fbdd1c8d278/FindBugsFrame.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1603,
2570,
7171,
1435,
288,
3639,
1476,
5537,
3744,
273,
261,
6415,
3744,
13,
1476,
5537,
18,
588,
3744,
5621,
3639,
19796,
2471,
18,
588,
6233,
1488,
7675,
542,
6233,
2309,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1603,
2570,
7171,
1435,
288,
3639,
1476,
5537,
3744,
273,
261,
6415,
3744,
13,
1476,
5537,
18,
588,
3744,
5621,
3639,
19796,
2471,
18,
588,
6233,
1488,
7675,
542,
6233,
2309,
1... | |
sb.append(ch); | sb.append(ch); | private static String cleanPrintfFormat(String format) { StringBuilder sb = new StringBuilder(); StringBuilder flags = new StringBuilder(); int length = format.length(); for (int i = 0; i < length; i++) { char ch = format.charAt(i); if (i + 1 < length && ch == '%') { // The C printf silently ignores invalid flags, so we need to // remove them if present. sb.append(ch); boolean isLeft = false; boolean isAlt = false; flags.setLength(0); int j = i + 1; loop: for (; j < length; j++) { ch = format.charAt(j); switch (ch) { case '-': isLeft = true; break; case '#': isAlt = true; break; case '+': case ' ': case '0': case ',': case '(': flags.append(ch); break; default: break loop; } } int head = j; loop: for (; j < length; j++) { ch = format.charAt(j); switch (ch) { case '%': sb.append(ch); break loop; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case '.': break; case 'b': case 'B': case 's': case 'S': case 'c': if (isLeft) sb.append('-'); if (isAlt) sb.append('#'); sb.append(format, head, j); sb.append(ch); i = j; break loop; default: if (isLeft) sb.append('-'); if (isAlt) sb.append('#'); sb.append(flags); sb.append(format, head, j); sb.append(ch); i = j; break loop; } } } else sb.append(ch); } return sb.toString(); } | 3863 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3863/48fe9243c00516c06c9e56df71ec1e8552ee00db/QuercusStringModule.java/buggy/quercus/src/main/java/com/caucho/quercus/lib/QuercusStringModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
514,
2721,
23332,
1630,
12,
780,
740,
13,
225,
288,
565,
3225,
2393,
273,
394,
3225,
5621,
565,
3225,
2943,
273,
394,
3225,
5621,
565,
509,
769,
273,
740,
18,
2469,
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,
3238,
760,
514,
2721,
23332,
1630,
12,
780,
740,
13,
225,
288,
565,
3225,
2393,
273,
394,
3225,
5621,
565,
3225,
2943,
273,
394,
3225,
5621,
565,
509,
769,
273,
740,
18,
2469,
5621,
565... |
} else { addEdge( initialNode,newNode,thisAcousticScore, thisLMScore ); | } else { addEdge(initialNode, newNode, thisAcousticScore, thisLMScore); | protected void processToken(Node thisNode, Token token) { assert hasNode(thisNode.getId()); //assert token.isWord(); assert thisNode != null; assert token != null; double thisAcousticScore = token.getAcousticScore(); double thisLMScore = token.getLanguageScore(); // test to see if token is processed via a previous node path if (hasNode(token)) { assert getNode(token).getId().equals( Integer.toString(token.hashCode()) ); addEdge(getNode(token), thisNode, thisAcousticScore, thisLMScore); } else { Node newNode = addNode(token); addEdge(newNode, thisNode, thisAcousticScore, thisLMScore); if (loserManager != null) { List list = loserManager.getAlternatePredecessors(token); if (list != null) { for (Iterator iter = list.iterator(); iter.hasNext();) { Token predecessor = (Token) iter.next(); processToken(newNode, predecessor); } } } Token predecessor = token.getPredecessor(); if (predecessor != null) { processToken(newNode, predecessor); } else { addEdge( initialNode,newNode,thisAcousticScore, thisLMScore ); } } } | 48839 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48839/8ac5ac2593f6911b652ed0c5ca4e9337b18f0d19/Lattice.java/clean/sphinx4/edu/cmu/sphinx/result/Lattice.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1207,
1345,
12,
907,
333,
907,
16,
3155,
1147,
13,
288,
3639,
1815,
711,
907,
12,
2211,
907,
18,
26321,
10663,
3639,
368,
11231,
1147,
18,
291,
3944,
5621,
3639,
1815,
333,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1207,
1345,
12,
907,
333,
907,
16,
3155,
1147,
13,
288,
3639,
1815,
711,
907,
12,
2211,
907,
18,
26321,
10663,
3639,
368,
11231,
1147,
18,
291,
3944,
5621,
3639,
1815,
333,
9... |
if (!defaultInvite.getTransparency().equals(inv.getTransparency())) | if (!defaultInvite.getTransparency().equals(inv.getTransparency())) { | public Element handle(Element request, Map context) throws ServiceException { long startTime = sWatch.start(); try { ZimbraContext lc = getZimbraContext(context); Mailbox mbx = getRequestedMailbox(lc); long rangeStart = request.getAttributeLong(MailService.A_APPT_START_TIME); long rangeEnd = request.getAttributeLong(MailService.A_APPT_END_TIME); Collection appointments = mbx.getAppointmentsForRange(rangeStart, rangeEnd); Element response = lc.createElement(MailService.GET_APPT_SUMMARIES_RESPONSE); for (Iterator aptIter = appointments.iterator(); aptIter.hasNext();) { Appointment appointment = (Appointment) aptIter.next(); try { Element apptElt = response.getFactory().createElement(MailService.E_APPOINTMENT); apptElt.addAttribute("x_uid", appointment.getUid()); // Element apptElt = response.addElement(MailService.E_APPOINTMENT); Invite defaultInvite = appointment.getDefaultInvite(); if (defaultInvite == null) { mLog.info("Could not load defaultinfo for appointment with id="+appointment.getId()+" SKIPPING"); continue; // } ParsedDuration defDuration = defaultInvite.getEffectiveDuration(); if (defDuration == null) { mLog.info("Could not load effective default duration for appointment id="+appointment.getId()+" SKIPPING"); continue; } long defDurationMsecs = defDuration.getDurationAsMsecs(defaultInvite.getStartTime().getDate()); // add all the instances: boolean someInRange = false; Collection instances = appointment.expandInstances(rangeStart, rangeEnd); for (Iterator instIter = instances.iterator(); instIter.hasNext();) { Appointment.Instance inst = (Appointment.Instance)(instIter.next()); try { InviteInfo invId = inst.getInviteInfo(); Invite inv = appointment.getInvite(invId.getMsgId(), invId.getComponentId()); // figure out which fields are different from the default and put their data here... ParsedDuration invDuration = inv.getEffectiveDuration(); long instStart = inst.getStart(); if (instStart < rangeEnd && (invDuration.addToTime(instStart))>rangeStart) { someInRange = true; } else { continue; } Element instElt = apptElt.addElement(MailService.E_INSTANCE); instElt.addAttribute(MailService.A_APPT_START_TIME, instStart); if (inst.isException()) { instElt.addAttribute(MailService.A_APPT_IS_EXCEPTION, true); // testing temp removeme TODO instElt.addAttribute("x_recurid", inv.getRecurId().toString()); if ((defaultInvite.getMailItemId() != invId.getMsgId()) || (defaultInvite.getComponentNum() != invId.getComponentId())) { ParsedItemID pid = ParsedItemID.Create(appointment.getId(), inst.getMailItemId()); instElt.addAttribute(MailService.A_APPT_INV_ID, pid.toString()); instElt.addAttribute(MailService.A_APPT_COMPONENT_NUM, inst.getComponentNum()); // fragment has already been sanitized... Message msg = mbx.getMessageById(inst.getMailItemId()); String frag = msg.getFragment(); if (!frag.equals("")) instElt.addAttribute(MailService.E_FRAG, frag, Element.DISP_CONTENT); } if (defDurationMsecs != inst.getEnd()-inst.getStart()) instElt.addAttribute(MailService.A_APPT_DURATION, inst.getEnd()-inst.getStart()); if (!defaultInvite.getStatus().equals(inv.getStatus())) instElt.addAttribute(MailService.A_APPT_STATUS, inv.getStatus()); if (!defaultInvite.getPartStat().equals(inv.getPartStat())) instElt.addAttribute(MailService.A_APPT_PARTSTAT, inv.getPartStat()); if (!defaultInvite.getFreeBusy().equals(inv.getFreeBusy())) instElt.addAttribute(MailService.A_APPT_FREEBUSY, inv.getFreeBusy()); if (!defaultInvite.getFreeBusyActual().equals(inv.getFreeBusyActual())) instElt.addAttribute(MailService.A_APPT_FREEBUSY_ACTUAL, inv.getFreeBusyActual()); if (!defaultInvite.getTransparency().equals(inv.getTransparency())) instElt.addAttribute(MailService.A_APPT_TRANSPARENCY, inv.getTransparency()); if (!defaultInvite.getName().equals(inv.getName())) instElt.addAttribute(MailService.A_NAME, inv.getName()); if (!defaultInvite.getLocation().equals(inv.getLocation())) instElt.addAttribute(MailService.A_APPT_LOCATION, inv.getLocation()); if (defaultInvite.isAllDayEvent() != inv.isAllDayEvent()) instElt.addAttribute(MailService.A_APPT_ALLDAY, inv.isAllDayEvent()); if (defaultInvite.hasOtherAttendees() != inv.hasOtherAttendees()) instElt.addAttribute(MailService.A_APPT_OTHER_ATTENDEES, inv.hasOtherAttendees()); if (defaultInvite.hasAlarm() != inv.hasAlarm()) instElt.addAttribute(MailService.A_APPT_ALARM, inv.hasAlarm()); if (defaultInvite.isRecurrence() != inv.isRecurrence()) instElt.addAttribute(MailService.A_APPT_RECUR, inv.isRecurrence()); } } catch (MailServiceException.NoSuchItemException e) { mLog.info("Error could not get instance "+inst.getMailItemId()+"-"+inst.getComponentNum()+ " for appt "+appointment.getId(), e); } } // iterate all the instances if (someInRange) { // if we found any appointments at all, we have to encode the "Default" data here apptElt.addAttribute(MailService.A_APPT_STATUS, defaultInvite.getStatus()); apptElt.addAttribute(MailService.A_APPT_PARTSTAT, defaultInvite.getPartStat()); apptElt.addAttribute(MailService.A_APPT_FREEBUSY, defaultInvite.getFreeBusy()); apptElt.addAttribute(MailService.A_APPT_FREEBUSY_ACTUAL, defaultInvite.getFreeBusyActual()); apptElt.addAttribute(MailService.A_APPT_TRANSPARENCY, defaultInvite.getTransparency()); apptElt.addAttribute(MailService.A_APPT_DURATION, defDurationMsecs); apptElt.addAttribute(MailService.A_NAME, defaultInvite.getName()); apptElt.addAttribute(MailService.A_APPT_LOCATION, defaultInvite.getLocation()); apptElt.addAttribute(MailService.A_ID, appointment.getId()); ParsedItemID pid = ParsedItemID.Create(appointment.getId(), defaultInvite.getMailItemId()); apptElt.addAttribute(MailService.A_APPT_INV_ID, pid.toString()); apptElt.addAttribute(MailService.A_APPT_COMPONENT_NUM, defaultInvite.getComponentNum()); if (defaultInvite.isAllDayEvent()) apptElt.addAttribute(MailService.A_APPT_ALLDAY, defaultInvite.isAllDayEvent()); if (defaultInvite.hasOtherAttendees()) apptElt.addAttribute(MailService.A_APPT_OTHER_ATTENDEES, defaultInvite.hasOtherAttendees()); if (defaultInvite.hasAlarm()) apptElt.addAttribute(MailService.A_APPT_ALARM, defaultInvite.hasAlarm()); if (defaultInvite.isRecurrence()) apptElt.addAttribute(MailService.A_APPT_RECUR, defaultInvite.isRecurrence()); { // FIXME -- shouldn't have to go back to the Mailbox to get the original Message here... // fragment has already been sanitized... Message defMsg = mbx.getMessageById(defaultInvite.getMailItemId()); String fragment = defMsg.getFragment(); if (!fragment.equals("")) apptElt.addAttribute(MailService.E_FRAG, fragment, Element.DISP_CONTENT); } response.addElement(apptElt); } } catch(MailServiceException.NoSuchItemException e) { mLog.info("Error could not get default invite for Appt: "+ appointment.getId(), e); } } return response; } finally { sWatch.stop(startTime); } } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/17805dbe40bd60b13bb995a9c4f9d4d40f61617d/GetApptSummaries.java/clean/ZimbraServer/src/java/com/zimbra/cs/service/mail/GetApptSummaries.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3010,
1640,
12,
1046,
590,
16,
1635,
819,
13,
5411,
1216,
16489,
288,
3639,
1525,
8657,
273,
272,
5234,
18,
1937,
5621,
3639,
775,
288,
5411,
2285,
381,
15397,
1042,
9109,
273,
2344... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3010,
1640,
12,
1046,
590,
16,
1635,
819,
13,
5411,
1216,
16489,
288,
3639,
1525,
8657,
273,
272,
5234,
18,
1937,
5621,
3639,
775,
288,
5411,
2285,
381,
15397,
1042,
9109,
273,
2344... |
Label label = new Label(statusComposite, SWT.NONE); | Label label = new Label(parent, SWT.NONE); | protected Composite createFilterControls(Composite parent) { GridLayout statusLayout = new GridLayout(1, false); statusLayout.marginWidth = 1; statusLayout.marginHeight = 1; parent.setLayout(statusLayout); Composite statusComposite = new Composite(parent, SWT.NULL); GridLayout gridLayout = new GridLayout(4, false); gridLayout.marginWidth = 0; gridLayout.marginHeight = 0; statusComposite.setLayout(gridLayout); Label label = new Label(statusComposite, SWT.NONE); label.setText(LABEL_FIND); super.createFilterControls(statusComposite); GridData gd = new GridData(SWT.FILL, SWT.DEFAULT, true, false); gd.minimumWidth = filterWidth; filterText.setLayoutData(gd); filterText.addKeyListener(new KeyAdapter() { @Override public void keyPressed(KeyEvent e) { if (e.character == SWT.ESC) { setFilterText(""); } } }); createStatusComposite(statusComposite); createProgressComposite(parent); return parent; } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/cc2f90f5866ae16b19f462d5a14ef01204e1de93/AbstractMylarFilteredTree.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/AbstractMylarFilteredTree.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
14728,
752,
1586,
16795,
12,
9400,
982,
13,
288,
9506,
202,
6313,
3744,
1267,
3744,
273,
394,
7145,
3744,
12,
21,
16,
629,
1769,
202,
202,
2327,
3744,
18,
10107,
2384,
273,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14728,
752,
1586,
16795,
12,
9400,
982,
13,
288,
9506,
202,
6313,
3744,
1267,
3744,
273,
394,
7145,
3744,
12,
21,
16,
629,
1769,
202,
202,
2327,
3744,
18,
10107,
2384,
273,
4... |
super.buildGraphicsNode(ctx, e, node); | node.setFilter(CSSUtilities.convertFilter(e, node, ctx)); node.setMask(CSSUtilities.convertMask(e, node, ctx)); node.setClip(CSSUtilities.convertClipPath(e, node, ctx)); node.setPointerEventType(CSSUtilities.convertPointerEvents(e)); if (ctx.isDynamic()) { initializeDynamicSupport(ctx, e, node); } SVGUtilities.bridgeChildren(ctx, e); | public void buildGraphicsNode(BridgeContext ctx, Element e, GraphicsNode node) { e.normalize(); AttributedString as = buildAttributedString(ctx, e); addGlyphPositionAttributes(as, e, ctx); if (ctx.isDynamic()) { layoutedText = new AttributedString(as.getIterator()); } TextNode tn = (TextNode)node; tn.setAttributedCharacterIterator(as.getIterator()); // now add the painting attributes, cannot do it before this because // some of the Paint objects need to know the bounds of the text // and this isn't know until the text node aci is set TextDecoration textDecoration = getTextDecoration(e, tn, new TextDecoration(), ctx); addPaintAttributes(as, e, tn, textDecoration, ctx); tn.setAttributedCharacterIterator(as.getIterator()); super.buildGraphicsNode(ctx, e, node); } | 46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/974b4f353f7076043b8b0aaaf92c7b990543fce9/SVGTextElementBridge.java/clean/sources/org/apache/batik/bridge/SVGTextElementBridge.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1361,
17558,
907,
12,
13691,
1042,
1103,
16,
21394,
3010,
425,
16,
21394,
16830,
907,
756,
13,
288,
3639,
425,
18,
12237,
5621,
3639,
2380,
11050,
780,
487,
273,
1361,
861,
110... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1361,
17558,
907,
12,
13691,
1042,
1103,
16,
21394,
3010,
425,
16,
21394,
16830,
907,
756,
13,
288,
3639,
425,
18,
12237,
5621,
3639,
2380,
11050,
780,
487,
273,
1361,
861,
110... |
System.err.println("Error Making WGLC Current: " + WGL.GetLastError() ); | System.err.println(getThreadName() + ": Error Making WGLC Current: " + WGL.GetLastError() ); | protected void choosePixelFormatAndCreateContext(boolean onscreen) { PIXELFORMATDESCRIPTOR pfd = null; int pixelFormat = 0; if (onscreen) { GLCapabilities[] availableCaps = null; int numFormats = 0; pfd = newPixelFormatDescriptor(); GraphicsConfiguration config = component.getGraphicsConfiguration(); GraphicsDevice device = config.getDevice(); // Produce a recommended pixel format selection for the GLCapabilitiesChooser. // Use wglChoosePixelFormatARB if user requested multisampling and if we have it available GL dummyGL = null; if (capabilities.getSampleBuffers()) { dummyGL = WindowsGLContextFactory.getDummyGL(device); } int recommendedPixelFormat = -1; boolean haveWGLChoosePixelFormatARB = false; boolean haveWGLARBMultisample = false; if (dummyGL != null) { String availableWGLExtensions = WindowsGLContextFactory.getDummyGLExtensions(device); if (availableWGLExtensions.indexOf("WGL_ARB_pixel_format") >= 0) { haveWGLChoosePixelFormatARB = true; if (availableWGLExtensions.indexOf("WGL_ARB_multisample") >= 0) { haveWGLARBMultisample = true; } } } Rectangle rect = config.getBounds(); long dc = 0; long rc = 0; boolean freeWGLC = false; if( dummyGL != null ) { dc = WindowsGLContextFactory.getDummyGLContext( device ).hdc; rc = WindowsGLContextFactory.getDummyGLContext( device ).hglrc; if( !WGL.wglMakeCurrent( dc, rc ) ) { System.err.println("Error Making WGLC Current: " + WGL.GetLastError() ); } else { freeWGLC = true; } } // Fallback path for older cards, in particular Intel Extreme motherboard graphics boolean gotAvailableCaps = false; if (dummyGL != null && haveWGLChoosePixelFormatARB) { int[] iattributes = new int [2 * MAX_ATTRIBS]; int[] iresults = new int [2 * MAX_ATTRIBS]; float[] fattributes = new float[2 * MAX_ATTRIBS]; int niattribs = 0; int nfattribs = 0; iattributes[niattribs++] = GL.WGL_SUPPORT_OPENGL_ARB; iattributes[niattribs++] = GL.GL_TRUE; iattributes[niattribs++] = GL.WGL_DRAW_TO_WINDOW_ARB; iattributes[niattribs++] = GL.GL_TRUE; iattributes[niattribs++] = GL.WGL_PIXEL_TYPE_ARB; iattributes[niattribs++] = GL.WGL_TYPE_RGBA_ARB; iattributes[niattribs++] = GL.WGL_DOUBLE_BUFFER_ARB; if (capabilities.getDoubleBuffered()) { iattributes[niattribs++] = GL.GL_TRUE; } else { iattributes[niattribs++] = GL.GL_FALSE; } iattributes[niattribs++] = GL.WGL_STEREO_ARB; if (capabilities.getStereo()) { iattributes[niattribs++] = GL.GL_TRUE; } else { iattributes[niattribs++] = GL.GL_FALSE; } iattributes[niattribs++] = GL.WGL_DEPTH_BITS_ARB; iattributes[niattribs++] = capabilities.getDepthBits(); iattributes[niattribs++] = GL.WGL_RED_BITS_ARB; iattributes[niattribs++] = capabilities.getRedBits(); iattributes[niattribs++] = GL.WGL_GREEN_BITS_ARB; iattributes[niattribs++] = capabilities.getGreenBits(); iattributes[niattribs++] = GL.WGL_BLUE_BITS_ARB; iattributes[niattribs++] = capabilities.getBlueBits(); iattributes[niattribs++] = GL.WGL_ALPHA_BITS_ARB; iattributes[niattribs++] = capabilities.getAlphaBits(); iattributes[niattribs++] = GL.WGL_STENCIL_BITS_ARB; iattributes[niattribs++] = capabilities.getStencilBits(); if (capabilities.getAccumRedBits() > 0 || capabilities.getAccumGreenBits() > 0 || capabilities.getAccumBlueBits() > 0 || capabilities.getAccumAlphaBits() > 0) { iattributes[niattribs++] = GL.WGL_ACCUM_BITS_ARB; iattributes[niattribs++] = (capabilities.getAccumRedBits() + capabilities.getAccumGreenBits() + capabilities.getAccumBlueBits() + capabilities.getAccumAlphaBits()); iattributes[niattribs++] = GL.WGL_ACCUM_RED_BITS_ARB; iattributes[niattribs++] = capabilities.getAccumRedBits(); iattributes[niattribs++] = GL.WGL_ACCUM_GREEN_BITS_ARB; iattributes[niattribs++] = capabilities.getAccumGreenBits(); iattributes[niattribs++] = GL.WGL_ACCUM_BLUE_BITS_ARB; iattributes[niattribs++] = capabilities.getAccumBlueBits(); iattributes[niattribs++] = GL.WGL_ACCUM_ALPHA_BITS_ARB; iattributes[niattribs++] = capabilities.getAccumAlphaBits(); } if (haveWGLARBMultisample) { if (capabilities.getSampleBuffers()) { iattributes[niattribs++] = GL.WGL_SAMPLE_BUFFERS_ARB; iattributes[niattribs++] = GL.GL_TRUE; iattributes[niattribs++] = GL.WGL_SAMPLES_ARB; iattributes[niattribs++] = capabilities.getNumSamples(); } } int[] pformats = new int[MAX_PFORMATS]; int[] numFormatsTmp = new int[1]; if (dummyGL.wglChoosePixelFormatARB(hdc, iattributes, fattributes, MAX_PFORMATS, pformats, numFormatsTmp)) { numFormats = numFormatsTmp[0]; if (numFormats > 0) { // Remove one-basing of pixel format (added on later) recommendedPixelFormat = pformats[0] - 1; if (DEBUG) { System.err.println("Used wglChoosePixelFormatARB to recommend pixel format " + recommendedPixelFormat); } } } else { if (DEBUG) { System.err.println("wglChoosePixelFormatARB failed: " + WGL.GetLastError() ); Thread.dumpStack(); } } if (DEBUG) { if (recommendedPixelFormat < 0) { System.err.print("wglChoosePixelFormatARB didn't recommend a pixel format"); if (capabilities.getSampleBuffers()) { System.err.print(" for multisampled GLCapabilities"); } System.err.println(); } } // Produce a list of GLCapabilities to give to the // GLCapabilitiesChooser. // Use wglGetPixelFormatAttribivARB instead of // DescribePixelFormat to get higher-precision information // about the pixel format (should make the GLCapabilities // more precise as well...i.e., remove the // "HardwareAccelerated" bit, which is basically // meaningless, and put in whether it can render to a // window, to a pbuffer, or to a pixmap) niattribs = 0; iattributes[0] = GL.WGL_NUMBER_PIXEL_FORMATS_ARB; if (dummyGL.wglGetPixelFormatAttribivARB(hdc, 0, 0, 1, iattributes, iresults)) { numFormats = iresults[0]; // Should we be filtering out the pixel formats which aren't // applicable, as we are doing here? // We don't have enough information in the GLCapabilities to // represent those that aren't... iattributes[niattribs++] = GL.WGL_DRAW_TO_WINDOW_ARB; iattributes[niattribs++] = GL.WGL_ACCELERATION_ARB; iattributes[niattribs++] = GL.WGL_SUPPORT_OPENGL_ARB; iattributes[niattribs++] = GL.WGL_DEPTH_BITS_ARB; iattributes[niattribs++] = GL.WGL_STENCIL_BITS_ARB; iattributes[niattribs++] = GL.WGL_DOUBLE_BUFFER_ARB; iattributes[niattribs++] = GL.WGL_STEREO_ARB; iattributes[niattribs++] = GL.WGL_PIXEL_TYPE_ARB; iattributes[niattribs++] = GL.WGL_RED_BITS_ARB; iattributes[niattribs++] = GL.WGL_GREEN_BITS_ARB; iattributes[niattribs++] = GL.WGL_BLUE_BITS_ARB; iattributes[niattribs++] = GL.WGL_ALPHA_BITS_ARB; iattributes[niattribs++] = GL.WGL_ACCUM_RED_BITS_ARB; iattributes[niattribs++] = GL.WGL_ACCUM_GREEN_BITS_ARB; iattributes[niattribs++] = GL.WGL_ACCUM_BLUE_BITS_ARB; iattributes[niattribs++] = GL.WGL_ACCUM_ALPHA_BITS_ARB; if (haveWGLARBMultisample) { iattributes[niattribs++] = GL.WGL_SAMPLE_BUFFERS_ARB; iattributes[niattribs++] = GL.WGL_SAMPLES_ARB; } availableCaps = new GLCapabilities[numFormats]; for (int i = 0; i < numFormats; i++) { if (!dummyGL.wglGetPixelFormatAttribivARB(hdc, i+1, 0, niattribs, iattributes, iresults)) { throw new GLException("Error getting pixel format attributes for pixel format " + (i + 1) + " of device context"); } availableCaps[i] = iattributes2GLCapabilities(iattributes, iresults, niattribs, true); } if( freeWGLC ) { WGL.wglMakeCurrent( 0, 0 ); } gotAvailableCaps = true; } else { int lastErr = WGL.GetLastError(); // Intel Extreme graphics fails with a zero error code if (lastErr != 0) { throw new GLException("Unable to enumerate pixel formats of window using wglGetPixelFormatAttribivARB: error code " + WGL.GetLastError()); } } } if (!gotAvailableCaps) { if (DEBUG) { if (!capabilities.getSampleBuffers()) { System.err.println("Using ChoosePixelFormat because multisampling not requested"); } else { System.err.println("Using ChoosePixelFormat because no wglChoosePixelFormatARB: dummyGL = " + dummyGL); } } pfd = glCapabilities2PFD(capabilities, onscreen); // Remove one-basing of pixel format (added on later) recommendedPixelFormat = WGL.ChoosePixelFormat(hdc, pfd) - 1; numFormats = WGL.DescribePixelFormat(hdc, 1, 0, null); if (numFormats == 0) { throw new GLException("Unable to enumerate pixel formats of window for GLCapabilitiesChooser"); } availableCaps = new GLCapabilities[numFormats]; for (int i = 0; i < numFormats; i++) { if (WGL.DescribePixelFormat(hdc, 1 + i, pfd.size(), pfd) == 0) { throw new GLException("Error describing pixel format " + (1 + i) + " of device context"); } availableCaps[i] = pfd2GLCapabilities(pfd); } } // Supply information to chooser pixelFormat = chooser.chooseCapabilities(capabilities, availableCaps, recommendedPixelFormat); if ((pixelFormat < 0) || (pixelFormat >= numFormats)) { throw new GLException("Invalid result " + pixelFormat + " from GLCapabilitiesChooser (should be between 0 and " + (numFormats - 1) + ")"); } if (DEBUG) { System.err.println("Chosen pixel format (" + pixelFormat + "):"); System.err.println(availableCaps[pixelFormat]); } pixelFormat += 1; // one-base the index if (WGL.DescribePixelFormat(hdc, pixelFormat, pfd.size(), pfd) == 0) { throw new GLException("Error re-describing the chosen pixel format: " + WGL.GetLastError()); } } else { // For now, use ChoosePixelFormat for offscreen surfaces until // we figure out how to properly choose an offscreen- // compatible pixel format pfd = glCapabilities2PFD(capabilities, onscreen); pixelFormat = WGL.ChoosePixelFormat(hdc, pfd); } if (!WGL.SetPixelFormat(hdc, pixelFormat, pfd)) { int lastError = WGL.GetLastError(); if (DEBUG) { System.err.println("SetPixelFormat failed: current context = " + WGL.wglGetCurrentContext() + ", current DC = " + WGL.wglGetCurrentDC()); System.err.println("GetPixelFormat(hdc " + hdcToString(hdc) + ") returns " + WGL.GetPixelFormat(hdc)); } throw new GLException("Unable to set pixel format " + pixelFormat + " for device context " + hdcToString(hdc) + ": error code " + lastError); } hglrc = WGL.wglCreateContext(hdc); if (DEBUG) { System.err.println("!!! Created OpenGL context " + hglrc + " for device context " + hdcToString(hdc) + " using pixel format " + pixelFormat); } if (hglrc == 0) { throw new GLException("Unable to create OpenGL context"); } } | 46813 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46813/7f0f3e8038d45b41796892d9ee7a59fb03fcbcb9/WindowsGLContext.java/clean/src/net/java/games/jogl/impl/windows/WindowsGLContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
9876,
9037,
1630,
1876,
1684,
1042,
12,
6494,
603,
9252,
13,
288,
565,
7024,
60,
2247,
7254,
1639,
27689,
293,
8313,
273,
446,
31,
565,
509,
4957,
1630,
273,
374,
31,
565,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9876,
9037,
1630,
1876,
1684,
1042,
12,
6494,
603,
9252,
13,
288,
565,
7024,
60,
2247,
7254,
1639,
27689,
293,
8313,
273,
446,
31,
565,
509,
4957,
1630,
273,
374,
31,
565,
30... |
assertContains( "Invalid wtpmodules", classpath, "/module-1" ); assertContains( "Invalid wtpmodules", classpath, "/refproject-compile" ); assertDoesNotContain( "Invalid wtpmodules", classpath, "/refproject-test" ); assertDoesNotContain( "Invalid wtpmodules", classpath, "/refproject-system" ); assertDoesNotContain( "Invalid wtpmodules", classpath, "/refproject-optional" ); | assertContains( "Invalid wtpmodules", wtpmodules, "/module-1" ); assertContains( "Invalid wtpmodules", wtpmodules, "/refproject-compile" ); assertContains( "Invalid wtpmodules", wtpmodules, "/refproject-sysdep" ); assertDoesNotContain( "Invalid wtpmodules", wtpmodules, "/refproject-test" ); assertDoesNotContain( "Invalid wtpmodules", wtpmodules, "/refproject-optional" ); assertDoesNotContain( "Invalid wtpmodules", wtpmodules, "/refproject-provided" ); | private void checkModule2Wtpmodules( File file ) throws Exception { InputStream fis = new FileInputStream( file ); String classpath = IOUtil.toString( fis ); IOUtil.close( fis ); // direct dependencies: include all assertContains( "Invalid wtpmodules", classpath, "/direct-compile" ); assertDoesNotContain( "Invalid wtpmodules", classpath, "/direct-test" ); assertContains( "Invalid wtpmodules", classpath, "/direct-system" ); assertContains( "Invalid wtpmodules", classpath, "/direct-optional" ); // referenced project: only runtime deps assertContains( "Invalid wtpmodules", classpath, "/module-1" ); assertContains( "Invalid wtpmodules", classpath, "/refproject-compile" ); assertDoesNotContain( "Invalid wtpmodules", classpath, "/refproject-test" ); assertDoesNotContain( "Invalid wtpmodules", classpath, "/refproject-system" ); assertDoesNotContain( "Invalid wtpmodules", classpath, "/refproject-optional" ); // transitive dependencies from referenced projects assertContains( "Invalid wtpmodules", classpath, "/deps-direct-compile" ); assertDoesNotContain( "Invalid wtpmodules", classpath, "/deps-direct-test" ); assertDoesNotContain( "Invalid wtpmodules", classpath, "/deps-direct-system" ); assertDoesNotContain( "Invalid wtpmodules", classpath, "/deps-direct-optional" ); // transitive dependencies from referenced projects assertDoesNotContain( "Invalid wtpmodules", classpath, "/deps-refproject-compile" ); assertDoesNotContain( "Invalid wtpmodules", classpath, "/deps-refproject-test" ); assertDoesNotContain( "Invalid wtpmodules", classpath, "/deps-refproject-system" ); assertDoesNotContain( "Invalid wtpmodules", classpath, "/deps-refproject-optional" ); } | 47050 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47050/aa07bff6b7802c74461667534ba5ec607d8a3aaa/EclipsePluginMasterProjectTest.java/clean/maven-plugins/maven-eclipse-plugin/src/test/java/org/apache/maven/plugin/eclipse/EclipsePluginMasterProjectTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
866,
3120,
22,
59,
6834,
6400,
12,
1387,
585,
262,
3639,
1216,
1185,
565,
288,
3639,
5037,
15324,
273,
394,
11907,
12,
585,
11272,
3639,
514,
10006,
273,
1665,
1304,
18,
10492,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
866,
3120,
22,
59,
6834,
6400,
12,
1387,
585,
262,
3639,
1216,
1185,
565,
288,
3639,
5037,
15324,
273,
394,
11907,
12,
585,
11272,
3639,
514,
10006,
273,
1665,
1304,
18,
10492,... |
ruby_class.setConstant((RubyId)lhs.nd_vid(), val); | ruby.getRubyClass().setConstant((RubyId)lhs.nd_vid(), val); | public void assign(RubyObject self, NODE lhs, RubyObject val, boolean check) { if (val == null) { val = getRuby().getNil(); } switch (lhs.nd_type()) { case NODE_GASGN: ((RubyGlobalEntry)lhs.nd_entry()).set(val); break; case NODE_IASGN: self.setInstanceVar((RubyId)lhs.nd_vid(), val); break; case NODE_LASGN: // if (getRuby().ruby_scope.local_vars == null) { // rb_bug( "unexpected local variable assignment" ); // } getRuby().getRubyScope().setLocalVars(lhs.nd_cnt(), val); break; case NODE_DASGN: RubyVarmap.assign(ruby, (RubyId)lhs.nd_vid(), val); break; case NODE_DASGN_CURR: RubyVarmap.assignCurrent(ruby, (RubyId)lhs.nd_vid(), val); break; case NODE_CDECL: ruby_class.setConstant((RubyId)lhs.nd_vid(), val); break; case NODE_CVDECL: if (!ruby_cbase.isSingleton()) { ruby_cbase.declareClassVar((RubyId)lhs.nd_vid(), val); break; } self = ruby_cbase.getInstanceVar("__attached__"); /* fall through */ case NODE_CVASGN: self.getClassVarSingleton().setClassVar((RubyId)lhs.nd_vid(), val); break; case NODE_MASGN: massign(self, lhs, val, check); break; case NODE_CALL: RubyObject recv = eval(self, lhs.nd_recv()); if (lhs.nd_args() == null) { /* attr set */ recv.getRubyClass().call(recv, (RubyId)lhs.nd_mid(), new RubyObject[] { val }, 0); } else { RubyArray args = (RubyArray)eval(self, lhs.nd_args()); args.push(val); recv.getRubyClass().call(recv, (RubyId)lhs.nd_mid(), (RubyObject[])args.getArray().toArray(new RubyObject[0]), 0); } break; default: // rb_bug( "bug in variable assignment" ); break; } } | 50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/a2024bddc1b8e83f4e8075d2080935c221a833fe/RubyInterpreter.java/buggy/org/jruby/interpreter/RubyInterpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2683,
12,
54,
10340,
921,
365,
16,
11922,
8499,
16,
19817,
921,
1244,
16,
1250,
866,
13,
288,
3639,
309,
261,
1125,
422,
446,
13,
288,
5411,
1244,
273,
4170,
10340,
7675,
588... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2683,
12,
54,
10340,
921,
365,
16,
11922,
8499,
16,
19817,
921,
1244,
16,
1250,
866,
13,
288,
3639,
309,
261,
1125,
422,
446,
13,
288,
5411,
1244,
273,
4170,
10340,
7675,
588... |
public String getFileName() { | public String getFileName() { | public String getFileName() { if (m_fileName == null) { // use "lazy initialiting" if (!m_resource.endsWith("/")) { m_fileName = m_resource.substring(m_resource.lastIndexOf("/") + 1, m_resource.length()); } else { m_fileName = m_resource.substring( m_resource.substring(0, m_resource.length() - 1).lastIndexOf("/") + 1, m_resource.length()); } } return m_fileName; } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/e4e19c0a90797aecd9ee0ffc8ee1a741d57f37ee/CmsJspNavElement.java/buggy/src/org/opencms/jsp/CmsJspNavElement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
13807,
1435,
288,
1171,
309,
261,
81,
67,
17812,
422,
446,
13,
288,
5411,
368,
999,
315,
15998,
2172,
305,
310,
6,
5411,
309,
16051,
81,
67,
3146,
18,
5839,
1190,
2932,
4898,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13807,
1435,
288,
1171,
309,
261,
81,
67,
17812,
422,
446,
13,
288,
5411,
368,
999,
315,
15998,
2172,
305,
310,
6,
5411,
309,
16051,
81,
67,
3146,
18,
5839,
1190,
2932,
4898,... |
public Insets getBorderInsets(Component c) { return getBorderInsets(c, new Insets(0,0,0,0)); } | public Insets getBorderInsets (Component c) { return new Insets (0, 0, 0, 0); } | public Insets getBorderInsets(Component c) { return getBorderInsets(c, new Insets(0,0,0,0)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractBorder.java/buggy/core/src/classpath/javax/javax/swing/border/AbstractBorder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
22300,
2882,
1019,
382,
4424,
12,
1841,
276,
13,
565,
288,
3639,
327,
2882,
1019,
382,
4424,
12,
71,
16,
394,
22300,
12,
20,
16,
20,
16,
20,
16,
20,
10019,
565,
289,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22300,
2882,
1019,
382,
4424,
12,
1841,
276,
13,
565,
288,
3639,
327,
2882,
1019,
382,
4424,
12,
71,
16,
394,
22300,
12,
20,
16,
20,
16,
20,
16,
20,
10019,
565,
289,
2,
-100,
... |
catch (SQLException e) {} | con.clearWarnings(); | public Connection getConnection() throws SQLException { if (con == null) { throw new SQLException("This PooledConnection has already been closed!"); } // Only one connection can be open at a time from this PooledConnection. See JDBC 2.0 Optional Package spec section 6.2.3 if (last != null) { last.close(); if (!con.getAutoCommit()) { try { con.rollback(); } catch (SQLException e) {} } con.clearWarnings(); } con.setAutoCommit(autoCommit); ConnectionHandler handler = new ConnectionHandler(con); last = handler; Connection con = (Connection)Proxy.newProxyInstance(getClass().getClassLoader(), new Class[]{Connection.class, PGConnection.class}, handler); last.setProxy(con); return con; } | 45534 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45534/9e29b32e782e38ebdcb41b217a18fafe3387371e/PooledConnectionImpl.java/clean/src/interfaces/jdbc/org/postgresql/jdbc2/optional/PooledConnectionImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4050,
6742,
1435,
1216,
6483,
202,
95,
202,
202,
430,
261,
591,
422,
446,
13,
202,
202,
95,
1082,
202,
12849,
394,
6483,
2932,
2503,
453,
22167,
1952,
711,
1818,
2118,
4375,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4050,
6742,
1435,
1216,
6483,
202,
95,
202,
202,
430,
261,
591,
422,
446,
13,
202,
202,
95,
1082,
202,
12849,
394,
6483,
2932,
2503,
453,
22167,
1952,
711,
1818,
2118,
4375,
4... |
{ | { | public void primaryExpression() throws RecognitionException { try { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:671:17: ( identPrimary ( options {greedy=true; } : DOT 'class' )? | constant | 'true' | 'false' | 'null' | newExpression | 'this' | 'super' | LPAREN assignmentExpression RPAREN | builtInType ( LBRACK RBRACK )* DOT 'class' ) int alt73=10; switch ( input.LA(1) ) { case IDENT: alt73=1; break; case NUM_INT: case CHAR_LITERAL: case STRING_LITERAL: case NUM_FLOAT: alt73=2; break; case 112: alt73=3; break; case 113: alt73=4; break; case 114: alt73=5; break; case 115: alt73=6; break; case 93: alt73=7; break; case 94: alt73=8; break; case LPAREN: alt73=9; break; case 68: case 69: case 70: case 71: case 72: case 73: case 74: case 75: case 76: alt73=10; break; default: NoViableAltException nvae = new NoViableAltException("670:1: primaryExpression : ( identPrimary ( options {greedy=true; } : DOT \'class\' )? | constant | \'true\' | \'false\' | \'null\' | newExpression | \'this\' | \'super\' | LPAREN assignmentExpression RPAREN | builtInType ( LBRACK RBRACK )* DOT \'class\' );", 73, 0, input); throw nvae; } switch (alt73) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:671:17: identPrimary ( options {greedy=true; } : DOT 'class' )? { following.push(FOLLOW_identPrimary_in_primaryExpression2881); identPrimary(); following.pop(); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:671:30: ( options {greedy=true; } : DOT 'class' )? int alt71=2; int LA71_0 = input.LA(1); if ( LA71_0==DOT ) { int LA71_1 = input.LA(2); if ( LA71_1==IDENT||(LA71_1>=93 && LA71_1<=94)||LA71_1==115 ) { alt71=2; } else if ( LA71_1==89 ) { alt71=1; } else { NoViableAltException nvae = new NoViableAltException("671:30: ( options {greedy=true; } : DOT \'class\' )?", 71, 1, input); throw nvae; } } else if ( (LA71_0>=LBRACK && LA71_0<=RBRACK)||LA71_0==STAR||(LA71_0>=SEMI && LA71_0<=COMMA)||(LA71_0>=RPAREN && LA71_0<=DEC)||LA71_0==111 ) { alt71=2; } else { NoViableAltException nvae = new NoViableAltException("671:30: ( options {greedy=true; } : DOT \'class\' )?", 71, 0, input); throw nvae; } switch (alt71) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:671:56: DOT 'class' { match(input,DOT,FOLLOW_DOT_in_primaryExpression2893); match(input,89,FOLLOW_89_in_primaryExpression2895); } break; } } break; case 2 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:672:9: constant { following.push(FOLLOW_constant_in_primaryExpression2908); constant(); following.pop(); } break; case 3 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:673:17: 'true' { match(input,112,FOLLOW_112_in_primaryExpression2913); } break; case 4 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:674:17: 'false' { match(input,113,FOLLOW_113_in_primaryExpression2918); } break; case 5 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:675:17: 'null' { match(input,114,FOLLOW_114_in_primaryExpression2923); } break; case 6 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:676:9: newExpression { following.push(FOLLOW_newExpression_in_primaryExpression2933); newExpression(); following.pop(); } break; case 7 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:677:17: 'this' { match(input,93,FOLLOW_93_in_primaryExpression2938); } break; case 8 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:678:17: 'super' { match(input,94,FOLLOW_94_in_primaryExpression2943); } break; case 9 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:679:17: LPAREN assignmentExpression RPAREN { match(input,LPAREN,FOLLOW_LPAREN_in_primaryExpression2948); following.push(FOLLOW_assignmentExpression_in_primaryExpression2950); assignmentExpression(); following.pop(); match(input,RPAREN,FOLLOW_RPAREN_in_primaryExpression2952); } break; case 10 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:681:17: builtInType ( LBRACK RBRACK )* DOT 'class' { following.push(FOLLOW_builtInType_in_primaryExpression2960); builtInType(); following.pop(); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:682:17: ( LBRACK RBRACK )* loop72: do { int alt72=2; int LA72_0 = input.LA(1); if ( LA72_0==LBRACK ) { alt72=1; } switch (alt72) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:682:19: LBRACK RBRACK { match(input,LBRACK,FOLLOW_LBRACK_in_primaryExpression2966); match(input,RBRACK,FOLLOW_RBRACK_in_primaryExpression2969); } break; default : break loop72; } } while (true); match(input,DOT,FOLLOW_DOT_in_primaryExpression2976); match(input,89,FOLLOW_89_in_primaryExpression2978); } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/7e425814ce563fcc662b266adb2a4dc8e1a95d19/JavaParser.java/clean/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3354,
2300,
1435,
1216,
9539,
288,
1850,
775,
288,
6647,
368,
342,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3354,
2300,
1435,
1216,
9539,
288,
1850,
775,
288,
6647,
368,
342,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19... |
int tt = peekTokenOrEOL(0); | int tt = peekTokenOrEOL(); | private Node statement() throws IOException { try { Node pn = statementHelper(null); if (pn != null) { return pn; } } catch (ParserException e) { } // skip to end of statement int lineno = ts.getLineno(); guessingStatementEnd: for (;;) { int tt = peekTokenOrEOL(0); consumeToken(); switch (tt) { case Token.ERROR: case Token.EOF: case Token.EOL: case Token.SEMI: break guessingStatementEnd; } } return nf.createExprStatement(nf.createName("error"), lineno); } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/eea0a0a79d27ae62fc3c9a3f98c2f0a02adaf2c4/Parser.java/clean/js/rhino/src/org/mozilla/javascript/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2029,
3021,
1435,
3639,
1216,
1860,
565,
288,
3639,
775,
288,
5411,
2029,
11059,
273,
3021,
2276,
12,
2011,
1769,
5411,
309,
261,
7449,
480,
446,
13,
288,
7734,
327,
11059,
31,
5411... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2029,
3021,
1435,
3639,
1216,
1860,
565,
288,
3639,
775,
288,
5411,
2029,
11059,
273,
3021,
2276,
12,
2011,
1769,
5411,
309,
261,
7449,
480,
446,
13,
288,
7734,
327,
11059,
31,
5411... |
if (cprov != null) { ti.setBackground(column, cprov.getBackground(element, column)); ti.setForeground(column, cprov.getForeground(element, column)); } | tableColorAndFont.setFontsAndColors(ti,element,column); | protected void doUpdateItem(Widget widget, Object element, boolean fullMap) { if (widget instanceof TableItem) { final TableItem item = (TableItem) widget; // remember element we are showing if (fullMap) { associate(element, item); } else { item.setData(element); mapElement(element, item); } IBaseLabelProvider prov = getLabelProvider(); ITableLabelProvider tprov = null; ITableColorProvider cprov = null; if (prov instanceof ITableLabelProvider) { tprov = (ITableLabelProvider) prov; } if (prov instanceof ITableColorProvider) { cprov = (ITableColorProvider) prov; } int columnCount = table.getColumnCount(); TableItem ti = item; // Also enter loop if no columns added. See 1G9WWGZ: JFUIF:WINNT - // TableViewer with 0 columns does not work for (int column = 0; column < columnCount || column == 0; column++) { // Similar code in TableTreeViewer.doUpdateItem() String text = "";//$NON-NLS-1$ Image image = null; if (cprov != null) { ti.setBackground(column, cprov.getBackground(element, column)); ti.setForeground(column, cprov.getForeground(element, column)); } if (tprov == null) { if (column == 0) { ViewerLabel updateLabel = new ViewerLabel(item .getText(), item.getImage()); buildLabel(updateLabel,element); // As it is possible for user code to run the event //loop check here. if (item.isDisposed()) { unmapElement(element); return; } text = updateLabel.getText(); image = updateLabel.getImage(); } } else { text = tprov.getColumnText(element, column); image = tprov.getColumnImage(element, column); } //Avoid setting text to null if (text == null) text = ""; //$NON-NLS-1$ ti.setText(column, text); if (ti.getImage(column) != image) { ti.setImage(column, image); } } colorAndFontCollector.setFontsAndColors(element); colorAndFontCollector.applyFontsAndColors(ti); } } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/8ca7046ca6e648dc2e3ed7472eaa4462581171f6/TableViewer.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TableViewer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
741,
1891,
1180,
12,
4609,
3604,
16,
1033,
930,
16,
1250,
1983,
863,
13,
288,
202,
202,
430,
261,
6587,
1276,
3555,
1180,
13,
288,
1082,
202,
6385,
3555,
1180,
761,
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,
225,
202,
1117,
918,
741,
1891,
1180,
12,
4609,
3604,
16,
1033,
930,
16,
1250,
1983,
863,
13,
288,
202,
202,
430,
261,
6587,
1276,
3555,
1180,
13,
288,
1082,
202,
6385,
3555,
1180,
761,
273,... |
logger.info("New Convention: " + convName); | logger.info("New Convention: ", convName); | public void startElement(String uri, String local, String raw, Attributes atts) { xpath.push(local); if (debug) logger.debug("<" + raw + "> -> " + xpath); // Detect CML modules, like CRML and CCML if (local.startsWith("reaction")) { // e.g. reactionList, reaction -> CRML module logger.info("Detected CRML module"); conv = new CMLReactionModule(conv); conventionStack.push(conventionStack.current()); } else { // assume CML Core // Detect conventions String convName = ""; for (int i = 0; i < atts.getLength(); i++) { if (atts.getQName(i).equals("convention")) { convName = atts.getValue(i); } } if (convName.length() > 0) { conventionStack.push(convName); if (convName.equals(conventionStack.current())) { logger.debug("Same convention as parent"); } else { logger.info("New Convention: " + convName); if (convName.equals("CML")) { conv = new CMLCoreModule(conv); } else if (convName.equals("PDB")) { conv = new PDBConvention(conv); } else if (convName.equals("PMP")) { conv = new PMPConvention(conv); } else if (convName.equals("MDLMol")) { if (debug) logger.debug("MDLMolConvention instantiated..."); conv = new MDLMolConvention(conv); } else if (convName.equals("JMOL-ANIMATION")) { conv = new JMOLANIMATIONConvention(conv); } else { //unknown convention. userConvention? if (userConventions.containsKey(convName)) { ConventionInterface newconv = (ConventionInterface)userConventions.get(convName); newconv.inherit(conv); conv = newconv; } } } } else { // no convention set/reset: take convention of parent conventionStack.push(conventionStack.current()); } } if (debug) logger.debug("Conventions -> " + conventionStack); conv.startElement(xpath, uri, local, raw, atts); } | 45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/bbeef9e56c9fda56c154c99294fb490aaa5557cb/CMLHandler.java/buggy/src/org/openscience/cdk/io/cml/CMLHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
13591,
12,
780,
2003,
16,
514,
1191,
16,
514,
1831,
16,
9055,
15687,
13,
288,
3639,
6748,
18,
6206,
12,
3729,
1769,
3639,
309,
261,
4148,
13,
1194,
18,
4148,
2932,
32,
6,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
13591,
12,
780,
2003,
16,
514,
1191,
16,
514,
1831,
16,
9055,
15687,
13,
288,
3639,
6748,
18,
6206,
12,
3729,
1769,
3639,
309,
261,
4148,
13,
1194,
18,
4148,
2932,
32,
6,
3... |
elNotMatchTag.setName("testFormBean"); elNotMatchTag.setProperty(PROP_KEY); | elNotMatchTag.setNameExpr("testFormBean"); elNotMatchTag.setPropertyExpr(PROP_KEY); | public void testMatchStringMatches() throws ServletException, JspException { TestFormBean formBean = new TestFormBean(); formBean.setStringProperty(VALUE_KEY); pageContext.setAttribute("testFormBean", formBean); pageContext.setAttribute(VAR_KEY, VALUE_KEY); elNotMatchTag.setName("testFormBean"); elNotMatchTag.setProperty(PROP_KEY); elNotMatchTag.setValue(VALUE_KEY); int startTagReturn = elNotMatchTag.doStartTag(); assertEquals("Match string matches comparison", false, startTagReturn == Tag.EVAL_BODY_INCLUDE); } | 8610 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8610/2dbb705eab3659c5c2ceb6398f2eec56e1f6994d/TestELNotMatchTag.java/buggy/struts-el/src/test/org/apache/strutsel/taglib/logic/TestELNotMatchTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2060,
780,
6869,
1435,
27573,
1216,
16517,
16,
27485,
288,
3639,
7766,
1204,
3381,
646,
3381,
273,
394,
7766,
1204,
3381,
5621,
3639,
646,
3381,
18,
542,
780,
1396,
12,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2060,
780,
6869,
1435,
27573,
1216,
16517,
16,
27485,
288,
3639,
7766,
1204,
3381,
646,
3381,
273,
394,
7766,
1204,
3381,
5621,
3639,
646,
3381,
18,
542,
780,
1396,
12,
4... |
if (jj_3R_357()) return true; | if (jj_3R_281()) return true; | final private boolean jj_3R_350() { if (jj_3R_357()) return true; return false; } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/67e36956371c94d98bb371923fcf416ddb50fd0f/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,
23,
3361,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
6030,
21,
10756,
327,
638,
31,
565,
327,
629,
31,
225,
289,
2,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
3238,
1250,
10684,
67,
23,
54,
67,
23,
3361,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
6030,
21,
10756,
327,
638,
31,
565,
327,
629,
31,
225,
289,
2,
-100,
-100,
-100,
... |
public void writeBoolean(boolean value) { | public void writeBoolean(boolean value) { | public void writeBoolean(boolean value) { _cdrOutput.write_boolean(value); } | 12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/9d2c39c906c6955e17daf4ac239b85d4727ddc83/ObjectOutputStream.java/clean/modules/interop/src/java/org/apache/geronimo/interop/rmi/iiop/ObjectOutputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1045,
5507,
12,
6494,
460,
13,
288,
3639,
389,
71,
3069,
1447,
18,
2626,
67,
6494,
12,
1132,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1045,
5507,
12,
6494,
460,
13,
288,
3639,
389,
71,
3069,
1447,
18,
2626,
67,
6494,
12,
1132,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
saveRepository(); | saved=saveRepository(); | public void saveFile() { log.logDetailed(toString(), Messages.getString("Spoon.Log.SaveToFileOrRepository"));//"Save to file or repository..." if (rep!=null) { saveRepository(); } else { if (transMeta.getFilename()!=null) { save(transMeta.getFilename()); } else { saveFileAs(); } } try { transMeta.getDbCache().saveCache(log); } catch(KettleException e) { new ErrorDialog(shell, props, Messages.getString("Spoon.Dialog.ErrorSavingDatabaseCache.Title"), Messages.getString("Spoon.Dialog.ErrorSavingDatabaseCache.Message"), e);//"An error occured saving the database cache to disk" } } | 9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/8e714b65466552fdae11eab30bc7ed604be6823c/Spoon.java/buggy/src/be/ibridge/kettle/spoon/Spoon.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1923,
812,
1435,
565,
288,
3639,
613,
18,
1330,
40,
6372,
12,
10492,
9334,
4838,
18,
588,
780,
2932,
55,
1631,
265,
18,
1343,
18,
4755,
15450,
1162,
3305,
7923,
1769,
759,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1923,
812,
1435,
565,
288,
3639,
613,
18,
1330,
40,
6372,
12,
10492,
9334,
4838,
18,
588,
780,
2932,
55,
1631,
265,
18,
1343,
18,
4755,
15450,
1162,
3305,
7923,
1769,
759,
6,... |
ListIterator i = epeople.listIterator(); while(i.hasNext()) { EPerson e2 = (EPerson)i.next(); if( e.getID() == e2.getID() ) { i.remove(); epeoplechanged = true; } } | if (epeople.remove(e)) epeoplechanged = true; | public void removeMember(EPerson e) { ListIterator i = epeople.listIterator(); // find and remove the eperson while(i.hasNext()) { EPerson e2 = (EPerson)i.next(); if( e.getID() == e2.getID() ) { // match, remove, and set epeople changed flag i.remove(); epeoplechanged = true; } } } | 47292 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47292/c4fd0f82585f7e096b6d0916fd382f2bb8d4b56f/Group.java/clean/dspace/src/org/dspace/eperson/Group.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
4419,
12,
41,
8346,
425,
13,
565,
288,
3639,
987,
3198,
277,
273,
425,
28035,
18,
1098,
3198,
5621,
3639,
368,
1104,
471,
1206,
326,
5529,
3565,
3639,
1323,
12,
77,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
4419,
12,
41,
8346,
425,
13,
565,
288,
3639,
987,
3198,
277,
273,
425,
28035,
18,
1098,
3198,
5621,
3639,
368,
1104,
471,
1206,
326,
5529,
3565,
3639,
1323,
12,
77,
18,... |
if( call.getInt(1) != 0 ) | int res = call.getInt(1); try { call.close(); } catch( Exception e ) {} if ( res != 0 ) | public error rm_all() throws null_error, db_error, except { try { CallableStatement call = con.prepareCall( "{ ? = call log_rm_all() }" ); call.registerOutParameter(1, Types.INTEGER); call.execute(); if( call.getInt(1) != 0 ) return lr(err_code.err_func_res, "LOG_RM_ALL"); return lr(err_code.err_no, ""); } catch( SQLException e ) { throw new db_error(e.getMessage(), getClass().getName(), 0); } catch( NullPointerException e ) { throw new null_error(e.getMessage(), getClass().getName(), 0); } catch( Exception e ) { throw new except(e.getMessage(), getClass().getName(), 0); } } | 10520 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10520/aa60895232e6efee048e4707ff1e5bcd9d572b38/JDBCLog.java/buggy/trunk/base/jdbc/com/foo_baz/v_q/JDBCLog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
555,
6692,
67,
454,
1435,
1216,
446,
67,
1636,
16,
1319,
67,
1636,
16,
1335,
288,
775,
288,
202,
202,
11452,
3406,
745,
273,
356,
18,
9366,
1477,
12,
4144,
692,
273,
745,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
555,
6692,
67,
454,
1435,
1216,
446,
67,
1636,
16,
1319,
67,
1636,
16,
1335,
288,
775,
288,
202,
202,
11452,
3406,
745,
273,
356,
18,
9366,
1477,
12,
4144,
692,
273,
745,
61... |
assertEquals("Got problems", 0, compilationUnit.getProblems().length); | assertProblemsSize(compilationUnit, 0); | public void test0099() throws JavaModelException { ICompilationUnit workingCopy = null; try { String contents = "public class X {\n" + " @Override @Annot(value=\"Hello\") public String toString() {\n" + " return super.toString();\n" + " }\n" + " @Annot(\"Hello\") void bar() {\n" + " }\n" + " @interface Annot {\n" + " String value();\n" + " }\n" + "}"; workingCopy = getWorkingCopy("/Converter15/src/X.java", true/*resolve*/); ASTNode node = buildAST( contents, workingCopy); assertEquals("Not a compilation unit", ASTNode.COMPILATION_UNIT, node.getNodeType()); CompilationUnit compilationUnit = (CompilationUnit) node; assertEquals("Got problems", 0, compilationUnit.getProblems().length); node = getASTNode(compilationUnit, 0, 0); assertEquals("Not a method declaration", ASTNode.METHOD_DECLARATION, node.getNodeType()); MethodDeclaration methodDeclaration = (MethodDeclaration) node; List modifiers = methodDeclaration.modifiers(); assertEquals("Wrong size", 3, modifiers.size()); IExtendedModifier modifier = (IExtendedModifier) modifiers.get(0); assertTrue("Wrong type", modifier instanceof Annotation); Annotation annotation = (Annotation) modifier; ITypeBinding binding = annotation.resolveTypeBinding(); assertNotNull("No binding", binding); modifier = (IExtendedModifier) modifiers.get(1); assertTrue("Wrong type", modifier instanceof Annotation); annotation = (Annotation) modifier; binding = annotation.resolveTypeBinding(); assertNotNull("No binding", binding); assertEquals("Wrong type", ASTNode.NORMAL_ANNOTATION, annotation.getNodeType()); NormalAnnotation normalAnnotation = (NormalAnnotation) annotation; List values = normalAnnotation.values(); assertEquals("wrong size", 1, values.size()); MemberValuePair valuePair = (MemberValuePair) values.get(0); SimpleName name = valuePair.getName(); IBinding binding2 = name.resolveBinding(); assertNotNull("No binding", binding2); ITypeBinding typeBinding = name.resolveTypeBinding(); assertNotNull("No binding", typeBinding); node = getASTNode(compilationUnit, 0, 1); assertEquals("Not a method declaration", ASTNode.METHOD_DECLARATION, node.getNodeType()); methodDeclaration = (MethodDeclaration) node; modifiers = methodDeclaration.modifiers(); assertEquals("Wrong size", 1, modifiers.size()); modifier = (IExtendedModifier) modifiers.get(0); assertTrue("Wrong type", modifier instanceof Annotation); annotation = (Annotation) modifier; binding = annotation.resolveTypeBinding(); assertNotNull("No binding", binding); } finally { if (workingCopy != null) workingCopy.discardWorkingCopy(); } } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/27a47643605dd7d3ef00263a2fb086b5ac0bf7bc/ASTConverter15Test.java/clean/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
713,
2733,
1435,
1216,
5110,
1488,
503,
288,
202,
202,
45,
19184,
2802,
5960,
2951,
273,
446,
31,
202,
202,
698,
288,
1082,
202,
780,
2939,
273,
9506,
202,
6,
482,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
713,
2733,
1435,
1216,
5110,
1488,
503,
288,
202,
202,
45,
19184,
2802,
5960,
2951,
273,
446,
31,
202,
202,
698,
288,
1082,
202,
780,
2939,
273,
9506,
202,
6,
482,
... |
IListNode list = (func == '`') ? (IListNode) new DXStrNode(position) : new DStrNode(position); | IListNode list = (func == '`') ? (IListNode) new DXStrNode(position) : new DStrNode(position); | private int parseString(int func, int closeQuote, int openQuote) { if (func == '\'') { return parseSingleQuotedString(closeQuote, openQuote); } if (func == 0) { // read 1 line for heredoc // -1 for chomp yaccValue = support.readLine(); return Token.tSTRING; } ISourcePosition position = support.getPosition(); StringToken token = new StringToken(support, errorHandler, position); IListNode list = (func == '`') ? (IListNode) new DXStrNode(position) : new DStrNode(position); int nest = 0; boolean lDyn = false; for (char c = support.read(); c != closeQuote || nest > 0; c = support.read()) { switch (c) { case '\0' : errorHandler.handleError(IErrors.COMPILE_ERROR, position, Messages.getString("unterminated_string")); //$NON-NLS-1$ return 0; case '#' : try { lDyn = parseExpressionString(list, (char) closeQuote, token) || lDyn; } catch (EOFException e) { errorHandler.handleError(IErrors.COMPILE_ERROR, position, Messages.getString("unterminated_string")); //$NON-NLS-1$ return 0; } continue; case '\\' : c = support.read(); if (c == '\n') { continue; } else if (c == closeQuote) { token.append(c); } else { support.unread(); if (func != '"') { token.append('\\'); } token.append((char) readEscape()); } continue; default : if (openQuote != '\0') { if (c == openQuote) { nest++; } if (c == closeQuote && nest-- == 0) { break; } } token.append(c); } } lexState = LexState.EXPR_END; if (lDyn) //we know the string is dynamic { if (token.getLength() > 0) { list.add(new StrNode(token.getPosition(), token.getToken())); } yaccValue = list; return (func == '`') ? Token.tDXSTRING : Token.tDSTRING; } //Benoit: this is not needed, I think that if we arrive here //(if the string is not dynamic) there is only one element in the list //and it is the content of token /* StringBuffer buffer = new StringBuffer(); Iterator iter = list.iterator(); while (iter.hasNext()) { Object next = iter.next(); if (next instanceof StrNode) { buffer.append(((StrNode) next).getValue()); } else { yaccValue = list; return (func == '`') ? Token.tDXSTRING : Token.tDSTRING; } } yaccValue = buffer.toString(); */ yaccValue = token.getToken(); return (func == '`') ? Token.tXSTRING : Token.tSTRING; } | 47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/af104711597d4d5b2089320e2517b95b8df14492/RubyYaccLexer.java/clean/org/jruby/lexer/yacc/RubyYaccLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
23659,
12,
474,
1326,
16,
509,
1746,
10257,
16,
509,
1696,
10257,
13,
288,
202,
202,
430,
261,
644,
422,
14118,
6134,
288,
1082,
202,
2463,
1109,
5281,
15919,
780,
12,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
23659,
12,
474,
1326,
16,
509,
1746,
10257,
16,
509,
1696,
10257,
13,
288,
202,
202,
430,
261,
644,
422,
14118,
6134,
288,
1082,
202,
2463,
1109,
5281,
15919,
780,
12,
4... |
public static IChoiceSet getStructChoiceSet( String structName, String property ) { IPropertyDefn propertyDefn = DesignEngine.getMetaDataDictionary( ) .getStructure( structName ) .findProperty( property ); return propertyDefn.getChoices( ); | public static IChoiceSet getStructChoiceSet(String structName, String property) { IPropertyDefn propertyDefn = DesignEngine.getMetaDataDictionary() .getStructure(structName).findProperty(property); return propertyDefn.getChoices(); | public static IChoiceSet getStructChoiceSet( String structName, String property ) { IPropertyDefn propertyDefn = DesignEngine.getMetaDataDictionary( ) .getStructure( structName ) .findProperty( property ); return propertyDefn.getChoices( ); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/4d78f7686771fae0403ed68a06a850b0f45d97fa/ChoiceSetFactory.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/views/attributes/providers/ChoiceSetFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
467,
10538,
694,
1322,
8813,
10538,
694,
12,
514,
1958,
461,
16,
1082,
202,
780,
1272,
262,
202,
95,
202,
202,
45,
1396,
3262,
82,
1272,
3262,
82,
273,
29703,
4410,
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,
760,
467,
10538,
694,
1322,
8813,
10538,
694,
12,
514,
1958,
461,
16,
1082,
202,
780,
1272,
262,
202,
95,
202,
202,
45,
1396,
3262,
82,
1272,
3262,
82,
273,
29703,
4410,
18,
... |
array.set((int)idx, value); | public void store(long idx, RubyObject value) { modify(); if (idx < 0) { idx += array.size(); if (idx < 0) { throw new RubyIndexException("index " + (idx - array.size()) + " out of array"); } } if (idx > array.size()) { array.ensureCapacity((int)idx + 1); for (int i = array.size(); i < idx; i++) { array.add(getRuby().getNil()); } } if (idx == array.size()) { array.add(value); } array.set((int)idx, value); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/12847c6fd28fea4e223d132ced46eb1b4cb9de9a/RubyArray.java/clean/org/jruby/RubyArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1707,
12,
5748,
2067,
16,
19817,
921,
460,
13,
288,
3639,
5612,
5621,
3639,
309,
261,
3465,
411,
374,
13,
288,
5411,
2067,
1011,
526,
18,
1467,
5621,
5411,
309,
261,
3465,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1707,
12,
5748,
2067,
16,
19817,
921,
460,
13,
288,
3639,
5612,
5621,
3639,
309,
261,
3465,
411,
374,
13,
288,
5411,
2067,
1011,
526,
18,
1467,
5621,
5411,
309,
261,
3465,
41... | |
" but last sent was "+lastReceivedPacketSeqNumber); | " but last sent was "+lastReceivedSequenceNumber()); | public synchronized void receivedAckRequest(int realSeqNo) { // Did we send the ack in the first place? if(realSeqNo > lastReceivedPacketSeqNumber) { if(realSeqNo - lastReceivedPacketSeqNumber < 256 || lastReceivedPacketSeqNumber == -1) { // They sent it, haven't had an ack yet queueResendRequest(realSeqNo); // Resend any in between too, and update lastReceivePacketSeqNumber receivedPacketNumber(realSeqNo); } else { Logger.error(this,"Other side asked for re-ack on "+realSeqNo+ " but last sent was "+lastReceivedPacketSeqNumber); } return; } if(queuedResendRequest(realSeqNo)) { // We will get them to resend it first Logger.minor(this, "Other side asked for re-ack on "+realSeqNo+ " but we haven't received it yet"); return; } queueAck(realSeqNo); } | 50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/424c1dfb69925b8e1077acfa1bfdcfa56b49d436/NodePeer.java/buggy/src/freenet/node/NodePeer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
5079,
11931,
691,
12,
474,
2863,
6926,
2279,
13,
288,
3639,
368,
21148,
732,
1366,
326,
8479,
316,
326,
1122,
3166,
35,
3639,
309,
12,
7688,
6926,
2279,
405,
1142,
8872,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3852,
918,
5079,
11931,
691,
12,
474,
2863,
6926,
2279,
13,
288,
3639,
368,
21148,
732,
1366,
326,
8479,
316,
326,
1122,
3166,
35,
3639,
309,
12,
7688,
6926,
2279,
405,
1142,
8872,
... |
+ paths.toString() | + Arrays.toString(values) | protected Object convertValue(String[] paths) throws ConversionException { List collection = new ArrayList(); /* * if the input is null we do not need to do anything since the model * collection has already been cleared */ if (paths != null && paths.length > 0) { for (int i = 0; i < paths.length; i++) { String path = paths[i]; if (path != null) { // retrieve the selected checkbox component Check checkbox = (Check)get(path); if (checkbox == null) { throw new WicketRuntimeException( "submitted http post value [" + paths.toString() + "] for CheckGroup component [" + getPath() + "] contains an illegal relative path " + "element [" + path + "] which does not point to a Check component. Due to this the CheckGroup component cannot resolve the selected Check component pointed to by the illegal value. A possible reason is that componment hierarchy changed between rendering and form submission."); } // assign the value of the group's model collection.add(checkbox.getModelObject()); } } } return collection; } | 46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/e3fa48d0793cd702937bc7ddf5cfc1267fc9de59/CheckGroup.java/clean/wicket/src/main/java/wicket/markup/html/form/CheckGroup.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1033,
1765,
620,
12,
780,
8526,
2953,
13,
1216,
16401,
503,
202,
95,
202,
202,
682,
1849,
273,
394,
2407,
5621,
202,
202,
20308,
1082,
380,
309,
326,
810,
353,
446,
732,
741,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
1765,
620,
12,
780,
8526,
2953,
13,
1216,
16401,
503,
202,
95,
202,
202,
682,
1849,
273,
394,
2407,
5621,
202,
202,
20308,
1082,
380,
309,
326,
810,
353,
446,
732,
741,... |
Object [] parameters = new Object[2]; parameters[0] = StaticEntity.getClient(); parameters[1] = profile; (new RequestThread( new CreateFrameRunnable( ProfileFrame.class, parameters ) )).start(); | Object [] parameters = new Object[1]; parameters[0] = profile; createDisplay( ProfileFrame.class, parameters ); | public void mouseReleased( MouseEvent e ) { Object [] parameters = new Object[2]; parameters[0] = StaticEntity.getClient(); parameters[1] = profile; (new RequestThread( new CreateFrameRunnable( ProfileFrame.class, parameters ) )).start(); } | 50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/0207779f39ea38c8b4c6af38ed19f2872fec8477/ClanManageFrame.java/clean/src/net/sourceforge/kolmafia/ClanManageFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
7644,
26363,
12,
17013,
1133,
425,
262,
202,
202,
95,
1082,
202,
921,
5378,
1472,
273,
394,
1033,
63,
22,
15533,
1082,
202,
3977,
63,
20,
65,
273,
10901,
1943,
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,
3196,
202,
482,
918,
7644,
26363,
12,
17013,
1133,
425,
262,
202,
202,
95,
1082,
202,
921,
5378,
1472,
273,
394,
1033,
63,
22,
15533,
1082,
202,
3977,
63,
20,
65,
273,
10901,
1943,
18,
588,
... |
if (addr1 != null || addr2 != null) | if (addr1 != null && addr2 != null) | protected boolean hostsEqual (URL url1, URL url2) { InetAddress addr1 = getHostAddress (url1); InetAddress addr2 = getHostAddress (url2); if (addr1 != null || addr2 != null) return addr1.equals (addr2); String host1 = url1.getHost(); String host2 = url2.getHost(); if (host1 != null && host2 != null) return host1.equalsIgnoreCase (host2); return host1 == null && host2 == null; } | 56365 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56365/3e38401205b9ce29b86b1a8606095adabd35b585/URLStreamHandler.java/buggy/libjava/java/net/URLStreamHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
1250,
7206,
5812,
261,
1785,
880,
21,
16,
1976,
880,
22,
13,
225,
288,
565,
14218,
3091,
21,
273,
8580,
1887,
261,
718,
21,
1769,
565,
14218,
3091,
22,
273,
8580,
1887,
261,
718,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
1250,
7206,
5812,
261,
1785,
880,
21,
16,
1976,
880,
22,
13,
225,
288,
565,
14218,
3091,
21,
273,
8580,
1887,
261,
718,
21,
1769,
565,
14218,
3091,
22,
273,
8580,
1887,
261,
718,
... |
return DataPackage.eINSTANCE.getTextDataSet( ); | return DataPackage.Literals.TEXT_DATA_SET; | protected EClass eStaticClass( ) { return DataPackage.eINSTANCE.getTextDataSet( ); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/036e8c78765730b146e5854b9d6c397a296fed86/TextDataSetImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/data/impl/TextDataSetImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8233,
425,
5788,
797,
12,
262,
202,
95,
202,
202,
2463,
1910,
2261,
18,
73,
13341,
18,
588,
1528,
13676,
12,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8233,
425,
5788,
797,
12,
262,
202,
95,
202,
202,
2463,
1910,
2261,
18,
73,
13341,
18,
588,
1528,
13676,
12,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
private final void ReInitRounds() { int i; jjround = 0x80000001; for (i = 37; i-- > 0;) jjrounds[i] = 0x80000000; } | private final void ReInitRounds() { int i; jjround = 0x80000001; for (i = 37; i-- > 0;) jjrounds[i] = 0x80000000; } | private final void ReInitRounds() { int i; jjround = 0x80000001; for (i = 37; i-- > 0;) jjrounds[i] = 0x80000000; } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/bad9201cffeb6c6da295101be65bfa4924caa39e/JspParserTokenManager.java/clean/pmd/src/net/sourceforge/pmd/jsp/ast/JspParserTokenManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
727,
918,
868,
2570,
54,
9284,
1435,
288,
3639,
509,
277,
31,
3639,
10684,
2260,
273,
374,
92,
28,
9449,
21,
31,
3639,
364,
261,
77,
273,
18091,
31,
277,
413,
405,
374,
30943,
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,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
727,
918,
868,
2570,
54,
9284,
1435,
288,
3639,
509,
277,
31,
3639,
10684,
2260,
273,
374,
92,
28,
9449,
21,
31,
3639,
364,
261,
77,
273,
18091,
31,
277,
413,
405,
374,
30943,
5... |
HttpServletRequest request, HttpServletResponse response) throws FenixFilterException, FenixServiceException { | HttpServletRequest request, HttpServletResponse response) throws FenixFilterException, FenixServiceException { | public ActionForward registerDislocatedStudentInquiryAnswers(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws FenixFilterException, FenixServiceException { final Registration registration = getStudent(request); final DynaActionForm studentDataInquiryForm = (DynaActionForm) form; final Integer countryID = (Integer) studentDataInquiryForm.get("countryID"); final String dislocatedStudent = studentDataInquiryForm.getString("dislocatedAnswer"); Integer districtID = null; Integer dislocatedCountryID = null; if (!StringUtils.isEmpty(dislocatedStudent) && dislocatedStudent.equalsIgnoreCase("true")) { dislocatedCountryID = (Integer) studentDataInquiryForm.get("dislocatedCountryID"); districtID = (Integer) studentDataInquiryForm.get("districtID"); } final Object[] args = { registration.getIdInternal(), countryID, dislocatedCountryID, districtID }; ServiceManagerServiceFactory.executeService(getUserView(request), "WriteDislocatedStudentAnswer", args); return mapping.findForward("proceedToPersonalDataInquiry"); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/69aeae73559515ba2e3cfe951a595c6c7a98e4f7/ManagePreEnrollmentInquiriesDispatchAction.java/buggy/src/net/sourceforge/fenixedu/presentationTier/Action/student/ManagePreEnrollmentInquiriesDispatchAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4382,
8514,
1744,
1669,
1829,
690,
19943,
319,
382,
372,
6913,
19543,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
1082,
202,
2940,
18572,
590,
16,
12446,
766,
13,
1216,
478,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4382,
8514,
1744,
1669,
1829,
690,
19943,
319,
382,
372,
6913,
19543,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
1082,
202,
2940,
18572,
590,
16,
12446,
766,
13,
1216,
478,
... |
public void foundNullDeref(Location location, ValueNumber valueNumber, IsNullValue refValue); | public void foundNullDeref(Location location, ValueNumber valueNumber, IsNullValue refValue, ValueNumberFrame vnaFrame); | public void foundNullDeref(Location location, ValueNumber valueNumber, IsNullValue refValue); | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/21b684d184ecdad2442e147148deaae497cb03f2/NullDerefAndRedundantComparisonCollector.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ba/npe/NullDerefAndRedundantComparisonCollector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1392,
2041,
40,
822,
74,
12,
2735,
2117,
16,
1445,
1854,
460,
1854,
16,
30230,
620,
1278,
620,
1769,
2,
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,
225,
202,
482,
918,
1392,
2041,
40,
822,
74,
12,
2735,
2117,
16,
1445,
1854,
460,
1854,
16,
30230,
620,
1278,
620,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
126, -1, -1, -1, -1, -1, -1, -1, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, 124, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, 262, 263, 264, 265, | 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 336, -1, -1, 339, 340, 341, 342, 0, 344, 345, 346, 347, 348, 349, 350, 351, -1, 10, -1, -1, 356, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, 33, -1, -1, -1, 37, 38, -1, 40, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, -1, 94, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 123, 124, 125, 126, -1, -1, 33, -1, -1, -1, 37, 38, -1, 40, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, 91, -1, -1, 94, -1, -1, -1, 58, -1, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, 126, -1, -1, -1, -1, -1, -1, -1, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, 124, 261, 262, 263, 264, 265, | private static final short[] yyCheck2() { return new short[] { 126, -1, -1, -1, -1, -1, -1, -1, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, 124, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 336, -1, -1, 339, 340, 341, 342, 0, 344, 345, 346, 347, 348, 349, 350, 351, -1, 10, -1, -1, 356, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, 33, -1, -1, -1, 37, 38, -1, 40, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, -1, 94, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 123, 124, 125, 126, -1, -1, 33, -1, -1, -1, 37, 38, -1, 40, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, 91, -1, -1, 94, -1, -1, -1, 58, -1, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, 126, -1, -1, -1, -1, -1, -1, -1, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, 124, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 336, -1, -1, 339, 340, 341, 342, 0, 344, 345, 346, 347, 348, 349, 350, 351, -1, 10, -1, -1, 356, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, 33, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, -1, -1, 46, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, 126, -1, -1, -1, -1, -1, -1, -1, 33, -1, -1, -1, -1, -1, -1, 40, -1, -1, -1, -1, -1, 46, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, 63, -1, -1, 123, -1, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 94, -1, -1, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, -1, 281, 124, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 335, 336, -1, 33, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, -1, -1, 269, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 33, 346, 347, 348, 349, 350, 351, 40, -1, 297, -1, 356, -1, 46, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 123, -1, -1, 126, -1, -1, -1, -1, -1, -1, -1, 33, -1, -1, -1, -1, -1, -1, 40, -1, -1, -1, -1, -1, 46, -1, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, 59, 60, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, -1, 299, 91, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, 123, -1, -1, 126, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, -1, -1, -1, 41, -1, -1, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, -1, -1, 269, 270, 59, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 335, 336, 125, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, -1, -1, 269, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 33, 346, 347, 348, 349, 350, 351, 40, -1, -1, -1, 356, -1, 46, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, -1, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 46, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 59, 60, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, 91, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, 33, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 59, -1, 269, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 10, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 33, -1, 269, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, 59, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 0, 346, 347, 348, 349, 350, 351, -1, -1, -1, 10, 356, -1, -1, -1, 126, -1, -1, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 41, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, 58, 59, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, 93, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 33, -1, -1, 356, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, -1, -1, -1, 256, 257, 258, 259, 260, 261, -1, -1, 264, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 10, 313, 314, -1, 316, 317, 125, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 33, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, -1, -1, -1, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, 256, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, 41, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, 58, 59, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, -1, -1, -1, -1, -1, 125, -1, -1, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, 0, 281, 91, -1, 93, 94, -1, -1, -1, -1, 10, -1, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 123, 124, 125, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, 61, 62, 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, 0, 91, -1, 93, 94, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, 91, 271, 93, 94, -1, -1, -1, -1, -1, -1, 280, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 0, -1, 123, 124, 125, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, -1, 41, -1, 343, 44, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, 59, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 125, 337, 338, -1, -1, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, 280, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, 37, 38, -1, 343, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 0, 268, 269, -1, 271, -1, 91, -1, 93, 94, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, 37, 38, 124, 125, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, 93, 94, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 91, -1, 93, 94, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 0, -1, -1, -1, -1, -1, 124, 125, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, 41, -1, -1, 343, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 58, 59, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, -1, 93, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, 125, -1, -1, -1, 343, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, 58, 59, 267, 268, 269, 63, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 93, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, 125, 333, 334, 335, -1, -1, 338, -1, 37, 38, -1, 343, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, 0, 271, -1, -1, -1, -1, 91, -1, 93, 94, 10, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, 124, 125, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 91, -1, 93, 94, -1, 0, -1, -1, -1, 281, 282, -1, -1, -1, -1, 10, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, 325, 326, -1, -1, 329, 330, -1, -1, -1, -1, 58, 59, 60, 338, 62, 63, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 91, -1, 93, 94, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 0, -1, -1, -1, -1, -1, 124, 125, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, 41, -1, -1, 343, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 58, 59, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, -1, 93, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, 125, -1, -1, -1, 343, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, 58, 59, 267, 268, 269, 63, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 93, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, 125, 333, 334, 335, -1, -1, 338, -1, 37, 38, -1, 343, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, 0, 271, -1, -1, -1, -1, 91, -1, 93, 94, 10, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, 124, 125, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 91, -1, 93, 94, -1, 0, -1, -1, -1, 281, 282, -1, -1, -1, -1, 10, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, 325, 326, -1, -1, 329, 330, -1, -1, -1, -1, 58, 59, 60, 338, 62, 63, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 91, -1, 93, 94, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, -1, -1, -1, 343, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, -1, -1, -1, 343, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 60, -1, 62, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, -1, 94, -1, 96, -1, -1, -1, 10, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, 124, 338, 126, 37, 38, -1, 343, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 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, 0, -1, -1, -1, 93, 94, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, 37, 38, -1, -1, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, -1, 304, 305, -1, -1, 308, -1, 58, 59, 60, -1, 62, 63, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, 344, 93, 94, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, 124, 125, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, 37, 38, -1, 281, 282, 42, 43, 44, 45, -1, 47, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 0, -1, 333, 334, 94, -1, -1, 338, -1, -1, 10, -1, 343, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, 124, -1, -1, 37, 38, 281, 282, 41, 42, 43, 44, 45, -1, 47, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 0, -1, 333, 334, 93, 94, -1, 338, }; } | 46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/f5c9a1ebd775712f2dc086acfce1a14a123ec632/YyTables.java/clean/src/org/jruby/parser/YyTables.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1564,
22,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
1850,
28245,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1564,
22,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
1850,
28245,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
... |
org.exist.xquery.parser.XQueryAST tmp70_AST_in = (org.exist.xquery.parser.XQueryAST)_t; | org.exist.xquery.parser.XQueryAST tmp68_AST_in = (org.exist.xquery.parser.XQueryAST)_t; | public final int forwardAxis(AST _t) throws RecognitionException, PermissionDeniedException,EXistException { int axis; org.exist.xquery.parser.XQueryAST forwardAxis_AST_in = (org.exist.xquery.parser.XQueryAST)_t; axis= -1; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_child: { org.exist.xquery.parser.XQueryAST tmp68_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_child); _t = _t.getNextSibling(); axis= Constants.CHILD_AXIS; break; } case LITERAL_attribute: { org.exist.xquery.parser.XQueryAST tmp69_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_attribute); _t = _t.getNextSibling(); axis= Constants.ATTRIBUTE_AXIS; break; } case LITERAL_self: { org.exist.xquery.parser.XQueryAST tmp70_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_self); _t = _t.getNextSibling(); axis= Constants.SELF_AXIS; break; } case LITERAL_parent: { org.exist.xquery.parser.XQueryAST tmp71_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_parent); _t = _t.getNextSibling(); axis= Constants.PARENT_AXIS; break; } case LITERAL_descendant: { org.exist.xquery.parser.XQueryAST tmp72_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_descendant); _t = _t.getNextSibling(); axis= Constants.DESCENDANT_AXIS; break; } case 123: { org.exist.xquery.parser.XQueryAST tmp73_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,123); _t = _t.getNextSibling(); axis= Constants.DESCENDANT_SELF_AXIS; break; } case 124: { org.exist.xquery.parser.XQueryAST tmp74_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,124); _t = _t.getNextSibling(); axis= Constants.FOLLOWING_SIBLING_AXIS; break; } case 128: { org.exist.xquery.parser.XQueryAST tmp75_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,128); _t = _t.getNextSibling(); axis= Constants.PRECEDING_SIBLING_AXIS; break; } case LITERAL_ancestor: { org.exist.xquery.parser.XQueryAST tmp76_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_ancestor); _t = _t.getNextSibling(); axis= Constants.ANCESTOR_AXIS; break; } case 127: { org.exist.xquery.parser.XQueryAST tmp77_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,127); _t = _t.getNextSibling(); axis= Constants.ANCESTOR_SELF_AXIS; break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; return axis; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/848376fedfdb64086be7a20004c255cefe7b1015/XQueryTreeParser.java/buggy/src/org/exist/xquery/parser/XQueryTreeParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
509,
225,
5104,
6558,
12,
9053,
389,
88,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
288,
202,
202,
474,
2654,
31,
9506,
202,
3341,
18,
7398,
18,
92,
2271,
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,
727,
509,
225,
5104,
6558,
12,
9053,
389,
88,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
288,
202,
202,
474,
2654,
31,
9506,
202,
3341,
18,
7398,
18,
92,
2271,
18,... |
throw new IOException("Read "+bytesRead+" but bucket length "+bucketLength+"!"); | throw new IOException("Read "+bytesRead+" but bucket length "+bucketLength+ '!'); | public static byte[] hash(Bucket data) throws IOException { InputStream is = null; try { MessageDigest md = SHA256.getMessageDigest(); is = data.getInputStream(); long bucketLength = data.size(); long bytesRead = 0; byte[] buf = new byte[4096]; while((bytesRead < bucketLength) || (bucketLength == -1)) { int readBytes = is.read(buf); if(readBytes < 0) break; bytesRead += readBytes; md.update(buf, 0, readBytes); } if((bytesRead < bucketLength) && (bucketLength > 0)) throw new EOFException(); if((bytesRead != bucketLength) && (bucketLength > 0)) throw new IOException("Read "+bytesRead+" but bucket length "+bucketLength+"!"); return md.digest(); } finally { if(is != null) is.close(); } } | 50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/62fd59041864b4ed1f43adc676de6bfb5ea977f3/BucketTools.java/buggy/src/freenet/support/io/BucketTools.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1160,
8526,
1651,
12,
4103,
501,
13,
1216,
1860,
288,
202,
202,
4348,
353,
273,
446,
31,
202,
202,
698,
288,
1082,
202,
1079,
9568,
3481,
273,
9777,
5034,
18,
24906,
9568... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1160,
8526,
1651,
12,
4103,
501,
13,
1216,
1860,
288,
202,
202,
4348,
353,
273,
446,
31,
202,
202,
698,
288,
1082,
202,
1079,
9568,
3481,
273,
9777,
5034,
18,
24906,
9568... |
this.itsDescription = description; | String itsDescription = description; | public void setDescription(String description) { this.itsDescription = description; props.put($Comment, description); } | 28044 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28044/9619b3a25f43787dc92011111668210e06c00c71/Unix_Shortcut.java/clean/src/lib/com/izforge/izpack/util/os/Unix_Shortcut.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
13812,
12,
780,
2477,
13,
565,
288,
3639,
514,
2097,
3291,
273,
2477,
31,
3639,
3458,
18,
458,
4372,
4469,
16,
2477,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
13812,
12,
780,
2477,
13,
565,
288,
3639,
514,
2097,
3291,
273,
2477,
31,
3639,
3458,
18,
458,
4372,
4469,
16,
2477,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
GraphHelper.addEdgeWithVertices( | Graphs.addEdgeWithVertices( | public void readGraph(Graph g) throws IOException { while (ready()) { String [] cols = skipComments(); if (cols.length > 0) { if (cols[0].equals("e")) { int x = Integer.parseInt(cols[1]) - 1; int y = Integer.parseInt(cols[2]) - 1; if (x != y) { if (cols.length > 3) { GraphHelper.addEdgeWithVertices( g, new Integer(x), new Integer(y), Double.parseDouble(cols[3])); } else { GraphHelper.addEdgeWithVertices( g, new Integer(x), new Integer(y)); } } } } } } | 4188 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4188/c3e5aa9fad3b9e0927939b2a916ae5049377758b/GraphReader.java/buggy/src/org/jgrapht/experimental/GraphReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
855,
4137,
12,
4137,
314,
13,
3639,
1216,
1860,
565,
288,
3639,
1323,
261,
1672,
10756,
288,
5411,
514,
5378,
5347,
273,
2488,
9051,
5621,
5411,
309,
261,
6842,
18,
2469,
405,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
855,
4137,
12,
4137,
314,
13,
3639,
1216,
1860,
565,
288,
3639,
1323,
261,
1672,
10756,
288,
5411,
514,
5378,
5347,
273,
2488,
9051,
5621,
5411,
309,
261,
6842,
18,
2469,
405,
... |
private static ClientGetState uskCreate(BaseClientGetter parent, GetCompletionCallback cb, ClientMetadata clientMetadata, USK usk, LinkedList metaStrings, FetcherContext ctx, ArchiveContext actx, int maxRetries, int recursionLevel, boolean dontTellClientGet, Object token, boolean isEssential, Bucket returnBucket) throws FetchException { | private static ClientGetState uskCreate(BaseClientGetter parent, GetCompletionCallback cb, ClientMetadata clientMetadata, USK usk, LinkedList metaStrings, FetcherContext ctx, ArchiveContext actx, int maxRetries, int recursionLevel, boolean dontTellClientGet, Object token, boolean isEssential, Bucket returnBucket, boolean isFinal) throws FetchException { | private static ClientGetState uskCreate(BaseClientGetter parent, GetCompletionCallback cb, ClientMetadata clientMetadata, USK usk, LinkedList metaStrings, FetcherContext ctx, ArchiveContext actx, int maxRetries, int recursionLevel, boolean dontTellClientGet, Object token, boolean isEssential, Bucket returnBucket) throws FetchException { if(usk.suggestedEdition >= 0) { // Return the latest known version but at least suggestedEdition. long edition = ctx.uskManager.lookup(usk); if(edition <= usk.suggestedEdition) { // Transition to SingleFileFetcher GetCompletionCallback myCB = new USKProxyCompletionCallback(usk, ctx.uskManager, cb); // Want to update the latest known good iff the fetch succeeds. SingleFileFetcher sf = new SingleFileFetcher(parent, myCB, clientMetadata, usk.getSSK(usk.suggestedEdition), metaStrings, usk.getURI().addMetaStrings(metaStrings), 0, ctx, actx, maxRetries, recursionLevel, dontTellClientGet, token, false, returnBucket, true); // Background fetch ctx.uskManager.startTemporaryBackgroundFetcher(usk); return sf; } else { cb.onFailure(new FetchException(FetchException.PERMANENT_REDIRECT, usk.copy(edition).getURI().addMetaStrings(metaStrings)), null); return null; } } else { // Do a thorough, blocking search USKFetcher fetcher = ctx.uskManager.getFetcher(usk.copy(-usk.suggestedEdition), ctx, parent, false); if(isEssential) parent.addMustSucceedBlocks(1); fetcher.addCallback(new MyUSKFetcherCallback(parent, cb, clientMetadata, usk, metaStrings, ctx, actx, maxRetries, recursionLevel, dontTellClientGet, token, returnBucket)); return fetcher; } } | 46731 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46731/411123871e7f2463f679f4d6396979200e173712/SingleFileFetcher.java/buggy/src/freenet/client/async/SingleFileFetcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
2445,
967,
1119,
584,
79,
1684,
12,
2171,
1227,
8461,
982,
16,
968,
11238,
2428,
2875,
16,
2445,
2277,
1004,
2277,
16,
587,
11129,
584,
79,
16,
10688,
2191,
7957,
16,
80... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
2445,
967,
1119,
584,
79,
1684,
12,
2171,
1227,
8461,
982,
16,
968,
11238,
2428,
2875,
16,
2445,
2277,
1004,
2277,
16,
587,
11129,
584,
79,
16,
10688,
2191,
7957,
16,
80... |
contentPane.add(comboBox1, cc.xywh(3, 19, 3, 1)); | contentPane.add(devtoolCombo, cc.xywh(3, 19, 3, 1)); | private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents dialogPane = new JPanel(); contentPane = new JPanel(); iconButton = new JButton(); label6 = new JLabel(); textArea1 = new JTextArea(); typeCombo = new JComboBox(); label1 = new JLabel(); activityCombo = new JComboBox(); label7 = new JLabel(); label8 = new JLabel(); comboBox1 = new JComboBox(); languageExperienceSpinner = new JSpinner(); label2 = new JLabel(); programmingExperienceSpinner = new JSpinner(); label3 = new JLabel(); countryField = new JTextField(); label4 = new JLabel(); funField = new JTextField(); label5 = new JLabel(); buttonBar = new JPanel(); okButton = new JButton(); CellConstraints cc = new CellConstraints(); //======== this ======== setTitle("ANTLRWorks early access 1"); Container contentPane2 = getContentPane(); contentPane2.setLayout(new BorderLayout()); //======== dialogPane ======== { dialogPane.setBorder(Borders.DIALOG_BORDER); dialogPane.setPreferredSize(new Dimension(750, 500)); dialogPane.setLayout(new BorderLayout()); //======== contentPane ======== { contentPane.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(50)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("max(min;100dlu):grow"), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("max(default;30dlu)"), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, new RowSpec[] { new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.DLUY5), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.DLUY5), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) })); //---- iconButton ---- iconButton.setBorder(null); iconButton.setBorderPainted(false); iconButton.setContentAreaFilled(false); iconButton.setDefaultCapable(false); iconButton.setEnabled(true); iconButton.setFocusPainted(false); iconButton.setFocusable(false); iconButton.setIcon(new ImageIcon("/Users/bovet/Dev/Projects/ANTLRWorks/classes/org/antlr/works/icons/app.png")); iconButton.setOpaque(false); iconButton.setRequestFocusEnabled(false); iconButton.setVerifyInputWhenFocusTarget(false); iconButton.setVerticalAlignment(SwingConstants.TOP); contentPane.add(iconButton, cc.xywh(1, 1, 1, 37)); //---- label6 ---- label6.setFont(new Font("Lucida Grande", Font.PLAIN, 20)); label6.setText("Welcome to ANTLRWorks!"); contentPane.add(label6, cc.xywh(3, 1, 5, 1)); //---- textArea1 ---- textArea1.setBackground(UIManager.getColor("window")); textArea1.setEditable(false); textArea1.setLineWrap(true); textArea1.setOpaque(false); textArea1.setText("Please take a few seconds to fill out some information about yourself to help us improve our products. Thank you!"); textArea1.setWrapStyleWord(true); contentPane.add(textArea1, cc.xywh(3, 5, 5, 1)); //---- typeCombo ---- typeCombo.setModel(new DefaultComboBoxModel(new String[] { "Professional programmer", "Researcher", "Graduate student", "Undergraduate student", "Professor" })); contentPane.add(typeCombo, cc.xywh(3, 11, 3, 1)); //---- label1 ---- label1.setHorizontalAlignment(SwingConstants.LEFT); label1.setText("Who are you?"); contentPane.add(label1, cc.xywh(3, 9, 3, 1)); //---- activityCombo ---- activityCombo.setModel(new DefaultComboBoxModel(new String[] { "Industry", "Government", "Academe", "Military", "Other" })); contentPane.add(activityCombo, cc.xywh(3, 15, 3, 1)); //---- label7 ---- label7.setHorizontalAlignment(SwingConstants.LEFT); label7.setText("What is your sector of activity?"); contentPane.add(label7, cc.xywh(3, 13, 3, 1)); //---- label8 ---- label8.setText("What is your primary development environment?"); contentPane.add(label8, cc.xywh(3, 17, 3, 1)); //---- comboBox1 ---- comboBox1.setModel(new DefaultComboBoxModel(new String[] { "Eclipse", "IntelliJ", "Microsoft Visual Studio", "Borland JBuilder", "Xcode", "Text Editor (vi, emacs) - hardcore old-school \"I don't need no stinkin' IDE coder\"", "Other" })); contentPane.add(comboBox1, cc.xywh(3, 19, 3, 1)); //---- languageExperienceSpinner ---- languageExperienceSpinner.setModel(new SpinnerNumberModel(new Integer(0), new Integer(0), null, new Integer(1))); contentPane.add(languageExperienceSpinner, cc.xy(3, 23)); //---- label2 ---- label2.setHorizontalAlignment(SwingConstants.LEFT); label2.setText("How many years of experience with language translation/implementation?"); contentPane.add(label2, cc.xywh(3, 21, 3, 1)); //---- programmingExperienceSpinner ---- programmingExperienceSpinner.setModel(new SpinnerNumberModel(new Integer(0), new Integer(0), null, new Integer(1))); contentPane.add(programmingExperienceSpinner, cc.xy(3, 27)); //---- label3 ---- label3.setHorizontalAlignment(SwingConstants.LEFT); label3.setText("How many years of programming experience?"); contentPane.add(label3, cc.xywh(3, 25, 3, 1)); contentPane.add(countryField, cc.xywh(3, 31, 3, 1)); //---- label4 ---- label4.setHorizontalAlignment(SwingConstants.LEFT); label4.setText("In which country do you currently live?"); contentPane.add(label4, cc.xywh(3, 29, 3, 1)); contentPane.add(funField, cc.xywh(3, 35, 3, 1)); //---- label5 ---- label5.setHorizontalAlignment(SwingConstants.LEFT); label5.setText("What is your preferred caffeinated beverage?"); contentPane.add(label5, cc.xywh(3, 33, 3, 1)); } dialogPane.add(contentPane, BorderLayout.CENTER); //======== buttonBar ======== { buttonBar.setBorder(Borders.BUTTON_BAR_GAP_BORDER); buttonBar.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.GLUE_COLSPEC, FormFactory.BUTTON_COLSPEC }, RowSpec.decodeSpecs("pref"))); //---- okButton ---- okButton.setText("OK"); buttonBar.add(okButton, cc.xy(2, 1)); } dialogPane.add(buttonBar, BorderLayout.SOUTH); } contentPane2.add(dialogPane, BorderLayout.CENTER); // JFormDesigner - End of component initialization //GEN-END:initComponents } | 4430 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4430/68032063de9ae51bdbe116f90da90d1cb4da1c2c/DialogPersonalInfo.java/buggy/src/org/antlr/works/dialog/DialogPersonalInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
7171,
1435,
288,
3639,
368,
804,
1204,
15478,
264,
300,
5435,
10313,
300,
5467,
4269,
8663,
12096,
225,
368,
16652,
17,
16061,
30,
2738,
7171,
3639,
6176,
8485,
273,
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,
377,
3238,
918,
1208,
7171,
1435,
288,
3639,
368,
804,
1204,
15478,
264,
300,
5435,
10313,
300,
5467,
4269,
8663,
12096,
225,
368,
16652,
17,
16061,
30,
2738,
7171,
3639,
6176,
8485,
273,
394,
... |
synPredMatched461 = false; | synPredMatched465 = false; | protected final void mXML_CDATA(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { int _ttype; Token _token=null; int _begin=text.length(); _ttype = XML_CDATA; int _saveIndex; _saveIndex=text.length(); mXML_CDATA_START(false); text.setLength(_saveIndex); { _loop463: do { boolean synPredMatched458 = false; if (((LA(1)==']') && ((LA(2) >= '\u0003' && LA(2) <= '\ufffe')) && ((LA(3) >= '\u0003' && LA(3) <= '\ufffe')) && ((LA(4) >= '\u0003' && LA(4) <= '\ufffe')))) { int _m458 = mark(); synPredMatched458 = true; inputState.guessing++; try { { match(']'); { match(_tokenSet_18); } } } catch (RecognitionException pe) { synPredMatched458 = false; } rewind(_m458); inputState.guessing--; } if ( synPredMatched458 ) { match(']'); } else { boolean synPredMatched461 = false; if (((LA(1)==']') && (LA(2)==']') && ((LA(3) >= '\u0003' && LA(3) <= '\ufffe')) && ((LA(4) >= '\u0003' && LA(4) <= '\ufffe')))) { int _m461 = mark(); synPredMatched461 = true; inputState.guessing++; try { { match(']'); match(']'); { match(_tokenSet_17); } } } catch (RecognitionException pe) { synPredMatched461 = false; } rewind(_m461); inputState.guessing--; } if ( synPredMatched461 ) { { match(']'); match(']'); } } else if ((_tokenSet_18.member(LA(1)))) { { match(_tokenSet_18); } } else { break _loop463; } } } while (true); } _saveIndex=text.length(); mXML_CDATA_END(false); text.setLength(_saveIndex); if ( _createToken && _token==null && _ttype!=Token.SKIP ) { _token = makeToken(_ttype); _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); } _returnToken = _token; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/9aec85412cf9f86cb609358133dd23628306f44a/XQueryLexer.java/clean/src/org/exist/xquery/parser/XQueryLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
918,
312,
4201,
67,
18375,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
918,
312,
4201,
67,
18375,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
... |
this.handler.startAction ("Compilation", this.jobs.size()); | this.handler.startAction("Compilation", this.jobs.size()); | private CompileResult compileJobs () { ArrayList args = new ArrayList(); StringTokenizer tokenizer = new StringTokenizer (this.compilerArgumentsToUse); while (tokenizer.hasMoreTokens ()) { args.add (tokenizer.nextToken()); } Iterator job_it = this.jobs.iterator(); this.handler.startAction ("Compilation", this.jobs.size()); // check whether compiler is valid (but only if there are jobs) if (job_it.hasNext()) { CompilationJob first_job = (CompilationJob)this.jobs.get (0); CompileResult check_result = first_job.checkCompiler (this.compilerToUse, args); if (! check_result.isContinue ()) { return check_result; } } int job_no = 0; while (job_it.hasNext()) { CompilationJob job = (CompilationJob) job_it.next(); this.handler.nextStep (job.getName(), job.getSize(), job_no++); CompileResult result = job.perform (this.compilerToUse, args); if (! result.isContinue()) return result; } Debug.trace ("compilation finished."); return new CompileResult (); } | 28044 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28044/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/buggy/src/lib/com/izforge/izpack/installer/CompileWorker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
16143,
1253,
4074,
7276,
1832,
225,
288,
565,
2407,
833,
273,
394,
2407,
5621,
565,
16370,
10123,
273,
394,
16370,
261,
2211,
18,
9576,
4628,
18762,
1769,
565,
1323,
261,
2316,
1824,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16143,
1253,
4074,
7276,
1832,
225,
288,
565,
2407,
833,
273,
394,
2407,
5621,
565,
16370,
10123,
273,
394,
16370,
261,
2211,
18,
9576,
4628,
18762,
1769,
565,
1323,
261,
2316,
1824,
... |
jj_la1[21] = jj_gen; | jj_la1[20] = jj_gen; | final public void ElseStatement() throws ParseException { /*@bgen(jjtree) ElseStatement */ ASTElseStatement jjtn000 = new ASTElseStatement(this, JJTELSESTATEMENT); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { jj_consume_token(ELSE_DIRECTIVE); ASTBlock jjtn001 = new ASTBlock(this, JJTBLOCK); boolean jjtc001 = true; jjtree.openNodeScope(jjtn001); try { label_9: while (true) { Statement(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LPAREN: case RPAREN: case ESCAPE_SEQUENCE: case TEXT: case SINGLE_LINE_COMMENT: case FORMAL_COMMENT: case MULTI_LINE_COMMENT: case STRING_LITERAL: case INCLUDE_DIRECTIVE: case IF_DIRECTIVE: case SET_DIRECTIVE: case STOP_DIRECTIVE: case NUMBER_LITERAL: case WORD: case IDENTIFIER: case SHORTHAND: case DOT: case LCURLY: ; break; default: jj_la1[21] = jj_gen; break label_9; } } } catch (Throwable jjte001) { if (jjtc001) { jjtree.clearNodeScope(jjtn001); jjtc001 = false; } else { jjtree.popNode(); } if (jjte001 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte001;} } if (jjte001 instanceof ParseException) { {if (true) throw (ParseException)jjte001;} } {if (true) throw (Error)jjte001;} } finally { if (jjtc001) { jjtree.closeNodeScope(jjtn001, true); } } } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (Error)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } } | 9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/983675edbbab0e381643fec9c2a3e765c2f88830/Parser.java/buggy/src/java/org/apache/velocity/runtime/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
918,
16289,
3406,
1435,
1216,
10616,
288,
13491,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
16289,
3406,
1195,
225,
9183,
12427,
3406,
10684,
5088,
3784,
273,
394,
9183,
12427,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
918,
16289,
3406,
1435,
1216,
10616,
288,
13491,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
16289,
3406,
1195,
225,
9183,
12427,
3406,
10684,
5088,
3784,
273,
394,
9183,
12427,
... |
java.util.List first = ac.getConnectedAtomsList(atom); java.util.List second = null; java.util.List third = null; if (first.size() > 0) { for (int i = 0; i < first.size(); i++) { IAtom firstAtom = (IAtom)first.get(i); if (firstAtom.getSymbol().equals("C") || firstAtom.getSymbol().equals("H")) { } else { return false; } second = ac.getConnectedAtomsList(firstAtom); if (second.size() > 0) { for (int b = 0; b < second.size(); b++) { IAtom secondAtom = (IAtom)second.get(b); if (secondAtom.getSymbol().equals("C") || secondAtom.getSymbol().equals("H")) { } else { return false; } third = ac.getConnectedAtomsList(secondAtom); if (third.size() > 0) { for (int c = 0; c < third.size(); c++) { IAtom thirdAtom = (IAtom)third.get(c); if (thirdAtom.getSymbol().equals("C") || thirdAtom.getSymbol().equals("H")) { } else { return false; } } } else { return false; } } } else { return false; } } } else { return false; } return true; } | java.util.List first = ac.getConnectedAtomsList(atom); java.util.List second = null; java.util.List third = null; if (first.size() > 0) { for (int i = 0; i < first.size(); i++) { IAtom firstAtom = (IAtom)first.get(i); if (firstAtom.getSymbol().equals("C") || firstAtom.getSymbol().equals("H")) { } else { return false; } second = ac.getConnectedAtomsList(firstAtom); if (second.size() > 0) { for (int b = 0; b < second.size(); b++) { IAtom secondAtom = (IAtom)second.get(b); if (secondAtom.getSymbol().equals("C") || secondAtom.getSymbol().equals("H")) { } else { return false; } third = ac.getConnectedAtomsList(secondAtom); if (third.size() > 0) { for (int c = 0; c < third.size(); c++) { IAtom thirdAtom = (IAtom)third.get(c); if (thirdAtom.getSymbol().equals("C") || thirdAtom.getSymbol().equals("H")) { } else { return false; } } } else { return false; } } } else { return false; } } } else { return false; } return true; } | private boolean getIfCarbonIsHydrophobic(IAtomContainer ac, org.openscience.cdk.interfaces.IAtom atom) { java.util.List first = ac.getConnectedAtomsList(atom); java.util.List second = null; java.util.List third = null; //org.openscience.cdk.interfaces.IAtom[] fourth = null; if (first.size() > 0) { for (int i = 0; i < first.size(); i++) { IAtom firstAtom = (IAtom)first.get(i); if (firstAtom.getSymbol().equals("C") || firstAtom.getSymbol().equals("H")) { } else { return false; } second = ac.getConnectedAtomsList(firstAtom); if (second.size() > 0) { for (int b = 0; b < second.size(); b++) { IAtom secondAtom = (IAtom)second.get(b); if (secondAtom.getSymbol().equals("C") || secondAtom.getSymbol().equals("H")) { } else { return false; } third = ac.getConnectedAtomsList(secondAtom); if (third.size() > 0) { for (int c = 0; c < third.size(); c++) { IAtom thirdAtom = (IAtom)third.get(c); if (thirdAtom.getSymbol().equals("C") || thirdAtom.getSymbol().equals("H")) { } else { return false; } //fourth = ac.getConnectedAtoms(third[c]); //if (fourth.length > 0) { // for (int d = 0; d < fourth.length; d++) { // if (fourth[d].getSymbol().equals("C") || fourth[d].getSymbol().equals("H")) { // } else { // return false; // } // } //} else { // return false; //} } } else { return false; } } } else { return false; } } } else { return false; } return true; } | 46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/76f1c3db1c889a4fd7bd9dd2e93ee1e9a39ec301/XLogPDescriptor.java/clean/src/org/openscience/cdk/qsar/descriptors/molecular/XLogPDescriptor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
336,
2047,
39,
11801,
2520,
17507,
9005,
844,
29619,
12,
45,
3641,
2170,
1721,
16,
2358,
18,
20346,
71,
6254,
18,
71,
2883,
18,
15898,
18,
45,
3641,
3179,
13,
288,
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,
1152,
1250,
336,
2047,
39,
11801,
2520,
17507,
9005,
844,
29619,
12,
45,
3641,
2170,
1721,
16,
2358,
18,
20346,
71,
6254,
18,
71,
2883,
18,
15898,
18,
45,
3641,
3179,
13,
288,
202,... |
public org.quickfix.field.ExDestination getExDestination() throws FieldNotFound { org.quickfix.field.ExDestination value = new org.quickfix.field.ExDestination(); | public quickfix.field.ExDestination getExDestination() throws FieldNotFound { quickfix.field.ExDestination value = new quickfix.field.ExDestination(); | public org.quickfix.field.ExDestination getExDestination() throws FieldNotFound { org.quickfix.field.ExDestination value = new org.quickfix.field.ExDestination(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderSingle.java/clean/src/java/src/quickfix/fix41/NewOrderSingle.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
424,
5683,
26246,
5683,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
424,
5683,
460,
273,
394,
2358,
18,
19525,
904,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
424,
5683,
26246,
5683,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
424,
5683,
460,
273,
394,
2358,
18,
19525,
904,
1... |
if (fMessageLoadThread != null) { | if (fMessageLoadThread!=null) { | public void dispose() { synchronized (fPanel) { if (fMessageLoadThread != null) { mLogger.info("Killing msg thread"); fMessageLoadThread.interrupt(); try { fMessageLoadThread.join(); } catch ( InterruptedException ie ) { // ignore } fMessageLoadThread = null; } } } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/30a489230ffa88a6eaee59d5efeeb8050f9f4fad/MessagePanel.java/buggy/grendel/sources/grendel/ui/MessagePanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
15825,
1435,
288,
565,
3852,
261,
74,
5537,
13,
288,
1377,
309,
261,
74,
1079,
2563,
3830,
5,
33,
2011,
13,
288,
3639,
312,
3328,
18,
1376,
2932,
47,
5789,
1234,
2650,
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,
282,
1071,
918,
15825,
1435,
288,
565,
3852,
261,
74,
5537,
13,
288,
1377,
309,
261,
74,
1079,
2563,
3830,
5,
33,
2011,
13,
288,
3639,
312,
3328,
18,
1376,
2932,
47,
5789,
1234,
2650,
8863,
... |
setImageDescriptor(MylarImages.TASK_NEW); | setImageDescriptor(TaskListImages.TASK_NEW); | public CreateTaskAction(TaskListView view) { this.view = view; setText("Add Task"); setToolTipText("Add Task"); setId(ID); setImageDescriptor(MylarImages.TASK_NEW); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/7fc296d93c4ea78623f31a1d48beae1e9fcee9fc/CreateTaskAction.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/actions/CreateTaskAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1788,
2174,
1803,
12,
2174,
682,
1767,
1476,
13,
288,
202,
202,
2211,
18,
1945,
273,
1476,
31,
202,
202,
542,
1528,
2932,
986,
3837,
8863,
3639,
444,
29250,
1528,
2932,
986,
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,
1788,
2174,
1803,
12,
2174,
682,
1767,
1476,
13,
288,
202,
202,
2211,
18,
1945,
273,
1476,
31,
202,
202,
542,
1528,
2932,
986,
3837,
8863,
3639,
444,
29250,
1528,
2932,
986,
3... |
newChart.getTitle().getLabel().getCaption().setValue("Pie Chart Title"); | newChart.getTitle().getLabel().getCaption().setValue(Messages.getString("PieChart.Txt.DefaultPieChartTitle")); | public Chart getModel(String sSubType, Orientation orientation, String sDimension, Chart currentChart) { ChartWithoutAxes newChart = null; if (currentChart != null) { newChart = (ChartWithoutAxes) getConvertedChart(currentChart, sSubType, sDimension); if (newChart != null) { return newChart; } } newChart = ChartWithoutAxesImpl.create(); newChart.setType(sType); newChart.setSubType(sSubType); newChart.setDimension(getDimensionFor(sDimension)); newChart.setUnits("Points"); if (newChart.getDimension().equals(ChartDimension.TWO_DIMENSIONAL_WITH_DEPTH_LITERAL)) { newChart.setSeriesThickness(15); } newChart.getTitle().getLabel().getCaption().setValue("Pie Chart Title"); SeriesDefinition sdX = SeriesDefinitionImpl.create(); Series categorySeries = SeriesImpl.create(); sdX.getSeries().add(categorySeries); sdX.getQuery().setDefinition("Base Series"); SeriesDefinition sdY = SeriesDefinitionImpl.create(); sdY.getSeriesPalette().update(0); Series valueSeries = PieSeriesImpl.create(); valueSeries.getLabel().setVisible(true); valueSeries.setSeriesIdentifier("valueSeriesIdentifier"); ((PieSeries) valueSeries).getTitle().getCaption().setValue("valueSeries"); ((PieSeries) valueSeries).setStacked(false); sdY.getSeries().add(valueSeries); sdX.getSeriesDefinitions().add(sdY); newChart.getSeriesDefinitions().add(sdX); addSampleData(newChart); return newChart; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/7793e94b4d7fab5891f226c6c937e37d85bebad8/PieChart.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/PieChart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
14804,
7454,
12,
780,
272,
30511,
16,
531,
12556,
9820,
16,
514,
272,
8611,
16,
14804,
783,
7984,
13,
565,
288,
3639,
14804,
8073,
26494,
394,
7984,
273,
446,
31,
3639,
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,
14804,
7454,
12,
780,
272,
30511,
16,
531,
12556,
9820,
16,
514,
272,
8611,
16,
14804,
783,
7984,
13,
565,
288,
3639,
14804,
8073,
26494,
394,
7984,
273,
446,
31,
3639,
309,
261,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.