rem
stringlengths 1
53.3k
| add
stringlengths 0
80.5k
| context
stringlengths 6
326k
| meta
stringlengths 141
403
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
if (game.getOptions().booleanOption("push_off_board") && !game.board.contains(dest)) { game.removeEntity(te.getId(), Entity.REMOVE_PUSHED); send(createRemoveEntityPacket(te.getId(), Entity.REMOVE_PUSHED)); phaseReport.append("\n*** " ).append( te.getDisplayName() ).append( " has been forced from the field. ***\n"); ae.setPosition(src); } else { phaseReport.append("succeeds, but target can't be moved.\n"); game.addPSR(pushPRD); }
|
phaseReport.append("succeeds, but target can't be moved.\n"); game.addPSR(pushPRD);
|
private void resolvePushAttack(PhysicalResult pr, int lastEntityId) { final PushAttackAction paa = (PushAttackAction)pr.aaa; final Entity ae = game.getEntity(paa.getEntityId()); // PLEASE NOTE: buildings are *never* the target of a "push". final Entity te = game.getEntity(paa.getTargetId()); // get roll and ToHitData from the PhysicalResult int roll = pr.roll; final ToHitData toHit = pr.toHit; // was this push resolved earlier? if (pr.pushBackResolved) { return; } if (lastEntityId != paa.getEntityId()) { phaseReport.append("\nPhysical attacks for " ).append( ae.getDisplayName() ).append( "\n"); } phaseReport.append(" Pushing " ).append( te.getDisplayName());// // should we even bother?// if (te.isDestroyed() || te.isDoomed() || te.crew.isDead()) {// phaseReport.append(" but the target is already destroyed!\n");// return;// } if (toHit.getValue() == ToHitData.IMPOSSIBLE) { phaseReport.append(", but the push is impossible (" ).append( toHit.getDesc() ).append( ")\n"); return; } phaseReport.append("; needs " ).append( toHit.getValue() ).append( ", "); // report the roll phaseReport.append("rolls " ).append( roll ).append( " : "); // check if our target has a push against us, too, and get it PhysicalResult targetPushResult = null; for (Enumeration i = physicalResults.elements(); i.hasMoreElements();) { PhysicalResult tpr = (PhysicalResult)i.nextElement(); if (tpr.aaa.getEntityId() == te.getId() && tpr.aaa instanceof PushAttackAction && tpr.aaa.getTargetId() == ae.getId() ) { targetPushResult = tpr; } } // if our target has a push against us, we need to resolve both now if (targetPushResult != null) { // do both hit? if (targetPushResult.roll >= targetPushResult.toHit.getValue() && roll >= toHit.getValue()) { phaseReport.append("succeeds: but ") .append(te.getDisplayName()) .append(" pushed back!.\n") .append("\nPhysical attacks for " ) .append( te.getDisplayName() ).append( "\n") .append(" Pushing " ).append( ae.getDisplayName()) .append("; needs " ).append( toHit.getValue() ) .append( ", ") .append("rolls " ).append( roll ).append( " : ") .append("succeeds: but ") .append(ae.getDisplayName()) .append(" pushed back!.\n"); PilotingRollData targetPushPRD = new PilotingRollData(te.getId(), getKickPushPSRMod(ae, te, 0), "was pushed"); targetPushPRD.setCumulative(false); // see Bug# 811987 for more info PilotingRollData pushPRD = new PilotingRollData(ae.getId(), getKickPushPSRMod(ae, te, 0), "was pushed"); pushPRD.setCumulative(false); // see Bug# 811987 for more info game.addPSR(pushPRD); game.addPSR(targetPushPRD); targetPushResult.pushBackResolved = true; return; } } // do we hit? if (roll < toHit.getValue()) { phaseReport.append("misses.\n"); return; } // we hit... int direction = ae.getFacing(); Coords src = te.getPosition(); Coords dest = src.translated(direction); PilotingRollData pushPRD = new PilotingRollData(te.getId(), getKickPushPSRMod(ae, te, 0), "was pushed"); pushPRD.setCumulative(false); // see Bug# 811987 for more info if (Compute.isValidDisplacement(game, te.getId(), te.getPosition(), direction)) { phaseReport.append("succeeds: target is pushed into hex " ).append( dest.getBoardNum() ).append( "\n"); doEntityDisplacement(te, src, dest, pushPRD); // if push actually moved the target, attacker follows thru if (!te.getPosition().equals(src)) { ae.setPosition(src); } } else { if (game.getOptions().booleanOption("push_off_board") && !game.board.contains(dest)) { game.removeEntity(te.getId(), Entity.REMOVE_PUSHED); send(createRemoveEntityPacket(te.getId(), Entity.REMOVE_PUSHED)); phaseReport.append("\n*** " ).append( te.getDisplayName() ).append( " has been forced from the field. ***\n"); // TODO: remove passengers and swarmers. ae.setPosition(src); } else { phaseReport.append("succeeds, but target can't be moved.\n"); game.addPSR(pushPRD); } } phaseReport.append("\n"); }
|
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/3798694dabcfda78c754ced0befa1d65527d1b0e/Server.java/clean/megamek/src/megamek/server/Server.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2245,
7621,
3075,
484,
12,
18136,
1253,
846,
16,
509,
1142,
18029,
13,
288,
3639,
727,
8547,
3075,
484,
1803,
6790,
69,
273,
261,
7621,
3075,
484,
1803,
13,
683,
18,
26676,
31,
377,
202,
3639,
727,
3887,
14221,
273,
7920,
18,
588,
1943,
12,
84,
7598,
18,
588,
18029,
10663,
3639,
368,
453,
22357,
5219,
30,
1361,
899,
854,
380,
4644,
502,
14,
326,
1018,
434,
279,
315,
6206,
9654,
3639,
727,
3887,
6489,
273,
7920,
18,
588,
1943,
12,
84,
7598,
18,
588,
2326,
548,
10663,
3639,
368,
336,
5824,
471,
2974,
13616,
751,
628,
326,
19712,
1253,
3639,
509,
5824,
273,
846,
18,
2693,
31,
3639,
727,
2974,
13616,
751,
358,
13616,
273,
846,
18,
869,
13616,
31,
7734,
368,
1703,
333,
1817,
4640,
13805,
35,
3639,
309,
261,
683,
18,
6206,
2711,
12793,
13,
288,
540,
202,
2463,
31,
3639,
289,
7734,
309,
261,
2722,
18029,
480,
6790,
69,
18,
588,
18029,
10756,
288,
5411,
6855,
4820,
18,
6923,
31458,
82,
18136,
28444,
364,
315,
262,
18,
6923,
12,
14221,
18,
588,
20524,
1435,
262,
18,
6923,
12,
1548,
82,
8863,
3639,
289,
3639,
6855,
4820,
18,
6923,
2932,
565,
8547,
310,
315,
262,
18,
6923,
12,
6489,
18,
588,
20524,
10663,
759,
3639,
368,
1410,
732,
5456,
23440,
35,
759,
3639,
309,
261,
736,
18,
291,
28414,
1435,
747,
6489,
18,
291,
3244,
362,
329,
1435,
747,
6489,
18,
1793,
91,
18,
291,
11852,
10756,
288,
759,
5411,
6855,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2245,
7621,
3075,
484,
12,
18136,
1253,
846,
16,
509,
1142,
18029,
13,
288,
3639,
727,
8547,
3075,
484,
1803,
6790,
69,
273,
261,
7621,
3075,
484,
1803,
13,
683,
18,
26676,
31,
377,
202,
3639,
727,
3887,
14221,
273,
7920,
18,
588,
1943,
12,
84,
7598,
18,
588,
18029,
10663,
3639,
368,
453,
22357,
5219,
30,
1361,
899,
854,
380,
4644,
502,
14,
326,
1018,
434,
279,
315,
6206,
9654,
3639,
727,
3887,
6489,
273,
7920,
18,
588,
1943,
12,
84,
7598,
18,
588,
2326,
548,
10663,
3639,
368,
336,
5824,
471,
2974,
13616,
751,
628,
326,
19712,
1253,
3639,
509,
5824,
273,
846,
18,
2693,
31,
3639,
727,
2974,
13616,
751,
358,
13616,
273,
2
] |
log.debug("Put/Get Operation");
|
public void run () { if (enhanced) sfParser = new WTDSFParser(this); while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = false; continue; } // lets play nicely with the others on the playground// me.yield(); Thread.yield(); invited = false; screen52.setCursorActive(false);// System.out.println("operation code: " + bk.getOpCode()); if (bk == null) continue; switch (bk.getOpCode()) { case 00:// System.out.println("No operation"); break; case 1:// System.out.println("Invite Operation"); parseIncoming();// screen52.setKeyboardLocked(false); pendingUnlock = true; cursorOn = true; setInvited(); break; case 2:// System.out.println("Output Only"); parseIncoming();// System.out.println(screen52.dirty); screen52.updateDirty(); // invited = true; break; case 3:// System.out.println("Put/Get Operation"); parseIncoming();// inviteIt =true; setInvited(); if (!firstScreen) { firstScreen = true; controller.fireSessionChanged(TN5250jConstants.STATE_CONNECTED); } break; case 4:// System.out.println("Save Screen Operation"); parseIncoming(); break; case 5:// System.out.println("Restore Screen Operation"); parseIncoming(); break; case 6:// System.out.println("Read Immediate"); sendAidKey(0); break; case 7:// System.out.println("Reserved"); break; case 8:// System.out.println("Read Screen Operation"); try { readScreen(); } catch (IOException ex) { } break; case 9:// System.out.println("Reserved"); break; case 10:// System.out.println("Cancel Invite Operation"); cancelInvite(); break; case 11:// System.out.println("Turn on message light"); screen52.setMessageLightOn(); screen52.setCursorActive(true); break; case 12:// System.out.println("Turn off Message light"); screen52.setMessageLightOff(); screen52.setCursorActive(true); break; default: break; } if (screen52.isUsingGuiInterface()) screen52.drawFields();// if (screen52.screen[0][1].getChar() == '#' &&// screen52.screen[0][2].getChar() == '!')// execCmd();// else { if (screen52.isHotSpots()) { screen52.checkHotSpots(); } try {// SwingUtilities.invokeAndWait(// new Runnable () {// public void run() {// screen52.updateDirty();// }// }// ); screen52.updateDirty(); controller.validate();// System.out.println("update dirty"); } catch (Exception exd ) { System.out.println(" tnvt.run: " + exd.getMessage()); exd.printStackTrace(); } if (pendingUnlock && !screen52.isStatusErrorCode()) { screen52.setKeyboardLocked(false); pendingUnlock = false; } if (cursorOn && !screen52.isKeyboardLocked()) { screen52.setCursorActive(true); cursorOn = false; } // lets play nicely with the others on the playground //me.yield(); Thread.yield(); } }
|
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/379255347f37d0432228baaff23d41ccb4ad68bd/tnvt.java/buggy/tn5250j/src/org/tn5250j/tnvt.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
613,
18,
4148,
2932,
6426,
19,
967,
4189,
8863,
613,
18,
4148,
2932,
6426,
19,
967,
4189,
8863,
613,
18,
4148,
2932,
6426,
19,
967,
4189,
8863,
1071,
1330,
18,
4148,
2932,
6426,
19,
967,
4189,
8863,
918,
1330,
18,
4148,
2932,
6426,
19,
967,
4189,
8863,
1086,
1330,
18,
4148,
2932,
6426,
19,
967,
4189,
8863,
1832,
1330,
18,
4148,
2932,
6426,
19,
967,
4189,
8863,
288,
1330,
18,
4148,
2932,
6426,
19,
967,
4189,
8863,
613,
18,
4148,
2932,
6426,
19,
967,
4189,
8863,
613,
18,
4148,
2932,
6426,
19,
967,
4189,
8863,
613,
18,
4148,
2932,
6426,
19,
967,
4189,
8863,
613,
18,
4148,
2932,
6426,
19,
967,
4189,
8863,
613,
18,
4148,
2932,
6426,
19,
967,
4189,
8863,
309,
1330,
18,
4148,
2932,
6426,
19,
967,
4189,
8863,
261,
275,
17221,
13,
1330,
18,
4148,
2932,
6426,
19,
967,
4189,
8863,
613,
18,
4148,
2932,
6426,
19,
967,
4189,
8863,
613,
18,
4148,
2932,
6426,
19,
967,
4189,
8863,
613,
18,
4148,
2932,
6426,
19,
967,
4189,
8863,
613,
18,
4148,
2932,
6426,
19,
967,
4189,
8863,
613,
18,
4148,
2932,
6426,
19,
967,
4189,
8863,
613,
18,
4148,
2932,
6426,
19,
967,
4189,
8863,
613,
18,
4148,
2932,
6426,
19,
967,
4189,
8863,
613,
18,
4148,
2932,
6426,
19,
967,
4189,
8863,
9033,
2678,
1330,
18,
4148,
2932,
6426,
19,
967,
4189,
8863,
273,
1330,
18,
4148,
2932,
6426,
19,
967,
4189,
8863,
394,
1330,
18,
4148,
2932,
6426,
19,
967,
4189,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
613,
18,
4148,
2932,
6426,
19,
967,
4189,
8863,
613,
18,
4148,
2932,
6426,
19,
967,
4189,
8863,
613,
18,
4148,
2932,
6426,
19,
967,
4189,
8863,
1071,
1330,
18,
4148,
2932,
6426,
19,
967,
4189,
8863,
918,
1330,
18,
4148,
2932,
6426,
19,
967,
4189,
8863,
1086,
1330,
18,
4148,
2932,
6426,
19,
967,
4189,
8863,
1832,
1330,
18,
4148,
2932,
6426,
19,
967,
4189,
8863,
288,
1330,
18,
4148,
2932,
6426,
19,
967,
4189,
8863,
613,
18,
4148,
2932,
6426,
19,
967,
4189,
8863,
613,
18,
4148,
2932,
6426,
19,
967,
4189,
8863,
613,
18,
4148,
2932,
6426,
19,
967,
4189,
8863,
613,
18,
4148,
2932,
6426,
19,
967,
4189,
8863,
613,
18,
4148,
2932,
6426,
19,
2
] |
|
pendingRemOfRandomIntBug = null;
|
if (seen == INVOKESTATIC && ( getClassConstantOperand().equals("java/lang/Math") || getClassConstantOperand().equals("java/lang/StrictMath")) && getNameConstantOperand().equals("abs") && getSigConstantOperand().equals("(I)I")) { OpcodeStack.Item item0 = stack.getStackItem(0); int special = item0.getSpecialKind(); if (special == OpcodeStack.Item.RANDOM_INT) bugReporter.reportBug(new BugInstance(this, "RV_ABSOLUTE_VALUE_OF_RANDOM_INT", NORMAL_PRIORITY) .addClassAndMethod(this) .addSourceLine(this)); else if (special == OpcodeStack.Item.HASHCODE_INT) bugReporter.reportBug(new BugInstance(this, "RV_ABSOLUTE_VALUE_OF_HASHCODE", NORMAL_PRIORITY) .addClassAndMethod(this) .addSourceLine(this)); }
|
public void sawOpcode(int seen) { stack.mergeJumps(this); if (isEqualsObject && !reportedBadCastInEquals) { if (seen == INSTANCEOF || seen == INVOKEVIRTUAL && getNameConstantOperand().equals("getClass") && getSigConstantOperand().equals("()Ljava/lang/Class;") ) { OpcodeStack.Item item = stack.getStackItem(0); if (item.getRegisterNumber() == 1) sawInstanceofCheck = true; } else if (seen == INVOKESPECIAL && getNameConstantOperand().equals("equals") && getSigConstantOperand().equals("(Ljava/lang/Object;)Z")) { OpcodeStack.Item item0 = stack.getStackItem(0); OpcodeStack.Item item1 = stack.getStackItem(1); if (item1.getRegisterNumber() + item0.getRegisterNumber() == 1) sawInstanceofCheck = true; } else if (seen == CHECKCAST && !sawInstanceofCheck) { OpcodeStack.Item item = stack.getStackItem(0); if (item.getRegisterNumber() == 1) { if (getSizeOfSurroundingTryBlock(getPC()) == Integer.MAX_VALUE) bugReporter.reportBug(new BugInstance(this, "BC_EQUALS_METHOD_SHOULD_WORK_FOR_ALL_OBJECTS", NORMAL_PRIORITY) .addClassAndMethod(this) .addSourceLine(this)); reportedBadCastInEquals = true; } } } { boolean foundVacuousComparison = false; if (seen == IF_ICMPGT || seen == IF_ICMPLE) { OpcodeStack.Item rhs = stack.getStackItem(0); Object rhsConstant = rhs.getConstant(); if (rhsConstant instanceof Integer && ((Integer)rhsConstant).intValue() == Integer.MAX_VALUE) foundVacuousComparison = true; OpcodeStack.Item lhs = stack.getStackItem(1); Object lhsConstant = lhs.getConstant(); if (lhsConstant instanceof Integer && ((Integer)lhsConstant).intValue() == Integer.MIN_VALUE) foundVacuousComparison = true; } if (seen == IF_ICMPLT || seen == IF_ICMPGE) { OpcodeStack.Item rhs = stack.getStackItem(0); Object rhsConstant = rhs.getConstant(); if (rhsConstant instanceof Integer && ((Integer)rhsConstant).intValue() == Integer.MIN_VALUE) foundVacuousComparison = true; OpcodeStack.Item lhs = stack.getStackItem(1); Object lhsConstant = lhs.getConstant(); if (lhsConstant instanceof Integer && ((Integer)lhsConstant).intValue() == Integer.MAX_VALUE) foundVacuousComparison = true; } if (foundVacuousComparison) bugReporter.reportBug(new BugInstance(this, "INT_VACUOUS_COMPARISON", getBranchOffset() < 0 ? HIGH_PRIORITY : NORMAL_PRIORITY) .addClassAndMethod(this) .addSourceLine(this)); } if (pendingRemOfRandomIntBug != null && !(seen == INVOKESTATIC && getClassConstantOperand().equals("java/lang/Math") && getNameConstantOperand().equals("abs"))) bugReporter.reportBug(pendingRemOfRandomIntBug); pendingRemOfRandomIntBug = null; try { if (seen == IREM) { OpcodeStack.Item item0 = stack.getStackItem(0); Object constant0 = item0.getConstant(); OpcodeStack.Item item1 = stack.getStackItem(1); int special = item1.getSpecialKind(); if (special == OpcodeStack.Item.RANDOM_INT) { pendingRemOfRandomIntBug = new BugInstance(this, "RV_REM_OF_RANDOM_INT", HIGH_PRIORITY) .addClassAndMethod(this) .addSourceLine(this); } else if (special == OpcodeStack.Item.HASHCODE_INT) { pendingRemOfRandomIntBug = new BugInstance(this, "RV_REM_OF_HASHCODE", NORMAL_PRIORITY) .addClassAndMethod(this) .addSourceLine(this); } else if (constant0 instanceof Integer && ((Integer)constant0).intValue() == 1) bugReporter.reportBug(new BugInstance(this, "INT_BAD_REM_BY_1", HIGH_PRIORITY) .addClassAndMethod(this) .addSourceLine(this)); } if (stack.getStackDepth() >= 1 && (seen == LOOKUPSWITCH || seen == TABLESWITCH)) { OpcodeStack.Item item0 = stack.getStackItem(0); if (item0.getSpecialKind() == OpcodeStack.Item.SIGNED_BYTE) { int[] switchLabels = getSwitchLabels(); int [] switchOffsets = getSwitchOffsets(); for(int i = 0; i < switchLabels.length; i++) { int v = switchLabels[i]; if (v <= -129 || v >= 128) bugReporter.reportBug(new BugInstance(this, "INT_BAD_COMPARISON_WITH_SIGNED_BYTE", HIGH_PRIORITY) .addClassAndMethod(this) .addInt(v) .addSourceLine(this, getPC() + switchOffsets[i])); } } } // check for use of signed byte where is it assumed it can be out of the -128...127 range if (stack.getStackDepth() >= 2) switch (seen) { case IF_ICMPEQ: case IF_ICMPNE: case IF_ICMPLT: case IF_ICMPLE: case IF_ICMPGE: case IF_ICMPGT: OpcodeStack.Item item0 = stack.getStackItem(0); OpcodeStack.Item item1 = stack.getStackItem(1); if (item1.getSpecialKind() == OpcodeStack.Item.SIGNED_BYTE) { OpcodeStack.Item tmp = item0; item0 = item1; item1 = tmp; } Object constant1 = item1.getConstant(); if (item0.getSpecialKind() == OpcodeStack.Item.SIGNED_BYTE && constant1 instanceof Number) { int v1 = ((Number)constant1).intValue(); if (v1 <= -129 || v1 >= 128) bugReporter.reportBug(new BugInstance(this, "INT_BAD_COMPARISON_WITH_SIGNED_BYTE", (seen == IF_ICMPEQ || seen == IF_ICMPNE || (v1 != -129 && v1 != 128)) ? HIGH_PRIORITY : NORMAL_PRIORITY) .addClassAndMethod(this) .addInt(v1) .addSourceLine(this)); } } if (checkForBitIorofSignedByte && seen != I2B) { bugReporter.reportBug(new BugInstance(this, "BIT_IOR_OF_SIGNED_BYTE", prevOpcode == LOR ? HIGH_PRIORITY : NORMAL_PRIORITY) .addClassAndMethod(this) .addSourceLine(this)); checkForBitIorofSignedByte = false; } else if ((seen == IOR || seen == LOR) && stack.getStackDepth() >= 2) { OpcodeStack.Item item0 = stack.getStackItem(0); OpcodeStack.Item item1 = stack.getStackItem(1); int special0 = item0.getSpecialKind(); int special1 = item1.getSpecialKind(); if (special0 == OpcodeStack.Item.SIGNED_BYTE && special1 == OpcodeStack.Item.LOW_8_BITS_CLEAR || special0 == OpcodeStack.Item.LOW_8_BITS_CLEAR && special1 == OpcodeStack.Item.SIGNED_BYTE ) checkForBitIorofSignedByte = true; else checkForBitIorofSignedByte = false; } else checkForBitIorofSignedByte = false; if (prevOpcodeWasReadLine && seen == INVOKEVIRTUAL && getClassConstantOperand().equals("java/lang/String")) { bugReporter.reportBug(new BugInstance(this, "NP_IMMEDIATE_DEREFERENCE_OF_READLINE", NORMAL_PRIORITY) .addClassAndMethod(this) .addSourceLine(this)); } prevOpcodeWasReadLine = (seen == INVOKEVIRTUAL||seen == INVOKEINTERFACE) && getNameConstantOperand().equals("readLine") && getSigConstantOperand().equals("()Ljava/lang/String;"); // System.out.println(randomNextIntState + " " + OPCODE_NAMES[seen] + " " + getMethodName()); switch(randomNextIntState) { case 0: if (seen == INVOKEVIRTUAL && getClassConstantOperand().equals("java/util/Random") && getNameConstantOperand().equals("nextDouble") || seen == INVOKESTATIC && getClassConstantOperand().equals("java/lang/Math") && getNameConstantOperand().equals("random")) randomNextIntState = 1; break; case 1: if (seen == D2I) { bugReporter.reportBug(new BugInstance(this, "RV_01_TO_INT", HIGH_PRIORITY) .addClassAndMethod(this) .addSourceLine(this)); randomNextIntState = 0; } else if (seen == DMUL) randomNextIntState = 4; else randomNextIntState = 2; break; case 2: if (seen == I2D) randomNextIntState = 3; else if (seen == DMUL) randomNextIntState = 4; else randomNextIntState = 0; break; case 3: if (seen == DMUL) randomNextIntState = 4; else randomNextIntState = 0; break; case 4: if (seen == D2I) bugReporter.reportBug(new BugInstance(this, "DM_NEXTINT_VIA_NEXTDOUBLE", NORMAL_PRIORITY) .addClassAndMethod(this) .addSourceLine(this)); randomNextIntState = 0; break; default: throw new IllegalStateException(); } if (isPublicStaticVoidMain && seen == INVOKEVIRTUAL && getClassConstantOperand().startsWith("javax/swing/") && (getNameConstantOperand().equals("show") && getSigConstantOperand().equals("()V") || getNameConstantOperand().equals("pack") && getSigConstantOperand().equals("()V") || getNameConstantOperand().equals("setVisible") && getSigConstantOperand().equals("(Z)V"))) bugReporter.reportBug(new BugInstance(this, "SW_SWING_METHODS_INVOKED_IN_SWING_THREAD", LOW_PRIORITY) .addClassAndMethod(this) .addSourceLine(this)); // if ((seen == INVOKEVIRTUAL)// && getClassConstantOperand().equals("java/lang/String")// && getNameConstantOperand().equals("substring")// && getSigConstantOperand().equals("(I)Ljava/lang/String;")// && stack.getStackDepth() > 1) {// OpcodeStack.Item item = stack.getStackItem(0);// Object o = item.getConstant();// if (o != null && o instanceof Integer) {// int v = ((Integer) o).intValue();// if (v == 0)// bugReporter.reportBug(new BugInstance(this, "DMI_USELESS_SUBSTRING", NORMAL_PRIORITY)// .addClassAndMethod(this)// .addSourceLine(this));// }// } if ((seen == INVOKEVIRTUAL) && getNameConstantOperand().equals("isAnnotationPresent") && getSigConstantOperand().equals("(Ljava/lang/Class;)Z") && stack.getStackDepth() > 0) { OpcodeStack.Item item = stack.getStackItem(0); Object value = item.getConstant(); if (value instanceof String) { String annotationClassName = (String) value; boolean lacksClassfileRetention = AnalysisContext.currentAnalysisContext().getAnnotationRetentionDatabase().lacksClassfileRetention( annotationClassName.replace('/','.')); if (lacksClassfileRetention) bugReporter.reportBug(new BugInstance(this, "DMI_ANNOTATION_IS_NOT_VISIBLE_TO_REFLECTION", HIGH_PRIORITY) .addClassAndMethod(this) .addSourceLine(this) .addCalledMethod(this)); } } if ((seen == INVOKEVIRTUAL) && getNameConstantOperand().equals("next") && getSigConstantOperand().equals("()Ljava/lang/Object;") && getMethodName().equals("hasNext") && getMethodSig().equals("()Z") && stack.getStackDepth() > 0) { OpcodeStack.Item item = stack.getStackItem(0); bugReporter.reportBug(new BugInstance(this, "DMI_CALLING_NEXT_FROM_HASNEXT", item.isInitialParameter() && item.getRegisterNumber() == 0 ? NORMAL_PRIORITY : LOW_PRIORITY) .addClassAndMethod(this) .addSourceLine(this) .addCalledMethod(this)); } if ((seen == INVOKESPECIAL) && getClassConstantOperand().equals("java/lang/String") && getNameConstantOperand().equals("<init>") && getSigConstantOperand().equals("(Ljava/lang/String;)V")) if (alreadyReported.add(getRefConstantOperand())) bugReporter.reportBug(new BugInstance(this, "DM_STRING_CTOR", NORMAL_PRIORITY) .addClassAndMethod(this) .addSourceLine(this)); if (seen == INVOKESTATIC && getClassConstantOperand().equals("java/lang/System") && getNameConstantOperand().equals("runFinalizersOnExit") || seen == INVOKEVIRTUAL && getClassConstantOperand().equals("java/lang/Runtime") && getNameConstantOperand().equals("runFinalizersOnExit")) bugReporter.reportBug(new BugInstance(this, "DM_RUN_FINALIZERS_ON_EXIT", HIGH_PRIORITY) .addClassAndMethod(this) .addSourceLine(this)); if ((seen == INVOKESPECIAL) && getClassConstantOperand().equals("java/lang/String") && getNameConstantOperand().equals("<init>") && getSigConstantOperand().equals("()V")) if (alreadyReported.add(getRefConstantOperand())) bugReporter.reportBug(new BugInstance(this, "DM_STRING_VOID_CTOR", NORMAL_PRIORITY) .addClassAndMethod(this) .addSourceLine(this)); if (!isPublicStaticVoidMain && seen == INVOKESTATIC && getClassConstantOperand().equals("java/lang/System") && getNameConstantOperand().equals("exit") && !getMethodName().equals("processWindowEvent") && !getMethodName().startsWith("windowClos") && getMethodName().indexOf("exit") == -1 && getMethodName().indexOf("Exit") == -1 && getMethodName().indexOf("crash") == -1 && getMethodName().indexOf("Crash") == -1 && getMethodName().indexOf("die") == -1 && getMethodName().indexOf("Die") == -1 && getMethodName().indexOf("main") == -1) accumulator.accumulateBug(new BugInstance(this, "DM_EXIT", getMethod().isStatic() ? LOW_PRIORITY : NORMAL_PRIORITY) .addClassAndMethod(this), SourceLineAnnotation.fromVisitedInstruction(this)); if (((seen == INVOKESTATIC && getClassConstantOperand().equals("java/lang/System")) || (seen == INVOKEVIRTUAL && getClassConstantOperand().equals("java/lang/Runtime"))) && getNameConstantOperand().equals("gc") && getSigConstantOperand().equals("()V") && !getDottedClassName().startsWith("java.lang") && !getMethodName().startsWith("gc") && !getMethodName().endsWith("gc")) if (alreadyReported.add(getRefConstantOperand())) { // System.out.println("Saw call to GC"); if (isPublicStaticVoidMain) { // System.out.println("Skipping GC complaint in main method"); return; } // Just save this report in a field; it will be flushed // IFF there were no calls to System.currentTimeMillis(); // in the method. gcInvocationBugReport = new BugInstance(this, "DM_GC", HIGH_PRIORITY) .addClassAndMethod(this) .addSourceLine(this); gcInvocationPC = getPC(); //System.out.println("GC invocation at pc " + PC); } if ((seen == INVOKESPECIAL) && getClassConstantOperand().equals("java/lang/Boolean") && getNameConstantOperand().equals("<init>") && !getClassName().equals("java/lang/Boolean") ) if (alreadyReported.add(getRefConstantOperand())) bugReporter.reportBug(new BugInstance(this, "DM_BOOLEAN_CTOR", NORMAL_PRIORITY) .addClassAndMethod(this) .addSourceLine(this)); if ((seen == INVOKESTATIC) && getClassConstantOperand().equals("java/lang/System") && (getNameConstantOperand().equals("currentTimeMillis") || getNameConstantOperand().equals("nanoTime"))) sawCurrentTimeMillis = true; if ((seen == INVOKEVIRTUAL) && getClassConstantOperand().equals("java/lang/String") && getNameConstantOperand().equals("toString") && getSigConstantOperand().equals("()Ljava/lang/String;")) if (alreadyReported.add(getRefConstantOperand())) bugReporter.reportBug(new BugInstance(this, "DM_STRING_TOSTRING", NORMAL_PRIORITY) .addClassAndMethod(this) .addSourceLine(this)); if ((seen == INVOKEVIRTUAL) && getClassConstantOperand().equals("java/lang/String") && (getNameConstantOperand().equals("toUpperCase") || getNameConstantOperand().equals("toLowerCase")) && getSigConstantOperand().equals("()Ljava/lang/String;")) if (alreadyReported.add(getRefConstantOperand())) bugReporter.reportBug(new BugInstance(this, "DM_CONVERT_CASE", LOW_PRIORITY) .addClassAndMethod(this) .addSourceLine(this)); if ((seen == INVOKESPECIAL) && getNameConstantOperand().equals("<init>")) { String cls = getClassConstantOperand(); String sig = getSigConstantOperand(); if ((cls.equals("java/lang/Integer") && sig.equals("(I)V")) || (cls.equals("java/lang/Float") && sig.equals("(F)V")) || (cls.equals("java/lang/Double") && sig.equals("(D)V")) || (cls.equals("java/lang/Long") && sig.equals("(J)V")) || (cls.equals("java/lang/Byte") && sig.equals("(B)V")) || (cls.equals("java/lang/Character") && sig.equals("(C)V")) || (cls.equals("java/lang/Short") && sig.equals("(S)V")) || (cls.equals("java/lang/Boolean") && sig.equals("(Z)V"))) { primitiveObjCtorSeen = cls; } else { primitiveObjCtorSeen = null; } } else if ((primitiveObjCtorSeen != null) && (seen == INVOKEVIRTUAL) && getNameConstantOperand().equals("toString") && getClassConstantOperand().equals(primitiveObjCtorSeen) && getSigConstantOperand().equals("()Ljava/lang/String;")) { bugReporter.reportBug(new BugInstance(this, "DM_BOXED_PRIMITIVE_TOSTRING", LOW_PRIORITY) .addClassAndMethod(this) .addSourceLine(this)); primitiveObjCtorSeen = null; } else primitiveObjCtorSeen = null; if ((seen == INVOKESPECIAL) && getNameConstantOperand().equals("<init>")) { ctorSeen = true; } else if (ctorSeen && (seen == INVOKEVIRTUAL) && getClassConstantOperand().equals("java/lang/Object") && getNameConstantOperand().equals("getClass") && getSigConstantOperand().equals("()Ljava/lang/Class;")) { accumulator.accumulateBug(new BugInstance(this, "DM_NEW_FOR_GETCLASS", LOW_PRIORITY) .addClassAndMethod(this), this); ctorSeen = false; } else { ctorSeen = false; } if (jdk15ChecksEnabled && (seen == INVOKEVIRTUAL) && isMonitorWait(getNameConstantOperand(), getSigConstantOperand())) { checkMonitorWait(); } if ((seen == INVOKESPECIAL) && getNameConstantOperand().equals("<init>") && getClassConstantOperand().equals("java/lang/Thread")) { String sig = getSigConstantOperand(); if (sig.equals("()V") || sig.equals("(Ljava/lang/String;)V") || sig.equals("(Ljava/lang/ThreadGroup;Ljava/lang/String;)V")) if (!getMethodName().equals("<init>") || (getPC() > 20)) { bugReporter.reportBug(new BugInstance(this, "DM_USELESS_THREAD", LOW_PRIORITY) .addClassAndMethod(this) .addSourceLine(this)); } } /* // // TODO: put this back in when we have a standard way // of enabling and disabling warnings on a per-bug-pattern // basis. // if ((seen == INVOKEVIRTUAL) && sawLDCEmptyString && getNameConstantOperand().equals("equals")) bugReporter.reportBug(new BugInstance("DM_STRING_EMPTY_EQUALS", LOW_PRIORITY) .addClassAndMethod(this) .addSourceLine(this)); if ((seen == LDC) && (getConstantRefOperand() instanceof ConstantString) && (getStringConstantOperand().length() == 0)) sawLDCEmptyString = true; else sawLDCEmptyString = false;*/ } finally { stack.sawOpcode(this,seen); prevOpcode = seen; } }
|
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/01112a0827cfda20cd8ef90f4c2c138588ae1aee/DumbMethods.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/detect/DumbMethods.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1850,
1071,
918,
19821,
22808,
12,
474,
5881,
13,
288,
202,
202,
3772,
18,
2702,
46,
23868,
12,
2211,
1769,
9506,
202,
430,
261,
291,
8867,
921,
597,
401,
266,
1798,
6434,
9735,
382,
8867,
13,
288,
1082,
202,
430,
261,
15156,
422,
6937,
3932,
747,
5881,
422,
29666,
26854,
597,
1723,
6902,
10265,
7675,
14963,
2932,
588,
797,
7923,
6862,
202,
10,
10,
1322,
360,
6902,
10265,
7675,
14963,
2932,
1435,
21159,
19,
4936,
19,
797,
4868,
13,
6862,
202,
13,
288,
9506,
202,
22808,
2624,
18,
1180,
761,
273,
2110,
18,
588,
2624,
1180,
12,
20,
1769,
9506,
202,
430,
261,
1726,
18,
588,
3996,
1854,
1435,
422,
404,
13,
19821,
1442,
792,
1564,
273,
638,
31,
1082,
202,
97,
469,
309,
225,
261,
15156,
422,
225,
20694,
3991,
10106,
6365,
597,
1723,
6902,
10265,
7675,
14963,
2932,
14963,
7923,
6862,
202,
10,
10,
1322,
360,
6902,
10265,
7675,
14963,
2932,
12,
21159,
19,
4936,
19,
921,
30943,
62,
6,
3719,
288,
9506,
202,
22808,
2624,
18,
1180,
761,
20,
273,
2110,
18,
588,
2624,
1180,
12,
20,
1769,
9506,
202,
22808,
2624,
18,
1180,
761,
21,
273,
2110,
18,
588,
2624,
1180,
12,
21,
1769,
9506,
202,
430,
261,
1726,
21,
18,
588,
3996,
1854,
1435,
397,
761,
20,
18,
588,
3996,
1854,
1435,
225,
422,
404,
13,
25083,
19821,
1442,
792,
1564,
273,
638,
31,
1082,
202,
97,
469,
309,
261,
15156,
422,
14565,
21871,
597,
401,
87,
2219,
1442,
792,
1564,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1850,
1071,
918,
19821,
22808,
12,
474,
5881,
13,
288,
202,
202,
3772,
18,
2702,
46,
23868,
12,
2211,
1769,
9506,
202,
430,
261,
291,
8867,
921,
597,
401,
266,
1798,
6434,
9735,
382,
8867,
13,
288,
1082,
202,
430,
261,
15156,
422,
6937,
3932,
747,
5881,
422,
29666,
26854,
597,
1723,
6902,
10265,
7675,
14963,
2932,
588,
797,
7923,
6862,
202,
10,
10,
1322,
360,
6902,
10265,
7675,
14963,
2932,
1435,
21159,
19,
4936,
19,
797,
4868,
13,
6862,
202,
13,
288,
9506,
202,
22808,
2624,
18,
1180,
761,
273,
2110,
18,
588,
2624,
1180,
12,
20,
1769,
9506,
202,
430,
261,
1726,
18,
588,
3996,
1854,
1435,
422,
404,
13,
19821,
1442,
792,
1564,
273,
638,
31,
2
] |
fSpecified = true;
|
fSpecified = false;
|
public void reset() { fDeclaration = null; fTypeDecl = null; fNil = false; fSpecified = true; fNotation = null; fMemberType = null; fValidationAttempted = ElementPSVI.VALIDATION_NONE; fValidity = ElementPSVI.VALIDITY_UNKNOWN; fErrorCodes = null; fValidationContext = null; fNormalizedValue = null; }
|
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/391426c05f639e42a7aa8483b93d774c49357ba9/ElementPSVImpl.java/clean/src/org/apache/xerces/impl/xs/ElementPSVImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2715,
1435,
288,
3639,
284,
6094,
273,
446,
31,
3639,
284,
559,
3456,
273,
446,
31,
3639,
284,
12616,
273,
629,
31,
3639,
284,
17068,
273,
629,
31,
3639,
284,
14818,
273,
446,
31,
3639,
284,
4419,
559,
273,
446,
31,
3639,
284,
4354,
28788,
273,
3010,
5857,
4136,
18,
5063,
2689,
67,
9826,
31,
3639,
284,
19678,
273,
3010,
5857,
4136,
18,
5063,
4107,
67,
14737,
31,
3639,
284,
668,
6295,
273,
446,
31,
3639,
284,
4354,
1042,
273,
446,
31,
3639,
284,
15577,
620,
273,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2715,
1435,
288,
3639,
284,
6094,
273,
446,
31,
3639,
284,
559,
3456,
273,
446,
31,
3639,
284,
12616,
273,
629,
31,
3639,
284,
17068,
273,
629,
31,
3639,
284,
14818,
273,
446,
31,
3639,
284,
4419,
559,
273,
446,
31,
3639,
284,
4354,
28788,
273,
3010,
5857,
4136,
18,
5063,
2689,
67,
9826,
31,
3639,
284,
19678,
273,
3010,
5857,
4136,
18,
5063,
4107,
67,
14737,
31,
3639,
284,
668,
6295,
273,
446,
31,
3639,
284,
4354,
1042,
273,
446,
31,
3639,
284,
15577,
620,
273,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return month;
|
return month;
|
public Month getMonth() { return month; }
|
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/f2ed60b5417a9a7d4bcf5fcf0cdc3f70cc3c9b8f/ResultPublicationBean.java/buggy/src/net/sourceforge/fenixedu/dataTransferObject/research/result/publication/ResultPublicationBean.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10337,
19627,
1435,
288,
3639,
327,
3138,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10337,
19627,
1435,
288,
3639,
327,
3138,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
fBtnEdit.setText(LaunchUIPlugin.getResourceString("CEnvironmentTab.Edit..."));
|
fBtnEdit.setText(LaunchMessages.getString("CEnvironmentTab.Edit..."));
|
private void createButtons(Composite parent) { Composite composite = new Composite(parent, SWT.NONE); composite.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_BEGINNING)); composite.setLayout(new GridLayout(1, true)); fBtnNew = new Button(composite, SWT.NONE); fBtnNew.setText(LaunchUIPlugin.getResourceString("CEnvironmentTab.New...")); //$NON-NLS-1$ fBtnNew.setLayoutData(new GridData(GridData.FILL_BOTH)); fBtnNew.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { newEntry(); } }); fBtnImport = new Button(composite, SWT.NONE); fBtnImport.setText(LaunchUIPlugin.getResourceString("CEnvironmentTab.Import...")); //$NON-NLS-1$ fBtnImport.setLayoutData(new GridData(GridData.FILL_BOTH)); fBtnImport.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { importEntries(); } }); fBtnEdit = new Button(composite, SWT.NONE); fBtnEdit.setText(LaunchUIPlugin.getResourceString("CEnvironmentTab.Edit...")); //$NON-NLS-1$ fBtnEdit.setLayoutData(new GridData(GridData.FILL_BOTH)); fBtnEdit.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { edit(); } }); fBtnRemove = new Button(composite, SWT.NONE); fBtnRemove.setText(LaunchUIPlugin.getResourceString("CEnvironmentTab.Remove")); //$NON-NLS-1$ fBtnRemove.setLayoutData(new GridData(GridData.FILL_BOTH)); fBtnRemove.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { remove(); } }); }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/a192c2f172621fd921dbaebb14ee66fcee4f8f12/CEnvironmentTab.java/clean/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/ui/CEnvironmentTab.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
14388,
12,
9400,
982,
13,
288,
202,
202,
9400,
9635,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
202,
202,
27676,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
21654,
10109,
67,
26439,
67,
16061,
15870,
10019,
202,
202,
27676,
18,
542,
3744,
12,
2704,
7145,
3744,
12,
21,
16,
638,
10019,
202,
202,
74,
20541,
1908,
273,
394,
12569,
12,
27676,
16,
348,
8588,
18,
9826,
1769,
202,
202,
74,
20541,
1908,
18,
542,
1528,
12,
9569,
5370,
3773,
18,
588,
1420,
780,
2932,
39,
5494,
5661,
18,
1908,
7070,
10019,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
74,
20541,
1908,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
10019,
202,
202,
74,
20541,
1908,
18,
1289,
6233,
2223,
12,
2704,
12977,
4216,
1435,
288,
1082,
202,
482,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
9506,
202,
2704,
1622,
5621,
1082,
202,
97,
202,
202,
22938,
202,
202,
74,
20541,
5010,
273,
394,
12569,
12,
27676,
16,
348,
8588,
18,
9826,
1769,
202,
202,
74,
20541,
5010,
18,
542,
1528,
12,
9569,
5370,
3773,
18,
588,
1420,
780,
2932,
39,
5494,
5661,
18,
5010,
7070,
10019,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
74,
20541,
5010,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
10019,
202,
202,
74,
20541,
5010,
18,
1289,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
14388,
12,
9400,
982,
13,
288,
202,
202,
9400,
9635,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
202,
202,
27676,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
21654,
10109,
67,
26439,
67,
16061,
15870,
10019,
202,
202,
27676,
18,
542,
3744,
12,
2704,
7145,
3744,
12,
21,
16,
638,
10019,
202,
202,
74,
20541,
1908,
273,
394,
12569,
12,
27676,
16,
348,
8588,
18,
9826,
1769,
202,
202,
74,
20541,
1908,
18,
542,
1528,
12,
9569,
5370,
3773,
18,
588,
1420,
780,
2932,
39,
5494,
5661,
18,
1908,
7070,
10019,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
74,
20541,
1908,
18,
542,
3744,
2
] |
Expression leftHandSide = expressionStack[expressionPtr]; if (leftHandSide instanceof Reference) { if (post) { expressionStack[expressionPtr] = new PostfixExpression( leftHandSide, IntLiteral.One, op, endStatementPosition);
|
Expression r, exp = expressionStack[expressionPtr]; if (op == MINUS) { if ((exp instanceof IntLiteral) && (((IntLiteral) exp).mayRepresentMIN_VALUE())) { r = expressionStack[expressionPtr] = new IntLiteralMinValue();
|
protected void consumeUnaryExpression(int op, boolean post) { // PreIncrementExpression ::= '++' PushPosition UnaryExpression // PreDecrementExpression ::= '--' PushPosition UnaryExpression // ++ and -- operators //optimize the push/pop //intStack has the position of the operator when prefix Expression leftHandSide = expressionStack[expressionPtr]; if (leftHandSide instanceof Reference) { // ++foo()++ is unvalid if (post) { expressionStack[expressionPtr] = new PostfixExpression( leftHandSide, IntLiteral.One, op, endStatementPosition); } else { expressionStack[expressionPtr] = new PrefixExpression( leftHandSide, IntLiteral.One, op, intStack[intPtr--]); } } else { //the ++ or the -- is NOT taken into account if code gen proceeds if (!post) { intPtr--; } problemReporter().invalidUnaryExpression(leftHandSide); }}
|
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/0ed39879606810ff8db06fed2d2c454db613d59d/Parser.java/buggy/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
7865,
15972,
2300,
12,
474,
1061,
16,
1250,
1603,
13,
288,
202,
759,
2962,
10798,
2300,
493,
33,
15126,
6797,
8547,
2555,
20324,
2300,
202,
759,
2962,
23326,
475,
2300,
493,
33,
16979,
8547,
2555,
20324,
2300,
202,
759,
965,
471,
1493,
12213,
202,
759,
29155,
326,
1817,
19,
5120,
202,
759,
474,
2624,
711,
326,
1754,
434,
326,
3726,
1347,
1633,
202,
2300,
2002,
1144,
8895,
273,
2652,
2624,
63,
8692,
5263,
15533,
202,
430,
261,
4482,
1144,
8895,
1276,
6268,
13,
288,
202,
202,
759,
965,
11351,
1435,
9904,
353,
640,
877,
3196,
202,
430,
261,
2767,
13,
288,
1082,
202,
8692,
2624,
63,
8692,
5263,
65,
273,
4697,
202,
2704,
5616,
904,
2300,
12,
6862,
202,
4482,
1144,
8895,
16,
6862,
202,
1702,
6177,
18,
3335,
16,
6862,
202,
556,
16,
6862,
202,
409,
3406,
2555,
1769,
3196,
202,
97,
469,
288,
1082,
202,
8692,
2624,
63,
8692,
5263,
65,
273,
4697,
202,
2704,
10139,
2300,
12,
6862,
202,
4482,
1144,
8895,
16,
6862,
202,
1702,
6177,
18,
3335,
16,
6862,
202,
556,
16,
6862,
202,
474,
2624,
63,
474,
5263,
413,
19226,
3196,
202,
97,
202,
97,
469,
288,
202,
202,
759,
5787,
965,
578,
326,
1493,
353,
4269,
9830,
1368,
2236,
309,
981,
3157,
11247,
87,
202,
202,
430,
16051,
2767,
13,
288,
1082,
202,
474,
5263,
413,
31,
202,
202,
97,
202,
202,
18968,
13289,
7675,
5387,
15972,
2300,
12,
4482,
1144,
8895,
1769,
202,
9090,
2,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
7865,
15972,
2300,
12,
474,
1061,
16,
1250,
1603,
13,
288,
202,
759,
2962,
10798,
2300,
493,
33,
15126,
6797,
8547,
2555,
20324,
2300,
202,
759,
2962,
23326,
475,
2300,
493,
33,
16979,
8547,
2555,
20324,
2300,
202,
759,
965,
471,
1493,
12213,
202,
759,
29155,
326,
1817,
19,
5120,
202,
759,
474,
2624,
711,
326,
1754,
434,
326,
3726,
1347,
1633,
202,
2300,
2002,
1144,
8895,
273,
2652,
2624,
63,
8692,
5263,
15533,
202,
430,
261,
4482,
1144,
8895,
1276,
6268,
13,
288,
202,
202,
759,
965,
11351,
1435,
9904,
353,
640,
877,
3196,
202,
430,
261,
2767,
13,
288,
1082,
202,
8692,
2624,
63,
8692,
5263,
65,
273,
4697,
202,
2704,
5616,
904,
2300,
12,
2
] |
int j = 0;
|
private void filterMoves( Object[] move_array, MoveOption.Table pass, MoveOption.WeightedComparator comp, int filter) { Arrays.sort(move_array, comp); int j = 0; //top 100 utility, mostly conservative for (int i = 0; j < filter && i < move_array.length; i++) { MoveOption mop = (MoveOption)move_array[i]; if (mop.isMoveLegal()) { pass.put(mop); j++; } } }
|
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/b6307b2ec4e2a81abe6e29b7f44d0378d82de896/TestBot.java/buggy/megamek/src/megamek/client/bot/TestBot.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1034,
19297,
12,
3639,
1033,
8526,
3635,
67,
1126,
16,
3639,
9933,
1895,
18,
1388,
1342,
16,
3639,
9933,
1895,
18,
6544,
329,
5559,
1161,
16,
3639,
509,
1034,
13,
288,
3639,
5647,
18,
3804,
12,
8501,
67,
1126,
16,
1161,
1769,
9079,
368,
3669,
2130,
12788,
16,
23958,
356,
23039,
1535,
3639,
364,
261,
474,
277,
273,
374,
31,
525,
411,
1034,
597,
277,
411,
3635,
67,
1126,
18,
2469,
31,
277,
27245,
288,
5411,
9933,
1895,
312,
556,
273,
261,
7607,
1895,
13,
8501,
67,
1126,
63,
77,
15533,
5411,
309,
261,
81,
556,
18,
291,
7607,
30697,
10756,
288,
7734,
1342,
18,
458,
12,
81,
556,
1769,
7734,
525,
9904,
31,
5411,
289,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1034,
19297,
12,
3639,
1033,
8526,
3635,
67,
1126,
16,
3639,
9933,
1895,
18,
1388,
1342,
16,
3639,
9933,
1895,
18,
6544,
329,
5559,
1161,
16,
3639,
509,
1034,
13,
288,
3639,
5647,
18,
3804,
12,
8501,
67,
1126,
16,
1161,
1769,
9079,
368,
3669,
2130,
12788,
16,
23958,
356,
23039,
1535,
3639,
364,
261,
474,
277,
273,
374,
31,
525,
411,
1034,
597,
277,
411,
3635,
67,
1126,
18,
2469,
31,
277,
27245,
288,
5411,
9933,
1895,
312,
556,
273,
261,
7607,
1895,
13,
8501,
67,
1126,
63,
77,
15533,
5411,
309,
261,
81,
556,
18,
291,
7607,
30697,
10756,
288,
7734,
1342,
18,
458,
12,
81,
556,
1769,
7734,
525,
9904,
31,
5411,
289,
2
] |
|
String text = getResources().getString("ColorPropertyChangeAction.clearColors");
|
String text = DiagramUIActionsMessages.ColorPropertyChangeAction_clearColors;
|
private void createClearCustomColorMenuItem(Menu theMenu) { String text = getResources().getString("ColorPropertyChangeAction.clearColors"); //$NON-NLS-1$ Image image = null; //new ColorBoxImageDescriptor(color).createImage(); MenuItem mi = createMenuItem(theMenu, text, image); mi.setData(CLEAR); }
|
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/e66f9c3483db21ee776650f0e5341a7a370f06cb/ColorPropertyContributionItem.java/buggy/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.diagram.ui.actions/src/org/eclipse/gmf/runtime/diagram/ui/actions/internal/ColorPropertyContributionItem.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
9094,
3802,
2957,
12958,
12,
4599,
326,
4599,
13,
288,
202,
202,
780,
977,
273,
14539,
1940,
5370,
6100,
5058,
18,
2957,
1396,
3043,
1803,
67,
8507,
12570,
31,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
2040,
1316,
273,
446,
31,
368,
2704,
5563,
3514,
2040,
3187,
12,
3266,
2934,
2640,
2040,
5621,
202,
202,
12958,
12837,
273,
752,
12958,
12,
5787,
4599,
16,
977,
16,
1316,
1769,
202,
202,
9197,
18,
542,
751,
12,
23181,
985,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
9094,
3802,
2957,
12958,
12,
4599,
326,
4599,
13,
288,
202,
202,
780,
977,
273,
14539,
1940,
5370,
6100,
5058,
18,
2957,
1396,
3043,
1803,
67,
8507,
12570,
31,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
2040,
1316,
273,
446,
31,
368,
2704,
5563,
3514,
2040,
3187,
12,
3266,
2934,
2640,
2040,
5621,
202,
202,
12958,
12837,
273,
752,
12958,
12,
5787,
4599,
16,
977,
16,
1316,
1769,
202,
202,
9197,
18,
542,
751,
12,
23181,
985,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public org.quickfix.field.Price getPrice() throws FieldNotFound { org.quickfix.field.Price value = new org.quickfix.field.Price();
|
public quickfix.field.Price getPrice() throws FieldNotFound { quickfix.field.Price value = new quickfix.field.Price();
|
public org.quickfix.field.Price getPrice() throws FieldNotFound { org.quickfix.field.Price value = new org.quickfix.field.Price(); getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderCancelReplaceRequest.java/clean/src/java/src/quickfix/fix40/OrderCancelReplaceRequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
5147,
25930,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
5147,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
5147,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
5147,
25930,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
5147,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
5147,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public static void unselectHexesByLabels(Set labels)
|
public void unselectHexesByLabels(Set labels)
|
public static void unselectHexesByLabels(Set labels) { Iterator it = hexes.iterator(); while (it.hasNext()) { MasterHex hex = (MasterHex)it.next(); if (hex.isSelected() && labels.contains(hex.getLabel())) { hex.unselect(); hex.repaint(); } } }
|
51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/58dfe989fdda2110920bb7394f745a5b68c56aab/MasterBoard.java/clean/Colossus/MasterBoard.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
640,
4025,
7037,
281,
858,
5888,
12,
694,
3249,
13,
565,
288,
3639,
4498,
518,
273,
3827,
281,
18,
9838,
5621,
3639,
1323,
261,
305,
18,
5332,
2134,
10756,
3639,
288,
5411,
13453,
7037,
3827,
273,
261,
7786,
7037,
13,
305,
18,
4285,
5621,
5411,
309,
261,
7118,
18,
291,
7416,
1435,
597,
3249,
18,
12298,
12,
7118,
18,
588,
2224,
1435,
3719,
5411,
288,
7734,
3827,
18,
318,
4025,
5621,
7734,
3827,
18,
14462,
1598,
5621,
5411,
289,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
640,
4025,
7037,
281,
858,
5888,
12,
694,
3249,
13,
565,
288,
3639,
4498,
518,
273,
3827,
281,
18,
9838,
5621,
3639,
1323,
261,
305,
18,
5332,
2134,
10756,
3639,
288,
5411,
13453,
7037,
3827,
273,
261,
7786,
7037,
13,
305,
18,
4285,
5621,
5411,
309,
261,
7118,
18,
291,
7416,
1435,
597,
3249,
18,
12298,
12,
7118,
18,
588,
2224,
1435,
3719,
5411,
288,
7734,
3827,
18,
318,
4025,
5621,
7734,
3827,
18,
14462,
1598,
5621,
5411,
289,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
pdu.setTimeStamp(System.currentTimeMillis());
|
pdu.setTimeStamp(666L);
|
public void testSnmpV1TrapSend() throws Exception { String localhost = myLocalHost(); InetAddress localAddr = InetAddress.getByName(myLocalHost()); SnmpV1TrapBuilder pdu = SnmpUtils.getV1TrapBuilder(); pdu.setEnterprise(SnmpObjId.get(".1.3.6.1.4.1.5813")); pdu.setGeneric(1); pdu.setSpecific(0); pdu.setTimeStamp(System.currentTimeMillis()); pdu.setAgentAddress(localAddr); Event e = new Event(); e.setUei("uei.opennms.org/default/trap"); e.setSource("trapd"); e.setInterface(localhost); Logmsg logmsg = new Logmsg(); logmsg.setDest("logndisplay"); e.setLogmsg(logmsg); EventAnticipator ea = new EventAnticipator(); ea.anticipateEvent(e); pdu.send(localhost, m_port, "public"); pdu.send(localhost, m_port, "public"); pdu.send(localhost, m_port, "public"); pdu.send(localhost, m_port, "public"); assertEquals(1, ea.waitForAnticipated(1000).size()); Thread.sleep(2000); assertEquals(0, ea.unanticipatedEvents().size()); }
|
25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/e80a3a6f30d14f0a5a236652805dcd37957785d8/TrapdTest.java/clean/opennms-services/src/test/java/org/opennms/netmgt/trapd/TrapdTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
10461,
1291,
58,
21,
56,
1266,
3826,
1435,
1216,
1185,
288,
202,
202,
780,
17365,
273,
3399,
2042,
2594,
5621,
202,
202,
382,
278,
1887,
1191,
3178,
273,
14218,
18,
588,
5911,
12,
4811,
2042,
2594,
10663,
7734,
18961,
1291,
58,
21,
56,
1266,
1263,
21160,
273,
18961,
1291,
1989,
18,
588,
58,
21,
56,
1266,
1263,
5621,
3639,
21160,
18,
542,
30699,
12,
10461,
1291,
2675,
548,
18,
588,
2932,
18,
21,
18,
23,
18,
26,
18,
21,
18,
24,
18,
21,
18,
8204,
3437,
7923,
1769,
3639,
21160,
18,
542,
7014,
12,
21,
1769,
3639,
21160,
18,
542,
9969,
12,
20,
1769,
3639,
21160,
18,
542,
21536,
12,
25308,
48,
1769,
3639,
21160,
18,
542,
3630,
1887,
12,
3729,
3178,
1769,
13491,
2587,
425,
273,
394,
2587,
5621,
3639,
425,
18,
542,
57,
73,
77,
2932,
344,
77,
18,
3190,
82,
959,
18,
3341,
19,
1886,
19,
27170,
8863,
3639,
425,
18,
542,
1830,
2932,
27170,
72,
8863,
3639,
425,
18,
542,
1358,
12,
13014,
1769,
3639,
1827,
3576,
613,
3576,
273,
394,
1827,
3576,
5621,
3639,
613,
3576,
18,
542,
9378,
2932,
1330,
82,
5417,
8863,
3639,
425,
18,
542,
1343,
3576,
12,
1330,
3576,
1769,
3639,
2587,
14925,
24629,
639,
24164,
273,
394,
2587,
14925,
24629,
639,
5621,
3639,
24164,
18,
9941,
625,
340,
1133,
12,
73,
1769,
3639,
21160,
18,
4661,
12,
13014,
16,
312,
67,
655,
16,
315,
482,
8863,
3639,
21160,
18,
4661,
12,
13014,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
10461,
1291,
58,
21,
56,
1266,
3826,
1435,
1216,
1185,
288,
202,
202,
780,
17365,
273,
3399,
2042,
2594,
5621,
202,
202,
382,
278,
1887,
1191,
3178,
273,
14218,
18,
588,
5911,
12,
4811,
2042,
2594,
10663,
7734,
18961,
1291,
58,
21,
56,
1266,
1263,
21160,
273,
18961,
1291,
1989,
18,
588,
58,
21,
56,
1266,
1263,
5621,
3639,
21160,
18,
542,
30699,
12,
10461,
1291,
2675,
548,
18,
588,
2932,
18,
21,
18,
23,
18,
26,
18,
21,
18,
24,
18,
21,
18,
8204,
3437,
7923,
1769,
3639,
21160,
18,
542,
7014,
12,
21,
1769,
3639,
21160,
18,
542,
9969,
12,
20,
1769,
3639,
21160,
18,
542,
21536,
12,
25308,
48,
1769,
3639,
2
] |
((EditPart)_children.get(i)) .removeNotify();
|
((EditPart) _children.get(i)).removeNotify();
|
public void removeNotify() { deactivateFigure(); if (getSelected() != SELECTED_NONE) getViewer().deselect(this); if (hasFocus()) getViewer().setFocus(null); List _children = getChildren(); for (int i = 0; i < _children.size(); i++) ((EditPart)_children.get(i)) .removeNotify(); unregister(); List conns; conns = getSourceConnections(); for (int i = 0; i < conns.size(); i++) { ConnectionEditPart conn = (ConnectionEditPart)conns.get(i); if (conn.getSource() == this) conn.setSource(null); } conns = getTargetConnections(); for (int i = 0; i < conns.size(); i++) { ConnectionEditPart conn = (ConnectionEditPart)conns.get(i); if (conn.getTarget() == this) conn.setTarget(null); } }
|
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/8cde65fc058a9faaf847d04bf9b28594ea600f8f/ConnectionEditPart.java/buggy/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.diagram.ui/src/org/eclipse/gmf/runtime/diagram/ui/editparts/ConnectionEditPart.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1206,
9168,
1435,
288,
202,
202,
323,
10014,
42,
15906,
5621,
202,
202,
430,
261,
588,
7416,
1435,
480,
9111,
2056,
67,
9826,
13,
1082,
202,
588,
18415,
7675,
5489,
13759,
12,
2211,
1769,
202,
202,
430,
261,
5332,
9233,
10756,
1082,
202,
588,
18415,
7675,
542,
9233,
12,
2011,
1769,
202,
202,
682,
389,
5906,
273,
10268,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
389,
5906,
18,
1467,
5621,
277,
27245,
1082,
202,
12443,
4666,
1988,
13,
67,
5906,
18,
588,
12,
77,
3719,
9506,
202,
18,
4479,
9168,
5621,
202,
202,
318,
4861,
5621,
202,
202,
682,
18976,
31,
202,
202,
591,
2387,
273,
7889,
9314,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
18976,
18,
1467,
5621,
277,
27245,
288,
1082,
202,
1952,
4666,
1988,
1487,
273,
261,
1952,
4666,
1988,
13,
591,
2387,
18,
588,
12,
77,
1769,
1082,
202,
430,
261,
4646,
18,
588,
1830,
1435,
422,
333,
13,
9506,
202,
4646,
18,
542,
1830,
12,
2011,
1769,
202,
202,
97,
202,
202,
591,
2387,
273,
8571,
9314,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
18976,
18,
1467,
5621,
277,
27245,
288,
1082,
202,
1952,
4666,
1988,
1487,
273,
261,
1952,
4666,
1988,
13,
591,
2387,
18,
588,
12,
77,
1769,
1082,
202,
430,
261,
4646,
18,
588,
2326,
1435,
422,
333,
13,
9506,
202,
4646,
18,
542,
2326,
12,
2011,
1769,
202,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1206,
9168,
1435,
288,
202,
202,
323,
10014,
42,
15906,
5621,
202,
202,
430,
261,
588,
7416,
1435,
480,
9111,
2056,
67,
9826,
13,
1082,
202,
588,
18415,
7675,
5489,
13759,
12,
2211,
1769,
202,
202,
430,
261,
5332,
9233,
10756,
1082,
202,
588,
18415,
7675,
542,
9233,
12,
2011,
1769,
202,
202,
682,
389,
5906,
273,
10268,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
389,
5906,
18,
1467,
5621,
277,
27245,
1082,
202,
12443,
4666,
1988,
13,
67,
5906,
18,
588,
12,
77,
3719,
9506,
202,
18,
4479,
9168,
5621,
202,
202,
318,
4861,
5621,
202,
202,
682,
18976,
31,
202,
202,
591,
2387,
273,
7889,
9314,
5621,
202,
2
] |
IOperationApprover2 approver = (IOperationApprover2)approverArray[i]; IStatus approval = approver.proceedExecuting(operation, this, info);
|
IOperationApprover2 approver = (IOperationApprover2) approverArray[i]; IStatus approval = approver.proceedExecuting(operation, this, info);
|
private IStatus getExecuteApproval(IUndoableOperation operation, IAdaptable info) { final Object[] approverArray = approvers.getListeners(); for (int i = 0; i < approverArray.length; i++) { if (approverArray[i] instanceof IOperationApprover2) { IOperationApprover2 approver = (IOperationApprover2)approverArray[i]; IStatus approval = approver.proceedExecuting(operation, this, info); if (!approval.isOK()) { if (DEBUG_OPERATION_HISTORY_APPROVAL) { Tracing.printTrace("OPERATIONHISTORY", //$NON-NLS-1$ "Execute not approved by " + approver //$NON-NLS-1$ + "for operation " + operation //$NON-NLS-1$ + " with status " + approval); //$NON-NLS-1$ } return approval; } } } return Status.OK_STATUS; }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/8a31c2da4967a41abe7c28bd673ee18ec4e064e2/DefaultOperationHistory.java/buggy/bundles/org.eclipse.core.commands/src/org/eclipse/core/commands/operations/DefaultOperationHistory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
1482,
336,
5289,
23461,
12,
45,
31224,
429,
2988,
1674,
16,
1082,
202,
45,
13716,
429,
1123,
13,
288,
202,
202,
6385,
1033,
8526,
6617,
502,
1076,
273,
6617,
2496,
18,
588,
5583,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
6617,
502,
1076,
18,
2469,
31,
277,
27245,
288,
1082,
202,
430,
261,
12908,
502,
1076,
63,
77,
65,
1276,
1665,
1193,
12053,
502,
22,
13,
288,
9506,
202,
45,
2988,
12053,
502,
22,
6617,
502,
273,
261,
45,
2988,
12053,
502,
22,
13,
12908,
502,
1076,
63,
77,
15533,
9506,
202,
45,
1482,
23556,
273,
6617,
502,
18,
685,
5288,
22134,
12,
7624,
16,
333,
16,
1123,
1769,
9506,
202,
430,
16051,
12908,
1125,
18,
291,
3141,
10756,
288,
6862,
202,
430,
261,
9394,
67,
22040,
67,
31746,
67,
2203,
3373,
2669,
13,
288,
25083,
202,
3403,
18,
1188,
3448,
2932,
22040,
31746,
3113,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
9506,
202,
6,
5289,
486,
20412,
635,
315,
397,
6617,
502,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
25083,
202,
15,
315,
1884,
1674,
315,
397,
1674,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
25083,
202,
15,
315,
598,
1267,
315,
397,
23556,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
97,
6862,
202,
2463,
23556,
31,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
2685,
18,
3141,
67,
8608,
31,
202,
97,
2,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
1482,
336,
5289,
23461,
12,
45,
31224,
429,
2988,
1674,
16,
1082,
202,
45,
13716,
429,
1123,
13,
288,
202,
202,
6385,
1033,
8526,
6617,
502,
1076,
273,
6617,
2496,
18,
588,
5583,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
6617,
502,
1076,
18,
2469,
31,
277,
27245,
288,
1082,
202,
430,
261,
12908,
502,
1076,
63,
77,
65,
1276,
1665,
1193,
12053,
502,
22,
13,
288,
9506,
202,
45,
2988,
12053,
502,
22,
6617,
502,
273,
261,
45,
2988,
12053,
502,
22,
13,
12908,
502,
1076,
63,
77,
15533,
9506,
202,
45,
1482,
23556,
273,
6617,
502,
18,
685,
5288,
22134,
12,
7624,
16,
333,
16,
1123,
1769,
9506,
2
] |
GenericDelegator delegator = ctx.getDelegator();
|
public static Map suspendActivity(DispatchContext ctx, Map context) { Map result = new HashMap(); GenericDelegator delegator = ctx.getDelegator(); Security security = ctx.getSecurity(); String workEffortId = (String) context.get("workEffortId"); GenericValue userLogin = (GenericValue) context.get("userLogin"); if (!hasPermission(security, workEffortId, userLogin)) { result.put(ModelService.RESPONSE_MESSAGE, ModelService.RESPOND_ERROR); result.put(ModelService.ERROR_MESSAGE, "You do not have permission to access this activity"); return result; } try { WorkflowClient client = WfFactory.getClient(ctx); client.suspend(workEffortId); result.put(ModelService.RESPONSE_MESSAGE, ModelService.RESPOND_SUCCESS); } catch (WfException we) { we.printStackTrace(); result.put(ModelService.RESPONSE_MESSAGE, ModelService.RESPOND_ERROR); result.put(ModelService.ERROR_MESSAGE, we.getMessage()); } return result; }
|
22229 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/22229/166c06edf1473c848416f568a51ea3863679a8a0/WorkflowServices.java/clean/framework/workflow/src/org/ofbiz/workflow/client/WorkflowServices.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1635,
20413,
6193,
12,
5325,
1042,
1103,
16,
1635,
819,
13,
288,
3639,
1635,
563,
273,
394,
4317,
5621,
9079,
6036,
4373,
273,
1103,
18,
588,
4368,
5621,
3639,
514,
1440,
41,
1403,
499,
548,
273,
261,
780,
13,
819,
18,
588,
2932,
1252,
41,
1403,
499,
548,
8863,
9079,
7928,
620,
729,
5358,
273,
261,
7014,
620,
13,
819,
18,
588,
2932,
1355,
5358,
8863,
3639,
309,
16051,
5332,
5041,
12,
7462,
16,
1440,
41,
1403,
499,
548,
16,
729,
5358,
3719,
288,
5411,
563,
18,
458,
12,
1488,
1179,
18,
14508,
67,
8723,
16,
3164,
1179,
18,
862,
10789,
40,
67,
3589,
1769,
5411,
563,
18,
458,
12,
1488,
1179,
18,
3589,
67,
8723,
16,
315,
6225,
741,
486,
1240,
4132,
358,
2006,
333,
5728,
8863,
5411,
327,
563,
31,
3639,
289,
3639,
775,
288,
5411,
11363,
1227,
1004,
273,
678,
74,
1733,
18,
588,
1227,
12,
5900,
1769,
5411,
1004,
18,
87,
18815,
12,
1252,
41,
1403,
499,
548,
1769,
5411,
563,
18,
458,
12,
1488,
1179,
18,
14508,
67,
8723,
16,
3164,
1179,
18,
862,
10789,
40,
67,
12778,
1769,
3639,
289,
1044,
261,
59,
74,
503,
732,
13,
288,
5411,
732,
18,
1188,
6332,
5621,
5411,
563,
18,
458,
12,
1488,
1179,
18,
14508,
67,
8723,
16,
3164,
1179,
18,
862,
10789,
40,
67,
3589,
1769,
5411,
563,
18,
458,
12,
1488,
1179,
18,
3589,
67,
8723,
16,
732,
18,
24906,
10663,
3639,
289,
3639,
327,
563,
31,
565,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1635,
20413,
6193,
12,
5325,
1042,
1103,
16,
1635,
819,
13,
288,
3639,
1635,
563,
273,
394,
4317,
5621,
9079,
6036,
4373,
273,
1103,
18,
588,
4368,
5621,
3639,
514,
1440,
41,
1403,
499,
548,
273,
261,
780,
13,
819,
18,
588,
2932,
1252,
41,
1403,
499,
548,
8863,
9079,
7928,
620,
729,
5358,
273,
261,
7014,
620,
13,
819,
18,
588,
2932,
1355,
5358,
8863,
3639,
309,
16051,
5332,
5041,
12,
7462,
16,
1440,
41,
1403,
499,
548,
16,
729,
5358,
3719,
288,
5411,
563,
18,
458,
12,
1488,
1179,
18,
14508,
67,
8723,
16,
3164,
1179,
18,
862,
10789,
40,
67,
3589,
1769,
5411,
563,
18,
458,
12,
1488,
1179,
18,
3589,
67,
8723,
2
] |
|
if (methods != null) { clone.setMethods(new RubyHashMap()); methods.foreach(new RubyMapMethod() { NodeFactory nf = new NodeFactory(getRuby());
|
if (methods != null) { clone.setMethods(new RubyHashMap()); methods.foreach(new RubyMapMethod() { NodeFactory nf = new NodeFactory(getRuby());
|
public RubyObject m_clone() { RubyModule clone = new RubyModule(getRuby(), getRubyClass(), getSuperClass()); clone.setupClone(this); if (getInstanceVariables() != null) { clone.setInstanceVariables(getInstanceVariables().cloneRubyMap()); } // clone the methods. if (methods != null) { clone.setMethods(new RubyHashMap()); methods.foreach(new RubyMapMethod() { NodeFactory nf = new NodeFactory(getRuby()); public int execute(Object key, Object value, Object arg) { MethodNode methodNode = (MethodNode) value; ((RubyMap) arg).put( key, nf.newMethod(methodNode.getBodyNode(), methodNode.getNoex())); return RubyMapMethod.CONTINUE; } }, clone.methods); } return clone; }
|
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/clean/org/jruby/RubyModule.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
921,
312,
67,
14056,
1435,
288,
202,
202,
54,
10340,
3120,
3236,
273,
394,
19817,
3120,
12,
588,
54,
10340,
9334,
4170,
10340,
797,
9334,
15172,
797,
10663,
202,
202,
14056,
18,
8401,
10930,
12,
2211,
1769,
202,
202,
430,
261,
588,
1442,
6158,
1435,
480,
446,
13,
288,
1082,
202,
14056,
18,
542,
1442,
6158,
12,
588,
1442,
6158,
7675,
14056,
54,
10340,
863,
10663,
202,
202,
97,
202,
202,
759,
3236,
326,
2590,
18,
202,
202,
430,
261,
5163,
480,
446,
13,
288,
1082,
202,
14056,
18,
542,
4712,
12,
2704,
19817,
8658,
10663,
1082,
202,
5163,
18,
25055,
12,
2704,
19817,
863,
1305,
1435,
288,
9506,
202,
907,
1733,
13958,
273,
394,
2029,
1733,
12,
588,
54,
10340,
10663,
9506,
202,
482,
509,
1836,
12,
921,
498,
16,
1033,
460,
16,
1033,
1501,
13,
288,
6862,
202,
1305,
907,
707,
907,
273,
261,
1305,
907,
13,
460,
31,
6862,
202,
12443,
54,
10340,
863,
13,
1501,
2934,
458,
12,
25083,
202,
856,
16,
25083,
202,
82,
74,
18,
2704,
1305,
12,
2039,
907,
18,
588,
2250,
907,
9334,
707,
907,
18,
588,
2279,
338,
1435,
10019,
6862,
202,
2463,
19817,
863,
1305,
18,
6067,
26725,
31,
9506,
202,
97,
1082,
202,
5779,
3236,
18,
5163,
1769,
202,
202,
97,
202,
202,
2463,
3236,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
921,
312,
67,
14056,
1435,
288,
202,
202,
54,
10340,
3120,
3236,
273,
394,
19817,
3120,
12,
588,
54,
10340,
9334,
4170,
10340,
797,
9334,
15172,
797,
10663,
202,
202,
14056,
18,
8401,
10930,
12,
2211,
1769,
202,
202,
430,
261,
588,
1442,
6158,
1435,
480,
446,
13,
288,
1082,
202,
14056,
18,
542,
1442,
6158,
12,
588,
1442,
6158,
7675,
14056,
54,
10340,
863,
10663,
202,
202,
97,
202,
202,
759,
3236,
326,
2590,
18,
202,
202,
430,
261,
5163,
480,
446,
13,
288,
1082,
202,
14056,
18,
542,
4712,
12,
2704,
19817,
8658,
10663,
1082,
202,
5163,
18,
25055,
12,
2704,
19817,
863,
1305,
1435,
288,
9506,
202,
907,
1733,
13958,
273,
394,
2
] |
lei = lei.substring(0, lei.indexOf("\n"));
|
int newLineNdx = lei.indexOf("\n"); lei = lei.substring(0, newLineNdx == -1 ? lei.length() : newLineNdx);
|
protected void initFile(String id) throws FormatException, IOException { String idLow = id.toLowerCase(); if (idLow.endsWith("tif") || idLow.endsWith("tiff")) { if (ifds == null) super.initFile(id); in = new RandomAccessStream(id); if (in.readShort() == 0x4949) { in.order(true); } in.seek(0); // open the TIFF file and look for the "Image Description" field ifds = TiffTools.getIFDs(in); try { super.initMetadata(); } catch (NullPointerException n) { } if (ifds == null) throw new FormatException("No IFDs found"); String descr = (String) metadata.get("Comment"); metadata.remove("Comment"); int ndx = descr.indexOf("Series Name"); // should be more graceful about this if (ndx == -1) throw new FormatException("LEI file not found"); String lei = descr.substring(descr.indexOf("=", ndx) + 1); lei = lei.substring(0, lei.indexOf("\n")); lei = lei.trim(); String dir = id.substring(0, id.lastIndexOf("/") + 1); lei = dir + lei; // parse key/value pairs in ImageDescription // first thing is to remove anything of the form "[blah]" String first; String last; while(descr.indexOf("[") != -1) { first = descr.substring(0, descr.indexOf("[")); last = descr.substring(descr.indexOf("\n", descr.indexOf("["))); descr = first + last; } // each remaining line in descr is a (key, value) pair, // where '=' separates the key from the value String key; String value; int eqIndex = descr.indexOf("="); while(eqIndex != -1) { key = descr.substring(0, eqIndex); value = descr.substring(eqIndex+1, descr.indexOf("\n", eqIndex)); metadata.put(key.trim(), value.trim()); descr = descr.substring(descr.indexOf("\n", eqIndex)); eqIndex = descr.indexOf("="); } // now open the LEI file initFile(lei); //super.initMetadata(); } else { // parse the LEI file if (metadata == null) { currentId = id; metadata = new Hashtable(); } else { if (currentId != id) currentId = id; } in = new RandomAccessStream(id); byte[] fourBytes = new byte[4]; in.read(fourBytes); littleEndian = (fourBytes[0] == TiffTools.LITTLE && fourBytes[1] == TiffTools.LITTLE && fourBytes[2] == TiffTools.LITTLE && fourBytes[3] == TiffTools.LITTLE); in.order(littleEndian); in.skipBytes(8); int addr = in.readInt(); Vector v = new Vector(); while (addr != 0) { numSeries++; Hashtable ifd = new Hashtable(); v.add(ifd); in.seek(addr + 4); int tag = in.readInt(); while (tag != 0) { // create the IFD structure int offset = in.readInt(); long pos = in.getFilePointer(); in.seek(offset + 12); int size = in.readInt(); byte[] data = new byte[size]; in.read(data); ifd.put(new Integer(tag), (Object) data); in.seek(pos); tag = in.readInt(); } addr = in.readInt(); } numChannels = new int[numSeries]; widths = new int[numSeries]; heights = new int[numSeries]; zs = new int[numSeries]; headerIFDs = new Hashtable[numSeries]; files = new Vector[numSeries]; numPlanes = new int[numSeries]; v.copyInto(headerIFDs); // determine the length of a filename int nameLength = 0; for (int i=0; i<headerIFDs.length; i++) { if (headerIFDs[i].get(new Integer(10)) != null) { byte[] temp = (byte[]) headerIFDs[i].get(new Integer(10)); nameLength = DataTools.bytesToInt(temp, 8, 4, littleEndian); } Vector f = new Vector(); byte[] tempData = (byte[]) headerIFDs[i].get(new Integer(15)); int tempImages = DataTools.bytesToInt(tempData, 0, 4, littleEndian); String dirPrefix = new File(id).getParent(); dirPrefix = dirPrefix == null ? "" : (dirPrefix + File.separator); for (int j=0; j<tempImages; j++) { // read in each filename f.add(dirPrefix + DataTools.stripString( new String(tempData, 20 + 2*(j*nameLength), 2*nameLength))); } files[i] = f; numPlanes[i] = f.size(); } initMetadata(); } }
|
11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/96a31910877fbeb7aa004a64dd61af7c161218c9/LeicaReader.java/clean/loci/formats/in/LeicaReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
812,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
514,
612,
10520,
273,
612,
18,
869,
5630,
5621,
565,
309,
261,
350,
10520,
18,
5839,
1190,
2932,
26922,
7923,
747,
612,
10520,
18,
5839,
1190,
2932,
88,
3048,
6,
3719,
288,
1377,
309,
261,
430,
2377,
422,
446,
13,
2240,
18,
2738,
812,
12,
350,
1769,
1377,
316,
273,
394,
8072,
1862,
1228,
12,
350,
1769,
1377,
309,
261,
267,
18,
896,
4897,
1435,
422,
374,
92,
7616,
7616,
13,
288,
3639,
316,
18,
1019,
12,
3767,
1769,
1377,
289,
1377,
316,
18,
16508,
12,
20,
1769,
1377,
368,
1696,
326,
27491,
585,
471,
2324,
364,
326,
315,
2040,
6507,
6,
652,
1377,
309,
2377,
273,
399,
3048,
10348,
18,
588,
5501,
22831,
12,
267,
1769,
1377,
775,
288,
3639,
2240,
18,
2738,
2277,
5621,
1377,
289,
1377,
1044,
261,
2041,
9992,
290,
13,
288,
289,
1377,
309,
261,
430,
2377,
422,
446,
13,
604,
394,
4077,
503,
2932,
2279,
11083,
22831,
1392,
8863,
1377,
514,
18426,
273,
261,
780,
13,
1982,
18,
588,
2932,
4469,
8863,
1377,
1982,
18,
4479,
2932,
4469,
8863,
1377,
509,
5346,
92,
273,
18426,
18,
31806,
2932,
6485,
1770,
8863,
1377,
368,
1410,
506,
1898,
24279,
2973,
333,
1377,
309,
261,
4880,
92,
422,
300,
21,
13,
604,
394,
4077,
503,
2932,
900,
45,
585,
486,
1392,
8863,
1377,
514,
884,
77,
273,
18426,
18,
28023,
12,
28313,
18,
31806,
2932,
1546,
16,
5346,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
812,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
514,
612,
10520,
273,
612,
18,
869,
5630,
5621,
565,
309,
261,
350,
10520,
18,
5839,
1190,
2932,
26922,
7923,
747,
612,
10520,
18,
5839,
1190,
2932,
88,
3048,
6,
3719,
288,
1377,
309,
261,
430,
2377,
422,
446,
13,
2240,
18,
2738,
812,
12,
350,
1769,
1377,
316,
273,
394,
8072,
1862,
1228,
12,
350,
1769,
1377,
309,
261,
267,
18,
896,
4897,
1435,
422,
374,
92,
7616,
7616,
13,
288,
3639,
316,
18,
1019,
12,
3767,
1769,
1377,
289,
1377,
316,
18,
16508,
12,
20,
1769,
1377,
368,
1696,
326,
27491,
585,
471,
2324,
364,
326,
315,
2040,
6507,
6,
652,
2
] |
for (int i = 0, m = set0.size(); i < m; i++) { Member member = (Member) set0.get(i); drilledSet.add(member);
|
for (int i = 0, m = set0.size(); i < m; i++) { Member member = (Member) set0.get(i); drilledSet.add(member);
|
protected void defineFunctions() { defineReserved("NULL"); // first char: p=Property, m=Method, i=Infix, P=Prefix // 2nd: // ARRAY FUNCTIONS if (false) define(new FunDefBase("SetToArray", "SetToArray(<Set>[, <Set>]...[, <Numeric Expression>])", "Converts one or more sets to an array for use in a user-if (false) defined function.", "fa*")); // // DIMENSION FUNCTIONS define(new FunDefBase("Dimension", "<Hierarchy>.Dimension", "Returns the dimension that contains a specified hierarchy.", "pdh") { public Object evaluate(Evaluator evaluator, Exp[] args) { Hierarchy hierarchy = getHierarchyArg(evaluator, args, 0, true); return hierarchy.getDimension(); } }); //??Had to add this to get <Hierarchy>.Dimension to work? define(new FunDefBase("Dimension", "<Dimension>.Dimension", "Returns the dimension that contains a specified hierarchy.", "pdd") { public Object evaluate(Evaluator evaluator, Exp[] args) { Dimension dimension = getDimensionArg(evaluator, args, 0, true); return dimension; } }); define(new FunDefBase("Dimension", "<Level>.Dimension", "Returns the dimension that contains a specified level.", "pdl") { public Object evaluate(Evaluator evaluator, Exp[] args) { Level level = getLevelArg(evaluator, args, 0, true); return level.getDimension(); } }); define(new FunDefBase("Dimension", "<Member>.Dimension", "Returns the dimension that contains a specified member.", "pdm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); return member.getDimension(); } }); define(new FunDefBase("Dimensions", "Dimensions(<Numeric Expression>)", "Returns the dimension whose zero-based position within the cube is specified by a numeric expression.", "fdn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Cube cube = evaluator.getCube(); Dimension[] dimensions = cube.getDimensions(); int n = getIntArg(evaluator, args, 0); if ((n > dimensions.length) || (n < 1)) { throw newEvalException( this, "Index '" + n + "' out of bounds"); } return dimensions[n - 1]; } }); define(new FunDefBase("Dimensions", "Dimensions(<String Expression>)", "Returns the dimension whose name is specified by a string.", "fdS") { public Object evaluate(Evaluator evaluator, Exp[] args) { String defValue = "Default Value"; String s = getStringArg(evaluator, args, 0, defValue); if (s.indexOf("[") == -1) { s = Util.quoteMdxIdentifier(s); } OlapElement o = evaluator.getSchemaReader().lookupCompound( evaluator.getCube(), explode(s), false, Category.Dimension); if (o instanceof Dimension) { return (Dimension) o; } else if (o == null) { throw newEvalException(this, "Dimension '" + s + "' not found"); } else { throw newEvalException(this, "Dimensions(" + s + ") found " + o); } } }); // // HIERARCHY FUNCTIONS define(new FunDefBase("Hierarchy", "<Level>.Hierarchy", "Returns a level's hierarchy.", "phl") { public Object evaluate(Evaluator evaluator, Exp[] args) { Level level = getLevelArg(evaluator, args, 0, true); return level.getHierarchy(); } }); define(new FunDefBase("Hierarchy", "<Member>.Hierarchy", "Returns a member's hierarchy.", "phm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); return member.getHierarchy(); } }); // // LEVEL FUNCTIONS define(new FunDefBase("Level", "<Member>.Level", "Returns a member's level.", "plm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); return member.getLevel(); } }); define(new FunDefBase("Levels", "<Hierarchy>.Levels(<Numeric Expression>)", "Returns the level whose position in a hierarchy is specified by a numeric expression.", "mlhn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Hierarchy hierarchy = getHierarchyArg(evaluator, args, 0, true); Level[] levels = hierarchy.getLevels(); int n = getIntArg(evaluator, args, 1); if ((n >= levels.length) || (n < 0)) { throw newEvalException( this, "Index '" + n + "' out of bounds"); } return levels[n]; } }); define(new FunDefBase("Levels", "Levels(<String Expression>)", "Returns the level whose name is specified by a string expression.", "flS") { public Object evaluate(Evaluator evaluator, Exp[] args) { String s = getStringArg(evaluator, args, 0, null); Cube cube = evaluator.getCube(); OlapElement o = null; if (s.startsWith("[")) { o = evaluator.getSchemaReader().lookupCompound(cube, explode(s), false, Category.Level); } else { // lookupCompound barfs if "s" doesn't have matching // brackets, so don't even try o = null; } if (o instanceof Level) { return (Level) o; } else if (o == null) { throw newEvalException(this, "Level '" + s + "' not found"); } else { throw newEvalException(this, "Levels('" + s + "') found " + o); } } }); // // LOGICAL FUNCTIONS define(new FunkResolver("IsEmpty", "IsEmpty(<Value Expression>)", "Determines if an expression evaluates to the empty cell value.", new String[] {"fbS", "fbn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Object o = getScalarArg(evaluator, args, 0); if (o == Util.nullValue) { return Boolean.TRUE; } else { return Boolean.FALSE; } } })); define(new FunDefBase("IsEmpty", "IsEmpty(<Value Expression>)", "Determines if an expression evaluates to the empty cell value.", "fbn")); // // MEMBER FUNCTIONS define(new FunkResolver("Ancestor", "Ancestor(<Member>, {<Level>|<Numeric Expression>})", "Returns the ancestor of a member at a specified level.", new String[] {"fmml", "fmmn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, false); Object arg2 = getArg(evaluator, args, 1); Level level = null; int distance; if (arg2 instanceof Level) { level = (Level) arg2; distance = member.getLevel().getDepth() - level.getDepth(); } else { distance = ((Number)arg2).intValue(); } return ancestor(evaluator, member, distance, level); } })); define(new FunDefBase("Cousin", "Cousin(<member>, <ancestor member>)", "Returns the member with the same relative position under <ancestor member> as the member specified.", "fmmm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); Member ancestorMember = getMemberArg(evaluator, args, 1, true); Member cousin = cousin(evaluator.getSchemaReader(), member, ancestorMember); return cousin; } }); define(new FunDefBase("CurrentMember", "<Dimension>.CurrentMember", "Returns the current member along a dimension during an iteration.", "pmd") { public Object evaluate(Evaluator evaluator, Exp[] args) { Dimension dimension = getDimensionArg(evaluator, args, 0, true); return evaluator.getContext(dimension); } }); define(new FunDefBase("DataMember", "<Member>.DataMember", "Returns the system-generated data member that is associated with a nonleaf member of a dimension.", "pmm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); return member.getDataMember(); } }); define(new FunDefBase("DefaultMember", "<Dimension>.DefaultMember", "Returns the default member of a dimension.", "pmd") { public Object evaluate(Evaluator evaluator, Exp[] args) { Dimension dimension = getDimensionArg(evaluator, args, 0, true); return evaluator.getSchemaReader().getHierarchyDefaultMember( dimension.getHierarchy()); } }); define(new FunDefBase("FirstChild", "<Member>.FirstChild", "Returns the first child of a member.", "pmm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); Member[] children = evaluator.getSchemaReader().getMemberChildren(member); if (children.length == 0) { return member.getHierarchy().getNullMember(); } else { return children[0]; } } }); define(new FunDefBase("FirstSibling", "<Member>.FirstSibling", "Returns the first child of the parent of a member.", "pmm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); Member parent = member.getParentMember(); Member[] children; if (parent == null) { if (member.isNull()) { return member; } children = evaluator.getSchemaReader().getHierarchyRootMembers(member.getHierarchy()); } else { children = evaluator.getSchemaReader().getMemberChildren(parent); } return children[0]; } }); if (false) define(new FunDefBase("Item", "<Tuple>.Item(<Numeric Expression>)", "Returns a member from a tuple.", "mm*")); define(new FunkResolver( "Lag", "<Member>.Lag(<Numeric Expression>)", "Returns a member further along the specified member's dimension.", new String[]{"mmmn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); int n = getIntArg(evaluator, args, 1); return evaluator.getSchemaReader().getLeadMember(member, -n); } })); define(new FunDefBase("LastChild", "<Member>.LastChild", "Returns the last child of a member.", "pmm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); Member[] children = evaluator.getSchemaReader().getMemberChildren(member); if (children.length == 0) { return member.getHierarchy().getNullMember(); } else { return children[children.length - 1]; } } }); define(new FunDefBase("LastSibling", "<Member>.LastSibling", "Returns the last child of the parent of a member.", "pmm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); Member parent = member.getParentMember(); Member[] children; final SchemaReader schemaReader = evaluator.getSchemaReader(); if (parent == null) { if (member.isNull()) { return member; } children = schemaReader.getHierarchyRootMembers( member.getHierarchy()); } else { children = schemaReader.getMemberChildren(parent); } return children[children.length - 1]; } }); define(new FunkResolver( "Lead", "<Member>.Lead(<Numeric Expression>)", "Returns a member further along the specified member's dimension.", new String[]{"mmmn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); int n = getIntArg(evaluator, args, 1); return evaluator.getSchemaReader().getLeadMember(member, n); } })); define(new FunDefBase("Members", "Members(<String Expression>)", "Returns the member whose name is specified by a string expression.", "fmS")); define(new FunDefBase( "NextMember", "<Member>.NextMember", "Returns the next member in the level that contains a specified member.", "pmm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); return evaluator.getSchemaReader().getLeadMember(member, +1); } }); define(new FunkResolver("OpeningPeriod", "OpeningPeriod([<Level>[, <Member>]])", "Returns the first descendant of a member at a level.", new String[] {"fm", "fml", "fmlm"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { return openingClosingPeriod(evaluator, args, true); } })); define(new FunkResolver("ClosingPeriod", "ClosingPeriod([<Level>[, <Member>]])", "Returns the last descendant of a member at a level.", new String[] {"fm", "fml", "fmlm", "fmm"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { return openingClosingPeriod(evaluator, args, false); } })); define(new FunkResolver( "ParallelPeriod", "ParallelPeriod([<Level>[, <Numeric Expression>[, <Member>]]])", "Returns a member from a prior period in the same relative position as a specified member.", new String[] {"fm", "fml", "fmln", "fmlnm"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { // Member defaults to [Time].currentmember Member member; if (args.length == 3) { member = getMemberArg(evaluator, args, 2, true); } else { member = evaluator.getContext(evaluator.getCube().getTimeDimension()); } // Numeric Expression defaults to 1. int lagValue; if (args.length >= 2) { lagValue = getIntArg(evaluator, args, 1); } else { lagValue = 1; } Level ancestorLevel; if (args.length >= 1) { ancestorLevel = getLevelArg(evaluator, args, 0, true); } else { Member parent = member.getParentMember(); if (parent == null || parent.getType() != Category.Member) { // // The parent isn't a member (it's probably a hierarchy), // so there is no parallelperiod. // return member.getHierarchy().getNullMember(); } ancestorLevel = parent.getLevel(); } // // Now do some error checking. // The ancestorLevel and the member must be from the // same hierarchy. // if (member.getHierarchy() != ancestorLevel.getHierarchy()) { MondrianResource.instance().newFunctionMbrAndLevelHierarchyMismatch( "ParallelPeriod", ancestorLevel.getHierarchy().getUniqueName(), member.getHierarchy().getUniqueName() ); } int distance = member.getLevel().getDepth() - ancestorLevel.getDepth(); Member ancestor = ancestor(evaluator, member, distance, ancestorLevel); Member inLaw = evaluator.getSchemaReader().getLeadMember(ancestor, -lagValue); return cousin(evaluator.getSchemaReader(), member, inLaw); } })); define(new FunDefBase("Parent", "<Member>.Parent", "Returns the parent of a member.", "pmm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); Member parent = evaluator.getSchemaReader().getMemberParent(member); if (parent == null) { parent = member.getHierarchy().getNullMember(); } return parent; } }); define(new FunDefBase("PrevMember", "<Member>.PrevMember", "Returns the previous member in the level that contains a specified member.", "pmm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); return evaluator.getSchemaReader().getLeadMember(member, -1); } }); define(new FunDefBase("StrToMember", "StrToMember(<String Expression>)", "Returns a member from a unique name String in MDX format.", "fmS") { public Object evaluate(Evaluator evaluator, Exp[] args) { String mname = getStringArg(evaluator, args, 0, null); Cube cube = evaluator.getCube(); SchemaReader schemaReader = evaluator.getSchemaReader(); String[] uniqueNameParts = Util.explode(mname); Member member = (Member) schemaReader.lookupCompound(cube, uniqueNameParts, true, Category.Member); // Member member = schemaReader.getMemberByUniqueName(uniqueNameParts, false); return member; } }); if (false) define(new FunDefBase("ValidMeasure", "ValidMeasure(<Tuple>)", "Returns a valid measure in a virtual cube by forcing inapplicable dimensions to their top level.", "fm*")); // // NUMERIC FUNCTIONS define(new FunkResolver("Aggregate", "Aggregate(<Set>[, <Numeric Expression>])", "Returns a calculated value using the appropriate aggregate function, based on the context of the query.", new String[] {"fnx", "fnxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { // compute members only if the context has changed List members = (List) evaluator.getCachedResult(args[0]); if (members == null) { members = (List) getArg(evaluator, args, 0); evaluator.setCachedResult(args[0], members); } ExpBase exp = (ExpBase) getArgNoEval(args, 1, valueFunCall); Aggregator aggregator = (Aggregator) evaluator.getProperty(Property.PROPERTY_AGGREGATION_TYPE); if (aggregator == null) { throw newEvalException(null, "Could not find an aggregator in the current evaluation context"); } Aggregator rollup = aggregator.getRollup(); if (rollup == null) { throw newEvalException(null, "Don't know how to rollup aggregator '" + aggregator + "'"); } return rollup.aggregate(evaluator.push(), members, exp); } })); define(new FunkResolver("$AggregateChildren", "$AggregateChildren(<Hierarchy>)", "Equivalent to 'Aggregate(<Hierarchy>.CurrentMember.Children); for internal use.", new String[] {"Inh"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Hierarchy hierarchy = getHierarchyArg(evaluator, args, 0, true); Member member = evaluator.getParent().getContext(hierarchy.getDimension()); List members = (List) member.getPropertyValue(Property.PROPERTY_CONTRIBUTING_CHILDREN); Aggregator aggregator = (Aggregator) evaluator.getProperty(Property.PROPERTY_AGGREGATION_TYPE); if (aggregator == null) { throw newEvalException(null, "Could not find an aggregator in the current evaluation context"); } Aggregator rollup = aggregator.getRollup(); if (rollup == null) { throw newEvalException(null, "Don't know how to rollup aggregator '" + aggregator + "'"); } return rollup.aggregate(evaluator.push(), members, valueFunCall); } })); define(new FunkResolver( "Avg", "Avg(<Set>[, <Numeric Expression>])", "Returns the average value of a numeric expression evaluated over a set.", new String[]{"fnx", "fnxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { List members = (List) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArgNoEval(args, 1, valueFunCall); return avg(evaluator.push(), members, exp); } })); define(new FunkResolver( "Correlation", "Correlation(<Set>, <Numeric Expression>[, <Numeric Expression>])", "Returns the correlation of two series evaluated over a set.", new String[]{"fnxn","fnxnn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { List members = (List) getArg(evaluator, args, 0); ExpBase exp1 = (ExpBase) getArgNoEval(args, 1); ExpBase exp2 = (ExpBase) getArgNoEval(args, 2, valueFunCall); return correlation(evaluator.push(), members, exp1, exp2); } })); final String[] resWords = {"INCLUDEEMPTY", "EXCLUDEEMPTY"}; define(new FunkResolver( "Count", "Count(<Set>[, EXCLUDEEMPTY | INCLUDEEMPTY])", "Returns the number of tuples in a set, empty cells included unless the optional EXCLUDEEMPTY flag is used.", new String[]{"fnx", "fnxy"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { List members = (List) getArg(evaluator, args, 0); String empties = getLiteralArg(args, 1, "INCLUDEEMPTY", resWords, null); final boolean includeEmpty = empties.equals("INCLUDEEMPTY"); return count(evaluator, members, includeEmpty); } }) { public String[] getReservedWords() { return resWords; } }); define(new FunDefBase( "Count", "<Set>.Count", "Returns the number of tuples in a set including empty cells.", "pnx") { public Object evaluate(Evaluator evaluator, Exp[] args) { List members = (List) getArg(evaluator, args, 0); return count(evaluator, members, true); } }); define(new FunkResolver( "Covariance", "Covariance(<Set>, <Numeric Expression>[, <Numeric Expression>])", "Returns the covariance of two series evaluated over a set (biased).", new String[]{"fnxn","fnxnn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { List members = (List) getArg(evaluator, args, 0); ExpBase exp1 = (ExpBase) getArgNoEval(args, 1); ExpBase exp2 = (ExpBase) getArgNoEval(args, 2); return covariance(evaluator.push(), members, exp1, exp2, true); } })); define(new FunkResolver( "CovarianceN", "CovarianceN(<Set>, <Numeric Expression>[, <Numeric Expression>])", "Returns the covariance of two series evaluated over a set (unbiased).", new String[]{"fnxn","fnxnn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { List members = (List) getArg(evaluator, args, 0); ExpBase exp1 = (ExpBase) getArgNoEval(args, 1); ExpBase exp2 = (ExpBase) getArgNoEval(args, 2, valueFunCall); return covariance(evaluator.push(), members, exp1, exp2, false); } })); define(new FunDefBase("IIf", "IIf(<Logical Expression>, <Numeric Expression1>, <Numeric Expression2>)", "Returns one of two numeric values determined by a logical test.", "fnbnn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Boolean b = getBooleanArg(evaluator, args, 0); if (b == null) { // The result of the logical expression is not known, // probably because some necessary value is not in the // cache yet. Evaluate both expressions so that the cache // gets populated as soon as possible. getDoubleArg(evaluator, args, 1, null); getDoubleArg(evaluator, args, 2, null); return new Double(Double.NaN); } if (b.booleanValue()) return getDoubleArg(evaluator, args, 1, null); else return getDoubleArg(evaluator, args, 2, null); } }); define(new FunkResolver( "LinRegIntercept", "LinRegIntercept(<Set>, <Numeric Expression>[, <Numeric Expression>])", "Calculates the linear regression of a set and returns the value of b in the regression line y = ax + b.", new String[]{"fnxn","fnxnn"}, new LinReg.Intercept())); define(new FunkResolver( "LinRegPoint", "LinRegPoint(<Numeric Expression>, <Set>, <Numeric Expression>[, <Numeric Expression>])", "Calculates the linear regression of a set and returns the value of y in the regression line y = ax + b.", new String[]{"fnnxn","fnnxnn"}, new LinReg.Point())); define(new FunkResolver( "LinRegR2", "LinRegR2(<Set>, <Numeric Expression>[, <Numeric Expression>])", "Calculates the linear regression of a set and returns R2 (the coefficient of determination).", new String[]{"fnxn","fnxnn"}, new LinReg.R2())); define(new FunkResolver( "LinRegSlope", "LinRegSlope(<Set>, <Numeric Expression>[, <Numeric Expression>])", "Calculates the linear regression of a set and returns the value of a in the regression line y = ax + b.", new String[]{"fnxn","fnxnn"}, new LinReg.Slope())); define(new FunkResolver( "LinRegVariance", "LinRegVariance(<Set>, <Numeric Expression>[, <Numeric Expression>])", "Calculates the linear regression of a set and returns the variance associated with the regression line y = ax + b.", new String[]{"fnxn","fnxnn"}, new LinReg.Variance())); define(new FunkResolver( "Max", "Max(<Set>[, <Numeric Expression>])", "Returns the maximum value of a numeric expression evaluated over a set.", new String[]{"fnx", "fnxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { List members = (List) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArgNoEval(args, 1, valueFunCall); return max(evaluator.push(), members, exp); } })); define(new FunkResolver( "Median", "Median(<Set>[, <Numeric Expression>])", "Returns the median value of a numeric expression evaluated over a set.", new String[]{"fnx", "fnxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { List members = (List) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArgNoEval(args, 1, valueFunCall); //todo: ignore nulls, do we need to ignore the List? return median(evaluator.push(), members, exp); } })); define(new FunkResolver( "Min", "Min(<Set>[, <Numeric Expression>])", "Returns the minimum value of a numeric expression evaluated over a set.", new String[]{"fnx", "fnxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { List members = (List) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArgNoEval(args, 1, valueFunCall); return min(evaluator.push(), members, exp); } })); define(new FunDefBase("Ordinal", "<Level>.Ordinal", "Returns the zero-based ordinal value associated with a level.", "pnl") { public Object evaluate(Evaluator evaluator, Exp[] args) { Level level = getLevelArg(evaluator, args, 0, false); return new Double(level.getDepth()); } }); define(new FunkResolver( "Rank", "Rank(<Tuple>, <Set> [, <Calc Expression>])", "Returns the one-based rank of a tuple in a set.", new String[]{"fntx","fntxn", "fnmx", "fnmxn"}, new RankFunDef())); define(new FunkResolver( "Stddev", "Stddev(<Set>[, <Numeric Expression>])", "Alias for Stdev.", new String[]{"fnx", "fnxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { List members = (List) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArgNoEval(args, 1, valueFunCall); return stdev(evaluator.push(), members, exp, false); } })); define(new FunkResolver( "Stdev", "Stdev(<Set>[, <Numeric Expression>])", "Returns the standard deviation of a numeric expression evaluated over a set (unbiased).", new String[]{"fnx", "fnxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { List members = (List) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArgNoEval(args, 1, valueFunCall); return stdev(evaluator.push(), members, exp, false); } })); define(new FunkResolver( "StddevP", "StddevP(<Set>[, <Numeric Expression>])", "Alias for StdevP.", new String[]{"fnx", "fnxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { List members = (List) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArgNoEval(args, 1, valueFunCall); return stdev(evaluator.push(), members, exp, true); } })); define(new FunkResolver( "StdevP", "StdevP(<Set>[, <Numeric Expression>])", "Returns the standard deviation of a numeric expression evaluated over a set (biased).", new String[]{"fnx", "fnxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { List members = (List) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArgNoEval(args, 1, valueFunCall); return stdev(evaluator.push(), members, exp, true); } })); define(new FunkResolver( "Sum", "Sum(<Set>[, <Numeric Expression>])", "Returns the sum of a numeric expression evaluated over a set.", new String[]{"fnx", "fnxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { List members = (List) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArgNoEval(args, 1, valueFunCall); return sum(evaluator.push(), members, exp); } })); define(new FunDefBase("Value", "<Measure>.Value", "Returns the value of a measure.", "pnm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); return member.evaluateScalar(evaluator); } }); define(new FunDefBase("_Value", "_Value(<Tuple>)", "Returns the value of the current measure within the context of a tuple.", "fnt") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member[] members = getTupleArg(evaluator, args, 0); Evaluator evaluator2 = evaluator.push(members); return evaluator2.evaluateCurrent(); } }); define(new FunDefBase("_Value", "_Value()", "Returns the value of the current measure.", "fn") { public Object evaluate(Evaluator evaluator, Exp[] args) { return evaluator.evaluateCurrent(); } }); // _Value is a pseudo-function which evaluates a tuple to a number. // It needs a custom resolver. if (false) define(new ResolverBase("_Value", null, null, Syntax.Parentheses) { public FunDef resolve(Exp[] args, int[] conversionCount) { if (args.length == 1 && args[0].getType() == Category.Tuple) { return new ValueFunDef(new int[] {Category.Tuple}); } for (int i = 0; i < args.length; i++) { Exp arg = args[i]; if (!canConvert(arg, Category.Member, conversionCount)) { return null; } } int[] argTypes = new int[args.length]; for (int i = 0; i < argTypes.length; i++) { argTypes[i] = Category.Member; } return new ValueFunDef(argTypes); } }); define(new FunkResolver( "Var", "Var(<Set>[, <Numeric Expression>])", "Returns the variance of a numeric expression evaluated over a set (unbiased).", new String[]{"fnx", "fnxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { List members = (List) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArgNoEval(args, 1, valueFunCall); return var(evaluator.push(), members, exp, false); } })); define(new FunkResolver( "Variance", "Variance(<Set>[, <Numeric Expression>])", "Alias for Var.", new String[]{"fnx", "fnxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { List members = (List) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArgNoEval(args, 1, valueFunCall); return var(evaluator.push(), members, exp, false); } })); define(new FunkResolver( "VarianceP", "VarianceP(<Set>[, <Numeric Expression>])", "Alias for VarP.", new String[]{"fnx", "fnxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { List members = (List) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArgNoEval(args, 1, valueFunCall); return var(evaluator.push(), members, exp, true); } })); define(new FunkResolver( "VarP", "VarP(<Set>[, <Numeric Expression>])", "Returns the variance of a numeric expression evaluated over a set (biased).", new String[]{"fnx", "fnxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { List members = (List) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArgNoEval(args, 1, valueFunCall); return var(evaluator.push(), members, exp, true); } })); // // SET FUNCTIONS if (false) define(new FunDefBase("AddCalculatedMembers", "AddCalculatedMembers(<Set>)", "Adds calculated members to a set.", "fx*")); define(new FunDefBase("Ascendants", "Ascendants(<Member>)", "Returns the set of the ascendants of a specified member.", "fxm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, false); if (member.isNull()) { return new ArrayList(); } Member[] members = member.getAncestorMembers(); final ArrayList result = new ArrayList(members.length + 1); result.add(member); addAll(result, members); return result; } }); define(new FunkResolver( "BottomCount", "BottomCount(<Set>, <Count>[, <Numeric Expression>])", "Returns a specified number of items from the bottom of a set, optionally ordering the set first.", new String[]{"fxxnn", "fxxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { List list = (List) getArg(evaluator, args, 0); int n = getIntArg(evaluator, args, 1); ExpBase exp = (ExpBase) getArgNoEval(args, 2, null); if (exp != null) { boolean desc = false, brk = true; sort(evaluator, list, exp, desc, brk); } if (n < list.size()) { list = list.subList(0, n); } return list; } })); define(new FunkResolver( "BottomPercent", "BottomPercent(<Set>, <Percentage>, <Numeric Expression>)", "Sorts a set and returns the bottom N elements whose cumulative total is at least a specified percentage.", new String[]{"fxxnn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { List members = (List) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArgNoEval(args, 2); Double n = getDoubleArg(evaluator, args, 1); return topOrBottom(evaluator.push(), members, exp, false, true, n.doubleValue()); } })); define(new FunkResolver( "BottomSum", "BottomSum(<Set>, <Value>, <Numeric Expression>)", "Sorts a set and returns the bottom N elements whose cumulative total is at least a specified value.", new String[]{"fxxnn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { List members = (List) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArgNoEval(args, 2); Double n = getDoubleArg(evaluator, args, 1); return topOrBottom(evaluator.push(), members, exp, false, false, n.doubleValue()); } })); define(new FunDefBase("Children", "<Member>.Children", "Returns the children of a member.", "pxm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); Member[] children = evaluator.getSchemaReader().getMemberChildren(member); return Arrays.asList(children); } }); define(new MultiResolver( "Crossjoin", "Crossjoin(<Set1>, <Set2>)", "Returns the cross product of two sets.", new String[]{"fxxx"}) { protected FunDef createFunDef(Exp[] args, FunDef dummyFunDef) { return new CrossJoinFunDef(dummyFunDef); } }); define(new MultiResolver( "NonEmptyCrossJoin", "NonEmptyCrossJoin(<Set1>, <Set2>)", "Returns the cross product of two sets, excluding empty tuples and tuples without associated fact table data.", new String[]{"fxxx"}) { protected FunDef createFunDef(Exp[] args, FunDef dummyFunDef) { return new NonEmptyCrossJoinFunDef(dummyFunDef); } }); define(new MultiResolver( "*", "<Set1> * <Set2>", "Returns the cross product of two sets.", new String[]{"ixxx", "ixmx", "ixxm", "ixmm"}) { protected FunDef createFunDef(Exp[] args, FunDef dummyFunDef) { return new CrossJoinFunDef(dummyFunDef); } }); define(new DescendantsFunDef.Resolver()); define(new FunDefBase("Distinct", "Distinct(<Set>)", "Eliminates duplicate tuples from a set.", "fxx"){ // implement FunDef public Object evaluate(Evaluator evaluator, Exp[] args) { List list = (List) getArg(evaluator, args, 0); HashSet hashSet = new HashSet(list.size()); Iterator iter = list.iterator(); List result = new ArrayList(); while (iter.hasNext()) { Object element = iter.next(); MemberHelper lookupObj = new MemberHelper(element); if (hashSet.add(lookupObj)) { result.add(element); } } return result; } }); define(new FunkResolver("DrilldownLevel", "DrilldownLevel(<Set>[, <Level>]) or DrilldownLevel(<Set>, , <Index>)", "Drills down the members of a set, at a specified level, to one level below. Alternatively, drills down on a specified dimension in the set.", new String[]{"fxx", "fxxl"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { //todo add fssl functionality List set0 = (List) getArg(evaluator, args, 0); if (set0.size() == 0) { return set0; } int searchDepth = -1; Level level = getLevelArg(evaluator, args, 1, false); if (level != null) { searchDepth = level.getDepth(); } if (searchDepth == -1) { searchDepth = ((Member)set0.get(0)).getLevel().getDepth(); for (int i = 1, m = set0.size(); i < m; i++) { Member member = (Member) set0.get(i); int memberDepth = member.getLevel().getDepth(); if (memberDepth > searchDepth) { searchDepth = memberDepth; } } } List drilledSet = new ArrayList(); for (int i = 0, m = set0.size(); i < m; i++) { Member member = (Member) set0.get(i); drilledSet.add(member); Member nextMember = i == m - 1 ? null : (Member) set0.get(i + 1); // // This member is drilled if it's at the correct depth // and if it isn't drilled yet. A member is considered // to be "drilled" if it is immediately followed by // at least one descendant // if (member.getLevel().getDepth() == searchDepth && !isAncestorOf(member, nextMember, true)) { Member[] childMembers = evaluator.getSchemaReader().getMemberChildren(member); for (int j = 0; j < childMembers.length; j++) { drilledSet.add(childMembers[j]); } } } return drilledSet; } } )); if (false) define(new FunDefBase("DrilldownLevelBottom", "DrilldownLevelBottom(<Set>, <Count>[, [<Level>][, <Numeric Expression>]])", "Drills down the bottom N members of a set, at a specified level, to one level below.", "fx*")); if (false) define(new FunDefBase("DrilldownLevelTop", "DrilldownLevelTop(<Set>, <Count>[, [<Level>][, <Numeric Expression>]])", "Drills down the top N members of a set, at a specified level, to one level below.", "fx*")); define(new DrilldownMemberFunDef.Resolver()); if (false) define(new FunDefBase("DrilldownMemberBottom", "DrilldownMemberBottom(<Set1>, <Set2>, <Count>[, [<Numeric Expression>][, RECURSIVE]])", "Like DrilldownMember except that it includes only the bottom N children.", "fx*")); if (false) define(new FunDefBase("DrilldownMemberTop", "DrilldownMemberTop(<Set1>, <Set2>, <Count>[, [<Numeric Expression>][, RECURSIVE]])", "Like DrilldownMember except that it includes only the top N children.", "fx*")); if (false) define(new FunDefBase("DrillupLevel", "DrillupLevel(<Set>[, <Level>])", "Drills up the members of a set that are below a specified level.", "fx*")); if (false) define(new FunDefBase("DrillupMember", "DrillupMember(<Set1>, <Set2>)", "Drills up the members in a set that are present in a second specified set.", "fx*")); define(new FunkResolver( "Except", "Except(<Set1>, <Set2>[, ALL])", "Finds the difference between two sets, optionally retaining duplicates.", new String[]{"fxxx", "fxxxs"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { // todo: implement ALL HashSet set = new HashSet(); set.addAll((List) getArg(evaluator, args, 1)); List set1 = (List) getArg(evaluator, args, 0); List result = new ArrayList(); for (int i = 0, count = set1.size(); i < count; i++) { Object o = set1.get(i); if (!set.contains(o)) { result.add(o); } } return result; } })); if (false) define(new FunDefBase("Extract", "Extract(<Set>, <Dimension>[, <Dimension>...])", "Returns a set of tuples from extracted dimension elements. The opposite of Crossjoin.", "fx*")); define(new FunDefBase("Filter", "Filter(<Set>, <Search Condition>)", "Returns the set resulting from filtering a set based on a search condition.", "fxxb") { public Object evaluate(Evaluator evaluator, Exp[] args) { List members = (List) getArg(evaluator, args, 0); Exp exp = args[1]; List result = new ArrayList(); Evaluator evaluator2 = evaluator.push(); for (int i = 0, count = members.size(); i < count; i++) { Object o = members.get(i); if (o instanceof Member) { evaluator2.setContext((Member) o); } else if (o instanceof Member[]) { evaluator2.setContext((Member[]) o); } else { throw Util.newInternal( "unexpected type in set: " + o.getClass()); } Boolean b = (Boolean) exp.evaluateScalar(evaluator2); if (b != null && b.booleanValue()) { result.add(o); } } return result; } public boolean dependsOn(Exp[] args, Dimension dimension) { return dependsOnIntersection(args, dimension); } }); define(new MultiResolver( "Generate", "Generate(<Set1>, <Set2>[, ALL])", "Applies a set to each member of another set and joins the resulting sets by union.", new String[] {"fxxx", "fxxxy"}) { protected FunDef createFunDef(Exp[] args, FunDef dummyFunDef) { final boolean all = getLiteralArg(args, 2, "", new String[] {"ALL"}, dummyFunDef).equalsIgnoreCase("ALL"); return new FunDefBase(dummyFunDef) { public Object evaluate(Evaluator evaluator, Exp[] args) { List members = (List) getArg(evaluator, args, 0); List result = new ArrayList(); HashSet emitted = all ? null : new HashSet(); for (int i = 0; i < members.size(); i++) { Object o = members.get(i); if (o instanceof Member) { evaluator.setContext((Member) o); } else { evaluator.setContext((Member[]) o); } final List result2 = (List) args[1].evaluate(evaluator); if (all) { result.addAll(result2); } else { for (int j = 0; j < result2.size(); j++) { Object row = result2.get(j); if (emitted.add(row)) { result.add(row); } } } } return result; } }; } }); define(new FunkResolver( "Head", "Head(<Set>[, < Numeric Expression >])", "Returns the first specified number of elements in a set.", new String[] {"fxx", "fxxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { List members = (List) getArg(evaluator, args, 0); final int count = args.length < 2 ? 1 : getIntArg(evaluator, args, 1); if (count >= members.size()) { return members; } if (count <= 0) { return new ArrayList(); } return members.subList(0, count); } })); final String[] prePost = {"PRE","POST"}; define(new MultiResolver( "Hierarchize", "Hierarchize(<Set>[, POST])", "Orders the members of a set in a hierarchy.", new String[] {"fxx", "fxxy"}) { protected FunDef createFunDef(Exp[] args, FunDef dummyFunDef) { String order = getLiteralArg(args, 1, "PRE", prePost, dummyFunDef); final boolean post = order.equals("POST"); return new FunDefBase(dummyFunDef) { public Object evaluate(Evaluator evaluator, Exp[] args) { List members = (List) getArg(evaluator, args, 0); hierarchize(members, post); return members; } }; } public String[] getReservedWords() { return prePost; } }); define(new MultiResolver( "Intersect", "Intersect(<Set1>, <Set2>[, ALL])", "Returns the intersection of two input sets, optionally retaining duplicates.", new String[] {"fxxxy", "fxxx"}) { protected FunDef createFunDef(Exp[] args, FunDef dummyFunDef) { final boolean all = getLiteralArg(args, 2, "", new String[] {"ALL"}, dummyFunDef).equalsIgnoreCase("ALL"); return new IntersectFunDef(dummyFunDef, all); } }); if (false) define(new FunDefBase("LastPeriods", "LastPeriods(<Index>[, <Member>])", "Returns a set of members prior to and including a specified member.", "fx*")); define(new FunDefBase("Members", "<Dimension>.Members", "Returns the set of all members in a dimension.", "pxd") { public Object evaluate(Evaluator evaluator, Exp[] args) { Dimension dimension = (Dimension) getArg(evaluator, args, 0); Hierarchy hierarchy = dimension.getHierarchy(); return addMembers(evaluator.getSchemaReader(), new ArrayList(), hierarchy); } }); define(new FunDefBase("Members", "<Hierarchy>.Members", "Returns the set of all members in a hierarchy.", "pxh") { public Object evaluate(Evaluator evaluator, Exp[] args) { Hierarchy hierarchy = (Hierarchy) getArg(evaluator, args, 0); return addMembers(evaluator.getSchemaReader(), new ArrayList(), hierarchy); } }); define(new FunDefBase("Members", "<Level>.Members", "Returns the set of all members in a level.", "pxl") { public Object evaluate(Evaluator evaluator, Exp[] args) { Level level = (Level) getArg(evaluator, args, 0); return Arrays.asList(evaluator.getSchemaReader().getLevelMembers(level)); } }); define(new FunkResolver( "Mtd", "Mtd([<Member>])", "A shortcut function for the PeriodsToDate function that specifies the level to be Month.", new String[]{"fx", "fxm"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { return periodsToDate( evaluator, evaluator.getCube().getMonthLevel(), getMemberArg(evaluator, args, 0, false)); } })); define(new OrderFunDef.OrderResolver()); define(new FunkResolver( "PeriodsToDate", "PeriodsToDate([<Level>[, <Member>]])", "Returns a set of periods (members) from a specified level starting with the first period and ending with a specified member.", new String[]{"fx", "fxl", "fxlm"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Level level = getLevelArg(evaluator, args, 0, false); Member member = getMemberArg(evaluator, args, 1, false); return periodsToDate(evaluator, level, member); } })); define(new FunkResolver( "Qtd", "Qtd([<Member>])", "A shortcut function for the PeriodsToDate function that specifies the level to be Quarter.", new String[]{"fx", "fxm"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { return periodsToDate( evaluator, evaluator.getCube().getQuarterLevel(), getMemberArg(evaluator, args, 0, false)); } })); if (false) define(new FunDefBase("StripCalculatedMembers", "StripCalculatedMembers(<Set>)", "Removes calculated members from a set.", "fx*")); // "Siblings" is not a standard MDX function. define(new FunDefBase("Siblings", "<Member>.Siblings", "Returns the set of siblings of the specified member.", "pxm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); Member parent = member.getParentMember(); final SchemaReader schemaReader = evaluator.getSchemaReader(); Member[] siblings; if (parent == null) { siblings = schemaReader.getHierarchyRootMembers(member.getHierarchy()); } else { siblings = schemaReader.getMemberChildren(parent); } return Arrays.asList(siblings); } }); define(new FunDefBase("StrToSet", "StrToSet(<String Expression>)", "Constructs a set from a string expression.", "fxS") { public Hierarchy getHierarchy(Exp[] args) { // StrToSet(s, <Hie1>, ... <HieN>) is of type [Hie1] x ... x [HieN]; // so, for example, So StrToTuple("[Time].[1997]", [Time]) is of type // [Time]. But if n > 1, we cannot represent the compound type, and we // return null. return (args.length == 2) ? (Hierarchy) args[1] : null; } }); define(new FunkResolver( "Subset", "Subset(<Set>, <Start>[, <Count>])", "Returns a subset of elements from a set.", new String[] {"fxxn", "fxxnn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { List members = (List) getArg(evaluator, args, 0); final int start = getIntArg(evaluator, args, 1); final int end; if (args.length < 3) { end = members.size(); } else { final int count = getIntArg(evaluator, args, 2); end = start + count; } if (start >= end || start < 0) { return new ArrayList(); } if (start == 0 && end >= members.size()) { return members; } return members.subList(start, end); } })); define(new FunkResolver( "Tail", "Tail(<Set>[, <Count>])", "Returns a subset from the end of a set.", new String[] {"fxx", "fxxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { List members = (List) getArg(evaluator, args, 0); final int count = args.length < 2 ? 1 : getIntArg(evaluator, args, 1); if (count >= members.size()) { return members; } if (count <= 0) { return new ArrayList(); } return members.subList(members.size() - count, members.size()); } })); define(new FunkResolver( "ToggleDrillState", "ToggleDrillState(<Set1>, <Set2>[, RECURSIVE])", "Toggles the drill state of members. This function is a combination of DrillupMember and DrilldownMember.", new String[]{"fxxx", "fxxxy"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { List v0 = (List) getArg(evaluator, args, 0), v1 = (List) getArg(evaluator, args, 1); if (args.length > 2) { throw MondrianResource.instance().newToggleDrillStateRecursiveNotSupported(); } if (v1.isEmpty()) { return v0; } if (v0.isEmpty()) { return v0; } HashSet set = new HashSet(); set.addAll(v1); HashSet set1 = set; List result = new ArrayList(); int i = 0, n = v0.size(); while (i < n) { Object o = v0.get(i++); result.add(o); Member m = null; int k = -1; if (o instanceof Member) { if (!set1.contains(o)) { continue; } m = (Member) o; k = -1; } else { Util.assertTrue(o instanceof Member[]); Member[] members = (Member[]) o; for (int j = 0; j < members.length; j++) { Member member = members[j]; if (set1.contains(member)) { k = j; m = member; break; } } if (k == -1) { continue; } } boolean isDrilledDown = false; if (i < n) { Object next = v0.get(i); Member nextMember = (k < 0) ? (Member) next : ((Member[]) next)[k]; boolean strict = true; if (isAncestorOf(m, nextMember, strict)) { isDrilledDown = true; } } if (isDrilledDown) { // skip descendants of this member do { Object next = v0.get(i); Member nextMember = (k < 0) ? (Member) next : ((Member[]) next)[k]; boolean strict = true; if (isAncestorOf(m, nextMember, strict)) { i++; } else { break; } } while (i < n); } else { Member[] children = evaluator.getSchemaReader().getMemberChildren(m); for (int j = 0; j < children.length; j++) { if (k < 0) { result.add(children[j]); } else { Member[] members = (Member[]) ((Member[]) o).clone(); members[k] = children[j]; result.add(members); } } } } return result; } }) { public String[] getReservedWords() { return new String[] {"RECURSIVE"}; } }); define(new FunkResolver( "TopCount", "TopCount(<Set>, <Count>[, <Numeric Expression>])", "Returns a specified number of items from the top of a set, optionally ordering the set first.", new String[]{"fxxnn", "fxxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { List list = (List) getArg(evaluator, args, 0); int n = getIntArg(evaluator, args, 1); ExpBase exp = (ExpBase) getArgNoEval(args, 2, null); if (exp != null) { boolean desc = true, brk = true; sort(evaluator, list, exp, desc, brk); } if (n < list.size()) { list = list.subList(0, n); } return list; } })); define(new FunkResolver( "TopPercent", "TopPercent(<Set>, <Percentage>, <Numeric Expression>)", "Sorts a set and returns the top N elements whose cumulative total is at least a specified percentage.", new String[]{"fxxnn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { List members = (List) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArgNoEval(args, 2); Double n = getDoubleArg(evaluator, args, 1); return topOrBottom(evaluator.push(), members, exp, true, true, n.doubleValue()); } })); define(new FunkResolver( "TopSum", "TopSum(<Set>, <Value>, <Numeric Expression>)", "Sorts a set and returns the top N elements whose cumulative total is at least a specified value.", new String[]{"fxxnn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { List members = (List) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArgNoEval(args, 2); Double n = getDoubleArg(evaluator, args, 1); return topOrBottom(evaluator.push(), members, exp, true, false, n.doubleValue()); } })); final String[] allDistinct = new String[] {"ALL", "DISTINCT"}; define(new MultiResolver( "Union", "Union(<Set1>, <Set2>[, ALL])", "Returns the union of two sets, optionally retaining duplicates.", new String[] {"fxxx", "fxxxy"}) { public String[] getReservedWords() { return allDistinct; } protected FunDef createFunDef(Exp[] args, FunDef dummyFunDef) { String allString = getLiteralArg(args, 2, "DISTINCT", allDistinct, dummyFunDef); final boolean all = allString.equalsIgnoreCase("ALL"); checkCompatible(args[0], args[1], dummyFunDef); return new FunDefBase(dummyFunDef) { public Object evaluate(Evaluator evaluator, Exp[] args) { List left = (List) getArg(evaluator, args, 0), right = (List) getArg(evaluator, args, 1); if (all) { if (left == null || left.isEmpty()) { return right; } left.addAll(right); return left; } else { HashSet added = new HashSet(); List result = new ArrayList(); addUnique(result, left, added); addUnique(result, right, added); return result; } } }; } }); if (false) define(new FunDefBase("VisualTotals", "VisualTotals(<Set>, <Pattern>)", "Dynamically totals child members specified in a set using a pattern for the total label in the result set.", "fx*")); define(new FunkResolver( "Wtd", "Wtd([<Member>])", "A shortcut function for the PeriodsToDate function that specifies the level to be Week.", new String[]{"fx", "fxm"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { return periodsToDate( evaluator, evaluator.getCube().getWeekLevel(), getMemberArg(evaluator, args, 0, false)); } })); define(new FunkResolver( "Ytd", "Ytd([<Member>])", "A shortcut function for the PeriodsToDate function that specifies the level to be Year.", new String[]{"fx", "fxm"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { return periodsToDate( evaluator, evaluator.getCube().getYearLevel(), getMemberArg(evaluator, args, 0, false)); } })); define(new FunDefBase(":", "<Member>:<Member>", "Infix colon operator returns the set of members between a given pair of members.", "ixmm") { // implement FunDef public Object evaluate(Evaluator evaluator, Exp[] args) { final Member member0 = getMemberArg(evaluator, args, 0, true); final Member member1 = getMemberArg(evaluator, args, 1, true); if (member0.isNull() || member1.isNull()) { return Collections.EMPTY_LIST; } if (member0.getLevel() != member1.getLevel()) { throw newEvalException(this, "Members must belong to the same level"); } return FunUtil.memberRange(evaluator, member0, member1); } }); // special resolver for the "{...}" operator define(new ResolverBase( "{}", "{<Member> [, <Member>]...}", "Brace operator constructs a set.", Syntax.Braces) { public FunDef resolve(Exp[] args, int[] conversionCount) { int[] parameterTypes = new int[args.length]; for (int i = 0; i < args.length; i++) { if (canConvert( args[i], Category.Member, conversionCount)) { parameterTypes[i] = Category.Member; continue; } if (canConvert( args[i], Category.Set, conversionCount)) { parameterTypes[i] = Category.Set; continue; } if (canConvert( args[i], Category.Tuple, conversionCount)) { parameterTypes[i] = Category.Tuple; continue; } return null; } return new SetFunDef(this, parameterTypes); } }); // // STRING FUNCTIONS define(new MultiResolver("Format", "Format(<Numeric Expression>, <String Expression>)", "Formats a number to string.", new String[] { "fSmS", "fSnS" }) { protected FunDef createFunDef(final Exp[] args, final FunDef dummyFunDef) { final Locale locale = Locale.getDefault(); // todo: use connection's locale if (args[1] instanceof Literal) { // Constant string expression: optimize by compiling // format string. String formatString = (String) ((Literal) args[1]).getValue(); final Format format = new Format(formatString, locale); return new FunDefBase(dummyFunDef) { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o = getDoubleArg(evaluator, args, 0); return format.format(o); } }; } else { // Variable string expression return new FunDefBase(dummyFunDef) { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o = getDoubleArg(evaluator, args, 0); String formatString = getStringArg(evaluator, args, 1, null); final Format format = new Format(formatString, locale); return format.format(o); } }; } } }); define(new FunDefBase("IIf", "IIf(<Logical Expression>, <String Expression1>, <String Expression2>)", "Returns one of two string values determined by a logical test.", "fSbSS") { public Object evaluate(Evaluator evaluator, Exp[] args) { Boolean b = getBooleanArg(evaluator, args, 0); if (b == null) { // The result of the logical expression is not known, // probably because some necessary value is not in the // cache yet. Evaluate both expressions so that the cache // gets populated as soon as possible. getStringArg(evaluator, args, 1, null); getStringArg(evaluator, args, 2, null); return null; } if (b.booleanValue()) { return getStringArg(evaluator, args, 1, null); } else { return getStringArg(evaluator, args, 2, null); } } }); define(new FunDefBase("Caption", "<Dimension>.Caption", "Returns the caption of a dimension.", "pSd") { public Object evaluate(Evaluator evaluator, Exp[] args) { Dimension dimension = getDimensionArg(evaluator, args, 0, true); return dimension.getCaption(); } }); define(new FunDefBase("Caption", "<Hierarchy>.Caption", "Returns the caption of a hierarchy.", "pSh") { public Object evaluate(Evaluator evaluator, Exp[] args) { Hierarchy hierarchy = getHierarchyArg(evaluator, args, 0, true); return hierarchy.getCaption(); } }); define(new FunDefBase("Caption", "<Level>.Caption", "Returns the caption of a level.", "pSl") { public Object evaluate(Evaluator evaluator, Exp[] args) { Level level = getLevelArg(evaluator, args, 0, true); return level.getCaption(); } }); define(new FunDefBase("Caption", "<Member>.Caption", "Returns the caption of a member.", "pSm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); return member.getCaption(); } }); define(new FunDefBase("Name", "<Dimension>.Name", "Returns the name of a dimension.", "pSd") { public Object evaluate(Evaluator evaluator, Exp[] args) { Dimension dimension = getDimensionArg(evaluator, args, 0, true); return dimension.getName(); } }); define(new FunDefBase("Name", "<Hierarchy>.Name", "Returns the name of a hierarchy.", "pSh") { public Object evaluate(Evaluator evaluator, Exp[] args) { Hierarchy hierarchy = getHierarchyArg(evaluator, args, 0, true); return hierarchy.getName(); } }); define(new FunDefBase("Name", "<Level>.Name", "Returns the name of a level.", "pSl") { public Object evaluate(Evaluator evaluator, Exp[] args) { Level level = getLevelArg(evaluator, args, 0, true); return level.getName(); } }); define(new FunDefBase("Name", "<Member>.Name", "Returns the name of a member.", "pSm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); return member.getName(); } }); define(new FunDefBase("SetToStr", "SetToStr(<Set>)", "Constructs a string from a set.", "fSx")); define(new FunDefBase("TupleToStr", "TupleToStr(<Tuple>)", "Constructs a string from a tuple.", "fSt")); define(new FunDefBase("UniqueName", "<Dimension>.UniqueName", "Returns the unique name of a dimension.", "pSd") { public Object evaluate(Evaluator evaluator, Exp[] args) { Dimension dimension = getDimensionArg(evaluator, args, 0, true); return dimension.getUniqueName(); } }); define(new FunDefBase("UniqueName", "<Hierarchy>.UniqueName", "Returns the unique name of a hierarchy.", "pSh") { public Object evaluate(Evaluator evaluator, Exp[] args) { Hierarchy hierarchy = getHierarchyArg(evaluator, args, 0, true); return hierarchy.getUniqueName(); } }); define(new FunDefBase("UniqueName", "<Level>.UniqueName", "Returns the unique name of a level.", "pSl") { public Object evaluate(Evaluator evaluator, Exp[] args) { Level level = getLevelArg(evaluator, args, 0, true); return level.getUniqueName(); } }); define(new FunDefBase("UniqueName", "<Member>.UniqueName", "Returns the unique name of a member.", "pSm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); return member.getUniqueName(); } }); // // TUPLE FUNCTIONS define(new FunDefBase("Current", "<Set>.Current", "Returns the current tuple from a set during an iteration.", "ptx")); if (false) { // we do not support the <String expression> arguments define(new FunDefBase("Item", "<Set>.Item(<String Expression>[, <String Expression>...] | <Index>)", "Returns a tuple from a set.", "mx*")); } define (new FunkResolver("Item", "<Set>.Item(<Index>)", "Returns the <Index>th element in the set, or ", new String[] {"mtxn", "mmtn"}, new FunkBase() { // Returns the item specified from the set. public Object evaluate(Evaluator evaluator, Exp[] args) { Object arg0 = getArg(evaluator, args, 0); int index = getIntArg(evaluator, args, 1); int setSize; if (arg0 instanceof List) { List theSet = (List)arg0; setSize = theSet.size(); if (index < setSize && index >= 0) { return theSet.get(index); } } else { // // You'll get a member in the following case: // {[member]}.item(0).item(0), even though the first invocation of // item returned a tuple. // assert ((arg0 instanceof Member[]) || (arg0 instanceof Member)); if (arg0 instanceof Member) { if (index == 0) { return arg0; } setSize = 0; } else { Member[] tuple = (Member[]) arg0; if (index < tuple.length && index >= 0) { return tuple[index]; } setSize = tuple.length; } } throw MondrianResource.instance().newItemIndexOutOfBounds(Integer.toString(index), Integer.toString(setSize - 1)); } })); define(new FunDefBase("StrToTuple", "StrToTuple(<String Expression>)", "Constructs a tuple from a string.", "ftS") { public Hierarchy getHierarchy(Exp[] args) { // StrToTuple(s, <Hie1>, ... <HieN>) is of type [Hie1] x // ... x [HieN]; so, for example, So // StrToTuple("[Time].[1997]", [Time]) is of type [Time]. // But if n > 1, we cannot represent the compound type, and // we return null. return (args.length == 2) ? (Hierarchy) args[1] : null; } }); // special resolver for "()" define(new ResolverBase("()", null, null, Syntax.Parentheses) { public FunDef resolve(Exp[] args, int[] conversionCount) { // Compare with TupleFunDef.getReturnType(). For example, // ([Gender].members) is a set, // ([Gender].[M]) is a member, // (1 + 2) is a numeric, // but // ([Gender].[M], [Marital Status].[S]) is a tuple. if (args.length == 1) { return new ParenthesesFunDef(args[0].getType()); } else { return new TupleFunDef(ExpBase.getTypes(args)); } } }); // // GENERIC VALUE FUNCTIONS define(new ResolverBase( "CoalesceEmpty", "CoalesceEmpty(<Value Expression>[, <Value Expression>]...)", "Coalesces an empty cell value to a different value. All of the expressions must be of the same type (number or string).", Syntax.Function) { public FunDef resolve(Exp[] args, int[] conversionCount) { if (args.length < 1) { return null; } final int[] types = {Category.Numeric, Category.String}; for (int j = 0; j < types.length; j++) { int type = types[j]; int matchingArgs = 0; conversionCount[0] = 0; for (int i = 0; i < args.length; i++) { if (canConvert(args[i], type, conversionCount)) { matchingArgs++; } } if (matchingArgs == args.length) { return new CoalesceEmptyFunDef(this, type, ExpBase.getTypes(args)); } } return null; } public boolean requiresExpression(int k) { return true; } }); define(new ResolverBase( "_CaseTest", "Case When <Logical Expression> Then <Expression> [...] [Else <Expression>] End", "Evaluates various conditions, and returns the corresponding expression for the first which evaluates to true.", Syntax.Case) { public FunDef resolve(Exp[] args, int[] conversionCount) { if (args.length < 1) { return null; } int j = 0, clauseCount = args.length / 2, mismatchingArgs = 0; int returnType = args[1].getType(); for (int i = 0; i < clauseCount; i++) { if (!canConvert(args[j++], Category.Logical, conversionCount)) { mismatchingArgs++; } if (!canConvert(args[j++], returnType, conversionCount)) { mismatchingArgs++; } } if (j < args.length) { if (!canConvert(args[j++], returnType, conversionCount)) { mismatchingArgs++; } } Util.assertTrue(j == args.length); if (mismatchingArgs == 0) { return new FunDefBase(this, returnType, ExpBase.getTypes(args)) { // implement FunDef public Object evaluate(Evaluator evaluator, Exp[] args) { return evaluateCaseTest(evaluator, args); } }; } else { return null; } } public boolean requiresExpression(int k) { return true; } Object evaluateCaseTest(Evaluator evaluator, Exp[] args) { int clauseCount = args.length / 2, j = 0; for (int i = 0; i < clauseCount; i++) { boolean logical = getBooleanArg(evaluator, args, j++, false); if (logical) { return getArg(evaluator, args, j); } else { j++; } } if (j < args.length) { return getArg(evaluator, args, j); // ELSE } else { return null; } } }); define(new ResolverBase( "_CaseMatch", "Case <Expression> When <Expression> Then <Expression> [...] [Else <Expression>] End", "Evaluates various expressions, and returns the corresponding expression for the first which matches a particular value.", Syntax.Case) { public FunDef resolve(Exp[] args, int[] conversionCount) { if (args.length < 3) { return null; } int valueType = args[0].getType(); int returnType = args[2].getType(); int j = 0, clauseCount = (args.length - 1) / 2, mismatchingArgs = 0; if (!canConvert(args[j++], valueType, conversionCount)) { mismatchingArgs++; } for (int i = 0; i < clauseCount; i++) { if (!canConvert(args[j++], valueType, conversionCount)) { mismatchingArgs++; } if (!canConvert(args[j++], returnType, conversionCount)) { mismatchingArgs++; } } if (j < args.length) { if (!canConvert(args[j++], returnType, conversionCount)) { mismatchingArgs++; } } Util.assertTrue(j == args.length); if (mismatchingArgs == 0) { return new FunDefBase(this, returnType, ExpBase.getTypes(args)) { // implement FunDef public Object evaluate(Evaluator evaluator, Exp[] args) { return evaluateCaseMatch(evaluator, args); } }; } else { return null; } } public boolean requiresExpression(int k) { return true; } Object evaluateCaseMatch(Evaluator evaluator, Exp[] args) { int clauseCount = (args.length - 1)/ 2, j = 0; Object value = getArg(evaluator, args, j++); for (int i = 0; i < clauseCount; i++) { Object match = getArg(evaluator, args, j++); if (match.equals(value)) { return getArg(evaluator, args, j); } else { j++; } } if (j < args.length) { return getArg(evaluator, args, j); // ELSE } else { return null; } } }); define(new PropertiesFunDef.Resolver()); // // PARAMETER FUNCTIONS define(new MultiResolver("Parameter", "Parameter(<Name>, <Type>, <DefaultValue>, <Description>)", "Returns default value of parameter.", new String[] { "fS#yS#", "fs#yS", // Parameter(string const, symbol, string[, string const]): string "fn#yn#", "fn#yn", // Parameter(string const, symbol, numeric[, string const]): numeric "fm#hm#", "fm#hm", // Parameter(string const, hierarchy constant, member[, string const]): member }) { public String[] getReservedWords() { return new String[] {"NUMERIC","STRING"}; } protected FunDef createFunDef(Exp[] args, FunDef dummyFunDef) { String parameterName; if (args[0] instanceof Literal && args[0].getType() == Category.String) { parameterName = (String) ((Literal) args[0]).getValue(); } else { throw newEvalException(dummyFunDef, "Parameter name must be a string constant"); } Exp typeArg = args[1]; Hierarchy hierarchy; int type; switch (typeArg.getType()) { case Category.Hierarchy: case Category.Dimension: hierarchy = typeArg.getHierarchy(); if (hierarchy == null || !isConstantHierarchy(typeArg)) { throw newEvalException(dummyFunDef, "Invalid hierarchy for parameter '" + parameterName + "'"); } type = Category.Member; break; case Category.Symbol: hierarchy = null; String s = (String) ((Literal) typeArg).getValue(); if (s.equalsIgnoreCase("NUMERIC")) { type = Category.Numeric; break; } else if (s.equalsIgnoreCase("STRING")) { type = Category.String; break; } // fall through and throw error default: // Error is internal because the function call has already been // type-checked. throw newEvalException(dummyFunDef, "Invalid type for parameter '" + parameterName + "'; expecting NUMERIC, STRING or a hierarchy"); } Exp exp = args[2]; if (exp.getType() != type) { String typeName = Category.instance.getName(type).toUpperCase(); throw newEvalException(dummyFunDef, "Default value of parameter '" + parameterName + "' is inconsistent with its type, " + typeName); } if (type == Category.Member) { Hierarchy expHierarchy = exp.getHierarchy(); if (expHierarchy != hierarchy) { throw newEvalException(dummyFunDef, "Default value of parameter '" + parameterName + "' must belong to the hierarchy " + hierarchy); } } String parameterDescription = null; if (args.length > 3) { if (args[3] instanceof Literal && args[3].getType() == Category.String) { parameterDescription = (String) ((Literal) args[3]).getValue(); } else { throw newEvalException(dummyFunDef, "Description of parameter '" + parameterName + "' must be a string constant"); } } return new ParameterFunDef(dummyFunDef, parameterName, hierarchy, type, exp, parameterDescription); } }); define(new MultiResolver("ParamRef", "ParamRef(<Name>)", "Returns current value of parameter. If it's null, returns default.", new String[] {"fv#"}) { protected FunDef createFunDef(Exp[] args, FunDef dummyFunDef) { String parameterName; if (args[0] instanceof Literal && args[0].getType() == Category.String) { parameterName = (String) ((Literal) args[0]).getValue(); } else { throw newEvalException(dummyFunDef, "Parameter name must be a string constant"); } return new ParameterFunDef(dummyFunDef, parameterName, null, Category.Unknown, null, null); } }); // // OPERATORS define(new FunDefBase("+", "<Numeric Expression> + <Numeric Expression>", "Adds two numbers.", "innn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0, null), o1 = getDoubleArg(evaluator, args, 1, null); if (o0 == null || o1 == null) { return null; } return new Double(o0.doubleValue() + o1.doubleValue()); } }); define(new FunDefBase("-", "<Numeric Expression> - <Numeric Expression>", "Subtracts two numbers.", "innn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0, null), o1 = getDoubleArg(evaluator, args, 1, null); if (o0 == null || o1 == null) { return null; } return new Double(o0.doubleValue() - o1.doubleValue()); } }); define(new FunDefBase("*", "<Numeric Expression> * <Numeric Expression>", "Multiplies two numbers.", "innn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0, null), o1 = getDoubleArg(evaluator, args, 1, null); if (o0 == null || o1 == null) { return null; } return new Double(o0.doubleValue() * o1.doubleValue()); } }); define(new FunDefBase("/", "<Numeric Expression> / <Numeric Expression>", "Divides two numbers.", "innn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0, null), o1 = getDoubleArg(evaluator, args, 1, null); if (o0 == null || o1 == null) { return null; } return new Double(o0.doubleValue() / o1.doubleValue()); } // todo: use this, via reflection public double evaluate(double d1, double d2) { return d1 / d2; } }); define(new FunDefBase("-", "- <Numeric Expression>", "Returns the negative of a number.", "Pnn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0, null); if (o0 == null) { return null; } return new Double(- o0.doubleValue()); } }); define(new FunDefBase("||", "<String Expression> || <String Expression>", "Concatenates two strings.", "iSSS") { public Object evaluate(Evaluator evaluator, Exp[] args) { String o0 = getStringArg(evaluator, args, 0, null), o1 = getStringArg(evaluator, args, 1, null); return o0 + o1; } }); define(new FunDefBase("AND", "<Logical Expression> AND <Logical Expression>", "Returns the conjunction of two conditions.", "ibbb") { public Object evaluate(Evaluator evaluator, Exp[] args) { // if the first arg is known and false, we dont evaluate the second Boolean b1 = getBooleanArg(evaluator, args, 0); if (b1 != null && !b1.booleanValue()) { return Boolean.FALSE; } Boolean b2 = getBooleanArg(evaluator, args, 1); if (b2 != null && !b2.booleanValue()) { return Boolean.FALSE; } if (b1 == null || b2 == null) { return null; } return Boolean.valueOf(b1.booleanValue() && b2.booleanValue()); } }); define(new FunDefBase("OR", "<Logical Expression> OR <Logical Expression>", "Returns the disjunction of two conditions.", "ibbb") { public Object evaluate(Evaluator evaluator, Exp[] args) { // if the first arg is known and true, we dont evaluate the second Boolean b1 = getBooleanArg(evaluator, args, 0); if (b1 != null && b1.booleanValue()) { return Boolean.TRUE; } Boolean b2 = getBooleanArg(evaluator, args, 1); if (b2 != null && b2.booleanValue()) { return Boolean.TRUE; } if (b1 == null || b2 == null) { return null; } return Boolean.valueOf(b1.booleanValue() || b2.booleanValue()); } }); define(new FunDefBase("XOR", "<Logical Expression> XOR <Logical Expression>", "Returns whether two conditions are mutually exclusive.", "ibbb") { public Object evaluate(Evaluator evaluator, Exp[] args) { Boolean b1 = getBooleanArg(evaluator, args, 0); Boolean b2 = getBooleanArg(evaluator, args, 1); if (b1 == null || b2 == null) { return null; } return Boolean.valueOf(b1.booleanValue() != b2.booleanValue()); } }); define(new FunDefBase("NOT", "NOT <Logical Expression>", "Returns the negation of a condition.", "Pbb") { public Object evaluate(Evaluator evaluator, Exp[] args) { Boolean b = getBooleanArg(evaluator, args, 0); if (b == null) { return null; } boolean b1 = !b.booleanValue(); return Boolean.valueOf(b1); } }); define(new FunDefBase("=", "<String Expression> = <String Expression>", "Returns whether two expressions are equal.", "ibSS") { public Object evaluate(Evaluator evaluator, Exp[] args) { String o0 = getStringArg(evaluator, args, 0, null), o1 = getStringArg(evaluator, args, 1, null); if (o0 == null || o1 == null) { return null; } return Boolean.valueOf(o0.equals(o1)); } }); define(new FunDefBase("=", "<Numeric Expression> = <Numeric Expression>", "Returns whether two expressions are equal.", "ibnn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1); if (o0.isNaN() || o1.isNaN()) { return null; } return Boolean.valueOf(o0.equals(o1)); } }); define(new FunDefBase("<>", "<String Expression> <> <String Expression>", "Returns whether two expressions are not equal.", "ibSS") { public Object evaluate(Evaluator evaluator, Exp[] args) { String o0 = getStringArg(evaluator, args, 0, null), o1 = getStringArg(evaluator, args, 1, null); if (o0 == null || o1 == null) { return null; } boolean b = !o0.equals(o1); return Boolean.valueOf(b); } }); define(new FunDefBase("<>", "<Numeric Expression> <> <Numeric Expression>", "Returns whether two expressions are not equal.", "ibnn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1); if (o0.isNaN() || o1.isNaN()) { return null; } boolean b = !o0.equals(o1); return Boolean.valueOf(b); } }); define(new FunDefBase("<", "<Numeric Expression> < <Numeric Expression>", "Returns whether an expression is less than another.", "ibnn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1); if (o0.isNaN() || o1.isNaN()) { return null; } return Boolean.valueOf(o0.compareTo(o1) < 0); } }); define(new FunDefBase("<", "<String Expression> < <String Expression>", "Returns whether an expression is less than another.", "ibSS") { public Object evaluate(Evaluator evaluator, Exp[] args) { String o0 = getStringArg(evaluator, args, 0, null), o1 = getStringArg(evaluator, args, 1, null); if (o0 == null || o1 == null) { return null; } return Boolean.valueOf(o0.compareTo(o1) < 0); } }); define(new FunDefBase("<=", "<Numeric Expression> <= <Numeric Expression>", "Returns whether an expression is less than or equal to another.", "ibnn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1); if (o0.isNaN() || o1.isNaN()) { return null; } return Boolean.valueOf(o0.compareTo(o1) <= 0); } }); define(new FunDefBase("<=", "<String Expression> <= <String Expression>", "Returns whether an expression is less than or equal to another.", "ibSS") { public Object evaluate(Evaluator evaluator, Exp[] args) { String o0 = getStringArg(evaluator, args, 0, null), o1 = getStringArg(evaluator, args, 1, null); if (o0 == null || o1 == null) { return null; } return Boolean.valueOf(o0.compareTo(o1) <= 0); } }); define(new FunDefBase(">", "<Numeric Expression> > <Numeric Expression>", "Returns whether an expression is greater than another.", "ibnn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1); if (o0.isNaN() || o1.isNaN()) { return null; } return Boolean.valueOf(o0.compareTo(o1) > 0); } }); define(new FunDefBase(">", "<String Expression> > <String Expression>", "Returns whether an expression is greater than another.", "ibSS") { public Object evaluate(Evaluator evaluator, Exp[] args) { String o0 = getStringArg(evaluator, args, 0, null), o1 = getStringArg(evaluator, args, 1, null); if (o0 == null || o1 == null) { return null; } return Boolean.valueOf(o0.compareTo(o1) > 0); } }); define(new FunDefBase(">=", "<Numeric Expression> >= <Numeric Expression>", "Returns whether an expression is greater than or equal to another.", "ibnn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1); if (o0.isNaN() || o1.isNaN()) { return null; } return Boolean.valueOf(o0.compareTo(o1) >= 0); } }); define(new FunDefBase(">=", "<String Expression> >= <String Expression>", "Returns whether an expression is greater than or equal to another.", "ibSS") { public Object evaluate(Evaluator evaluator, Exp[] args) { String o0 = getStringArg(evaluator, args, 0, null), o1 = getStringArg(evaluator, args, 1, null); if (o0 == null || o1 == null) { return null; } return Boolean.valueOf(o0.compareTo(o1) >= 0); } }); // NON-STANDARD FUNCTIONS define(new FunkResolver( "FirstQ", "FirstQ(<Set>[, <Numeric Expression>])", "Returns the 1st quartile value of a numeric expression evaluated over a set.", new String[]{"fnx", "fnxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { List members = (List) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 1, valueFunCall); //todo: ignore nulls, do we need to ignore the List? return quartile(evaluator.push(), members, exp, 1); } })); define(new FunkResolver( "ThirdQ", "ThirdQ(<Set>[, <Numeric Expression>])", "Returns the 3rd quartile value of a numeric expression evaluated over a set.", new String[]{"fnx", "fnxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { List members = (List) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 1, valueFunCall); //todo: ignore nulls, do we need to ignore the List? return quartile(evaluator.push(), members, exp, 3); } })); }
|
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/b5b5168edc3af09cb74945a80b0c36e6630ed502/BuiltinFunTable.java/clean/src/main/mondrian/olap/fun/BuiltinFunTable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4426,
7503,
1435,
288,
202,
202,
11255,
10435,
2932,
8560,
8863,
202,
202,
759,
1122,
1149,
30,
293,
33,
1396,
16,
312,
33,
1305,
16,
277,
33,
382,
904,
16,
453,
33,
2244,
202,
202,
759,
576,
4880,
30,
202,
202,
759,
14884,
13690,
55,
202,
202,
430,
261,
5743,
13,
4426,
12,
2704,
478,
318,
3262,
2171,
2932,
694,
11698,
3113,
315,
694,
11698,
12,
32,
694,
23224,
16,
411,
694,
34,
65,
2777,
63,
16,
411,
9902,
5371,
34,
65,
2225,
16,
315,
5692,
1245,
578,
1898,
1678,
358,
392,
526,
364,
999,
316,
279,
729,
17,
430,
261,
5743,
13,
2553,
445,
1199,
16,
315,
507,
7388,
10019,
202,
202,
759,
202,
202,
759,
463,
3114,
3156,
1146,
13690,
55,
202,
202,
11255,
12,
2704,
478,
318,
3262,
2171,
2932,
8611,
3113,
3532,
12074,
18652,
8611,
3113,
315,
1356,
326,
4968,
716,
1914,
279,
1269,
9360,
1199,
16,
315,
84,
19153,
7923,
288,
1082,
202,
482,
1033,
5956,
12,
15876,
18256,
16,
7784,
8526,
833,
13,
288,
9506,
202,
12074,
9360,
273,
7628,
6000,
4117,
12,
14168,
639,
16,
833,
16,
374,
16,
638,
1769,
9506,
202,
2463,
9360,
18,
588,
8611,
5621,
1082,
202,
97,
202,
202,
22938,
202,
202,
759,
14646,
44,
361,
358,
527,
333,
358,
336,
411,
12074,
18652,
8611,
358,
1440,
35,
202,
202,
11255,
12,
2704,
478,
318,
3262,
2171,
2932,
8611,
3113,
3532,
8611,
18652,
8611,
3113,
315,
1356,
326,
4968,
716,
1914,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4426,
7503,
1435,
288,
202,
202,
11255,
10435,
2932,
8560,
8863,
202,
202,
759,
1122,
1149,
30,
293,
33,
1396,
16,
312,
33,
1305,
16,
277,
33,
382,
904,
16,
453,
33,
2244,
202,
202,
759,
576,
4880,
30,
202,
202,
759,
14884,
13690,
55,
202,
202,
430,
261,
5743,
13,
4426,
12,
2704,
478,
318,
3262,
2171,
2932,
694,
11698,
3113,
315,
694,
11698,
12,
32,
694,
23224,
16,
411,
694,
34,
65,
2777,
63,
16,
411,
9902,
5371,
34,
65,
2225,
16,
315,
5692,
1245,
578,
1898,
1678,
358,
392,
526,
364,
999,
316,
279,
729,
17,
430,
261,
5743,
13,
2553,
445,
1199,
16,
315,
507,
7388,
10019,
202,
202,
759,
202,
2
] |
if (log.isDebugEnabled()) { log.debug("Number of matches " + matches); }
|
int position = getPosition(total, matches, beforeFocus);
|
private static BrowseInfo doBrowse(BrowseScope scope) throws SQLException { // Check for a cached browse BrowseInfo cachedInfo = BrowseCache.get(scope); if (cachedInfo != null) { return cachedInfo; } int transactionIsolation = setTransactionIsolation(scope); try { // Run the Browse queries // If the focus is an Item, this returns the value String itemValue = getItemValue(scope); List results = new ArrayList(); results.addAll(getResultsBeforeFocus(scope, itemValue)); int beforeFocus = results.size(); results.addAll(getResultsAfterFocus(scope, itemValue, beforeFocus)); // Find out the total in the index, and the number of // matches for the query int total = countTotalInIndex(scope, results.size()); int matches = countMatches(scope, itemValue, total, results.size()); if (log.isDebugEnabled()) { log.debug("Number of matches " + matches); } int position = getPosition(total, matches, beforeFocus); sortResults(scope, results); BrowseInfo info = new BrowseInfo(results, position, total, beforeFocus); logInfo(info); BrowseCache.add(scope, info); return info; } finally { restoreTransactionIsolation(scope, transactionIsolation); } }
|
25205 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25205/36e0aff656ae4c75308793a5e6744544f92e9646/Browse.java/buggy/dspace/src/org/dspace/browse/Browse.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
605,
12481,
966,
741,
27304,
12,
27304,
3876,
2146,
13,
1216,
6483,
565,
288,
3639,
368,
2073,
364,
279,
3472,
21670,
3639,
605,
12481,
966,
3472,
966,
273,
605,
12481,
1649,
18,
588,
12,
4887,
1769,
3639,
309,
261,
7097,
966,
480,
446,
13,
3639,
288,
5411,
327,
3472,
966,
31,
3639,
289,
3639,
509,
2492,
22982,
273,
444,
3342,
22982,
12,
4887,
1769,
3639,
775,
3639,
288,
5411,
368,
1939,
326,
605,
12481,
6218,
5411,
368,
971,
326,
7155,
353,
392,
4342,
16,
333,
1135,
326,
460,
5411,
514,
761,
620,
273,
8143,
620,
12,
4887,
1769,
5411,
987,
1686,
273,
394,
2407,
5621,
5411,
1686,
18,
1289,
1595,
12,
588,
3447,
4649,
9233,
12,
4887,
16,
761,
620,
10019,
5411,
509,
1865,
9233,
273,
1686,
18,
1467,
5621,
5411,
1686,
18,
1289,
1595,
12,
588,
3447,
4436,
9233,
12,
4887,
16,
761,
620,
16,
1865,
9233,
10019,
5411,
368,
4163,
596,
326,
2078,
316,
326,
770,
16,
471,
326,
1300,
434,
5411,
368,
1885,
364,
326,
843,
5411,
509,
2078,
273,
1056,
5269,
382,
1016,
12,
4887,
16,
1686,
18,
1467,
10663,
5411,
509,
1885,
273,
1056,
6869,
12,
4887,
16,
761,
620,
16,
2078,
16,
1686,
18,
1467,
10663,
5411,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
5411,
288,
7734,
613,
18,
4148,
2932,
1854,
434,
1885,
315,
397,
1885,
1769,
5411,
289,
5411,
509,
1754,
273,
14441,
12,
4963,
16,
1885,
16,
1865,
9233,
1769,
5411,
1524,
3447,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
605,
12481,
966,
741,
27304,
12,
27304,
3876,
2146,
13,
1216,
6483,
565,
288,
3639,
368,
2073,
364,
279,
3472,
21670,
3639,
605,
12481,
966,
3472,
966,
273,
605,
12481,
1649,
18,
588,
12,
4887,
1769,
3639,
309,
261,
7097,
966,
480,
446,
13,
3639,
288,
5411,
327,
3472,
966,
31,
3639,
289,
3639,
509,
2492,
22982,
273,
444,
3342,
22982,
12,
4887,
1769,
3639,
775,
3639,
288,
5411,
368,
1939,
326,
605,
12481,
6218,
5411,
368,
971,
326,
7155,
353,
392,
4342,
16,
333,
1135,
326,
460,
5411,
514,
761,
620,
273,
8143,
620,
12,
4887,
1769,
5411,
987,
1686,
273,
394,
2407,
5621,
5411,
1686,
18,
1289,
1595,
12,
588,
3447,
4649,
9233,
12,
2
] |
cfw.classNameToSignature(target.getClassName()));
|
codegen.functionClassSignature);
|
private void visitCall(Node node, int type, Node child) { /* * Generate code for call. */ Node chelsea = child; // remember the first child for later OptFunctionNode target = (OptFunctionNode)node.getProp(Node.DIRECTCALL_PROP); if (target != null) { generateCodeFromNode(child, node); int regularCall = cfw.acquireLabel(); int directTargetIndex = target.getDirectTargetIndex(); cfw.add(ByteCode.ALOAD_0); cfw.add(ByteCode.GETFIELD, currentCodegen.generatedClassName, Codegen.MAIN_SCRIPT_FIELD, mainCodegen.generatedClassSignature); cfw.add(ByteCode.GETFIELD, mainCodegen.generatedClassName, Codegen.getDirectTargetFieldName(directTargetIndex), cfw.classNameToSignature(target.getClassName())); short stackHeight = cfw.getStackTop(); cfw.add(ByteCode.DUP2); cfw.add(ByteCode.IF_ACMPNE, regularCall); cfw.add(ByteCode.SWAP); cfw.add(ByteCode.POP); if (!itsUseDynamicScope) { cfw.add(ByteCode.DUP); cfw.addInvoke(ByteCode.INVOKEINTERFACE, "org/mozilla/javascript/Scriptable", "getParentScope", "()Lorg/mozilla/javascript/Scriptable;"); } else { cfw.addALoad(variableObjectLocal); } cfw.addALoad(contextLocal); cfw.add(ByteCode.SWAP); if (type == Token.NEW) cfw.add(ByteCode.ACONST_NULL); else { child = child.getNext(); generateCodeFromNode(child, node); }/* Remember that directCall parameters are paired in 1 aReg and 1 dReg If the argument is an incoming arg, just pass the orginal pair thru. Else, if the argument is known to be typed 'Number', pass Void.TYPE in the aReg and the number is the dReg Else pass the JS object in the aReg and 0.0 in the dReg.*/ child = child.getNext(); while (child != null) { boolean handled = false; if ((child.getType() == Token.GETVAR) && inDirectCallFunction) { OptLocalVariable lVar = (OptLocalVariable)(child.getProp(Node.VARIABLE_PROP)); if (lVar != null && lVar.isParameter()) { handled = true; cfw.addALoad(lVar.getJRegister()); cfw.addDLoad(lVar.getJRegister() + 1); } } if (!handled) { int childNumberFlag = child.getIntProp(Node.ISNUMBER_PROP, -1); if (childNumberFlag == Node.BOTH) { cfw.add(ByteCode.GETSTATIC, "java/lang/Void", "TYPE", "Ljava/lang/Class;"); generateCodeFromNode(child, node); } else { generateCodeFromNode(child, node); cfw.addPush(0.0); } } resetTargets(child); child = child.getNext(); } cfw.add(ByteCode.GETSTATIC, "org/mozilla/javascript/ScriptRuntime", "emptyArgs", "[Ljava/lang/Object;"); cfw.addInvoke(ByteCode.INVOKEVIRTUAL, target.getClassName(), (type == Token.NEW) ? "constructDirect" : "callDirect", target.getDirectCallMethodSignature()); int beyond = cfw.acquireLabel(); cfw.add(ByteCode.GOTO, beyond); cfw.markLabel(regularCall, stackHeight); cfw.add(ByteCode.POP); visitRegularCall(node, type, chelsea, true); cfw.markLabel(beyond); } else { visitRegularCall(node, type, chelsea, false); } }
|
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/7de4ae25f0fd144cbc3ddabc47e7a327a747af5a/Codegen.java/buggy/src/org/mozilla/javascript/optimizer/Codegen.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3757,
1477,
12,
907,
756,
16,
509,
618,
16,
2029,
1151,
13,
565,
288,
3639,
1748,
540,
380,
6654,
981,
364,
745,
18,
540,
1195,
3639,
2029,
462,
12107,
69,
273,
1151,
31,
1377,
368,
11586,
326,
1122,
1151,
364,
5137,
3639,
12056,
2083,
907,
5411,
1018,
273,
261,
6179,
2083,
907,
13,
2159,
18,
588,
4658,
12,
907,
18,
17541,
13730,
67,
15811,
1769,
3639,
309,
261,
3299,
480,
446,
13,
288,
5411,
2103,
1085,
28570,
12,
3624,
16,
756,
1769,
5411,
509,
6736,
1477,
273,
6080,
91,
18,
1077,
1039,
2224,
5621,
5411,
509,
2657,
2326,
1016,
273,
1018,
18,
588,
5368,
2326,
1016,
5621,
5411,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
1013,
51,
1880,
67,
20,
1769,
5411,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
3264,
6776,
16,
783,
1085,
4507,
18,
11168,
3834,
16,
10792,
3356,
4507,
18,
19803,
67,
10885,
67,
6776,
16,
10792,
2774,
1085,
4507,
18,
11168,
797,
5374,
1769,
5411,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
3264,
6776,
16,
2774,
1085,
4507,
18,
11168,
3834,
16,
10792,
3356,
4507,
18,
588,
5368,
2326,
7287,
12,
7205,
2326,
1016,
3631,
10792,
23198,
18,
915,
797,
5374,
1769,
5411,
3025,
2110,
2686,
273,
6080,
91,
18,
588,
2624,
3401,
5621,
5411,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
30387,
22,
1769,
5411,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
5501,
67,
2226,
4566,
5407,
16,
6736,
1477,
1769,
5411,
6080,
91,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3757,
1477,
12,
907,
756,
16,
509,
618,
16,
2029,
1151,
13,
565,
288,
3639,
1748,
540,
380,
6654,
981,
364,
745,
18,
540,
1195,
3639,
2029,
462,
12107,
69,
273,
1151,
31,
1377,
368,
11586,
326,
1122,
1151,
364,
5137,
3639,
12056,
2083,
907,
5411,
1018,
273,
261,
6179,
2083,
907,
13,
2159,
18,
588,
4658,
12,
907,
18,
17541,
13730,
67,
15811,
1769,
3639,
309,
261,
3299,
480,
446,
13,
288,
5411,
2103,
1085,
28570,
12,
3624,
16,
756,
1769,
5411,
509,
6736,
1477,
273,
6080,
91,
18,
1077,
1039,
2224,
5621,
5411,
509,
2657,
2326,
1016,
273,
1018,
18,
588,
5368,
2326,
1016,
5621,
5411,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
2
] |
String servletPath = request.getServletPath();
|
String servletPath = request.getServletPath( );
|
public void init( HttpServletRequest request ) { String servletPath = request.getServletPath(); if ( servletPath.indexOf( "/wr" ) != -1 ) //$NON-NLS-1$ { this.category = "ERNI"; //$NON-NLS-1$ } if ( ParameterAccessor.isGetImageOperator( request ) ) { return; } this.masterPageContent = ParameterAccessor.isMasterPageContent( request ); // Is in designer? this.isDesigner = ParameterAccessor.isDesigner( request ); // Determine the report design and doc 's timestamp this.reportDocumentName = ParameterAccessor.getReportDocument( request ); File reportDocFile = new File( this.reportDocumentName ); String reportDesignName = ParameterAccessor.getReport( request ); File reportDesignDocFile = new File( reportDesignName ); // If it is in designer and refresh the browser. if ( reportDesignDocFile != null && reportDesignDocFile.exists( ) && reportDesignDocFile.isFile( ) && reportDocFile != null && reportDocFile.exists( ) && reportDocFile.isFile( ) && "get".equalsIgnoreCase( request.getMethod( ) ) ) //$NON-NLS-1$ { if ( reportDesignDocFile.lastModified( ) > reportDocFile.lastModified( ) || ParameterAccessor.isOverwrite( request ) ) { reportDocFile.delete( ); } } if ( reportDocFile.exists( ) && reportDocFile.isFile( ) ) { this.reportDocumentInstance = ReportEngineService.getInstance( ).openReportDocument( this.reportDocumentName ); if ( this.reportDocumentInstance == null ) { this.exception = new Exception( "Can not open report doc from " //$NON-NLS-1$ + ParameterAccessor.getReportDocument( request ) ); return; } this.reportRunnable = this.reportDocumentInstance.getReportRunnable( ); } else { try { this.reportRunnable = ReportEngineService.getInstance( ). openReportDesign( ParameterAccessor.getReport( request ) ); } catch ( EngineException e ) { this.exception = e; return; } } // Double check the runnable. if ( this.reportRunnable == null ) { this.exception = new Exception( "Can not get report runnable" ); //$NON-NLS-1$ return; } // Report locale. this.locale = ParameterAccessor.getLocale( request ); // Report page. this.reportPage = String.valueOf( ParameterAccessor.getPage( request ) ); // Report title. String title = null; if ( this.reportRunnable != null ) { title = ( String ) this.reportRunnable.getProperty( "title" ); //$NON-NLS-1$ } if ( title == null || title.trim( ).length( ) <= 0 ) { title = BirtResources.getString( "birt.viewer.title" ); //$NON-NLS-1$ } this.reportTitle = ParameterAccessor.htmlEncode( title ); // Bookmark. this.bookmark = ParameterAccessor.getBookmark( request ); // Prameter task. this.parameterTask = ReportEngineService.getInstance( ).createGetParameterDefinitionTask( this.reportRunnable ); if ( this.parameterTask != null ) { this.parameterTask.setLocale( this.locale ); } // Prepare the report parameters this.parameters = ReportEngineService.getInstance( ) .parseParameters( request, this.parameterTask, this.reportRunnable.getTestConfig( ), this.locale ); this.missingParameter = ReportEngineService.getInstance( ).validateParameters( this.parameterTask, this.parameters ); }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/733a5b5180244caf9bfb5710170e041223a92c28/ViewerAttributeBean.java/clean/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/context/ViewerAttributeBean.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1208,
12,
9984,
590,
262,
202,
95,
202,
202,
780,
8100,
743,
273,
590,
18,
588,
4745,
743,
5621,
202,
202,
430,
261,
8100,
743,
18,
31806,
12,
2206,
91,
86,
6,
262,
480,
300,
21,
262,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
95,
1082,
202,
2211,
18,
4743,
273,
315,
654,
50,
45,
14432,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
97,
9506,
202,
430,
261,
5498,
8235,
18,
291,
967,
2040,
5592,
12,
590,
262,
262,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
2211,
18,
7525,
1964,
1350,
273,
5498,
8235,
18,
291,
7786,
1964,
1350,
12,
590,
11272,
202,
202,
759,
2585,
316,
8281,
264,
35,
202,
202,
2211,
18,
291,
15478,
264,
273,
5498,
8235,
18,
291,
15478,
264,
12,
590,
11272,
9506,
202,
759,
10229,
326,
2605,
8281,
471,
997,
296,
87,
2858,
202,
202,
2211,
18,
6006,
2519,
461,
273,
5498,
8235,
18,
588,
4820,
2519,
12,
590,
11272,
202,
202,
812,
2605,
1759,
812,
273,
394,
1387,
12,
333,
18,
6006,
2519,
461,
11272,
9506,
202,
780,
2605,
15478,
461,
273,
5498,
8235,
18,
588,
4820,
12,
590,
11272,
202,
202,
812,
2605,
15478,
1759,
812,
273,
394,
1387,
12,
2605,
15478,
461,
11272,
202,
202,
759,
971,
518,
353,
316,
8281,
264,
471,
4460,
326,
4748,
18,
202,
202,
430,
261,
2605,
15478,
1759,
812,
480,
446,
597,
2605,
15478,
1759,
812,
18,
1808,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1208,
12,
9984,
590,
262,
202,
95,
202,
202,
780,
8100,
743,
273,
590,
18,
588,
4745,
743,
5621,
202,
202,
430,
261,
8100,
743,
18,
31806,
12,
2206,
91,
86,
6,
262,
480,
300,
21,
262,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
95,
1082,
202,
2211,
18,
4743,
273,
315,
654,
50,
45,
14432,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
97,
9506,
202,
430,
261,
5498,
8235,
18,
291,
967,
2040,
5592,
12,
590,
262,
262,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
2211,
18,
7525,
1964,
1350,
273,
5498,
8235,
18,
291,
7786,
1964,
1350,
12,
590,
11272,
202,
202,
759,
2585,
2
] |
for(RosterEntry entry : roster.getUnfiledEntries()){
|
for (RosterEntry entry : roster.getUnfiledEntries()) {
|
private void buildContactList() { XMPPConnection con = SparkManager.getConnection(); final Roster roster = con.getRoster(); roster.addRosterListener(this); for(RosterGroup group : roster.getGroups()){ ContactGroup contactGroup = addContactGroup(group.getName()); for(RosterEntry entry : group.getEntries()){ String name = entry.getName(); if (name == null) { name = entry.getUser(); } ContactItem contactItem = new ContactItem(name, entry.getUser()); contactItem.setPresence(null); if ((entry.getType() == RosterPacket.ItemType.NONE || entry.getType() == RosterPacket.ItemType.FROM) && RosterPacket.ItemStatus.SUBSCRIPTION_PENDING == entry.getStatus()) { // Add to contact group. contactGroup.addContactItem(contactItem); contactGroup.setVisible(true); } else { if (offlineGroup.getContactItemByJID(entry.getUser()) == null) { offlineGroup.addContactItem(contactItem); } } } } // Add Unfiled Group // addContactGroup(unfiledGroup); for(RosterEntry entry : roster.getUnfiledEntries()){ String name = entry.getName(); if (name == null) { name = entry.getUser(); } ContactItem contactItem = new ContactItem(name, entry.getUser()); offlineGroup.addContactItem(contactItem); } unfiledGroup.setVisible(false); }
|
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/574c15c5effb6d20a2b7e90ba6b59211402c8696/ContactList.java/clean/src/java/org/jivesoftware/spark/ui/ContactList.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1361,
6567,
682,
1435,
288,
3639,
23216,
1952,
356,
273,
21087,
1318,
18,
588,
1952,
5621,
3639,
727,
534,
29811,
721,
8190,
273,
356,
18,
588,
54,
29811,
5621,
3639,
721,
8190,
18,
1289,
54,
29811,
2223,
12,
2211,
1769,
3639,
364,
12,
54,
29811,
1114,
1041,
294,
721,
8190,
18,
588,
3621,
10756,
95,
5411,
13329,
1114,
5388,
1114,
273,
527,
6567,
1114,
12,
1655,
18,
17994,
10663,
5411,
364,
12,
54,
29811,
1622,
1241,
294,
1041,
18,
588,
5400,
10756,
95,
7734,
514,
508,
273,
1241,
18,
17994,
5621,
7734,
309,
261,
529,
422,
446,
13,
288,
10792,
508,
273,
1241,
18,
588,
1299,
5621,
7734,
289,
7734,
13329,
1180,
5388,
1180,
273,
394,
13329,
1180,
12,
529,
16,
1241,
18,
588,
1299,
10663,
7734,
5388,
1180,
18,
542,
22590,
12,
2011,
1769,
7734,
309,
14015,
4099,
18,
588,
559,
1435,
422,
534,
29811,
6667,
18,
22580,
18,
9826,
747,
1241,
18,
588,
559,
1435,
422,
534,
29811,
6667,
18,
22580,
18,
11249,
13,
13491,
597,
534,
29811,
6667,
18,
1180,
1482,
18,
8362,
11133,
67,
25691,
422,
1241,
18,
588,
1482,
10756,
288,
10792,
368,
1436,
358,
5388,
1041,
18,
10792,
5388,
1114,
18,
1289,
6567,
1180,
12,
8994,
1180,
1769,
10792,
5388,
1114,
18,
542,
6207,
12,
3767,
1769,
7734,
289,
7734,
469,
288,
10792,
309,
261,
23787,
1114,
18,
588,
6567,
1180,
858,
46,
734,
12,
4099,
18,
588,
1299,
10756,
422,
446,
13,
288,
13491,
13493,
1114,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1361,
6567,
682,
1435,
288,
3639,
23216,
1952,
356,
273,
21087,
1318,
18,
588,
1952,
5621,
3639,
727,
534,
29811,
721,
8190,
273,
356,
18,
588,
54,
29811,
5621,
3639,
721,
8190,
18,
1289,
54,
29811,
2223,
12,
2211,
1769,
3639,
364,
12,
54,
29811,
1114,
1041,
294,
721,
8190,
18,
588,
3621,
10756,
95,
5411,
13329,
1114,
5388,
1114,
273,
527,
6567,
1114,
12,
1655,
18,
17994,
10663,
5411,
364,
12,
54,
29811,
1622,
1241,
294,
1041,
18,
588,
5400,
10756,
95,
7734,
514,
508,
273,
1241,
18,
17994,
5621,
7734,
309,
261,
529,
422,
446,
13,
288,
10792,
508,
273,
1241,
18,
588,
1299,
5621,
7734,
289,
7734,
13329,
1180,
5388,
1180,
273,
394,
2
] |
this.setSpanPixels(POS_BOTTOM,1);
|
this.setSpanPixels(POS_BOTTOM,35); this.setSpanPixels(POS_EVENT,1);
|
public void initializePresentation(){ this.setWidth(900); this.setHeight(750); this.addToTop(new Top()); this.setSpanPixels(POS_TOP,50); this.setSpanPixels(POS_LEFTMAIN, 200); this.setSpanPixels(POS_MENU,35); this.setSpanPixels(POS_BOTTOM,1); UserApplicationMenuArea menuArea = new UserApplicationMenuArea(); UserApplicationControlArea treeArea = new UserApplicationControlArea(); UserApplicationMainArea mainArea = new UserApplicationMainArea(); this.addToMenu(menuArea); this.showMenuFrame(true); this.showBottomFrame(true); //MUST BE TRUE! this.addToLeftMain(treeArea); this.addToMain(mainArea); menuArea.setUserApplicationMainAreaStateId(mainArea.getCompoundId()); //this.addToBottom(new Bottom()); // System.out.println("SERVLET URL : "+getIWApplicationContext().getApplication().getTranslatedURIWithContext(IWPresentationEvent.IW_EVENT_HANDLER_URL)); this.setBottomURL(getIWApplicationContext().getIWMainApplication().getTranslatedURIWithContext(IWPresentationEvent.IW_EVENT_HANDLER_URL)); // this.setBorder(20);// this.getMiddleFrameset().setBorder(10);// this.getLeftMainFrame().setBorder(10);// this.getMainFrame().setBorder(10); this.getTopFrame().setNoresize(true); this.getTopFrame().setScrolling(false); this.getMenuFrame().setScrolling(false); this.getMenuFrame().setNoresize(true); this.getBottomFrame().setScrolling(false); this.getBottomFrame().setNoresize(true); this.getMainFrame().setScrolling(true); this.getLeftMainFrame().setNoresize(false); this.getLeftMainFrame().setScrolling(true); }
|
53236 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53236/bc3e16f0a386bc11ab1902173f9ca884c11a6c81/UserApplication.java/clean/src/java/com/idega/user/app/UserApplication.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
4046,
6351,
367,
1435,
95,
565,
333,
18,
542,
2384,
12,
29,
713,
1769,
565,
333,
18,
542,
2686,
12,
27,
3361,
1769,
565,
333,
18,
1289,
774,
3401,
12,
2704,
7202,
10663,
565,
333,
18,
542,
6952,
18079,
12,
7057,
67,
10462,
16,
3361,
1769,
377,
333,
18,
542,
6952,
18079,
12,
7057,
67,
10066,
19803,
16,
4044,
1769,
377,
333,
18,
542,
6952,
18079,
12,
7057,
67,
29227,
16,
4763,
1769,
377,
333,
18,
542,
6952,
18079,
12,
7057,
67,
28891,
16,
4763,
1769,
333,
18,
542,
6952,
18079,
12,
7057,
67,
10454,
16,
21,
1769,
377,
2177,
3208,
4599,
5484,
3824,
5484,
273,
394,
2177,
3208,
4599,
5484,
5621,
202,
202,
1299,
3208,
3367,
5484,
2151,
5484,
273,
394,
2177,
3208,
3367,
5484,
5621,
202,
202,
1299,
3208,
6376,
5484,
2774,
5484,
273,
394,
2177,
3208,
6376,
5484,
5621,
9506,
202,
2211,
18,
1289,
774,
4599,
12,
5414,
5484,
1769,
565,
333,
18,
4500,
4599,
3219,
12,
3767,
1769,
565,
333,
18,
4500,
10393,
3219,
12,
3767,
1769,
368,
49,
5996,
9722,
5383,
5,
202,
202,
2211,
18,
1289,
774,
3910,
6376,
12,
3413,
5484,
1769,
565,
333,
18,
1289,
774,
6376,
12,
5254,
5484,
1769,
377,
202,
202,
5414,
5484,
18,
542,
1299,
3208,
6376,
5484,
1119,
548,
12,
5254,
5484,
18,
588,
16835,
548,
10663,
3639,
368,
2211,
18,
1289,
774,
10393,
12,
2704,
30285,
10663,
282,
368,
2332,
18,
659,
18,
8222,
2932,
31066,
15146,
1976,
294,
13773,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
4046,
6351,
367,
1435,
95,
565,
333,
18,
542,
2384,
12,
29,
713,
1769,
565,
333,
18,
542,
2686,
12,
27,
3361,
1769,
565,
333,
18,
1289,
774,
3401,
12,
2704,
7202,
10663,
565,
333,
18,
542,
6952,
18079,
12,
7057,
67,
10462,
16,
3361,
1769,
377,
333,
18,
542,
6952,
18079,
12,
7057,
67,
10066,
19803,
16,
4044,
1769,
377,
333,
18,
542,
6952,
18079,
12,
7057,
67,
29227,
16,
4763,
1769,
377,
333,
18,
542,
6952,
18079,
12,
7057,
67,
28891,
16,
4763,
1769,
333,
18,
542,
6952,
18079,
12,
7057,
67,
10454,
16,
21,
1769,
377,
2177,
3208,
4599,
5484,
3824,
5484,
273,
394,
2177,
3208,
4599,
5484,
5621,
202,
202,
1299,
3208,
2
] |
this.ensureIndexIsVisible(index);
|
private void groupAdded(MetaContactGroup group){ int index = this.listModel.indexOf(group); this.listModel.contentAdded(index, index); this.ensureIndexIsVisible(index); Iterator childContacts = group.getChildContacts(); while(childContacts.hasNext()){ MetaContact contact = (MetaContact)childContacts.next(); int contactIndex = this.listModel.indexOf(contact); this.listModel.contentAdded(contactIndex, contactIndex); this.ensureIndexIsVisible(contactIndex); } Iterator subGroups = group.getSubgroups(); while(subGroups.hasNext()){ MetaContactGroup subGroup = (MetaContactGroup)subGroups.next(); this.groupAdded(subGroup); } }
|
43455 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/43455/12b4ac8332883d26b3e5cabb95aa04f3b9e87900/ContactList.java/buggy/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactList.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1041,
8602,
12,
2781,
6567,
1114,
1041,
15329,
7734,
509,
770,
273,
333,
18,
1098,
1488,
18,
31806,
12,
1655,
1769,
3639,
333,
18,
1098,
1488,
18,
1745,
8602,
12,
1615,
16,
770,
1769,
1171,
9079,
4498,
1151,
20017,
273,
1041,
18,
588,
1763,
20017,
5621,
7734,
1323,
12,
3624,
20017,
18,
5332,
2134,
10756,
95,
5411,
6565,
6567,
5388,
273,
261,
2781,
6567,
13,
3624,
20017,
18,
4285,
5621,
13491,
509,
5388,
1016,
273,
333,
18,
1098,
1488,
18,
31806,
12,
8994,
1769,
5411,
333,
18,
1098,
1488,
18,
1745,
8602,
12,
8994,
1016,
16,
5388,
1016,
1769,
13491,
333,
18,
15735,
1016,
2520,
6207,
12,
8994,
1016,
1769,
3639,
289,
7734,
4498,
720,
3621,
273,
1041,
18,
588,
1676,
4650,
5621,
7734,
1323,
12,
1717,
3621,
18,
5332,
2134,
10756,
95,
5411,
6565,
6567,
1114,
720,
1114,
273,
261,
2781,
6567,
1114,
13,
1717,
3621,
18,
4285,
5621,
13491,
333,
18,
1655,
8602,
12,
1717,
1114,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1041,
8602,
12,
2781,
6567,
1114,
1041,
15329,
7734,
509,
770,
273,
333,
18,
1098,
1488,
18,
31806,
12,
1655,
1769,
3639,
333,
18,
1098,
1488,
18,
1745,
8602,
12,
1615,
16,
770,
1769,
1171,
9079,
4498,
1151,
20017,
273,
1041,
18,
588,
1763,
20017,
5621,
7734,
1323,
12,
3624,
20017,
18,
5332,
2134,
10756,
95,
5411,
6565,
6567,
5388,
273,
261,
2781,
6567,
13,
3624,
20017,
18,
4285,
5621,
13491,
509,
5388,
1016,
273,
333,
18,
1098,
1488,
18,
31806,
12,
8994,
1769,
5411,
333,
18,
1098,
1488,
18,
1745,
8602,
12,
8994,
1016,
16,
5388,
1016,
1769,
13491,
333,
18,
15735,
1016,
2520,
6207,
12,
8994,
1016,
1769,
3639,
289,
7734,
4498,
720,
3621,
2
] |
|
String o0 = getStringArg(evaluator, args, 0, null); String o1 = getStringArg(evaluator, args, 1, null); if (o0 == null || o1 == null) {
|
Boolean b1 = getBooleanArg(evaluator, args, 0); if ((b1 != null) && b1.booleanValue()) { return Boolean.TRUE; } Boolean b2 = getBooleanArg(evaluator, args, 1); if ((b2 != null) && b2.booleanValue()) { return Boolean.TRUE; } if (b1 == null || b2 == null) {
|
public Object evaluate(Evaluator evaluator, Exp[] args) { String o0 = getStringArg(evaluator, args, 0, null); String o1 = getStringArg(evaluator, args, 1, null); if (o0 == null || o1 == null) { return null; } return Boolean.valueOf(o0.equals(o1)); }
|
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/6edfd201208294a63e08eefe822045d54d51622b/BuiltinFunTable.java/buggy/src/main/mondrian/olap/fun/BuiltinFunTable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
1033,
5956,
12,
15876,
18256,
16,
7784,
8526,
833,
13,
288,
7734,
514,
320,
20,
273,
4997,
4117,
12,
14168,
639,
16,
833,
16,
374,
16,
446,
1769,
7734,
514,
320,
21,
273,
4997,
4117,
12,
14168,
639,
16,
833,
16,
404,
16,
446,
1769,
7734,
309,
261,
83,
20,
422,
446,
747,
320,
21,
422,
446,
13,
288,
10792,
327,
446,
31,
7734,
289,
7734,
327,
3411,
18,
1132,
951,
12,
83,
20,
18,
14963,
12,
83,
21,
10019,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
1033,
5956,
12,
15876,
18256,
16,
7784,
8526,
833,
13,
288,
7734,
514,
320,
20,
273,
4997,
4117,
12,
14168,
639,
16,
833,
16,
374,
16,
446,
1769,
7734,
514,
320,
21,
273,
4997,
4117,
12,
14168,
639,
16,
833,
16,
404,
16,
446,
1769,
7734,
309,
261,
83,
20,
422,
446,
747,
320,
21,
422,
446,
13,
288,
10792,
327,
446,
31,
7734,
289,
7734,
327,
3411,
18,
1132,
951,
12,
83,
20,
18,
14963,
12,
83,
21,
10019,
5411,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
for (int i = 0; i < sizeQNameParts; i++) { fElementQNamePartsStack[i] = new QName(); } init();
|
for (int i = 0; i < sizeQNameParts; i++) { fElementQNamePartsStack[i] = new QName(); } init();
|
public XMLValidator(StringPool stringPool, XMLErrorReporter errorReporter, DefaultEntityHandler entityHandler, XMLDocumentScanner documentScanner) { // keep references fStringPool = stringPool; fErrorReporter = errorReporter; fEntityHandler = entityHandler; fDocumentScanner = documentScanner; fEmptyURI = fStringPool.addSymbol(""); fXsiURI = fStringPool.addSymbol(SchemaSymbols.URI_XSI); // initialize fAttrList = new XMLAttrList(fStringPool); entityHandler.setEventHandler(this); entityHandler.setCharDataHandler(this); fDocumentScanner.setEventHandler(this); for (int i = 0; i < sizeQNameParts; i++) { fElementQNamePartsStack[i] = new QName(); } init(); } // <init>(StringPool,XMLErrorReporter,DefaultEntityHandler,XMLDocumentScanner)
|
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/f2b9ad84920b2015a53c9a67b4dfb5460fa0465e/XMLValidator.java/clean/src/org/apache/xerces/validators/common/XMLValidator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3167,
5126,
12,
780,
2864,
533,
2864,
16,
13491,
3167,
668,
13289,
555,
13289,
16,
13491,
2989,
1943,
1503,
1522,
1503,
16,
13491,
3167,
2519,
11338,
1668,
11338,
13,
288,
3639,
368,
3455,
5351,
3639,
284,
780,
2864,
273,
533,
2864,
31,
3639,
284,
668,
13289,
273,
555,
13289,
31,
3639,
284,
1943,
1503,
273,
1522,
1503,
31,
3639,
284,
2519,
11338,
273,
1668,
11338,
31,
3639,
284,
1921,
3098,
273,
284,
780,
2864,
18,
1289,
5335,
2932,
8863,
3639,
284,
60,
7722,
3098,
273,
284,
780,
2864,
18,
1289,
5335,
12,
3078,
14821,
18,
3098,
67,
60,
2320,
1769,
3639,
368,
4046,
3639,
284,
3843,
682,
273,
394,
3167,
3843,
682,
12,
74,
780,
2864,
1769,
3639,
1522,
1503,
18,
542,
16402,
12,
2211,
1769,
3639,
1522,
1503,
18,
542,
2156,
751,
1503,
12,
2211,
1769,
3639,
284,
2519,
11338,
18,
542,
16402,
12,
2211,
1769,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
963,
13688,
4305,
31,
277,
27245,
288,
5411,
284,
1046,
13688,
4305,
2624,
63,
77,
65,
273,
394,
16723,
5621,
3639,
289,
3639,
1208,
5621,
565,
289,
368,
411,
2738,
34,
12,
780,
2864,
16,
4201,
668,
13289,
16,
1868,
1943,
1503,
16,
4201,
2519,
11338,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3167,
5126,
12,
780,
2864,
533,
2864,
16,
13491,
3167,
668,
13289,
555,
13289,
16,
13491,
2989,
1943,
1503,
1522,
1503,
16,
13491,
3167,
2519,
11338,
1668,
11338,
13,
288,
3639,
368,
3455,
5351,
3639,
284,
780,
2864,
273,
533,
2864,
31,
3639,
284,
668,
13289,
273,
555,
13289,
31,
3639,
284,
1943,
1503,
273,
1522,
1503,
31,
3639,
284,
2519,
11338,
273,
1668,
11338,
31,
3639,
284,
1921,
3098,
273,
284,
780,
2864,
18,
1289,
5335,
2932,
8863,
3639,
284,
60,
7722,
3098,
273,
284,
780,
2864,
18,
1289,
5335,
12,
3078,
14821,
18,
3098,
67,
60,
2320,
1769,
3639,
368,
4046,
3639,
284,
3843,
682,
273,
394,
3167,
3843,
682,
12,
74,
780,
2864,
1769,
2
] |
source.append((char)ts.AND); pn = nf.createBinary(ts.AND, pn, andExpr(ts, source, inForInit));
|
sourceAdd((char)ts.AND); pn = nf.createBinary(ts.AND, pn, andExpr(ts, inForInit));
|
private Object andExpr(TokenStream ts, Source source, boolean inForInit) throws IOException, JavaScriptException { Object pn = bitOrExpr(ts, source, inForInit); if (ts.matchToken(ts.AND)) { source.append((char)ts.AND); pn = nf.createBinary(ts.AND, pn, andExpr(ts, source, inForInit)); } return pn; }
|
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/3d2e81a014b22cf4d1eb8921bd4229c2ca7ff017/Parser.java/buggy/js/rhino/src/org/mozilla/javascript/Parser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
471,
4742,
12,
1345,
1228,
3742,
16,
4998,
1084,
16,
1250,
316,
1290,
2570,
13,
3639,
1216,
1860,
16,
11905,
503,
565,
288,
3639,
1033,
11059,
273,
2831,
1162,
4742,
12,
3428,
16,
1084,
16,
316,
1290,
2570,
1769,
3639,
309,
261,
3428,
18,
1916,
1345,
12,
3428,
18,
4307,
3719,
288,
5411,
1084,
18,
6923,
12443,
3001,
13,
3428,
18,
4307,
1769,
5411,
11059,
273,
13958,
18,
2640,
5905,
12,
3428,
18,
4307,
16,
11059,
16,
471,
4742,
12,
3428,
16,
1084,
16,
316,
1290,
2570,
10019,
3639,
289,
3639,
327,
11059,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
471,
4742,
12,
1345,
1228,
3742,
16,
4998,
1084,
16,
1250,
316,
1290,
2570,
13,
3639,
1216,
1860,
16,
11905,
503,
565,
288,
3639,
1033,
11059,
273,
2831,
1162,
4742,
12,
3428,
16,
1084,
16,
316,
1290,
2570,
1769,
3639,
309,
261,
3428,
18,
1916,
1345,
12,
3428,
18,
4307,
3719,
288,
5411,
1084,
18,
6923,
12443,
3001,
13,
3428,
18,
4307,
1769,
5411,
11059,
273,
13958,
18,
2640,
5905,
12,
3428,
18,
4307,
16,
11059,
16,
471,
4742,
12,
3428,
16,
1084,
16,
316,
1290,
2570,
10019,
3639,
289,
3639,
327,
11059,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
String forumId = ( (String) session.getValue("Conference.forum_id")==null) ? "" : ((String) session.getValue("Conference.forum_id")) ; String discId = ( (String) session.getValue("Conference.disc_id")==null) ? "" : ((String) session.getValue("Conference.disc_id")) ;
|
String forumId = ( (String) session.getAttribute("Conference.forum_id")==null) ? "" : ((String) session.getAttribute("Conference.forum_id")) ; String discId = ( (String) session.getAttribute("Conference.disc_id")==null) ? "" : ((String) session.getAttribute("Conference.disc_id")) ;
|
public Properties getExtSessionParameters( HttpServletRequest req, Properties params) throws ServletException, IOException { // Get the session HttpSession session = req.getSession(true); String forumId = ( (String) session.getValue("Conference.forum_id")==null) ? "" : ((String) session.getValue("Conference.forum_id")) ; String discId = ( (String) session.getValue("Conference.disc_id")==null) ? "" : ((String) session.getValue("Conference.disc_id")) ; if( params == null) params = new Properties() ; params.setProperty("FORUM_ID", forumId) ; params.setProperty("DISC_ID", discId) ; return params ; }
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/d8b0fdd81e15dafac8d97309e61402a5d67547a5/Conference.java/buggy/servlets/conf/Conference.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6183,
336,
2482,
2157,
2402,
12,
9984,
1111,
16,
6183,
859,
13,
202,
15069,
16517,
16,
1860,
288,
202,
202,
759,
968,
326,
1339,
202,
202,
2940,
2157,
1339,
273,
1111,
18,
588,
2157,
12,
3767,
1769,
202,
202,
780,
11283,
548,
273,
261,
202,
12,
780,
13,
1339,
18,
24805,
2932,
23870,
18,
11725,
67,
350,
7923,
631,
2011,
13,
692,
1408,
294,
14015,
780,
13,
1339,
18,
24805,
2932,
23870,
18,
11725,
67,
350,
6,
3719,
274,
202,
202,
780,
19169,
548,
273,
261,
202,
12,
780,
13,
1339,
18,
24805,
2932,
23870,
18,
2251,
71,
67,
350,
7923,
631,
2011,
13,
692,
1408,
294,
14015,
780,
13,
1339,
18,
24805,
2932,
23870,
18,
2251,
71,
67,
350,
6,
3719,
274,
202,
202,
430,
12,
859,
422,
446,
13,
1082,
202,
2010,
273,
394,
6183,
1435,
274,
202,
202,
2010,
18,
542,
1396,
2932,
7473,
2799,
67,
734,
3113,
11283,
548,
13,
274,
202,
202,
2010,
18,
542,
1396,
2932,
2565,
2312,
67,
734,
3113,
19169,
548,
13,
274,
202,
202,
2463,
859,
274,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6183,
336,
2482,
2157,
2402,
12,
9984,
1111,
16,
6183,
859,
13,
202,
15069,
16517,
16,
1860,
288,
202,
202,
759,
968,
326,
1339,
202,
202,
2940,
2157,
1339,
273,
1111,
18,
588,
2157,
12,
3767,
1769,
202,
202,
780,
11283,
548,
273,
261,
202,
12,
780,
13,
1339,
18,
24805,
2932,
23870,
18,
11725,
67,
350,
7923,
631,
2011,
13,
692,
1408,
294,
14015,
780,
13,
1339,
18,
24805,
2932,
23870,
18,
11725,
67,
350,
6,
3719,
274,
202,
202,
780,
19169,
548,
273,
261,
202,
12,
780,
13,
1339,
18,
24805,
2932,
23870,
18,
2251,
71,
67,
350,
7923,
631,
2011,
13,
692,
1408,
294,
14015,
780,
13,
1339,
18,
24805,
2932,
23870,
18,
2
] |
VM.sysFail("VM_MallocHeap failed to malloc " + size + " bytes");
|
VM.sysWriteln("VM_MallocHeap failed to malloc ", size, " bytes"); VM.sysFail("Exiting VM with fatal error");
|
protected VM_Address allocateZeroedMemory(int size) { // NOTE: must use processorLock instead of synchronized virtual method // because we can't give up the virtual processor. // This method is sometimes called when the GC system is in a delicate state. spaceLock.lock(); VM_Address region = VM_Address.fromInt(VM.sysCall1(VM_BootRecord.the_boot_record.sysMallocIP, size)); VM_Address regionEnd = region.add(size); if (region.isZero()) { VM.sysFail("VM_MallocHeap failed to malloc " + size + " bytes"); } VM_Memory.zero(region, regionEnd); if (start.isZero() || region.LT(start)) start = region; if (regionEnd.GT(end)) end = regionEnd; VM_Processor pr = VM_Processor.getCurrentProcessor(); pr.disableThreadSwitching(); setAuxiliary(); pr.enableThreadSwitching(); /* VM.sysWrite("malloc.allocate: region = "); VM.sysWrite(region); VM.sysWrite(" "); show(); VM_Scheduler.dumpStack(); */ spaceLock.unlock(); return region; }
|
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/4bdcfd89af42d1c4725b81c48f2ebe6f7e29ed82/VM_MallocHeap.java/buggy/rvm/src/vm/memoryManagers/watson/common/heaps/VM_MallocHeap.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
8251,
67,
1887,
10101,
7170,
329,
6031,
12,
474,
963,
13,
288,
565,
368,
5219,
30,
1297,
999,
6659,
2531,
3560,
434,
3852,
5024,
707,
565,
368,
4202,
2724,
732,
848,
1404,
8492,
731,
326,
5024,
6659,
18,
565,
368,
4202,
1220,
707,
353,
16594,
2566,
1347,
326,
15085,
2619,
353,
316,
279,
1464,
2659,
919,
18,
565,
3476,
2531,
18,
739,
5621,
565,
8251,
67,
1887,
3020,
273,
8251,
67,
1887,
18,
2080,
1702,
12,
7397,
18,
9499,
1477,
21,
12,
7397,
67,
15817,
2115,
18,
5787,
67,
7137,
67,
3366,
18,
9499,
49,
9853,
2579,
16,
963,
10019,
565,
8251,
67,
1887,
3020,
1638,
273,
3020,
18,
1289,
12,
1467,
1769,
565,
309,
261,
6858,
18,
291,
7170,
10756,
288,
1377,
8251,
18,
9499,
4913,
292,
82,
2932,
7397,
67,
49,
9853,
15648,
2535,
358,
312,
9853,
3104,
963,
16,
315,
1731,
8863,
8251,
18,
9499,
3754,
2932,
6767,
310,
8251,
598,
10081,
555,
8863,
565,
289,
565,
8251,
67,
6031,
18,
7124,
12,
6858,
16,
3020,
1638,
1769,
565,
309,
261,
1937,
18,
291,
7170,
1435,
747,
3020,
18,
12050,
12,
1937,
3719,
787,
273,
3020,
31,
565,
309,
261,
6858,
1638,
18,
16506,
12,
409,
3719,
679,
273,
3020,
1638,
31,
565,
8251,
67,
5164,
846,
273,
8251,
67,
5164,
18,
588,
3935,
5164,
5621,
565,
846,
18,
8394,
3830,
10200,
310,
5621,
565,
444,
21981,
20606,
5621,
565,
846,
18,
7589,
3830,
10200,
310,
5621,
565,
1748,
1377,
8251,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
8251,
67,
1887,
10101,
7170,
329,
6031,
12,
474,
963,
13,
288,
565,
368,
5219,
30,
1297,
999,
6659,
2531,
3560,
434,
3852,
5024,
707,
565,
368,
4202,
2724,
732,
848,
1404,
8492,
731,
326,
5024,
6659,
18,
565,
368,
4202,
1220,
707,
353,
16594,
2566,
1347,
326,
15085,
2619,
353,
316,
279,
1464,
2659,
919,
18,
565,
3476,
2531,
18,
739,
5621,
565,
8251,
67,
1887,
3020,
273,
8251,
67,
1887,
18,
2080,
1702,
12,
7397,
18,
9499,
1477,
21,
12,
7397,
67,
15817,
2115,
18,
5787,
67,
7137,
67,
3366,
18,
9499,
49,
9853,
2579,
16,
963,
10019,
565,
8251,
67,
1887,
3020,
1638,
273,
3020,
18,
1289,
12,
1467,
1769,
565,
309,
261,
6858,
2
] |
if (fUndo.contains(operation) || fRedo.contains(operation)) {
|
if (undoList.contains(operation) || redoList.contains(operation)) {
|
public void operationChanged(IUndoableOperation operation) { if (fUndo.contains(operation) || fRedo.contains(operation)) { notifyChanged(operation); } }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/c24712ce346ce29a0831c2b0fa927c9b540a7987/DefaultOperationHistory.java/buggy/bundles/org.eclipse.core.commands/src/org/eclipse/core/commands/operations/DefaultOperationHistory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1674,
5033,
12,
45,
31224,
429,
2988,
1674,
13,
288,
202,
202,
430,
261,
74,
31224,
18,
12298,
12,
7624,
13,
747,
284,
3715,
83,
18,
12298,
12,
7624,
3719,
288,
1082,
202,
12336,
5033,
12,
7624,
1769,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1674,
5033,
12,
45,
31224,
429,
2988,
1674,
13,
288,
202,
202,
430,
261,
74,
31224,
18,
12298,
12,
7624,
13,
747,
284,
3715,
83,
18,
12298,
12,
7624,
3719,
288,
1082,
202,
12336,
5033,
12,
7624,
1769,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
_context.statManager().addRateData("udp.receivedACKs", acks.length, 0); for (int i = 0; i < acks.length; i++) { if (_log.shouldLog(Log.INFO)) _log.info("Full ACK of message " + acks[i] + " received!"); fragments += _outbound.acked(acks[i], from.getRemotePeer());
|
if (acks != null) { _context.statManager().addRateData("udp.receivedACKs", acks.length, 0); for (int i = 0; i < acks.length; i++) { if (_log.shouldLog(Log.INFO)) _log.info("Full ACK of message " + acks[i] + " received!"); fragments += _outbound.acked(acks[i], from.getRemotePeer()); } from.messageACKed(fragments * from.getMTU());
|
private void receiveACKs(PeerState from, UDPPacketReader.DataReader data) { if (data.readACKsIncluded()) { int fragments = 0; long acks[] = data.readACKs(); _context.statManager().addRateData("udp.receivedACKs", acks.length, 0); for (int i = 0; i < acks.length; i++) { if (_log.shouldLog(Log.INFO)) _log.info("Full ACK of message " + acks[i] + " received!"); fragments += _outbound.acked(acks[i], from.getRemotePeer()); } from.messageACKed(fragments * from.getMTU()); // estimated size } if (data.readECN()) from.ECNReceived(); else from.dataReceived(); }
|
45677 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45677/9e5fe7d2b6b1021feed75ebf5156f3ae8688026f/InboundMessageFragments.java/clean/router/java/src/net/i2p/router/transport/udp/InboundMessageFragments.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
6798,
3649,
87,
12,
6813,
1119,
628,
16,
16230,
6667,
2514,
18,
751,
2514,
501,
13,
288,
3639,
309,
261,
892,
18,
896,
3649,
87,
19323,
10756,
288,
5411,
509,
14656,
273,
374,
31,
5411,
1525,
8479,
87,
8526,
273,
501,
18,
896,
3649,
87,
5621,
5411,
389,
2472,
18,
5642,
1318,
7675,
1289,
4727,
751,
2932,
26029,
18,
15213,
3649,
87,
3113,
8479,
87,
18,
2469,
16,
374,
1769,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
8479,
87,
18,
2469,
31,
277,
27245,
288,
7734,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
5923,
3719,
10792,
389,
1330,
18,
1376,
2932,
5080,
26069,
434,
883,
315,
397,
8479,
87,
63,
77,
65,
397,
315,
5079,
4442,
1769,
7734,
14656,
1011,
389,
659,
3653,
18,
484,
329,
12,
22098,
63,
77,
6487,
628,
18,
588,
5169,
6813,
10663,
5411,
289,
5411,
628,
18,
2150,
3649,
329,
12,
29528,
380,
628,
18,
588,
6152,
57,
10663,
368,
13137,
963,
3639,
289,
3639,
309,
261,
892,
18,
896,
7228,
50,
10756,
5411,
628,
18,
7228,
50,
8872,
5621,
3639,
469,
5411,
628,
18,
892,
8872,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
6798,
3649,
87,
12,
6813,
1119,
628,
16,
16230,
6667,
2514,
18,
751,
2514,
501,
13,
288,
3639,
309,
261,
892,
18,
896,
3649,
87,
19323,
10756,
288,
5411,
509,
14656,
273,
374,
31,
5411,
1525,
8479,
87,
8526,
273,
501,
18,
896,
3649,
87,
5621,
5411,
389,
2472,
18,
5642,
1318,
7675,
1289,
4727,
751,
2932,
26029,
18,
15213,
3649,
87,
3113,
8479,
87,
18,
2469,
16,
374,
1769,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
8479,
87,
18,
2469,
31,
277,
27245,
288,
7734,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
5923,
3719,
10792,
389,
1330,
18,
1376,
2932,
5080,
26069,
434,
883,
315,
397,
8479,
87,
63,
2
] |
boolean vVis = (maxH > maxVPH) || (vertical.getValue() != 0); boolean hVis = (maxW > maxVPW) || (horizontal.getValue() != 0); Dimension ret = new Dimension();
|
boolean hVis = (maxW > maxVPW) || (tx != 0); boolean vVis = (maxH > maxVPH) || (ty != 0);
|
protected Dimension updateScrollbarVisibility(int tx, int ty, int maxW, int maxH) { // display scrollbars, if appropriate // (if scaled document size is larger than viewport size) // The tricky bit is ensuring that you properly track // the effects of making one scroll bar visible on the // need for the other scroll bar. Dimension vpSize = canvas.getSize(); // maxVPW/H is the viewport W/H without scrollbars. // minVPW/H is the viewport W/H with scrollbars. int maxVPW = vpSize.width; int minVPW = vpSize.width; int maxVPH = vpSize.height; int minVPH = vpSize.height; if (vertical.isVisible()) { maxVPW += vertical.getPreferredSize().width; } else { minVPW -= vertical.getPreferredSize().width; } if (horizontalPanel.isVisible()) { maxVPH += horizontal.getPreferredSize().height; } else { minVPH -= horizontal.getPreferredSize().height; } // System.err.println("W: [" + minVPW + "," + maxVPW + "] " + // "H: [" + minVPH + "," + maxVPH + "]"); // System.err.println("MAX: [" + maxW + "," + maxH + "]"); // Fist check if we need either scrollbar (given maxVPW/H). boolean vVis = (maxH > maxVPH) || (vertical.getValue() != 0); boolean hVis = (maxW > maxVPW) || (horizontal.getValue() != 0); Dimension ret = new Dimension(); // This makes sure that if one scrollbar is visible // we 'recheck' the other scroll bar with the minVPW/H // since making one visible makes the room for displaying content // in the other dimension smaller. (This also makes the // 'corner box' visible if both scroll bars are visible). if (vVis) { if (hVis) { horizontalPanel.setVisible(true); vertical.setVisible(true); cornerBox.setVisible(true); ret.width = minVPW; ret.height = minVPH; } else { vertical.setVisible(true); ret.width = minVPW; if (maxW > minVPW) { horizontalPanel.setVisible(true); cornerBox.setVisible(true); ret.height = minVPH; } else { horizontalPanel.setVisible(false); cornerBox.setVisible(false); ret.height = maxVPH; } } } else { if (hVis) { horizontalPanel.setVisible(true); ret.height = minVPH; if (maxH > minVPH) { vertical.setVisible(true); cornerBox.setVisible(true); ret.width = minVPW; } else { vertical.setVisible(false); cornerBox.setVisible(false); ret.width = maxVPW; } } else { vertical .setVisible(false); horizontalPanel.setVisible(false); cornerBox .setVisible(false); ret.width = maxVPW; ret.height = maxVPH; } } // Return the new size of the canvas. return ret; }
|
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/cb94389ca40237ec2bc34640ae44613d2d4cfacc/JSVGScrollPane.java/buggy/sources/org/apache/batik/swing/JSVGScrollPane.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
13037,
1089,
31636,
10135,
12,
474,
2229,
16,
509,
13806,
16,
4766,
5375,
509,
943,
59,
16,
509,
943,
44,
13,
288,
3639,
368,
2562,
5532,
13518,
16,
309,
5505,
3639,
368,
261,
430,
12304,
1668,
963,
353,
10974,
2353,
10482,
963,
13,
3639,
368,
1021,
433,
13055,
2831,
353,
24831,
716,
1846,
8214,
3298,
3639,
368,
326,
16605,
434,
10480,
1245,
5532,
4653,
6021,
603,
326,
3639,
368,
1608,
364,
326,
1308,
5532,
4653,
18,
3639,
13037,
18500,
1225,
273,
5953,
18,
588,
1225,
5621,
3639,
368,
943,
26152,
59,
19,
44,
353,
326,
10482,
678,
19,
44,
2887,
5532,
13518,
18,
3639,
368,
1131,
26152,
59,
19,
44,
353,
326,
10482,
678,
19,
44,
598,
5532,
13518,
18,
3639,
509,
943,
26152,
59,
273,
18500,
1225,
18,
2819,
31,
225,
509,
1131,
26152,
59,
273,
18500,
1225,
18,
2819,
31,
3639,
509,
943,
58,
8939,
273,
18500,
1225,
18,
4210,
31,
509,
1131,
58,
8939,
273,
18500,
1225,
18,
4210,
31,
3639,
309,
261,
17824,
18,
291,
6207,
10756,
288,
5411,
943,
26152,
59,
1011,
9768,
18,
588,
16028,
1225,
7675,
2819,
31,
3639,
289,
469,
288,
5411,
1131,
26152,
59,
3947,
9768,
18,
588,
16028,
1225,
7675,
2819,
31,
3639,
289,
3639,
309,
261,
18396,
5537,
18,
291,
6207,
10756,
288,
5411,
943,
58,
8939,
1011,
10300,
18,
588,
16028,
1225,
7675,
4210,
31,
3639,
289,
469,
288,
5411,
1131,
58,
8939,
3947,
10300,
18,
588,
16028,
1225,
7675,
4210,
31,
3639,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
13037,
1089,
31636,
10135,
12,
474,
2229,
16,
509,
13806,
16,
4766,
5375,
509,
943,
59,
16,
509,
943,
44,
13,
288,
3639,
368,
2562,
5532,
13518,
16,
309,
5505,
3639,
368,
261,
430,
12304,
1668,
963,
353,
10974,
2353,
10482,
963,
13,
3639,
368,
1021,
433,
13055,
2831,
353,
24831,
716,
1846,
8214,
3298,
3639,
368,
326,
16605,
434,
10480,
1245,
5532,
4653,
6021,
603,
326,
3639,
368,
1608,
364,
326,
1308,
5532,
4653,
18,
3639,
13037,
18500,
1225,
273,
5953,
18,
588,
1225,
5621,
3639,
368,
943,
26152,
59,
19,
44,
353,
326,
10482,
678,
19,
44,
2887,
5532,
13518,
18,
3639,
368,
1131,
26152,
59,
19,
44,
353,
326,
10482,
678,
19,
44,
598,
2
] |
public static Object jsFunction_split(Context cx, Scriptable thisObj, Object[] args, Function funObj)
|
private static Object jsFunction_split(Context cx, String target, Object[] args, Function funObj)
|
public static Object jsFunction_split(Context cx, Scriptable thisObj, Object[] args, Function funObj) { String target = ScriptRuntime.toString(thisObj); // create an empty Array to return; Scriptable scope = getTopLevelScope(funObj); Scriptable result = ScriptRuntime.newObject(cx, scope, "Array", null); // return an array consisting of the target if no separator given // don't check against undefined, because we want // 'fooundefinedbar'.split(void 0) to split to ['foo', 'bar'] if (args.length < 1) { result.put(0, result, target); return result; } // Use the second argument as the split limit, if given. boolean limited = (args.length > 1) && (args[1] != Undefined.instance); long limit = 0; // Initialize to avoid warning. if (limited) { /* Clamp limit between 0 and 1 + string length. */ limit = ScriptRuntime.toUint32(args[1]); if (limit > target.length()) limit = 1 + target.length(); } String separator = null; int[] matchlen = { 0 }; Object re = null; RegExpProxy reProxy = cx.getRegExpProxy(); if (reProxy != null && reProxy.isRegExp(args[0])) { re = args[0]; } else { separator = ScriptRuntime.toString(args[0]); matchlen[0] = separator.length(); } // split target with separator or re int[] ip = { 0 }; int match; int len = 0; boolean[] matched = { false }; String[][] parens = { null }; while ((match = find_split(funObj, target, separator, re, ip, matchlen, matched, parens)) >= 0) { if ((limited && len >= limit) || (match > target.length())) break; String substr; if (target.length() == 0) substr = target; else substr = target.substring(ip[0], match); result.put(len, result, substr); len++; /* * Imitate perl's feature of including parenthesized substrings * that matched part of the delimiter in the new array, after the * split substring that was delimited. */ if (re != null && matched[0] == true) { int size = parens[0].length; for (int num = 0; num < size; num++) { if (limited && len >= limit) break; result.put(len, result, parens[0][num]); len++; } matched[0] = false; } ip[0] = match + matchlen[0]; if (cx.getLanguageVersion() < Context.VERSION_1_3 && cx.getLanguageVersion() != Context.VERSION_DEFAULT) { /* * Deviate from ECMA to imitate Perl, which omits a final * split unless a limit argument is given and big enough. */ if (!limited && ip[0] == target.length()) break; } } return result; }
|
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/b6331020dcf96bb85dae57ee2a2ce947b6b0477a/NativeString.java/clean/js/rhino/org/mozilla/javascript/NativeString.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
3828,
2083,
67,
4939,
12,
1042,
9494,
16,
22780,
15261,
16,
4766,
1850,
1033,
8526,
833,
16,
4284,
9831,
2675,
13,
565,
288,
3639,
514,
1018,
273,
7739,
5576,
18,
10492,
12,
2211,
2675,
1769,
3639,
368,
752,
392,
1008,
1510,
358,
327,
31,
3639,
22780,
2146,
273,
13729,
2355,
3876,
12,
12125,
2675,
1769,
3639,
22780,
563,
273,
7739,
5576,
18,
2704,
921,
12,
71,
92,
16,
2146,
16,
315,
1076,
3113,
446,
1769,
3639,
368,
327,
392,
526,
23570,
434,
326,
1018,
309,
1158,
4182,
864,
3639,
368,
2727,
1404,
866,
5314,
3109,
16,
2724,
732,
2545,
3639,
368,
296,
617,
465,
2178,
3215,
10332,
4939,
12,
6459,
374,
13,
358,
1416,
358,
10228,
11351,
2187,
296,
3215,
3546,
3639,
309,
261,
1968,
18,
2469,
411,
404,
13,
288,
5411,
563,
18,
458,
12,
20,
16,
563,
16,
1018,
1769,
5411,
327,
563,
31,
3639,
289,
3639,
368,
2672,
326,
2205,
1237,
487,
326,
1416,
1800,
16,
309,
864,
18,
3639,
1250,
13594,
273,
261,
1968,
18,
2469,
405,
404,
13,
597,
261,
1968,
63,
21,
65,
480,
22243,
18,
1336,
1769,
3639,
1525,
1800,
273,
374,
31,
225,
368,
9190,
358,
4543,
3436,
18,
3639,
309,
261,
21325,
13,
288,
5411,
1748,
3905,
931,
1800,
3086,
374,
471,
404,
397,
533,
769,
18,
1195,
5411,
1800,
273,
7739,
5576,
18,
869,
5487,
1578,
12,
1968,
63,
21,
19226,
5411,
309,
261,
3595,
405,
1018,
18,
2469,
10756,
7734,
1800,
273,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
3828,
2083,
67,
4939,
12,
1042,
9494,
16,
22780,
15261,
16,
4766,
1850,
1033,
8526,
833,
16,
4284,
9831,
2675,
13,
565,
288,
3639,
514,
1018,
273,
7739,
5576,
18,
10492,
12,
2211,
2675,
1769,
3639,
368,
752,
392,
1008,
1510,
358,
327,
31,
3639,
22780,
2146,
273,
13729,
2355,
3876,
12,
12125,
2675,
1769,
3639,
22780,
563,
273,
7739,
5576,
18,
2704,
921,
12,
71,
92,
16,
2146,
16,
315,
1076,
3113,
446,
1769,
3639,
368,
327,
392,
526,
23570,
434,
326,
1018,
309,
1158,
4182,
864,
3639,
368,
2727,
1404,
866,
5314,
3109,
16,
2724,
732,
2545,
3639,
368,
296,
617,
465,
2178,
3215,
10332,
4939,
12,
6459,
374,
13,
358,
1416,
358,
2
] |
String s = FieldValueConverter.DoubleConverter.convert(value);
|
String s = DoubleConverter.convert(value);
|
public void setDouble(int field, double value) { String s = FieldValueConverter.DoubleConverter.convert(value); setField(new StringField(field, s)); }
|
52526 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52526/b82593ac4a1e83641502429984080ba1c1e1c07a/FieldMap.java/clean/src/quickfix/FieldMap.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
5265,
12,
474,
652,
16,
1645,
460,
13,
288,
3639,
514,
272,
273,
3698,
5072,
18,
6283,
12,
1132,
1769,
3639,
16331,
12,
2704,
30916,
12,
1518,
16,
272,
10019,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
5265,
12,
474,
652,
16,
1645,
460,
13,
288,
3639,
514,
272,
273,
3698,
5072,
18,
6283,
12,
1132,
1769,
3639,
16331,
12,
2704,
30916,
12,
1518,
16,
272,
10019,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
private static String definePool(ConnectionPool cp, String url, ConnectionPoolDefinition cpd, Properties info) throws SQLException { // TODO - need to rethink the way we pass ConnectionPool in here. It's Properties rememberedInfo = null; if (cp != null) { rememberedInfo = (Properties) infos.get(cp.getDefinition().getUrl()); } if (info != null && (rememberedInfo == null || !info.equals(rememberedInfo))) { if (LOG.isDebugEnabled()) { if (rememberedInfo == null) { LOG.debug("Setting properties on " + url); } else { LOG.debug("Updating properties on " + url); } } Iterator i = info.keySet().iterator(); while (i.hasNext()) { String key = (String) i.next(); String value = info.getProperty(key); boolean propertyRecognised = true; if (key.equals(ProxoolConstants.USER_PROPERTY)) { cpd.setUser(value); } else if (key.equals(ProxoolConstants.PASSWORD_PROPERTY)) { cpd.setPassword(value); } else if (key.equals(ProxoolConstants.HOUSE_KEEPING_SLEEP_TIME_PROPERTY)) { try { int valueAsInt = Integer.parseInt(value); cpd.setHouseKeepingSleepTime(valueAsInt); } catch (NumberFormatException e) { throw new SQLException("'" + key + "' property must be an integer. Found '" + value + "' instead."); } } else if (key.equals(ProxoolConstants.HOUSE_KEEPING_TEST_SQL_PROPERTY)) { cpd.setHouseKeepingTestSql(value); } else if (key.equals(ProxoolConstants.MAXIMUM_CONNECTION_COUNT_PROPERTY)) { try { int valueAsInt = Integer.parseInt(value); cpd.setMaximumConnectionCount(valueAsInt); } catch (NumberFormatException e) { throw new SQLException("'" + key + "' property must be an integer. Found '" + value + "' instead."); } } else if (key.equals(ProxoolConstants.MAXIMUM_CONNECTION_LIFETIME_PROPERTY)) { try { int valueAsInt = Integer.parseInt(value); cpd.setMaximumConnectionLifetime(valueAsInt); } catch (NumberFormatException e) { throw new SQLException("'" + key + "' property must be an integer. Found '" + value + "' instead."); } } else if (key.equals(ProxoolConstants.MAXIMUM_NEW_CONNECTIONS_PROPERTY)) { try { int valueAsInt = Integer.parseInt(value); cpd.setMaximumNewConnections(valueAsInt); } catch (NumberFormatException e) { throw new SQLException("'" + key + "' property must be an integer. Found '" + value + "' instead."); } } else if (key.equals(ProxoolConstants.MINIMUM_CONNECTION_COUNT_PROPERTY)) { try { int valueAsInt = Integer.parseInt(value); cpd.setMinimumConnectionCount(valueAsInt); } catch (NumberFormatException e) { throw new SQLException("'" + key + "' property must be an integer. Found '" + value + "' instead."); } } else if (key.equals(ProxoolConstants.PROTOTYPE_COUNT_PROPERTY)) { try { int valueAsInt = Integer.parseInt(value); cpd.setPrototypeCount(valueAsInt); } catch (NumberFormatException e) { throw new SQLException("'" + key + "' property must be an integer. Found '" + value + "' instead."); } } else if (key.equals(ProxoolConstants.RECENTLY_STARTED_THRESHOLD_PROPERTY)) { try { int valueAsInt = Integer.parseInt(value); cpd.setRecentlyStartedThreshold(valueAsInt); } catch (NumberFormatException e) { throw new SQLException("'" + key + "' property must be an integer. Found '" + value + "' instead."); } } else if (key.equals(ProxoolConstants.OVERLOAD_WITHOUT_REFUSAL_LIFETIME_PROPERTY)) { try { int valueAsInt = Integer.parseInt(value); cpd.setOverloadWithoutRefusalLifetime(valueAsInt); } catch (NumberFormatException e) { throw new SQLException("'" + key + "' property must be an integer. Found '" + value + "' instead."); } } else if (key.equals(ProxoolConstants.MAXIMUM_ACTIVE_TIME_PROPERTY)) { try { int valueAsInt = Integer.parseInt(value); cpd.setMaximumActiveTime(valueAsInt); } catch (NumberFormatException e) { throw new SQLException("'" + key + "' property must be an integer. Found '" + value + "' instead."); } } else if (key.equals(ProxoolConstants.DEBUG_LEVEL_PROPERTY)) { try { int valueAsInt = Integer.parseInt(value); cpd.setDebugLevel(valueAsInt); } catch (NumberFormatException e) { throw new SQLException("'" + key + "' property must be an integer. Found '" + value + "' instead."); } } else if (key.equals(ProxoolConstants.FATAL_SQL_EXCEPTION_PROPERTY)) { cpd.setFatalSqlException(value); } else { cpd.setProperty(key, value); propertyRecognised = false; } if (LOG.isDebugEnabled()) { if (propertyRecognised) { LOG.debug("Recognised proxool property: " + key + "=" + value); } else { LOG.debug("Delgating property to Driver: " + key + "=" + value); } } } if (cp != null) { infos.put(cp.getDefinition().getUrl(), info); } else { infos.put(url, info); } } return cpd.getName(); }
|
4082 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4082/463dc9b50f21d7dbbbe112aa0bed2284296e8ef5/ProxoolFacade.java/clean/src/java/org/logicalcobwebs/proxool/ProxoolFacade.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
760,
514,
4426,
2864,
12,
1952,
2864,
3283,
16,
514,
880,
16,
4050,
2864,
1852,
29660,
16,
6183,
1123,
13,
1216,
6483,
288,
759,
2660,
300,
1608,
358,
19911,
754,
326,
4031,
732,
1342,
4050,
2864,
316,
2674,
18,
2597,
1807,
2297,
11586,
329,
966,
273,
446,
31,
430,
261,
4057,
480,
446,
13,
288,
28155,
329,
966,
273,
261,
2297,
13,
10626,
18,
588,
12,
4057,
18,
588,
1852,
7675,
588,
1489,
10663,
97,
430,
261,
1376,
480,
446,
597,
261,
28155,
329,
966,
422,
446,
747,
401,
1376,
18,
14963,
12,
28155,
329,
966,
20349,
288,
430,
261,
4842,
18,
291,
2829,
1526,
10756,
288,
430,
261,
28155,
329,
966,
422,
446,
13,
288,
4842,
18,
4148,
2932,
5568,
1790,
603,
315,
397,
880,
1769,
97,
469,
288,
4842,
18,
4148,
2932,
17858,
1790,
603,
315,
397,
880,
1769,
9090,
3198,
277,
273,
1123,
18,
856,
694,
7675,
9838,
5621,
17523,
261,
77,
18,
5332,
2134,
10756,
288,
780,
498,
273,
261,
780,
13,
277,
18,
4285,
5621,
780,
460,
273,
1123,
18,
588,
1396,
12,
856,
1769,
6494,
1272,
22931,
5918,
273,
638,
31,
430,
261,
856,
18,
14963,
12,
16155,
1371,
2918,
18,
4714,
67,
9900,
3719,
288,
4057,
72,
18,
542,
1299,
12,
1132,
1769,
97,
469,
309,
261,
856,
18,
14963,
12,
16155,
1371,
2918,
18,
13784,
67,
9900,
3719,
288,
4057,
72,
18,
542,
3913,
12,
1132,
1769,
97,
469,
309,
261,
856,
18,
14963,
12,
16155,
1371,
2918,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
760,
514,
4426,
2864,
12,
1952,
2864,
3283,
16,
514,
880,
16,
4050,
2864,
1852,
29660,
16,
6183,
1123,
13,
1216,
6483,
288,
759,
2660,
300,
1608,
358,
19911,
754,
326,
4031,
732,
1342,
4050,
2864,
316,
2674,
18,
2597,
1807,
2297,
11586,
329,
966,
273,
446,
31,
430,
261,
4057,
480,
446,
13,
288,
28155,
329,
966,
273,
261,
2297,
13,
10626,
18,
588,
12,
4057,
18,
588,
1852,
7675,
588,
1489,
10663,
97,
430,
261,
1376,
480,
446,
597,
261,
28155,
329,
966,
422,
446,
747,
401,
1376,
18,
14963,
12,
28155,
329,
966,
20349,
288,
430,
261,
4842,
18,
291,
2829,
1526,
10756,
288,
430,
261,
28155,
329,
966,
422,
446,
13,
288,
4842,
18,
2
] |
||
params = new Hashtable ();
|
params = new Hashtable (0);
|
public void startElement (java.lang.String name, org.xml.sax.AttributeList atts) throws SAXException { if (!insideChannelElement) { // recognizing "channel" if (name.equals ("channel")) { insideChannelElement = true; // get class attribute channelClassName = atts.getValue ("class"); channelID = atts.getValue ("ID"); timeOut = java.lang.Long.parseLong (atts.getValue ("timeout")); params = new Hashtable (); if(ccaching) { // save the old cache state if(ser.stopCaching()) { try { systemCCacheBlocks.add(ser.getCache()); } catch (UnsupportedEncodingException e) { Logger.log(Logger.ERROR,"CharacterCachingChannelIncorporationFilter::startElement() : unable to obtain character cache, invalid encoding specified ! "+e); } catch (IOException ioe) { Logger.log(Logger.ERROR,"CharacterCachingChannelIncorporationFilter::startElement() : IO exception occurred while retreiving character cache ! "+ioe); } } else { Logger.log(Logger.ERROR,"CharacterCachingChannelIncorporationFilter::startElement() : unable to reset cache state ! Serializer was not caching when it should've been !"); } } } else { super.startElement (name,atts); } } else if (name.equals ("parameter")) { params.put (atts.getValue ("name"), atts.getValue ("value")); } }
|
1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/91b3e3254bdc1d696f1fb8761a301391dad7eda7/CharacterCachingChannelIncorporationFilter.java/buggy/source/org/jasig/portal/CharacterCachingChannelIncorporationFilter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
13591,
261,
6290,
18,
4936,
18,
780,
508,
16,
2358,
18,
2902,
18,
87,
651,
18,
1499,
682,
15687,
13,
1216,
14366,
565,
288,
3639,
309,
16051,
28091,
2909,
1046,
13,
288,
5411,
368,
14603,
6894,
315,
4327,
6,
5411,
309,
261,
529,
18,
14963,
7566,
4327,
6,
3719,
288,
7734,
4832,
2909,
1046,
273,
638,
31,
7734,
368,
336,
667,
1566,
7734,
1904,
3834,
273,
15687,
18,
24805,
7566,
1106,
8863,
7734,
24324,
273,
15687,
18,
24805,
7566,
734,
8863,
7734,
813,
1182,
273,
2252,
18,
4936,
18,
3708,
18,
2670,
3708,
261,
270,
3428,
18,
24805,
7566,
4538,
7923,
1769,
7734,
859,
273,
394,
18559,
261,
20,
1769,
7734,
309,
12,
952,
497,
310,
13,
288,
10792,
368,
1923,
326,
1592,
1247,
919,
10792,
309,
12,
550,
18,
5681,
17712,
10756,
288,
13491,
775,
288,
18701,
2619,
39,
1649,
6450,
18,
1289,
12,
550,
18,
588,
1649,
10663,
13491,
289,
1044,
261,
8544,
13836,
425,
13,
288,
18701,
4242,
18,
1330,
12,
3328,
18,
3589,
10837,
7069,
17712,
2909,
382,
29245,
1586,
2866,
1937,
1046,
1435,
294,
13496,
358,
7161,
3351,
1247,
16,
2057,
2688,
1269,
401,
13773,
73,
1769,
13491,
289,
1044,
261,
14106,
10847,
13,
288,
4766,
3639,
4242,
18,
1330,
12,
3328,
18,
3589,
10837,
7069,
17712,
2909,
382,
29245,
1586,
2866,
1937,
1046,
1435,
294,
1665,
1520,
7841,
1323,
325,
266,
9288,
3351,
1247,
401,
13773,
1594,
73,
1769,
13491,
289,
4766,
7734,
289,
469,
288,
13491,
4242,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
13591,
261,
6290,
18,
4936,
18,
780,
508,
16,
2358,
18,
2902,
18,
87,
651,
18,
1499,
682,
15687,
13,
1216,
14366,
565,
288,
3639,
309,
16051,
28091,
2909,
1046,
13,
288,
5411,
368,
14603,
6894,
315,
4327,
6,
5411,
309,
261,
529,
18,
14963,
7566,
4327,
6,
3719,
288,
7734,
4832,
2909,
1046,
273,
638,
31,
7734,
368,
336,
667,
1566,
7734,
1904,
3834,
273,
15687,
18,
24805,
7566,
1106,
8863,
7734,
24324,
273,
15687,
18,
24805,
7566,
734,
8863,
7734,
813,
1182,
273,
2252,
18,
4936,
18,
3708,
18,
2670,
3708,
261,
270,
3428,
18,
24805,
7566,
4538,
7923,
1769,
7734,
859,
273,
394,
18559,
261,
20,
1769,
7734,
309,
12,
952,
497,
310,
2
] |
public void update() throws IOException, MarshalException, ValidationException {
|
public synchronized void update() throws IOException, MarshalException, ValidationException {
|
public void update() throws IOException, MarshalException, ValidationException { File cfgFile = ConfigFileConstants.getFile(ConfigFileConstants.POLLER_CONFIG_FILE_NAME); ThreadCategory.getInstance(PollerConfigFactory.class).debug("init: config file path: " + cfgFile.getPath()); reloadXML(new FileReader(cfgFile)); }
|
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/c8a695c241e46625aa25433d0a3424963850f87d/PollerConfigFactory.java/buggy/src/services/org/opennms/netmgt/config/PollerConfigFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
1089,
1435,
1216,
1860,
16,
5884,
503,
16,
15614,
288,
3639,
1387,
2776,
812,
273,
31988,
2918,
18,
29925,
12,
13705,
2918,
18,
14232,
14668,
67,
7203,
67,
3776,
67,
1985,
1769,
3639,
4884,
4457,
18,
588,
1442,
12,
5850,
749,
809,
1733,
18,
1106,
2934,
4148,
2932,
2738,
30,
642,
585,
589,
30,
315,
397,
2776,
812,
18,
588,
743,
10663,
3639,
7749,
4201,
12,
2704,
23010,
12,
7066,
812,
10019,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
1089,
1435,
1216,
1860,
16,
5884,
503,
16,
15614,
288,
3639,
1387,
2776,
812,
273,
31988,
2918,
18,
29925,
12,
13705,
2918,
18,
14232,
14668,
67,
7203,
67,
3776,
67,
1985,
1769,
3639,
4884,
4457,
18,
588,
1442,
12,
5850,
749,
809,
1733,
18,
1106,
2934,
4148,
2932,
2738,
30,
642,
585,
589,
30,
315,
397,
2776,
812,
18,
588,
743,
10663,
3639,
7749,
4201,
12,
2704,
23010,
12,
7066,
812,
10019,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (showItem != null) { showItem.dispose(); showItem = null; } if (restoreItem != null) { restoreItem.dispose(); restoreItem = null; } if (menuTB != null) { menuTB.dispose(); menuTB = null; }
|
menuItem.dispose(); menuTB.dispose();
|
protected void disposeChildControls() { fastViewBar.dispose(); fastViewBar = null; if (showItem != null) { showItem.dispose(); showItem = null; } if (restoreItem != null) { restoreItem.dispose(); restoreItem = null; } if (menuTB != null) { menuTB.dispose(); menuTB = null; } oldLength = 0; }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/ccf1179ac27a17215a5660b2a9a93612cc79f934/FastViewBar.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/FastViewBar.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
15825,
1763,
16795,
1435,
288,
3639,
4797,
1767,
5190,
18,
2251,
4150,
5621,
3639,
4797,
1767,
5190,
273,
446,
31,
7734,
309,
261,
4500,
1180,
480,
446,
13,
288,
540,
202,
4500,
1180,
18,
2251,
4150,
5621,
540,
202,
4500,
1180,
273,
446,
31,
3639,
289,
7734,
309,
261,
13991,
1180,
480,
446,
13,
288,
540,
202,
13991,
1180,
18,
2251,
4150,
5621,
540,
202,
13991,
1180,
273,
446,
31,
3639,
289,
7734,
309,
261,
5414,
25730,
480,
446,
13,
288,
540,
202,
5414,
25730,
18,
2251,
4150,
5621,
540,
202,
5414,
25730,
273,
446,
31,
3639,
289,
7734,
1592,
1782,
273,
374,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
15825,
1763,
16795,
1435,
288,
3639,
4797,
1767,
5190,
18,
2251,
4150,
5621,
3639,
4797,
1767,
5190,
273,
446,
31,
7734,
309,
261,
4500,
1180,
480,
446,
13,
288,
540,
202,
4500,
1180,
18,
2251,
4150,
5621,
540,
202,
4500,
1180,
273,
446,
31,
3639,
289,
7734,
309,
261,
13991,
1180,
480,
446,
13,
288,
540,
202,
13991,
1180,
18,
2251,
4150,
5621,
540,
202,
13991,
1180,
273,
446,
31,
3639,
289,
7734,
309,
261,
5414,
25730,
480,
446,
13,
288,
540,
202,
5414,
25730,
18,
2251,
4150,
5621,
540,
202,
5414,
25730,
273,
446,
31,
3639,
289,
7734,
1592,
1782,
273,
374,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
} timedOut = (readTimeout != -1) && ((System.currentTimeMillis()-start)>this.readTimeout); if ( !timedOut && nRead == 0 ) try { final SelectionKey key = socket.getIOChannel().keyFor(poller.getSelector()); final KeyAttachment att = (KeyAttachment)key.attachment(); boolean addToQueue = false; try { addToQueue = ((key.interestOps()&SelectionKey.OP_READ) != SelectionKey.OP_READ); } catch ( CancelledKeyException ignore ){} if ( addToQueue ) { addToReadQueue(key, att); } synchronized (att.getMutex()) { if ( att.getWakeUp() ) att.getMutex().wait(25); } }catch ( Exception x ) {}
|
} else { timedOut = (readTimeout != -1) && ((System.currentTimeMillis()-start)>readTimeout); if ( !timedOut && nRead == 0 ) { try { final SelectionKey key = socket.getIOChannel().keyFor(poller.getSelector()); final KeyAttachment att = (KeyAttachment)key.attachment(); boolean addToQueue = false; try { addToQueue = ((key.interestOps()&SelectionKey.OP_READ) != SelectionKey.OP_READ); } catch ( CancelledKeyException ckx ){ throw new IOException("Socket key cancelled.");} if ( addToQueue ) { synchronized (att.getMutex()) { addToReadQueue(key, att); att.getMutex().wait(readTimeout); } } }catch ( Exception x ) {} } }
|
private boolean readSocket(boolean timeout) throws IOException { int nRead = 0; long start = System.currentTimeMillis(); boolean timedOut = false; do { socket.getBufHandler().getReadBuffer().clear(); nRead = socket.read(socket.getBufHandler().getReadBuffer()); if (nRead > 0) { socket.getBufHandler().getReadBuffer().flip(); socket.getBufHandler().getReadBuffer().limit(nRead); expand(nRead + pos); socket.getBufHandler().getReadBuffer().get(buf, pos, nRead); lastValid = pos + nRead; return true; } else if (nRead == -1) { //return false; throw new IOException("end of stream reached."); } timedOut = (readTimeout != -1) && ((System.currentTimeMillis()-start)>this.readTimeout); if ( !timedOut && nRead == 0 ) try { final SelectionKey key = socket.getIOChannel().keyFor(poller.getSelector()); final KeyAttachment att = (KeyAttachment)key.attachment(); //to do, add in a check, we might have just timed out on the wait, //so there is no need to register us again. boolean addToQueue = false; try { addToQueue = ((key.interestOps()&SelectionKey.OP_READ) != SelectionKey.OP_READ); } catch ( CancelledKeyException ignore ){} if ( addToQueue ) { addToReadQueue(key, att); }//end if synchronized (att.getMutex()) { if ( att.getWakeUp() ) att.getMutex().wait(25); } }catch ( Exception x ) {} }while ( nRead == 0 && (!timedOut) ); //else throw new IOException(sm.getString("iib.failedread")); //return false; //timeout throw new IOException("read timed out."); }
|
26330 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/26330/f89d5ae7aa33bd8c505d3f9f1ead0012b6aef2c1/InternalNioInputBuffer.java/buggy/java/org/apache/coyote/http11/InternalNioInputBuffer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
855,
4534,
12,
6494,
2021,
13,
1216,
1860,
288,
3639,
509,
290,
1994,
273,
374,
31,
3639,
1525,
787,
273,
2332,
18,
2972,
28512,
5621,
3639,
1250,
7491,
1182,
273,
629,
31,
3639,
741,
288,
13491,
2987,
18,
588,
5503,
1503,
7675,
588,
1994,
1892,
7675,
8507,
5621,
5411,
290,
1994,
273,
2987,
18,
896,
12,
7814,
18,
588,
5503,
1503,
7675,
588,
1994,
1892,
10663,
5411,
309,
261,
82,
1994,
405,
374,
13,
288,
7734,
2987,
18,
588,
5503,
1503,
7675,
588,
1994,
1892,
7675,
12357,
5621,
7734,
2987,
18,
588,
5503,
1503,
7675,
588,
1994,
1892,
7675,
3595,
12,
82,
1994,
1769,
7734,
4542,
12,
82,
1994,
397,
949,
1769,
7734,
2987,
18,
588,
5503,
1503,
7675,
588,
1994,
1892,
7675,
588,
12,
4385,
16,
949,
16,
290,
1994,
1769,
7734,
1142,
1556,
273,
949,
397,
290,
1994,
31,
7734,
327,
638,
31,
5411,
289,
469,
309,
261,
82,
1994,
422,
300,
21,
13,
288,
7734,
368,
2463,
629,
31,
7734,
604,
394,
1860,
2932,
409,
434,
1407,
8675,
1199,
1769,
5411,
289,
5411,
7491,
1182,
273,
261,
896,
2694,
480,
300,
21,
13,
597,
14015,
3163,
18,
2972,
28512,
1435,
17,
1937,
13,
34,
2211,
18,
896,
2694,
1769,
5411,
309,
261,
401,
20905,
1182,
597,
290,
1994,
422,
374,
262,
1171,
775,
288,
10792,
727,
12977,
653,
498,
273,
2987,
18,
588,
4294,
2909,
7675,
856,
1290,
12,
3915,
749,
18,
588,
4320,
10663,
10792,
727,
1929,
6803,
2403,
273,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
855,
4534,
12,
6494,
2021,
13,
1216,
1860,
288,
3639,
509,
290,
1994,
273,
374,
31,
3639,
1525,
787,
273,
2332,
18,
2972,
28512,
5621,
3639,
1250,
7491,
1182,
273,
629,
31,
3639,
741,
288,
13491,
2987,
18,
588,
5503,
1503,
7675,
588,
1994,
1892,
7675,
8507,
5621,
5411,
290,
1994,
273,
2987,
18,
896,
12,
7814,
18,
588,
5503,
1503,
7675,
588,
1994,
1892,
10663,
5411,
309,
261,
82,
1994,
405,
374,
13,
288,
7734,
2987,
18,
588,
5503,
1503,
7675,
588,
1994,
1892,
7675,
12357,
5621,
7734,
2987,
18,
588,
5503,
1503,
7675,
588,
1994,
1892,
7675,
3595,
12,
82,
1994,
1769,
7734,
4542,
12,
82,
1994,
397,
949,
1769,
7734,
2987,
18,
588,
2
] |
if (interpolationType == 0)
|
switch (interpolationType) { case TYPE_BILINEAR:
|
public AffineTransformOp (AffineTransform xform, int interpolationType) { this.transform = xform; if (interpolationType == 0) hints = new RenderingHints (RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR); else hints = new RenderingHints (RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR); }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/ec415b5ab69e9516c29619bb561ab024d22ce1f2/AffineTransformOp.java/clean/core/src/classpath/java/java/awt/image/AffineTransformOp.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
23906,
558,
4059,
3817,
261,
13785,
558,
4059,
619,
687,
16,
509,
12851,
559,
13,
565,
288,
1377,
333,
18,
6547,
273,
619,
687,
31,
1377,
1620,
261,
18676,
367,
559,
13,
288,
648,
3463,
67,
38,
30690,
985,
30,
540,
13442,
273,
394,
22391,
261,
14261,
13368,
18,
3297,
67,
9125,
14232,
2689,
16,
19694,
22391,
18,
4051,
67,
9125,
14232,
2689,
67,
38,
30690,
985,
1769,
6862,
540,
469,
3639,
13442,
273,
394,
22391,
261,
14261,
13368,
18,
3297,
67,
9125,
14232,
2689,
16,
4766,
565,
22391,
18,
4051,
67,
9125,
14232,
2689,
67,
5407,
9332,
882,
67,
5407,
16055,
38,
916,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
23906,
558,
4059,
3817,
261,
13785,
558,
4059,
619,
687,
16,
509,
12851,
559,
13,
565,
288,
1377,
333,
18,
6547,
273,
619,
687,
31,
1377,
1620,
261,
18676,
367,
559,
13,
288,
648,
3463,
67,
38,
30690,
985,
30,
540,
13442,
273,
394,
22391,
261,
14261,
13368,
18,
3297,
67,
9125,
14232,
2689,
16,
19694,
22391,
18,
4051,
67,
9125,
14232,
2689,
67,
38,
30690,
985,
1769,
6862,
540,
469,
3639,
13442,
273,
394,
22391,
261,
14261,
13368,
18,
3297,
67,
9125,
14232,
2689,
16,
4766,
565,
22391,
18,
4051,
67,
9125,
14232,
2689,
67,
5407,
9332,
882,
67,
5407,
16055,
38,
916,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
runtime.printError((RubyException)je.getTertiaryData());
|
runtime.getErrorStream().println("internal error: throw jump caught");
|
private static void printException(IRuby runtime, Exception exception) { if (exception instanceof JumpException) { JumpException je = (JumpException)exception; if (je.getJumpType() == JumpException.JumpType.RaiseJump) { runtime.printError(((RaiseException)je).getException()); } else if (je.getJumpType() == JumpException.JumpType.ThrowJump) { runtime.printError((RubyException)je.getTertiaryData()); } else if (je.getJumpType() == JumpException.JumpType.BreakJump) { runtime.getErrorStream().println("break without block."); } else if (je.getJumpType() == JumpException.JumpType.ReturnJump) { runtime.getErrorStream().println("return without block."); } } }
|
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/43527512ed5edac73606a65971bfe9f8a7c23c7b/JRubyEngine.java/clean/src/org/jruby/javasupport/bsf/JRubyEngine.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
1172,
503,
12,
7937,
10340,
3099,
16,
1185,
1520,
13,
288,
377,
202,
430,
261,
4064,
1276,
804,
2801,
503,
13,
288,
202,
377,
202,
26743,
503,
30356,
273,
261,
26743,
503,
13,
4064,
31,
202,
377,
202,
430,
261,
78,
73,
18,
588,
26743,
559,
1435,
422,
804,
2801,
503,
18,
26743,
559,
18,
30570,
26743,
13,
288,
202,
5411,
3099,
18,
1188,
668,
12443,
12,
30570,
503,
13,
78,
73,
2934,
588,
503,
10663,
202,
377,
202,
97,
469,
309,
261,
78,
73,
18,
588,
26743,
559,
1435,
422,
804,
2801,
503,
18,
26743,
559,
18,
8282,
26743,
13,
288,
202,
5411,
3099,
18,
1188,
668,
12443,
54,
10340,
503,
13,
78,
73,
18,
588,
56,
1051,
77,
814,
751,
10663,
202,
377,
202,
97,
469,
309,
261,
78,
73,
18,
588,
26743,
559,
1435,
422,
804,
2801,
503,
18,
26743,
559,
18,
7634,
26743,
13,
288,
202,
5411,
3099,
18,
588,
668,
1228,
7675,
8222,
2932,
8820,
2887,
1203,
1199,
1769,
202,
3639,
289,
469,
309,
261,
78,
73,
18,
588,
26743,
559,
1435,
422,
804,
2801,
503,
18,
26743,
559,
18,
990,
26743,
13,
288,
202,
5411,
3099,
18,
588,
668,
1228,
7675,
8222,
2932,
2463,
2887,
1203,
1199,
1769,
202,
3639,
289,
377,
202,
97,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3238,
760,
918,
1172,
503,
12,
7937,
10340,
3099,
16,
1185,
1520,
13,
288,
377,
202,
430,
261,
4064,
1276,
804,
2801,
503,
13,
288,
202,
377,
202,
26743,
503,
30356,
273,
261,
26743,
503,
13,
4064,
31,
202,
377,
202,
430,
261,
78,
73,
18,
588,
26743,
559,
1435,
422,
804,
2801,
503,
18,
26743,
559,
18,
30570,
26743,
13,
288,
202,
5411,
3099,
18,
1188,
668,
12443,
12,
30570,
503,
13,
78,
73,
2934,
588,
503,
10663,
202,
377,
202,
97,
469,
309,
261,
78,
73,
18,
588,
26743,
559,
1435,
422,
804,
2801,
503,
18,
26743,
559,
18,
8282,
26743,
13,
288,
202,
5411,
3099,
18,
1188,
668,
12443,
54,
10340,
503,
13,
78,
73,
2
] |
case END_ATTRIBUTES:
|
case END_ATTRIBUTE:
|
public int nextDataIndex(int pos) { if (pos == gapStart) pos = gapEnd; if (pos == data.length) return -1; int j; char datum = data[pos++]; if (datum <= MAX_CHAR_SHORT || (datum >= OBJECT_REF_SHORT && datum <= OBJECT_REF_SHORT+OBJECT_REF_SHORT_INDEX_MAX) || (datum >= INT_SHORT_ZERO + MIN_INT_SHORT && datum <= INT_SHORT_ZERO + MAX_INT_SHORT)) return pos; if (datum >= BEGIN_GROUP_SHORT && datum <= BEGIN_GROUP_SHORT+BEGIN_GROUP_SHORT_INDEX_MAX) return data[pos] + pos + 2; switch (datum) { case BOOL_FALSE: case BOOL_TRUE: return pos; case CHAR_FOLLOWS: return pos + 1; case OBJECT_REF_FOLLOWS: case CHAR_PAIR_FOLLOWS: case INT_FOLLOWS: return pos + 2; case END_GROUP_SHORT: case END_GROUP_LONG: case END_ATTRIBUTES: return -1; case BEGIN_GROUP_LONG: j = getIntN(pos); j += j < 0 ? data.length : pos-1; return j + 7; case BEGIN_ATTRIBUTE_LONG: j = getIntN(pos+2); j += j < 0 ? data.length : pos-1; return j; case LONG_FOLLOWS: case DOUBLE_FOLLOWS: return pos + 4; default: throw new Error("unknown code:"+(int) datum); } }
|
40769 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/40769/e58b3de20fe0cbbe13d17ccabe0c09e2076eb4a5/TreeList.java/buggy/gnu/lists/TreeList.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
1024,
751,
1016,
12,
474,
949,
13,
225,
288,
565,
309,
261,
917,
422,
9300,
1685,
13,
1377,
949,
273,
9300,
1638,
31,
565,
309,
261,
917,
422,
501,
18,
2469,
13,
1377,
327,
300,
21,
31,
565,
509,
525,
31,
565,
1149,
12059,
273,
501,
63,
917,
9904,
15533,
565,
309,
261,
3404,
379,
1648,
4552,
67,
7305,
67,
15993,
202,
20081,
261,
3404,
379,
1545,
12166,
67,
10771,
67,
15993,
202,
565,
597,
12059,
1648,
12166,
67,
10771,
67,
15993,
15,
9422,
67,
10771,
67,
15993,
67,
9199,
67,
6694,
13,
202,
20081,
261,
3404,
379,
1545,
6137,
67,
15993,
67,
24968,
397,
6989,
67,
3217,
67,
15993,
202,
565,
597,
12059,
1648,
6137,
67,
15993,
67,
24968,
397,
4552,
67,
3217,
67,
15993,
3719,
1377,
327,
949,
31,
565,
309,
261,
3404,
379,
1545,
19270,
67,
8468,
67,
15993,
202,
10,
10,
12059,
1648,
19270,
67,
8468,
67,
15993,
15,
16061,
67,
8468,
67,
15993,
67,
9199,
67,
6694,
13,
1377,
327,
501,
63,
917,
65,
397,
949,
397,
576,
31,
565,
1620,
261,
3404,
379,
13,
1377,
288,
1377,
648,
9784,
1741,
67,
21053,
30,
1377,
648,
9784,
1741,
67,
18724,
30,
202,
2463,
949,
31,
1377,
648,
12090,
67,
42,
1741,
1502,
2651,
30,
202,
2463,
949,
397,
404,
31,
1377,
648,
12166,
67,
10771,
67,
42,
1741,
1502,
2651,
30,
1377,
648,
12090,
67,
4066,
7937,
67,
42,
1741,
1502,
2651,
30,
1377,
648,
6137,
67,
42,
1741,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
1024,
751,
1016,
12,
474,
949,
13,
225,
288,
565,
309,
261,
917,
422,
9300,
1685,
13,
1377,
949,
273,
9300,
1638,
31,
565,
309,
261,
917,
422,
501,
18,
2469,
13,
1377,
327,
300,
21,
31,
565,
509,
525,
31,
565,
1149,
12059,
273,
501,
63,
917,
9904,
15533,
565,
309,
261,
3404,
379,
1648,
4552,
67,
7305,
67,
15993,
202,
20081,
261,
3404,
379,
1545,
12166,
67,
10771,
67,
15993,
202,
565,
597,
12059,
1648,
12166,
67,
10771,
67,
15993,
15,
9422,
67,
10771,
67,
15993,
67,
9199,
67,
6694,
13,
202,
20081,
261,
3404,
379,
1545,
6137,
67,
15993,
67,
24968,
397,
6989,
67,
3217,
67,
15993,
202,
565,
597,
12059,
1648,
6137,
2
] |
PreviewRowsDialog prd =new PreviewRowsDialog(shell, SWT.NONE, wStepname.getText(), progressDialog.getPreviewRows(wStepname.getText()), loggingText); prd.open();
|
private void preview() { // Create the XML input step TextFileInputMeta oneMeta = new TextFileInputMeta(); getInfo(oneMeta); TransMeta previewMeta = TransPreviewFactory.generatePreviewTransformation(oneMeta, wStepname.getText()); EnterNumberDialog numberDialog = new EnterNumberDialog(shell, props, 500, Messages.getString("TextFileInputDialog.PreviewSize.DialogTitle"), Messages.getString("TextFileInputDialog.PreviewSize.DialogMessage")); int previewSize = numberDialog.open(); if (previewSize>0) { TransPreviewProgressDialog progressDialog = new TransPreviewProgressDialog(shell, previewMeta, new String[] { wStepname.getText() }, new int[] { previewSize } ); progressDialog.open(); if (!progressDialog.isCancelled()) { Trans trans = progressDialog.getTrans(); String loggingText = progressDialog.getLoggingText(); if (trans.getResult()!=null && trans.getResult().getNrErrors()>0) { EnterTextDialog etd = new EnterTextDialog(shell, Messages.getString("System.Dialog.Error.Title"), Messages.getString("TextFileInputDialog.ErrorInPreview.DialogMessage"), loggingText, true ); etd.setReadOnly(); etd.open(); } PreviewRowsDialog prd =new PreviewRowsDialog(shell, SWT.NONE, wStepname.getText(), progressDialog.getPreviewRows(wStepname.getText()), loggingText); prd.open(); } } }
|
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/b1b74a3e00078c1fea8897e0dbe9a39bc9c9701d/TextFileInputDialog.java/buggy/src/be/ibridge/kettle/trans/step/textfileinput/TextFileInputDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
10143,
1435,
565,
288,
3639,
368,
1788,
326,
3167,
810,
2235,
3639,
3867,
812,
1210,
2781,
1245,
2781,
273,
394,
3867,
812,
1210,
2781,
5621,
3639,
17142,
12,
476,
2781,
1769,
3639,
2604,
2781,
10143,
2781,
273,
2604,
11124,
1733,
18,
7163,
11124,
15292,
12,
476,
2781,
16,
341,
4160,
529,
18,
588,
1528,
10663,
7734,
15439,
1854,
6353,
1300,
6353,
273,
394,
15439,
1854,
6353,
12,
10304,
16,
3458,
16,
6604,
16,
4838,
18,
588,
780,
2932,
1528,
812,
1210,
6353,
18,
11124,
1225,
18,
6353,
4247,
6,
3631,
4838,
18,
588,
780,
2932,
1528,
812,
1210,
6353,
18,
11124,
1225,
18,
6353,
1079,
7923,
1769,
3639,
509,
10143,
1225,
273,
1300,
6353,
18,
3190,
5621,
3639,
309,
261,
12102,
1225,
34,
20,
13,
3639,
288,
5411,
2604,
11124,
5491,
6353,
4007,
6353,
273,
394,
2604,
11124,
5491,
6353,
12,
10304,
16,
10143,
2781,
16,
394,
514,
8526,
288,
341,
4160,
529,
18,
588,
1528,
1435,
19879,
394,
509,
8526,
288,
10143,
1225,
289,
11272,
5411,
4007,
6353,
18,
3190,
5621,
13491,
309,
16051,
8298,
6353,
18,
291,
21890,
10756,
5411,
288,
7734,
2604,
906,
273,
4007,
6353,
18,
588,
1429,
5621,
7734,
514,
2907,
1528,
273,
4007,
6353,
18,
588,
7735,
1528,
5621,
27573,
309,
261,
2338,
18,
588,
1253,
1435,
5,
33,
2011,
597,
906,
18,
588,
1253,
7675,
588,
18726,
4229,
1435,
34,
20,
13,
7734,
288,
1171,
202,
10237,
1528,
6353,
3393,
72,
273,
394,
15439,
1528,
6353,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
10143,
1435,
565,
288,
3639,
368,
1788,
326,
3167,
810,
2235,
3639,
3867,
812,
1210,
2781,
1245,
2781,
273,
394,
3867,
812,
1210,
2781,
5621,
3639,
17142,
12,
476,
2781,
1769,
3639,
2604,
2781,
10143,
2781,
273,
2604,
11124,
1733,
18,
7163,
11124,
15292,
12,
476,
2781,
16,
341,
4160,
529,
18,
588,
1528,
10663,
7734,
15439,
1854,
6353,
1300,
6353,
273,
394,
15439,
1854,
6353,
12,
10304,
16,
3458,
16,
6604,
16,
4838,
18,
588,
780,
2932,
1528,
812,
1210,
6353,
18,
11124,
1225,
18,
6353,
4247,
6,
3631,
4838,
18,
588,
780,
2932,
1528,
812,
1210,
6353,
18,
11124,
1225,
18,
6353,
1079,
7923,
1769,
3639,
509,
10143,
1225,
273,
1300,
6353,
18,
3190,
2
] |
|
return new DefaultMonitor();
|
public IProgressMonitor getDefaultMonitor() { //only need a default monitor for operations the UI thread if (Display.getCurrent() == null) return super.getDefaultMonitor(); return new DefaultMonitor(); }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/2e7dc730649441690c6caeb4caed8895e396307d/ProgressManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
5491,
7187,
4829,
7187,
1435,
288,
202,
202,
759,
3700,
1608,
279,
805,
6438,
364,
5295,
326,
6484,
2650,
202,
202,
430,
261,
4236,
18,
588,
3935,
1435,
422,
446,
13,
1082,
202,
2463,
2240,
18,
588,
1868,
7187,
5621,
202,
202,
2463,
394,
2989,
7187,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
5491,
7187,
4829,
7187,
1435,
288,
202,
202,
759,
3700,
1608,
279,
805,
6438,
364,
5295,
326,
6484,
2650,
202,
202,
430,
261,
4236,
18,
588,
3935,
1435,
422,
446,
13,
1082,
202,
2463,
2240,
18,
588,
1868,
7187,
5621,
202,
202,
2463,
394,
2989,
7187,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
return strVal; }
|
private String parseVCMorVCS() throws DRDAProtocolException { String strVal = null; int vcm_length = reader.readNetworkShort(); if (vcm_length > 0) strVal = parseCcsidMBC(vcm_length); int vcs_length = reader.readNetworkShort(); if (vcs_length > 0) { if (strVal != null) agentError ("Both VCM and VCS have lengths > 0"); strVal = parseCcsidSBC(vcs_length); } return strVal; }
|
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/977561c9de22d12b40a3a2f79a8df22ba7fc7752/DRDAConnThread.java/buggy/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
1109,
58,
9611,
280,
58,
4596,
1435,
1216,
16801,
9793,
5752,
503,
288,
202,
780,
609,
3053,
273,
446,
31,
202,
474,
331,
7670,
67,
2469,
273,
2949,
18,
896,
3906,
4897,
5621,
202,
430,
261,
4227,
81,
67,
2469,
405,
374,
13,
202,
565,
609,
3053,
273,
1109,
39,
2143,
350,
7969,
39,
12,
4227,
81,
67,
2469,
1769,
202,
474,
20255,
67,
2469,
273,
2949,
18,
896,
3906,
4897,
5621,
202,
430,
261,
18982,
67,
2469,
405,
374,
13,
288,
202,
565,
309,
261,
701,
3053,
480,
446,
13,
202,
202,
5629,
668,
7566,
20240,
776,
9611,
471,
776,
4596,
1240,
10917,
405,
374,
8863,
202,
565,
609,
3053,
273,
1109,
39,
2143,
350,
14541,
39,
12,
18982,
67,
2469,
1769,
202,
97,
202,
2463,
609,
3053,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
1109,
58,
9611,
280,
58,
4596,
1435,
1216,
16801,
9793,
5752,
503,
288,
202,
780,
609,
3053,
273,
446,
31,
202,
474,
331,
7670,
67,
2469,
273,
2949,
18,
896,
3906,
4897,
5621,
202,
430,
261,
4227,
81,
67,
2469,
405,
374,
13,
202,
565,
609,
3053,
273,
1109,
39,
2143,
350,
7969,
39,
12,
4227,
81,
67,
2469,
1769,
202,
474,
20255,
67,
2469,
273,
2949,
18,
896,
3906,
4897,
5621,
202,
430,
261,
18982,
67,
2469,
405,
374,
13,
288,
202,
565,
309,
261,
701,
3053,
480,
446,
13,
202,
202,
5629,
668,
7566,
20240,
776,
9611,
471,
776,
4596,
1240,
10917,
405,
374,
8863,
202,
565,
609,
3053,
273,
1109,
39,
2143,
350,
2
] |
|
public static String assetDesc(Asset asset){ String nsn = getAssetIdentifier(asset); return nsn+"("+getPartNomenclature(asset)+")"; }
|
public static String assetDesc(Asset asset) { String nsn = getAssetIdentifier(asset); return nsn + "(" + getPartNomenclature(asset) + ")"; }
|
public static String assetDesc(Asset asset){ String nsn = getAssetIdentifier(asset); return nsn+"("+getPartNomenclature(asset)+")"; }
|
7171 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7171/5c2a2c77f4cef92c09bc9108d87221a8f423d1d5/AssetUtils.java/buggy/glm/src/org/cougaar/glm/plugins/AssetUtils.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
3310,
4217,
12,
6672,
3310,
15329,
202,
780,
3153,
82,
273,
24689,
3004,
12,
9406,
1769,
202,
2463,
3153,
82,
9078,
2932,
15,
588,
1988,
26685,
275,
830,
1231,
12,
9406,
13,
9078,
2225,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
3310,
4217,
12,
6672,
3310,
15329,
202,
780,
3153,
82,
273,
24689,
3004,
12,
9406,
1769,
202,
2463,
3153,
82,
9078,
2932,
15,
588,
1988,
26685,
275,
830,
1231,
12,
9406,
13,
9078,
2225,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if( functionScope == null ) return null; ExpressionResult expResult = ((ASTExpression)rhs).getResultType(); List parameters = null; if(expResult instanceof ExpressionResultList){ ExpressionResultList expResultList = (ExpressionResultList) expResult; parameters = expResultList.getResultList(); }else { parameters = new ArrayList(1); parameters.add(expResult.getResult()); } if( functionScope.equals( startingScope ) ) symbol = lookupQualifiedName(functionScope, functionId, ITypeInfo.t_function, parameters, references, false); else symbol = lookupQualifiedName(functionScope, functionId, ITypeInfo.t_function, parameters, references, false, LookupType.QUALIFIED ); } return symbol; }
|
if (idExpression != null) symbol = lookupQualifiedName(startingScope, idExpression, references, false); IContainerSymbol searchScope = getSearchScope(kind, lhs, startingScope); if (searchScope != null && !searchScope.equals(startingScope)) symbol = lookupQualifiedName(searchScope, ((ASTIdExpression) rhs) .getIdExpressionTokenDuple(), references, false, LookupType.QUALIFIED); if (kind == IASTExpression.Kind.PRIMARY_THIS) { try { symbol = startingScope.lookup(THIS); } catch (ParserSymbolTableException e) { handleProblem(e.createProblemID(), THIS); } } if (kind == IASTExpression.Kind.POSTFIX_FUNCTIONCALL) { ITokenDuple functionId = getFunctionId(lhs); IContainerSymbol functionScope = getSearchScope(lhs .getExpressionKind(), lhs.getLHSExpression(), startingScope); if (functionScope == null) return null; ExpressionResult expResult = ((ASTExpression) rhs).getResultType(); List parameters = null; if (expResult instanceof ExpressionResultList) { ExpressionResultList expResultList = (ExpressionResultList) expResult; parameters = expResultList.getResultList(); } else { parameters = new ArrayList(1); parameters.add(expResult.getResult()); } if (functionScope.equals(startingScope)) symbol = lookupQualifiedName(functionScope, functionId, ITypeInfo.t_function, parameters, references, false); else symbol = lookupQualifiedName(functionScope, functionId, ITypeInfo.t_function, parameters, references, false, LookupType.QUALIFIED); } return symbol; }
|
private ISymbol getExpressionSymbol( IASTScope scope, Kind kind, IASTExpression lhs, IASTExpression rhs, ITokenDuple idExpression, List references )throws ASTSemanticException { ISymbol symbol = null; IContainerSymbol startingScope = scopeToSymbol( scope ); //If the expression has an id, look up id and add it to references if( idExpression != null ) symbol = lookupQualifiedName( startingScope, idExpression, references, false ); // If the expression is lookup symbol if it is in the scope of a type after a "." or an "->" IContainerSymbol searchScope = getSearchScope(kind, lhs, startingScope); if ( searchScope != null && !searchScope.equals(startingScope)) symbol = lookupQualifiedName(searchScope, ((ASTIdExpression)rhs).getIdExpressionTokenDuple(), references, false, LookupType.QUALIFIED ); // get symbol if it is the "this" pointer // go up the scope until you hit a class if (kind == IASTExpression.Kind.PRIMARY_THIS){ try{ symbol = startingScope.lookup( THIS ); //$NON-NLS-1$ }catch (ParserSymbolTableException e){ handleProblem( e.createProblemID(), THIS ); //$NON-NLS-1$ } } // lookup symbol if it is a function call if (kind == IASTExpression.Kind.POSTFIX_FUNCTIONCALL){ ITokenDuple functionId = getFunctionId(lhs); IContainerSymbol functionScope = getSearchScope(lhs.getExpressionKind(), lhs.getLHSExpression(), startingScope); if( functionScope == null ) return null; ExpressionResult expResult = ((ASTExpression)rhs).getResultType(); List parameters = null; if(expResult instanceof ExpressionResultList){ ExpressionResultList expResultList = (ExpressionResultList) expResult; parameters = expResultList.getResultList(); }else { parameters = new ArrayList(1); parameters.add(expResult.getResult()); } if( functionScope.equals( startingScope ) ) symbol = lookupQualifiedName(functionScope, functionId, ITypeInfo.t_function, parameters, references, false); else symbol = lookupQualifiedName(functionScope, functionId, ITypeInfo.t_function, parameters, references, false, LookupType.QUALIFIED ); } return symbol; }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/541fa7e85eea40dd09a8cb946908dd9f930b913f/CompleteParseASTFactory.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/complete/CompleteParseASTFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
4437,
3284,
16183,
5335,
12,
1082,
565,
467,
9053,
3876,
2146,
16,
1875,
565,
5851,
3846,
16,
1875,
565,
467,
9053,
2300,
8499,
16,
1082,
202,
45,
9053,
2300,
7711,
16,
1082,
202,
1285,
969,
40,
2268,
612,
2300,
16,
1875,
202,
682,
5351,
262,
15069,
9183,
13185,
9941,
503,
202,
95,
377,
202,
5127,
3284,
3273,
273,
446,
31,
202,
202,
45,
2170,
5335,
5023,
3876,
273,
2146,
774,
5335,
12,
2146,
11272,
202,
377,
202,
377,
1082,
202,
759,
2047,
326,
2652,
711,
392,
612,
16,
2324,
731,
612,
471,
527,
518,
358,
5351,
1082,
202,
430,
12,
612,
2300,
480,
446,
262,
1082,
202,
7175,
273,
3689,
12345,
12,
5023,
3876,
16,
612,
2300,
16,
5351,
16,
629,
11272,
202,
540,
202,
202,
759,
971,
326,
2652,
353,
3689,
3273,
309,
518,
353,
316,
326,
2146,
434,
279,
618,
1839,
279,
4585,
578,
392,
315,
2122,
6,
202,
202,
45,
2170,
5335,
1623,
3876,
273,
15627,
3876,
12,
9224,
16,
8499,
16,
5023,
3876,
1769,
202,
202,
430,
261,
1623,
3876,
480,
446,
597,
401,
3072,
3876,
18,
14963,
12,
18526,
3876,
3719,
1082,
202,
7175,
273,
3689,
12345,
12,
3072,
3876,
16,
14015,
9053,
548,
2300,
13,
86,
4487,
2934,
26321,
2300,
1345,
40,
2268,
9334,
5351,
16,
629,
16,
8834,
559,
18,
8729,
13519,
11272,
9506,
377,
6862,
202,
759,
336,
3273,
309,
518,
353,
326,
315,
2211,
6,
4407,
202,
202,
759,
1960,
731,
326,
2146,
3180,
1846,
6800,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
4437,
3284,
16183,
5335,
12,
1082,
565,
467,
9053,
3876,
2146,
16,
1875,
565,
5851,
3846,
16,
1875,
565,
467,
9053,
2300,
8499,
16,
1082,
202,
45,
9053,
2300,
7711,
16,
1082,
202,
1285,
969,
40,
2268,
612,
2300,
16,
1875,
202,
682,
5351,
262,
15069,
9183,
13185,
9941,
503,
202,
95,
377,
202,
5127,
3284,
3273,
273,
446,
31,
202,
202,
45,
2170,
5335,
5023,
3876,
273,
2146,
774,
5335,
12,
2146,
11272,
202,
377,
202,
377,
1082,
202,
759,
2047,
326,
2652,
711,
392,
612,
16,
2324,
731,
612,
471,
527,
518,
358,
5351,
1082,
202,
430,
12,
612,
2300,
480,
446,
262,
1082,
202,
7175,
273,
3689,
12345,
12,
5023,
3876,
16,
612,
2300,
2
] |
sender.send(msgContext);
|
sender.send(outMsgContext);
|
public void invokeAndsend(MessageContext msgContext) throws AxisFault { Provider provider = msgContext.getService().getProvider(); log.info("start invoke the web service impl"); MessageContext outMsgContext = provider.invoke(msgContext); log.info("Invoked the Web Servivces impl"); Sender sender = new Sender(); sender.send(msgContext); }
|
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/d497c6f0dc175c7949a65c78a0b78c8b99be4010/InOutSyncReceiver.java/buggy/modules/core/src/java/org/apache/axis/receivers/InOutSyncReceiver.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4356,
1876,
4661,
12,
1079,
1042,
1234,
1042,
13,
1216,
15509,
7083,
288,
3639,
7561,
2893,
273,
1234,
1042,
18,
588,
1179,
7675,
588,
2249,
5621,
3639,
613,
18,
1376,
2932,
1937,
4356,
326,
3311,
1156,
9380,
8863,
3639,
2350,
1042,
596,
3332,
1042,
273,
2893,
18,
14407,
12,
3576,
1042,
1769,
3639,
613,
18,
1376,
2932,
26215,
326,
2999,
1275,
90,
427,
764,
9380,
8863,
3639,
15044,
5793,
273,
394,
15044,
5621,
3639,
5793,
18,
4661,
12,
659,
3332,
1042,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4356,
1876,
4661,
12,
1079,
1042,
1234,
1042,
13,
1216,
15509,
7083,
288,
3639,
7561,
2893,
273,
1234,
1042,
18,
588,
1179,
7675,
588,
2249,
5621,
3639,
613,
18,
1376,
2932,
1937,
4356,
326,
3311,
1156,
9380,
8863,
3639,
2350,
1042,
596,
3332,
1042,
273,
2893,
18,
14407,
12,
3576,
1042,
1769,
3639,
613,
18,
1376,
2932,
26215,
326,
2999,
1275,
90,
427,
764,
9380,
8863,
3639,
15044,
5793,
273,
394,
15044,
5621,
3639,
5793,
18,
4661,
12,
659,
3332,
1042,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
TreeNode bookmarksRoot = (TreeNode) bookmarksTree.getRoot();
|
/*********
|
public EMWindow (String title, String binDir, String url, int winnum, EmbeddedMozilla Creator) { super(title); popup = new PopupMenu(); creator = Creator; currentURL = url; winNum = winnum; myBinDir = binDir; mInPrintPreview = false; System.out.println("constructed with binDir: " + binDir + " url: " + url); setSize(defaultWidth, defaultHeight); createMenubar(); createToolbar(url); // Create the browser try { BrowserControlFactory.setAppData(binDir); browserControl = BrowserControlFactory.newBrowserControl(); browserCanvas = (BrowserControlCanvas) browserControl.queryInterface(BrowserControl.BROWSER_CONTROL_CANVAS_NAME); } catch(Exception e) { System.out.println("Can't create BrowserControl: " + e.getMessage()); } Assert.assert_it(null != browserCanvas); browserCanvas.setSize(defaultWidth, defaultHeight); // Add the control panel and the browserCanvas add(browserCanvas, BorderLayout.CENTER); // Create the status panel createStatusbar(); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { System.out.println("Got windowClosing"); System.out.println("destroying the BrowserControl"); EMWindow.this.delete(); // should close the BrowserControlCanvas creator.DestroyEMWindow(winNum); } public void windowClosed(WindowEvent e) { System.out.println("Got windowClosed"); } }); // Create the Context Menus add(popup); popup.add(popup_ViewSource = new MenuItem("View Source as ByteArray")); popup.add(popup_SelectAll = new MenuItem("Select All")); popup.add(popup_ViewSelection = new MenuItem("View Selection")); contextListener = new PopupActionListener(); popup_ViewSource.addActionListener (contextListener); popup_SelectAll.addActionListener (contextListener); popup_ViewSelection.addActionListener (contextListener); show(); toFront(); try { navigation = (Navigation2) browserControl.queryInterface(BrowserControl.NAVIGATION_NAME); navigation.setPrompt(this); currentPage = (CurrentPage2) browserControl.queryInterface(BrowserControl.CURRENT_PAGE_NAME); history = (History) browserControl.queryInterface(BrowserControl.HISTORY_NAME); prefs = (Preferences) browserControl.queryInterface(BrowserControl.PREFERENCES_NAME); prefs.registerPrefChangedCallback(this, "network.cookie.warnAboutCookies", "This IS the Closure!"); prefs.setPref("network.cookie.warnAboutCookies", "true"); prefs.setPref("browser.cache.disk_cache_size", "0"); // pull out the proxies, and make java aware of them Properties prefsProps = prefs.getPrefs(); String proxyHost = (String) prefsProps.get("network.proxy.http"); String proxyPort = (String) prefsProps.get("network.proxy.http_port"); if (null != proxyHost && null != proxyPort) { System.setProperty("http.proxyHost", proxyHost); System.setProperty("http.proxyPort", proxyPort); } //prefsProps = prefs.getPrefs(); //prefsProps.list(System.out); // This works, try it! } catch (Exception e) { System.out.println(e.toString()); } try { EventRegistration eventRegistration = (EventRegistration) browserControl.queryInterface(BrowserControl.EVENT_REGISTRATION_NAME); eventRegistration.addDocumentLoadListener(this); eventRegistration.addMouseListener(this); // PENDING(edburns): test code, replace with production code bookmarks = (Bookmarks) browserControl.queryInterface(BrowserControl.BOOKMARKS_NAME); System.out.println("debug: edburns: got Bookmarks instance"); bookmarksTree = bookmarks.getBookmarks(); /********* TreeNode bookmarksRoot = (TreeNode) bookmarksTree.getRoot(); System.out.println("debug: edburns: testing the Enumeration"); int childCount = bookmarksRoot.getChildCount(); System.out.println("debug: edburns: root has " + childCount + " children."); Enumeration rootChildren = bookmarksRoot.children(); TreeNode currentChild; int i = 0, childIndex; while (rootChildren.hasMoreElements()) { currentChild = (TreeNode) rootChildren.nextElement(); System.out.println("debug: edburns: bookmarks root has children! child: " + i + " name: " + currentChild.toString()); i++; } System.out.println("debug: edburns: testing getChildAt(" + --i + "): "); currentChild = bookmarksRoot.getChildAt(i); System.out.println("debug: edburns: testing getIndex(Child " + i + "): index should be " + i + "."); childIndex = bookmarksRoot.getIndex(currentChild); System.out.println("debug: edburns: index is: " + childIndex); *****/ /********** System.out.println("debug: edburns: got new entry"); Properties entryProps = entry.getProperties(); System.out.println("debug: edburns: entry url: " + entryProps.getProperty(BookmarkEntry.URL)); bookmarks.addBookmark(folder, entry); **********/ } catch (Exception e) { System.out.println(e.toString()); } if (null != navigation) { navigation.loadURL(url); } } // EMWindow() ctor
|
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/c51f266635955ea9a40fa057209a78cf7b0fb900/EMWindow.java/buggy/java/webclient/classes_spec/org/mozilla/webclient/test/EMWindow.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
7141,
3829,
261,
780,
2077,
16,
514,
4158,
1621,
16,
514,
880,
16,
509,
5657,
2107,
16,
21829,
49,
11142,
10745,
29525,
13,
565,
288,
3639,
2240,
12,
2649,
1769,
3639,
10431,
273,
394,
10264,
416,
4599,
5621,
3639,
11784,
273,
29525,
31,
3639,
783,
1785,
273,
880,
31,
3639,
5657,
2578,
273,
5657,
2107,
31,
3639,
3399,
9913,
1621,
273,
4158,
1621,
31,
3639,
312,
382,
5108,
11124,
273,
629,
31,
3639,
2332,
18,
659,
18,
8222,
2932,
10062,
329,
598,
4158,
1621,
30,
315,
397,
4158,
1621,
397,
315,
880,
30,
315,
397,
880,
1769,
5411,
19106,
12,
1886,
2384,
16,
805,
2686,
1769,
5411,
752,
49,
275,
373,
297,
5621,
3639,
752,
17907,
12,
718,
1769,
3639,
368,
1788,
326,
4748,
3639,
775,
288,
5411,
15408,
3367,
1733,
18,
542,
3371,
751,
12,
4757,
1621,
1769,
5411,
4748,
3367,
273,
15408,
3367,
1733,
18,
2704,
9132,
3367,
5621,
5411,
4748,
12971,
273,
7734,
261,
9132,
3367,
12971,
13,
7734,
4748,
3367,
18,
2271,
1358,
12,
9132,
3367,
18,
38,
24846,
67,
18248,
67,
39,
1258,
58,
3033,
67,
1985,
1769,
3639,
289,
3639,
1044,
12,
503,
425,
13,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
2568,
1404,
752,
15408,
3367,
30,
315,
397,
1171,
9079,
425,
18,
24906,
10663,
3639,
289,
3639,
5452,
18,
11231,
67,
305,
12,
2011,
480,
4748,
12971,
1769,
3639,
4748,
12971,
18,
542,
1225,
12,
1886,
2384,
16,
805,
2686,
1769,
3639,
368,
1436,
326,
3325,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
7141,
3829,
261,
780,
2077,
16,
514,
4158,
1621,
16,
514,
880,
16,
509,
5657,
2107,
16,
21829,
49,
11142,
10745,
29525,
13,
565,
288,
3639,
2240,
12,
2649,
1769,
3639,
10431,
273,
394,
10264,
416,
4599,
5621,
3639,
11784,
273,
29525,
31,
3639,
783,
1785,
273,
880,
31,
3639,
5657,
2578,
273,
5657,
2107,
31,
3639,
3399,
9913,
1621,
273,
4158,
1621,
31,
3639,
312,
382,
5108,
11124,
273,
629,
31,
3639,
2332,
18,
659,
18,
8222,
2932,
10062,
329,
598,
4158,
1621,
30,
315,
397,
4158,
1621,
397,
315,
880,
30,
315,
397,
880,
1769,
5411,
19106,
12,
1886,
2384,
16,
805,
2686,
1769,
5411,
752,
49,
275,
373,
297,
5621,
3639,
752,
17907,
12,
2
] |
if (personActionForm.getPersonnelRoles() != null && personActionForm.getPersonnelRoles().length > 0) { List<Role> selectList = new ArrayList<Role>();
|
boolean addFlag = false; List<Role> selectList = new ArrayList<Role>(); if (personActionForm.getPersonnelRoles() != null) {
|
private void updateRoleLists(HttpServletRequest request, PersonActionForm personActionForm) throws PageExpiredException { if (personActionForm.getPersonnelRoles() != null && personActionForm.getPersonnelRoles().length > 0) { List<Role> selectList = new ArrayList<Role>(); List<Role> masterList = (List<Role>) SessionUtils.getAttribute( PersonnelConstants.ROLEMASTERLIST, request); for (Role role : masterList) { for (String roleId : personActionForm.getPersonnelRoles()) { if (role.getId().intValue() == Integer.valueOf(roleId) .intValue()) { selectList.add(role); } } } SessionUtils.setAttribute(PersonnelConstants.PERSONNEL_ROLES_LIST, selectList, request); } else { SessionUtils.setAttribute(PersonnelConstants.PERSONNEL_ROLES_LIST, null, request); } }
|
45468 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45468/18bbdf065f83fd3af954164ea7953d4869b7de0b/PersonAction.java/buggy/mifos/src/org/mifos/application/personnel/struts/action/PersonAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1089,
2996,
7432,
12,
2940,
18572,
590,
16,
1082,
202,
8346,
1803,
1204,
6175,
1803,
1204,
13,
1216,
3460,
10556,
503,
288,
202,
202,
430,
261,
12479,
1803,
1204,
18,
588,
8346,
3084,
6898,
1435,
480,
446,
597,
6175,
1803,
1204,
18,
588,
8346,
3084,
6898,
7675,
2469,
405,
374,
13,
288,
1082,
202,
682,
32,
2996,
34,
2027,
682,
273,
394,
2407,
32,
2996,
34,
5621,
1082,
202,
682,
32,
2996,
34,
4171,
682,
273,
261,
682,
32,
2996,
23429,
3877,
1989,
18,
588,
1499,
12,
6862,
202,
8346,
3084,
2918,
18,
16256,
28045,
7085,
16,
590,
1769,
1082,
202,
1884,
261,
2996,
2478,
294,
4171,
682,
13,
288,
9506,
202,
1884,
261,
780,
21152,
294,
6175,
1803,
1204,
18,
588,
8346,
3084,
6898,
10756,
288,
6862,
202,
430,
261,
4615,
18,
26321,
7675,
474,
620,
1435,
422,
2144,
18,
1132,
951,
12,
4615,
548,
13,
6862,
1082,
202,
18,
474,
620,
10756,
288,
25083,
202,
4025,
682,
18,
1289,
12,
4615,
1769,
6862,
202,
97,
9506,
202,
97,
1082,
202,
97,
202,
1875,
202,
2157,
1989,
18,
542,
1499,
12,
8346,
3084,
2918,
18,
3194,
1413,
50,
2247,
67,
30797,
67,
7085,
16,
6862,
202,
4025,
682,
16,
590,
1769,
202,
202,
97,
469,
288,
1082,
202,
2157,
1989,
18,
542,
1499,
12,
8346,
3084,
2918,
18,
3194,
1413,
50,
2247,
67,
30797,
67,
7085,
16,
6862,
202,
2011,
16,
590,
1769,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1089,
2996,
7432,
12,
2940,
18572,
590,
16,
1082,
202,
8346,
1803,
1204,
6175,
1803,
1204,
13,
1216,
3460,
10556,
503,
288,
202,
202,
430,
261,
12479,
1803,
1204,
18,
588,
8346,
3084,
6898,
1435,
480,
446,
597,
6175,
1803,
1204,
18,
588,
8346,
3084,
6898,
7675,
2469,
405,
374,
13,
288,
1082,
202,
682,
32,
2996,
34,
2027,
682,
273,
394,
2407,
32,
2996,
34,
5621,
1082,
202,
682,
32,
2996,
34,
4171,
682,
273,
261,
682,
32,
2996,
23429,
3877,
1989,
18,
588,
1499,
12,
6862,
202,
8346,
3084,
2918,
18,
16256,
28045,
7085,
16,
590,
1769,
1082,
202,
1884,
261,
2996,
2478,
294,
4171,
682,
13,
288,
9506,
202,
1884,
261,
780,
2
] |
out.flush();
|
if(out!=null) out.flush(); if(cache!=null) cache.flush();
|
public void flush() throws IOException { out.flush(); }
|
1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/8c201561d4daf351373e8c3bea4c18097c9abbca/CachingOutputStream.java/clean/source/org/apache/xml/serialize/CachingOutputStream.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3663,
1435,
1216,
1860,
288,
3639,
309,
12,
659,
5,
33,
2011,
13,
596,
18,
11330,
5621,
309,
12,
2493,
5,
33,
2011,
13,
1247,
18,
11330,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3663,
1435,
1216,
1860,
288,
3639,
309,
12,
659,
5,
33,
2011,
13,
596,
18,
11330,
5621,
309,
12,
2493,
5,
33,
2011,
13,
1247,
18,
11330,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public static void notifyUsers(Topic t, TopicDAO tm) throws Exception
|
public static void notifyUsers(Topic t, TopicDAO tm)
|
public static void notifyUsers(Topic t, TopicDAO tm) throws Exception { if (SystemGlobals.getBoolValue(ConfigKeys.MAIL_NOTIFY_ANSWERS)) { try { List usersToNotify = tm.notifyUsers(t); // we only have to send an email if there are users // subscribed to the topic if (usersToNotify != null && usersToNotify.size() > 0) { QueuedExecutor.getInstance().execute( new EmailSenderTask(new TopicSpammer(t, usersToNotify))); } } catch (Exception e) { logger.warn("Error while sending notification emails: " + e); } } }
|
52144 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52144/f4af364dacad27a1238104a19d90e4a102043281/TopicsCommon.java/buggy/src/net/jforum/view/forum/common/TopicsCommon.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
5066,
6588,
12,
6657,
268,
16,
11789,
18485,
6118,
13,
1216,
1185,
202,
95,
202,
202,
430,
261,
3163,
19834,
18,
588,
7464,
620,
12,
809,
2396,
18,
18191,
67,
4400,
12096,
67,
11607,
59,
11367,
3719,
288,
1082,
202,
698,
288,
9506,
202,
682,
3677,
774,
9168,
273,
6118,
18,
12336,
6588,
12,
88,
1769,
9506,
202,
759,
732,
1338,
1240,
358,
1366,
392,
2699,
309,
1915,
854,
3677,
9506,
202,
759,
16445,
358,
326,
3958,
9506,
202,
430,
261,
5577,
774,
9168,
480,
446,
597,
3677,
774,
9168,
18,
1467,
1435,
405,
374,
13,
288,
6862,
202,
21039,
6325,
18,
588,
1442,
7675,
8837,
12,
6862,
1082,
202,
2704,
8166,
12021,
2174,
12,
2704,
11789,
3389,
301,
6592,
12,
88,
16,
3677,
774,
9168,
3719,
1769,
9506,
202,
97,
1082,
202,
97,
1082,
202,
14683,
261,
503,
425,
13,
288,
9506,
202,
4901,
18,
8935,
2932,
668,
1323,
5431,
3851,
14255,
30,
315,
397,
425,
1769,
1082,
202,
97,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
5066,
6588,
12,
6657,
268,
16,
11789,
18485,
6118,
13,
1216,
1185,
202,
95,
202,
202,
430,
261,
3163,
19834,
18,
588,
7464,
620,
12,
809,
2396,
18,
18191,
67,
4400,
12096,
67,
11607,
59,
11367,
3719,
288,
1082,
202,
698,
288,
9506,
202,
682,
3677,
774,
9168,
273,
6118,
18,
12336,
6588,
12,
88,
1769,
9506,
202,
759,
732,
1338,
1240,
358,
1366,
392,
2699,
309,
1915,
854,
3677,
9506,
202,
759,
16445,
358,
326,
3958,
9506,
202,
430,
261,
5577,
774,
9168,
480,
446,
597,
3677,
774,
9168,
18,
1467,
1435,
405,
374,
13,
288,
6862,
202,
21039,
6325,
18,
588,
1442,
7675,
8837,
12,
6862,
1082,
202,
2704,
8166,
12021,
2174,
2
] |
WeaponType wt = (WeaponType)((Mounted)entity.getWeaponList().elementAt(i)).getType();
|
WeaponType wt = (WeaponType)((Mounted)entity.getWeaponList().get(i)).getType();
|
private boolean isMatch(Entity entity) { int walk = -1; try { walk = Integer.parseInt(m_tWalk.getText()); } catch (NumberFormatException ne) { } if (walk > -1) { if (m_cWalk.getSelectedIndex() == 0) { //at least if (entity.getWalkMP() < walk) return false; } else if (m_cWalk.getSelectedIndex() == 1) { //equal to if (walk != entity.getWalkMP()) return false; } else if (m_cWalk.getSelectedIndex() == 2) { //not more than if (entity.getWalkMP() > walk) return false; } } int jump = -1; try { jump = Integer.parseInt(m_tJump.getText()); } catch (NumberFormatException ne) { } if (jump > -1) { if (m_cJump.getSelectedIndex() == 0) { //at least if (entity.getJumpMP() < jump) return false; } else if (m_cJump.getSelectedIndex() == 1) { //equal to if (jump != entity.getJumpMP()) return false; } else if (m_cJump.getSelectedIndex() == 2) { //not more than if (entity.getJumpMP() > jump) return false; } } int sel = m_cArmor.getSelectedIndex(); if (sel > 0) { int armor = entity.getTotalArmor(); int maxArmor = entity.getTotalInternal() * 2 + 3; if (sel == 1) { if (armor < (maxArmor * .25)) return false; } else if (sel == 2) { if (armor < (maxArmor * .5)) return false; } else if (sel == 3) { if (armor < (maxArmor * .75)) return false; } else if (sel == 4) { if (armor < (maxArmor * .9)) return false; } } boolean weaponLine1Active = false; boolean weaponLine2Active = false; boolean foundWeapon1 = false; boolean foundWeapon2 = false; int count = 0; int weapon1 = -1; try { weapon1 = Integer.parseInt(m_tWeapons1.getText()); } catch (NumberFormatException ne) { } if (weapon1 > -1) { weaponLine1Active = true; for (int i = 0; i < entity.getWeaponList().size(); i++) { WeaponType wt = (WeaponType)((Mounted)entity.getWeaponList().elementAt(i)).getType(); if (wt.getName().equals(m_cWeapons1.getSelectedItem())) { count++; } } if (count >= weapon1) foundWeapon1 = true; } count = 0; int weapon2 = -1; try { weapon2 = Integer.parseInt(m_tWeapons2.getText()); } catch (NumberFormatException ne) { } if (weapon2 > -1) { weaponLine2Active = true; for (int i = 0; i < entity.getWeaponList().size(); i++) { WeaponType wt = (WeaponType)((Mounted)entity.getWeaponList().elementAt(i)).getType(); if (wt.getName().equals(m_cWeapons2.getSelectedItem())) { count++; } } if (count >= weapon2) foundWeapon2 = true; } if (weaponLine1Active && !weaponLine2Active && !foundWeapon1) return false; if (weaponLine2Active && !weaponLine1Active && !foundWeapon2) return false; if (weaponLine1Active && weaponLine2Active) { if (m_cOrAnd.getSelectedIndex() == 0 /* 0 is "or" choice */) { if (!foundWeapon1 && !foundWeapon2) return false; } else { //"and" choice in effect if (!foundWeapon1 || !foundWeapon2) return false; } } count = 0; if (m_chkEquipment.getState()) { for (Enumeration e = entity.getMisc(); e.hasMoreElements(); ) { MiscType mt = (MiscType)((Mounted)e.nextElement()).getType(); if (mt.getName().equals(m_cEquipment.getSelectedItem())) { count++; } } if (count < 1) return false; } return true; }
|
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/cbe74d020e74a85c0e3b8ebf32d1ebc85c1ba62f/MechSelectorDialog.java/clean/megamek/src/megamek/client/ui/AWT/MechSelectorDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
29895,
12,
1943,
1522,
13,
288,
3639,
509,
5442,
273,
300,
21,
31,
3639,
775,
288,
5411,
5442,
273,
2144,
18,
2670,
1702,
12,
81,
67,
88,
9463,
18,
588,
1528,
10663,
3639,
289,
1044,
261,
1854,
9291,
1073,
13,
288,
289,
3639,
309,
261,
11348,
405,
300,
21,
13,
288,
5411,
309,
261,
81,
67,
71,
9463,
18,
588,
7416,
1016,
1435,
422,
374,
13,
288,
368,
270,
4520,
7734,
309,
261,
1096,
18,
588,
9463,
4566,
1435,
411,
5442,
13,
10792,
327,
629,
31,
5411,
289,
469,
309,
261,
81,
67,
71,
9463,
18,
588,
7416,
1016,
1435,
422,
404,
13,
288,
368,
9729,
358,
7734,
309,
261,
11348,
480,
1522,
18,
588,
9463,
4566,
10756,
10792,
327,
629,
31,
5411,
289,
469,
309,
261,
81,
67,
71,
9463,
18,
588,
7416,
1016,
1435,
422,
576,
13,
288,
368,
902,
1898,
2353,
7734,
309,
261,
1096,
18,
588,
9463,
4566,
1435,
405,
5442,
13,
10792,
327,
629,
31,
5411,
289,
3639,
289,
3639,
509,
11833,
273,
300,
21,
31,
3639,
775,
288,
5411,
11833,
273,
2144,
18,
2670,
1702,
12,
81,
67,
88,
26743,
18,
588,
1528,
10663,
3639,
289,
1044,
261,
1854,
9291,
1073,
13,
288,
289,
3639,
309,
261,
24574,
405,
300,
21,
13,
288,
5411,
309,
261,
81,
67,
71,
26743,
18,
588,
7416,
1016,
1435,
422,
374,
13,
288,
368,
270,
4520,
7734,
309,
261,
1096,
18,
588,
26743,
4566,
1435,
411,
11833,
13,
10792,
327,
629,
31,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
29895,
12,
1943,
1522,
13,
288,
3639,
509,
5442,
273,
300,
21,
31,
3639,
775,
288,
5411,
5442,
273,
2144,
18,
2670,
1702,
12,
81,
67,
88,
9463,
18,
588,
1528,
10663,
3639,
289,
1044,
261,
1854,
9291,
1073,
13,
288,
289,
3639,
309,
261,
11348,
405,
300,
21,
13,
288,
5411,
309,
261,
81,
67,
71,
9463,
18,
588,
7416,
1016,
1435,
422,
374,
13,
288,
368,
270,
4520,
7734,
309,
261,
1096,
18,
588,
9463,
4566,
1435,
411,
5442,
13,
10792,
327,
629,
31,
5411,
289,
469,
309,
261,
81,
67,
71,
9463,
18,
588,
7416,
1016,
1435,
422,
404,
13,
288,
368,
9729,
358,
7734,
309,
261,
11348,
480,
1522,
18,
588,
9463,
2
] |
} catch (Exception e) { String errMsg = "DoneWithSelection::addChildrenToContext(): Unable to add child to context"; Utility.logMessage("ERROR", errMsg); throw new ChainedException(errMsg, e); }
|
public void addChildrenToContext (Vector gmCollection, CGroupsManagerSessionData sessionData, Element parentElem, Document model) throws ChainedException { ChannelRuntimeData runtimeData = sessionData.runtimeData; // Considerations: // The parent element is myGroups and there is only one. String childName = ""; IGroupMember childGm = null; String userID = getUserID(sessionData); String ownerType = "p"; int ordinal = 1; boolean expanded = false; try{ /** @todo should put this in the RDBM add method */ java.sql.Timestamp dateCreated = new java.sql.Timestamp(System.currentTimeMillis()); Element childElem; Iterator gmItr = gmCollection.iterator(); while (gmItr.hasNext()) { childGm = (IGroupMember) gmItr.next(); String type = ""; childName = GroupsManagerXML.getEntityName(childGm.getType(), childGm.getKey()); type = childGm.getType().getName(); String groupID = childGm.getKey(); // can only add groups as initial group contexts if (type.equals(GROUP_CLASSNAME)) { Utility.logMessage("DEBUG", "DoneWithSelection::addChildrenToContext: About to add child"); // add to users initial contexts IInitialGroupContext igc = Utility.createInitialGroupContext(userID, ownerType, groupID, ordinal, expanded, dateCreated); // save to persistent source igc.update(); // add child to user's igc node IEntityGroup entGrp = GroupsManagerXML.retrieveGroup(groupID); childElem = GroupsManagerXML.getGroupMemberXml((IGroupMember)entGrp, false, null, model); parentElem.appendChild((Node)childElem); parentElem.setAttribute("hasMembers", "true"); } } } catch (Exception e) { String errMsg = "DoneWithSelection::addChildrenToContext(): Unable to add child to context"; Utility.logMessage("ERROR", errMsg); throw new ChainedException(errMsg, e); } }
|
24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/fc98a5010ef8c1049b9908944452dcf337a8ed43/DoneWithSelection.java/clean/source/org/jasig/portal/channels/groupsmanager/commands/DoneWithSelection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
527,
4212,
774,
1042,
261,
5018,
14125,
2532,
16,
385,
3621,
1318,
2157,
751,
1339,
751,
16,
540,
3010,
982,
7498,
16,
4319,
938,
13,
1216,
7824,
329,
503,
288,
1850,
5307,
5576,
751,
3099,
751,
273,
1339,
751,
18,
9448,
751,
31,
1377,
368,
23047,
1012,
30,
1377,
368,
1021,
982,
930,
353,
3399,
3621,
471,
1915,
353,
1338,
1245,
18,
1377,
514,
27440,
273,
1408,
31,
1377,
467,
1114,
4419,
1151,
43,
81,
273,
446,
31,
1377,
514,
16299,
273,
4735,
734,
12,
3184,
751,
1769,
1377,
514,
3410,
559,
273,
315,
84,
14432,
1377,
509,
12675,
273,
404,
31,
1377,
1250,
8406,
273,
629,
31,
1377,
775,
95,
540,
1783,
632,
9012,
1410,
1378,
333,
316,
326,
534,
2290,
49,
527,
707,
1195,
540,
2252,
18,
4669,
18,
4921,
1509,
6119,
273,
394,
2252,
18,
4669,
18,
4921,
12,
3163,
18,
2972,
28512,
10663,
540,
3010,
1151,
7498,
31,
540,
4498,
14125,
28984,
273,
14125,
2532,
18,
9838,
5621,
540,
1323,
261,
23336,
28984,
18,
5332,
2134,
10756,
288,
5411,
1151,
43,
81,
273,
261,
45,
1114,
4419,
13,
14125,
28984,
18,
4285,
5621,
5411,
514,
618,
273,
1408,
31,
5411,
27440,
273,
14712,
1318,
4201,
18,
588,
19441,
12,
3624,
43,
81,
18,
588,
559,
9334,
1151,
43,
81,
18,
588,
653,
10663,
5411,
618,
273,
1151,
43,
81,
18,
588,
559,
7675,
17994,
5621,
5411,
514,
30365,
273,
1151,
43,
81,
18,
588,
653,
5621,
5411,
368,
848,
1338,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
527,
4212,
774,
1042,
261,
5018,
14125,
2532,
16,
385,
3621,
1318,
2157,
751,
1339,
751,
16,
540,
3010,
982,
7498,
16,
4319,
938,
13,
1216,
7824,
329,
503,
288,
1850,
5307,
5576,
751,
3099,
751,
273,
1339,
751,
18,
9448,
751,
31,
1377,
368,
23047,
1012,
30,
1377,
368,
1021,
982,
930,
353,
3399,
3621,
471,
1915,
353,
1338,
1245,
18,
1377,
514,
27440,
273,
1408,
31,
1377,
467,
1114,
4419,
1151,
43,
81,
273,
446,
31,
1377,
514,
16299,
273,
4735,
734,
12,
3184,
751,
1769,
1377,
514,
3410,
559,
273,
315,
84,
14432,
1377,
509,
12675,
273,
404,
31,
1377,
1250,
8406,
273,
629,
31,
1377,
775,
95,
540,
1783,
632,
9012,
1410,
2
] |
|
input = ref.getRestoredInput();
|
input = ref.getEditorInput();
|
public IStatus busyRestoreEditor(Editor ref) { // If the part has already been restored, exit if (ref.getPart(false) != null) return Status.OK_STATUS; if (ref.creationInProgress) { IStatus result = WorkbenchPlugin.getStatus( new PartInitException(NLS.bind("Warning: Detected recursive attempt by editor {0} to create itself (this is probably, but not necessarily, a bug)", //$NON-NLS-1$ ref.getId()))); WorkbenchPlugin.log(result); return result; } try { ref.creationInProgress = true; PartInitException exception = null; // Try to restore the editor -- this does the real work of restoring the editor // try { busyRestoreEditorHelper(ref); } catch (PartInitException e2) { exception = e2; } // If unable to create the part, create an error part instead if (exception != null) { IStatus originalStatus = exception.getStatus(); IStatus logStatus = StatusUtil.newStatus(originalStatus, NLS.bind("Unable to create editor ID {0}: {1}", //$NON-NLS-1$ ref.getId(), originalStatus.getMessage())); WorkbenchPlugin.log(logStatus); IStatus displayStatus = StatusUtil.newStatus(originalStatus, NLS.bind(WorkbenchMessages.EditorManager_unableToCreateEditor, originalStatus.getMessage())); ErrorEditorPart part = new ErrorEditorPart(displayStatus); IEditorInput input; try { input = ref.getRestoredInput(); } catch (PartInitException e1) { input = new NullEditorInput(); } EditorPane pane = (EditorPane)ref.getPane(); pane.createControl((Composite) page.getEditorPresentation().getLayoutPart().getControl()); EditorDescriptor descr = ref.getDescriptor(); EditorSite site = new EditorSite(ref, part, page, descr); site.setActionBars(new EditorActionBars(new NullActionBars(), ref.getId())); try { part.init(site, input); } catch (PartInitException e) { return e.getStatus(); } Composite parent = (Composite)pane.getControl(); Composite content = new Composite(parent, SWT.NONE); content.setLayout(new FillLayout()); try { part.createPartControl(content); } catch (Exception e) { content.dispose(); return exception.getStatus(); } ref.setPart(part); ref.refreshFromPart(); page.addPart(ref); page.firePartOpened(part); } } finally { ref.creationInProgress = false; } return Status.OK_STATUS; }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d819a8e50b85d6a040adbe9e21de6320c18f3d44/EditorManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
1482,
21697,
10874,
6946,
12,
6946,
1278,
13,
288,
7734,
368,
971,
326,
1087,
711,
1818,
2118,
18751,
16,
2427,
3639,
309,
261,
1734,
18,
588,
1988,
12,
5743,
13,
480,
446,
13,
5411,
327,
2685,
18,
3141,
67,
8608,
31,
3639,
309,
261,
1734,
18,
17169,
13434,
13,
288,
5411,
467,
1482,
563,
273,
4147,
22144,
3773,
18,
588,
1482,
12,
10792,
394,
6393,
2570,
503,
12,
5106,
18,
4376,
2932,
6210,
30,
8083,
828,
5904,
4395,
635,
4858,
288,
20,
97,
358,
752,
6174,
261,
2211,
353,
8656,
16,
1496,
486,
23848,
16,
279,
7934,
2225,
16,
225,
4329,
3993,
17,
5106,
17,
21,
8,
18701,
1278,
18,
26321,
1435,
3719,
1769,
5411,
4147,
22144,
3773,
18,
1330,
12,
2088,
1769,
5411,
327,
563,
31,
3639,
289,
3639,
775,
288,
5411,
1278,
18,
17169,
13434,
273,
638,
31,
13491,
6393,
2570,
503,
1520,
273,
446,
31,
13491,
368,
6161,
358,
5217,
326,
4858,
1493,
333,
1552,
326,
2863,
1440,
434,
3127,
6053,
326,
4858,
5411,
368,
5411,
775,
288,
7734,
21697,
10874,
6946,
2276,
12,
1734,
1769,
5411,
289,
1044,
261,
1988,
2570,
503,
425,
22,
13,
288,
7734,
1520,
273,
425,
22,
31,
5411,
289,
13491,
368,
971,
13496,
358,
752,
326,
1087,
16,
752,
392,
555,
1087,
3560,
5411,
309,
261,
4064,
480,
446,
13,
288,
27573,
467,
1482,
2282,
1482,
273,
1520,
18,
588,
1482,
5621,
7734,
467,
1482,
613,
1482,
273,
2685,
1304,
18,
2704,
1482,
12,
8830,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
1482,
21697,
10874,
6946,
12,
6946,
1278,
13,
288,
7734,
368,
971,
326,
1087,
711,
1818,
2118,
18751,
16,
2427,
3639,
309,
261,
1734,
18,
588,
1988,
12,
5743,
13,
480,
446,
13,
5411,
327,
2685,
18,
3141,
67,
8608,
31,
3639,
309,
261,
1734,
18,
17169,
13434,
13,
288,
5411,
467,
1482,
563,
273,
4147,
22144,
3773,
18,
588,
1482,
12,
10792,
394,
6393,
2570,
503,
12,
5106,
18,
4376,
2932,
6210,
30,
8083,
828,
5904,
4395,
635,
4858,
288,
20,
97,
358,
752,
6174,
261,
2211,
353,
8656,
16,
1496,
486,
23848,
16,
279,
7934,
2225,
16,
225,
4329,
3993,
17,
5106,
17,
21,
8,
18701,
1278,
18,
26321,
1435,
3719,
1769,
5411,
4147,
2
] |
if (d0 != d1) {
|
if (d0 > d1) {
|
public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof Number) && ! (data[0] instanceof String)) { throw new PainterException("ne: wrong arguments"); } if (data[0] instanceof Number) { if (! (data[1] instanceof Number)) { throw new PainterException("ne: wrong arguments"); } double d0, d1; d0 = ( (Number) data[0]).doubleValue(); d1 = ( (Number) data[1]).doubleValue(); if (d0 != d1) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } else { if (! (data[1] instanceof String)) { throw new PainterException("ne: wrong arguments"); } String s0, s1; s0 = (String) data[0]; s1 = (String) data[1]; if (s0.equals(s1)) { context.operands.push(new Boolean(false)); } else { context.operands.push(new Boolean(true)); } } }
|
6653 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6653/847947ee757ac47e8514ce31066d7b04585dcfbb/PAContext.java/buggy/src/com/lowagie/text/pdf/codec/postscript/PAContext.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
1033,
501,
8526,
31,
3639,
501,
273,
819,
18,
5120,
3542,
5708,
12,
22,
1769,
3639,
309,
16051,
261,
892,
63,
20,
65,
1276,
3588,
13,
597,
401,
261,
892,
63,
20,
65,
1276,
514,
3719,
288,
1850,
604,
394,
453,
11606,
503,
2932,
4644,
30,
7194,
1775,
8863,
3639,
289,
3639,
309,
261,
892,
63,
20,
65,
1276,
3588,
13,
288,
1850,
309,
16051,
261,
892,
63,
21,
65,
1276,
3588,
3719,
288,
5411,
604,
394,
453,
11606,
503,
2932,
4644,
30,
7194,
1775,
8863,
1850,
289,
1850,
1645,
302,
20,
16,
302,
21,
31,
1850,
302,
20,
273,
261,
261,
1854,
13,
501,
63,
20,
65,
2934,
9056,
620,
5621,
1850,
302,
21,
273,
261,
261,
1854,
13,
501,
63,
21,
65,
2934,
9056,
620,
5621,
1850,
309,
261,
72,
20,
405,
302,
21,
13,
288,
5411,
819,
18,
4063,
5708,
18,
6206,
12,
2704,
3411,
12,
3767,
10019,
1850,
289,
1850,
469,
288,
5411,
819,
18,
4063,
5708,
18,
6206,
12,
2704,
3411,
12,
5743,
10019,
1850,
289,
3639,
289,
3639,
469,
288,
1850,
309,
16051,
261,
892,
63,
21,
65,
1276,
514,
3719,
288,
5411,
604,
394,
453,
11606,
503,
2932,
4644,
30,
7194,
1775,
8863,
1850,
289,
1850,
514,
272,
20,
16,
272,
21,
31,
1850,
272,
20,
273,
261,
780,
13,
501,
63,
20,
15533,
1850,
272,
21,
273,
261,
780,
13,
501,
63,
21,
15533,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
1033,
501,
8526,
31,
3639,
501,
273,
819,
18,
5120,
3542,
5708,
12,
22,
1769,
3639,
309,
16051,
261,
892,
63,
20,
65,
1276,
3588,
13,
597,
401,
261,
892,
63,
20,
65,
1276,
514,
3719,
288,
1850,
604,
394,
453,
11606,
503,
2932,
4644,
30,
7194,
1775,
8863,
3639,
289,
3639,
309,
261,
892,
63,
20,
65,
1276,
3588,
13,
288,
1850,
309,
16051,
261,
892,
63,
21,
65,
1276,
3588,
3719,
288,
5411,
604,
394,
453,
11606,
503,
2932,
4644,
30,
7194,
1775,
8863,
1850,
289,
1850,
1645,
302,
20,
16,
302,
21,
31,
1850,
302,
20,
273,
261,
261,
1854,
13,
2
] |
sb.replace(0, targetStr.length(), targetStr); } return sb.toString();
|
return targetStr + paddingStr.substring(paddingStr.length() - targetStr.length()); }
|
public static String align(String targetStr, String paddingStr, String type) { if (targetStr.length() >= paddingStr.length()) return targetStr.substring(0, paddingStr.length()); StringBuffer sb = new StringBuffer(paddingStr); if (type.equals("right")) { sb.replace(paddingStr.length() - targetStr.length(), paddingStr.length(), targetStr); } else if (type.equals("center")) { int startIndex = (paddingStr.length() - targetStr.length()) / 2; sb.replace(startIndex, startIndex + targetStr.length(), targetStr); } // Default is left else { sb.replace(0, targetStr.length(), targetStr); } return sb.toString(); }
|
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/2e40dad3a94e79246c8f779e00b9e0674e678a44/ExsltStrings.java/clean/src/org/apache/xalan/lib/ExsltStrings.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
514,
5689,
12,
780,
1018,
1585,
16,
514,
4992,
1585,
16,
514,
618,
13,
225,
288,
565,
309,
261,
3299,
1585,
18,
2469,
1435,
1545,
4992,
1585,
18,
2469,
10756,
1377,
327,
1018,
1585,
18,
28023,
12,
20,
16,
4992,
1585,
18,
2469,
10663,
3639,
6674,
2393,
273,
394,
6674,
12,
9598,
1585,
1769,
565,
309,
261,
723,
18,
14963,
2932,
4083,
6,
3719,
565,
288,
1377,
2393,
18,
2079,
12,
9598,
1585,
18,
2469,
1435,
300,
1018,
1585,
18,
2469,
9334,
4992,
1585,
18,
2469,
9334,
1018,
1585,
1769,
565,
289,
565,
469,
309,
261,
723,
18,
14963,
2932,
5693,
6,
3719,
565,
288,
1377,
509,
10588,
273,
261,
9598,
1585,
18,
2469,
1435,
300,
1018,
1585,
18,
2469,
10756,
342,
576,
31,
1377,
2393,
18,
2079,
12,
1937,
1016,
16,
10588,
397,
1018,
1585,
18,
2469,
9334,
1018,
1585,
1769,
565,
289,
565,
368,
2989,
353,
2002,
565,
469,
565,
288,
1377,
2393,
18,
2079,
12,
20,
16,
1018,
1585,
18,
2469,
9334,
1018,
1585,
1769,
565,
289,
3639,
327,
2393,
18,
10492,
5621,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
514,
5689,
12,
780,
1018,
1585,
16,
514,
4992,
1585,
16,
514,
618,
13,
225,
288,
565,
309,
261,
3299,
1585,
18,
2469,
1435,
1545,
4992,
1585,
18,
2469,
10756,
1377,
327,
1018,
1585,
18,
28023,
12,
20,
16,
4992,
1585,
18,
2469,
10663,
3639,
6674,
2393,
273,
394,
6674,
12,
9598,
1585,
1769,
565,
309,
261,
723,
18,
14963,
2932,
4083,
6,
3719,
565,
288,
1377,
2393,
18,
2079,
12,
9598,
1585,
18,
2469,
1435,
300,
1018,
1585,
18,
2469,
9334,
4992,
1585,
18,
2469,
9334,
1018,
1585,
1769,
565,
289,
565,
469,
309,
261,
723,
18,
14963,
2932,
5693,
6,
3719,
565,
288,
1377,
509,
10588,
273,
261,
9598,
1585,
18,
2469,
1435,
300,
2
] |
if (! origin.isShowing () ) { return; } addNotify (); Event e = new Event (origin, 0, 0, x, y, 0, 0); PopupMenuPeer p = (PopupMenuPeer) peer; p.show (e);
|
public void show(Component origin, int x, int y) { // FIXME }
|
27835 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27835/708062224a502c41561e122dcde5accf23f77ad9/PopupMenu.java/clean/libjava/java/awt/PopupMenu.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
16051,
4026,
18,
291,
5706,
310,
1832,
225,
262,
288,
225,
327,
31,
289,
225,
527,
9168,
261,
1769,
2587,
425,
273,
394,
2587,
261,
10012,
16,
374,
16,
374,
16,
619,
16,
677,
16,
374,
16,
374,
1769,
10264,
416,
4599,
6813,
293,
273,
261,
13770,
4599,
6813,
13,
4261,
31,
293,
18,
4500,
261,
73,
1769,
309,
16051,
4026,
18,
291,
5706,
310,
1832,
225,
262,
288,
225,
327,
31,
289,
225,
527,
9168,
261,
1769,
2587,
425,
273,
394,
2587,
261,
10012,
16,
374,
16,
374,
16,
619,
16,
677,
16,
374,
16,
374,
1769,
10264,
416,
4599,
6813,
293,
273,
261,
13770,
4599,
6813,
13,
4261,
31,
293,
18,
4500,
261,
73,
1769,
1071,
430,
16051,
4026,
18,
291,
5706,
310,
1832,
225,
262,
288,
225,
327,
31,
289,
225,
527,
9168,
261,
1769,
2587,
425,
273,
394,
2587,
261,
10012,
16,
374,
16,
374,
16,
619,
16,
677,
16,
374,
16,
374,
1769,
10264,
416,
4599,
6813,
293,
273,
261,
13770,
4599,
6813,
13,
4261,
31,
293,
18,
4500,
261,
73,
1769,
918,
430,
16051,
4026,
18,
291,
5706,
310,
1832,
225,
262,
288,
225,
327,
31,
289,
225,
527,
9168,
261,
1769,
2587,
425,
273,
394,
2587,
261,
10012,
16,
374,
16,
374,
16,
619,
16,
677,
16,
374,
16,
374,
1769,
10264,
416,
4599,
6813,
293,
273,
261,
13770,
4599,
6813,
13,
4261,
31,
293,
18,
4500,
261,
73,
1769,
2405,
12,
1841,
430,
16051,
4026,
18,
291,
5706,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
16051,
4026,
18,
291,
5706,
310,
1832,
225,
262,
288,
225,
327,
31,
289,
225,
527,
9168,
261,
1769,
2587,
425,
273,
394,
2587,
261,
10012,
16,
374,
16,
374,
16,
619,
16,
677,
16,
374,
16,
374,
1769,
10264,
416,
4599,
6813,
293,
273,
261,
13770,
4599,
6813,
13,
4261,
31,
293,
18,
4500,
261,
73,
1769,
309,
16051,
4026,
18,
291,
5706,
310,
1832,
225,
262,
288,
225,
327,
31,
289,
225,
527,
9168,
261,
1769,
2587,
425,
273,
394,
2587,
261,
10012,
16,
374,
16,
374,
16,
619,
16,
677,
16,
374,
16,
374,
1769,
10264,
416,
4599,
6813,
293,
273,
261,
13770,
4599,
6813,
13,
4261,
31,
293,
18,
4500,
261,
73,
1769,
1071,
2
] |
|
log.error(msg);
|
log.debug(msg);
|
public void unlock() throws UnsupportedRepositoryOperationException, LockException, AccessDeniedException, InvalidItemStateException, RepositoryException { // check state of this instance sanityCheck(); // check for pending changes if (hasPendingChanges()) { String msg = "Unable to checkin node. Node has pending changes: " + safeGetJCRPath(); log.error(msg); throw new InvalidItemStateException(msg); } checkLockable(); // @todo implement locking support throw new UnsupportedRepositoryOperationException(); }
|
48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/3b7f71d681f98b81e7e99a2ad0c83e71116624e7/NodeImpl.java/clean/src/java/org/apache/jackrabbit/core/NodeImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
7186,
1435,
5411,
1216,
7221,
3305,
10602,
16,
3488,
503,
16,
5411,
21665,
16,
1962,
1180,
5060,
16,
5411,
13367,
288,
3639,
368,
866,
919,
434,
333,
791,
3639,
16267,
1564,
5621,
3639,
368,
866,
364,
4634,
3478,
3639,
309,
261,
5332,
8579,
7173,
10756,
288,
5411,
514,
1234,
273,
315,
3370,
358,
866,
267,
756,
18,
2029,
711,
4634,
3478,
30,
315,
397,
4183,
967,
46,
5093,
743,
5621,
5411,
613,
18,
4148,
12,
3576,
1769,
5411,
604,
394,
1962,
1180,
5060,
12,
3576,
1769,
3639,
289,
3639,
866,
2531,
429,
5621,
3639,
368,
632,
9012,
2348,
18887,
2865,
3639,
604,
394,
7221,
3305,
10602,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
7186,
1435,
5411,
1216,
7221,
3305,
10602,
16,
3488,
503,
16,
5411,
21665,
16,
1962,
1180,
5060,
16,
5411,
13367,
288,
3639,
368,
866,
919,
434,
333,
791,
3639,
16267,
1564,
5621,
3639,
368,
866,
364,
4634,
3478,
3639,
309,
261,
5332,
8579,
7173,
10756,
288,
5411,
514,
1234,
273,
315,
3370,
358,
866,
267,
756,
18,
2029,
711,
4634,
3478,
30,
315,
397,
4183,
967,
46,
5093,
743,
5621,
5411,
613,
18,
4148,
12,
3576,
1769,
5411,
604,
394,
1962,
1180,
5060,
12,
3576,
1769,
3639,
289,
3639,
866,
2531,
429,
5621,
3639,
368,
632,
9012,
2348,
18887,
2865,
3639,
604,
394,
7221,
3305,
10602,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
PropertyDescriptor[] lDescriptors = PropertyUtils.getPropertyDescriptors(getClass());
|
PropertyDescriptor[] descriptors = PropertyUtils.getPropertyDescriptors(getClass());
|
public boolean searchGetterFor(String pPropertyName) { PropertyDescriptor[] lDescriptors = PropertyUtils.getPropertyDescriptors(getClass()); // iterate on property descriptors for (int lCount = 0; lCount < lDescriptors.length; lCount++) { if (pPropertyName.equals(lDescriptors[lCount].getName())) { return true; } } return false; }
|
10316 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10316/25d083fe0fe8895c42000be582aec456d669ab44/Decorator.java/buggy/displaytag/src/main/java/org/displaytag/decorator/Decorator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1623,
8461,
1290,
12,
780,
293,
13073,
13,
565,
288,
3639,
26761,
8526,
14215,
273,
4276,
1989,
18,
588,
1396,
12705,
12,
588,
797,
10663,
3639,
368,
7401,
603,
1272,
14215,
3639,
364,
261,
474,
328,
1380,
273,
374,
31,
328,
1380,
411,
328,
12705,
18,
2469,
31,
328,
1380,
27245,
3639,
288,
5411,
309,
261,
84,
13073,
18,
14963,
12,
80,
12705,
63,
80,
1380,
8009,
17994,
1435,
3719,
5411,
288,
7734,
327,
638,
31,
5411,
289,
3639,
289,
3639,
327,
629,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1623,
8461,
1290,
12,
780,
293,
13073,
13,
565,
288,
3639,
26761,
8526,
14215,
273,
4276,
1989,
18,
588,
1396,
12705,
12,
588,
797,
10663,
3639,
368,
7401,
603,
1272,
14215,
3639,
364,
261,
474,
328,
1380,
273,
374,
31,
328,
1380,
411,
328,
12705,
18,
2469,
31,
328,
1380,
27245,
3639,
288,
5411,
309,
261,
84,
13073,
18,
14963,
12,
80,
12705,
63,
80,
1380,
8009,
17994,
1435,
3719,
5411,
288,
7734,
327,
638,
31,
5411,
289,
3639,
289,
3639,
327,
629,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public org.quickfix.field.NestedPartySubID getNestedPartySubID() throws FieldNotFound { org.quickfix.field.NestedPartySubID value = new org.quickfix.field.NestedPartySubID();
|
public quickfix.field.NestedPartySubID getNestedPartySubID() throws FieldNotFound { quickfix.field.NestedPartySubID value = new quickfix.field.NestedPartySubID();
|
public org.quickfix.field.NestedPartySubID getNestedPartySubID() throws FieldNotFound { org.quickfix.field.NestedPartySubID value = new org.quickfix.field.NestedPartySubID(); getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/PositionMaintenanceReport.java/buggy/src/java/src/quickfix/fix44/PositionMaintenanceReport.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8649,
17619,
1676,
734,
336,
8649,
17619,
1676,
734,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8649,
17619,
1676,
734,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
8649,
17619,
1676,
734,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8649,
17619,
1676,
734,
336,
8649,
17619,
1676,
734,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8649,
17619,
1676,
734,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
8649,
17619,
1676,
734,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
DefaultMutableTreeNode root = (DefaultMutableTreeNode) mod.getRoot();
|
TreeNode root = (TreeNode) mod.getRoot();
|
public Rectangle getPathBounds(JTree tree, TreePath path) { if (path != null) { Object cell = path.getLastPathComponent(); TreeModel mod = tree.getModel(); DefaultMutableTreeNode root = (DefaultMutableTreeNode) mod.getRoot(); if (!tree.isRootVisible() && tree.isExpanded(new TreePath(root))) root = root.getNextNode(); Point loc = getCellLocation(0, 0, tree, mod, cell, root); return getCellBounds(loc.x, loc.y, cell); } return null; }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/03ccc48ad99f370100d28d05282f5ecf9aba8ad6/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
13264,
4339,
5694,
12,
46,
2471,
2151,
16,
4902,
743,
589,
13,
202,
95,
1377,
309,
261,
803,
480,
446,
13,
1377,
288,
540,
1033,
2484,
273,
589,
18,
588,
3024,
743,
1841,
5621,
540,
4902,
1488,
681,
273,
2151,
18,
588,
1488,
5621,
540,
20270,
1365,
273,
261,
12513,
13,
681,
18,
588,
2375,
5621,
540,
309,
16051,
3413,
18,
291,
2375,
6207,
1435,
5411,
597,
2151,
18,
291,
17957,
12,
2704,
4902,
743,
12,
3085,
20349,
5411,
1365,
273,
1365,
18,
588,
2134,
907,
5621,
540,
4686,
1515,
273,
16458,
2735,
12,
20,
16,
374,
16,
2151,
16,
681,
16,
2484,
16,
1365,
1769,
540,
327,
16458,
5694,
12,
1829,
18,
92,
16,
1515,
18,
93,
16,
2484,
1769,
1377,
289,
202,
202,
2463,
446,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
13264,
4339,
5694,
12,
46,
2471,
2151,
16,
4902,
743,
589,
13,
202,
95,
1377,
309,
261,
803,
480,
446,
13,
1377,
288,
540,
1033,
2484,
273,
589,
18,
588,
3024,
743,
1841,
5621,
540,
4902,
1488,
681,
273,
2151,
18,
588,
1488,
5621,
540,
20270,
1365,
273,
261,
12513,
13,
681,
18,
588,
2375,
5621,
540,
309,
16051,
3413,
18,
291,
2375,
6207,
1435,
5411,
597,
2151,
18,
291,
17957,
12,
2704,
4902,
743,
12,
3085,
20349,
5411,
1365,
273,
1365,
18,
588,
2134,
907,
5621,
540,
4686,
1515,
273,
16458,
2735,
12,
20,
16,
374,
16,
2151,
16,
681,
16,
2484,
16,
1365,
1769,
540,
327,
16458,
5694,
12,
1829,
18,
92,
16,
1515,
2
] |
IPerspectiveDescriptor desc = findPerspectiveWithId(id); if (desc != null) throw new IllegalArgumentException();
|
IPerspectiveDescriptor desc = findPerspectiveWithId(id); if (desc != null) throw new IllegalArgumentException();
|
public IPerspectiveDescriptor clonePerspective(String id, String label, IPerspectiveDescriptor originalDescriptor) { // Check for invalid labels if (label == null || !(label.trim().length() > 0)) throw new IllegalArgumentException(); // Check for duplicates IPerspectiveDescriptor desc = findPerspectiveWithId(id); if (desc != null) throw new IllegalArgumentException(); // Create descriptor. desc = new PerspectiveDescriptor(id, label, (PerspectiveDescriptor) originalDescriptor); add((PerspectiveDescriptor) desc); return desc; }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/0707a6aff6dbd240f7c0b2dae47e64da2f4fd627/PerspectiveRegistry.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/PerspectiveRegistry.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2971,
414,
16772,
3187,
3236,
14781,
16772,
12,
780,
612,
16,
514,
1433,
16,
5411,
2971,
414,
16772,
3187,
2282,
3187,
13,
288,
3639,
368,
2073,
364,
2057,
3249,
3639,
309,
261,
1925,
422,
446,
747,
401,
12,
1925,
18,
5290,
7675,
2469,
1435,
405,
374,
3719,
5411,
604,
394,
2754,
5621,
3639,
368,
2073,
364,
11211,
3639,
2971,
414,
16772,
3187,
3044,
273,
1104,
14781,
16772,
1190,
548,
12,
350,
1769,
3639,
309,
261,
5569,
480,
446,
13,
5411,
604,
394,
2754,
5621,
3639,
368,
1788,
4950,
18,
3639,
3044,
273,
394,
453,
414,
16772,
3187,
12,
350,
16,
1433,
16,
7734,
261,
14781,
16772,
3187,
13,
2282,
3187,
1769,
3639,
527,
12443,
14781,
16772,
3187,
13,
3044,
1769,
3639,
327,
3044,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2971,
414,
16772,
3187,
3236,
14781,
16772,
12,
780,
612,
16,
514,
1433,
16,
5411,
2971,
414,
16772,
3187,
2282,
3187,
13,
288,
3639,
368,
2073,
364,
2057,
3249,
3639,
309,
261,
1925,
422,
446,
747,
401,
12,
1925,
18,
5290,
7675,
2469,
1435,
405,
374,
3719,
5411,
604,
394,
2754,
5621,
3639,
368,
2073,
364,
11211,
3639,
2971,
414,
16772,
3187,
3044,
273,
1104,
14781,
16772,
1190,
548,
12,
350,
1769,
3639,
309,
261,
5569,
480,
446,
13,
5411,
604,
394,
2754,
5621,
3639,
368,
1788,
4950,
18,
3639,
3044,
273,
394,
453,
414,
16772,
3187,
12,
350,
16,
1433,
16,
7734,
261,
14781,
16772,
3187,
13,
2282,
3187,
1769,
3639,
527,
12443,
14781,
16772,
3187,
2
] |
generateRegExpLiterals(cx, scope);
|
generateRegExpLiterals(cx);
|
private void generateICodeFromTree(Context cx, Scriptable scope, Node tree) { generateNestedFunctions(cx, scope); generateRegExpLiterals(cx, scope); int theICodeTop = 0; theICodeTop = generateICode(tree, theICodeTop); itsLabels.fixLabelGotos(itsData.itsICode); // add Icode_END only to scripts as function always ends with RETURN if (itsData.itsFunctionType == 0) { theICodeTop = addIcode(Icode_END, theICodeTop); } // Add special CATCH to simplify Interpreter.interpret logic // and workaround lack of goto in Java theICodeTop = addIcode(Icode_CATCH, theICodeTop); itsData.itsICodeTop = theICodeTop; if (itsData.itsICode.length != theICodeTop) { // Make itsData.itsICode length exactly theICodeTop to save memory // and catch bugs with jumps beyound icode as early as possible byte[] tmp = new byte[theICodeTop]; System.arraycopy(itsData.itsICode, 0, tmp, 0, theICodeTop); itsData.itsICode = tmp; } if (itsStrings.size() == 0) { itsData.itsStringTable = null; } else { itsData.itsStringTable = new String[itsStrings.size()]; ObjToIntMap.Iterator iter = itsStrings.newIterator(); for (iter.start(); !iter.done(); iter.next()) { String str = (String)iter.getKey(); int index = iter.getValue(); if (itsData.itsStringTable[index] != null) Context.codeBug(); itsData.itsStringTable[index] = str; } } if (itsDoubleTableTop == 0) { itsData.itsDoubleTable = null; } else if (itsData.itsDoubleTable.length != itsDoubleTableTop) { double[] tmp = new double[itsDoubleTableTop]; System.arraycopy(itsData.itsDoubleTable, 0, tmp, 0, itsDoubleTableTop); itsData.itsDoubleTable = tmp; } if (itsExceptionTableTop != 0 && itsData.itsExceptionTable.length != itsExceptionTableTop) { int[] tmp = new int[itsExceptionTableTop]; System.arraycopy(itsData.itsExceptionTable, 0, tmp, 0, itsExceptionTableTop); itsData.itsExceptionTable = tmp; } itsData.itsMaxVars = scriptOrFn.getParamAndVarCount(); // itsMaxFrameArray: interpret method needs this amount for its // stack and sDbl arrays itsData.itsMaxFrameArray = itsData.itsMaxVars + itsData.itsMaxLocals + itsData.itsMaxStack; itsData.argNames = scriptOrFn.getParamAndVarNames(); itsData.argCount = scriptOrFn.getParamCount(); itsData.encodedSourceStart = scriptOrFn.getEncodedSourceStart(); itsData.encodedSourceEnd = scriptOrFn.getEncodedSourceEnd(); if (Token.printICode) dumpICode(itsData); }
|
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/40f7554390dea10ea64bd490d09230d2c0814929/Interpreter.java/clean/src/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
45,
1085,
1265,
2471,
12,
1042,
9494,
16,
22780,
2146,
16,
2029,
2151,
13,
565,
288,
3639,
2103,
8649,
7503,
12,
71,
92,
16,
2146,
1769,
3639,
2103,
13673,
48,
11235,
12,
71,
92,
1769,
3639,
509,
326,
45,
1085,
3401,
273,
374,
31,
3639,
326,
45,
1085,
3401,
273,
2103,
45,
1085,
12,
3413,
16,
326,
45,
1085,
3401,
1769,
3639,
2097,
5888,
18,
904,
2224,
43,
12440,
12,
1282,
751,
18,
1282,
45,
1085,
1769,
3639,
368,
527,
467,
710,
67,
4415,
1338,
358,
8873,
487,
445,
3712,
3930,
598,
14780,
3639,
309,
261,
1282,
751,
18,
1282,
2083,
559,
422,
374,
13,
288,
5411,
326,
45,
1085,
3401,
273,
527,
45,
710,
12,
45,
710,
67,
4415,
16,
326,
45,
1085,
3401,
1769,
3639,
289,
3639,
368,
1436,
4582,
385,
5858,
358,
16499,
5294,
11599,
18,
24713,
4058,
3639,
368,
471,
18975,
30679,
434,
2897,
316,
5110,
3639,
326,
45,
1085,
3401,
273,
527,
45,
710,
12,
45,
710,
67,
39,
5858,
16,
326,
45,
1085,
3401,
1769,
3639,
2097,
751,
18,
1282,
45,
1085,
3401,
273,
326,
45,
1085,
3401,
31,
3639,
309,
261,
1282,
751,
18,
1282,
45,
1085,
18,
2469,
480,
326,
45,
1085,
3401,
13,
288,
5411,
368,
4344,
2097,
751,
18,
1282,
45,
1085,
769,
8950,
326,
45,
1085,
3401,
358,
1923,
3778,
5411,
368,
471,
1044,
22398,
598,
525,
23868,
324,
402,
772,
277,
710,
487,
11646,
487,
3323,
5411,
1160,
8526,
1853,
273,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
45,
1085,
1265,
2471,
12,
1042,
9494,
16,
22780,
2146,
16,
2029,
2151,
13,
565,
288,
3639,
2103,
8649,
7503,
12,
71,
92,
16,
2146,
1769,
3639,
2103,
13673,
48,
11235,
12,
71,
92,
1769,
3639,
509,
326,
45,
1085,
3401,
273,
374,
31,
3639,
326,
45,
1085,
3401,
273,
2103,
45,
1085,
12,
3413,
16,
326,
45,
1085,
3401,
1769,
3639,
2097,
5888,
18,
904,
2224,
43,
12440,
12,
1282,
751,
18,
1282,
45,
1085,
1769,
3639,
368,
527,
467,
710,
67,
4415,
1338,
358,
8873,
487,
445,
3712,
3930,
598,
14780,
3639,
309,
261,
1282,
751,
18,
1282,
2083,
559,
422,
374,
13,
288,
5411,
326,
45,
1085,
3401,
273,
527,
45,
710,
2
] |
PicoContainer container = getFactory(context).buildContainerWithParent(parentContainer, "request");
|
PicoContainer container = getFactory(context).buildContainerWithParent(parentContainer, parentComponentRegistry, "request");
|
public void doFilter(ServletRequest request, ServletResponse response, FilterChain filterChain) throws IOException, ServletException { HttpServletRequest httpRequest = (HttpServletRequest) request; HttpSession session = httpRequest.getSession(true); ServletContext context = session.getServletContext(); // grab the parent container ObjectHolder parentHolder = new SessionScopeObjectHolder(session, CONTAINER_KEY); PicoContainer parentContainer = (PicoContainer) parentHolder.get(); // build a container PicoContainer container = getFactory(context).buildContainerWithParent(parentContainer, "request"); // and a means to instantiate new objects in the container ObjectInstantiator instantiater = getFactory(context).buildInstantiator(container); // hold on to them ObjectHolder containerHolder = new RequestScopeObjectHolder(httpRequest, CONTAINER_KEY); containerHolder.put(container); ObjectHolder instantiaterHolder = new RequestScopeObjectHolder(httpRequest, INSTANTIATER_KEY); instantiaterHolder.put(instantiater); try { // process the incoming request filterChain.doFilter(request, response); } finally { // shutdown container destroyContainer(context, containerHolder); } }
|
14040 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14040/4f1d575b5f3e0ed76ee42547485215a6e3f49579/RequestLifecycleFilter.java/clean/java/src/java/org/nanocontainer/servlet/lifecycle/RequestLifecycleFilter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
1586,
12,
18572,
590,
16,
7971,
1064,
766,
16,
4008,
3893,
1034,
3893,
13,
1216,
1860,
16,
16517,
288,
3639,
9984,
12189,
273,
261,
2940,
18572,
13,
590,
31,
3639,
26166,
1339,
273,
12189,
18,
588,
2157,
12,
3767,
1769,
3639,
22717,
819,
273,
1339,
18,
588,
4745,
1042,
5621,
3639,
368,
11086,
326,
982,
1478,
3639,
1033,
6064,
982,
6064,
273,
394,
3877,
3876,
921,
6064,
12,
3184,
16,
8020,
16843,
67,
3297,
1769,
3639,
453,
10764,
2170,
982,
2170,
273,
261,
52,
10764,
2170,
13,
982,
6064,
18,
588,
5621,
3639,
368,
1361,
279,
1478,
3639,
453,
10764,
2170,
1478,
273,
19352,
12,
2472,
2934,
3510,
2170,
1190,
3054,
12,
2938,
2170,
16,
982,
1841,
4243,
16,
315,
2293,
8863,
3639,
368,
471,
279,
4696,
358,
10275,
394,
2184,
316,
326,
1478,
3639,
1033,
10675,
10620,
5934,
77,
2045,
273,
19352,
12,
2472,
2934,
3510,
10675,
10620,
12,
3782,
1769,
3639,
368,
6887,
603,
358,
2182,
3639,
1033,
6064,
1478,
6064,
273,
394,
1567,
3876,
921,
6064,
12,
2505,
691,
16,
8020,
16843,
67,
3297,
1769,
3639,
1478,
6064,
18,
458,
12,
3782,
1769,
3639,
1033,
6064,
5934,
77,
2045,
6064,
273,
394,
1567,
3876,
921,
6064,
12,
2505,
691,
16,
2120,
15379,
45,
13641,
67,
3297,
1769,
3639,
5934,
77,
2045,
6064,
18,
458,
12,
24628,
77,
2045,
1769,
3639,
775,
288,
5411,
368,
1207,
326,
6935,
590,
5411,
1034,
3893,
18,
2896,
1586,
12,
2293,
16,
766,
1769,
3639,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
1586,
12,
18572,
590,
16,
7971,
1064,
766,
16,
4008,
3893,
1034,
3893,
13,
1216,
1860,
16,
16517,
288,
3639,
9984,
12189,
273,
261,
2940,
18572,
13,
590,
31,
3639,
26166,
1339,
273,
12189,
18,
588,
2157,
12,
3767,
1769,
3639,
22717,
819,
273,
1339,
18,
588,
4745,
1042,
5621,
3639,
368,
11086,
326,
982,
1478,
3639,
1033,
6064,
982,
6064,
273,
394,
3877,
3876,
921,
6064,
12,
3184,
16,
8020,
16843,
67,
3297,
1769,
3639,
453,
10764,
2170,
982,
2170,
273,
261,
52,
10764,
2170,
13,
982,
6064,
18,
588,
5621,
3639,
368,
1361,
279,
1478,
3639,
453,
10764,
2170,
1478,
273,
19352,
12,
2472,
2934,
3510,
2170,
1190,
3054,
12,
2938,
2170,
16,
2
] |
paramNameEditor.addFocusListener( new FocusAdapter( ) {
|
paramNameEditor.addModifyListener( new ModifyListener( ) {
|
private void createPropertiesPart( Composite parent ) { propertiesGroup = new Group( parent, SWT.NULL ); propertiesGroup.setText( LABEL_GROUP_PROPERTIES ); propertiesGroup.setLayout( new GridLayout( 2, false ) ); propertiesGroup.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); createLabel( propertiesGroup, LABEL_PARAM_NAME ); paramNameEditor = new Text( propertiesGroup, SWT.BORDER ); paramNameEditor.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); paramNameEditor.addFocusListener( new FocusAdapter( ) { public void focusLost( FocusEvent e ) { if ( selectedParameter != null && selectedParameter != newParameter ) { try { selectedParameter.setName( paramNameEditor.getText( ) ); valueTable.refresh( ); } catch ( NameException e1 ) { // ExceptionHandler.handle( e1 ); paramNameEditor.setText( selectedParameter.getName( ) ); paramNameEditor.selectAll( ); paramNameEditor.setFocus( ); } } } } ); createLabel( propertiesGroup, LABEL_PROMPT_TEXT ); promptText = new Text( propertiesGroup, SWT.BORDER ); promptText.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); promptText.addModifyListener( new ModifyListener( ) { public void modifyText( ModifyEvent e ) { if ( selectedParameter != null && selectedParameter != newParameter ) { try { selectedParameter.setPromptText( promptText.getText( ) ); } catch ( SemanticException e1 ) { ExceptionHandler.handle( e1 ); } } } } ); createLabel( propertiesGroup, LABEL_DATA_TYPE ); dataTypeChooser = new Combo( propertiesGroup, SWT.DROP_DOWN | SWT.READ_ONLY ); dataTypeChooser.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); dataTypeChooser.setItems( ChoiceSetFactory.getDisplayNamefromChoiceSet( dataType ) ); dataTypeChooser.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { if ( selectedParameter != null && selectedParameter != newParameter ) { changeDataType( dataType.findChoiceByDisplayName( dataTypeChooser.getText( ) ) .getName( ) ); try { selectedParameter.setDataType( dataType.findChoiceByDisplayName( dataTypeChooser.getText( ) ) .getName( ) ); } catch ( SemanticException e1 ) { ExceptionHandler.handle( e1 ); } } } } ); createLabel( propertiesGroup, LABEL_DISPLAY_TYPE ); displayTypeChooser = new Combo( propertiesGroup, SWT.DROP_DOWN | SWT.READ_ONLY ); displayTypeChooser.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); displayTypeChooser.setItems( new String[]{ DISPLAY_NAME_CONTROL_LIST, DISPLAY_NAME_CONTROL_COMBO } ); displayTypeChooser.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { if ( selectedParameter != null && selectedParameter != newParameter ) { try { String newControlType = getSelectedDisplayType( ); if ( PARAM_CONTROL_COMBO.equals( newControlType ) ) { newControlType = DesignChoiceConstants.PARAM_CONTROL_LIST_BOX; selectedParameter.setMustMatch( true ); } else if ( PARAM_CONTROL_LIST.equals( newControlType ) ) { newControlType = DesignChoiceConstants.PARAM_CONTROL_LIST_BOX; selectedParameter.setMustMatch( false ); } else { selectedParameter.setProperty( ScalarParameterHandle.MUCH_MATCH_PROP, null ); } selectedParameter.setControlType( newControlType ); } catch ( SemanticException e1 ) { ExceptionHandler.handle( e1 ); } } } } ); createLabel( propertiesGroup, LABEL_DEFAULT_VALUE ); defaultValueEditor = new Text( propertiesGroup, SWT.BORDER ); defaultValueEditor.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); defaultValueEditor.addModifyListener( new ModifyListener( ) { public void modifyText( ModifyEvent e ) { if ( selectedParameter != null && selectedParameter != newParameter ) { try { selectedParameter.setDefaultValue( defaultValueEditor.getText( ) ); } catch ( SemanticException e1 ) { ExceptionHandler.handle( e1 ); } } } } ); }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/32c331232f8bfd4ee9610e9105bb35ff9427651f/CascadingParametersDialog.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/CascadingParametersDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
2297,
1988,
12,
14728,
982,
262,
202,
95,
202,
202,
4738,
1114,
273,
394,
3756,
12,
982,
16,
348,
8588,
18,
8560,
11272,
202,
202,
4738,
1114,
18,
542,
1528,
12,
18210,
67,
8468,
67,
17421,
11272,
202,
202,
4738,
1114,
18,
542,
3744,
12,
394,
7145,
3744,
12,
576,
16,
629,
262,
11272,
202,
202,
4738,
1114,
18,
542,
3744,
751,
12,
394,
7145,
751,
12,
7145,
751,
18,
29818,
67,
44,
20344,
262,
11272,
202,
202,
2640,
2224,
12,
1790,
1114,
16,
18210,
67,
8388,
67,
1985,
11272,
202,
202,
891,
461,
6946,
273,
394,
3867,
12,
1790,
1114,
16,
348,
8588,
18,
38,
7954,
11272,
202,
202,
891,
461,
6946,
18,
542,
3744,
751,
12,
394,
7145,
751,
12,
7145,
751,
18,
29818,
67,
44,
20344,
262,
11272,
202,
202,
891,
461,
6946,
18,
1289,
9233,
2223,
12,
394,
478,
4560,
4216,
12,
262,
288,
1082,
202,
482,
918,
7155,
19024,
12,
478,
4560,
1133,
425,
262,
1082,
202,
95,
9506,
202,
430,
261,
3170,
1662,
480,
446,
25083,
202,
10,
10,
3170,
1662,
480,
394,
1662,
262,
9506,
202,
95,
6862,
202,
698,
6862,
202,
95,
25083,
202,
8109,
1662,
18,
542,
461,
12,
11466,
6946,
18,
588,
1528,
12,
262,
11272,
25083,
202,
1132,
1388,
18,
9144,
12,
11272,
6862,
202,
97,
6862,
202,
14683,
261,
1770,
503,
425,
21,
262,
6862,
202,
95,
25083,
202,
759,
1185,
1503,
18,
4110,
12,
425,
21,
11272,
25083,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
2297,
1988,
12,
14728,
982,
262,
202,
95,
202,
202,
4738,
1114,
273,
394,
3756,
12,
982,
16,
348,
8588,
18,
8560,
11272,
202,
202,
4738,
1114,
18,
542,
1528,
12,
18210,
67,
8468,
67,
17421,
11272,
202,
202,
4738,
1114,
18,
542,
3744,
12,
394,
7145,
3744,
12,
576,
16,
629,
262,
11272,
202,
202,
4738,
1114,
18,
542,
3744,
751,
12,
394,
7145,
751,
12,
7145,
751,
18,
29818,
67,
44,
20344,
262,
11272,
202,
202,
2640,
2224,
12,
1790,
1114,
16,
18210,
67,
8388,
67,
1985,
11272,
202,
202,
891,
461,
6946,
273,
394,
3867,
12,
1790,
1114,
16,
348,
8588,
18,
38,
7954,
11272,
202,
202,
891,
461,
6946,
18,
2
] |
buffer.readUnlock();
|
public static void print(final View view, final Buffer buffer, boolean selection) { job =getPrintJob(buffer.getPath()); boolean header = jEdit.getBooleanProperty("print.header"); boolean footer = jEdit.getBooleanProperty("print.footer"); boolean lineNumbers = jEdit.getBooleanProperty("print.lineNumbers"); boolean color = jEdit.getBooleanProperty("print.color"); Font font = jEdit.getFontProperty("print.font"); job.setPrintable(new BufferPrintable(view,buffer,font,header,footer, lineNumbers,color)); if(!job.printDialog(format)) return; savePrintSpec(); buffer.readLock(); VFSManager.runInWorkThread(new Runnable() { public void run() { try { job.print(format); } catch(PrinterAbortException ae) { Log.log(Log.DEBUG,BufferPrinter1_4.class,ae); buffer.readUnlock(); } catch(PrinterException e) { Log.log(Log.ERROR,BufferPrinter1_4.class,e); String[] args = { e.toString() }; GUIUtilities.error(view,"print-error",args); buffer.readUnlock(); } } }); buffer.readUnlock(); } //}}}
|
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/0c4e249bf15534486f44667c52dacb3cf857be9b/BufferPrinter1_4.java/buggy/org/gjt/sp/jedit/print/BufferPrinter1_4.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
1172,
12,
6385,
4441,
1476,
16,
727,
3525,
1613,
16,
1250,
4421,
13,
202,
95,
202,
202,
4688,
273,
588,
5108,
2278,
12,
4106,
18,
588,
743,
10663,
202,
202,
6494,
1446,
273,
525,
4666,
18,
588,
5507,
1396,
2932,
1188,
18,
3374,
8863,
202,
202,
6494,
9860,
273,
525,
4666,
18,
588,
5507,
1396,
2932,
1188,
18,
14723,
8863,
202,
202,
6494,
980,
10072,
273,
525,
4666,
18,
588,
5507,
1396,
2932,
1188,
18,
1369,
10072,
8863,
202,
202,
6494,
2036,
273,
525,
4666,
18,
588,
5507,
1396,
2932,
1188,
18,
3266,
8863,
202,
202,
5711,
3512,
273,
525,
4666,
18,
588,
5711,
1396,
2932,
1188,
18,
5776,
8863,
202,
202,
4688,
18,
542,
5108,
429,
12,
2704,
3525,
5108,
429,
12,
1945,
16,
4106,
16,
5776,
16,
3374,
16,
14723,
16,
1082,
19694,
980,
10072,
16,
3266,
10019,
202,
202,
430,
12,
5,
4688,
18,
1188,
6353,
12,
2139,
3719,
1082,
202,
2463,
31,
202,
202,
5688,
5108,
1990,
5621,
9506,
202,
4106,
18,
896,
2531,
5621,
202,
202,
58,
4931,
1318,
18,
2681,
382,
2421,
3830,
12,
2704,
10254,
1435,
202,
202,
95,
1082,
202,
482,
918,
1086,
1435,
1082,
202,
95,
9506,
202,
698,
9506,
202,
95,
6862,
202,
4688,
18,
1188,
12,
2139,
1769,
9506,
202,
97,
9506,
202,
14683,
12,
12149,
13572,
503,
14221,
13,
9506,
202,
95,
6862,
202,
1343,
18,
1330,
12,
1343,
18,
9394,
16,
1892,
12149,
21,
67,
24,
18,
1106,
16,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
1172,
12,
6385,
4441,
1476,
16,
727,
3525,
1613,
16,
1250,
4421,
13,
202,
95,
202,
202,
4688,
273,
588,
5108,
2278,
12,
4106,
18,
588,
743,
10663,
202,
202,
6494,
1446,
273,
525,
4666,
18,
588,
5507,
1396,
2932,
1188,
18,
3374,
8863,
202,
202,
6494,
9860,
273,
525,
4666,
18,
588,
5507,
1396,
2932,
1188,
18,
14723,
8863,
202,
202,
6494,
980,
10072,
273,
525,
4666,
18,
588,
5507,
1396,
2932,
1188,
18,
1369,
10072,
8863,
202,
202,
6494,
2036,
273,
525,
4666,
18,
588,
5507,
1396,
2932,
1188,
18,
3266,
8863,
202,
202,
5711,
3512,
273,
525,
4666,
18,
588,
5711,
1396,
2932,
1188,
18,
5776,
8863,
202,
202,
4688,
18,
2
] |
|
if ( e.isPopupTrigger())
|
if ( e.isPopupTrigger())
|
public ElementTree() { super(); // Allow the user to change the name of a leaf node(an element) setEditable(true); //setCellEditor(new DefaultTreeCellEditor(this, new DefaultTreeCellRenderer())); setCellEditor(new DefaultTreeCellEditor(this, new DefaultTreeCellRenderer(), new ElementNameEditor(this))); DragSource dragSource = DragSource.getDefaultDragSource(); // Create a new drop target. We do not need to keep a reference to this // since internally it associates itself with the componenets that it // needs. new DropTarget(this, // Component to associate DropTarget with. DnDConstants.ACTION_COPY_OR_MOVE, // Default acceptable actions. this); // Drop target listener. // Create a DragGestureRecognizer to watch for drags. Once again we do not // need to keep the reference that is returned from this method. dragSource.createDefaultDragGestureRecognizer( this, // component where drag originates DnDConstants.ACTION_COPY_OR_MOVE, // actions this); // drag gesture recognizer // Load the icons for the popup menu. ClassLoader loader = getClass().getClassLoader(); ImageIcon cut_icon = null; ImageIcon copy_icon = null; ImageIcon paste_icon = null; ImageIcon remove_icon = null; try { cut_icon = new ImageIcon(loader.getResource("org/vrjuggler/jccl/editors/images/Cut16.gif")); copy_icon = new ImageIcon(loader.getResource("org/vrjuggler/jccl/editors/images/Copy16.gif")); paste_icon = new ImageIcon(loader.getResource("org/vrjuggler/jccl/editors/images/Paste16.gif")); remove_icon = new ImageIcon(loader.getResource("org/vrjuggler/jccl/editors/images/Delete16.gif")); } catch(Exception ex) { ex.printStackTrace(); } // Set up the pop up menu mPopup = new JPopupMenu(); mDeleteMenuItem = new JMenuItem("Delete", remove_icon); mDeleteMenuItem.addActionListener(this); mDeleteMenuItem.setActionCommand("delete"); mDeleteMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, 0)); mPopup.add(mDeleteMenuItem); mRenameMenuItem = new JMenuItem("Rename"); mRenameMenuItem.addActionListener(this); mRenameMenuItem.setActionCommand("rename"); mPopup.add(mRenameMenuItem); mPopup.addSeparator(); int shortcut_mask = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(); mCutMenuItem = new JMenuItem("Cut", cut_icon); mCutMenuItem.addActionListener(this); mCutMenuItem.setActionCommand("cut"); mCutMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_X, shortcut_mask)); mPopup.add(mCutMenuItem); mCopyMenuItem = new JMenuItem("Copy", copy_icon); mCopyMenuItem.addActionListener(this); mCopyMenuItem.setActionCommand("copy"); mCopyMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_C, shortcut_mask)); mPopup.add(mCopyMenuItem); mPasteMenuItem = new JMenuItem("Paste", paste_icon); mPasteMenuItem.addActionListener(this); mPasteMenuItem.setActionCommand("paste"); mPasteMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_V, shortcut_mask)); mPopup.add(mPasteMenuItem); mPopup.setOpaque(true); mPopup.setLightWeightPopupEnabled(true); // Add mouse listener to get the popup menu events. addMouseListener( new MouseAdapter() { // NOTE: XWindows and Windows sense popup trigger events at // different times. On windows it occurs when the mouse is // released, while on XWindows is occurs when the mouse button // is pressed. // Check for a popup trigger on Windows. public void mouseReleased( MouseEvent e ) { // Get the currently selected ConfigElement. TreePath path = getLeadSelectionPath(); if (path != null) { DefaultMutableTreeNode node = (DefaultMutableTreeNode)path.getLastPathComponent(); Object temp = node.getUserObject(); if (temp instanceof ConfigElement) { mDeleteMenuItem.setEnabled(true); mRenameMenuItem.setEnabled(true); mCutMenuItem.setEnabled(true); mCopyMenuItem.setEnabled(true); mPasteMenuItem.setEnabled(true); // Ensure that the ConfigElement is writable. if ( ((ConfigElement)temp).isReadOnly() ) { mDeleteMenuItem.setEnabled(false); mRenameMenuItem.setEnabled(false); mCutMenuItem.setEnabled(false); mPasteMenuItem.setEnabled(false); } if ( e.isPopupTrigger()) { mPopup.show( (JComponent)e.getSource(), e.getX(), e.getY() ); } } } } // Check for a popup trigger on XWindows. public void mousePressed( MouseEvent e ) { mouseReleased(e); } }); // Add key listener to catch the shortcuts for cut/copy/paste/delete addKeyListener( new KeyAdapter() { public void keyPressed(KeyEvent e) { int shortcut_mask = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(); if(e.getKeyCode() == KeyEvent.VK_C && e.getModifiers() == shortcut_mask) { System.out.println("We have a copy."); actionPerformed(new ActionEvent(this, 0, "copy")); } if(e.getKeyCode() == KeyEvent.VK_V && e.getModifiers() == shortcut_mask) { System.out.println("We have a paste."); actionPerformed(new ActionEvent(this, 0, "paste")); } if(e.getKeyCode() == KeyEvent.VK_X && e.getModifiers() == shortcut_mask) { System.out.println("We have a cut."); actionPerformed(new ActionEvent(this, 0, "cut")); } if(e.getKeyCode() == KeyEvent.VK_DELETE && e.getModifiers() == 0) { System.out.println("We have a delete."); actionPerformed(new ActionEvent(this, 0, "delete")); } } }); }
|
7933 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7933/b04bf75693ebb48de502e187ede5f4f33fdc76c5/ElementTree.java/clean/modules/jackal/editors/org/vrjuggler/jccl/editors/ElementTree.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
22566,
1435,
282,
288,
1377,
2240,
5621,
1377,
368,
7852,
326,
729,
358,
2549,
326,
508,
434,
279,
7839,
756,
12,
304,
930,
13,
1377,
444,
15470,
12,
3767,
1769,
6647,
368,
542,
4020,
6946,
12,
2704,
2989,
2471,
4020,
6946,
12,
2211,
16,
394,
2989,
2471,
4020,
6747,
1435,
10019,
1377,
444,
4020,
6946,
12,
2704,
2989,
2471,
4020,
6946,
12,
2211,
16,
394,
2989,
2471,
4020,
6747,
9334,
394,
3010,
461,
6946,
12,
2211,
3719,
1769,
5411,
28425,
1830,
8823,
1830,
273,
28425,
1830,
18,
588,
1868,
11728,
1830,
5621,
5411,
368,
1788,
279,
394,
3640,
1018,
18,
1660,
741,
486,
1608,
358,
3455,
279,
2114,
358,
333,
1377,
368,
3241,
12963,
518,
2576,
815,
6174,
598,
326,
532,
500,
275,
2413,
716,
518,
1377,
368,
4260,
18,
1377,
394,
10895,
2326,
12,
2211,
16,
368,
5435,
358,
13251,
10895,
2326,
598,
18,
1850,
463,
82,
40,
2918,
18,
12249,
67,
24875,
67,
916,
67,
16537,
16,
368,
2989,
14206,
4209,
18,
1850,
333,
1769,
225,
368,
10895,
1018,
2991,
18,
5411,
368,
1788,
279,
28425,
43,
16704,
28131,
358,
4267,
364,
5081,
1341,
18,
12419,
3382,
732,
741,
486,
1377,
368,
1608,
358,
3455,
326,
2114,
716,
353,
2106,
628,
333,
707,
18,
1377,
8823,
1830,
18,
2640,
1868,
11728,
43,
16704,
28131,
12,
5411,
333,
16,
368,
1794,
1625,
8823,
4026,
815,
5411,
463,
82,
40,
2918,
18,
12249,
67,
24875,
67,
916,
67,
16537,
16,
368,
4209,
5411,
333,
1769,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
22566,
1435,
282,
288,
1377,
2240,
5621,
1377,
368,
7852,
326,
729,
358,
2549,
326,
508,
434,
279,
7839,
756,
12,
304,
930,
13,
1377,
444,
15470,
12,
3767,
1769,
6647,
368,
542,
4020,
6946,
12,
2704,
2989,
2471,
4020,
6946,
12,
2211,
16,
394,
2989,
2471,
4020,
6747,
1435,
10019,
1377,
444,
4020,
6946,
12,
2704,
2989,
2471,
4020,
6946,
12,
2211,
16,
394,
2989,
2471,
4020,
6747,
9334,
394,
3010,
461,
6946,
12,
2211,
3719,
1769,
5411,
28425,
1830,
8823,
1830,
273,
28425,
1830,
18,
588,
1868,
11728,
1830,
5621,
5411,
368,
1788,
279,
394,
3640,
1018,
18,
1660,
741,
486,
1608,
358,
3455,
279,
2114,
358,
333,
1377,
368,
3241,
12963,
518,
2576,
815,
2
] |
public AlgVector(Instance instance) throws Exception { int len = instance.numAttributes(); for (int i = 0; i < instance.numAttributes(); i++) { if (!instance.attribute(i).isNumeric()) len--; } if (len > 0) { m_Elements = new double[len]; for (int i = 0; i < len; i++) { m_Elements[i] = instance.valueSparse(i); } }
|
public AlgVector(int n) { m_Elements = new double[n]; initialize();
|
public AlgVector(Instance instance) throws Exception { int len = instance.numAttributes(); for (int i = 0; i < instance.numAttributes(); i++) { if (!instance.attribute(i).isNumeric()) len--; } if (len > 0) { m_Elements = new double[len]; for (int i = 0; i < len; i++) { m_Elements[i] = instance.valueSparse(i); //possibly a bug } } }
|
4179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4179/30f3f275dd9986cbbb59cc3054680b2c4c2ebc5c/AlgVector.java/buggy/trunk/weka/core/AlgVector.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2262,
75,
5018,
12,
1442,
791,
13,
1216,
1185,
288,
3639,
509,
562,
273,
791,
18,
2107,
2498,
5621,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
791,
18,
2107,
2498,
5621,
277,
27245,
288,
1377,
309,
16051,
1336,
18,
4589,
12,
77,
2934,
291,
9902,
10756,
562,
413,
31,
565,
289,
565,
309,
261,
1897,
405,
374,
13,
288,
1377,
312,
67,
3471,
273,
394,
1645,
63,
1897,
15533,
1377,
364,
261,
474,
277,
273,
374,
31,
277,
411,
562,
31,
277,
27245,
288,
202,
81,
67,
3471,
63,
77,
65,
273,
791,
18,
1132,
20565,
12,
77,
1769,
368,
917,
8781,
279,
7934,
1377,
289,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2262,
75,
5018,
12,
1442,
791,
13,
1216,
1185,
288,
3639,
509,
562,
273,
791,
18,
2107,
2498,
5621,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
791,
18,
2107,
2498,
5621,
277,
27245,
288,
1377,
309,
16051,
1336,
18,
4589,
12,
77,
2934,
291,
9902,
10756,
562,
413,
31,
565,
289,
565,
309,
261,
1897,
405,
374,
13,
288,
1377,
312,
67,
3471,
273,
394,
1645,
63,
1897,
15533,
1377,
364,
261,
474,
277,
273,
374,
31,
277,
411,
562,
31,
277,
27245,
288,
202,
81,
67,
3471,
63,
77,
65,
273,
791,
18,
1132,
20565,
12,
77,
1769,
368,
917,
8781,
279,
7934,
1377,
289,
565,
289,
225,
289,
2,
-100,
-100,
-100,
-100
] |
Macro newMacro = handler.createMacro(fileName, path);
|
Macro newMacro = handler.createMacro( MiscUtilities.getFileName(path), path);
|
public static void runScript(View view, String path, boolean ignoreUnknown) { String fileName = MiscUtilities.getFileName(path); Handler handler = getHandlerForFileName(fileName); if(handler != null) { try { Macro newMacro = handler.createMacro(fileName, path); newMacro.invoke(view); } catch (Exception e) { Log.log(Log.ERROR, Macros.class, e); return; } return; } // only executed if above loop falls // through, ie there is no handler for // this file if(ignoreUnknown) { Log.log(Log.NOTICE,Macros.class,path + ": Cannot find a suitable macro handler"); } else { Log.log(Log.ERROR,Macros.class,path + ": Cannot find a suitable macro handler, " + "assuming BeanShell"); getHandler("beanshell").createMacro( path,path).invoke(view); } } //}}}
|
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/d8e7cae23f19efc6f5624af794142c0ffe94318b/Macros.java/buggy/org/gjt/sp/jedit/Macros.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
1086,
3651,
12,
1767,
1476,
16,
514,
589,
16,
1250,
2305,
4874,
13,
202,
95,
202,
202,
780,
3968,
273,
16584,
71,
11864,
18,
588,
4771,
12,
803,
1769,
202,
202,
1503,
1838,
273,
18945,
1290,
4771,
12,
17812,
1769,
202,
202,
430,
12,
4176,
480,
446,
13,
202,
202,
95,
1082,
202,
698,
1082,
202,
95,
9506,
202,
17392,
394,
17392,
273,
1838,
18,
2640,
17392,
12,
17812,
16,
589,
1769,
9506,
202,
2704,
17392,
18,
14407,
12,
1945,
1769,
1082,
202,
97,
1082,
202,
14683,
261,
503,
425,
13,
1082,
202,
95,
9506,
202,
1343,
18,
1330,
12,
1343,
18,
3589,
16,
13217,
6973,
18,
1106,
16,
425,
1769,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
759,
1338,
7120,
309,
5721,
2798,
21714,
202,
202,
759,
3059,
16,
9228,
1915,
353,
1158,
1838,
364,
202,
202,
759,
333,
585,
202,
202,
430,
12,
6185,
4874,
13,
202,
202,
95,
1082,
202,
1343,
18,
1330,
12,
1343,
18,
20559,
16,
9990,
6973,
18,
1106,
16,
803,
397,
9506,
202,
6877,
14143,
1104,
279,
10631,
11522,
1838,
8863,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
1343,
18,
1330,
12,
1343,
18,
3589,
16,
9990,
6973,
18,
1106,
16,
803,
397,
9506,
202,
6877,
14143,
1104,
279,
10631,
11522,
1838,
16,
315,
9506,
202,
15,
315,
428,
21249,
7704,
13220,
8863,
1082,
202,
588,
1503,
2932,
2196,
634,
76,
1165,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
1086,
3651,
12,
1767,
1476,
16,
514,
589,
16,
1250,
2305,
4874,
13,
202,
95,
202,
202,
780,
3968,
273,
16584,
71,
11864,
18,
588,
4771,
12,
803,
1769,
202,
202,
1503,
1838,
273,
18945,
1290,
4771,
12,
17812,
1769,
202,
202,
430,
12,
4176,
480,
446,
13,
202,
202,
95,
1082,
202,
698,
1082,
202,
95,
9506,
202,
17392,
394,
17392,
273,
1838,
18,
2640,
17392,
12,
17812,
16,
589,
1769,
9506,
202,
2704,
17392,
18,
14407,
12,
1945,
1769,
1082,
202,
97,
1082,
202,
14683,
261,
503,
425,
13,
1082,
202,
95,
9506,
202,
1343,
18,
1330,
12,
1343,
18,
3589,
16,
13217,
6973,
18,
1106,
16,
425,
1769,
9506,
202,
2463,
2
] |
System.out.println( Thread.currentThread().getName() + " woke up! Any signals?" );
|
public Signal getNextSignal() throws LemRuntimeException { synchronized( instanceInObject ) { while ( true ) { if ( signalSelfQueue.size() > 0 ) { System.out.println( Thread.currentThread().getName() + " took a self-signal off the queue!" ); return (Signal) signalSelfQueue.remove( 0 ); } else if ( signalQueue.size() > 0 ) { System.out.println( Thread.currentThread().getName() + " took a signal off the queue!" ); return (Signal) signalQueue.remove( 0 ); } System.out.println( Thread.currentThread().getName() + " propogating a signal" ); if ( instanceInObject.propogateNextSignal() ) { /** Have a signal */ System.out.println( Thread.currentThread().getName() + " has a signal!" ); continue; } try { System.out.println( Thread.currentThread().getName() + " waiting patiently for a signal." ); instanceInObject.wait(); System.out.println( Thread.currentThread().getName() + " woke up! Any signals?" ); /** * After taking instanceInObject's lock, we must * always recheck this Instance's queue because * another instance may have propogated a signal * from the runtime.Object. * * So go back to the top. */ } catch ( Exception e ) { System.out.println( "Some weirdo exception occurred" ); e.printStackTrace(); } } } }
|
10434 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10434/d6c8a38156925e4a09b1fa8d0835e99b076a3f78/Instance.java/buggy/trunk/src/runtime/Instance.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
12032,
6927,
11208,
1435,
1216,
511,
351,
11949,
288,
202,
202,
22043,
12,
791,
382,
921,
262,
288,
9506,
202,
17523,
261,
638,
262,
288,
9506,
202,
430,
261,
4277,
10084,
3183,
18,
1467,
1435,
405,
374,
262,
288,
6862,
202,
3163,
18,
659,
18,
8222,
12,
4884,
18,
2972,
3830,
7675,
17994,
1435,
397,
315,
23151,
279,
365,
17,
10420,
3397,
326,
2389,
4442,
11272,
6862,
202,
2463,
261,
11208,
13,
4277,
10084,
3183,
18,
4479,
12,
374,
11272,
9506,
202,
97,
469,
309,
261,
4277,
3183,
18,
1467,
1435,
405,
374,
262,
288,
6862,
202,
3163,
18,
659,
18,
8222,
12,
4884,
18,
2972,
3830,
7675,
17994,
1435,
397,
315,
23151,
279,
4277,
3397,
326,
2389,
4442,
11272,
6862,
202,
2463,
261,
11208,
13,
4277,
3183,
18,
4479,
12,
374,
11272,
9506,
202,
97,
9506,
202,
3163,
18,
659,
18,
8222,
12,
4884,
18,
2972,
3830,
7675,
17994,
1435,
397,
315,
2270,
717,
1776,
279,
4277,
6,
11272,
9506,
202,
430,
261,
791,
382,
921,
18,
5986,
717,
340,
2134,
11208,
1435,
262,
288,
6862,
202,
26873,
21940,
279,
4277,
1195,
6862,
202,
3163,
18,
659,
18,
8222,
12,
4884,
18,
2972,
3830,
7675,
17994,
1435,
397,
315,
711,
279,
4277,
4442,
11272,
6862,
202,
17143,
31,
9506,
202,
97,
9506,
202,
698,
288,
6862,
202,
3163,
18,
659,
18,
8222,
12,
4884,
18,
2972,
3830,
7675,
17994,
1435,
17322,
202,
15,
315,
7336,
18608,
715,
364,
279,
4277,
1199,
11272,
6862,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
12032,
6927,
11208,
1435,
1216,
511,
351,
11949,
288,
202,
202,
22043,
12,
791,
382,
921,
262,
288,
9506,
202,
17523,
261,
638,
262,
288,
9506,
202,
430,
261,
4277,
10084,
3183,
18,
1467,
1435,
405,
374,
262,
288,
6862,
202,
3163,
18,
659,
18,
8222,
12,
4884,
18,
2972,
3830,
7675,
17994,
1435,
397,
315,
23151,
279,
365,
17,
10420,
3397,
326,
2389,
4442,
11272,
6862,
202,
2463,
261,
11208,
13,
4277,
10084,
3183,
18,
4479,
12,
374,
11272,
9506,
202,
97,
469,
309,
261,
4277,
3183,
18,
1467,
1435,
405,
374,
262,
288,
6862,
202,
3163,
18,
659,
18,
8222,
12,
4884,
18,
2972,
3830,
7675,
17994,
1435,
397,
315,
23151,
279,
4277,
3397,
2
] |
|
features.setString(FEATURE_SILENCE, "pau"); features.setString("join_type", "simple_join"); BulkTimer.LOAD.stop("FeatureSet");
|
features.setString(FEATURE_SILENCE, "pau"); features.setString("join_type", "simple_join"); BulkTimer.LOAD.stop("FeatureSet");
|
protected void setupFeatureSet() throws IOException { BulkTimer.LOAD.start("FeatureSet"); FeatureSet features = getFeatures(); features.setString(FEATURE_SILENCE, "pau"); features.setString("join_type", "simple_join"); BulkTimer.LOAD.stop("FeatureSet"); }
|
48071 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48071/c70ecd73f5018e3d7cc80fb899a4989c02d6c85c/DummyFreeTTSVoice.java/clean/java/de/dfki/lt/mary/modules/DummyFreeTTSVoice.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
3875,
4595,
694,
1435,
1216,
1860,
288,
202,
13112,
6777,
18,
7783,
18,
1937,
2932,
4595,
694,
8863,
3639,
7881,
694,
4467,
273,
13683,
2790,
5621,
202,
7139,
18,
542,
780,
12,
18257,
67,
2320,
13017,
1441,
16,
315,
84,
8377,
8863,
202,
7139,
18,
542,
780,
2932,
5701,
67,
723,
3113,
315,
9647,
67,
5701,
8863,
202,
13112,
6777,
18,
7783,
18,
5681,
2932,
4595,
694,
8863,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
3875,
4595,
694,
1435,
1216,
1860,
288,
202,
13112,
6777,
18,
7783,
18,
1937,
2932,
4595,
694,
8863,
3639,
7881,
694,
4467,
273,
13683,
2790,
5621,
202,
7139,
18,
542,
780,
12,
18257,
67,
2320,
13017,
1441,
16,
315,
84,
8377,
8863,
202,
7139,
18,
542,
780,
2932,
5701,
67,
723,
3113,
315,
9647,
67,
5701,
8863,
202,
13112,
6777,
18,
7783,
18,
5681,
2932,
4595,
694,
8863,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
protected VirtualFile configureByFiles(final VirtualFile[] vFiles, final File projectRoot) throws IOException { myFile = null; myEditor = null; final ModuleRootManager rootManager = ModuleRootManager.getInstance(myModule); final ModifiableRootModel rootModel = rootManager.getModifiableModel(); if (clearModelBeforeConfiguring()) { rootModel.clear(); } File dir = createTempDirectory(); myFilesToDelete.add(dir); VirtualFile vDir = LocalFileSystem.getInstance().refreshAndFindFileByPath(dir.getCanonicalPath().replace(File.separatorChar, '/')); final VirtualFile[] newVFiles = new VirtualFile[vFiles.length]; final RangeMarker[] caretMarkers = new RangeMarker[vFiles.length]; final RangeMarker[] selStartMarkers = new RangeMarker[vFiles.length]; final RangeMarker[] selEndMarkers = new RangeMarker[vFiles.length]; final String[] newFileTexts = new String[vFiles.length]; boolean projectCopied = false; List<Writer> writersToClose = new ArrayList<Writer>(vFiles.length); List<OutputStream> streamsToClose = new ArrayList<OutputStream>(0); for (int i = 0; i < vFiles.length; i++) { VirtualFile vFile = vFiles[i]; assertNotNull(vFile); byte[] content = vFile.getFileType().isBinary() ? vFile.contentsToByteArray(): null; final String fileText = vFile.getFileType().isBinary() ? null: StringUtil.convertLineSeparators(VfsUtil.loadText(vFile), "\n"); String newFileText = null; RangeMarker caretMarker = null; RangeMarker selStartMarker = null; RangeMarker selEndMarker = null; if (fileText != null) { Document document = EditorFactory.getInstance().createDocument(fileText); int caretIndex = fileText.indexOf(CARET_MARKER); int selStartIndex = fileText.indexOf(SELECTION_START_MARKER); int selEndIndex = fileText.indexOf(SELECTION_END_MARKER); caretMarker = caretIndex >= 0 ? document.createRangeMarker(caretIndex, caretIndex) : null; selStartMarker = selStartIndex >= 0 ? document.createRangeMarker(selStartIndex, selStartIndex) : null; selEndMarker = selEndIndex >= 0 ? document.createRangeMarker(selEndIndex, selEndIndex) : null; if (caretMarker != null) { document.deleteString(caretMarker.getStartOffset(), caretMarker.getStartOffset() + CARET_MARKER.length()); } if (selStartMarker != null) { document.deleteString(selStartMarker.getStartOffset(), selStartMarker.getStartOffset() + SELECTION_START_MARKER.length()); } if (selEndMarker != null) { document.deleteString(selEndMarker.getStartOffset(), selEndMarker.getStartOffset() + SELECTION_END_MARKER.length()); } newFileText = document.getText(); } VirtualFile newVFile; if (projectRoot != null) { if (!projectCopied) { FileUtil.copyDir(projectRoot, dir); projectCopied = true; } String path = vDir.getPath() + vFile.getPath().substring(projectRoot.getPath().length()); newVFile = LocalFileSystem.getInstance().refreshAndFindFileByPath(path); doWrite(newFileText, newVFile, writersToClose, content, streamsToClose); } else { newVFile = vDir.createChildData(this, vFile.getName()); doWrite(newFileText, newVFile, writersToClose, content, streamsToClose); } newVFiles[i]=newVFile; newFileTexts[i]=newFileText; selEndMarkers[i]=selEndMarker; selStartMarkers[i]=selStartMarker; caretMarkers[i]=caretMarker;
|
protected void configureByFiles(String projectRoot,String... files) throws Exception { final VirtualFile[] vFiles = new VirtualFile[files.length]; for (int i = 0; i < files.length; i++) { String path = files[i]; VirtualFile vFile = LocalFileSystem.getInstance().findFileByPath(getTestDataPath() + path.replace(File.separatorChar, '/')); vFiles[i] = vFile; assertNotNull("file " + path + " not found", vFile);
|
protected VirtualFile configureByFiles(final VirtualFile[] vFiles, final File projectRoot) throws IOException { myFile = null; myEditor = null; final ModuleRootManager rootManager = ModuleRootManager.getInstance(myModule); final ModifiableRootModel rootModel = rootManager.getModifiableModel(); if (clearModelBeforeConfiguring()) { rootModel.clear(); } File dir = createTempDirectory(); myFilesToDelete.add(dir); VirtualFile vDir = LocalFileSystem.getInstance().refreshAndFindFileByPath(dir.getCanonicalPath().replace(File.separatorChar, '/')); final VirtualFile[] newVFiles = new VirtualFile[vFiles.length]; final RangeMarker[] caretMarkers = new RangeMarker[vFiles.length]; final RangeMarker[] selStartMarkers = new RangeMarker[vFiles.length]; final RangeMarker[] selEndMarkers = new RangeMarker[vFiles.length]; final String[] newFileTexts = new String[vFiles.length]; boolean projectCopied = false; List<Writer> writersToClose = new ArrayList<Writer>(vFiles.length); List<OutputStream> streamsToClose = new ArrayList<OutputStream>(0); for (int i = 0; i < vFiles.length; i++) { VirtualFile vFile = vFiles[i]; assertNotNull(vFile); byte[] content = vFile.getFileType().isBinary() ? vFile.contentsToByteArray(): null; final String fileText = vFile.getFileType().isBinary() ? null: StringUtil.convertLineSeparators(VfsUtil.loadText(vFile), "\n"); String newFileText = null; RangeMarker caretMarker = null; RangeMarker selStartMarker = null; RangeMarker selEndMarker = null; if (fileText != null) { Document document = EditorFactory.getInstance().createDocument(fileText); int caretIndex = fileText.indexOf(CARET_MARKER); int selStartIndex = fileText.indexOf(SELECTION_START_MARKER); int selEndIndex = fileText.indexOf(SELECTION_END_MARKER); caretMarker = caretIndex >= 0 ? document.createRangeMarker(caretIndex, caretIndex) : null; selStartMarker = selStartIndex >= 0 ? document.createRangeMarker(selStartIndex, selStartIndex) : null; selEndMarker = selEndIndex >= 0 ? document.createRangeMarker(selEndIndex, selEndIndex) : null; if (caretMarker != null) { document.deleteString(caretMarker.getStartOffset(), caretMarker.getStartOffset() + CARET_MARKER.length()); } if (selStartMarker != null) { document.deleteString(selStartMarker.getStartOffset(), selStartMarker.getStartOffset() + SELECTION_START_MARKER.length()); } if (selEndMarker != null) { document.deleteString(selEndMarker.getStartOffset(), selEndMarker.getStartOffset() + SELECTION_END_MARKER.length()); } newFileText = document.getText(); } VirtualFile newVFile; if (projectRoot != null) { if (!projectCopied) { FileUtil.copyDir(projectRoot, dir); projectCopied = true; } String path = vDir.getPath() + vFile.getPath().substring(projectRoot.getPath().length()); newVFile = LocalFileSystem.getInstance().refreshAndFindFileByPath(path); doWrite(newFileText, newVFile, writersToClose, content, streamsToClose); } else { newVFile = vDir.createChildData(this, vFile.getName()); doWrite(newFileText, newVFile, writersToClose, content, streamsToClose); } newVFiles[i]=newVFile; newFileTexts[i]=newFileText; selEndMarkers[i]=selEndMarker; selStartMarkers[i]=selStartMarker; caretMarkers[i]=caretMarker; } for(int i = writersToClose.size() -1; i >= 0 ; --i) { writersToClose.get(i).close(); } for(int i = streamsToClose.size() -1; i >= 0 ; --i) { streamsToClose.get(i).close(); } final ContentEntry contentEntry = rootModel.addContentEntry(vDir); if (isAddDirToSource()) contentEntry.addSourceFolder(vDir, false); rootModel.commit(); for (int i = 0; i < newVFiles.length; i++) { VirtualFile newVFile = newVFiles[i]; PsiFile file = myPsiManager.findFile(newVFile); if (myFile==null) myFile = file; Editor editor = createEditor(newVFile); if (myEditor==null) myEditor = editor; if (caretMarkers[i] != null) { int caretLine = StringUtil.offsetToLineNumber(newFileTexts[i], caretMarkers[i].getStartOffset()); int caretCol = caretMarkers[i].getStartOffset() - StringUtil.lineColToOffset(newFileTexts[i], caretLine, 0); LogicalPosition pos = new LogicalPosition(caretLine, caretCol); editor.getCaretModel().moveToLogicalPosition(pos); } if (selStartMarkers[i] != null) { editor.getSelectionModel().setSelection(selStartMarkers[i].getStartOffset(), selEndMarkers[i].getStartOffset()); } } return vDir; }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/a97e36646156c3afcccbcfd0de348e26e087210c/CodeInsightTestCase.java/buggy/codeInsight/tests/com/intellij/codeInsight/CodeInsightTestCase.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
7269,
812,
5068,
858,
2697,
12,
6385,
7269,
812,
8526,
331,
2697,
16,
727,
1387,
27905,
13,
1216,
1860,
288,
565,
3399,
812,
273,
446,
31,
565,
3399,
6946,
273,
446,
31,
565,
727,
5924,
2375,
1318,
1365,
1318,
273,
5924,
2375,
1318,
18,
588,
1442,
12,
4811,
3120,
1769,
565,
727,
3431,
8424,
2375,
1488,
1365,
1488,
273,
1365,
1318,
18,
588,
1739,
8424,
1488,
5621,
565,
309,
261,
8507,
1488,
4649,
809,
4017,
10756,
288,
1377,
1365,
1488,
18,
8507,
5621,
565,
289,
565,
1387,
1577,
273,
752,
7185,
2853,
5621,
565,
3399,
2697,
14976,
18,
1289,
12,
1214,
1769,
565,
7269,
812,
331,
1621,
273,
3566,
11785,
18,
588,
1442,
7675,
9144,
1876,
3125,
812,
16736,
12,
1214,
18,
588,
15512,
743,
7675,
2079,
12,
812,
18,
11287,
2156,
16,
2023,
10019,
565,
727,
7269,
812,
8526,
394,
58,
2697,
273,
394,
7269,
812,
63,
90,
2697,
18,
2469,
15533,
565,
727,
8086,
7078,
8526,
21683,
21644,
273,
394,
8086,
7078,
63,
90,
2697,
18,
2469,
15533,
565,
727,
8086,
7078,
8526,
357,
1685,
21644,
273,
394,
8086,
7078,
63,
90,
2697,
18,
2469,
15533,
565,
727,
8086,
7078,
8526,
357,
1638,
21644,
273,
394,
8086,
7078,
63,
90,
2697,
18,
2469,
15533,
565,
727,
514,
8526,
20592,
30114,
273,
394,
514,
63,
90,
2697,
18,
2469,
15533,
565,
1250,
1984,
28127,
273,
629,
31,
565,
987,
32,
2289,
34,
18656,
774,
4605,
273,
394,
2407,
32,
2289,
34,
12,
90,
2697,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
7269,
812,
5068,
858,
2697,
12,
6385,
7269,
812,
8526,
331,
2697,
16,
727,
1387,
27905,
13,
1216,
1860,
288,
565,
3399,
812,
273,
446,
31,
565,
3399,
6946,
273,
446,
31,
565,
727,
5924,
2375,
1318,
1365,
1318,
273,
5924,
2375,
1318,
18,
588,
1442,
12,
4811,
3120,
1769,
565,
727,
3431,
8424,
2375,
1488,
1365,
1488,
273,
1365,
1318,
18,
588,
1739,
8424,
1488,
5621,
565,
309,
261,
8507,
1488,
4649,
809,
4017,
10756,
288,
1377,
1365,
1488,
18,
8507,
5621,
565,
289,
565,
1387,
1577,
273,
752,
7185,
2853,
5621,
565,
3399,
2697,
14976,
18,
1289,
12,
1214,
1769,
565,
7269,
812,
331,
1621,
273,
3566,
11785,
18,
588,
1442,
7675,
9144,
1876,
3125,
2
] |
IASTTranslationUnit tu = parse( "void ( * f( int ) )(){}", ParserLanguage.CPP ); IASTFunctionDefinition def = (IASTFunctionDefinition) tu.getDeclarations()[0]; IFunction f = (IFunction) def.getDeclarator().getNestedDeclarator().getName().resolveBinding(); IFunctionType ft = f.getType(); assertTrue( ft.getReturnType() instanceof IPointerType ); assertTrue( ((IPointerType) ft.getReturnType()).getType() instanceof IFunctionType ); assertEquals( ft.getParameterTypes().length, 1 ); }
|
IASTTranslationUnit tu = parse( "void ( * f( int ) )(){}", ParserLanguage.CPP); IASTFunctionDefinition def = (IASTFunctionDefinition) tu .getDeclarations()[0]; IFunction f = (IFunction) def.getDeclarator().getNestedDeclarator() .getName().resolveBinding(); IFunctionType ft = f.getType(); assertTrue(ft.getReturnType() instanceof IPointerType); assertTrue(((IPointerType) ft.getReturnType()).getType() instanceof IFunctionType); assertEquals(ft.getParameterTypes().length, 1); }
|
public void testFnReturningPtrToFn() throws Exception { IASTTranslationUnit tu = parse( "void ( * f( int ) )(){}", ParserLanguage.CPP ); //$NON-NLS-1$ IASTFunctionDefinition def = (IASTFunctionDefinition) tu.getDeclarations()[0]; IFunction f = (IFunction) def.getDeclarator().getNestedDeclarator().getName().resolveBinding(); IFunctionType ft = f.getType(); assertTrue( ft.getReturnType() instanceof IPointerType ); assertTrue( ((IPointerType) ft.getReturnType()).getType() instanceof IFunctionType ); assertEquals( ft.getParameterTypes().length, 1 ); }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/cc8d114f90c28f8aa0f931193d59d068f08d3cdb/AST2CPPTests.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5372,
28365,
5263,
774,
5372,
1435,
1216,
1185,
288,
377,
202,
45,
9053,
6717,
2802,
28325,
273,
1109,
12,
315,
6459,
261,
380,
284,
12,
509,
262,
262,
1435,
9338,
16,
6783,
3779,
18,
4258,
52,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
377,
202,
3639,
467,
9053,
2083,
1852,
1652,
273,
261,
45,
9053,
2083,
1852,
13,
28325,
18,
588,
21408,
1435,
63,
20,
15533,
3639,
467,
2083,
284,
273,
261,
45,
2083,
13,
1652,
18,
588,
31419,
7675,
588,
8649,
31419,
7675,
17994,
7675,
10828,
5250,
5621,
7734,
467,
2083,
559,
11038,
273,
284,
18,
588,
559,
5621,
3639,
1815,
5510,
12,
11038,
18,
588,
9102,
1435,
1276,
2971,
2480,
559,
11272,
3639,
1815,
5510,
12,
14015,
2579,
2480,
559,
13,
11038,
18,
588,
9102,
1435,
2934,
588,
559,
1435,
1276,
467,
2083,
559,
11272,
3639,
1815,
8867,
12,
11038,
18,
588,
1662,
2016,
7675,
2469,
16,
404,
11272,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5372,
28365,
5263,
774,
5372,
1435,
1216,
1185,
288,
377,
202,
45,
9053,
6717,
2802,
28325,
273,
1109,
12,
315,
6459,
261,
380,
284,
12,
509,
262,
262,
1435,
9338,
16,
6783,
3779,
18,
4258,
52,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
377,
202,
3639,
467,
9053,
2083,
1852,
1652,
273,
261,
45,
9053,
2083,
1852,
13,
28325,
18,
588,
21408,
1435,
63,
20,
15533,
3639,
467,
2083,
284,
273,
261,
45,
2083,
13,
1652,
18,
588,
31419,
7675,
588,
8649,
31419,
7675,
17994,
7675,
10828,
5250,
5621,
7734,
467,
2083,
559,
11038,
273,
284,
18,
588,
559,
5621,
3639,
1815,
5510,
12,
11038,
18,
588,
9102,
1435,
1276,
2971,
2480,
559,
11272,
2
] |
return new ApplicationError();
|
return scala.tools.util.debug.Debug.abort();
|
public static Error abort() { return new ApplicationError(); }
|
1156 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1156/b64f685febe056c5d90c6bb1589edf0a7f09254a/Debug.java/buggy/sources/scalac/util/Debug.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1068,
6263,
1435,
288,
3639,
327,
8292,
69,
18,
6642,
18,
1367,
18,
4148,
18,
2829,
18,
18623,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1068,
6263,
1435,
288,
3639,
327,
8292,
69,
18,
6642,
18,
1367,
18,
4148,
18,
2829,
18,
18623,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public String word() throws RecognitionException { String word; Token id=null; Token str=null; word = null; try { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:736:17: (id= ID | 'import' | 'use' | 'rule' | 'query' | 'salience' | 'no-loop' | 'when' | 'then' | 'end' | str= STRING ) int alt58=11; switch ( input.LA(1) ) { case ID: alt58=1; break; case 17: alt58=2; break; case 56: alt58=3; break; case 28: alt58=4; break; case 26: alt58=5; break; case 33: alt58=6; break; case 34: alt58=7; break; case 29: alt58=8; break; case 31: alt58=9; break; case 27: alt58=10; break; case STRING: alt58=11; break; default: NoViableAltException nvae = new NoViableAltException("732:1: word returns [String word] : (id= ID | \'import\' | \'use\' | \'rule\' | \'query\' | \'salience\' | \'no-loop\' | \'when\' | \'then\' | \'end\' | str= STRING );", 58, 0, input); throw nvae; } switch (alt58) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:736:17: id= ID { id=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_word2482); word=id.getText(); } break; case 2 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:737:17: 'import' { match(input,17,FOLLOW_17_in_word2494); word="import"; } break; case 3 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:738:17: 'use' { match(input,56,FOLLOW_56_in_word2503); word="use"; } break; case 4 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:739:17: 'rule' { match(input,28,FOLLOW_28_in_word2515); word="rule"; } break; case 5 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:740:17: 'query' { match(input,26,FOLLOW_26_in_word2526); word="query"; } break; case 6 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:741:17: 'salience' { match(input,33,FOLLOW_33_in_word2536); word="salience"; } break; case 7 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:742:17: 'no-loop' { match(input,34,FOLLOW_34_in_word2544); word="no-loop"; } break; case 8 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:743:17: 'when' { match(input,29,FOLLOW_29_in_word2552); word="when"; } break; case 9 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:744:17: 'then' { match(input,31,FOLLOW_31_in_word2563); word="then"; } break; case 10 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:745:17: 'end' { match(input,27,FOLLOW_27_in_word2574); word="end"; } break; case 11 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:746:17: str= STRING { str=(Token)input.LT(1); match(input,STRING,FOLLOW_STRING_in_word2588); word=getString(str); } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return word; }
|
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/9c6423b7a31fdc4a1317e71a6d2850c94e2140e0/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2076,
1435,
1216,
9539,
288,
6647,
514,
2076,
31,
3639,
3155,
612,
33,
2011,
31,
3639,
3155,
609,
33,
2011,
31,
1171,
202,
202,
1095,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
27,
5718,
30,
4033,
30,
261,
350,
33,
1599,
571,
296,
5666,
11,
571,
296,
1202,
11,
571,
296,
5345,
11,
571,
296,
2271,
11,
571,
296,
21982,
6254,
11,
571,
296,
2135,
17,
6498,
11,
571,
296,
13723,
11,
571,
296,
15991,
11,
571,
296,
409,
11,
571,
609,
33,
9469,
262,
5411,
509,
3770,
8204,
33,
2499,
31,
5411,
1620,
261,
810,
18,
2534,
12,
21,
13,
262,
288,
5411,
648,
1599,
30,
7734,
3770,
8204,
33,
21,
31,
7734,
898,
31,
5411,
648,
8043,
30,
7734,
3770,
8204,
33,
22,
31,
7734,
898,
31,
5411,
648,
13850,
30,
7734,
3770,
8204,
33,
23,
31,
7734,
898,
31,
5411,
648,
9131,
30,
7734,
3770,
8204,
33,
24,
31,
7734,
898,
31,
5411,
648,
10659,
30,
7734,
3770,
8204,
33,
25,
31,
7734,
898,
31,
5411,
648,
13159,
30,
7734,
3770,
8204,
33,
26,
31,
7734,
898,
31,
5411,
648,
13438,
30,
7734,
3770,
8204,
33,
27,
31,
7734,
898,
31,
5411,
648,
12899,
30,
7734,
3770,
8204,
33,
28,
31,
7734,
898,
31,
5411,
648,
8231,
30,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2076,
1435,
1216,
9539,
288,
6647,
514,
2076,
31,
3639,
3155,
612,
33,
2011,
31,
3639,
3155,
609,
33,
2011,
31,
1171,
202,
202,
1095,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
27,
5718,
30,
4033,
30,
261,
350,
33,
1599,
571,
296,
5666,
11,
571,
296,
1202,
11,
571,
296,
5345,
11,
571,
296,
2271,
11,
571,
296,
21982,
6254,
11,
571,
296,
2135,
17,
6498,
11,
571,
296,
13723,
11,
571,
296,
15991,
11,
571,
296,
409,
11,
571,
609,
33,
2
] |
||
AST __t356 = _t;
|
AST __t361 = _t;
|
public final Expression numericExpr(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { Expression step; AST numericExpr_AST_in = (AST)_t; step= null; PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PLUS: { AST __t351 = _t; AST tmp81_AST_in = (AST)_t; match(_t,PLUS); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t351; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.PLUS); path.addPath(op); step= op; break; } case MINUS: { AST __t352 = _t; AST tmp82_AST_in = (AST)_t; match(_t,MINUS); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t352; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.MINUS); path.addPath(op); step= op; break; } case UNARY_MINUS: { AST __t353 = _t; AST tmp83_AST_in = (AST)_t; match(_t,UNARY_MINUS); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; _t = __t353; _t = _t.getNextSibling(); UnaryExpr unary= new UnaryExpr(context, Constants.MINUS); unary.add(left); path.addPath(unary); step= unary; break; } case UNARY_PLUS: { AST __t354 = _t; AST tmp84_AST_in = (AST)_t; match(_t,UNARY_PLUS); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; _t = __t354; _t = _t.getNextSibling(); UnaryExpr unary= new UnaryExpr(context, Constants.PLUS); unary.add(left); path.addPath(unary); step= unary; break; } case LITERAL_div: { AST __t355 = _t; AST tmp85_AST_in = (AST)_t; match(_t,LITERAL_div); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t355; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.DIV); path.addPath(op); step= op; break; } case LITERAL_idiv: { AST __t356 = _t; AST tmp86_AST_in = (AST)_t; match(_t,LITERAL_idiv); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t356; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.IDIV); path.addPath(op); step= op; break; } case LITERAL_mod: { AST __t357 = _t; AST tmp87_AST_in = (AST)_t; match(_t,LITERAL_mod); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t357; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.MOD); path.addPath(op); step= op; break; } case STAR: { AST __t358 = _t; AST tmp88_AST_in = (AST)_t; match(_t,STAR); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t358; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.MULT); path.addPath(op); step= op; break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; return step; }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/1d6298911c93c664b283d6052b53ef5b8e0b20cb/XPathTreeParser2.java/clean/src/org/exist/parser/XPathTreeParser2.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
5371,
225,
6389,
4742,
12,
9053,
389,
88,
16,
202,
202,
743,
4742,
589,
202,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
16,
14124,
503,
288,
202,
202,
2300,
2235,
31,
9506,
202,
9053,
6389,
4742,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
6862,
202,
4119,
33,
446,
31,
1082,
202,
743,
4742,
2002,
33,
394,
2666,
4742,
12,
2472,
1769,
1082,
202,
743,
4742,
2145,
33,
394,
2666,
4742,
12,
2472,
1769,
25083,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
22443,
3378,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
4763,
21,
273,
389,
88,
31,
1082,
202,
9053,
1853,
11861,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
6253,
3378,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
1082,
202,
4119,
33,
8638,
24899,
88,
16,
4482,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
1082,
202,
4119,
33,
8638,
24899,
88,
16,
4083,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
1082,
202,
67,
88,
273,
1001,
88,
4763,
21,
31,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
6862,
9506,
202,
3817,
9902,
1061,
33,
394,
6066,
9902,
12,
2472,
16,
2002,
16,
2145,
16,
5245,
18,
6253,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
5371,
225,
6389,
4742,
12,
9053,
389,
88,
16,
202,
202,
743,
4742,
589,
202,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
16,
14124,
503,
288,
202,
202,
2300,
2235,
31,
9506,
202,
9053,
6389,
4742,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
6862,
202,
4119,
33,
446,
31,
1082,
202,
743,
4742,
2002,
33,
394,
2666,
4742,
12,
2472,
1769,
1082,
202,
743,
4742,
2145,
33,
394,
2666,
4742,
12,
2472,
1769,
25083,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
22443,
3378,
30,
202,
202,
95,
2
] |
return sessionVT.getActiveAidKeys(); }
|
return sessionVT.getActiveAidKeys(); }
|
public synchronized boolean[] getActiveAidKeys() { return sessionVT.getActiveAidKeys(); }
|
4212 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4212/caf3d80f5859ebce4d72dbe0ddd1d32b417462c4/Screen5250.java/clean/src/org/tn5250j/framework/tn5250/Screen5250.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
3852,
1250,
8526,
11960,
37,
350,
2396,
1435,
288,
1377,
327,
1339,
58,
56,
18,
588,
3896,
37,
350,
2396,
5621,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
3852,
1250,
8526,
11960,
37,
350,
2396,
1435,
288,
1377,
327,
1339,
58,
56,
18,
588,
3896,
37,
350,
2396,
5621,
282,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
discoverer = (ArtifactDiscoverer) lookup( ArtifactDiscoverer.ROLE, "default" );
|
discoverer = (ArtifactDiscoverer) lookup( ArtifactDiscoverer.ROLE, "org.apache.maven.repository.discovery.DefaultArtifactDiscoverer" );
|
protected void setUp() throws Exception { super.setUp(); discoverer = (ArtifactDiscoverer) lookup( ArtifactDiscoverer.ROLE, "default" ); factory = (ArtifactFactory) lookup( ArtifactFactory.ROLE ); File basedir = getTestFile( "src/test/repository" ); ArtifactRepositoryFactory factory = (ArtifactRepositoryFactory) lookup( ArtifactRepositoryFactory.ROLE ); ArtifactRepositoryLayout layout = (ArtifactRepositoryLayout) lookup( ArtifactRepositoryLayout.ROLE, "default" ); repository = factory.createArtifactRepository( "discoveryRepo", "file://" + basedir, layout, null, null ); }
|
47019 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47019/b6e901506b10ae4bf6a3cafaac2ad32a350a1dbe/DefaultArtifactDiscovererTest.java/buggy/maven-repository-discovery/src/test/java/org/apache/maven/repository/discovery/DefaultArtifactDiscovererTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
24292,
1435,
3639,
1216,
1185,
565,
288,
3639,
2240,
18,
542,
1211,
5621,
3639,
10372,
264,
273,
261,
7581,
26082,
264,
13,
3689,
12,
14022,
26082,
264,
18,
16256,
16,
315,
3341,
18,
19211,
18,
81,
7638,
18,
9071,
18,
22268,
18,
1868,
7581,
26082,
264,
6,
11272,
3639,
3272,
273,
261,
7581,
1733,
13,
3689,
12,
14022,
1733,
18,
16256,
11272,
3639,
1387,
15573,
273,
29384,
812,
12,
315,
4816,
19,
3813,
19,
9071,
6,
11272,
3639,
14022,
3305,
1733,
3272,
273,
261,
7581,
3305,
1733,
13,
3689,
12,
14022,
3305,
1733,
18,
16256,
11272,
3639,
14022,
3305,
3744,
3511,
273,
261,
7581,
3305,
3744,
13,
3689,
12,
14022,
3305,
3744,
18,
16256,
16,
315,
1886,
6,
11272,
3639,
3352,
273,
3272,
18,
2640,
7581,
3305,
12,
315,
22268,
8791,
3113,
315,
768,
14334,
397,
15573,
16,
3511,
16,
446,
16,
446,
11272,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
24292,
1435,
3639,
1216,
1185,
565,
288,
3639,
2240,
18,
542,
1211,
5621,
3639,
10372,
264,
273,
261,
7581,
26082,
264,
13,
3689,
12,
14022,
26082,
264,
18,
16256,
16,
315,
3341,
18,
19211,
18,
81,
7638,
18,
9071,
18,
22268,
18,
1868,
7581,
26082,
264,
6,
11272,
3639,
3272,
273,
261,
7581,
1733,
13,
3689,
12,
14022,
1733,
18,
16256,
11272,
3639,
1387,
15573,
273,
29384,
812,
12,
315,
4816,
19,
3813,
19,
9071,
6,
11272,
3639,
14022,
3305,
1733,
3272,
273,
261,
7581,
3305,
1733,
13,
3689,
12,
14022,
3305,
1733,
18,
16256,
11272,
3639,
14022,
3305,
3744,
3511,
273,
261,
7581,
3305,
3744,
13,
3689,
12,
14022,
3305,
3744,
18,
16256,
16,
315,
2
] |
if (DEBUG) System.out.println(" nextDecomp returning " + hex(ch) + ", text index=" + text.getIndex());
|
private char nextDecomp() { boolean hangul = (options & IGNORE_HANGUL) == 0; char ch = curForward(); int offset = DecompData.offsets.elementAt(ch); int index = offset & DecompData.DECOMP_MASK; if (index > minDecomp || DecompData.canonClass.elementAt(ch) != DecompData.BASE) { initBuffer(); if (index > minDecomp) { if (DEBUG) System.out.println(" " + hex(ch) + " has decomposition, index=" + index); doAppend(DecompData.contents, index, buffer); if ((offset & DecompData.DECOMP_RECURSE) != 0) { // Need to decompose the output of this decomposition recursively. for (int i = 0; i < buffer.length(); i++) { ch = buffer.charAt(i); index = DecompData.offsets.elementAt(ch) & DecompData.DECOMP_MASK; if (index > minDecomp) { i += doReplace(DecompData.contents, index, buffer, i); } } } } else { buffer.append(ch); } boolean needToReorder = false; // Any other combining chacters that immediately follow the decomposed // character must be included in the buffer too, because they're // conceptually part of the same logical character. // // TODO: Some of these might need to be decomposed too. // while ((ch = text.next()) != DONE && DecompData.canonClass.elementAt(ch) != DecompData.BASE) { needToReorder = true; buffer.append(ch); } if (buffer.length() > 1 && needToReorder) { // If there is more than one combining character in the buffer, // put them into the canonical order. // But we don't need to sort if only characters are the ones that // resulted from decomosing the base character. fixCanonical(buffer); } bufferLimit = buffer.length() - 1; ch = buffer.charAt(0); } else { // Just use this character, but first advance to the next one text.next(); // Do Hangul -> Jamo decomposition if necessary if (hangul && ch >= HANGUL_BASE && ch < HANGUL_LIMIT) { initBuffer(); hangulToJamo(ch, buffer, minDecomp); bufferLimit = buffer.length() - 1; ch = buffer.charAt(0); } } //if (DEBUG) System.out.println(" nextDecomp returning " + hex(ch) + ", text index=" + text.getIndex()); return ch; }
|
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/1c254cf440ab63dde02c1b18fbd8b7c64a1944d0/Normalizer.java/clean/icu4j/src/com/ibm/text/Normalizer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
9394,
13,
2332,
18,
659,
18,
8222,
2932,
1024,
17731,
84,
5785,
315,
397,
3827,
12,
343,
13,
397,
3104,
977,
770,
1546,
397,
977,
18,
588,
1016,
10663,
309,
261,
9394,
13,
2332,
18,
659,
18,
8222,
2932,
1024,
17731,
84,
5785,
315,
397,
3827,
12,
343,
13,
397,
3104,
977,
770,
1546,
397,
977,
18,
588,
1016,
10663,
309,
261,
9394,
13,
2332,
18,
659,
18,
8222,
2932,
1024,
17731,
84,
5785,
315,
397,
3827,
12,
343,
13,
397,
3104,
977,
770,
1546,
397,
977,
18,
588,
1016,
10663,
309,
261,
9394,
13,
2332,
18,
659,
18,
8222,
2932,
1024,
17731,
84,
5785,
315,
397,
3827,
12,
343,
13,
397,
3104,
977,
770,
1546,
397,
977,
18,
588,
1016,
10663,
3238,
430,
261,
9394,
13,
2332,
18,
659,
18,
8222,
2932,
1024,
17731,
84,
5785,
315,
397,
3827,
12,
343,
13,
397,
3104,
977,
770,
1546,
397,
977,
18,
588,
1016,
10663,
1149,
430,
261,
9394,
13,
2332,
18,
659,
18,
8222,
2932,
1024,
17731,
84,
5785,
315,
397,
3827,
12,
343,
13,
397,
3104,
977,
770,
1546,
397,
977,
18,
588,
1016,
10663,
1024,
17731,
84,
1435,
430,
261,
9394,
13,
2332,
18,
659,
18,
8222,
2932,
1024,
17731,
84,
5785,
315,
397,
3827,
12,
343,
13,
397,
3104,
977,
770,
1546,
397,
977,
18,
588,
1016,
10663,
309,
261,
9394,
13,
2332,
18,
659,
18,
8222,
2932,
1024,
17731,
84,
5785,
315,
397,
3827,
12,
343,
13,
397,
3104,
977,
770,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
9394,
13,
2332,
18,
659,
18,
8222,
2932,
1024,
17731,
84,
5785,
315,
397,
3827,
12,
343,
13,
397,
3104,
977,
770,
1546,
397,
977,
18,
588,
1016,
10663,
309,
261,
9394,
13,
2332,
18,
659,
18,
8222,
2932,
1024,
17731,
84,
5785,
315,
397,
3827,
12,
343,
13,
397,
3104,
977,
770,
1546,
397,
977,
18,
588,
1016,
10663,
309,
261,
9394,
13,
2332,
18,
659,
18,
8222,
2932,
1024,
17731,
84,
5785,
315,
397,
3827,
12,
343,
13,
397,
3104,
977,
770,
1546,
397,
977,
18,
588,
1016,
10663,
309,
261,
9394,
13,
2332,
18,
659,
18,
8222,
2932,
1024,
17731,
84,
5785,
315,
397,
3827,
12,
343,
13,
397,
3104,
977,
770,
1546,
397,
2
] |
|
page = versionManager.getVersion(versionManager.getVersions());
|
page = versionManager.getVersion(getCurrentVersionNumber());
|
public Page getVersion(final int versionNumber) { // If we're still the original Page and that's what's desired if (versionManager == null) { if (versionNumber == 0 || versionNumber == LATEST_VERSION) { return this; } else { log.info("No version manager available to retrieve requested versionNumber " + versionNumber); return null; } } else { // Save original change tracking state final boolean originalTrackChanges = getFlag(FLAG_TRACK_CHANGES); try { // While the version manager is potentially playing around with // the Page, it may change the page in order to undo changes and // we don't want change tracking going on while its doing this. setFlag(FLAG_TRACK_CHANGES, false); // Get page of desired version final Page page; if (versionNumber != LATEST_VERSION) { page = versionManager.getVersion(versionNumber); } else { page = versionManager.getVersion(versionManager.getVersions()); } // If we went all the way back to the original page if (page != null && page.getCurrentVersionNumber() == 0) { // remove version info page.versionManager = null; } return page; } finally { // Restore change tracking state setFlag(FLAG_TRACK_CHANGES, originalTrackChanges); } } }
|
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/e67fe909c2c065b2ce3c6c02f4f311e536b6d40e/Page.java/clean/wicket/src/java/wicket/Page.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3460,
8343,
12,
6385,
509,
1177,
1854,
13,
202,
95,
202,
202,
759,
971,
732,
4565,
4859,
326,
2282,
3460,
471,
716,
1807,
4121,
1807,
6049,
202,
202,
430,
261,
1589,
1318,
422,
446,
13,
202,
202,
95,
1082,
202,
430,
261,
1589,
1854,
422,
374,
747,
1177,
1854,
422,
511,
1777,
882,
67,
5757,
13,
1082,
202,
95,
9506,
202,
2463,
333,
31,
1082,
202,
97,
1082,
202,
12107,
1082,
202,
95,
9506,
202,
1330,
18,
1376,
2932,
2279,
1177,
3301,
2319,
358,
4614,
3764,
1177,
1854,
315,
25083,
202,
15,
1177,
1854,
1769,
9506,
202,
2463,
446,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
759,
7074,
2282,
2549,
11093,
919,
1082,
202,
6385,
1250,
2282,
4402,
7173,
273,
336,
4678,
12,
9651,
67,
28720,
67,
1792,
3388,
3991,
1769,
1082,
202,
698,
1082,
202,
95,
9506,
202,
759,
21572,
326,
1177,
3301,
353,
13935,
23982,
6740,
598,
9506,
202,
759,
326,
3460,
16,
518,
2026,
2549,
326,
1363,
316,
1353,
358,
15436,
3478,
471,
9506,
202,
759,
732,
2727,
1404,
2545,
2549,
11093,
8554,
603,
1323,
2097,
9957,
333,
18,
9506,
202,
542,
4678,
12,
9651,
67,
28720,
67,
1792,
3388,
3991,
16,
629,
1769,
9506,
202,
759,
968,
1363,
434,
6049,
1177,
9506,
202,
6385,
3460,
1363,
31,
9506,
202,
430,
261,
1589,
1854,
480,
511,
1777,
882,
67,
5757,
13,
9506,
202,
95,
6862,
202,
2433,
273,
1177,
1318,
18,
588,
1444,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3460,
8343,
12,
6385,
509,
1177,
1854,
13,
202,
95,
202,
202,
759,
971,
732,
4565,
4859,
326,
2282,
3460,
471,
716,
1807,
4121,
1807,
6049,
202,
202,
430,
261,
1589,
1318,
422,
446,
13,
202,
202,
95,
1082,
202,
430,
261,
1589,
1854,
422,
374,
747,
1177,
1854,
422,
511,
1777,
882,
67,
5757,
13,
1082,
202,
95,
9506,
202,
2463,
333,
31,
1082,
202,
97,
1082,
202,
12107,
1082,
202,
95,
9506,
202,
1330,
18,
1376,
2932,
2279,
1177,
3301,
2319,
358,
4614,
3764,
1177,
1854,
315,
25083,
202,
15,
1177,
1854,
1769,
9506,
202,
2463,
446,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
759,
7074,
2
] |
fkName = shortenName(fkName, getPlatformInfo().getMaxIdentifierLength());
|
fkName = shortenName(fkName, getMaxForeignKeyNameLength());
|
public String getForeignKeyName(Table table, ForeignKey fk) { String fkName = fk.getName(); boolean needsName = (fkName == null) || (fkName.length() == 0); if (needsName) { StringBuffer name = new StringBuffer(); for (int idx = 0; idx < fk.getReferenceCount(); idx++) { name.append(fk.getReference(idx).getLocalColumnName()); name.append("_"); } name.append(fk.getForeignTableName()); fkName = getConstraintName(null, table, "FK", name.toString()); } fkName = shortenName(fkName, getPlatformInfo().getMaxIdentifierLength()); if (needsName) { _log.warn("Encountered a foreign key in table " + table.getName() + " that has no name. " + "DdlUtils will use the auto-generated and shortened name " + fkName + " instead."); } return fkName; }
|
1224 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1224/1c8005b78c0c227c00c26cd06dc341b155a3582f/SqlBuilder.java/clean/src/java/org/apache/ddlutils/platform/SqlBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
17530,
13987,
12,
1388,
1014,
16,
24039,
10949,
13,
565,
288,
3639,
514,
225,
10949,
461,
565,
273,
10949,
18,
17994,
5621,
3639,
1250,
4260,
461,
273,
261,
23120,
461,
422,
446,
13,
747,
261,
23120,
461,
18,
2469,
1435,
422,
374,
1769,
3639,
309,
261,
20600,
461,
13,
3639,
288,
5411,
6674,
508,
273,
394,
6674,
5621,
7734,
364,
261,
474,
2067,
273,
374,
31,
2067,
411,
10949,
18,
588,
2404,
1380,
5621,
2067,
27245,
5411,
288,
7734,
508,
18,
6923,
12,
23120,
18,
588,
2404,
12,
3465,
2934,
588,
2042,
8516,
10663,
7734,
508,
18,
6923,
2932,
67,
8863,
5411,
289,
5411,
508,
18,
6923,
12,
23120,
18,
588,
7816,
7147,
10663,
5411,
10949,
461,
273,
336,
5806,
461,
12,
2011,
16,
1014,
16,
315,
13121,
3113,
508,
18,
10492,
10663,
3639,
289,
3639,
10949,
461,
273,
19651,
461,
12,
23120,
461,
16,
7288,
7816,
13987,
1782,
10663,
3639,
309,
261,
20600,
461,
13,
3639,
288,
5411,
389,
1330,
18,
8935,
2932,
4280,
29625,
279,
5523,
498,
316,
1014,
315,
397,
1014,
18,
17994,
1435,
397,
315,
716,
711,
1158,
508,
18,
315,
397,
8227,
315,
40,
5761,
1989,
903,
999,
326,
3656,
17,
11168,
471,
19651,
329,
508,
315,
397,
10949,
461,
397,
315,
3560,
1199,
1769,
3639,
289,
3639,
327,
10949,
461,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
17530,
13987,
12,
1388,
1014,
16,
24039,
10949,
13,
565,
288,
3639,
514,
225,
10949,
461,
565,
273,
10949,
18,
17994,
5621,
3639,
1250,
4260,
461,
273,
261,
23120,
461,
422,
446,
13,
747,
261,
23120,
461,
18,
2469,
1435,
422,
374,
1769,
3639,
309,
261,
20600,
461,
13,
3639,
288,
5411,
6674,
508,
273,
394,
6674,
5621,
7734,
364,
261,
474,
2067,
273,
374,
31,
2067,
411,
10949,
18,
588,
2404,
1380,
5621,
2067,
27245,
5411,
288,
7734,
508,
18,
6923,
12,
23120,
18,
588,
2404,
12,
3465,
2934,
588,
2042,
8516,
10663,
7734,
508,
18,
6923,
2932,
67,
8863,
5411,
289,
5411,
508,
18,
6923,
12,
23120,
18,
588,
7816,
7147,
10663,
5411,
10949,
2
] |
+ Utils.padLeft("<", width) + " Scheme\n";
|
+ Utils.padLeft("<", width) + " Resultset\n";
|
public String multiResultsetRanking(int comparisonColumn) throws Exception { int [][] win = multiResultsetWins(comparisonColumn); int numResultsets = getNumResultsets(); int [] wins = new int [numResultsets]; int [] losses = new int [numResultsets]; int [] diff = new int [numResultsets]; for (int i = 0; i < win.length; i++) { for (int j = 0; j < win[i].length; j++) { wins[j] += win[i][j]; diff[j] += win[i][j]; losses[i] += win[i][j]; diff[i] -= win[i][j]; } } int biggest = Math.max(wins[Utils.maxIndex(wins)], losses[Utils.maxIndex(losses)]); int width = Math.max(2 + (int)(Math.log(biggest) / Math.log(10)), "<".length()); String result = Utils.padLeft(">-<", width) + ' ' + Utils.padLeft(">", width) + ' ' + Utils.padLeft("<", width) + " Scheme\n"; int [] ranking = Utils.sort(diff); for (int i = numResultsets - 1; i >= 0; i--) { int curr = ranking[i]; result += Utils.padLeft("" + diff[curr], width) + ' ' + Utils.padLeft("" + wins[curr], width) + ' ' + Utils.padLeft("" + losses[curr], width) + ' ' + getResultsetName(curr) + '\n'; } return result; }
|
4179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4179/6d1eaf333e87acf6354e38608f34e5ec45b9cd63/PairedTTester.java/buggy/trunk/weka/experiment/PairedTTester.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
3309,
1253,
542,
12925,
310,
12,
474,
5826,
1494,
13,
565,
1216,
1185,
288,
565,
509,
5378,
8526,
5657,
273,
3309,
1253,
542,
59,
2679,
12,
23050,
1494,
1769,
565,
509,
818,
1253,
4424,
273,
11187,
1253,
4424,
5621,
565,
509,
5378,
31307,
273,
394,
509,
306,
2107,
1253,
4424,
15533,
565,
509,
5378,
24528,
273,
394,
509,
306,
2107,
1253,
4424,
15533,
565,
509,
5378,
3122,
273,
394,
509,
306,
2107,
1253,
4424,
15533,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
5657,
18,
2469,
31,
277,
27245,
288,
1377,
364,
261,
474,
525,
273,
374,
31,
525,
411,
5657,
63,
77,
8009,
2469,
31,
525,
27245,
288,
202,
91,
2679,
63,
78,
65,
1011,
5657,
63,
77,
6362,
78,
15533,
202,
5413,
63,
78,
65,
1011,
5657,
63,
77,
6362,
78,
15533,
202,
30851,
63,
77,
65,
1011,
5657,
63,
77,
6362,
78,
15533,
202,
5413,
63,
77,
65,
3947,
5657,
63,
77,
6362,
78,
15533,
1377,
289,
565,
289,
565,
509,
5446,
17592,
273,
2361,
18,
1896,
12,
91,
2679,
63,
1989,
18,
1896,
1016,
12,
91,
2679,
13,
6487,
9506,
282,
24528,
63,
1989,
18,
1896,
1016,
12,
30851,
13,
19226,
565,
509,
1835,
273,
2361,
18,
1896,
12,
22,
397,
261,
474,
21433,
10477,
18,
1330,
12,
14002,
17592,
13,
342,
2361,
18,
1330,
12,
2163,
13,
3631,
9506,
3532,
9654,
2469,
10663,
565,
514,
563,
273,
6091,
18,
6982,
3910,
2932,
34,
17,
32,
3113,
1835,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
3309,
1253,
542,
12925,
310,
12,
474,
5826,
1494,
13,
565,
1216,
1185,
288,
565,
509,
5378,
8526,
5657,
273,
3309,
1253,
542,
59,
2679,
12,
23050,
1494,
1769,
565,
509,
818,
1253,
4424,
273,
11187,
1253,
4424,
5621,
565,
509,
5378,
31307,
273,
394,
509,
306,
2107,
1253,
4424,
15533,
565,
509,
5378,
24528,
273,
394,
509,
306,
2107,
1253,
4424,
15533,
565,
509,
5378,
3122,
273,
394,
509,
306,
2107,
1253,
4424,
15533,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
5657,
18,
2469,
31,
277,
27245,
288,
1377,
364,
261,
474,
525,
273,
374,
31,
525,
411,
5657,
63,
77,
8009,
2469,
31,
525,
27245,
288,
202,
91,
2679,
63,
78,
2
] |
ctx.println(" <option value='" + LIST_ACTION_PASSWORD + "'>Resend password...</option>");
|
ctx.println(" <option>" + LIST_ACTION_NONE + "</option>"); ctx.println(" <option value='" + LIST_ACTION_PASSWORD + "'>Show/resend password...</option>"); if(theirLevel > ourLevel) { ctx.println(" <option>" + LIST_ACTION_NONE + "</option>"); if((action!=null) && action.equals(LIST_ACTION_DELETE0)) { ctx.println(" <option value='" + LIST_ACTION_DELETE1 +"' SELECTED>Confirm delete</option>"); } else { ctx.println(" <option value='" + LIST_ACTION_DELETE0 +"'>Delete user..</option>"); } }
|
public void doList(WebContext ctx) { printHeader(ctx, "List Users"); printUserMenu(ctx); ctx.println("<a href='" + ctx.url() + "'><b>SurveyTool main</b></a><hr />"); String org = ctx.session.user.org; int ourLevel = ctx.session.user.userlevel; if(ourLevel <= UserRegistry.ADMIN) { org = null; // all } try { java.sql.ResultSet rs = reg.list(org); if(ourLevel <= UserRegistry.ADMIN) { org = "ALL"; // all } ctx.println("<h2>Users for " + org + "</h2>"); // TODO: css if(rs == null) { ctx.println("<i>No results...</i>"); return; } if(ourLevel <= UserRegistry.TC) { ctx.println("<form method=POST action='" + ctx.base() + "'>"); ctx.printUrlAsHiddenFields(); ctx.println("<input type='submit' name='doBtn' value='Change' />"); ctx.println("<input type='hidden' name='do' value='list' />"); } ctx.println("<table border='2'>"); ctx.println(" <tr><th>ID</th><th>Level</th><th>Name</th><th>Email</th><th>Organization</th><th>Actions</th></tr>"); while(rs.next()) { int theirId = rs.getInt(1); int theirLevel = rs.getInt(2); String theirName = rs.getString(3); String theirEmail = rs.getString(4); String theirOrg = rs.getString(5); ctx.println(" <tr>"); ctx.println(" <th>#" + theirId + "</th>"); ctx.println(" <td>" + UserRegistry.levelToStr(ctx,theirLevel) + "</td>"); ctx.println(" <td>" + theirName + "</td>"); ctx.println(" <td>" + theirEmail + "</td>"); ctx.println(" <td>" + theirOrg + "</td>"); boolean havePermToChange = ( ourLevel <= UserRegistry.TC) && // are at least TC and ( theirId != 1) && // they aren't admin 0 ( theirId != ctx.session.user.id) && // they aren't us ( theirLevel >= ourLevel ); if(havePermToChange) { // Was something requested? String theirTag = theirId + "_" + theirEmail; ctx.println(" <td><select name='" + theirTag + "'>"); // set user to VETTER ctx.println(" <option>" + LIST_ACTION_NONE + "</option>"); for(int i=0;i<UserRegistry.ALL_LEVELS.length;i++) { doChangeUserOption(ctx, UserRegistry.ALL_LEVELS[i], theirLevel); } ctx.println(" <option value='" + LIST_ACTION_PASSWORD + "'>Resend password...</option>"); ctx.println(" </select>"); ctx.println( "</td>"); String msg = null; String action = ctx.field(theirTag); if((action!=null)&&(action.length()>0)&&(!action.equals(LIST_ACTION_NONE))) { ctx.println("<td>"); // check an explicit list. Don't allow random levels to be set. for(int i=0;i<UserRegistry.ALL_LEVELS.length;i++) { if(action.equals(LIST_ACTION_SETLEVEL + UserRegistry.ALL_LEVELS[i])) { msg = reg.setUserLevel(ctx, theirId, theirEmail, UserRegistry.ALL_LEVELS[i]); ctx.println("Setting to level " + UserRegistry.levelToStr(ctx, UserRegistry.ALL_LEVELS[i])); ctx.println(": " + msg); } } if(action.equals(LIST_ACTION_PASSWORD)) { String pass = reg.getPassword(ctx, theirId); if(pass != null) { ctx.println("<a href='" + ctx.base() + "?email=" + theirEmail + "&uid=" + pass + "'>Login for " + theirEmail + "</a>"); } ctx.println(" <i style='font-size: 40%'>Note: no email sent, not implemented yet</i> "); }// ctx.println("Change to " + action); ctx.println("</td>"); } } ctx.println(" </tr>"); } ctx.println("</table>"); if(ourLevel <= UserRegistry.TC) { ctx.println("<input type='submit' name='doBtn' value='Change'>"); ctx.println("</form>"); } // #level $name $email $org rs.close(); } catch(SQLException se) { logger.log(Level.WARNING,"Query for org " + org + " failed: " + unchainSqlException(se),se); ctx.println("<i>Failure: " + unchainSqlException(se) + "</i><br />"); } printFooter(ctx); }
|
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/1268698f26b355ea21e5174fc9ab15d019aa17d1/SurveyMain.java/buggy/tools/java/org/unicode/cldr/web/SurveyMain.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
682,
12,
4079,
1042,
1103,
13,
288,
3639,
1172,
1864,
12,
5900,
16,
315,
682,
12109,
8863,
3639,
1172,
1299,
4599,
12,
5900,
1769,
3639,
1103,
18,
8222,
2932,
32,
69,
3897,
13396,
397,
1103,
18,
718,
1435,
397,
2491,
4438,
70,
34,
22165,
6364,
2774,
1757,
70,
4695,
69,
4438,
7256,
28505,
1769,
3639,
514,
2358,
273,
1103,
18,
3184,
18,
1355,
18,
3341,
31,
3639,
509,
3134,
2355,
273,
1103,
18,
3184,
18,
1355,
18,
1355,
2815,
31,
3639,
309,
12,
477,
2355,
1648,
2177,
4243,
18,
15468,
13,
288,
5411,
2358,
273,
446,
31,
368,
777,
3639,
289,
3639,
775,
288,
5411,
2252,
18,
4669,
18,
13198,
3597,
273,
960,
18,
1098,
12,
3341,
1769,
5411,
309,
12,
477,
2355,
1648,
2177,
4243,
18,
15468,
13,
288,
7734,
2358,
273,
315,
4685,
14432,
368,
777,
5411,
289,
5411,
1103,
18,
8222,
2932,
32,
76,
22,
34,
6588,
364,
315,
397,
2358,
397,
6823,
76,
22,
2984,
1769,
5411,
368,
2660,
30,
3747,
5411,
309,
12,
5453,
422,
446,
13,
288,
7734,
1103,
18,
8222,
2932,
32,
77,
34,
2279,
1686,
2777,
1757,
77,
2984,
1769,
7734,
327,
31,
5411,
289,
5411,
309,
12,
477,
2355,
1648,
2177,
4243,
18,
15988,
13,
288,
7734,
1103,
18,
8222,
2932,
32,
687,
707,
33,
3798,
1301,
13396,
397,
1103,
18,
1969,
1435,
397,
2491,
2984,
1769,
7734,
1103,
18,
1188,
1489,
1463,
9345,
2314,
5621,
7734,
1103,
18,
8222,
2932,
32,
2630,
618,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
682,
12,
4079,
1042,
1103,
13,
288,
3639,
1172,
1864,
12,
5900,
16,
315,
682,
12109,
8863,
3639,
1172,
1299,
4599,
12,
5900,
1769,
3639,
1103,
18,
8222,
2932,
32,
69,
3897,
13396,
397,
1103,
18,
718,
1435,
397,
2491,
4438,
70,
34,
22165,
6364,
2774,
1757,
70,
4695,
69,
4438,
7256,
28505,
1769,
3639,
514,
2358,
273,
1103,
18,
3184,
18,
1355,
18,
3341,
31,
3639,
509,
3134,
2355,
273,
1103,
18,
3184,
18,
1355,
18,
1355,
2815,
31,
3639,
309,
12,
477,
2355,
1648,
2177,
4243,
18,
15468,
13,
288,
5411,
2358,
273,
446,
31,
368,
777,
3639,
289,
3639,
775,
288,
5411,
2252,
18,
4669,
18,
13198,
3597,
273,
960,
18,
1098,
2
] |
public RubyArgumentException(String msg) { super(msg);
|
public RubyArgumentException() {
|
public RubyArgumentException(String msg) { super(msg); }
|
47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/9a05f18f2b6207bf93455d756436fe8f0002b542/RubyArgumentException.java/buggy/org/jruby/exceptions/RubyArgumentException.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
1878,
12,
780,
1234,
13,
288,
3639,
2240,
12,
3576,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
1878,
12,
780,
1234,
13,
288,
3639,
2240,
12,
3576,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return parameterName;
|
return String.valueOf(parameterName);
|
public String getName() { return parameterName; }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/18d9318d4df0c5bcdcd8b34cf92c3445bcb408e6/ASTParameterDeclaration.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/quick/ASTParameterDeclaration.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1723,
1435,
565,
288,
3639,
327,
514,
18,
1132,
951,
12,
6775,
461,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1723,
1435,
565,
288,
3639,
327,
514,
18,
1132,
951,
12,
6775,
461,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
.get( getMarkerIndex( ) ) ).setLabelAnchor( Anchor.get( LiteralHelper.anchorSet.getNameByDisplayName( cmbRangeAnchor.getText( ) ) ) );
|
.get( getMarkerIndex( ) ) ).setLabelAnchor( Anchor.getByName( LiteralHelper.anchorSet.getNameByDisplayName( cmbRangeAnchor.getText( ) ) ) );
|
public void widgetSelected( SelectionEvent e ) { if ( e.getSource( ).equals( btnAddLine ) ) { MarkerLine line = MarkerLineImpl.create( getAxisForProcessing( ), getTypedDataElement( "" ) ); //$NON-NLS-1$ line.eAdapters( ).addAll( getAxisForProcessing( ).eAdapters( ) ); iLineCount++; buildList( ); lstMarkers.select( lstMarkers.getItemCount( ) - 1 ); updateUIForSelection( ); if ( lstMarkers.getItemCount( ) == 1 ) { // Enable UI elements setState( true ); } refreshButtons( ); } else if ( e.getSource( ).equals( btnAddRange ) ) { MarkerRange range = MarkerRangeImpl.create( getAxisForProcessing( ), getTypedDataElement( "" ), //$NON-NLS-1$ getTypedDataElement( "" ), ColorDefinitionImpl.TRANSPARENT( ) ); //$NON-NLS-1$ range.eAdapters( ).addAll( getAxisForProcessing( ).eAdapters( ) ); iRangeCount++; buildList( ); lstMarkers.select( lstMarkers.getItemCount( ) - 1 ); updateUIForSelection( ); if ( lstMarkers.getItemCount( ) == 1 ) { // Enable UI elements setState( true ); } refreshButtons( ); } else if ( e.getSource( ).equals( btnRemove ) ) { if ( lstMarkers.getSelection( ).length == 0 ) { return; } String sSelectedMarker = lstMarkers.getSelection( )[0]; boolean bLine = sSelectedMarker.startsWith( "MarkerLine" ); //$NON-NLS-1$ int iMarkerIndex = getMarkerIndex( ); if ( bLine ) { getAxisForProcessing( ).getMarkerLines( ).remove( iMarkerIndex ); iLineCount--; } else { getAxisForProcessing( ).getMarkerRanges( ) .remove( iMarkerIndex ); iRangeCount--; } buildList( ); if ( lstMarkers.getItemCount( ) > 0 ) { lstMarkers.select( 0 ); updateUIForSelection( ); } else { setState( false ); resetUI( ); } refreshButtons( ); } else if ( e.getSource( ).equals( lstMarkers ) ) { updateUIForSelection( ); refreshButtons( ); } else if ( e.getSource( ).equals( cmbLineAnchor ) ) { ( (MarkerLine) getAxisForProcessing( ).getMarkerLines( ) .get( getMarkerIndex( ) ) ).setLabelAnchor( Anchor.get( LiteralHelper.anchorSet.getNameByDisplayName( cmbLineAnchor.getText( ) ) ) ); } else if ( e.getSource( ).equals( cmbRangeAnchor ) ) { ( (MarkerRange) getAxisForProcessing( ).getMarkerRanges( ) .get( getMarkerIndex( ) ) ).setLabelAnchor( Anchor.get( LiteralHelper.anchorSet.getNameByDisplayName( cmbRangeAnchor.getText( ) ) ) ); } else if ( e.getSource( ).equals( btnLineFormatSpecifier ) ) { String sAxisTitle = ""; //$NON-NLS-1$ try { sAxisTitle = new MessageFormat( Messages.getString( "BaseAxisMarkerAttributeSheetImpl.Lbl.ForAxis" ) ).format( new Object[]{getAxisForProcessing( ).getTitle( ).getCaption( ).getValue( )} ); //$NON-NLS-1$ } catch ( NullPointerException e1 ) { } FormatSpecifier formatspecifier = null; if ( ( (MarkerLine) getAxisForProcessing( ).getMarkerLines( ) .get( getMarkerIndex( ) ) ).getFormatSpecifier( ) != null ) { formatspecifier = ( (MarkerLine) getAxisForProcessing( ).getMarkerLines( ) .get( getMarkerIndex( ) ) ).getFormatSpecifier( ); } FormatSpecifierDialog editor = new FormatSpecifierDialog( cmpContent.getShell( ), formatspecifier, new MessageFormat( Messages.getString( "BaseAxisMarkerAttributeSheetImpl.Lbl.MarkerLine" ) ).format( new Object[]{new Integer( getMarkerIndex( ) + 1 ), sAxisTitle} ) ); //$NON-NLS-1$ if ( !editor.wasCancelled( ) ) { if ( editor.getFormatSpecifier( ) == null ) { ( (MarkerLine) getAxisForProcessing( ).getMarkerLines( ) .get( getMarkerIndex( ) ) ).eUnset( ComponentPackage.eINSTANCE.getMarkerLine_FormatSpecifier( ) ); return; } ( (MarkerLine) getAxisForProcessing( ).getMarkerLines( ) .get( getMarkerIndex( ) ) ).setFormatSpecifier( editor.getFormatSpecifier( ) ); } } else if ( e.getSource( ).equals( btnStartFormatSpecifier ) || e.getSource( ).equals( btnEndFormatSpecifier ) ) { String sAxisTitle = ""; //$NON-NLS-1$ try { String sTitleString = getAxisForProcessing( ).getTitle( ) .getCaption( ) .getValue( ); int iSeparatorIndex = sTitleString.indexOf( ExternalizedTextEditorComposite.SEPARATOR ); if ( iSeparatorIndex > 0 ) { sTitleString = sTitleString.substring( iSeparatorIndex ); } else if ( iSeparatorIndex == 0 ) { sTitleString = sTitleString.substring( ExternalizedTextEditorComposite.SEPARATOR.length( ) ); } sAxisTitle = new MessageFormat( Messages.getString( "BaseAxisMarkerAttributeSheetImpl.Lbl.ForAxis" ) ).format( new Object[]{sTitleString} ); //$NON-NLS-1$ } catch ( NullPointerException e1 ) { } FormatSpecifier formatspecifier = null; if ( ( (MarkerRange) getAxisForProcessing( ).getMarkerRanges( ) .get( getMarkerIndex( ) ) ).getFormatSpecifier( ) != null ) { formatspecifier = ( (MarkerRange) getAxisForProcessing( ).getMarkerRanges( ) .get( getMarkerIndex( ) ) ).getFormatSpecifier( ); } FormatSpecifierDialog editor = new FormatSpecifierDialog( cmpContent.getShell( ), formatspecifier, new MessageFormat( Messages.getString( "BaseAxisMarkerAttributeSheetImpl.Lbl.MarkerRange" ) ).format( new Object[]{new Integer( getMarkerIndex( ) + 1 ), sAxisTitle} ) ); //$NON-NLS-1$ if ( !editor.wasCancelled( ) ) { if ( editor.getFormatSpecifier( ) == null ) { ( (MarkerRange) getAxisForProcessing( ).getMarkerRanges( ) .get( getMarkerIndex( ) ) ).eUnset( ComponentPackage.eINSTANCE.getMarkerRange_FormatSpecifier( ) ); return; } ( (MarkerRange) getAxisForProcessing( ).getMarkerRanges( ) .get( getMarkerIndex( ) ) ).setFormatSpecifier( editor.getFormatSpecifier( ) ); } } }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/47a07f559e6fa4c2c084135842a4785cab246eae/AxisMarkersSheet.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/format/popup/axis/AxisMarkersSheet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3604,
7416,
12,
12977,
1133,
425,
262,
202,
95,
202,
202,
430,
261,
425,
18,
588,
1830,
12,
262,
18,
14963,
12,
10638,
986,
1670,
262,
262,
202,
202,
95,
1082,
202,
7078,
1670,
980,
273,
14742,
1670,
2828,
18,
2640,
12,
4506,
5674,
1290,
7798,
12,
262,
16,
6862,
202,
588,
11985,
751,
1046,
12,
1408,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
1369,
18,
73,
26620,
12,
262,
18,
1289,
1595,
12,
4506,
5674,
1290,
7798,
12,
262,
18,
73,
26620,
12,
262,
11272,
1082,
202,
77,
1670,
1380,
9904,
31,
1082,
202,
3510,
682,
12,
11272,
1082,
202,
16923,
21644,
18,
4025,
12,
9441,
21644,
18,
588,
30687,
12,
262,
300,
404,
11272,
1082,
202,
2725,
5370,
1290,
6233,
12,
11272,
1082,
202,
430,
261,
9441,
21644,
18,
588,
30687,
12,
262,
422,
404,
262,
1082,
202,
95,
9506,
202,
759,
9677,
6484,
2186,
9506,
202,
542,
1119,
12,
638,
11272,
1082,
202,
97,
1082,
202,
9144,
14388,
12,
11272,
202,
202,
97,
202,
202,
12107,
309,
261,
425,
18,
588,
1830,
12,
262,
18,
14963,
12,
10638,
986,
2655,
262,
262,
202,
202,
95,
1082,
202,
7078,
2655,
1048,
273,
14742,
2655,
2828,
18,
2640,
12,
4506,
5674,
1290,
7798,
12,
262,
16,
6862,
202,
588,
11985,
751,
1046,
12,
1408,
262,
16,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
588,
11985,
751,
1046,
12,
1408,
262,
16,
5563,
1852,
2828,
18,
8989,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3604,
7416,
12,
12977,
1133,
425,
262,
202,
95,
202,
202,
430,
261,
425,
18,
588,
1830,
12,
262,
18,
14963,
12,
10638,
986,
1670,
262,
262,
202,
202,
95,
1082,
202,
7078,
1670,
980,
273,
14742,
1670,
2828,
18,
2640,
12,
4506,
5674,
1290,
7798,
12,
262,
16,
6862,
202,
588,
11985,
751,
1046,
12,
1408,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
1369,
18,
73,
26620,
12,
262,
18,
1289,
1595,
12,
4506,
5674,
1290,
7798,
12,
262,
18,
73,
26620,
12,
262,
11272,
1082,
202,
77,
1670,
1380,
9904,
31,
1082,
202,
3510,
682,
12,
11272,
1082,
202,
16923,
21644,
18,
4025,
12,
9441,
21644,
18,
588,
30687,
2
] |
if (val instanceof Number) return ((Number) val).doubleValue();
|
public static double toNumber(Object val) { if (val == null) return +0.0; if (val instanceof Scriptable) { val = ((Scriptable) val).getDefaultValue(NumberClass); if (val != null && val instanceof Scriptable) throw errorWithClassName("msg.primitive.expected", val); // fall through } if (val instanceof String) return toNumber((String) val); if (val instanceof Number) return ((Number) val).doubleValue(); if (val instanceof Boolean) return ((Boolean) val).booleanValue() ? 1 : +0.0; throw errorWithClassName("msg.invalid.type", val); }
|
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/48465ddb686f28881238111ef580326ba9e38236/ScriptRuntime.java/buggy/js/rhino/src/org/mozilla/javascript/ScriptRuntime.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1645,
358,
1854,
12,
921,
1244,
13,
288,
3639,
309,
261,
1125,
422,
446,
13,
5411,
327,
397,
20,
18,
20,
31,
3639,
309,
261,
1125,
1276,
22780,
13,
288,
5411,
1244,
273,
14015,
3651,
429,
13,
1244,
2934,
588,
15646,
12,
1854,
797,
1769,
5411,
309,
261,
1125,
480,
446,
597,
1244,
1276,
22780,
13,
7734,
604,
555,
1190,
3834,
2932,
3576,
18,
683,
5025,
18,
3825,
3113,
1244,
1769,
5411,
368,
4159,
3059,
3639,
289,
3639,
309,
261,
1125,
1276,
514,
13,
5411,
327,
358,
1854,
12443,
780,
13,
1244,
1769,
3639,
309,
261,
1125,
1276,
3588,
13,
5411,
327,
14015,
1854,
13,
1244,
2934,
9056,
620,
5621,
3639,
309,
261,
1125,
1276,
3411,
13,
5411,
327,
14015,
5507,
13,
1244,
2934,
6494,
620,
1435,
692,
404,
294,
397,
20,
18,
20,
31,
3639,
604,
555,
1190,
3834,
2932,
3576,
18,
5387,
18,
723,
3113,
1244,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1645,
358,
1854,
12,
921,
1244,
13,
288,
3639,
309,
261,
1125,
422,
446,
13,
5411,
327,
397,
20,
18,
20,
31,
3639,
309,
261,
1125,
1276,
22780,
13,
288,
5411,
1244,
273,
14015,
3651,
429,
13,
1244,
2934,
588,
15646,
12,
1854,
797,
1769,
5411,
309,
261,
1125,
480,
446,
597,
1244,
1276,
22780,
13,
7734,
604,
555,
1190,
3834,
2932,
3576,
18,
683,
5025,
18,
3825,
3113,
1244,
1769,
5411,
368,
4159,
3059,
3639,
289,
3639,
309,
261,
1125,
1276,
514,
13,
5411,
327,
358,
1854,
12443,
780,
13,
1244,
1769,
3639,
309,
261,
1125,
1276,
3588,
13,
5411,
327,
14015,
1854,
13,
1244,
2934,
9056,
620,
5621,
3639,
309,
261,
1125,
1276,
3411,
2
] |
|
protected void createResetArea(Composite parent, MnemonicAssigner mnemonics) {
|
protected void createResetArea(Composite parent) {
|
protected void createResetArea(Composite parent, MnemonicAssigner mnemonics) { Composite composite = new Composite(parent, SWT.NONE); composite.setFont(parent.getFont()); GridLayout layout = new GridLayout(); layout.marginWidth = 0; composite.setLayout(layout); composite.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END)); Button reset = new Button(composite, SWT.PUSH); reset.setText(mnemonics.assign(Messages.getString("restoreDefaults.text"))); //$NON-NLS-1$ reset.setData(new Integer(RESET_ID)); reset.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent event) { buttonPressed(((Integer) event.widget.getData()).intValue()); } }); reset.setFont(composite.getFont()); setButtonLayoutData(reset); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/a9c33432fa2d46b64162d8fe154f421013d753bd/DialogMarkerFilter.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogMarkerFilter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
752,
7013,
5484,
12,
9400,
982,
13,
288,
3639,
14728,
9635,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
3639,
9635,
18,
542,
5711,
12,
2938,
18,
588,
5711,
10663,
3639,
7145,
3744,
3511,
273,
394,
7145,
3744,
5621,
3639,
3511,
18,
10107,
2384,
273,
374,
31,
3639,
9635,
18,
542,
3744,
12,
6741,
1769,
3639,
9635,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
44,
20344,
67,
26439,
67,
4415,
10019,
3639,
12569,
2715,
273,
394,
12569,
12,
27676,
16,
348,
8588,
18,
30348,
1769,
3639,
2715,
18,
542,
1528,
12,
13607,
4758,
2102,
18,
6145,
12,
5058,
18,
588,
780,
2932,
13991,
7019,
18,
955,
6,
3719,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
2715,
18,
542,
751,
12,
2704,
2144,
12,
26665,
67,
734,
10019,
3639,
2715,
18,
1289,
6233,
2223,
12,
2704,
12977,
4216,
1435,
288,
5411,
1071,
918,
3604,
7416,
12,
6233,
1133,
871,
13,
288,
7734,
3568,
24624,
12443,
12,
4522,
13,
871,
18,
6587,
18,
588,
751,
1435,
2934,
474,
620,
10663,
5411,
289,
3639,
15549,
3639,
2715,
18,
542,
5711,
12,
27676,
18,
588,
5711,
10663,
3639,
444,
3616,
3744,
751,
12,
6208,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
752,
7013,
5484,
12,
9400,
982,
13,
288,
3639,
14728,
9635,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
3639,
9635,
18,
542,
5711,
12,
2938,
18,
588,
5711,
10663,
3639,
7145,
3744,
3511,
273,
394,
7145,
3744,
5621,
3639,
3511,
18,
10107,
2384,
273,
374,
31,
3639,
9635,
18,
542,
3744,
12,
6741,
1769,
3639,
9635,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
44,
20344,
67,
26439,
67,
4415,
10019,
3639,
12569,
2715,
273,
394,
12569,
12,
27676,
16,
348,
8588,
18,
30348,
1769,
3639,
2715,
18,
542,
1528,
12,
13607,
4758,
2102,
18,
6145,
12,
5058,
18,
588,
780,
2932,
13991,
7019,
18,
955,
6,
3719,
2
] |
public org.quickfix.field.ExecInst getExecInst() throws FieldNotFound { org.quickfix.field.ExecInst value = new org.quickfix.field.ExecInst();
|
public quickfix.field.ExecInst getExecInst() throws FieldNotFound { quickfix.field.ExecInst value = new quickfix.field.ExecInst();
|
public org.quickfix.field.ExecInst getExecInst() throws FieldNotFound { org.quickfix.field.ExecInst value = new org.quickfix.field.ExecInst(); getField(value); return value; }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderCancelReplaceRequest.java/buggy/src/java/src/quickfix/fix43/OrderCancelReplaceRequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
1905,
10773,
336,
1905,
10773,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
1905,
10773,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
1905,
10773,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
1905,
10773,
336,
1905,
10773,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
1905,
10773,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
1905,
10773,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
bar.setVisible(false);
|
layout.topControl = null; top.layout();
|
void animationDone() { super.animationDone(); if(bar.isDisposed()) return; bar.setVisible(false); }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/4aa9341b68a9d8c14c08322502567cff4f528553/ProgressAnimationItem.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressAnimationItem.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
8794,
7387,
1435,
288,
202,
202,
9565,
18,
30822,
7387,
5621,
202,
202,
430,
12,
3215,
18,
291,
1669,
7423,
10756,
1082,
202,
2463,
31,
9506,
202,
3215,
18,
542,
6207,
12,
5743,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
8794,
7387,
1435,
288,
202,
202,
9565,
18,
30822,
7387,
5621,
202,
202,
430,
12,
3215,
18,
291,
1669,
7423,
10756,
1082,
202,
2463,
31,
9506,
202,
3215,
18,
542,
6207,
12,
5743,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
private void paintTextRuns(List textRuns, Graphics2D g2d,
|
private void paintTextRuns(List textRuns, Graphics2D g2d,
|
private void paintTextRuns(List textRuns, Graphics2D g2d, GraphicsNodeRenderContext context) { for (int i = 0; i < textRuns.size(); i++) { TextRun textRun = (TextRun)textRuns.get(i); AttributedCharacterIterator runaci = textRun.getACI(); runaci.first(); Composite opacity = (Composite) runaci.getAttribute(GVTAttributedCharacterIterator. TextAttribute.OPACITY); if (opacity != null) { g2d.setComposite(opacity); } textRun.getLayout().draw(g2d, context); } }
|
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/4c1a37c6e3e260eb88efd61d61285ad704f7c64a/StrokingTextPainter.java/clean/sources/org/apache/batik/gvt/renderer/StrokingTextPainter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
12574,
1528,
9361,
12,
682,
977,
9361,
16,
16830,
22,
40,
314,
22,
72,
16,
1171,
9079,
16830,
907,
3420,
1042,
819,
13,
288,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
977,
9361,
18,
1467,
5621,
277,
27245,
288,
5411,
3867,
1997,
977,
1997,
273,
261,
1528,
1997,
13,
955,
9361,
18,
588,
12,
77,
1769,
5411,
2380,
11050,
7069,
3198,
1086,
1077,
77,
273,
977,
1997,
18,
588,
2226,
45,
5621,
5411,
1086,
1077,
77,
18,
3645,
5621,
5411,
14728,
12636,
273,
261,
9400,
13,
5375,
1086,
1077,
77,
18,
588,
1499,
12,
25269,
56,
861,
11050,
7069,
3198,
18,
4766,
2868,
3867,
1499,
18,
3665,
30041,
1769,
5411,
309,
261,
19515,
480,
446,
13,
288,
7734,
314,
22,
72,
18,
542,
9400,
12,
19515,
1769,
5411,
289,
5411,
977,
1997,
18,
588,
3744,
7675,
9446,
12,
75,
22,
72,
16,
819,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
12574,
1528,
9361,
12,
682,
977,
9361,
16,
16830,
22,
40,
314,
22,
72,
16,
1171,
9079,
16830,
907,
3420,
1042,
819,
13,
288,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
977,
9361,
18,
1467,
5621,
277,
27245,
288,
5411,
3867,
1997,
977,
1997,
273,
261,
1528,
1997,
13,
955,
9361,
18,
588,
12,
77,
1769,
5411,
2380,
11050,
7069,
3198,
1086,
1077,
77,
273,
977,
1997,
18,
588,
2226,
45,
5621,
5411,
1086,
1077,
77,
18,
3645,
5621,
5411,
14728,
12636,
273,
261,
9400,
13,
5375,
1086,
1077,
77,
18,
588,
1499,
12,
25269,
56,
861,
11050,
7069,
3198,
18,
4766,
2868,
3867,
1499,
18,
3665,
30041,
1769,
5411,
309,
261,
19515,
2
] |
currentSelectPoint = e.getCamera().viewToLocal(e.getPosition());
|
double originalX = selectionAnchorPoint.getX(); double originalY = selectionAnchorPoint.getY(); double newX = e.getPosition().getX(); double newY = e.getPosition().getY(); double minX = Math.min(originalX,newX); double minY = Math.min(originalY,newY); double maxX = Math.max(originalX,newX); double maxY = Math.max(originalY,newY); selectionNode.setBounds(minX,minY, maxX-minX,maxY-minY);
|
public void respondDrag(PInputEvent e) { currentSelectPoint = e.getCamera().viewToLocal(e.getPosition()); repaint(); }
|
55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/913e45a73e803bf6a97dca24496a64546a51c9d5/BrowserView.java/clean/SRC/org/openmicroscopy/shoola/agents/browser/ui/BrowserView.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
6846,
11728,
12,
52,
1210,
1133,
425,
13,
3639,
288,
5411,
1645,
2282,
60,
273,
4421,
11605,
2148,
18,
588,
60,
5621,
1645,
2282,
61,
273,
4421,
11605,
2148,
18,
588,
61,
5621,
1645,
394,
60,
273,
425,
18,
588,
2555,
7675,
588,
60,
5621,
1645,
394,
61,
273,
425,
18,
588,
2555,
7675,
588,
61,
5621,
225,
1645,
21586,
273,
2361,
18,
1154,
12,
8830,
60,
16,
2704,
60,
1769,
1645,
21355,
273,
2361,
18,
1154,
12,
8830,
61,
16,
2704,
61,
1769,
1645,
21482,
273,
2361,
18,
1896,
12,
8830,
60,
16,
2704,
60,
1769,
1645,
21509,
273,
2361,
18,
1896,
12,
8830,
61,
16,
2704,
61,
1769,
225,
4421,
907,
18,
542,
5694,
12,
1154,
60,
16,
1154,
61,
16,
21482,
17,
1154,
60,
16,
1896,
61,
17,
1154,
61,
1769,
5411,
24962,
5621,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
6846,
11728,
12,
52,
1210,
1133,
425,
13,
3639,
288,
5411,
1645,
2282,
60,
273,
4421,
11605,
2148,
18,
588,
60,
5621,
1645,
2282,
61,
273,
4421,
11605,
2148,
18,
588,
61,
5621,
1645,
394,
60,
273,
425,
18,
588,
2555,
7675,
588,
60,
5621,
1645,
394,
61,
273,
425,
18,
588,
2555,
7675,
588,
61,
5621,
225,
1645,
21586,
273,
2361,
18,
1154,
12,
8830,
60,
16,
2704,
60,
1769,
1645,
21355,
273,
2361,
18,
1154,
12,
8830,
61,
16,
2704,
61,
1769,
1645,
21482,
273,
2361,
18,
1896,
12,
8830,
60,
16,
2704,
60,
1769,
1645,
21509,
273,
2361,
18,
1896,
12,
8830,
61,
16,
2704,
61,
1769,
225,
4421,
907,
18,
542,
5694,
2
] |
if (stateAtRelLocation(-relDistance) == ReducedToken.FREE)
|
if (stateAtRelLocation(-relDistance) == ReducedToken.FREE) { copyCursor.dispose();
|
public int previousBrace() { int relDistance = 0; int dist = 0; resetLocation();//reset the interface to the comment model ModelList<ReducedToken>.Iterator copyCursor = _cursor.copy(); if (!copyCursor.atStart()) copyCursor.prev(); if (copyCursor.atStart()) return -1; //innitialize the size. dist += _offset; relDistance = dist; // if we're in the middle of the first brace element, we're // not going to find any previous braces while (!copyCursor.atStart()){ if (!copyCursor.current().isGap()) { if (stateAtRelLocation(-relDistance) == ReducedToken.FREE) return dist + copyCursor.current().getSize(); relDistance = 0; } dist += copyCursor.current().getSize(); relDistance += copyCursor.current().getSize(); copyCursor.prev(); } return -1; }
|
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/db16e322f21576ce25b97ab99611f7c7362cef3e/ReducedModelBrace.java/buggy/drjava/src/edu/rice/cs/drjava/model/definitions/reducedmodel/ReducedModelBrace.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
2416,
21965,
1435,
6862,
6862,
6862,
9506,
565,
288,
1082,
202,
474,
1279,
7200,
273,
374,
31,
1082,
202,
474,
2411,
273,
374,
31,
1082,
202,
6208,
2735,
5621,
759,
6208,
326,
1560,
358,
326,
2879,
938,
25083,
202,
1488,
682,
32,
16911,
3263,
1345,
18652,
3198,
1610,
6688,
273,
389,
9216,
18,
3530,
5621,
1082,
202,
430,
16051,
3530,
6688,
18,
270,
1685,
10756,
9506,
202,
3530,
6688,
18,
10001,
5621,
1082,
202,
430,
261,
3530,
6688,
18,
270,
1685,
10756,
9506,
202,
2463,
300,
21,
31,
1082,
202,
759,
267,
82,
305,
1710,
326,
963,
18,
1082,
202,
4413,
1011,
389,
3348,
31,
1082,
202,
2878,
7200,
273,
2411,
31,
9506,
1377,
368,
309,
732,
4565,
316,
326,
7689,
434,
326,
1122,
22500,
930,
16,
732,
4565,
1377,
368,
486,
8554,
358,
1104,
1281,
2416,
26852,
4202,
25083,
202,
17523,
16051,
3530,
6688,
18,
270,
1685,
10756,
95,
9506,
202,
430,
16051,
3530,
6688,
18,
2972,
7675,
291,
14001,
10756,
288,
6862,
202,
430,
261,
2019,
861,
1971,
2735,
19236,
2878,
7200,
13,
422,
4621,
26372,
1345,
18,
28104,
13,
6862,
6862,
1082,
202,
2463,
2411,
397,
1610,
6688,
18,
2972,
7675,
588,
1225,
5621,
6862,
202,
2878,
7200,
273,
374,
31,
9506,
202,
97,
6862,
202,
4413,
1011,
1610,
6688,
18,
2972,
7675,
588,
1225,
5621,
6862,
202,
2878,
7200,
1011,
1610,
6688,
18,
2972,
7675,
588,
1225,
5621,
6862,
202,
3530,
6688,
18,
10001,
5621,
1082,
202,
97,
1082,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
2416,
21965,
1435,
6862,
6862,
6862,
9506,
565,
288,
1082,
202,
474,
1279,
7200,
273,
374,
31,
1082,
202,
474,
2411,
273,
374,
31,
1082,
202,
6208,
2735,
5621,
759,
6208,
326,
1560,
358,
326,
2879,
938,
25083,
202,
1488,
682,
32,
16911,
3263,
1345,
18652,
3198,
1610,
6688,
273,
389,
9216,
18,
3530,
5621,
1082,
202,
430,
16051,
3530,
6688,
18,
270,
1685,
10756,
9506,
202,
3530,
6688,
18,
10001,
5621,
1082,
202,
430,
261,
3530,
6688,
18,
270,
1685,
10756,
9506,
202,
2463,
300,
21,
31,
1082,
202,
759,
267,
82,
305,
1710,
326,
963,
18,
1082,
202,
4413,
1011,
389,
3348,
31,
1082,
202,
2878,
7200,
273,
2411,
31,
9506,
1377,
368,
2
] |
Image depthSpacingImage = getDepthSpacingImage(depth - 1);
|
Image depthSpacingImage = getDepthSpacingImage(depth);
|
private int setRowAttributes(Table table, PageTreeNode page, int row, int depth, boolean isLastChild) { table.setCellpadding(1, row, _padding); if (table.getColumns() == 2) table.setVerticalAlignment(2, row, Table.VERTICAL_ALIGN_BOTTOM); String alignment = getDepthAlignment(depth); if (alignment == null) { alignment = _textAlignment; } if (alignment.equals(Table.HORIZONTAL_ALIGN_LEFT)) { table.setCellpaddingLeft(1, row, getIndent(depth)); } else if (alignment.equals(Table.HORIZONTAL_ALIGN_RIGHT)) { table.setCellpaddingRight(1, row, getIndent(depth)); } String color = getDepthColor(page, depth); if (color != null) table.setRowColor(row, color); String height = getDepthHeight(depth); if (height != null) { table.setHeight(row, height); } int topPadding = getDepthPaddingTop(depth); if (topPadding != -1) { table.setVerticalAlignment(1, row, Table.VERTICAL_ALIGN_TOP); table.setCellpaddingTop(1, row, topPadding); } table.getCellAt(1, row).setID("row" + row); table.setAlignment(1, row, alignment); table.setNoWrap(1, row++); boolean addBreak = false; if (_spaceBetween > 0) { String spacingColor = null; if (isLastChild && depth != 0) { spacingColor = getDepthSpacingColor(depth - 1); } else { spacingColor = getDepthSpacingColor(depth); } if (spacingColor != null) { table.setRowColor(row, spacingColor); } table.setHeight(row, _spaceBetween); addBreak = true; } Image depthSpacingImage = getDepthSpacingImage(depth - 1); if (depthSpacingImage != null) { table.mergeCells(1, row, table.getColumns(), row); table.add(depthSpacingImage, 1, row); addBreak = true; } if (addBreak) { row++; } return row; }
|
14023 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14023/933e6d8c8f82c988b28c54affb17d467a53c2241/NavigationTree.java/clean/src/java/com/idega/block/navigation/presentation/NavigationTree.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
444,
1999,
2498,
12,
1388,
1014,
16,
3460,
12513,
1363,
16,
509,
1027,
16,
509,
3598,
16,
1250,
23075,
1763,
13,
288,
202,
202,
2121,
18,
542,
4020,
9598,
12,
21,
16,
1027,
16,
389,
9598,
1769,
202,
202,
430,
261,
2121,
18,
588,
3380,
1435,
422,
576,
13,
1082,
202,
2121,
18,
542,
15704,
11535,
12,
22,
16,
1027,
16,
3555,
18,
21654,
10109,
67,
26439,
67,
28891,
1769,
9506,
202,
780,
8710,
273,
31038,
11535,
12,
5979,
1769,
202,
202,
430,
261,
14409,
422,
446,
13,
288,
1082,
202,
14409,
273,
389,
955,
11535,
31,
202,
202,
97,
9506,
202,
430,
261,
14409,
18,
14963,
12,
1388,
18,
44,
20344,
67,
26439,
67,
10066,
3719,
288,
1082,
202,
2121,
18,
542,
4020,
9598,
3910,
12,
21,
16,
1027,
16,
336,
7790,
12,
5979,
10019,
202,
202,
97,
202,
202,
12107,
309,
261,
14409,
18,
14963,
12,
1388,
18,
44,
20344,
67,
26439,
67,
11847,
3719,
288,
1082,
202,
2121,
18,
542,
4020,
9598,
4726,
12,
21,
16,
1027,
16,
336,
7790,
12,
5979,
10019,
202,
202,
97,
202,
202,
780,
2036,
273,
31038,
2957,
12,
2433,
16,
3598,
1769,
202,
202,
430,
261,
3266,
480,
446,
13,
1082,
202,
2121,
18,
542,
1999,
2957,
12,
492,
16,
2036,
1769,
9506,
202,
780,
2072,
273,
31038,
2686,
12,
5979,
1769,
202,
202,
430,
261,
4210,
480,
446,
13,
288,
1082,
202,
2121,
18,
542,
2686,
12,
492,
16,
2072,
1769,
202,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
444,
1999,
2498,
12,
1388,
1014,
16,
3460,
12513,
1363,
16,
509,
1027,
16,
509,
3598,
16,
1250,
23075,
1763,
13,
288,
202,
202,
2121,
18,
542,
4020,
9598,
12,
21,
16,
1027,
16,
389,
9598,
1769,
202,
202,
430,
261,
2121,
18,
588,
3380,
1435,
422,
576,
13,
1082,
202,
2121,
18,
542,
15704,
11535,
12,
22,
16,
1027,
16,
3555,
18,
21654,
10109,
67,
26439,
67,
28891,
1769,
9506,
202,
780,
8710,
273,
31038,
11535,
12,
5979,
1769,
202,
202,
430,
261,
14409,
422,
446,
13,
288,
1082,
202,
14409,
273,
389,
955,
11535,
31,
202,
202,
97,
9506,
202,
430,
261,
14409,
18,
14963,
12,
1388,
18,
44,
20344,
67,
26439,
67,
2
] |
super(iterator);
|
super(filterIter);
|
public Filter(FilterIter iterator, Iterator parent, StreamFactory factory) { super(iterator); graph = factory.getLatencyGraph(); }
|
5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/25d86c911dd2611a91baa7c74162f9df04327ce1/Filter.java/buggy/streams/src/streamit/scheduler2/constrained/Filter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4008,
12,
1586,
2360,
2775,
16,
4498,
982,
16,
3961,
1733,
3272,
13,
565,
288,
3639,
2240,
12,
2188,
2360,
1769,
7734,
2667,
273,
3272,
18,
588,
21461,
4137,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4008,
12,
1586,
2360,
2775,
16,
4498,
982,
16,
3961,
1733,
3272,
13,
565,
288,
3639,
2240,
12,
2188,
2360,
1769,
7734,
2667,
273,
3272,
18,
588,
21461,
4137,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
throws IOException { DHCPMessage msg = new DHCPMessage(hdr, DHCPMessage.DHCPDISCOVER); return msg.toDatagramPacket(); }
|
throws IOException { DHCPMessage msg = new DHCPMessage(hdr, DHCPMessage.DHCPDISCOVER); return msg.toDatagramPacket(); }
|
protected DatagramPacket createRequestPacket(BOOTPHeader hdr) throws IOException { DHCPMessage msg = new DHCPMessage(hdr, DHCPMessage.DHCPDISCOVER); return msg.toDatagramPacket(); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f70efaeec62e6160f5be83c245ada2007ba6979/DHCPClient.java/clean/net/src/net/org/jnode/net/ipv4/dhcp/DHCPClient.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
6168,
17049,
6667,
15798,
6667,
12,
5315,
25634,
1864,
7723,
13,
5411,
1216,
1860,
288,
3639,
24141,
4258,
1079,
1234,
273,
394,
24141,
4258,
1079,
12,
16587,
16,
24141,
4258,
1079,
18,
16501,
4258,
2565,
2312,
12959,
1769,
3639,
327,
1234,
18,
869,
5139,
17049,
6667,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
6168,
17049,
6667,
15798,
6667,
12,
5315,
25634,
1864,
7723,
13,
5411,
1216,
1860,
288,
3639,
24141,
4258,
1079,
1234,
273,
394,
24141,
4258,
1079,
12,
16587,
16,
24141,
4258,
1079,
18,
16501,
4258,
2565,
2312,
12959,
1769,
3639,
327,
1234,
18,
869,
5139,
17049,
6667,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
void setShort(int parameterIndex, short x) throws SQLException;
|
void setShort(int index, short value) throws SQLException;
|
void setShort(int parameterIndex, short x) throws SQLException;
|
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/49386b54ba94e937a085f9484371a383d8905f0a/PreparedStatement.java/buggy/java/sql/PreparedStatement.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
444,
4897,
12,
474,
25412,
16,
3025,
619,
13,
1216,
6483,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
444,
4897,
12,
474,
25412,
16,
3025,
619,
13,
1216,
6483,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (p.isSingleton()) { continue; }
|
public RubyArray ancestors() { RubyArray ary = getRuntime().newArray(); for (RubyModule p = this; p != null; p = p.getSuperClass()) { if (p.isSingleton()) { continue; } if (p.isIncluded()) { ary.append(((IncludedModuleWrapper) p).getDelegate()); } else { ary.append(p); } } return ary; }
|
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/d166adca82dbf831b1e455c4d157b0033e10a6f1/RubyModule.java/clean/src/org/jruby/RubyModule.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
1076,
14322,
1435,
288,
3639,
19817,
1076,
11841,
273,
18814,
7675,
2704,
1076,
5621,
3639,
364,
261,
54,
10340,
3120,
293,
273,
333,
31,
293,
480,
446,
31,
293,
273,
293,
18,
588,
8051,
797,
10756,
288,
5411,
309,
261,
84,
18,
291,
19571,
10756,
288,
7734,
1324,
31,
5411,
289,
5411,
309,
261,
84,
18,
291,
19323,
10756,
288,
7734,
11841,
18,
6923,
12443,
12,
19323,
3120,
3611,
13,
293,
2934,
588,
9586,
10663,
5411,
289,
469,
288,
7734,
11841,
18,
6923,
12,
84,
1769,
5411,
289,
3639,
289,
3639,
327,
11841,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
1076,
14322,
1435,
288,
3639,
19817,
1076,
11841,
273,
18814,
7675,
2704,
1076,
5621,
3639,
364,
261,
54,
10340,
3120,
293,
273,
333,
31,
293,
480,
446,
31,
293,
273,
293,
18,
588,
8051,
797,
10756,
288,
5411,
309,
261,
84,
18,
291,
19571,
10756,
288,
7734,
1324,
31,
5411,
289,
5411,
309,
261,
84,
18,
291,
19323,
10756,
288,
7734,
11841,
18,
6923,
12443,
12,
19323,
3120,
3611,
13,
293,
2934,
588,
9586,
10663,
5411,
289,
469,
288,
7734,
11841,
18,
6923,
12,
84,
1769,
5411,
289,
3639,
289,
3639,
327,
11841,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
if(isAlternate(root)){ return null; } int savedLength = xpath.length(); getXPath(root,xpath); int oldLength = xpath.length();
|
private ICUResourceWriter.Resource parsePosix(Node root, StringBuffer xpath){ ICUResourceWriter.Resource first = null; ICUResourceWriter.Resource current = null; if(isDraft(root, xpath)&& !writeDraft){ return null; } if(isAlternate(root)){ return null; } int savedLength = xpath.length(); getXPath(root,xpath); int oldLength = xpath.length(); for(Node node=root.getFirstChild(); node!=null; node=node.getNextSibling()){ if(node.getNodeType()!=Node.ELEMENT_NODE){ continue; } String name = node.getNodeName(); ICUResourceWriter.Resource res = null; if(name.equals(LDMLConstants.MESSAGES)){ //res = parseMessages(node, xpath); // messages ignored (for now) }else if(name.equals(LDMLConstants.ALIAS)){ res = parseAliasResource(node, xpath); }else{ System.err.println("Unknown element found: "+name); System.exit(-1); } if(res!=null){ if(current==null ){ current = first = res; }else{ current.next = res; current = current.next; } res = null; } xpath.delete(oldLength, xpath.length()); } xpath.delete(savedLength, xpath.length()); return first; }
|
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/5de842e633b15da52224bdc6c27396f58ea2a741/LDML2ICUConverter.java/clean/tools/java/org/unicode/cldr/icu/LDML2ICUConverter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
28009,
1420,
2289,
18,
1420,
1109,
1616,
697,
12,
907,
1365,
16,
6674,
6748,
15329,
3639,
28009,
1420,
2289,
18,
1420,
1122,
273,
446,
31,
3639,
28009,
1420,
2289,
18,
1420,
783,
273,
446,
31,
3639,
309,
12,
291,
12714,
12,
3085,
16,
6748,
13,
10,
10,
401,
2626,
12714,
15329,
5411,
327,
446,
31,
3639,
289,
3639,
309,
12,
291,
25265,
12,
3085,
3719,
95,
5411,
327,
446,
31,
3639,
289,
3639,
509,
5198,
1782,
273,
6748,
18,
2469,
5621,
3639,
6538,
743,
12,
3085,
16,
18644,
1769,
3639,
509,
1592,
1782,
273,
6748,
18,
2469,
5621,
3639,
364,
12,
907,
756,
33,
3085,
18,
588,
3759,
1763,
5621,
756,
5,
33,
2011,
31,
756,
33,
2159,
18,
588,
2134,
10291,
10756,
95,
5411,
309,
12,
2159,
18,
588,
15101,
1435,
5,
33,
907,
18,
10976,
67,
8744,
15329,
7734,
1324,
31,
5411,
289,
5411,
514,
508,
273,
756,
18,
588,
18948,
5621,
5411,
28009,
1420,
2289,
18,
1420,
400,
273,
446,
31,
5411,
309,
12,
529,
18,
14963,
12,
12069,
1495,
2918,
18,
26195,
3719,
95,
7734,
368,
455,
273,
1109,
5058,
12,
2159,
16,
6748,
1769,
368,
2743,
5455,
261,
1884,
2037,
13,
5411,
289,
12107,
309,
12,
529,
18,
14963,
12,
12069,
1495,
2918,
18,
23784,
3719,
95,
7734,
400,
273,
1109,
2936,
1420,
12,
2159,
16,
6748,
1769,
5411,
289,
12107,
95,
1171,
2332,
18,
370,
18,
8222,
2932,
4874,
930,
1392,
30,
13773,
529,
1769,
1171,
2332,
18,
8593,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
28009,
1420,
2289,
18,
1420,
1109,
1616,
697,
12,
907,
1365,
16,
6674,
6748,
15329,
3639,
28009,
1420,
2289,
18,
1420,
1122,
273,
446,
31,
3639,
28009,
1420,
2289,
18,
1420,
783,
273,
446,
31,
3639,
309,
12,
291,
12714,
12,
3085,
16,
6748,
13,
10,
10,
401,
2626,
12714,
15329,
5411,
327,
446,
31,
3639,
289,
3639,
309,
12,
291,
25265,
12,
3085,
3719,
95,
5411,
327,
446,
31,
3639,
289,
3639,
509,
5198,
1782,
273,
6748,
18,
2469,
5621,
3639,
6538,
743,
12,
3085,
16,
18644,
1769,
3639,
509,
1592,
1782,
273,
6748,
18,
2469,
5621,
3639,
364,
12,
907,
756,
33,
3085,
18,
588,
3759,
1763,
5621,
756,
5,
33,
2011,
31,
756,
33,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.