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 (player.getName() != client.getPlayerName())
|
if (!player.getName().equals(client.getPlayerName()))
|
private void setupActions() { undoLastSplitAction = new AbstractAction(undoLastSplit) { public void actionPerformed(ActionEvent e) { Player player = game.getActivePlayer(); if (player.getName() != client.getPlayerName()) { return; } // peek at the undo stack so we know where to align String hexLabel = (String)Client.topUndoStack(); player.undoLastSplit(); alignLegions(hexLabel); highlightTallLegions(player); repaint(); } }; undoAllSplitsAction = new AbstractAction(undoAllSplits) { public void actionPerformed(ActionEvent e) { Player player = game.getActivePlayer(); if (player.getName() != client.getPlayerName()) { return; } // peek at the undo stack so we know where to align player.undoAllSplits(); alignAllLegions(); highlightTallLegions(player); repaint(); } }; doneWithSplitsAction = new AbstractAction(doneWithSplits) { public void actionPerformed(ActionEvent e) { Player player = game.getActivePlayer(); if (player.getName() != client.getPlayerName()) { return; } // Initial legions must be split. if (game.getTurnNumber() == 1 && player.getNumLegions() == 1) { JOptionPane.showMessageDialog(masterFrame, "Must split."); } else { game.advancePhase(); } } }; undoLastMoveAction = new AbstractAction(undoLastMove) { public void actionPerformed(ActionEvent e) { Player player = game.getActivePlayer(); if (player.getName() != client.getPlayerName()) { return; } player.undoLastMove(); highlightUnmovedLegions(); } }; undoAllMovesAction = new AbstractAction(undoAllMoves) { public void actionPerformed(ActionEvent e) { Player player = game.getActivePlayer(); if (player.getName() != client.getPlayerName()) { return; } player.undoAllMoves(); highlightUnmovedLegions(); } }; takeMulliganAction = new AbstractAction(takeMulligan) { public void actionPerformed(ActionEvent e) { Player player = game.getActivePlayer(); if (player.getName() != client.getPlayerName()) { return; } player.takeMulligan(); // Reroll movement die. Remove Take Mulligan option // if applicable. game.setupPhase(); } }; doneWithMovesAction = new AbstractAction(doneWithMoves) { public void actionPerformed(ActionEvent e) { Player player = game.getActivePlayer(); if (player.getName() != client.getPlayerName()) { return; } // If any legion has a legal non-teleport move, then the // player must move at least one legion. if (player.legionsMoved() == 0 && player.countMobileLegions() > 0) { highlightUnmovedLegions(); JOptionPane.showMessageDialog(masterFrame, "At least one legion must move."); } else { // If legions share a hex and have a legal non-teleport // move, force one of them to take it. if (player.splitLegionHasForcedMove()) { highlightUnmovedLegions(); JOptionPane.showMessageDialog(masterFrame, "Split legions must be separated."); } // Otherwise, recombine all split legions still in the // same hex, and move on to the next phase. else { player.undoAllSplits(); game.advancePhase(); } } } }; doneWithEngagementsAction = new AbstractAction(doneWithEngagements) { public void actionPerformed(ActionEvent e) { Player player = game.getActivePlayer(); if (player.getName() != client.getPlayerName()) { return; } // Advance only if there are no unresolved engagements. if (highlightEngagements() == 0) { game.advancePhase(); } else { JOptionPane.showMessageDialog(masterFrame, "Must Resolve Engagements."); } } }; undoLastRecruitAction = new AbstractAction(undoLastRecruit) { public void actionPerformed(ActionEvent e) { Player player = game.getActivePlayer(); if (player.getName() != client.getPlayerName()) { return; } player.undoLastRecruit(); highlightPossibleRecruits(); } }; undoAllRecruitsAction = new AbstractAction(undoAllRecruits) { public void actionPerformed(ActionEvent e) { Player player = game.getActivePlayer(); if (player.getName() != client.getPlayerName()) { return; } player.undoAllRecruits(); highlightPossibleRecruits(); } }; doneWithTurnAction = new AbstractAction(doneWithTurn) { public void actionPerformed(ActionEvent e) { Player player = game.getActivePlayer(); if (player.getName() != client.getPlayerName()) { return; } player.commitMoves(); // Mulligans are only allowed on turn 1. player.setMulligansLeft(0); game.advancePhase(); } }; // TODO Let inactive players withdraw from the game. withdrawFromGameAction = new AbstractAction(withdrawFromGame) { public void actionPerformed(ActionEvent e) { Player player = game.getActivePlayer(); if (player.getName() != client.getPlayerName()) { return; } String [] options = new String[2]; options[0] = "Yes"; options[1] = "No"; int answer = JOptionPane.showOptionDialog(masterFrame, "Are you sure you with to withdraw from the game?", "Confirm Withdrawal?", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[1]); if (answer == JOptionPane.YES_OPTION) { player.die(null, true); game.advancePhase(); } } }; viewRecruitInfoAction = new AbstractAction(viewRecruitInfo) { public void actionPerformed(ActionEvent e) { GUIMasterHex hex = getHexContainingPoint(lastPoint); if (hex != null) { new ShowMasterHex(masterFrame, game, hex, lastPoint); // Work around a Windows JDK 1.3 bug. hex.repaint(); } } }; viewBattleMapAction = new AbstractAction(viewBattleMap) { public void actionPerformed(ActionEvent e) { GUIMasterHex hex = getHexContainingPoint(lastPoint); if (hex != null) { new ShowBattleMap(masterFrame, hex.getLabel()); // Work around a Windows JDK 1.3 bug. hex.repaint(); } } }; newGameAction = new AbstractAction(newGame) { public void actionPerformed(ActionEvent e) { String [] options = new String[2]; options[0] = "Yes"; options[1] = "No"; int answer = JOptionPane.showOptionDialog(masterFrame, "Are you sure you with to start a new game?", "New Game?", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[1]); if (answer == JOptionPane.YES_OPTION) { game.newGame(); } } }; loadGameAction = new AbstractAction(loadGame) { public void actionPerformed(ActionEvent e) { String [] options = new String[2]; options[0] = "Yes"; options[1] = "No"; int answer = JOptionPane.showOptionDialog(masterFrame, "Are you sure you with to load another game?", "Load Game?", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[1]); if (answer == JOptionPane.YES_OPTION) { JFileChooser chooser = new JFileChooser(Game.saveDirname); chooser.setFileFilter(new SaveGameFilter()); int returnVal = chooser.showOpenDialog(masterFrame); if (returnVal == JFileChooser.APPROVE_OPTION) { game.loadGame(chooser.getSelectedFile().getName()); } } } }; saveGameAction = new AbstractAction(saveGame) { public void actionPerformed(ActionEvent e) { // XXX Offer the ability to re-use a save filename, // rather than always making a new one? game.saveGame(); } }; saveGameAsAction = new AbstractAction(saveGameAs) { // XXX Need a confirmation dialog on overwrite? public void actionPerformed(ActionEvent e) { JFileChooser chooser = new JFileChooser(Game.saveDirname); chooser.setFileFilter(new SaveGameFilter()); int returnVal = chooser.showSaveDialog(masterFrame); if (returnVal == JFileChooser.APPROVE_OPTION) { String dirname = chooser.getCurrentDirectory().getName(); String basename = chooser.getSelectedFile().getName(); StringBuffer path = new StringBuffer(); path.append(dirname); path.append(File.separator); path.append(basename); // Add default savegame extension. if (!path.toString().endsWith(Game.saveExtension)) { path.append(Game.saveExtension); } game.saveGame(path.toString()); } } }; saveOptionsAction = new AbstractAction(saveOptions) { public void actionPerformed(ActionEvent e) { client.saveOptions(); } }; quitGameAction = new AbstractAction(quitGame) { public void actionPerformed(ActionEvent e) { String [] options = new String[2]; options[0] = "Yes"; options[1] = "No"; int answer = JOptionPane.showOptionDialog(masterFrame, "Are you sure you with to quit?", "Quit Game?", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[1]); if (answer == JOptionPane.YES_OPTION) { game.dispose(); } } }; changeScaleAction = new AbstractAction(changeScale) { public void actionPerformed(ActionEvent e) { final int oldScale = Scale.get(); final int newScale = PickScale.pickScale(masterFrame, oldScale); if (newScale != oldScale && newScale != -1) { Scale.set(newScale); client.rescaleAllWindows(); } } }; }
|
51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/5e69df65648ef05d9048794b8368383e131bba86/MasterBoard.java/clean/Colossus/MasterBoard.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3875,
6100,
1435,
565,
288,
3639,
15436,
3024,
5521,
1803,
273,
394,
4115,
1803,
12,
31226,
3024,
5521,
13,
3639,
288,
5411,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
5411,
288,
7734,
19185,
7291,
273,
7920,
18,
588,
3896,
12148,
5621,
7734,
309,
16051,
14872,
18,
17994,
7675,
14963,
12,
2625,
18,
588,
12148,
461,
1435,
3719,
7734,
288,
10792,
327,
31,
7734,
289,
7734,
368,
8032,
622,
326,
15436,
2110,
1427,
732,
5055,
1625,
358,
5689,
7734,
514,
3827,
2224,
273,
261,
780,
13,
1227,
18,
3669,
31224,
2624,
5621,
7734,
7291,
18,
31226,
3024,
5521,
5621,
7734,
5689,
8329,
1115,
12,
7118,
2224,
1769,
7734,
8839,
56,
454,
8329,
1115,
12,
14872,
1769,
7734,
24962,
5621,
5411,
289,
3639,
289,
31,
3639,
15436,
1595,
16582,
1803,
273,
394,
4115,
1803,
12,
31226,
1595,
16582,
13,
3639,
288,
5411,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
5411,
288,
7734,
19185,
7291,
273,
7920,
18,
588,
3896,
12148,
5621,
7734,
309,
16051,
14872,
18,
17994,
7675,
14963,
12,
2625,
18,
588,
12148,
461,
1435,
3719,
7734,
288,
10792,
327,
31,
7734,
289,
7734,
368,
8032,
622,
326,
15436,
2110,
1427,
732,
5055,
1625,
358,
5689,
7734,
7291,
18,
31226,
1595,
16582,
5621,
7734,
5689,
1595,
8329,
1115,
5621,
7734,
8839,
56,
454,
8329,
1115,
12,
14872,
1769,
7734,
24962,
5621,
5411,
289,
3639,
289,
31,
3639,
2731,
1190,
16582,
1803,
273,
394,
4115,
1803,
12,
8734,
1190,
16582,
13,
3639,
288,
5411,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3875,
6100,
1435,
565,
288,
3639,
15436,
3024,
5521,
1803,
273,
394,
4115,
1803,
12,
31226,
3024,
5521,
13,
3639,
288,
5411,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
5411,
288,
7734,
19185,
7291,
273,
7920,
18,
588,
3896,
12148,
5621,
7734,
309,
16051,
14872,
18,
17994,
7675,
14963,
12,
2625,
18,
588,
12148,
461,
1435,
3719,
7734,
288,
10792,
327,
31,
7734,
289,
7734,
368,
8032,
622,
326,
15436,
2110,
1427,
732,
5055,
1625,
358,
5689,
7734,
514,
3827,
2224,
273,
261,
780,
13,
1227,
18,
3669,
31224,
2624,
5621,
7734,
7291,
18,
31226,
3024,
5521,
5621,
7734,
5689,
8329,
1115,
12,
7118,
2224,
1769,
7734,
8839,
56,
454,
8329,
1115,
12,
14872,
1769,
2
] |
mapFrame.mapView.editLayer().listenerCommands.add(this);
|
mapFrame.mapView.addLayerChangeListener(new LayerChangeListener(){ public void activeLayerChange(Layer oldLayer, Layer newLayer) {} public void layerAdded(Layer newLayer) { if (newLayer instanceof OsmDataLayer) Main.main.editLayer().listenerCommands.add(CommandStackDialog.this); } public void layerRemoved(Layer oldLayer) {} });
|
public CommandStackDialog(MapFrame mapFrame) { super("Command Stack", "commandstack", "Open a list of all commands (undo buffer).", KeyEvent.VK_C); this.mapFrame = mapFrame; setPreferredSize(new Dimension(320,100)); mapFrame.mapView.editLayer().listenerCommands.add(this); tree.setRootVisible(false); tree.setShowsRootHandles(true); tree.expandRow(0); tree.setCellRenderer(new DefaultTreeCellRenderer(){ @Override public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) { super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, row, hasFocus); DefaultMutableTreeNode v = (DefaultMutableTreeNode)value; if (v.getUserObject() instanceof JLabel) { JLabel l = (JLabel)v.getUserObject(); setIcon(l.getIcon()); setText(l.getText()); } return this; } }); tree.setVisibleRowCount(8); add(new JScrollPane(tree), BorderLayout.CENTER); }
|
2204 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2204/65d8ba1e1c7192a02b1c996304587a81a85155f1/CommandStackDialog.java/clean/src/org/openstreetmap/josm/gui/dialogs/CommandStackDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3498,
2624,
6353,
12,
863,
3219,
852,
3219,
13,
288,
202,
202,
9565,
2932,
2189,
7283,
3113,
315,
3076,
3772,
3113,
315,
3678,
279,
666,
434,
777,
4364,
261,
31226,
1613,
14944,
16,
23737,
18,
58,
47,
67,
39,
1769,
202,
202,
2211,
18,
1458,
3219,
273,
852,
3219,
31,
202,
202,
542,
16028,
1225,
12,
2704,
13037,
12,
31273,
16,
6625,
10019,
202,
202,
1458,
3219,
18,
1458,
1767,
18,
4619,
4576,
7675,
12757,
9127,
18,
1289,
12,
2211,
1769,
202,
202,
3413,
18,
542,
2375,
6207,
12,
5743,
1769,
202,
202,
3413,
18,
542,
24548,
2375,
8788,
12,
3767,
1769,
202,
202,
3413,
18,
12320,
1999,
12,
20,
1769,
202,
202,
3413,
18,
542,
4020,
6747,
12,
2704,
2989,
2471,
4020,
6747,
1435,
95,
1082,
202,
36,
6618,
1071,
5435,
15867,
4020,
6747,
1841,
12,
46,
2471,
2151,
16,
1033,
460,
16,
1250,
357,
16,
1250,
8406,
16,
1250,
7839,
16,
509,
1027,
16,
1250,
711,
9233,
13,
288,
9506,
202,
9565,
18,
588,
2471,
4020,
6747,
1841,
12,
3413,
16,
460,
16,
357,
16,
8406,
16,
7839,
16,
1027,
16,
711,
9233,
1769,
9506,
202,
1868,
19536,
12513,
331,
273,
261,
1868,
19536,
12513,
13,
1132,
31,
9506,
202,
430,
261,
90,
18,
588,
1299,
921,
1435,
1276,
21403,
13,
288,
6862,
202,
46,
2224,
328,
273,
261,
46,
2224,
13,
90,
18,
588,
1299,
921,
5621,
6862,
202,
542,
5554,
12,
80,
18,
588,
5554,
10663,
6862,
202,
542,
1528,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3498,
2624,
6353,
12,
863,
3219,
852,
3219,
13,
288,
202,
202,
9565,
2932,
2189,
7283,
3113,
315,
3076,
3772,
3113,
315,
3678,
279,
666,
434,
777,
4364,
261,
31226,
1613,
14944,
16,
23737,
18,
58,
47,
67,
39,
1769,
202,
202,
2211,
18,
1458,
3219,
273,
852,
3219,
31,
202,
202,
542,
16028,
1225,
12,
2704,
13037,
12,
31273,
16,
6625,
10019,
202,
202,
1458,
3219,
18,
1458,
1767,
18,
4619,
4576,
7675,
12757,
9127,
18,
1289,
12,
2211,
1769,
202,
202,
3413,
18,
542,
2375,
6207,
12,
5743,
1769,
202,
202,
3413,
18,
542,
24548,
2375,
8788,
12,
3767,
1769,
202,
202,
3413,
18,
12320,
1999,
12,
20,
1769,
202,
202,
3413,
18,
542,
2
] |
return c.getBlockFormattingContext().getRightFloatDistance(c, current, maxAvailableWidth); }
|
return c.getBlockFormattingContext().getRightFloatDistance(c, current, maxAvailableWidth); }
|
public int getRightFloatDistance() { return c.getBlockFormattingContext().getRightFloatDistance(c, current, maxAvailableWidth); }
|
8125 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8125/e900e61ce3c01edb12a8561b3a8ac20539d8450a/InlineBoxing.java/clean/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
509,
16609,
4723,
7200,
1435,
288,
10792,
327,
276,
18,
588,
1768,
23974,
1042,
7675,
588,
4726,
4723,
7200,
12,
71,
16,
783,
16,
943,
5268,
2384,
1769,
7734,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
509,
16609,
4723,
7200,
1435,
288,
10792,
327,
276,
18,
588,
1768,
23974,
1042,
7675,
588,
4726,
4723,
7200,
12,
71,
16,
783,
16,
943,
5268,
2384,
1769,
7734,
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
] |
}
|
} catch (RemoteServerErrorException iae) { connected = false; throw new DSOutOfServiceException("Failed to log in.", iae); }
|
void login(String userName, String password) throws DSOutOfServiceException { try { RemoteCaller proxy = proxiesFactory.getRemoteCaller(); proxy.login(userName, password); serverVersionCheck(); connected = true; } catch (RemoteConnectionException rce) { connected = false; throw new DSOutOfServiceException("Can't connect to OMEDS.", rce); } catch (RemoteAuthenticationException rae) { connected = false; throw new DSOutOfServiceException("Failed to log in.", rae); } }
|
13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/be05737de1d1d14e7b06c2042110ca9b6f994539/OMEDSGateway.java/buggy/SRC/org/openmicroscopy/shoola/env/data/OMEDSGateway.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
3925,
12,
780,
12065,
16,
514,
2201,
13,
202,
202,
15069,
8678,
11224,
15133,
202,
95,
202,
202,
698,
288,
1082,
202,
5169,
11095,
2889,
273,
13263,
1733,
18,
588,
5169,
11095,
5621,
1082,
202,
5656,
18,
5819,
12,
1355,
461,
16,
2201,
1769,
5411,
1438,
1444,
1564,
5621,
1082,
202,
8537,
273,
638,
31,
202,
202,
97,
1044,
261,
5169,
8777,
503,
30905,
13,
288,
225,
5840,
273,
629,
31,
604,
394,
8678,
11224,
15133,
2932,
2925,
358,
613,
316,
1199,
16,
30905,
1769,
289,
1044,
261,
5169,
28461,
436,
311,
13,
288,
5411,
5840,
273,
629,
31,
1082,
202,
12849,
394,
8678,
11224,
15133,
2932,
2568,
1404,
3077,
358,
531,
958,
3948,
1199,
16,
436,
311,
1769,
202,
202,
97,
1044,
261,
5169,
8777,
503,
30905,
13,
288,
225,
5840,
273,
629,
31,
604,
394,
8678,
11224,
15133,
2932,
2925,
358,
613,
316,
1199,
16,
30905,
1769,
289,
1044,
261,
5169,
6492,
503,
767,
73,
13,
288,
5411,
5840,
273,
629,
31,
1082,
202,
12849,
394,
8678,
11224,
15133,
2932,
2925,
358,
613,
316,
1199,
16,
767,
73,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
3925,
12,
780,
12065,
16,
514,
2201,
13,
202,
202,
15069,
8678,
11224,
15133,
202,
95,
202,
202,
698,
288,
1082,
202,
5169,
11095,
2889,
273,
13263,
1733,
18,
588,
5169,
11095,
5621,
1082,
202,
5656,
18,
5819,
12,
1355,
461,
16,
2201,
1769,
5411,
1438,
1444,
1564,
5621,
1082,
202,
8537,
273,
638,
31,
202,
202,
97,
1044,
261,
5169,
8777,
503,
30905,
13,
288,
225,
5840,
273,
629,
31,
604,
394,
8678,
11224,
15133,
2932,
2925,
358,
613,
316,
1199,
16,
30905,
1769,
289,
1044,
261,
5169,
28461,
436,
311,
13,
288,
5411,
5840,
273,
629,
31,
1082,
202,
12849,
394,
8678,
11224,
15133,
2932,
2568,
1404,
3077,
358,
531,
958,
3948,
1199,
16,
2
] |
&& ( ScalarParameter.DEFAULT_VALUE_PROP.equalsIgnoreCase( name ) ) )
|
&& ( IScalarParameterModel.DEFAULT_VALUE_PROP.equalsIgnoreCase( name ) ) )
|
protected AbstractParseState versionConditionalJumpTo( ) { if ( handler.versionNumber < VersionUtil.VERSION_3_2_2 && ( DesignChoiceConstants.CHOICE_VERTICAL_ALIGN.equals( name ) ) ) { CompatibleVerticalAlignState state = new CompatibleVerticalAlignState( handler, element ); state.setName( DesignChoiceConstants.CHOICE_VERTICAL_ALIGN ); return state; } if ( handler.versionNumber < VersionUtil.VERSION_3_2_4 && ( element instanceof ScalarParameter ) && ( ScalarParameter.DEFAULT_VALUE_PROP.equalsIgnoreCase( name ) ) ) { CompatiblePropertyTypeState state = new CompatiblePropertyTypeState( handler, element ); state.setName( ScalarParameter.DEFAULT_VALUE_PROP ); return state; } if ( handler.versionNumber <= VersionUtil.VERSION_3_2_0 && struct instanceof DataSetParameter && "isNullable".equals( name ) ) //$NON-NLS-1$ { CompatibleRenamedPropertyState state = new CompatibleRenamedPropertyState( handler, element, propDefn, struct, "isNullable" ); //$NON-NLS-1$ state.setName( DataSetParameter.ALLOW_NULL_MEMBER ); return state; } if ( ( IReportItemModel.ON_CREATE_METHOD.equalsIgnoreCase( name ) ) && handler.versionNumber < VersionUtil.VERSION_3_2_0 ) { CompatibleMiscExpressionState state = new CompatibleMiscExpressionState( handler, element ); state.setName( name ); return state; } if ( struct instanceof ComputedColumn && "aggregrateOn".equalsIgnoreCase( name ) //$NON-NLS-1$ && ( element instanceof ScalarParameter || element instanceof ReportItem ) & handler.versionNumber <= VersionUtil.VERSION_3_2_2 ) { CompatibleRenamedPropertyState state = new CompatibleRenamedPropertyState( handler, element, propDefn, struct, "aggregrateOn" ); //$NON-NLS-1$ state.setName( ComputedColumn.AGGREGATEON_MEMBER ); return state; } if ( handler.versionNumber < VersionUtil.VERSION_3_2_6 && ( struct instanceof DataSetParameter || struct instanceof OdaDataSetParameter ) && DataSetParameter.DATA_TYPE_MEMBER.equalsIgnoreCase( name ) ) { CompatibleColumnDataTypeState state = new CompatibleColumnDataTypeState( handler, element, propDefn, struct ); state.setName( DataSetParameter.DATA_TYPE_MEMBER ); return state; } if ( handler.versionNumber < VersionUtil.VERSION_3_2_9 && element instanceof ScalarParameter && IScalarParameterModel.MUCH_MATCH_PROP.equalsIgnoreCase( name ) ) { CompatibleMustMatchState state = new CompatibleMustMatchState( handler, element ); state.setName( IScalarParameterModel.MUCH_MATCH_PROP ); return state; } return super.versionConditionalJumpTo( ); }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/d802c33711e0d111551ae23575895cd060f085b6/PropertyState.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/parser/PropertyState.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
4115,
3201,
1119,
1177,
14132,
26743,
774,
12,
262,
202,
95,
202,
202,
430,
261,
1838,
18,
1589,
1854,
411,
4049,
1304,
18,
5757,
67,
23,
67,
22,
67,
22,
9506,
202,
10,
10,
261,
29703,
10538,
2918,
18,
22213,
11774,
67,
21654,
10109,
67,
26439,
18,
14963,
12,
508,
262,
262,
262,
202,
202,
95,
1082,
202,
14599,
15704,
10044,
1119,
919,
273,
394,
5427,
8161,
15704,
10044,
1119,
12,
6862,
202,
4176,
16,
930,
11272,
1082,
202,
2019,
18,
542,
461,
12,
29703,
10538,
2918,
18,
22213,
11774,
67,
21654,
10109,
67,
26439,
11272,
1082,
202,
2463,
919,
31,
202,
202,
97,
202,
202,
430,
261,
1838,
18,
1589,
1854,
411,
4049,
1304,
18,
5757,
67,
23,
67,
22,
67,
24,
9506,
202,
10,
10,
261,
930,
1276,
15791,
1662,
262,
9506,
202,
10,
10,
261,
15791,
1662,
18,
5280,
67,
4051,
67,
15811,
18,
14963,
5556,
12,
508,
262,
262,
262,
202,
202,
95,
1082,
202,
14599,
22802,
1119,
919,
273,
394,
5427,
8161,
22802,
1119,
12,
6862,
202,
4176,
16,
930,
11272,
1082,
202,
2019,
18,
542,
461,
12,
15791,
1662,
18,
5280,
67,
4051,
67,
15811,
11272,
1082,
202,
2463,
919,
31,
202,
202,
97,
202,
202,
430,
261,
1838,
18,
1589,
1854,
1648,
4049,
1304,
18,
5757,
67,
23,
67,
22,
67,
20,
9506,
202,
10,
10,
1958,
1276,
14065,
1662,
9506,
202,
10,
10,
315,
291,
13349,
9654,
14963,
12,
508,
262,
262,
4329,
3993,
17,
5106,
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,
4115,
3201,
1119,
1177,
14132,
26743,
774,
12,
262,
202,
95,
202,
202,
430,
261,
1838,
18,
1589,
1854,
411,
4049,
1304,
18,
5757,
67,
23,
67,
22,
67,
22,
9506,
202,
10,
10,
261,
29703,
10538,
2918,
18,
22213,
11774,
67,
21654,
10109,
67,
26439,
18,
14963,
12,
508,
262,
262,
262,
202,
202,
95,
1082,
202,
14599,
15704,
10044,
1119,
919,
273,
394,
5427,
8161,
15704,
10044,
1119,
12,
6862,
202,
4176,
16,
930,
11272,
1082,
202,
2019,
18,
542,
461,
12,
29703,
10538,
2918,
18,
22213,
11774,
67,
21654,
10109,
67,
26439,
11272,
1082,
202,
2463,
919,
31,
202,
202,
97,
202,
202,
430,
261,
1838,
18,
1589,
1854,
411,
4049,
1304,
18,
2
] |
if (canEdit())
|
if (canEdit()) {
|
public void setTileAt(int tx, int ty, Tile ti) { try { if (canEdit()) map[ty - bounds.y][tx - bounds.x] = ti; } catch (ArrayIndexOutOfBoundsException e) { // Silently ignore out of bounds exception } }
|
6621 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6621/d09a8a3f46f0f8bdf9e19cebab2b38b1a8a8c8a9/TileLayer.java/clean/tiled/core/TileLayer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
9337,
861,
12,
474,
2229,
16,
509,
13806,
16,
13791,
11374,
13,
288,
3639,
775,
288,
5411,
309,
261,
4169,
4666,
10756,
288,
7734,
852,
63,
4098,
300,
4972,
18,
93,
6362,
978,
300,
4972,
18,
92,
65,
273,
11374,
31,
3639,
289,
1044,
261,
1076,
30548,
425,
13,
288,
5411,
368,
348,
8125,
715,
2305,
596,
434,
4972,
1520,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
9337,
861,
12,
474,
2229,
16,
509,
13806,
16,
13791,
11374,
13,
288,
3639,
775,
288,
5411,
309,
261,
4169,
4666,
10756,
288,
7734,
852,
63,
4098,
300,
4972,
18,
93,
6362,
978,
300,
4972,
18,
92,
65,
273,
11374,
31,
3639,
289,
1044,
261,
1076,
30548,
425,
13,
288,
5411,
368,
348,
8125,
715,
2305,
596,
434,
4972,
1520,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
/* * (non-Javadoc) * * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ public void widgetSelected(SelectionEvent e) { if (e.detail == SWT.CHECK) { TableItem tableItem = (TableItem) e.item;
|
/* * (non-Javadoc) * * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ public void widgetSelected(SelectionEvent e) { if (e.detail == SWT.CHECK) { TableItem tableItem = (TableItem) e.item;
|
private void createCategoryArea(Composite parent) { Composite composite = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(); layout.marginHeight = layout.marginWidth = 0; composite.setLayout(layout); GridData data = new GridData(GridData.FILL_BOTH); data.widthHint = 200; composite.setLayoutData(data); Label label = new Label(composite, SWT.NONE); label.setFont(parent.getFont()); label.setText(strings.getProperty(CATEGORY_NAME, ActivityMessages.ActivityEnabler_categories) + ':'); Table table = new Table(composite, SWT.CHECK | SWT.BORDER | SWT.SINGLE); table.setFont(parent.getFont()); table.addSelectionListener(new SelectionAdapter() { /* * (non-Javadoc) * * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ public void widgetSelected(SelectionEvent e) { if (e.detail == SWT.CHECK) { TableItem tableItem = (TableItem) e.item; ICategory category = (ICategory) tableItem.getData(); if (isLocked(category)) { tableItem.setChecked(true); e.doit = false; // veto the check return; } Set activitySet = WorkbenchActivityHelper .getActivityIdsForCategory(category); if (tableItem.getChecked()) activitySet.addAll(workingCopy.getEnabledActivityIds()); else { HashSet newSet = new HashSet(workingCopy .getEnabledActivityIds()); newSet.removeAll(activitySet); activitySet = newSet; } workingCopy.setEnabledActivityIds(activitySet); } } }); categoryViewer = new CheckboxTableViewer(table); categoryViewer.getControl().setFont(parent.getFont()); categoryViewer.getControl().setLayoutData( new GridData(GridData.FILL_BOTH)); categoryViewer.setContentProvider(new CategoryContentProvider()); CategoryLabelProvider categoryLabelProvider = new CategoryLabelProvider( true); workingCopy.addActivityManagerListener(categoryLabelProvider); categoryViewer.setLabelProvider(categoryLabelProvider); categoryViewer.setSorter(new ViewerSorter()); categoryViewer.addFilter(new EmptyCategoryFilter()); categoryViewer .addSelectionChangedListener(new ISelectionChangedListener() { /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.ISelectionChangedListener#selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent) */ public void selectionChanged(SelectionChangedEvent event) { ICategory element = (ICategory) ((IStructuredSelection) event .getSelection()).getFirstElement(); setDetails(element); } }); categoryViewer.setInput(workingCopy.getDefinedCategoryIds()); categoryViewer.setCheckedElements(getEnabledCategories()); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/43de32097fd25838b092649da37547fb6ec70c38/ActivityCategoryPreferencePage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/activities/ActivityCategoryPreferencePage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
4457,
5484,
12,
9400,
982,
13,
288,
3639,
14728,
9635,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
3639,
7145,
3744,
3511,
273,
394,
7145,
3744,
5621,
3639,
3511,
18,
10107,
2686,
273,
3511,
18,
10107,
2384,
273,
374,
31,
3639,
9635,
18,
542,
3744,
12,
6741,
1769,
3639,
7145,
751,
501,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
1769,
3639,
501,
18,
2819,
7002,
273,
4044,
31,
3639,
9635,
18,
542,
3744,
751,
12,
892,
1769,
3639,
5287,
1433,
273,
394,
5287,
12,
27676,
16,
348,
8588,
18,
9826,
1769,
3639,
1433,
18,
542,
5711,
12,
2938,
18,
588,
5711,
10663,
3639,
1433,
18,
542,
1528,
12,
10219,
18,
588,
1396,
12,
24847,
67,
1985,
16,
9621,
5058,
18,
6193,
664,
27371,
67,
8995,
13,
397,
3921,
1769,
3639,
3555,
1014,
273,
394,
3555,
12,
27676,
16,
348,
8588,
18,
10687,
571,
348,
8588,
18,
38,
7954,
571,
348,
8588,
18,
20184,
1769,
3639,
1014,
18,
542,
5711,
12,
2938,
18,
588,
5711,
10663,
3639,
1014,
18,
1289,
6233,
2223,
12,
2704,
12977,
4216,
1435,
288,
5411,
1748,
2398,
380,
261,
5836,
17,
24060,
13,
2398,
380,
2868,
380,
632,
5946,
2358,
18,
20416,
18,
5328,
88,
18,
5989,
18,
6233,
2223,
7,
6587,
7416,
12,
3341,
18,
20416,
18,
5328,
88,
18,
5989,
18,
6233,
1133,
13,
2398,
1195,
5411,
1071,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
7734,
309,
261,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
4457,
5484,
12,
9400,
982,
13,
288,
3639,
14728,
9635,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
3639,
7145,
3744,
3511,
273,
394,
7145,
3744,
5621,
3639,
3511,
18,
10107,
2686,
273,
3511,
18,
10107,
2384,
273,
374,
31,
3639,
9635,
18,
542,
3744,
12,
6741,
1769,
3639,
7145,
751,
501,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
1769,
3639,
501,
18,
2819,
7002,
273,
4044,
31,
3639,
9635,
18,
542,
3744,
751,
12,
892,
1769,
3639,
5287,
1433,
273,
394,
5287,
12,
27676,
16,
348,
8588,
18,
9826,
1769,
3639,
1433,
18,
542,
5711,
12,
2938,
18,
588,
5711,
10663,
3639,
1433,
18,
542,
1528,
2
] |
List<IncomingServerSession> value = new ArrayList<IncomingServerSession>();
|
List<IncomingServerSession> value = new CopyOnWriteArrayList<IncomingServerSession>();
|
public void registerIncomingServerSession(String hostname, IncomingServerSession session) { synchronized (incomingServerSessions) { List<IncomingServerSession> sessions = incomingServerSessions.get(hostname); if (sessions == null || sessions.isEmpty()) { // First session from the remote server to this server so create a // new association List<IncomingServerSession> value = new ArrayList<IncomingServerSession>(); value.add(session); incomingServerSessions.put(hostname, value); } else { // Add new session to the existing list of sessions originated by // the remote server sessions.add(session); } } }
|
6161 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6161/99275e6d71d37e9ccdb51da73f73bbc6c8fbadb4/SessionManager.java/clean/src/java/org/jivesoftware/messenger/SessionManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1744,
20370,
2081,
2157,
12,
780,
5199,
16,
26437,
2081,
2157,
1339,
13,
288,
3639,
3852,
261,
31033,
2081,
13566,
13,
288,
5411,
987,
32,
20370,
2081,
2157,
34,
8856,
273,
6935,
2081,
13566,
18,
588,
12,
10358,
1769,
5411,
309,
261,
16794,
422,
446,
747,
8856,
18,
291,
1921,
10756,
288,
7734,
368,
5783,
1339,
628,
326,
2632,
1438,
358,
333,
1438,
1427,
752,
279,
7734,
368,
394,
6384,
7734,
987,
32,
20370,
2081,
2157,
34,
460,
273,
394,
5631,
1398,
3067,
19558,
32,
20370,
2081,
2157,
34,
5621,
7734,
460,
18,
1289,
12,
3184,
1769,
7734,
6935,
2081,
13566,
18,
458,
12,
10358,
16,
460,
1769,
5411,
289,
5411,
469,
288,
7734,
368,
1436,
394,
1339,
358,
326,
2062,
666,
434,
8856,
4026,
690,
635,
7734,
368,
326,
2632,
1438,
7734,
8856,
18,
1289,
12,
3184,
1769,
5411,
289,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1744,
20370,
2081,
2157,
12,
780,
5199,
16,
26437,
2081,
2157,
1339,
13,
288,
3639,
3852,
261,
31033,
2081,
13566,
13,
288,
5411,
987,
32,
20370,
2081,
2157,
34,
8856,
273,
6935,
2081,
13566,
18,
588,
12,
10358,
1769,
5411,
309,
261,
16794,
422,
446,
747,
8856,
18,
291,
1921,
10756,
288,
7734,
368,
5783,
1339,
628,
326,
2632,
1438,
358,
333,
1438,
1427,
752,
279,
7734,
368,
394,
6384,
7734,
987,
32,
20370,
2081,
2157,
34,
460,
273,
394,
5631,
1398,
3067,
19558,
32,
20370,
2081,
2157,
34,
5621,
7734,
460,
18,
1289,
12,
3184,
1769,
7734,
6935,
2081,
13566,
18,
458,
12,
10358,
16,
460,
1769,
5411,
289,
5411,
469,
288,
7734,
368,
1436,
2
] |
pushback = false;
|
pushback = false;
|
public OMGraphicList loadFile() throws IOException, MIFException { float[] ptarray = null; //Used by region to do the polygon calculation float[] latpts = null; float[] lonpts = null; //Specifies the expected next action in the loop int action = PROCESS_HEADER; int number = 0; int count = 0; int multiple = 0; int multicnt = 0; //setting to true means we don't read the same line again boolean pushback; String empty = ""; StringTokenizer st = null; String tok = null; pushback = false; int idx; OMPoly omp = null; OMLine oml = null; MIFPoint ompoint = null; OMText omtext = null; boolean ismultiple = false; OMGraphicList aList = new OMGraphicList(); // a vector of omgraphics for regions that allows adding and // deleting Vector omgs = new Vector(); MAIN_LOOP: while (true) { if (!pushback) { //if it's null then there's no more if ((st = getTokens(br)) == null) break MAIN_LOOP; tok = st.nextToken(); } else { pushback = false; //pushback was true so make it // false so it doesn't happen twice } SWITCH: switch (action) { case PROCESS_HEADER: if (isSame(tok, DATA_WORD)) { action = PROCESS_DATA; } else if (isSame(tok, VERSION_WORD)) { } else if (isSame(tok, DELIMITER_WORD)) { } else if (isSame(tok, COORDSYS_WORD)) { //check the CoordSys header, OpenMap only // directly //supports LatLong type of coordsys String coordSysLine = COORDSYS_WORD; while (st.hasMoreElements()) { coordSysLine += " " + st.nextElement(); } String goodCoordSys = COORDSYS_WORD + " " + LATLONG_COORDSYS_DEF; if (goodCoordSys.length() < coordSysLine.length()) { coordSysLine = coordSysLine.substring(0, goodCoordSys.length()); } else { goodCoordSys = goodCoordSys.substring(0, coordSysLine.length()); } //check that the CoordSys header matches the MIF //specification for LatLong type if (!isSame(coordSysLine, goodCoordSys)) { Debug.error("MIFLoader file has coordinate system: " + coordSysLine + ", requires " + goodCoordSys); //raise error, as the coordsys header was // invalid throw new MIFException("File appears to contain objects with an incompatible coordinate system (Must be Lat/Lon)."); } } break SWITCH; case PROCESS_DATA: omgs.clear(); if (isSame(tok, PLINE_WORD)) { tok = st.nextToken(); if (isSame(tok, MULTIPLE_WORD)) { multiple = Integer.parseInt(st.nextToken()); multicnt = 0; action = PROCESS_MULTIPLE; ismultiple = true; } else { number = Integer.parseInt(tok); ptarray = new float[number + number]; count = 0; action = PROCESS_PLINE; } } else if (isSame(tok, REGION_WORD)) { multiple = Integer.parseInt(st.nextToken()); multicnt = 0; action = PROCESS_REGION_HEADER; } else if (isSame(tok, LINE_WORD)) { float lon1 = Float.parseFloat(st.nextToken()); float lat1 = Float.parseFloat(st.nextToken()); float lon2 = Float.parseFloat(st.nextToken()); float lat2 = Float.parseFloat(st.nextToken()); oml = new OMLine(lat1, lon1, lat2, lon2, OMGraphicConstants.LINETYPE_STRAIGHT); action = PROCESS_POST_LINE; } else if (isSame(tok, POINT_WORD)) //handle a MIF // POINT primitive { //get the coordinates float lon1 = Float.parseFloat(st.nextToken()); float lat1 = Float.parseFloat(st.nextToken()); //construct the OM graphic ompoint = new MIFPoint(lat1, lon1, pointVisible); st = getTokens(br); //set the graphics attributes this.processSymbolWord(st, ompoint); //add to the graphic list for this layer aList.add(ompoint); action = PROCESS_DATA; } else if (isSame(tok, TEXT_WORD)) //handle a MIF // TEXT primitive { String textString = ""; //if the actual text is not on the same line as // the primitive declaration if (st.countTokens() < 1) { //get the next line st = getTokens(br); } //build up the display text string, while (st.hasMoreTokens()) { textString += st.nextToken(); } if (textString.length() >= 1) { //remove any surrounding " characters textString = textString.substring(1, textString.length() - 1); } //get the next line, it contains the coordinates st = getTokens(br); float lon1 = Float.parseFloat(st.nextToken()); float lat1 = Float.parseFloat(st.nextToken()); float lon2 = Float.parseFloat(st.nextToken()); float lat2 = Float.parseFloat(st.nextToken()); //create the OMGraphic for the text object omtext = new MIFText(lat1, lon1, textString, OMText.JUSTIFY_CENTER, textVisible); //the next line contains the text attributes st = getTokens(br); //set the attributes agains the omgraphic this.processFontWord(st, omtext); //add to the layers graphic list aList.add(omtext); action = PROCESS_DATA; } break SWITCH; //We have a line, tok is the first coord and the next //token is the second case PROCESS_PLINE: idx = count + count; ptarray[idx + 1] = Float.parseFloat(tok); ptarray[idx] = Float.parseFloat(st.nextToken()); count++; if (count == number) { omp = new OMPoly(ptarray, OMGraphic.DECIMAL_DEGREES, OMGraphic.LINETYPE_STRAIGHT); aList.add(omp); if (!ismultiple) { action = PROCESS_POST_PLINE; } else { omgs.add(omp); action = PROCESS_MULTIPLE; } } break SWITCH; case PROCESS_MULTIPLE: multicnt++; if (multicnt > multiple) { //No more multiples so we // can pushback pushback = true; multiple = 0; action = PROCESS_POST_PLINE; break SWITCH; } number = Integer.parseInt(tok); count = 0; ptarray = new float[number + number]; action = PROCESS_PLINE; break SWITCH; case PROCESS_POST_PLINE: if (isSame(tok, PEN_WORD)) { if (ismultiple) { processPenWord(st, omgs); } else { processPenWord(st, omp); } } else if (isSame(tok, SMOOTH_WORD)) { //Smooth unimplemented } else { ismultiple = false; pushback = true; action = PROCESS_DATA; } break SWITCH; // SCN to support lines case PROCESS_POST_LINE: if (isSame(tok, PEN_WORD)) { processPenWord(st, oml); aList.add(oml); } else { ismultiple = false; pushback = true; action = PROCESS_DATA; } break SWITCH; case PROCESS_REGION_HEADER: //This processes the number // at the top of each region // sub-block multicnt++; if (multicnt > multiple) { multiple = 0; action = PROCESS_POST_REGION; //Add this point the region is finished so add // the //vector contents to list int len = omgs.size(); for (int i = 0; i < len; i++) { aList.add((OMGraphic) omgs.elementAt(i)); } break SWITCH; } number = Integer.parseInt(tok); count = 0; ptarray = new float[number + number]; latpts = new float[number]; lonpts = new float[number]; action = PROCESS_REGION; break SWITCH; case PROCESS_REGION: idx = count + count; lonpts[count] = ptarray[idx + 1] = Float.parseFloat(tok); latpts[count] = ptarray[idx] = Float.parseFloat(st.nextToken()); count++; if (count == number) { // This polygon is complete so add it and process // the next //Use this code if we just want polygons which is // much //faster if (accurate) { omgs.add(new OMSubtraction(latpts, lonpts)); } else { // Produces accurate MapInfo type rendering // but very // slow with complex regions like streets int end = latpts.length - 1; for (int i = 0; i < end; i++) { omgs.add(new OMLine(latpts[i], lonpts[i], latpts[i + 1], lonpts[i + 1], OMGraphic.LINETYPE_STRAIGHT)); } omgs.add(new OMLine(latpts[end], lonpts[end], latpts[0], lonpts[0], OMGraphic.LINETYPE_STRAIGHT)); } action = PROCESS_REGION_HEADER; } break SWITCH; // There is one pen,brush,center block at the end of a // region case PROCESS_POST_REGION: if (isSame(tok, PEN_WORD)) { processPenWord(st, omgs); } else if (isSame(tok, BRUSH_WORD)) { processBrushWord(st, omgs); } else if (isSame(tok, CENTER_WORD)) { } else { pushback = true; action = PROCESS_DATA; } break SWITCH; } // end of switch } //end of while loop br.close(); return aList; }
|
47208 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47208/8fba55043209f93d531290d0c221f1cab4e75b1e/MIFLoader.java/buggy/src/openmap/com/bbn/openmap/layer/mif/MIFLoader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
28839,
29459,
682,
26953,
1435,
1216,
1860,
16,
490,
5501,
503,
288,
3639,
1431,
8526,
5818,
1126,
273,
446,
31,
3639,
368,
6668,
635,
3020,
358,
741,
326,
7154,
11096,
3639,
1431,
8526,
2516,
1092,
273,
446,
31,
3639,
1431,
8526,
4281,
1092,
273,
446,
31,
3639,
368,
24868,
326,
2665,
1024,
1301,
316,
326,
2798,
3639,
509,
1301,
273,
20647,
67,
7557,
31,
3639,
509,
1300,
273,
374,
31,
3639,
509,
1056,
273,
374,
31,
3639,
509,
3229,
273,
374,
31,
3639,
509,
1778,
335,
496,
273,
374,
31,
3639,
368,
8920,
358,
638,
4696,
732,
2727,
1404,
855,
326,
1967,
980,
3382,
3639,
1250,
1817,
823,
31,
3639,
514,
1008,
273,
1408,
31,
3639,
16370,
384,
273,
446,
31,
3639,
514,
946,
273,
446,
31,
3639,
1817,
823,
273,
629,
31,
3639,
509,
2067,
31,
3639,
531,
4566,
355,
93,
320,
1291,
273,
446,
31,
3639,
531,
1495,
558,
320,
781,
273,
446,
31,
3639,
490,
5501,
2148,
8068,
1153,
273,
446,
31,
3639,
28839,
1528,
8068,
955,
273,
446,
31,
3639,
1250,
353,
9622,
273,
629,
31,
3639,
28839,
29459,
682,
279,
682,
273,
394,
28839,
29459,
682,
5621,
3639,
368,
279,
3806,
434,
8068,
31586,
364,
10085,
716,
5360,
6534,
471,
3639,
368,
12993,
3639,
5589,
8068,
564,
273,
394,
5589,
5621,
3639,
22299,
67,
28677,
30,
1323,
261,
3767,
13,
288,
5411,
309,
16051,
6206,
823,
13,
288,
7734,
368,
430,
518,
1807,
446,
1508,
1915,
1807,
1158,
1898,
7734,
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,
28839,
29459,
682,
26953,
1435,
1216,
1860,
16,
490,
5501,
503,
288,
3639,
1431,
8526,
5818,
1126,
273,
446,
31,
3639,
368,
6668,
635,
3020,
358,
741,
326,
7154,
11096,
3639,
1431,
8526,
2516,
1092,
273,
446,
31,
3639,
1431,
8526,
4281,
1092,
273,
446,
31,
3639,
368,
24868,
326,
2665,
1024,
1301,
316,
326,
2798,
3639,
509,
1301,
273,
20647,
67,
7557,
31,
3639,
509,
1300,
273,
374,
31,
3639,
509,
1056,
273,
374,
31,
3639,
509,
3229,
273,
374,
31,
3639,
509,
1778,
335,
496,
273,
374,
31,
3639,
368,
8920,
358,
638,
4696,
732,
2727,
1404,
855,
326,
1967,
980,
3382,
3639,
1250,
1817,
823,
31,
3639,
514,
1008,
273,
1408,
31,
3639,
16370,
2
] |
attDefIndex = fGrammar.getNextAttributeDeclIndex(attDefIndex);
|
int elementIndex = fGrammar.getElementDeclIndex(element.localpart,scope); if (elementIndex == -1) { return -1; } int attDefIndex = fGrammar.getFirstAttributeDeclIndex(elementIndex); while (attDefIndex != -1) { fGrammar.getAttributeDecl(attDefIndex, fTempAttDecl); if (fTempAttDecl.name.localpart == attribute.localpart && fTempAttDecl.name.uri == attribute.uri ) { return attDefIndex; } attDefIndex = fGrammar.getNextAttributeDeclIndex(attDefIndex); }
|
private int getAttDef(QName element, QName attribute) { int scope = fCurrentScope; if (element.uri > -1) { scope = TOP_LEVEL_SCOPE; } int elementIndex = fGrammar.getElementDeclIndex(element.localpart,scope); if (elementIndex == -1) { return -1; } int attDefIndex = fGrammar.getFirstAttributeDeclIndex(elementIndex); while (attDefIndex != -1) { fGrammar.getAttributeDecl(attDefIndex, fTempAttDecl); if (fTempAttDecl.name.localpart == attribute.localpart && fTempAttDecl.name.uri == attribute.uri ) { return attDefIndex; } attDefIndex = fGrammar.getNextAttributeDeclIndex(attDefIndex); } return -1; } // getAttDef(QName,QName)
|
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/80252a9dbae5ab08994c7a5c9e218f3db67a763f/XMLValidator.java/buggy/src/org/apache/xerces/validators/common/XMLValidator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
336,
3075,
3262,
12,
13688,
930,
16,
16723,
1566,
13,
288,
3639,
509,
2146,
273,
284,
3935,
3876,
31,
3639,
309,
261,
2956,
18,
1650,
405,
300,
21,
13,
288,
5411,
2146,
273,
18680,
67,
10398,
67,
19444,
31,
3639,
289,
3639,
509,
930,
1016,
273,
284,
18576,
18,
21336,
3456,
1016,
12,
2956,
18,
3729,
2680,
16,
4887,
1769,
3639,
309,
261,
2956,
1016,
422,
300,
21,
13,
288,
5411,
327,
300,
21,
31,
3639,
289,
3639,
509,
2403,
3262,
1016,
273,
284,
18576,
18,
588,
3759,
1499,
3456,
1016,
12,
2956,
1016,
1769,
3639,
1323,
261,
4558,
3262,
1016,
480,
300,
21,
13,
288,
5411,
284,
18576,
18,
588,
1499,
3456,
12,
4558,
3262,
1016,
16,
284,
7185,
3075,
3456,
1769,
5411,
309,
261,
74,
7185,
3075,
3456,
18,
529,
18,
3729,
2680,
422,
1566,
18,
3729,
2680,
597,
7734,
284,
7185,
3075,
3456,
18,
529,
18,
1650,
422,
1566,
18,
1650,
262,
288,
7734,
327,
2403,
3262,
1016,
31,
5411,
289,
5411,
509,
930,
1016,
273,
284,
18576,
18,
21336,
3456,
1016,
12,
2956,
18,
3729,
2680,
16,
4887,
1769,
309,
261,
2956,
1016,
422,
300,
21,
13,
288,
327,
300,
21,
31,
289,
509,
2403,
3262,
1016,
273,
284,
18576,
18,
588,
3759,
1499,
3456,
1016,
12,
2956,
1016,
1769,
1323,
261,
4558,
3262,
1016,
480,
300,
21,
13,
288,
284,
18576,
18,
588,
1499,
3456,
12,
4558,
3262,
1016,
16,
284,
7185,
3075,
3456,
1769,
309,
261,
74,
7185,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
336,
3075,
3262,
12,
13688,
930,
16,
16723,
1566,
13,
288,
3639,
509,
2146,
273,
284,
3935,
3876,
31,
3639,
309,
261,
2956,
18,
1650,
405,
300,
21,
13,
288,
5411,
2146,
273,
18680,
67,
10398,
67,
19444,
31,
3639,
289,
3639,
509,
930,
1016,
273,
284,
18576,
18,
21336,
3456,
1016,
12,
2956,
18,
3729,
2680,
16,
4887,
1769,
3639,
309,
261,
2956,
1016,
422,
300,
21,
13,
288,
5411,
327,
300,
21,
31,
3639,
289,
3639,
509,
2403,
3262,
1016,
273,
284,
18576,
18,
588,
3759,
1499,
3456,
1016,
12,
2956,
1016,
1769,
3639,
1323,
261,
4558,
3262,
1016,
480,
300,
21,
13,
288,
5411,
284,
18576,
18,
588,
1499,
3456,
12,
4558,
3262,
2
] |
for (t = source.getToken(context); t instanceof OtherToken && t.getChar().isDigit(); t = source.getToken(context)) {
|
for (t = source.scanToken(context); t instanceof OtherToken && t.getChar().isDigit(); t = source.scanToken(context)) {
|
public static long scanFloat(final Context context, final TokenSource source, final Token start) throws InterpreterException { boolean neg = false; long val = 0; int post = 0; Token t = start; if (t == null) { return 0; } else if (t.equals(Catcode.OTHER, '-')) { neg = true; t = source.getNonSpace(context); } else if (t.equals(Catcode.OTHER, '+')) { t = source.getNonSpace(context); } if (t != null && !t.equals(Catcode.OTHER, ".") && !t.equals(Catcode.OTHER, ",")) { val = source.scanNumber(context, t); t = source.getToken(context); } if (t != null && (t.equals(Catcode.OTHER, '.') || t .equals(Catcode.OTHER, ','))) { // @see "TeX -- The Program [102]" int[] dig = new int[FLOAT_DIGITS]; int k = 0; for (t = source.getToken(context); t instanceof OtherToken && t.getChar().isDigit(); t = source.getToken(context)) { if (k < FLOAT_DIGITS) { dig[k++] = t.getChar().getCodePoint() - '0'; } } if (k < FLOAT_DIGITS) { k = FLOAT_DIGITS; } post = 0; while (k-- > 0) { post = (post + dig[k] * (1 << FLOAT_DIGITS)) / 10; } post = (post + 1) / 2; } source.push(t); val = val << 16 | post; return (neg ? -val : val); }
|
9123 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9123/4193308f1dfc725e64d12ca1371a04b9796b706a/GlueComponent.java/clean/ExTeX/src/java/de/dante/extex/interpreter/type/glue/GlueComponent.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1525,
4135,
4723,
12,
6385,
1772,
819,
16,
5411,
727,
3155,
1830,
1084,
16,
727,
3155,
787,
13,
5411,
1216,
5294,
11599,
503,
288,
3639,
1250,
4251,
273,
629,
31,
3639,
1525,
1244,
273,
374,
31,
3639,
509,
1603,
273,
374,
31,
3639,
3155,
268,
273,
787,
31,
3639,
309,
261,
88,
422,
446,
13,
288,
5411,
327,
374,
31,
3639,
289,
469,
309,
261,
88,
18,
14963,
12,
11554,
710,
18,
23940,
16,
4014,
3719,
288,
5411,
4251,
273,
638,
31,
5411,
268,
273,
1084,
18,
588,
3989,
3819,
12,
2472,
1769,
3639,
289,
469,
309,
261,
88,
18,
14963,
12,
11554,
710,
18,
23940,
16,
10058,
3719,
288,
5411,
268,
273,
1084,
18,
588,
3989,
3819,
12,
2472,
1769,
3639,
289,
3639,
309,
261,
88,
480,
446,
597,
401,
88,
18,
14963,
12,
11554,
710,
18,
23940,
16,
4585,
13,
7734,
597,
401,
88,
18,
14963,
12,
11554,
710,
18,
23940,
16,
5753,
3719,
288,
5411,
1244,
273,
1084,
18,
9871,
1854,
12,
2472,
16,
268,
1769,
5411,
268,
273,
1084,
18,
588,
1345,
12,
2472,
1769,
3639,
289,
3639,
309,
261,
88,
480,
446,
7734,
597,
261,
88,
18,
14963,
12,
11554,
710,
18,
23940,
16,
2611,
13,
747,
268,
13491,
263,
14963,
12,
11554,
710,
18,
23940,
16,
3316,
20349,
288,
5411,
368,
632,
5946,
315,
21575,
60,
1493,
1021,
13586,
306,
20481,
4279,
5411,
509,
8526,
3097,
273,
394,
509,
63,
15640,
67,
21243,
10158,
15533,
5411,
509,
417,
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,
1525,
4135,
4723,
12,
6385,
1772,
819,
16,
5411,
727,
3155,
1830,
1084,
16,
727,
3155,
787,
13,
5411,
1216,
5294,
11599,
503,
288,
3639,
1250,
4251,
273,
629,
31,
3639,
1525,
1244,
273,
374,
31,
3639,
509,
1603,
273,
374,
31,
3639,
3155,
268,
273,
787,
31,
3639,
309,
261,
88,
422,
446,
13,
288,
5411,
327,
374,
31,
3639,
289,
469,
309,
261,
88,
18,
14963,
12,
11554,
710,
18,
23940,
16,
4014,
3719,
288,
5411,
4251,
273,
638,
31,
5411,
268,
273,
1084,
18,
588,
3989,
3819,
12,
2472,
1769,
3639,
289,
469,
309,
261,
88,
18,
14963,
12,
11554,
710,
18,
23940,
16,
10058,
3719,
288,
5411,
268,
273,
1084,
18,
588,
2
] |
String newUserId = database.executeStringProcedure( SPROC_GET_HIGHEST_USER_ID, new String[] {} ); int newIntUserId = Integer.parseInt( newUserId ); user.setId( newIntUserId ); String[] usersColumns = new String[] { "user_id", "login_name", "login_password", "first_name", "last_name", "title", "company", "address", "city", "zip", "country", "county_council", "email", "external", "active", "language", "create_date" };
|
public synchronized void addUser( UserDomainObject user, UserDomainObject currentUser ) throws UserAlreadyExistsException { try { String newUserId = database.executeStringProcedure( SPROC_GET_HIGHEST_USER_ID, new String[] {} ); int newIntUserId = Integer.parseInt( newUserId ); user.setId( newIntUserId ); String[] usersColumns = new String[] { "user_id", "login_name", "login_password", "first_name", "last_name", "title", "company", "address", "city", "zip", "country", "county_council", "email", "external", "active", "language", "create_date" }; if ( user.isImcmsExternal() ) { user.setPassword( "" ); } database.executeUpdateQuery( "INSERT INTO users (" + StringUtils.join( usersColumns, ',' ) + ")\n" + "VALUES (" + StringUtils.repeat( "?,", usersColumns.length - 1 ) + "?)", new Object[] { "" + user.getId(), user.getLoginName(), user.getPassword(), user.getFirstName(), user.getLastName(), user.getTitle(), user.getCompany(), user.getAddress(), user.getCity(), user.getZip(), user.getCountry(), user.getCountyCouncil(), user.getEmailAddress(), user.isImcmsExternal() ? "1" : "0", user.isActive() ? "1" : "0", user.getLanguageIso639_2(), new Date() } ); if ( !user.equals( currentUser ) ) { sqlAddRolesToUser( user.getRoles(), user ); } addPhoneNumbers( user ); } catch ( IntegrityConstraintViolationException e ) { throw new UserAlreadyExistsException( e ); } catch ( DatabaseException e ) { throw new UnhandledException( e ); } }
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/e81260ba4ea5006ddc86c24938cbb4a791b0cc3b/ImcmsAuthenticatorAndUserAndRoleMapper.java/buggy/server/src/imcode/server/user/ImcmsAuthenticatorAndUserAndRoleMapper.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
527,
1299,
12,
2177,
3748,
921,
729,
16,
2177,
3748,
921,
13970,
262,
1216,
2177,
26853,
288,
3639,
775,
288,
5411,
514,
394,
10502,
273,
2063,
18,
8837,
780,
17213,
12,
348,
3373,
39,
67,
3264,
67,
44,
3047,
3900,
882,
67,
4714,
67,
734,
16,
394,
514,
8526,
2618,
11272,
5411,
509,
394,
1702,
10502,
273,
2144,
18,
2670,
1702,
12,
394,
10502,
11272,
5411,
729,
18,
542,
548,
12,
394,
1702,
10502,
11272,
5411,
514,
8526,
3677,
3380,
273,
394,
514,
8526,
288,
4766,
565,
315,
1355,
67,
350,
3113,
315,
5819,
67,
529,
3113,
315,
5819,
67,
3664,
3113,
4766,
565,
315,
3645,
67,
529,
3113,
315,
2722,
67,
529,
3113,
315,
2649,
3113,
4766,
565,
315,
16840,
3113,
315,
2867,
3113,
315,
14240,
3113,
315,
4450,
3113,
4766,
565,
315,
9082,
3113,
315,
1883,
93,
67,
71,
465,
71,
330,
3113,
315,
3652,
3113,
4766,
565,
315,
9375,
3113,
315,
3535,
3113,
4766,
565,
315,
4923,
3113,
315,
2640,
67,
712,
6,
18701,
289,
31,
5411,
309,
261,
729,
18,
291,
1170,
6851,
6841,
1435,
262,
288,
7734,
729,
18,
542,
3913,
12,
1408,
11272,
5411,
289,
5411,
2063,
18,
8837,
1891,
1138,
12,
315,
11356,
12421,
3677,
7566,
397,
5778,
18,
5701,
12,
3677,
3380,
16,
3316,
262,
397,
315,
5153,
82,
6,
19694,
397,
315,
16386,
7566,
397,
5778,
18,
9374,
12,
18101,
16,
3113,
3677,
3380,
18,
2469,
300,
404,
262,
19694,
397,
18101,
2225,
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,
377,
1071,
3852,
918,
527,
1299,
12,
2177,
3748,
921,
729,
16,
2177,
3748,
921,
13970,
262,
1216,
2177,
26853,
288,
3639,
775,
288,
5411,
514,
394,
10502,
273,
2063,
18,
8837,
780,
17213,
12,
348,
3373,
39,
67,
3264,
67,
44,
3047,
3900,
882,
67,
4714,
67,
734,
16,
394,
514,
8526,
2618,
11272,
5411,
509,
394,
1702,
10502,
273,
2144,
18,
2670,
1702,
12,
394,
10502,
11272,
5411,
729,
18,
542,
548,
12,
394,
1702,
10502,
11272,
5411,
514,
8526,
3677,
3380,
273,
394,
514,
8526,
288,
4766,
565,
315,
1355,
67,
350,
3113,
315,
5819,
67,
529,
3113,
315,
5819,
67,
3664,
3113,
4766,
565,
315,
3645,
67,
529,
3113,
315,
2722,
67,
529,
3113,
315,
2
] |
|
if (container != null) { container.setZoomed(isZoomed); }
|
public void setZoomed(boolean isZoomed) { ILayoutContainer container = getContainer(); if (container != null) { container.setZoomed(isZoomed); } }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/7afcb4763561d68f708fb2e279b5b218cd7653b0/LayoutPart.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/LayoutPart.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
11497,
329,
12,
6494,
353,
11497,
329,
13,
288,
3639,
467,
3744,
2170,
1478,
273,
9272,
5621,
3639,
309,
261,
3782,
480,
446,
13,
288,
5411,
1478,
18,
542,
11497,
329,
12,
291,
11497,
329,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
11497,
329,
12,
6494,
353,
11497,
329,
13,
288,
3639,
467,
3744,
2170,
1478,
273,
9272,
5621,
3639,
309,
261,
3782,
480,
446,
13,
288,
5411,
1478,
18,
542,
11497,
329,
12,
291,
11497,
329,
1769,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
assertTrue( keySeq == j );
|
assertEquals( j, keySeq );
|
public void testCrossReference() { try { Connection con1 = TestUtil.openDB(); TestUtil.createTable( con1, "vv", "a int not null, b int not null, primary key ( a, b )" ); TestUtil.createTable( con1, "ww", "m int not null, n int not null, primary key ( m, n ), foreign key ( m, n ) references vv ( a, b )" ); DatabaseMetaData dbmd = con.getMetaData(); assertNotNull(dbmd); ResultSet rs = dbmd.getCrossReference(null, "", "vv", null, "", "ww" ); for (int j = 1; rs.next(); j++ ) { String pkTableName = rs.getString( "PKTABLE_NAME" ); assertTrue ( pkTableName.equals("vv") ); String pkColumnName = rs.getString( "PKCOLUMN_NAME" ); assertTrue( pkColumnName.equals("a") || pkColumnName.equals("b")); String fkTableName = rs.getString( "FKTABLE_NAME" ); assertTrue( fkTableName.equals( "ww" ) ); String fkColumnName = rs.getString( "FKCOLUMN_NAME" ); assertTrue( fkColumnName.equals( "m" ) || fkColumnName.equals( "n" ) ) ; String fkName = rs.getString( "FK_NAME" ); if (TestUtil.haveMinimumServerVersion(con1,"7.3")) { assertTrue(fkName.startsWith("$1")); } else { assertTrue( fkName.startsWith( "<unnamed>") ); } String pkName = rs.getString( "PK_NAME" ); assertTrue( pkName.equals("vv_pkey") ); int keySeq = rs.getInt( "KEY_SEQ" ); assertTrue( keySeq == j ); } TestUtil.dropTable( con1, "vv" ); TestUtil.dropTable( con1, "ww" ); } catch (SQLException ex) { fail(ex.getMessage()); } }
|
49504 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49504/06ec9044b5804dcb728d8e360e1c1f1e002df107/DatabaseMetaDataTest.java/buggy/src/interfaces/jdbc/org/postgresql/test/jdbc2/DatabaseMetaDataTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
13941,
2404,
1435,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
1952,
356,
21,
273,
7766,
1304,
18,
3190,
2290,
5621,
1082,
202,
4709,
1304,
18,
2640,
1388,
12,
356,
21,
16,
315,
15530,
3113,
315,
69,
509,
486,
446,
16,
324,
509,
486,
446,
16,
3354,
498,
261,
279,
16,
324,
28796,
11272,
1082,
202,
4709,
1304,
18,
2640,
1388,
12,
356,
21,
16,
315,
3107,
3113,
315,
81,
509,
486,
446,
16,
290,
509,
486,
446,
16,
3354,
498,
261,
312,
16,
290,
262,
16,
5523,
498,
261,
312,
16,
290,
262,
5351,
13405,
261,
279,
16,
324,
28796,
11272,
1082,
202,
4254,
6998,
1319,
1264,
273,
356,
18,
588,
6998,
5621,
1082,
202,
11231,
5962,
12,
1966,
1264,
1769,
1082,
202,
13198,
3597,
273,
1319,
1264,
18,
588,
13941,
2404,
12,
2011,
16,
23453,
315,
15530,
3113,
446,
16,
23453,
315,
3107,
6,
11272,
1082,
202,
1884,
261,
474,
525,
273,
404,
31,
3597,
18,
4285,
5621,
525,
9904,
262,
1082,
202,
95,
9506,
202,
780,
2365,
7147,
273,
3597,
18,
588,
780,
12,
315,
8784,
7775,
67,
1985,
6,
11272,
9506,
202,
11231,
5510,
261,
2365,
7147,
18,
14963,
2932,
15530,
7923,
11272,
9506,
202,
780,
2365,
8516,
273,
3597,
18,
588,
780,
12,
315,
8784,
11009,
67,
1985,
6,
11272,
9506,
202,
11231,
5510,
12,
2365,
8516,
18,
14963,
2932,
69,
7923,
747,
2365,
8516,
18,
14963,
2932,
70,
7923,
1769,
9506,
202,
780,
10949,
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,
13941,
2404,
1435,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
1952,
356,
21,
273,
7766,
1304,
18,
3190,
2290,
5621,
1082,
202,
4709,
1304,
18,
2640,
1388,
12,
356,
21,
16,
315,
15530,
3113,
315,
69,
509,
486,
446,
16,
324,
509,
486,
446,
16,
3354,
498,
261,
279,
16,
324,
28796,
11272,
1082,
202,
4709,
1304,
18,
2640,
1388,
12,
356,
21,
16,
315,
3107,
3113,
315,
81,
509,
486,
446,
16,
290,
509,
486,
446,
16,
3354,
498,
261,
312,
16,
290,
262,
16,
5523,
498,
261,
312,
16,
290,
262,
5351,
13405,
261,
279,
16,
324,
28796,
11272,
1082,
202,
4254,
6998,
1319,
1264,
273,
356,
18,
588,
2
] |
if (heightESet) result.append(height); else result.append("<unset>");
|
if (heightESet) result.append(height); else result.append("<unset>");
|
public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (left: "); if (leftESet) result.append(left); else result.append("<unset>"); result.append(", top: "); if (topESet) result.append(top); else result.append("<unset>"); result.append(", width: "); if (widthESet) result.append(width); else result.append("<unset>"); result.append(", height: "); if (heightESet) result.append(height); else result.append("<unset>"); result.append(')'); return result.toString(); }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/BoundsImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/BoundsImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
1435,
565,
288,
3639,
309,
261,
73,
2520,
3886,
10756,
327,
2240,
18,
10492,
5621,
3639,
6674,
563,
273,
394,
6674,
12,
9565,
18,
10492,
10663,
3639,
563,
18,
6923,
2932,
261,
4482,
30,
315,
1769,
3639,
309,
261,
4482,
41,
694,
13,
563,
18,
6923,
12,
4482,
1769,
469,
563,
18,
6923,
2932,
32,
18579,
2984,
1769,
3639,
563,
18,
6923,
2932,
16,
1760,
30,
315,
1769,
3639,
309,
261,
3669,
41,
694,
13,
563,
18,
6923,
12,
3669,
1769,
469,
563,
18,
6923,
2932,
32,
18579,
2984,
1769,
3639,
563,
18,
6923,
2932,
16,
1835,
30,
315,
1769,
3639,
309,
261,
2819,
41,
694,
13,
563,
18,
6923,
12,
2819,
1769,
469,
563,
18,
6923,
2932,
32,
18579,
2984,
1769,
3639,
563,
18,
6923,
2932,
16,
2072,
30,
315,
1769,
3639,
309,
261,
4210,
41,
694,
13,
563,
18,
6923,
12,
4210,
1769,
469,
563,
18,
6923,
2932,
32,
18579,
2984,
1769,
3639,
563,
18,
6923,
2668,
2506,
1769,
3639,
327,
563,
18,
10492,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
1435,
565,
288,
3639,
309,
261,
73,
2520,
3886,
10756,
327,
2240,
18,
10492,
5621,
3639,
6674,
563,
273,
394,
6674,
12,
9565,
18,
10492,
10663,
3639,
563,
18,
6923,
2932,
261,
4482,
30,
315,
1769,
3639,
309,
261,
4482,
41,
694,
13,
563,
18,
6923,
12,
4482,
1769,
469,
563,
18,
6923,
2932,
32,
18579,
2984,
1769,
3639,
563,
18,
6923,
2932,
16,
1760,
30,
315,
1769,
3639,
309,
261,
3669,
41,
694,
13,
563,
18,
6923,
12,
3669,
1769,
469,
563,
18,
6923,
2932,
32,
18579,
2984,
1769,
3639,
563,
18,
6923,
2932,
16,
1835,
30,
315,
1769,
3639,
309,
261,
2819,
41,
694,
13,
563,
18,
6923,
12,
2819,
1769,
469,
563,
2
] |
if(currentPos != -1) {
|
if (currentPos != -1) {
|
void setText(String newText) { if(!textArea.getText().equals(newText)) { textArea.setText(newText); int pos = 0; if(currentPos != -1) { pos = currentPos; } textArea.select(pos); } Enumeration e = breakpoints.keys(); while(e.hasMoreElements()) { Object key = e.nextElement(); Integer line = (Integer)breakpoints.get(key); if(db.setBreakPoint(url, line.intValue()) == -1) { breakpoints.remove(key); } } fileHeader.update(); fileHeader.repaint(); }
|
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/bebd557da53b74c60ab8525aa96904d4cee6224c/Main.java/buggy/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
7883,
12,
780,
394,
1528,
13,
288,
3639,
309,
12,
5,
955,
5484,
18,
588,
1528,
7675,
14963,
12,
2704,
1528,
3719,
288,
5411,
977,
5484,
18,
542,
1528,
12,
2704,
1528,
1769,
5411,
509,
949,
273,
374,
31,
5411,
309,
261,
2972,
1616,
480,
300,
21,
13,
288,
7734,
949,
273,
783,
1616,
31,
5411,
289,
5411,
977,
5484,
18,
4025,
12,
917,
1769,
3639,
289,
3639,
13864,
425,
273,
23416,
18,
2452,
5621,
3639,
1323,
12,
73,
18,
5332,
7417,
3471,
10756,
288,
5411,
1033,
498,
273,
425,
18,
4285,
1046,
5621,
5411,
2144,
980,
273,
261,
4522,
13,
8820,
4139,
18,
588,
12,
856,
1769,
5411,
309,
12,
1966,
18,
542,
7634,
2148,
12,
718,
16,
980,
18,
474,
620,
10756,
422,
300,
21,
13,
288,
7734,
23416,
18,
4479,
12,
856,
1769,
5411,
289,
3639,
289,
3639,
585,
1864,
18,
2725,
5621,
3639,
585,
1864,
18,
14462,
1598,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
7883,
12,
780,
394,
1528,
13,
288,
3639,
309,
12,
5,
955,
5484,
18,
588,
1528,
7675,
14963,
12,
2704,
1528,
3719,
288,
5411,
977,
5484,
18,
542,
1528,
12,
2704,
1528,
1769,
5411,
509,
949,
273,
374,
31,
5411,
309,
261,
2972,
1616,
480,
300,
21,
13,
288,
7734,
949,
273,
783,
1616,
31,
5411,
289,
5411,
977,
5484,
18,
4025,
12,
917,
1769,
3639,
289,
3639,
13864,
425,
273,
23416,
18,
2452,
5621,
3639,
1323,
12,
73,
18,
5332,
7417,
3471,
10756,
288,
5411,
1033,
498,
273,
425,
18,
4285,
1046,
5621,
5411,
2144,
980,
273,
261,
4522,
13,
8820,
4139,
18,
588,
12,
856,
1769,
5411,
309,
12,
1966,
18,
542,
7634,
2148,
12,
2
] |
UIManager.LookAndFeelInfo[] info =
|
UIManager.LookAndFeelInfo[] info =
|
public Object getValue() { fPanel.saveAll(); JList l = (JList)fPanel.getCtrlByName(kLAFKey); String str = (String)l.getSelectedValue(); // sigh. we now search for the LAF UIManager.LookAndFeelInfo[] info = UIManager.getInstalledLookAndFeels(); LookAndFeel lf = null; for (int i = 0; i < info.length; i++) { try { String cn = info[i].getClassName(); Class c = Class.forName(cn); LookAndFeel current = (LookAndFeel)c.newInstance(); if (current.getDescription().equals(str)) { lf = current; } } catch (Exception e) { } } if (lf != null) { // fPrefs.setLAF((LookAndFeel) c.getValue()); fPrefs.setLAF(lf); } return fPrefs; }
|
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/3cd6e9d81112e3ab17a910eaef36b9e56b2a8b6a/UIPrefsEditor.java/buggy/grendel/sources/grendel/prefs/UIPrefsEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
2366,
1435,
288,
565,
284,
5537,
18,
5688,
1595,
5621,
565,
804,
682,
328,
273,
261,
46,
682,
13,
74,
5537,
18,
588,
12418,
5911,
12,
79,
2534,
42,
653,
1769,
565,
514,
609,
273,
261,
780,
13,
80,
18,
588,
7416,
620,
5621,
565,
368,
272,
2031,
18,
732,
2037,
1623,
364,
326,
2928,
42,
565,
6484,
1318,
18,
9794,
1876,
2954,
292,
966,
8526,
1123,
273,
4202,
6484,
1318,
18,
588,
16747,
9794,
1876,
2954,
10558,
5621,
565,
10176,
1876,
2954,
292,
18594,
273,
446,
31,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1123,
18,
2469,
31,
277,
27245,
288,
1377,
775,
288,
3639,
514,
6227,
273,
1123,
63,
77,
8009,
588,
3834,
5621,
3639,
1659,
276,
273,
1659,
18,
1884,
461,
12,
10305,
1769,
3639,
10176,
1876,
2954,
292,
783,
273,
261,
9794,
1876,
2954,
292,
13,
71,
18,
2704,
1442,
5621,
3639,
309,
261,
2972,
18,
588,
3291,
7675,
14963,
12,
701,
3719,
288,
1850,
18594,
273,
783,
31,
3639,
289,
1377,
289,
1044,
261,
503,
425,
13,
288,
1377,
289,
565,
289,
565,
309,
261,
20850,
480,
446,
13,
288,
565,
368,
284,
1386,
2556,
18,
542,
2534,
42,
12443,
9794,
1876,
2954,
292,
13,
276,
18,
24805,
10663,
1377,
284,
1386,
2556,
18,
542,
2534,
42,
12,
20850,
1769,
565,
289,
565,
327,
284,
1386,
2556,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
2366,
1435,
288,
565,
284,
5537,
18,
5688,
1595,
5621,
565,
804,
682,
328,
273,
261,
46,
682,
13,
74,
5537,
18,
588,
12418,
5911,
12,
79,
2534,
42,
653,
1769,
565,
514,
609,
273,
261,
780,
13,
80,
18,
588,
7416,
620,
5621,
565,
368,
272,
2031,
18,
732,
2037,
1623,
364,
326,
2928,
42,
565,
6484,
1318,
18,
9794,
1876,
2954,
292,
966,
8526,
1123,
273,
4202,
6484,
1318,
18,
588,
16747,
9794,
1876,
2954,
10558,
5621,
565,
10176,
1876,
2954,
292,
18594,
273,
446,
31,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1123,
18,
2469,
31,
277,
27245,
288,
1377,
775,
288,
3639,
514,
6227,
273,
1123,
63,
77,
8009,
2
] |
if (((RouterInfo)ds).isHidden() ||
|
RouterInfo ri = (RouterInfo)ds; if (!FloodfillNetworkDatabaseFacade.isFloodfill(ri)) _floodfillPeersExhausted = true; if (ri.isHidden() ||
|
protected void continueSearch() { if (_state.completed()) { if (_log.shouldLog(Log.DEBUG)) _log.debug(getJobId() + ": Search already completed", new Exception("already completed")); return; } int toCheck = getBredth() - _state.getPending().size(); if (toCheck <= 0) { // too many already pending if (_log.shouldLog(Log.INFO)) _log.info(getJobId() + ": Too many searches already pending (pending: " + _state.getPending().size() + " max: " + getBredth() + ")"); requeuePending(); return; } int sent = 0; Set attempted = _state.getAttempted(); while (sent <= 0) { List closestHashes = getClosestRouters(_state.getTarget(), toCheck, attempted); if ( (closestHashes == null) || (closestHashes.size() <= 0) ) { if (_state.getPending().size() <= 0) { // we tried to find some peers, but there weren't any and no one else is going to answer if (_log.shouldLog(Log.INFO)) _log.info(getJobId() + ": No peers left, and none pending! Already searched: " + _state.getAttempted().size() + " failed: " + _state.getFailed().size()); fail(); } else { // no more to try, but we might get data or close peers from some outstanding requests if (_log.shouldLog(Log.INFO)) _log.info(getJobId() + ": No peers left, but some are pending! Pending: " + _state.getPending().size() + " attempted: " + _state.getAttempted().size() + " failed: " + _state.getFailed().size()); requeuePending(); } return; } else { attempted.addAll(closestHashes); for (Iterator iter = closestHashes.iterator(); iter.hasNext(); ) { Hash peer = (Hash)iter.next(); DataStructure ds = _facade.getDataStore().get(peer); if (ds == null) { if (_log.shouldLog(Log.INFO)) _log.info("Next closest peer " + peer + " was only recently referred to us, sending a search for them"); getContext().netDb().lookupRouterInfo(peer, null, null, _timeoutMs); } else if (!(ds instanceof RouterInfo)) { if (_log.shouldLog(Log.WARN)) _log.warn(getJobId() + ": Error selecting closest hash that wasnt a router! " + peer + " : " + (ds == null ? "null" : ds.getClass().getName())); _state.replyTimeout(peer); } else { if (((RouterInfo)ds).isHidden() || getContext().shitlist().isShitlisted(peer)) { // dont bother } else { _state.addPending(peer); sendSearch((RouterInfo)ds); sent++; } } } /* if (sent <= 0) { // the (potentially) last peers being searched for could not be, // er, searched for, so lets retry ASAP (causing either another // peer to be selected, or the whole search to fail) if (_log.shouldLog(Log.INFO)) _log.info(getJobId() + ": No new peer queued up, so we are going to requeue " + "ourselves in our search for " + _state.getTarget().toBase64()); requeuePending(0); } */ } } }
|
27493 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27493/deb35f4af44e395f5c9fbd2bc85559092d360018/SearchJob.java/buggy/router/java/src/net/i2p/router/networkdb/kademlia/SearchJob.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1324,
2979,
1435,
288,
540,
309,
261,
67,
2019,
18,
13615,
10756,
288,
5411,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
9394,
3719,
7734,
389,
1330,
18,
4148,
12,
588,
23378,
1435,
397,
6398,
5167,
1818,
5951,
3113,
394,
1185,
2932,
17583,
5951,
7923,
1769,
5411,
327,
31,
3639,
289,
3639,
509,
358,
1564,
273,
2882,
1118,
451,
1435,
300,
389,
2019,
18,
588,
8579,
7675,
1467,
5621,
3639,
309,
261,
869,
1564,
1648,
374,
13,
288,
5411,
368,
4885,
4906,
1818,
4634,
5411,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
5923,
3719,
7734,
389,
1330,
18,
1376,
12,
588,
23378,
1435,
397,
6398,
15869,
4906,
16662,
1818,
4634,
261,
9561,
30,
315,
21821,
397,
389,
2019,
18,
588,
8579,
7675,
1467,
1435,
397,
315,
943,
30,
315,
397,
2882,
1118,
451,
1435,
397,
7310,
1769,
5411,
1111,
1455,
8579,
5621,
5411,
327,
31,
3639,
289,
540,
509,
3271,
273,
374,
31,
3639,
1000,
18121,
273,
389,
2019,
18,
588,
28788,
5621,
3639,
1323,
261,
7569,
1648,
374,
13,
288,
5411,
987,
9219,
14455,
273,
1927,
383,
7781,
4583,
414,
24899,
2019,
18,
588,
2326,
9334,
358,
1564,
16,
18121,
1769,
5411,
309,
261,
261,
7550,
7781,
14455,
422,
446,
13,
747,
261,
7550,
7781,
14455,
18,
1467,
1435,
1648,
374,
13,
262,
288,
7734,
309,
261,
67,
2019,
18,
588,
8579,
7675,
1467,
1435,
1648,
374,
13,
288,
10792,
368,
732,
12928,
358,
1104,
2690,
10082,
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,
377,
4750,
918,
1324,
2979,
1435,
288,
540,
309,
261,
67,
2019,
18,
13615,
10756,
288,
5411,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
9394,
3719,
7734,
389,
1330,
18,
4148,
12,
588,
23378,
1435,
397,
6398,
5167,
1818,
5951,
3113,
394,
1185,
2932,
17583,
5951,
7923,
1769,
5411,
327,
31,
3639,
289,
3639,
509,
358,
1564,
273,
2882,
1118,
451,
1435,
300,
389,
2019,
18,
588,
8579,
7675,
1467,
5621,
3639,
309,
261,
869,
1564,
1648,
374,
13,
288,
5411,
368,
4885,
4906,
1818,
4634,
5411,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
5923,
3719,
7734,
389,
1330,
18,
1376,
12,
588,
23378,
1435,
397,
6398,
15869,
4906,
16662,
1818,
4634,
261,
2
] |
if (!performShutdown) return;
|
if (!performShutdown) { return; }
|
public void destroy() { if (!performShutdown) return; try { if (scheduler != null) scheduler.shutdown(); } catch (Exception e) { log("Quartz Scheduler failed to shutdown cleanly: " + e.toString()); e.printStackTrace(); } log("Quartz Scheduler successful shutdown."); }
|
15562 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15562/f6eeea5a952e67d6b7fc8b54ae64d0b9e7098a98/QuartzInitializerServlet.java/clean/src/java/org/quartz/ee/servlet/QuartzInitializerServlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
5546,
1435,
288,
202,
202,
430,
16051,
16092,
10961,
13,
1082,
202,
2463,
31,
202,
202,
698,
288,
1082,
202,
430,
261,
19972,
480,
446,
13,
9506,
202,
19972,
18,
15132,
5621,
202,
202,
97,
1044,
261,
503,
425,
13,
288,
1082,
202,
1330,
2932,
12099,
94,
12620,
2535,
358,
5731,
2721,
715,
30,
315,
397,
425,
18,
10492,
10663,
1082,
202,
73,
18,
1188,
6332,
5621,
202,
202,
97,
202,
202,
1330,
2932,
12099,
94,
12620,
6873,
5731,
1199,
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,
482,
918,
5546,
1435,
288,
202,
202,
430,
16051,
16092,
10961,
13,
1082,
202,
2463,
31,
202,
202,
698,
288,
1082,
202,
430,
261,
19972,
480,
446,
13,
9506,
202,
19972,
18,
15132,
5621,
202,
202,
97,
1044,
261,
503,
425,
13,
288,
1082,
202,
1330,
2932,
12099,
94,
12620,
2535,
358,
5731,
2721,
715,
30,
315,
397,
425,
18,
10492,
10663,
1082,
202,
73,
18,
1188,
6332,
5621,
202,
202,
97,
202,
202,
1330,
2932,
12099,
94,
12620,
6873,
5731,
1199,
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
] |
topComposite.setLayout(new GridLayout());
|
GridLayout layout = new GridLayout(); layout.marginHeight = 0; layout.marginWidth = 0; topComposite.setLayout(layout);
|
protected Control createContents(Composite parent) { WorkbenchHelp.setHelp(parent, IHelpContextIds.PROJECT_CAPABILITY_PROPERTY_PAGE); noDefaultAndApplyButton(); reg = WorkbenchPlugin.getDefault().getCapabilityRegistry(); Composite topComposite = new Composite(parent, SWT.NONE); topComposite.setLayout(new GridLayout()); topComposite.setLayoutData(new GridData(GridData.FILL_BOTH)); String instructions; if (reg.hasCapabilities()) instructions = WorkbenchMessages.getString("ProjectCapabilityPropertyPage.chooseCapabilities"); //$NON-NLS-1$ else instructions = WorkbenchMessages.getString("ProjectCapabilityPropertyPage.noCapabilities"); //$NON-NLS-1$ Label label = new Label(topComposite, SWT.LEFT); label.setText(instructions); Capability[] caps = reg.getProjectDisabledCapabilities(getProject()); disabledCaps.addAll(Arrays.asList(caps)); Composite mainComposite = new Composite(topComposite, SWT.NONE); GridLayout layout = new GridLayout(); layout.numColumns = 2; layout.marginHeight = 0; layout.marginWidth = 0; mainComposite.setLayout(layout); mainComposite.setLayoutData(new GridData(GridData.FILL_BOTH)); Composite capComposite = new Composite(mainComposite, SWT.NONE); capComposite.setLayout(new GridLayout()); capComposite.setLayoutData(new GridData(GridData.FILL_BOTH)); label = new Label(capComposite, SWT.LEFT); label.setText(WorkbenchMessages.getString("ProjectCapabilitySelectionGroup.capabilities")); //$NON-NLS-1$ table = new TableViewer(capComposite, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER); table.getTable().setLayoutData(new GridData(GridData.FILL_BOTH)); table.setLabelProvider(new CapabilityLabelProvider()); table.setContentProvider(getContentProvider()); table.setInput(getProject()); Composite buttonComposite = new Composite(mainComposite, SWT.NONE); buttonComposite.setLayout(new GridLayout()); buttonComposite.setLayoutData(new GridData(GridData.FILL_VERTICAL)); label = new Label(buttonComposite, SWT.LEFT); label.setText(""); //$NON-NLS-1$ addButton = new Button(buttonComposite, SWT.PUSH); addButton.setText(WorkbenchMessages.getString("ProjectCapabilityEditingPropertyPage.add")); //$NON-NLS-1$ addButton.setEnabled(true); addButton.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { addCapability(); } public void widgetDefaultSelected(SelectionEvent e) { } }); GridData data = new GridData(); data.horizontalAlignment = GridData.FILL; data.heightHint = convertVerticalDLUsToPixels(IDialogConstants.BUTTON_HEIGHT); int widthHint = convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH); data.widthHint = Math.max(widthHint, addButton.computeSize(SWT.DEFAULT, SWT.DEFAULT, true).x); addButton.setLayoutData(data); removeButton = new Button(buttonComposite, SWT.PUSH); removeButton.setText(WorkbenchMessages.getString("ProjectCapabilityEditingPropertyPage.remove")); //$NON-NLS-1$ removeButton.setEnabled(false); removeButton.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { removeCapability(selectedCap); } public void widgetDefaultSelected(SelectionEvent e) { } }); data = new GridData(); data.horizontalAlignment = GridData.FILL; data.heightHint = convertVerticalDLUsToPixels(IDialogConstants.BUTTON_HEIGHT); widthHint = convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH); data.widthHint = Math.max(widthHint, removeButton.computeSize(SWT.DEFAULT, SWT.DEFAULT, true).x); removeButton.setLayoutData(data); table.addSelectionChangedListener(new ISelectionChangedListener() { public void selectionChanged(SelectionChangedEvent event) { selectedCap = null; IStructuredSelection sel = (IStructuredSelection)event.getSelection(); if (sel != null) selectedCap = (Capability)sel.getFirstElement(); removeButton.setEnabled(selectedCap != null); } }); return topComposite; }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/6d34e8bb125b1974b01c41b75e08ae98daddcad0/ProjectCapabilityEditingPropertyPage.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/dialogs/ProjectCapabilityEditingPropertyPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8888,
752,
6323,
12,
9400,
982,
13,
288,
202,
202,
2421,
22144,
6696,
18,
542,
6696,
12,
2938,
16,
467,
6696,
1042,
2673,
18,
17147,
67,
17296,
22879,
67,
9900,
67,
11219,
1769,
202,
202,
2135,
1868,
1876,
7001,
3616,
5621,
202,
202,
1574,
273,
4147,
22144,
3773,
18,
588,
1868,
7675,
588,
17035,
4243,
5621,
9506,
202,
9400,
1760,
9400,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
202,
202,
3669,
9400,
18,
542,
3744,
12,
2704,
7145,
3744,
10663,
202,
202,
3669,
9400,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
10019,
9506,
202,
780,
12509,
31,
202,
202,
430,
261,
1574,
18,
5332,
14012,
10756,
1082,
202,
25758,
273,
4147,
22144,
5058,
18,
588,
780,
2932,
4109,
17035,
1396,
1964,
18,
25777,
14012,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
12107,
1082,
202,
25758,
273,
4147,
22144,
5058,
18,
588,
780,
2932,
4109,
17035,
1396,
1964,
18,
2135,
14012,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
2224,
1433,
273,
394,
5287,
12,
3669,
9400,
16,
348,
8588,
18,
10066,
1769,
202,
202,
1925,
18,
542,
1528,
12,
25758,
1769,
202,
202,
17035,
8526,
15788,
273,
960,
18,
588,
4109,
8853,
14012,
12,
588,
4109,
10663,
202,
202,
9278,
24193,
18,
1289,
1595,
12,
12726,
18,
345,
682,
12,
22984,
10019,
202,
202,
9400,
2774,
9400,
273,
394,
14728,
12,
3669,
9400,
16,
348,
8588,
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,
8888,
752,
6323,
12,
9400,
982,
13,
288,
202,
202,
2421,
22144,
6696,
18,
542,
6696,
12,
2938,
16,
467,
6696,
1042,
2673,
18,
17147,
67,
17296,
22879,
67,
9900,
67,
11219,
1769,
202,
202,
2135,
1868,
1876,
7001,
3616,
5621,
202,
202,
1574,
273,
4147,
22144,
3773,
18,
588,
1868,
7675,
588,
17035,
4243,
5621,
9506,
202,
9400,
1760,
9400,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
202,
202,
3669,
9400,
18,
542,
3744,
12,
2704,
7145,
3744,
10663,
202,
202,
3669,
9400,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
10019,
9506,
202,
780,
12509,
31,
202,
202,
430,
261,
1574,
18,
2
] |
assertEquals("findToc should return root","",tocNode.getDisplayString());
|
assertEquals("findToc should return null",null,tocNode.getDisplayString());
|
public void testReportDocumentAbnormal(){/* String designName="report_document.rptdesign",reportDocName="report_document"; String plug_path=EngineCase.PLUGIN_PATH; String file_path=EngineCase.RESOURCE_BUNDLE.getString("CASE_INPUT") +System.getProperty("file.separator"); String document_path=EngineCase.RESOURCE_BUNDLE.getString("CASE_OUTPUT") +System.getProperty("file.separator"); String report_design=plug_path+file_path+designName; String report_document=plug_path+document_path+reportDocName; */ String path=getBaseFolder()+System.getProperty("file.separator"); String report_design=path+INPUT_FOLDER+System.getProperty("file.separator")+"report_document.rptdesign"; String report_document=path+OUTPUT_FOLDER+System.getProperty("file.separator")+"report_document"; /* String report_design="D:/TEMP/workspace3.1/org.eclipse.birt.report.tests.engine/input/report_document.rptdesign"; String report_document="D:/TEMP/workspace3.1/org.eclipse.birt.report.tests.engine/output/report_document";*/ try{ createReportDocument(report_design,report_document); IDocArchiveReader archive=new FileArchiveReader(report_document); IReportDocument reportDoc=engine.openReportDocument(report_document); //check findToc TOCNode tocNode; tocNode=(TOCNode)reportDoc.findTOC(null); assertEquals("findToc should return root","",tocNode.getDisplayString()); tocNode=(TOCNode)reportDoc.findTOC(""); assertNull("1.findToc should return null toc node",tocNode); tocNode=(TOCNode)reportDoc.findTOC("1"); assertNull("2.findToc should return null toc node",tocNode); tocNode=(TOCNode)reportDoc.findTOC("\":)_+^&*%$#@!~<>"); assertNull("3.findToc should return null toc node",tocNode); //check getChildren List children; children=reportDoc.getChildren(null); assertNotNull(children); assertEquals("getChildren should return root node's children",1,children.size()); children=reportDoc.getChildren(""); assertNull("1.getChildren should return null",children); children=reportDoc.getChildren("1"); assertNull("2.getChildren should return null",children); children=reportDoc.getChildren("\":)_+^&*%$#@!~<>??"); assertNull("3.getChildren should return null",children); //check getPageNumber(instanceID) //TODO: //check getPageNumber(bookmarks) long pageNum; String bookmark=null; pageNum=reportDoc.getPageNumber(bookmark); assertEquals("1.getPageNumber should return -1",-1,pageNum); bookmark=""; pageNum=reportDoc.getPageNumber(bookmark); assertEquals("2.getPageNumber should return -1",-1,pageNum); bookmark="\":)_+^&*%$#@!~<>??"; pageNum=reportDoc.getPageNumber(bookmark); assertEquals("3.getPageNumber should return -1",-1,pageNum); }catch(Exception e){ e.printStackTrace(); } }
|
58644 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58644/67872a31f649eb7d5be6fbf9b8bed7f52812d4d6/ReportDocumentTest.java/buggy/plugins/org.eclipse.birt.report.tests.engine/src/org/eclipse/birt/report/tests/engine/api/ReportDocumentTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
4820,
2519,
5895,
6130,
1435,
95,
20308,
202,
202,
780,
8281,
461,
1546,
6006,
67,
5457,
18,
86,
337,
16934,
3113,
6006,
1759,
461,
1546,
6006,
67,
5457,
14432,
202,
202,
780,
15852,
67,
803,
33,
4410,
2449,
18,
19415,
67,
4211,
31,
202,
202,
780,
585,
67,
803,
33,
4410,
2449,
18,
11395,
67,
30245,
18,
588,
780,
2932,
13415,
67,
15934,
7923,
6862,
202,
15,
3163,
18,
588,
1396,
2932,
768,
18,
11287,
8863,
202,
202,
780,
1668,
67,
803,
33,
4410,
2449,
18,
11395,
67,
30245,
18,
588,
780,
2932,
13415,
67,
15527,
7923,
202,
202,
15,
3163,
18,
588,
1396,
2932,
768,
18,
11287,
8863,
9506,
202,
780,
2605,
67,
16934,
33,
22045,
67,
803,
15,
768,
67,
803,
15,
16934,
461,
31,
202,
202,
780,
2605,
67,
5457,
33,
22045,
67,
803,
15,
5457,
67,
803,
15,
6006,
1759,
461,
31,
202,
202,
5549,
202,
202,
780,
589,
33,
588,
2171,
3899,
1435,
15,
3163,
18,
588,
1396,
2932,
768,
18,
11287,
8863,
202,
202,
780,
2605,
67,
16934,
33,
803,
15,
15934,
67,
17357,
15,
3163,
18,
588,
1396,
2932,
768,
18,
11287,
7923,
9078,
6006,
67,
5457,
18,
86,
337,
16934,
14432,
202,
202,
780,
2605,
67,
5457,
33,
803,
15,
15527,
67,
17357,
15,
3163,
18,
588,
1396,
2932,
768,
18,
11287,
7923,
9078,
6006,
67,
5457,
14432,
202,
202,
20308,
202,
202,
780,
2605,
67,
16934,
1546,
40,
27824,
10258,
19,
14915,
23,
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,
4820,
2519,
5895,
6130,
1435,
95,
20308,
202,
202,
780,
8281,
461,
1546,
6006,
67,
5457,
18,
86,
337,
16934,
3113,
6006,
1759,
461,
1546,
6006,
67,
5457,
14432,
202,
202,
780,
15852,
67,
803,
33,
4410,
2449,
18,
19415,
67,
4211,
31,
202,
202,
780,
585,
67,
803,
33,
4410,
2449,
18,
11395,
67,
30245,
18,
588,
780,
2932,
13415,
67,
15934,
7923,
6862,
202,
15,
3163,
18,
588,
1396,
2932,
768,
18,
11287,
8863,
202,
202,
780,
1668,
67,
803,
33,
4410,
2449,
18,
11395,
67,
30245,
18,
588,
780,
2932,
13415,
67,
15527,
7923,
202,
202,
15,
3163,
18,
588,
1396,
2932,
768,
18,
11287,
8863,
9506,
202,
780,
2605,
67,
2
] |
setOnchange(null);
|
private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskey(), String.class)); } catch (NullAttributeException ex) { setAccesskey(null); } try { setAlt((String) evalAttr("alt", getAlt(), String.class)); } catch (NullAttributeException ex) { setAlt(null); } try { setAltKey((String) evalAttr("altKey", getAltKey(), String.class)); } catch (NullAttributeException ex) { setAltKey(null); } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setDisabled(false); } try { setIndexed(((Boolean) evalAttr("indexed", getIndexedExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setIndexed(false); } try { setOnblur((String) evalAttr("onblur", getOnblur(), String.class)); } catch (NullAttributeException ex) { setOnblur(null); } try { setOnchange((String) evalAttr("onchange", getOnchange(), String.class)); } catch (NullAttributeException ex) { setOnchange(null); } try { setOnclick((String) evalAttr("onclick", getOnclick(), String.class)); } catch (NullAttributeException ex) { setOnclick(null); } try { setOndblclick((String) evalAttr("ondblclick", getOndblclick(), String.class)); } catch (NullAttributeException ex) { setOndblclick(null); } try { setOnfocus((String) evalAttr("onfocus", getOnfocus(), String.class)); } catch (NullAttributeException ex) { setOnfocus(null); } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydown(), String.class)); } catch (NullAttributeException ex) { setOnkeydown(null); } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypress(), String.class)); } catch (NullAttributeException ex) { setOnkeypress(null); } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyup(), String.class)); } catch (NullAttributeException ex) { setOnkeyup(null); } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedown(), String.class)); } catch (NullAttributeException ex) { setOnmousedown(null); } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemove(), String.class)); } catch (NullAttributeException ex) { setOnmousemove(null); } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseout(), String.class)); } catch (NullAttributeException ex) { setOnmouseout(null); } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseover(), String.class)); } catch (NullAttributeException ex) { setOnmouseover(null); } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseup(), String.class)); } catch (NullAttributeException ex) { setOnmouseup(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setStyle((String) evalAttr("style", getStyle(), String.class)); } catch (NullAttributeException ex) { setStyle(null); } try { setStyleClass((String) evalAttr("styleClass", getStyleClass(), String.class)); } catch (NullAttributeException ex) { setStyleClass(null); } try { setStyleId((String) evalAttr("styleId", getStyleId(), String.class)); } catch (NullAttributeException ex) { setStyleId(null); } try { setTabindex((String) evalAttr("tabindex", getTabindex(), String.class)); } catch (NullAttributeException ex) { setTabindex(null); } try { setTitle((String) evalAttr("title", getTitle(), String.class)); } catch (NullAttributeException ex) { setTitle(null); } try { setTitleKey((String) evalAttr("titleKey", getTitleKey(), String.class)); } catch (NullAttributeException ex) { setTitleKey(null); } try { setValue((String) evalAttr("value", getValue(), String.class)); } catch (NullAttributeException ex) { setValue(null); } }
|
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/db064e19656421b94aaf753550935d95f44bd5f9/ELButtonTag.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELButtonTag.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
9334,
4766,
6647,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
1862,
856,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
12443,
780,
13,
5302,
3843,
2932,
2390,
3113,
336,
10655,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
10655,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
653,
12443,
780,
13,
5302,
3843,
2932,
2390,
653,
3113,
336,
10655,
653,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
10655,
653,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
8853,
12443,
12,
5507,
13,
5302,
3843,
2932,
9278,
3113,
336,
8853,
4742,
9334,
4766,
5411,
3411,
18,
1106,
13,
2934,
13491,
16708,
10663,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
8853,
12,
5743,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
15034,
12443,
12,
5507,
13,
5302,
3843,
2932,
19626,
3113,
8088,
329,
4742,
9334,
4766,
6647,
3411,
18,
1106,
13,
2934,
15604,
16708,
10663,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
15034,
12,
5743,
1769,
3639,
289,
3639,
775,
288,
5411,
22131,
27065,
12443,
780,
13,
5302,
3843,
2932,
265,
27065,
3113,
30070,
27065,
9334,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
9334,
4766,
6647,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
1862,
856,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
12443,
780,
13,
5302,
3843,
2932,
2390,
3113,
336,
10655,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
10655,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
653,
12443,
780,
13,
5302,
3843,
2932,
2390,
653,
3113,
336,
10655,
653,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
2
] |
|
Color color = super.getColor(); super.setColor(null); setColor(color);
|
writePaint(getPrintColor(getColor()));
|
public void writeGraphicsState() throws IOException { Color color = super.getColor(); super.setColor(null); setColor(color); Shape clip = userClip; setClip(clip); AffineTransform transform = currentTransform; currentTransform = new AffineTransform(); setTransform(transform); Font font = getFont(); super.setFont(null); setFont(font); Composite composite = currentComposite; currentComposite = null; setComposite(composite); Stroke stroke = currentStroke; currentStroke = null; setStroke(stroke); }
|
57341 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57341/8f04db8c8d0ad13ec4f60df5feb03111d7f984d4/AbstractVectorGraphicsIO.java/clean/freehep-graphicsio/src/main/java/org/freehep/graphicsio/AbstractVectorGraphicsIO.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1045,
17558,
1119,
1435,
1216,
1860,
288,
3639,
5563,
2036,
273,
2240,
18,
588,
2957,
5621,
3639,
2240,
18,
542,
2957,
12,
2011,
1769,
3639,
16207,
12,
3266,
1769,
3639,
12383,
6807,
273,
729,
15339,
31,
3639,
11440,
3169,
12,
14161,
1769,
3639,
23906,
558,
4059,
2510,
273,
783,
4059,
31,
3639,
783,
4059,
273,
394,
23906,
558,
4059,
5621,
3639,
444,
4059,
12,
6547,
1769,
3639,
10063,
3512,
273,
18776,
5621,
3639,
2240,
18,
542,
5711,
12,
2011,
1769,
3639,
20454,
12,
5776,
1769,
3639,
14728,
9635,
273,
783,
9400,
31,
3639,
783,
9400,
273,
446,
31,
3639,
444,
9400,
12,
27676,
1769,
3639,
934,
6822,
11040,
273,
783,
14602,
31,
3639,
783,
14602,
273,
446,
31,
3639,
30603,
12,
16181,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
1045,
17558,
1119,
1435,
1216,
1860,
288,
3639,
5563,
2036,
273,
2240,
18,
588,
2957,
5621,
3639,
2240,
18,
542,
2957,
12,
2011,
1769,
3639,
16207,
12,
3266,
1769,
3639,
12383,
6807,
273,
729,
15339,
31,
3639,
11440,
3169,
12,
14161,
1769,
3639,
23906,
558,
4059,
2510,
273,
783,
4059,
31,
3639,
783,
4059,
273,
394,
23906,
558,
4059,
5621,
3639,
444,
4059,
12,
6547,
1769,
3639,
10063,
3512,
273,
18776,
5621,
3639,
2240,
18,
542,
5711,
12,
2011,
1769,
3639,
20454,
12,
5776,
1769,
3639,
14728,
9635,
273,
783,
9400,
31,
3639,
783,
9400,
273,
446,
31,
3639,
444,
9400,
12,
27676,
1769,
3639,
934,
6822,
11040,
273,
783,
14602,
31,
3639,
783,
14602,
273,
2
] |
this(mockedType, CoreMock.mockNameFromClass(mockedType)); }
|
this(mockedType, CoreMock.mockNameFromClass(mockedType)); }
|
public Mock( Class mockedType ) { this(mockedType, CoreMock.mockNameFromClass(mockedType)); }
|
57371 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57371/c26c57f3ac4851e6bc9c5df8515ac73f4045eebf/Mock.java/buggy/jmock/core/src/org/jmock/Mock.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
7867,
12,
1659,
5416,
329,
559,
262,
288,
202,
202,
2211,
12,
22851,
329,
559,
16,
4586,
9865,
18,
22851,
461,
1265,
797,
12,
22851,
329,
559,
10019,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
7867,
12,
1659,
5416,
329,
559,
262,
288,
202,
202,
2211,
12,
22851,
329,
559,
16,
4586,
9865,
18,
22851,
461,
1265,
797,
12,
22851,
329,
559,
10019,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (tip != null && !tip.isDisposed() && tip.isVisible()) tip.setVisible(false);
|
if (tip != null && !tip.isDisposed() && tip.isVisible()) { tip.setVisible(false); }
|
private void onMouseExit(Event event) { Rectangle inactiveBounds = inactiveCloseBar.getBounds(); if (inactiveBounds.contains(event.x, event.y)) return; inactiveCloseBar.setVisible(false); inactiveItem = null; showToolTip = false; toolTipItem = null; if (tip != null && !tip.isDisposed() && tip.isVisible()) tip.setVisible(false); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/3a23c3b9bac4db696a0452560047155775a707b7/CTabFolder.java/buggy/bundles/org.eclipse.ui.presentations.r21/src/org/eclipse/ui/internal/presentations/r21/widgets/CTabFolder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
21000,
6767,
12,
1133,
871,
13,
288,
3639,
13264,
16838,
5694,
273,
16838,
4605,
5190,
18,
588,
5694,
5621,
3639,
309,
261,
27366,
5694,
18,
12298,
12,
2575,
18,
92,
16,
871,
18,
93,
3719,
5411,
327,
31,
3639,
16838,
4605,
5190,
18,
542,
6207,
12,
5743,
1769,
3639,
16838,
1180,
273,
446,
31,
3639,
2405,
29250,
273,
629,
31,
3639,
5226,
14189,
1180,
273,
446,
31,
3639,
309,
261,
14587,
480,
446,
597,
401,
14587,
18,
291,
1669,
7423,
1435,
597,
9529,
18,
291,
6207,
10756,
5411,
9529,
18,
542,
6207,
12,
5743,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
21000,
6767,
12,
1133,
871,
13,
288,
3639,
13264,
16838,
5694,
273,
16838,
4605,
5190,
18,
588,
5694,
5621,
3639,
309,
261,
27366,
5694,
18,
12298,
12,
2575,
18,
92,
16,
871,
18,
93,
3719,
5411,
327,
31,
3639,
16838,
4605,
5190,
18,
542,
6207,
12,
5743,
1769,
3639,
16838,
1180,
273,
446,
31,
3639,
2405,
29250,
273,
629,
31,
3639,
5226,
14189,
1180,
273,
446,
31,
3639,
309,
261,
14587,
480,
446,
597,
401,
14587,
18,
291,
1669,
7423,
1435,
597,
9529,
18,
291,
6207,
10756,
5411,
9529,
18,
542,
6207,
12,
5743,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
treeViewer.setContentProvider(contentProvider);
|
public void setContentProvider(IContentProvider contentProvider) { if (contentProvider instanceof INestedGraphContentProvider) { super.setContentProvider(contentProvider); treeViewer.setContentProvider(contentProvider); } else if ( contentProvider instanceof INestedGraphEntityContentProvider ) { super.setContentProvider(contentProvider); treeViewer.setContentProvider(contentProvider); } else { throw new IllegalArgumentException("Invalid content provider, only INestedGraphContentProvider and INestedGraphEntityContentProvider are supported."); } }
|
11225 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11225/35ad04f579a89259b2f797fafadd23ce4dcdd4fa/NestedGraphViewer.java/clean/org.eclipse.zest.core/src/org/eclipse/zest/core/viewers/NestedGraphViewer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
10651,
2249,
12,
45,
1350,
2249,
913,
2249,
13,
288,
202,
202,
430,
261,
1745,
2249,
1276,
2120,
3149,
4137,
1350,
2249,
13,
288,
1082,
202,
9565,
18,
542,
1350,
2249,
12,
1745,
2249,
1769,
1082,
202,
3413,
18415,
18,
542,
1350,
2249,
12,
1745,
2249,
1769,
202,
202,
97,
469,
309,
261,
913,
2249,
1276,
2120,
3149,
4137,
1943,
1350,
2249,
262,
288,
1082,
202,
9565,
18,
542,
1350,
2249,
12,
1745,
2249,
1769,
1082,
202,
3413,
18415,
18,
542,
1350,
2249,
12,
1745,
2249,
1769,
202,
202,
97,
469,
288,
1082,
202,
12849,
394,
2754,
2932,
1941,
913,
2893,
16,
1338,
2120,
3149,
4137,
1350,
2249,
471,
2120,
3149,
4137,
1943,
1350,
2249,
854,
3260,
1199,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
918,
10651,
2249,
12,
45,
1350,
2249,
913,
2249,
13,
288,
202,
202,
430,
261,
1745,
2249,
1276,
2120,
3149,
4137,
1350,
2249,
13,
288,
1082,
202,
9565,
18,
542,
1350,
2249,
12,
1745,
2249,
1769,
1082,
202,
3413,
18415,
18,
542,
1350,
2249,
12,
1745,
2249,
1769,
202,
202,
97,
469,
309,
261,
913,
2249,
1276,
2120,
3149,
4137,
1943,
1350,
2249,
262,
288,
1082,
202,
9565,
18,
542,
1350,
2249,
12,
1745,
2249,
1769,
1082,
202,
3413,
18415,
18,
542,
1350,
2249,
12,
1745,
2249,
1769,
202,
202,
97,
469,
288,
1082,
202,
12849,
394,
2754,
2932,
1941,
913,
2893,
16,
1338,
2120,
3149,
4137,
1350,
2249,
471,
2120,
3149,
4137,
1943,
1350,
2249,
2
] |
|
<T extends ManagedObject> ManagedReference<T> createReference(T object);
|
ManagedReference createReference(ManagedObject object);
|
<T extends ManagedObject> ManagedReference<T> createReference(T object);
|
55380 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55380/468fd904132fe7f543e7cd90eed49c63132c4835/DataManager.java/buggy/src/server/j2se/com/sun/sgs/app/DataManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
411,
56,
3231,
28690,
34,
10024,
2404,
32,
56,
34,
752,
2404,
12,
56,
733,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
411,
56,
3231,
28690,
34,
10024,
2404,
32,
56,
34,
752,
2404,
12,
56,
733,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public Queue(ActiveMQDestination destination, final UsageManager memoryManager, MessageStore store, DestinationStatistics parentStats, TaskRunnerFactory taskFactory) throws Exception { this.destination = destination; this.usageManager = new UsageManager(memoryManager); this.usageManager.setLimit(Long.MAX_VALUE); this.store = store; // Let the store know what usage manager we are using so that he can flush messages to disk // when usage gets high. if( store!=null ) { store.setUsageManager(usageManager); } destinationStatistics.setParent(parentStats); this.log = LogFactory.getLog(getClass().getName() + "." + destination.getPhysicalName()); if (store != null) { // Restore the persistent messages. store.recover(new MessageRecoveryListener() { public void recoverMessage(Message message) { message.setRegionDestination(Queue.this); MessageReference reference = createMessageReference(message); synchronized (messages) { messages.add(reference); } reference.decrementReferenceCount(); destinationStatistics.getMessages().increment(); } public void recoverMessageReference(String messageReference) throws Exception { throw new RuntimeException("Should not be called."); } public void finished(){ } }); } }
|
11783 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11783/9479de76fa3049921a911ee3988fcfd55595d1e5/Queue.java/clean/activemq-core/src/main/java/org/apache/activemq/broker/region/Queue.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
7530,
12,
3896,
9682,
5683,
2929,
16,
727,
10858,
1318,
3778,
1318,
16,
2350,
2257,
1707,
16,
5411,
10691,
8569,
982,
4195,
16,
3837,
9709,
1733,
1562,
1733,
13,
1216,
1185,
288,
3639,
333,
18,
10590,
273,
2929,
31,
3639,
333,
18,
9167,
1318,
273,
394,
10858,
1318,
12,
7858,
1318,
1769,
3639,
333,
18,
9167,
1318,
18,
542,
3039,
12,
3708,
18,
6694,
67,
4051,
1769,
3639,
333,
18,
2233,
273,
1707,
31,
3639,
368,
10559,
326,
1707,
5055,
4121,
4084,
3301,
732,
854,
1450,
1427,
716,
3904,
848,
3663,
2743,
358,
4234,
3639,
368,
1347,
4084,
5571,
3551,
18,
3639,
309,
12,
1707,
5,
33,
2011,
262,
288,
5411,
1707,
18,
542,
5357,
1318,
12,
9167,
1318,
1769,
3639,
289,
7734,
2929,
8569,
18,
542,
3054,
12,
2938,
4195,
1769,
3639,
333,
18,
1330,
273,
1827,
1733,
18,
588,
1343,
12,
588,
797,
7675,
17994,
1435,
397,
4585,
397,
2929,
18,
588,
18136,
461,
10663,
3639,
309,
261,
2233,
480,
446,
13,
288,
5411,
368,
11197,
326,
9195,
2743,
18,
5411,
1707,
18,
266,
3165,
12,
2704,
2350,
11548,
2223,
1435,
288,
7734,
1071,
918,
5910,
1079,
12,
1079,
883,
13,
288,
10792,
883,
18,
542,
5165,
5683,
12,
3183,
18,
2211,
1769,
10792,
2350,
2404,
2114,
273,
23836,
2404,
12,
2150,
1769,
10792,
3852,
261,
6833,
13,
288,
13491,
2743,
18,
1289,
12,
6180,
1769,
10792,
289,
10792,
2114,
18,
323,
3702,
2404,
1380,
5621,
10792,
2929,
8569,
18,
588,
5058,
7675,
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,
7530,
12,
3896,
9682,
5683,
2929,
16,
727,
10858,
1318,
3778,
1318,
16,
2350,
2257,
1707,
16,
5411,
10691,
8569,
982,
4195,
16,
3837,
9709,
1733,
1562,
1733,
13,
1216,
1185,
288,
3639,
333,
18,
10590,
273,
2929,
31,
3639,
333,
18,
9167,
1318,
273,
394,
10858,
1318,
12,
7858,
1318,
1769,
3639,
333,
18,
9167,
1318,
18,
542,
3039,
12,
3708,
18,
6694,
67,
4051,
1769,
3639,
333,
18,
2233,
273,
1707,
31,
3639,
368,
10559,
326,
1707,
5055,
4121,
4084,
3301,
732,
854,
1450,
1427,
716,
3904,
848,
3663,
2743,
358,
4234,
3639,
368,
1347,
4084,
5571,
3551,
18,
3639,
309,
12,
1707,
5,
33,
2011,
262,
288,
5411,
1707,
18,
542,
5357,
1318,
12,
2
] |
||
int ntm = num_normal_turns[index] / min; for (int j = 0; j < ntm; j++) { turns.addNormal(order[index]); num_normal_turns[index]--; turns_left--; }
|
int ntm = num_normal_turns[index] / min; for (int j = 0; j < ntm; j++) { turns.addNormal(order[index]); num_normal_turns[index]--; turns_left--; }
|
public static TurnVectors generateTurnOrder( Vector v, IGame game ) { int[] num_even_turns = new int[v.size()]; int[] num_normal_turns = new int[v.size()]; int total_even_turns = 0; int total_normal_turns = 0; int index; TurnOrdered[] order = new TurnOrdered[v.size()]; int orderedItems = 0; com.sun.java.util.collections.ArrayList plist = new com.sun.java.util.collections.ArrayList(v.size()); for (Enumeration i = v.elements(); i.hasMoreElements();) { Object item = i.nextElement(); plist.add(item); } com.sun.java.util.collections.Collections.sort(plist, new com.sun.java.util.collections.Comparator() { public int compare(Object o1, Object o2) { return ((TurnOrdered)o1).getInitiative().compareTo(((TurnOrdered)o2).getInitiative()); } }); // Walk through the ordered items. for ( com.sun.java.util.collections.Iterator i = plist.iterator(); i.hasNext(); orderedItems++ ) { final TurnOrdered item = (TurnOrdered)i.next(); order[orderedItems] = item; // Track even turns separately from the normal turns. num_normal_turns[orderedItems] = item.getNormalTurns(game); num_even_turns[orderedItems] = item.getEvenTurns(); // Keep a running total. total_even_turns += num_even_turns[orderedItems]; total_normal_turns += num_normal_turns[orderedItems]; } int min; int turns_left; // We will do the 'normal' turns first, and then the 'even' turns. min = Integer.MAX_VALUE; for(index = 0; index < orderedItems ; index++) { if ( num_normal_turns[index] != 0 && num_normal_turns[index] < min) min = num_normal_turns[index]; } TurnVectors turns = new TurnVectors(total_normal_turns, total_even_turns, min); // Allocate the normal turns. turns_left = total_normal_turns; while (turns_left > 0) { for (index = 0; index < orderedItems; index++) { // If you have no turns here, skip if (num_normal_turns[index] == 0) continue; // If you have less than twice the lowest, // move 1. Otherwise, move more. int ntm = num_normal_turns[index] / min; for (int j = 0; j < ntm; j++) { turns.addNormal(order[index]); num_normal_turns[index]--; turns_left--; } } // Since the smallest unit count had to place 1, reduce min) min--; } // Handle the next 'normal' turn. // Now, we allocate the 'even' turns, if there are any. if ( total_even_turns > 0 ) { min = Integer.MAX_VALUE; for (index = 0; index < orderedItems ; index++) { if ( num_even_turns[index] != 0 && num_even_turns[index] < min) min = num_even_turns[index]; } turns_left = total_even_turns; while (turns_left > 0) { for (index = 0; index < orderedItems; index++) { // If you have no turns here, skip if (num_even_turns[index] == 0) continue; // If you have less than twice the lowest, // move 1. Otherwise, move more. int ntm = num_even_turns[index] / min; for (int j = 0; j < ntm; j++) { turns.addEven(order[index]); num_even_turns[index]--; turns_left--; } } // Since the smallest unit count had to place 1, reduce min) min--; } // Handle the next 'even' turn } // End have-'even'-turns return turns; }
|
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/f4a72f650dc986645cb9c7ceba68b40c099515a5/TurnOrdered.java/clean/megamek/src/megamek/common/TurnOrdered.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
22425,
21680,
2103,
15858,
2448,
12,
5589,
331,
16,
467,
12496,
7920,
262,
565,
288,
565,
509,
8526,
818,
67,
16728,
67,
20922,
87,
273,
394,
509,
63,
90,
18,
1467,
1435,
15533,
565,
509,
8526,
818,
67,
6130,
67,
20922,
87,
273,
394,
509,
63,
90,
18,
1467,
1435,
15533,
6647,
509,
2078,
67,
16728,
67,
20922,
87,
273,
374,
31,
565,
509,
2078,
67,
6130,
67,
20922,
87,
273,
374,
31,
565,
509,
770,
31,
3639,
22425,
16756,
8526,
1353,
273,
394,
22425,
16756,
63,
90,
18,
1467,
1435,
15533,
3639,
509,
5901,
3126,
273,
374,
31,
3639,
532,
18,
16924,
18,
6290,
18,
1367,
18,
19246,
18,
19558,
21074,
273,
540,
394,
532,
18,
16924,
18,
6290,
18,
1367,
18,
19246,
18,
19558,
12,
90,
18,
1467,
10663,
3639,
364,
261,
21847,
277,
273,
331,
18,
6274,
5621,
277,
18,
5332,
7417,
3471,
5621,
13,
288,
5411,
1033,
761,
273,
277,
18,
4285,
1046,
5621,
5411,
21074,
18,
1289,
12,
1726,
1769,
3639,
289,
3639,
532,
18,
16924,
18,
6290,
18,
1367,
18,
19246,
18,
15150,
18,
3804,
12,
17842,
16,
394,
532,
18,
16924,
18,
6290,
18,
1367,
18,
19246,
18,
5559,
1435,
288,
5411,
1071,
509,
3400,
12,
921,
320,
21,
16,
1033,
320,
22,
13,
288,
7734,
327,
14015,
15858,
16756,
13,
83,
21,
2934,
588,
2570,
77,
1535,
7675,
9877,
774,
12443,
12,
15858,
16756,
13,
83,
22,
2934,
588,
2570,
77,
1535,
10663,
5411,
289,
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,
760,
22425,
21680,
2103,
15858,
2448,
12,
5589,
331,
16,
467,
12496,
7920,
262,
565,
288,
565,
509,
8526,
818,
67,
16728,
67,
20922,
87,
273,
394,
509,
63,
90,
18,
1467,
1435,
15533,
565,
509,
8526,
818,
67,
6130,
67,
20922,
87,
273,
394,
509,
63,
90,
18,
1467,
1435,
15533,
6647,
509,
2078,
67,
16728,
67,
20922,
87,
273,
374,
31,
565,
509,
2078,
67,
6130,
67,
20922,
87,
273,
374,
31,
565,
509,
770,
31,
3639,
22425,
16756,
8526,
1353,
273,
394,
22425,
16756,
63,
90,
18,
1467,
1435,
15533,
3639,
509,
5901,
3126,
273,
374,
31,
3639,
532,
18,
16924,
18,
6290,
18,
1367,
18,
19246,
18,
19558,
21074,
273,
540,
394,
532,
2
] |
asm.emitLAddrOffset(JTOC, S0, VM_Entrypoints.sysTOCField.getOffset()); asm.emitLAddrOffset(0, S0, target.getOffset()); asm.emitMTCTR(0); asm.emitBCCTRL(); asm.emitLAddr(JTOC, linkageAreaSize - BYTES_IN_STACKSLOT, FP); asm.emitADDI (FP, linkageAreaSize, FP);
|
asm.emitLAddrOffset(S0, S0, target.getOffset()); generateSysCall(parametersSize);
|
private void generateSysCall(int parametersSize, VM_Field target) { int linkageAreaSize = parametersSize + BYTES_IN_STACKSLOT + (6 * BYTES_IN_STACKSLOT); if (VM.BuildFor32Addr) { asm.emitSTWU (FP, -linkageAreaSize, FP); // create linkage area } else { asm.emitSTDU (FP, -linkageAreaSize, FP); // create linkage area } asm.emitSTAddr(JTOC, linkageAreaSize-BYTES_IN_STACKSLOT, FP); // save JTOC // acquire toc and ip from bootrecord asm.emitLAddrToc(S0, VM_Entrypoints.the_boot_recordField.getOffset()); asm.emitLAddrOffset(JTOC, S0, VM_Entrypoints.sysTOCField.getOffset()); asm.emitLAddrOffset(0, S0, target.getOffset()); // call it asm.emitMTCTR(0); asm.emitBCCTRL(); // cleanup asm.emitLAddr(JTOC, linkageAreaSize - BYTES_IN_STACKSLOT, FP); // restore JTOC asm.emitADDI (FP, linkageAreaSize, FP); // remove linkage area }
|
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/d3efd9c24977277753634612e8923180e9ccb604/VM_Compiler.java/buggy/rvm/src/vm/arch/powerPC/compilers/baseline/VM_Compiler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
2103,
12712,
1477,
12,
474,
1472,
1225,
16,
8251,
67,
974,
1018,
13,
288,
565,
509,
1692,
410,
5484,
1225,
282,
273,
1472,
1225,
397,
26214,
67,
706,
67,
21971,
55,
1502,
56,
397,
261,
26,
380,
26214,
67,
706,
67,
21971,
55,
1502,
56,
1769,
565,
309,
261,
7397,
18,
3116,
1290,
1578,
3178,
13,
288,
1377,
20415,
18,
18356,
882,
59,
57,
261,
30246,
16,
225,
300,
1232,
410,
5484,
1225,
16,
28740,
1769,
3639,
368,
752,
1692,
410,
5091,
565,
289,
469,
288,
1377,
20415,
18,
18356,
882,
16214,
261,
30246,
16,
225,
300,
1232,
410,
5484,
1225,
16,
28740,
1769,
3639,
368,
752,
1692,
410,
5091,
565,
289,
565,
20415,
18,
18356,
882,
3178,
12,
46,
4296,
39,
16,
1692,
410,
5484,
1225,
17,
13718,
67,
706,
67,
21971,
55,
1502,
56,
16,
28740,
1769,
1377,
368,
1923,
804,
4296,
39,
565,
368,
10533,
17919,
471,
2359,
628,
4835,
3366,
565,
20415,
18,
18356,
48,
3178,
56,
504,
12,
55,
20,
16,
8251,
67,
1622,
4139,
18,
5787,
67,
7137,
67,
3366,
974,
18,
588,
2335,
10663,
565,
20415,
18,
18356,
48,
3178,
2335,
12,
46,
4296,
39,
16,
348,
20,
16,
8251,
67,
1622,
4139,
18,
9499,
4296,
39,
974,
18,
588,
2335,
10663,
565,
20415,
18,
18356,
48,
3178,
2335,
12,
20,
16,
348,
20,
16,
1018,
18,
588,
2335,
10663,
565,
368,
745,
518,
565,
20415,
18,
18356,
6152,
23876,
12,
20,
1769,
565,
20415,
18,
18356,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
2103,
12712,
1477,
12,
474,
1472,
1225,
16,
8251,
67,
974,
1018,
13,
288,
565,
509,
1692,
410,
5484,
1225,
282,
273,
1472,
1225,
397,
26214,
67,
706,
67,
21971,
55,
1502,
56,
397,
261,
26,
380,
26214,
67,
706,
67,
21971,
55,
1502,
56,
1769,
565,
309,
261,
7397,
18,
3116,
1290,
1578,
3178,
13,
288,
1377,
20415,
18,
18356,
882,
59,
57,
261,
30246,
16,
225,
300,
1232,
410,
5484,
1225,
16,
28740,
1769,
3639,
368,
752,
1692,
410,
5091,
565,
289,
469,
288,
1377,
20415,
18,
18356,
882,
16214,
261,
30246,
16,
225,
300,
1232,
410,
5484,
1225,
16,
28740,
1769,
3639,
368,
752,
1692,
410,
5091,
565,
289,
565,
20415,
18,
18356,
2
] |
public long createId(IRubyObject object) { synchronized (identities) { cleanIdentities(); maxId += 2; identities.put(Long.valueOf(maxId), new IdReference(object, maxId, deadIdentityReferences)); return maxId; }
|
private Long createId(IRubyObject object) { cleanIdentities(); maxId += 2; Long longMaxId = new Long(maxId); identities.put(longMaxId, new IdReference(object, maxId, deadIdentityReferences)); identitiesByObject.put(object, longMaxId); return longMaxId;
|
public long createId(IRubyObject object) { synchronized (identities) { cleanIdentities(); maxId += 2; // id must always be even identities.put(Long.valueOf(maxId), new IdReference(object, maxId, deadIdentityReferences)); return maxId; } }
|
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/250878be8c9efe07e17604ffe3f6f53c3d98a3e1/ObjectSpace.java/buggy/src/org/jruby/runtime/ObjectSpace.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1525,
752,
548,
12,
7937,
10340,
921,
733,
13,
288,
3639,
3852,
261,
6392,
1961,
13,
288,
5411,
2721,
20746,
5621,
5411,
943,
548,
1011,
576,
31,
368,
612,
1297,
3712,
506,
5456,
5411,
17230,
18,
458,
12,
3708,
18,
1132,
951,
12,
1896,
548,
3631,
394,
3124,
2404,
12,
1612,
16,
943,
548,
16,
8363,
4334,
8221,
10019,
5411,
327,
943,
548,
31,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1525,
752,
548,
12,
7937,
10340,
921,
733,
13,
288,
3639,
3852,
261,
6392,
1961,
13,
288,
5411,
2721,
20746,
5621,
5411,
943,
548,
1011,
576,
31,
368,
612,
1297,
3712,
506,
5456,
5411,
17230,
18,
458,
12,
3708,
18,
1132,
951,
12,
1896,
548,
3631,
394,
3124,
2404,
12,
1612,
16,
943,
548,
16,
8363,
4334,
8221,
10019,
5411,
327,
943,
548,
31,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
namespaceURI, prefix)); } else { return null; }
|
namespaceURI, prefix, this.factory), this.factory);
|
public Attr createAttributeNS(String namespaceURI, String qualifiedName) throws DOMException { if (!namespaceURI.equals(OMConstants.XMLNS_NS_URI)) { String localName = DOMUtil.getLocalName(qualifiedName); String prefix = DOMUtil.getPrefix(qualifiedName); this.checkQName(prefix, localName); return new AttrImpl(this, localName, new NamespaceImpl( namespaceURI, prefix)); } else { // Do nothing since we handle the 'xmlns:' internally return null; } }
|
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/46a014bae8b3bdea6efef1d984a295027545ce0c/DocumentImpl.java/buggy/modules/doom/src/org/apache/axis2/om/impl/dom/DocumentImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
11289,
752,
1499,
3156,
12,
780,
19421,
16,
514,
24133,
13,
5411,
1216,
4703,
503,
288,
3639,
309,
16051,
4937,
3098,
18,
14963,
12,
1872,
2918,
18,
4201,
3156,
67,
3156,
67,
3098,
3719,
288,
5411,
514,
11927,
273,
4703,
1304,
18,
588,
29583,
12,
19724,
461,
1769,
5411,
514,
1633,
273,
4703,
1304,
18,
588,
2244,
12,
19724,
461,
1769,
5411,
333,
18,
1893,
13688,
12,
3239,
16,
11927,
1769,
5411,
327,
394,
11289,
2828,
12,
2211,
16,
11927,
16,
394,
6005,
2828,
12,
10792,
19421,
16,
1633,
10019,
3639,
289,
469,
288,
5411,
368,
2256,
5083,
3241,
732,
1640,
326,
296,
16741,
2497,
12963,
5411,
327,
446,
31,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
11289,
752,
1499,
3156,
12,
780,
19421,
16,
514,
24133,
13,
5411,
1216,
4703,
503,
288,
3639,
309,
16051,
4937,
3098,
18,
14963,
12,
1872,
2918,
18,
4201,
3156,
67,
3156,
67,
3098,
3719,
288,
5411,
514,
11927,
273,
4703,
1304,
18,
588,
29583,
12,
19724,
461,
1769,
5411,
514,
1633,
273,
4703,
1304,
18,
588,
2244,
12,
19724,
461,
1769,
5411,
333,
18,
1893,
13688,
12,
3239,
16,
11927,
1769,
5411,
327,
394,
11289,
2828,
12,
2211,
16,
11927,
16,
394,
6005,
2828,
12,
10792,
19421,
16,
1633,
10019,
3639,
289,
469,
288,
5411,
368,
2256,
5083,
3241,
732,
1640,
326,
296,
16741,
2497,
12963,
5411,
327,
446,
31,
3639,
289,
565,
289,
2,
-100,
-100,
-100
] |
public ASTStringLiteral(Parser p, int id)
|
public ASTStringLiteral(int id)
|
public ASTStringLiteral(Parser p, int id) { super(p, id); }
|
55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/033936552d3b460bb5bb99a0018efc61082702ad/ASTStringLiteral.java/buggy/src/java/org/apache/velocity/runtime/parser/node/ASTStringLiteral.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9183,
28565,
12,
474,
612,
13,
565,
288,
3639,
2240,
12,
84,
16,
612,
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,
9183,
28565,
12,
474,
612,
13,
565,
288,
3639,
2240,
12,
84,
16,
612,
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
] |
hide();
|
setVisible(false);
|
public SelectionDialog() { super(); setTitle("Display Modes"); modes = getAvailableDisplayModes(); String[] strings = modesToString(modes); final JList modeList = new JList(strings); modeList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); modeList.setSelectedIndex(0); JScrollPane scroller = new JScrollPane(modeList); getContentPane().setLayout(new BorderLayout()); JPanel panel = new JPanel(); panel.setLayout(new BorderLayout()); panel.add(new JLabel("Select full-screen display mode,"), BorderLayout.NORTH); panel.add(new JLabel("or Cancel for windowed mode:"), BorderLayout.CENTER); getContentPane().add(BorderLayout.NORTH, panel); getContentPane().add(BorderLayout.CENTER, scroller); JPanel buttonPanel = new JPanel(); buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.X_AXIS)); buttonPanel.add(Box.createGlue()); JButton button = new JButton("OK"); button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { selectedIndex = modeList.getSelectedIndex(); done = true; synchronized(monitor) { monitor.notify(); } hide(); dispose(); } }); buttonPanel.add(button); buttonPanel.add(Box.createHorizontalStrut(10)); button = new JButton("Cancel"); button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { selectedIndex = -1; done = true; synchronized(monitor) { monitor.notify(); } hide(); dispose(); } }); buttonPanel.add(button); buttonPanel.add(Box.createGlue()); getContentPane().add(BorderLayout.SOUTH, buttonPanel); setSize(300, 200); center(this, Toolkit.getDefaultToolkit().getScreenSize()); }
|
6495 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6495/0f6b7600e0b236cd5d42750ebd1421dcf76ca1ae/ScreenResSelector.java/clean/src/demos/util/ScreenResSelector.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
12977,
6353,
1435,
288,
1377,
2240,
5621,
1377,
14109,
2932,
4236,
490,
1145,
8863,
1377,
12382,
273,
15796,
4236,
18868,
5621,
1377,
514,
8526,
2064,
273,
12382,
5808,
12,
19282,
1769,
1377,
727,
804,
682,
1965,
682,
273,
394,
804,
682,
12,
10219,
1769,
1377,
1965,
682,
18,
542,
6233,
2309,
12,
682,
6233,
1488,
18,
20184,
67,
1090,
15445,
1769,
1377,
1965,
682,
18,
542,
7416,
1016,
12,
20,
1769,
1377,
804,
26360,
888,
1539,
273,
394,
804,
26360,
12,
3188,
682,
1769,
1377,
5154,
8485,
7675,
542,
3744,
12,
2704,
30814,
10663,
1377,
24048,
6594,
273,
394,
24048,
5621,
1377,
6594,
18,
542,
3744,
12,
2704,
30814,
10663,
1377,
6594,
18,
1289,
12,
2704,
21403,
2932,
3391,
1983,
17,
9252,
2562,
1965,
10837,
3631,
30814,
18,
50,
28212,
1769,
1377,
6594,
18,
1289,
12,
2704,
21403,
2932,
280,
10347,
364,
2742,
329,
1965,
2773,
3631,
377,
30814,
18,
19835,
1769,
1377,
5154,
8485,
7675,
1289,
12,
8107,
3744,
18,
50,
28212,
16,
6594,
1769,
1377,
5154,
8485,
7675,
1289,
12,
8107,
3744,
18,
19835,
16,
888,
1539,
1769,
1377,
24048,
3568,
5537,
273,
394,
24048,
5621,
1377,
3568,
5537,
18,
542,
3744,
12,
2704,
8549,
3744,
12,
5391,
5537,
16,
8549,
3744,
18,
60,
67,
25614,
10019,
1377,
3568,
5537,
18,
1289,
12,
3514,
18,
2640,
21308,
344,
10663,
1377,
28804,
3568,
273,
394,
28804,
2932,
3141,
8863,
1377,
3568,
18,
1289,
1803,
2223,
12,
2704,
25962,
1435,
288,
1850,
1071,
918,
26100,
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,
12977,
6353,
1435,
288,
1377,
2240,
5621,
1377,
14109,
2932,
4236,
490,
1145,
8863,
1377,
12382,
273,
15796,
4236,
18868,
5621,
1377,
514,
8526,
2064,
273,
12382,
5808,
12,
19282,
1769,
1377,
727,
804,
682,
1965,
682,
273,
394,
804,
682,
12,
10219,
1769,
1377,
1965,
682,
18,
542,
6233,
2309,
12,
682,
6233,
1488,
18,
20184,
67,
1090,
15445,
1769,
1377,
1965,
682,
18,
542,
7416,
1016,
12,
20,
1769,
1377,
804,
26360,
888,
1539,
273,
394,
804,
26360,
12,
3188,
682,
1769,
1377,
5154,
8485,
7675,
542,
3744,
12,
2704,
30814,
10663,
1377,
24048,
6594,
273,
394,
24048,
5621,
1377,
6594,
18,
542,
3744,
12,
2704,
30814,
10663,
1377,
6594,
18,
1289,
12,
2704,
21403,
2
] |
setCustomProperties(server, getProductInfo(props));
|
setCustomProperties(server, info);
|
private ServerResource getWin32Server() throws PluginException { String[] products = { "GSX Server", "Server" }; String path = null; for (int i=0; i<products.length; i++) { RegistryKey key = null; try { key = RegistryKey.LocalMachine.openSubKey(getProductKey(products[i])); path = key.getStringValue("InstallPath").trim(); break; } catch (Win32Exception e) { continue; } finally { if (key != null) { key.close(); } } } if (path == null) { return null; } Properties props = new Properties(); props.setProperty(VMwareConnectParams.PROP_AUTHD_PORT, VMwareConnectParams.DEFAULT_AUTHD_PORT); ServerResource server = createServerResource(path); server.setProductConfig(new ConfigResponse(props)); server.setMeasurementConfig(); setCustomProperties(server, getProductInfo(props)); return server; }
|
52591 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52591/5b9af4378527b62707b23fc10719b0bce345fbb6/VMwareDetector.java/clean/plugins/vmware/src/org/hyperic/hq/plugin/vmware/VMwareDetector.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3224,
1420,
13876,
267,
1578,
2081,
1435,
3639,
1216,
6258,
503,
288,
3639,
514,
8526,
10406,
273,
288,
5411,
315,
16113,
60,
3224,
3113,
315,
2081,
6,
3639,
289,
31,
3639,
514,
589,
273,
446,
31,
3639,
364,
261,
474,
277,
33,
20,
31,
277,
32,
18736,
18,
2469,
31,
277,
27245,
288,
5411,
5438,
653,
498,
273,
446,
31,
5411,
775,
288,
7734,
498,
273,
10792,
5438,
653,
18,
2042,
6981,
18,
3190,
1676,
653,
12,
588,
4133,
653,
12,
18736,
63,
77,
5717,
1769,
7734,
589,
273,
498,
18,
588,
19733,
2932,
6410,
743,
20387,
5290,
5621,
7734,
898,
31,
5411,
289,
1044,
261,
18049,
1578,
503,
425,
13,
288,
7734,
1324,
31,
5411,
289,
3095,
288,
7734,
309,
261,
856,
480,
446,
13,
288,
10792,
498,
18,
4412,
5621,
7734,
289,
5411,
289,
3639,
289,
3639,
309,
261,
803,
422,
446,
13,
288,
5411,
327,
446,
31,
3639,
289,
3639,
6183,
3458,
273,
394,
6183,
5621,
3639,
3458,
18,
542,
1396,
12,
7397,
2726,
5215,
1370,
18,
15811,
67,
7131,
40,
67,
6354,
16,
12900,
29433,
5215,
1370,
18,
5280,
67,
7131,
40,
67,
6354,
1769,
3639,
3224,
1420,
1438,
273,
30920,
1420,
12,
803,
1769,
3639,
1438,
18,
542,
4133,
809,
12,
2704,
1903,
1064,
12,
9693,
10019,
3639,
1438,
18,
542,
17933,
809,
5621,
3639,
26723,
2297,
12,
3567,
16,
1123,
1769,
3639,
327,
1438,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3224,
1420,
13876,
267,
1578,
2081,
1435,
3639,
1216,
6258,
503,
288,
3639,
514,
8526,
10406,
273,
288,
5411,
315,
16113,
60,
3224,
3113,
315,
2081,
6,
3639,
289,
31,
3639,
514,
589,
273,
446,
31,
3639,
364,
261,
474,
277,
33,
20,
31,
277,
32,
18736,
18,
2469,
31,
277,
27245,
288,
5411,
5438,
653,
498,
273,
446,
31,
5411,
775,
288,
7734,
498,
273,
10792,
5438,
653,
18,
2042,
6981,
18,
3190,
1676,
653,
12,
588,
4133,
653,
12,
18736,
63,
77,
5717,
1769,
7734,
589,
273,
498,
18,
588,
19733,
2932,
6410,
743,
20387,
5290,
5621,
7734,
898,
31,
5411,
289,
1044,
261,
18049,
1578,
503,
425,
13,
288,
7734,
1324,
31,
5411,
289,
2
] |
throw new RangeError(runtime, inspect().toString() + " out of range.");
|
throw new RangeError(getRuntime(), inspect().toString() + " out of range.");
|
public long[] getBeginLength(long limit, boolean truncate, boolean isStrict) { long beginLong = RubyNumeric.num2long(begin); long endLong = RubyNumeric.num2long(end); if (! isExclusive) { endLong++; } if (beginLong < 0) { beginLong += limit; if (beginLong < 0) { if (isStrict) { throw new RangeError(runtime, inspect().toString() + " out of range."); } return null; } } if (truncate && beginLong > limit) { if (isStrict) { throw new RangeError(runtime, inspect().toString() + " out of range."); } return null; } if (truncate && endLong > limit) { endLong = limit; } if (endLong < 0 || (!isExclusive && endLong == 0)) { endLong += limit; if (endLong < 0) { if (isStrict) { throw new RangeError(runtime, inspect().toString() + " out of range."); } return null; } } if (beginLong > endLong) { if (isStrict) { throw new RangeError(runtime, inspect().toString() + " out of range."); } return null; } return new long[] { beginLong, endLong - beginLong }; }
|
47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyRange.java/buggy/src/org/jruby/RubyRange.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1525,
8526,
25282,
1782,
12,
5748,
1800,
16,
1250,
10310,
16,
1250,
353,
14809,
13,
288,
3639,
1525,
2376,
3708,
273,
19817,
9902,
18,
2107,
22,
5748,
12,
10086,
1769,
3639,
1525,
679,
3708,
273,
19817,
9902,
18,
2107,
22,
5748,
12,
409,
1769,
3639,
309,
16051,
353,
17075,
13,
288,
5411,
679,
3708,
9904,
31,
3639,
289,
3639,
309,
261,
10086,
3708,
411,
374,
13,
288,
5411,
2376,
3708,
1011,
1800,
31,
5411,
309,
261,
10086,
3708,
411,
374,
13,
288,
7734,
309,
261,
291,
14809,
13,
288,
10792,
604,
394,
8086,
668,
12,
588,
5576,
9334,
5334,
7675,
10492,
1435,
397,
315,
596,
434,
1048,
1199,
1769,
7734,
289,
7734,
327,
446,
31,
5411,
289,
3639,
289,
3639,
309,
261,
27201,
597,
2376,
3708,
405,
1800,
13,
288,
5411,
309,
261,
291,
14809,
13,
288,
7734,
604,
394,
8086,
668,
12,
588,
5576,
9334,
5334,
7675,
10492,
1435,
397,
315,
596,
434,
1048,
1199,
1769,
5411,
289,
5411,
327,
446,
31,
3639,
289,
3639,
309,
261,
27201,
597,
679,
3708,
405,
1800,
13,
288,
5411,
679,
3708,
273,
1800,
31,
3639,
289,
202,
202,
430,
261,
409,
3708,
411,
374,
225,
747,
16051,
291,
17075,
597,
679,
3708,
422,
374,
3719,
288,
1082,
202,
409,
3708,
1011,
1800,
31,
1082,
202,
430,
261,
409,
3708,
411,
374,
13,
288,
9506,
202,
430,
261,
291,
14809,
13,
288,
6862,
202,
12849,
394,
8086,
668,
12,
9448,
16,
5334,
7675,
10492,
1435,
397,
315,
596,
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,
1525,
8526,
25282,
1782,
12,
5748,
1800,
16,
1250,
10310,
16,
1250,
353,
14809,
13,
288,
3639,
1525,
2376,
3708,
273,
19817,
9902,
18,
2107,
22,
5748,
12,
10086,
1769,
3639,
1525,
679,
3708,
273,
19817,
9902,
18,
2107,
22,
5748,
12,
409,
1769,
3639,
309,
16051,
353,
17075,
13,
288,
5411,
679,
3708,
9904,
31,
3639,
289,
3639,
309,
261,
10086,
3708,
411,
374,
13,
288,
5411,
2376,
3708,
1011,
1800,
31,
5411,
309,
261,
10086,
3708,
411,
374,
13,
288,
7734,
309,
261,
291,
14809,
13,
288,
10792,
604,
394,
8086,
668,
12,
588,
5576,
9334,
5334,
7675,
10492,
1435,
397,
315,
596,
434,
1048,
1199,
1769,
7734,
289,
7734,
327,
446,
31,
5411,
289,
2
] |
if (!destroyed.containsKey(scopename) && !(requesttype.equals(EarlyRequestParser.RENDER_REQUEST) || managers[i].getAlwaysPreserve()) ) {
|
if (!destroyed.containsKey(scopename) && (!requesttype.equals(EarlyRequestParser.RENDER_REQUEST) || managers[i].getAlwaysPreserve())) {
|
public void preserve(BeanLocator source) { String requesttype = requesttypeproxy.get(); for (int i = 0; i < managers.length; ++i) { String scopename = managers[i].getScopeName(); // preserve *if* it was not destroyed, and *if* it is a render request, // ONLY if the manager was set to "always preserve" if (!destroyed.containsKey(scopename) && !(requesttype.equals(EarlyRequestParser.RENDER_REQUEST) || managers[i].getAlwaysPreserve()) ) { strategies[i].preserve(source, scopename); } } }
|
49142 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49142/bdbae4afe02edac8674f624d49a9ede46c5422d4/ScopedBeanCoordinator.java/clean/src/uk/org/ponder/rsf/state/scope/ScopedBeanCoordinator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
9420,
12,
3381,
5786,
1084,
13,
288,
565,
514,
590,
723,
273,
590,
723,
5656,
18,
588,
5621,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
21103,
18,
2469,
31,
965,
77,
13,
288,
1377,
514,
888,
556,
1069,
273,
21103,
63,
77,
8009,
588,
3876,
461,
5621,
1377,
368,
9420,
380,
430,
14,
518,
1703,
486,
17689,
16,
471,
380,
430,
14,
518,
353,
279,
1743,
590,
16,
1377,
368,
20747,
309,
326,
3301,
1703,
444,
358,
315,
17737,
9420,
6,
1377,
309,
16051,
11662,
329,
18,
12298,
653,
12,
1017,
556,
1069,
13,
597,
6647,
401,
12,
2293,
723,
18,
14963,
12,
41,
20279,
691,
2678,
18,
25230,
67,
5519,
13,
1850,
747,
21103,
63,
77,
8009,
588,
18806,
12236,
6527,
10756,
262,
288,
3639,
20417,
63,
77,
8009,
27297,
12,
3168,
16,
888,
556,
1069,
1769,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
9420,
12,
3381,
5786,
1084,
13,
288,
565,
514,
590,
723,
273,
590,
723,
5656,
18,
588,
5621,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
21103,
18,
2469,
31,
965,
77,
13,
288,
1377,
514,
888,
556,
1069,
273,
21103,
63,
77,
8009,
588,
3876,
461,
5621,
1377,
368,
9420,
380,
430,
14,
518,
1703,
486,
17689,
16,
471,
380,
430,
14,
518,
353,
279,
1743,
590,
16,
1377,
368,
20747,
309,
326,
3301,
1703,
444,
358,
315,
17737,
9420,
6,
1377,
309,
16051,
11662,
329,
18,
12298,
653,
12,
1017,
556,
1069,
13,
597,
6647,
401,
12,
2293,
723,
18,
14963,
12,
41,
20279,
691,
2678,
18,
25230,
67,
5519,
13,
1850,
2
] |
}
|
public Node getAccessNode(String id) { id = id.intern(); if (id.charAt(0) == '#') { // Special variable or constant id = id.substring(1).intern(); if (id == "self") { return nf.newSelf(); } else if (id == "nil") { return nf.newNil(); } else if (id == "true") { return nf.newTrue(); } else if (id == "false") { return nf.newFalse(); } else if (id == "__FILE__") { return nf.newStr(RubyString.newString(ruby, ruby.getSourceFile())); } else if (id == "__LINE__") { return nf.newLit(RubyFixnum.newFixnum(ruby, ruby.getSourceLine())); } } else { if (IdUtil.isLocal(id)) { if (dyna_in_block() && RubyVarmap.isDefined(ruby, id)) { return nf.newDVar(id); } else if (isLocalRegistered(id)) { return nf.newLVar(id); } /* * method call without arguments */ return nf.newVCall(id); } else if (IdUtil.isGlobal(id)) { return nf.newGVar(id); } else if (IdUtil.isInstanceVariable(id)) { return nf.newIVar(id); } else if (IdUtil.isConstant(id)) { return nf.newConst(id); } else if (IdUtil.isClassVariable(id)) { if (isInSingle()) { return nf.newCVar2(id); } return nf.newCVar(id); } } rb_bug("Invalid id '" + id + "' for getAccessNode."); return null; }
|
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/d31a76ee29d5978a9bec41e3ac9134cee024bcab/ParserHelper.java/buggy/org/jruby/parser/ParserHelper.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2029,
21909,
907,
12,
780,
612,
13,
288,
3639,
612,
273,
612,
18,
267,
798,
5621,
3639,
309,
261,
350,
18,
3001,
861,
12,
20,
13,
422,
2946,
6134,
288,
5411,
368,
13409,
2190,
578,
5381,
5411,
612,
273,
612,
18,
28023,
12,
21,
2934,
267,
798,
5621,
5411,
309,
261,
350,
422,
315,
2890,
7923,
288,
7734,
327,
13958,
18,
2704,
10084,
5621,
2398,
469,
309,
261,
350,
422,
315,
20154,
7923,
288,
7734,
327,
13958,
18,
2704,
12616,
5621,
2398,
469,
309,
261,
350,
422,
315,
3767,
7923,
288,
7734,
327,
13958,
18,
2704,
5510,
5621,
2398,
469,
309,
261,
350,
422,
315,
5743,
7923,
288,
7734,
327,
13958,
18,
2704,
8381,
5621,
2398,
469,
309,
261,
350,
422,
10425,
3776,
972,
7923,
288,
7734,
327,
13958,
18,
2704,
1585,
12,
54,
10340,
780,
18,
2704,
780,
12,
27768,
16,
22155,
18,
588,
31150,
1435,
10019,
2398,
469,
309,
261,
350,
422,
10425,
5997,
972,
7923,
288,
7734,
327,
13958,
18,
2704,
23707,
12,
54,
10340,
8585,
2107,
18,
2704,
8585,
2107,
12,
27768,
16,
22155,
18,
588,
1830,
1670,
1435,
10019,
5397,
469,
288,
5411,
309,
261,
548,
1304,
18,
291,
2042,
12,
350,
3719,
288,
7734,
309,
261,
72,
23041,
67,
267,
67,
2629,
1435,
597,
19817,
1537,
1458,
18,
291,
8116,
12,
27768,
16,
612,
3719,
288,
10792,
327,
13958,
18,
2704,
40,
1537,
12,
350,
1769,
1171,
469,
309,
261,
291,
2042,
10868,
12,
350,
3719,
288,
10792,
327,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2029,
21909,
907,
12,
780,
612,
13,
288,
3639,
612,
273,
612,
18,
267,
798,
5621,
3639,
309,
261,
350,
18,
3001,
861,
12,
20,
13,
422,
2946,
6134,
288,
5411,
368,
13409,
2190,
578,
5381,
5411,
612,
273,
612,
18,
28023,
12,
21,
2934,
267,
798,
5621,
5411,
309,
261,
350,
422,
315,
2890,
7923,
288,
7734,
327,
13958,
18,
2704,
10084,
5621,
2398,
469,
309,
261,
350,
422,
315,
20154,
7923,
288,
7734,
327,
13958,
18,
2704,
12616,
5621,
2398,
469,
309,
261,
350,
422,
315,
3767,
7923,
288,
7734,
327,
13958,
18,
2704,
5510,
5621,
2398,
469,
309,
261,
350,
422,
315,
5743,
7923,
288,
7734,
327,
13958,
18,
2704,
8381,
5621,
2398,
469,
2
] |
|
return sorter;
|
if (sorter instanceof ViewerSorter) return (ViewerSorter)sorter; return null;
|
public ViewerSorter getSorter() { return sorter; }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/0208d56a7074a697c69fc2d27296bb9893549406/StructuredViewer.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/StructuredViewer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4441,
264,
24952,
1322,
4975,
1435,
288,
202,
202,
2463,
19867,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4441,
264,
24952,
1322,
4975,
1435,
288,
202,
202,
2463,
19867,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
case IIndexConstants.ENUM_SUFFIX :
|
case IndexerOutput.ENUM_SUFFIX :
|
private int getElementType(char decodedType) { switch (decodedType) { case IIndexConstants.CLASS_SUFFIX : return ICElement.C_CLASS; case IIndexConstants.STRUCT_SUFFIX : return ICElement.C_STRUCT; case IIndexConstants.TYPEDEF_SUFFIX : return ICElement.C_TYPEDEF; case IIndexConstants.ENUM_SUFFIX : return ICElement.C_ENUMERATION; case IIndexConstants.UNION_SUFFIX : return ICElement.C_UNION; } return 0; }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/cf1d5bf0d12520585deffeb5e217fc8ff5159112/IndexerTypesJob.java/buggy/core/org.eclipse.cdt.core/browser/org/eclipse/cdt/internal/core/browser/cache/IndexerTypesJob.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
7426,
559,
12,
3001,
6383,
559,
13,
288,
202,
202,
9610,
261,
26646,
559,
13,
288,
1082,
202,
3593,
467,
1016,
2918,
18,
5237,
67,
14964,
294,
9506,
202,
2463,
26899,
1046,
18,
39,
67,
5237,
31,
1082,
202,
3593,
467,
1016,
2918,
18,
13915,
67,
14964,
294,
9506,
202,
2463,
26899,
1046,
18,
39,
67,
13915,
31,
1082,
202,
3593,
467,
1016,
2918,
18,
2399,
12904,
67,
14964,
294,
9506,
202,
2463,
26899,
1046,
18,
39,
67,
2399,
12904,
31,
1082,
202,
3593,
467,
1016,
2918,
18,
16509,
67,
14964,
294,
9506,
202,
2463,
26899,
1046,
18,
39,
67,
16509,
654,
2689,
31,
1082,
202,
3593,
467,
1016,
2918,
18,
2124,
1146,
67,
14964,
294,
9506,
202,
2463,
26899,
1046,
18,
39,
67,
2124,
1146,
31,
202,
202,
97,
202,
202,
2463,
374,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
7426,
559,
12,
3001,
6383,
559,
13,
288,
202,
202,
9610,
261,
26646,
559,
13,
288,
1082,
202,
3593,
467,
1016,
2918,
18,
5237,
67,
14964,
294,
9506,
202,
2463,
26899,
1046,
18,
39,
67,
5237,
31,
1082,
202,
3593,
467,
1016,
2918,
18,
13915,
67,
14964,
294,
9506,
202,
2463,
26899,
1046,
18,
39,
67,
13915,
31,
1082,
202,
3593,
467,
1016,
2918,
18,
2399,
12904,
67,
14964,
294,
9506,
202,
2463,
26899,
1046,
18,
39,
67,
2399,
12904,
31,
1082,
202,
3593,
467,
1016,
2918,
18,
16509,
67,
14964,
294,
9506,
202,
2463,
26899,
1046,
18,
39,
67,
16509,
654,
2689,
31,
1082,
202,
3593,
467,
1016,
2918,
18,
2124,
1146,
67,
14964,
2
] |
if (isZoomed() && partChangeAffectsZoom(view))
|
if (isZoomed() && partChangeAffectsZoom(ref))
|
public void addFastView(IViewPart view) { Perspective persp = getActivePerspective(); if (persp == null) return; // If view is zoomed unzoom. if (isZoomed() && partChangeAffectsZoom(view)) zoomOut(); // Do real work. persp.addFastView(view); // The view is now invisible. // If it is active then deactivate it. if (view == activePart) { activate(activationList.getActive()); } // Notify listeners. window.getShortcutBar().update(true); window.firePerspectiveChanged(this, getPerspective(), CHANGE_FAST_VIEW_ADD);}
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/234570228ea456ece089ff59b2b055ff81273d9b/WorkbenchPage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
527,
12305,
1767,
12,
45,
1767,
1988,
1476,
13,
288,
202,
14781,
16772,
13508,
84,
273,
11960,
14781,
16772,
5621,
202,
430,
261,
10422,
84,
422,
446,
13,
202,
202,
2463,
31,
1082,
202,
759,
971,
1476,
353,
7182,
329,
640,
14932,
18,
202,
430,
261,
291,
11497,
329,
1435,
597,
1087,
3043,
37,
3736,
87,
11497,
12,
1945,
3719,
202,
202,
14932,
1182,
5621,
202,
759,
2256,
2863,
1440,
18,
202,
202,
10422,
84,
18,
1289,
12305,
1767,
12,
1945,
1769,
202,
759,
1021,
1476,
353,
2037,
24697,
18,
202,
759,
971,
518,
353,
2695,
1508,
18790,
518,
18,
202,
430,
261,
1945,
422,
2695,
1988,
13,
288,
202,
202,
10014,
12,
16908,
682,
18,
588,
3896,
10663,
202,
97,
1082,
202,
759,
10918,
4679,
18,
202,
5668,
18,
588,
15576,
5190,
7675,
2725,
12,
3767,
1769,
202,
5668,
18,
12179,
14781,
16772,
5033,
12,
2211,
16,
1689,
414,
16772,
9334,
26267,
67,
2046,
882,
67,
12145,
67,
8355,
1769,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
527,
12305,
1767,
12,
45,
1767,
1988,
1476,
13,
288,
202,
14781,
16772,
13508,
84,
273,
11960,
14781,
16772,
5621,
202,
430,
261,
10422,
84,
422,
446,
13,
202,
202,
2463,
31,
1082,
202,
759,
971,
1476,
353,
7182,
329,
640,
14932,
18,
202,
430,
261,
291,
11497,
329,
1435,
597,
1087,
3043,
37,
3736,
87,
11497,
12,
1945,
3719,
202,
202,
14932,
1182,
5621,
202,
759,
2256,
2863,
1440,
18,
202,
202,
10422,
84,
18,
1289,
12305,
1767,
12,
1945,
1769,
202,
759,
1021,
1476,
353,
2037,
24697,
18,
202,
759,
971,
518,
353,
2695,
1508,
18790,
518,
18,
202,
430,
261,
1945,
422,
2695,
1988,
13,
288,
202,
202,
10014,
12,
16908,
682,
18,
588,
2
] |
public void setBounds (int x, int y, int w, int h);
|
void setBounds(int x, int y, int width, int height);
|
public void setBounds (int x, int y, int w, int h);
|
1043 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1043/42de8277e53eabea04a48598c12ed6d488412a7b/ComponentPeer.java/buggy/libjava/java/awt/peer/ComponentPeer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
5694,
261,
474,
619,
16,
509,
677,
16,
509,
341,
16,
509,
366,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
5694,
261,
474,
619,
16,
509,
677,
16,
509,
341,
16,
509,
366,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (!currentP.identical(previousP))
|
Permissions tmpDetails = new Permissions(previousP); if (currentP.isSet(Flag.LOCKED)) { tmpDetails.set(Flag.LOCKED); } else { tmpDetails.unSet(Flag.LOCKED); } if (!currentP.identical(tmpDetails))
|
protected boolean managedPermissions(boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // setup boolean altered = false; Permissions previousP = previousDetails == null ? null : previousDetails.getPermissions(); Permissions currentP = currentDetails == null ? null : currentDetails .getPermissions(); // ignore newDetails permissions. // If the stored perms are null, then we can't validate anything // TODO : is this alright. Should only happen for system types. // Then can silently ignore ?? if (previousP == null) { if (currentP == null) { newDetails.setPermissions(null); altered |= false; // don't need to update } else { newDetails.setPermissions(currentP); altered = true; } } // WORKAROUND for ticket:307 by checking for SOFT below // see https://trac.openmicroscopy.org.uk/omero/ticket/307 // see // http://opensource.atlassian.com/projects/hibernate/browse/HHH-2027 // Users did not enter permission (normal case) so is null OR // in the workaround permissions is SOFT, then // need to copy whole sale those from database. else if (currentP == null || currentP.isSet(Flag.SOFT)) { newDetails.setPermissions(previousP); altered = true; } // if the user has set the permissions (currentDetails), then we should // try to allow that. if it's identical to the current, then there // is no reason to hit the DB. else { // if we need to filter any permissions, do it here! newDetails.setPermissions(currentP); if (!currentP.identical(previousP)) { if ( ! isOwnerOrSupervisor(obj)) // TODO and privileged? if not, remove from below?? throw new SecurityViolation(String.format( "You are not authorized to change " + "the permissions for %s from %s to %s", obj, previousP, currentP)); altered = true; } } // now we've calculated the desired permissions, throw // a security violation if this instance was locked AND // the read permissions have been lowered or if the lock // was removed. if (locked) { if (previousP == null) // if null it can't have been locked. throw new InternalException("Null permissions cannot be locked"); Permissions calculatedP = newDetails.getPermissions(); if (calculatedP != null) { // can't override if ( ! calculatedP.isSet( Flag.LOCKED )) { calculatedP.set(Flag.LOCKED); altered = true; } if ((previousP.isGranted(USER, READ) && !calculatedP.isGranted(USER, READ)) || (previousP.isGranted(GROUP, READ) && !calculatedP .isGranted(GROUP, READ)) || (previousP.isGranted(WORLD, READ) && !calculatedP .isGranted(WORLD, READ))) throw new SecurityViolation( "Cannot remove READ from locked entity:" + obj); } } // privileged plays no role since everyone can alter their permissions // (within bounds) return altered; }
|
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/36bb3b3ff2057894b05b208ab4ef1b9ce950164a/BasicSecuritySystem.java/buggy/components/server/src/ome/security/basic/BasicSecuritySystem.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1250,
7016,
6521,
12,
6494,
8586,
16,
1250,
11334,
2423,
16,
1082,
202,
45,
921,
1081,
16,
21897,
2416,
3790,
16,
21897,
783,
3790,
16,
1082,
202,
3790,
394,
3790,
13,
288,
9506,
202,
759,
3875,
202,
202,
6494,
22349,
273,
629,
31,
202,
202,
6521,
2416,
52,
273,
2416,
3790,
422,
446,
692,
446,
9506,
202,
30,
2416,
3790,
18,
588,
6521,
5621,
202,
202,
6521,
783,
52,
273,
783,
3790,
422,
446,
692,
446,
294,
783,
3790,
9506,
202,
18,
588,
6521,
5621,
202,
202,
759,
2305,
394,
3790,
4371,
18,
9506,
202,
759,
971,
326,
4041,
13793,
854,
446,
16,
1508,
732,
848,
1404,
1954,
6967,
202,
202,
759,
2660,
294,
353,
333,
524,
4083,
18,
9363,
1338,
5865,
364,
2619,
1953,
18,
3196,
202,
759,
9697,
848,
22274,
2305,
5317,
202,
202,
430,
261,
11515,
52,
422,
446,
13,
288,
1082,
202,
430,
261,
2972,
52,
422,
446,
13,
288,
9506,
202,
2704,
3790,
18,
542,
6521,
12,
2011,
1769,
9506,
202,
22628,
329,
5626,
629,
31,
368,
2727,
1404,
1608,
358,
1089,
1082,
202,
97,
469,
288,
9506,
202,
2704,
3790,
18,
542,
6521,
12,
2972,
52,
1769,
9506,
202,
22628,
329,
273,
638,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
759,
17062,
985,
51,
5240,
364,
9322,
30,
5082,
27,
635,
6728,
364,
348,
3932,
56,
5712,
202,
202,
759,
2621,
2333,
2207,
313,
1077,
18,
3190,
14458,
1017,
1101,
18,
3341,
18,
19445,
19,
362,
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,
1250,
7016,
6521,
12,
6494,
8586,
16,
1250,
11334,
2423,
16,
1082,
202,
45,
921,
1081,
16,
21897,
2416,
3790,
16,
21897,
783,
3790,
16,
1082,
202,
3790,
394,
3790,
13,
288,
9506,
202,
759,
3875,
202,
202,
6494,
22349,
273,
629,
31,
202,
202,
6521,
2416,
52,
273,
2416,
3790,
422,
446,
692,
446,
9506,
202,
30,
2416,
3790,
18,
588,
6521,
5621,
202,
202,
6521,
783,
52,
273,
783,
3790,
422,
446,
692,
446,
294,
783,
3790,
9506,
202,
18,
588,
6521,
5621,
202,
202,
759,
2305,
394,
3790,
4371,
18,
9506,
202,
759,
971,
326,
4041,
13793,
854,
446,
16,
1508,
732,
848,
1404,
1954,
6967,
202,
202,
759,
2660,
294,
353,
333,
2
] |
protected int[] parse(String str, int[] date) throws Exception{
|
protected int[] parse(String str, int[] date) throws SchemaDateTimeException{
|
protected int[] parse(String str, int[] date) throws Exception{ resetBuffer(str); //create structure to hold an object if ( date== null ) { date=new int[TOTAL_SIZE]; } resetDateObj(date); if (fBuffer.charAt(0)!='-' || fBuffer.charAt(1)!='-' || fBuffer.charAt(2)!='-') { throw new Exception ("Error in day parsing"); } //initialize values date[CY]=YEAR; date[M]=MONTH; date[D]=parseInt(fStart+3,fStart+5); if ( DAY_SIZE<fEnd ) { int sign = findUTCSign(DAY_SIZE, fEnd); if ( sign<0 ) { throw new Exception ("Error in day parsing"); } else { getTimeZone(date, sign); } } //validate and normalize if ( !validateDateTime(date) ) { //REVISIT: error message? throw new Exception (); } else if ( date[utc]!=0 && date[utc]!='Z' ) { normalize(date); } return date; }
|
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/4e15daa59b432b97b7f93a5e7ff868021bef81ca/DayDatatypeValidator.java/buggy/src/org/apache/xerces/validators/datatype/DayDatatypeValidator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
509,
8526,
1109,
12,
780,
609,
16,
509,
8526,
1509,
13,
1216,
4611,
5096,
503,
95,
3639,
2715,
1892,
12,
701,
1769,
3639,
368,
2640,
3695,
358,
6887,
392,
733,
3639,
309,
261,
1509,
631,
446,
262,
288,
5411,
1509,
33,
2704,
509,
63,
28624,
67,
4574,
15533,
3639,
289,
3639,
2715,
1626,
2675,
12,
712,
1769,
3639,
309,
261,
74,
1892,
18,
3001,
861,
12,
20,
13,
5,
2218,
6627,
747,
284,
1892,
18,
3001,
861,
12,
21,
13,
5,
2218,
6627,
747,
284,
1892,
18,
3001,
861,
12,
22,
13,
5,
2218,
17,
6134,
288,
5411,
604,
394,
1185,
7566,
668,
316,
2548,
5811,
8863,
3639,
289,
3639,
368,
11160,
924,
540,
1509,
63,
16068,
65,
33,
15137,
31,
3639,
1509,
63,
49,
65,
33,
13942,
31,
7734,
1509,
63,
40,
65,
33,
2670,
1702,
12,
74,
1685,
15,
23,
16,
74,
1685,
15,
25,
1769,
3639,
309,
261,
11579,
67,
4574,
32,
74,
1638,
262,
288,
5411,
509,
1573,
273,
1104,
11471,
2766,
12,
10339,
67,
4574,
16,
284,
1638,
1769,
5411,
309,
261,
1573,
32,
20,
262,
288,
7734,
604,
394,
1185,
7566,
668,
316,
2548,
5811,
8863,
5411,
289,
5411,
469,
288,
7734,
28556,
12,
712,
16,
1573,
1769,
5411,
289,
3639,
289,
3639,
368,
5662,
471,
3883,
3639,
309,
261,
401,
5662,
5096,
12,
712,
13,
262,
288,
5411,
368,
862,
26780,
1285,
30,
555,
883,
35,
5411,
604,
394,
1185,
261,
1769,
3639,
289,
3639,
469,
309,
261,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
509,
8526,
1109,
12,
780,
609,
16,
509,
8526,
1509,
13,
1216,
4611,
5096,
503,
95,
3639,
2715,
1892,
12,
701,
1769,
3639,
368,
2640,
3695,
358,
6887,
392,
733,
3639,
309,
261,
1509,
631,
446,
262,
288,
5411,
1509,
33,
2704,
509,
63,
28624,
67,
4574,
15533,
3639,
289,
3639,
2715,
1626,
2675,
12,
712,
1769,
3639,
309,
261,
74,
1892,
18,
3001,
861,
12,
20,
13,
5,
2218,
6627,
747,
284,
1892,
18,
3001,
861,
12,
21,
13,
5,
2218,
6627,
747,
284,
1892,
18,
3001,
861,
12,
22,
13,
5,
2218,
17,
6134,
288,
5411,
604,
394,
1185,
7566,
668,
316,
2548,
5811,
8863,
3639,
289,
3639,
368,
11160,
924,
540,
1509,
63,
16068,
2
] |
excludeList.add( warSourceExcludes );
|
excludeList.addAll( Arrays.asList( StringUtils.split( warSourceExcludes, "," ) ) );
|
protected String[] getExcludes() { List excludeList = new ArrayList(); if ( StringUtils.isNotEmpty(warSourceExcludes) ) { excludeList.add( warSourceExcludes ); } // if webXML is specified, omit the one in the source directory if ( getWebXml() != null && !"".equals( getWebXml() ) ) { excludeList.add( "**/" + WEB_INF + "/web.xml" ); } return (String[]) excludeList.toArray( EMPTY_STRING_ARRAY ); }
|
7444 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7444/22d0764fdd52918b55488674ade7167262be9ae7/AbstractWarMojo.java/buggy/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
8526,
26246,
8993,
1435,
565,
288,
3639,
987,
4433,
682,
273,
394,
2407,
5621,
3639,
309,
261,
5778,
18,
291,
18431,
12,
905,
1830,
30866,
13,
262,
3639,
288,
5411,
4433,
682,
18,
1289,
1595,
12,
5647,
18,
345,
682,
12,
5778,
18,
4939,
12,
21983,
1830,
30866,
16,
5753,
262,
262,
11272,
3639,
289,
3639,
368,
309,
3311,
4201,
353,
1269,
16,
14088,
326,
1245,
316,
326,
1084,
1867,
3639,
309,
261,
20312,
4432,
1435,
480,
446,
597,
401,
3660,
18,
14963,
12,
20312,
4432,
1435,
262,
262,
3639,
288,
5411,
4433,
682,
18,
1289,
12,
28078,
4898,
397,
19877,
67,
19212,
397,
2206,
4875,
18,
2902,
6,
11272,
3639,
289,
3639,
327,
261,
780,
63,
5717,
4433,
682,
18,
31447,
12,
8984,
67,
5804,
67,
8552,
11272,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
8526,
26246,
8993,
1435,
565,
288,
3639,
987,
4433,
682,
273,
394,
2407,
5621,
3639,
309,
261,
5778,
18,
291,
18431,
12,
905,
1830,
30866,
13,
262,
3639,
288,
5411,
4433,
682,
18,
1289,
1595,
12,
5647,
18,
345,
682,
12,
5778,
18,
4939,
12,
21983,
1830,
30866,
16,
5753,
262,
262,
11272,
3639,
289,
3639,
368,
309,
3311,
4201,
353,
1269,
16,
14088,
326,
1245,
316,
326,
1084,
1867,
3639,
309,
261,
20312,
4432,
1435,
480,
446,
597,
401,
3660,
18,
14963,
12,
20312,
4432,
1435,
262,
262,
3639,
288,
5411,
4433,
682,
18,
1289,
12,
28078,
4898,
397,
19877,
67,
19212,
397,
2206,
4875,
18,
2902,
6,
11272,
3639,
289,
3639,
327,
261,
780,
2
] |
return _active; }
|
return _active; }
|
public boolean isActive() { return _active; }
|
45373 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45373/e4081f282ae2ddc9c22fc84cbce46d579a3ac0dc/HProcess.java/buggy/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HProcess.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
15083,
1435,
288,
565,
327,
389,
3535,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1250,
15083,
1435,
288,
565,
327,
389,
3535,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
printError("Exception getting item: " + e +"<br>");
|
printError("Exception getting item: " + e + "<br>");
|
private void listItem(Integer userId, ItemHome iHome) { Item item; Collection currentItemList, pastItemList; try { currentItemList = iHome.findUserCurrentSellings(userId); pastItemList = iHome.findUserPastSellings(userId); } catch (Exception e) { printError("Exception getting item list: " +e+"<br>"); return ; } if ((currentItemList == null) || (currentItemList.isEmpty())) { sp.printHTML("<br>"); sp.printHTMLHighlighted("<h3>You are currently selling no item.</h3>"); } else { // display current sellings sp.printSellHeader("Items you are currently selling."); Iterator it = currentItemList.iterator(); while (it.hasNext()) { // Get the name of the items try { item = (Item)it.next(); } catch (Exception e) { printError("Exception getting item: " + e +"<br>"); return; } // display information about the item sp.printSell(item); } sp.printItemFooter(); } if ((pastItemList == null) || (pastItemList.isEmpty())) { sp.printHTML("<br>"); sp.printHTMLHighlighted("<h3>You didn't sell any item.</h3>"); return ; } // display past sellings sp.printHTML("<br>"); sp.printSellHeader("Items you sold in the last 30 days."); Iterator it = pastItemList.iterator(); while (it.hasNext()) { // Get the name of the items try { item = (Item)it.next(); } catch (Exception e) { printError("Exception getting item: " + e +"<br>"); return; } // display information about the item sp.printSell(item); } sp.printItemFooter(); }
|
5750 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5750/3d57ae5a342bc10d6c418636c07193a0289ffd6b/AboutMe.java/buggy/EJB_EntityBean_id_BMP/edu/rice/rubis/beans/servlets/AboutMe.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
19859,
12,
4522,
6249,
16,
4342,
8684,
277,
8684,
13,
282,
288,
565,
4342,
4202,
761,
31,
565,
2200,
27471,
682,
16,
8854,
1180,
682,
31,
565,
775,
377,
288,
1377,
27471,
682,
273,
277,
8684,
18,
4720,
1299,
3935,
55,
1165,
899,
12,
18991,
1769,
1377,
8854,
1180,
682,
273,
277,
8684,
18,
4720,
1299,
52,
689,
55,
1165,
899,
12,
18991,
1769,
565,
289,
565,
1044,
261,
503,
425,
13,
565,
288,
1377,
1172,
668,
2932,
503,
8742,
761,
666,
30,
315,
397,
73,
9078,
32,
2848,
2984,
1769,
1377,
327,
274,
565,
289,
565,
309,
14015,
2972,
1180,
682,
422,
446,
13,
747,
261,
2972,
1180,
682,
18,
291,
1921,
1435,
3719,
565,
288,
1377,
1694,
18,
1188,
4870,
2932,
32,
2848,
2984,
1769,
1377,
1694,
18,
1188,
4870,
16205,
329,
2932,
32,
76,
23,
34,
6225,
854,
4551,
357,
2456,
1158,
761,
17347,
76,
23,
2984,
1769,
565,
289,
565,
469,
565,
288,
1377,
368,
2562,
783,
357,
11603,
1377,
1694,
18,
1188,
55,
1165,
1864,
2932,
3126,
1846,
854,
4551,
357,
2456,
1199,
1769,
1377,
4498,
518,
273,
27471,
682,
18,
9838,
5621,
1377,
1323,
261,
305,
18,
5332,
2134,
10756,
4202,
288,
3639,
368,
968,
326,
508,
434,
326,
1516,
3639,
775,
3639,
288,
1850,
761,
273,
261,
1180,
13,
305,
18,
4285,
5621,
3639,
289,
3639,
1044,
261,
503,
425,
13,
540,
288,
1850,
1172,
668,
2932,
503,
8742,
761,
30,
315,
397,
425,
397,
3532,
2848,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
19859,
12,
4522,
6249,
16,
4342,
8684,
277,
8684,
13,
282,
288,
565,
4342,
4202,
761,
31,
565,
2200,
27471,
682,
16,
8854,
1180,
682,
31,
565,
775,
377,
288,
1377,
27471,
682,
273,
277,
8684,
18,
4720,
1299,
3935,
55,
1165,
899,
12,
18991,
1769,
1377,
8854,
1180,
682,
273,
277,
8684,
18,
4720,
1299,
52,
689,
55,
1165,
899,
12,
18991,
1769,
565,
289,
565,
1044,
261,
503,
425,
13,
565,
288,
1377,
1172,
668,
2932,
503,
8742,
761,
666,
30,
315,
397,
73,
9078,
32,
2848,
2984,
1769,
1377,
327,
274,
565,
289,
565,
309,
14015,
2972,
1180,
682,
422,
446,
13,
747,
261,
2972,
1180,
682,
18,
291,
1921,
1435,
3719,
565,
2
] |
logger = Logger.getMyLogger(this.getClass().getName());
|
logger = Logger.getMyLogger(this.getClass().getName());
|
protected void setup() throws SQLException { logger = Logger.getMyLogger(this.getClass().getName()); try { conn.setAutoCommit(false); // deactivate auto commit for better performance } catch (Exception e) { if(logger.isLoggable(Logger.WARNING)) { logger.log(Logger.WARNING, "Disabling auto-commit failed."); } } if (cleanTables) // drop all existing tables for the DF if required dropDFTables(); createDFTables(); initPrepStmts(); clean(); }
|
5505 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5505/8c4f78f4921829745c21a78c3cdccdca50fdb10b/DFDBKB.java/clean/src/jade/domain/DFDBKB.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
3875,
1435,
1216,
6483,
288,
202,
202,
4901,
273,
4242,
18,
588,
12062,
3328,
12,
2211,
18,
588,
797,
7675,
17994,
10663,
1082,
3639,
775,
288,
1377,
1487,
18,
542,
4965,
5580,
12,
5743,
1769,
368,
18790,
3656,
3294,
364,
7844,
9239,
565,
289,
1044,
261,
503,
425,
13,
288,
1377,
309,
12,
4901,
18,
291,
1343,
8455,
12,
3328,
18,
9511,
3719,
288,
3639,
1194,
18,
1330,
12,
3328,
18,
9511,
16,
315,
1669,
17912,
3656,
17,
7371,
2535,
1199,
1769,
1377,
289,
565,
289,
3639,
309,
261,
6200,
6905,
13,
368,
3640,
777,
2062,
4606,
364,
326,
463,
42,
309,
1931,
1377,
3640,
40,
4464,
1538,
5621,
565,
752,
40,
4464,
1538,
5621,
565,
1208,
15543,
8952,
87,
5621,
202,
202,
6200,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
3875,
1435,
1216,
6483,
288,
202,
202,
4901,
273,
4242,
18,
588,
12062,
3328,
12,
2211,
18,
588,
797,
7675,
17994,
10663,
1082,
3639,
775,
288,
1377,
1487,
18,
542,
4965,
5580,
12,
5743,
1769,
368,
18790,
3656,
3294,
364,
7844,
9239,
565,
289,
1044,
261,
503,
425,
13,
288,
1377,
309,
12,
4901,
18,
291,
1343,
8455,
12,
3328,
18,
9511,
3719,
288,
3639,
1194,
18,
1330,
12,
3328,
18,
9511,
16,
315,
1669,
17912,
3656,
17,
7371,
2535,
1199,
1769,
1377,
289,
565,
289,
3639,
309,
261,
6200,
6905,
13,
368,
3640,
777,
2062,
4606,
364,
326,
463,
42,
309,
1931,
1377,
3640,
40,
4464,
1538,
5621,
565,
752,
40,
4464,
1538,
5621,
2
] |
else if (vc > getColumnCount()) return -1;
|
public int convertColumnIndexToModel(int vc) { if (vc < 0) return vc; else if (vc > getColumnCount()) return -1; else return columnModel.getColumn(vc).getModelIndex(); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/JTable.java/buggy/core/src/classpath/javax/javax/swing/JTable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
1765,
21689,
774,
1488,
12,
474,
12802,
13,
225,
288,
565,
309,
261,
4227,
411,
374,
13,
1377,
327,
12802,
31,
565,
469,
309,
261,
4227,
405,
6716,
1380,
10756,
1377,
327,
300,
21,
31,
565,
469,
1377,
327,
1057,
1488,
18,
588,
1494,
12,
4227,
2934,
588,
1488,
1016,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
509,
1765,
21689,
774,
1488,
12,
474,
12802,
13,
225,
288,
565,
309,
261,
4227,
411,
374,
13,
1377,
327,
12802,
31,
565,
469,
309,
261,
4227,
405,
6716,
1380,
10756,
1377,
327,
300,
21,
31,
565,
469,
1377,
327,
1057,
1488,
18,
588,
1494,
12,
4227,
2934,
588,
1488,
1016,
5621,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
}
|
} else if (other instanceof RubyNumeric) { long x = getLongValue(); long y = ((RubyNumeric) other).getLongValue(); long mod = x % y; if (mod < 0 && y > 0 || mod > 0 && y < 0) { mod += y; } return getRuntime().newFixnum(mod); }
|
public RubyNumeric op_mod(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_mod(other); } else if (other instanceof RubyBignum) { return RubyBignum.newBignum(getRuntime(), getLongValue()).op_mod(other); } // Java / and % are not the same as ruby long x = getLongValue(); long y = other.getLongValue(); long mod = x % y; if (mod < 0 && y > 0 || mod > 0 && y < 0) { mod += y; } return getRuntime().newFixnum(mod); }
|
49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/803c66ee682936beecc8a43fe2cfc90fe5645b22/RubyFixnum.java/buggy/src/org/jruby/RubyFixnum.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
9902,
1061,
67,
1711,
12,
54,
10340,
9902,
1308,
13,
288,
3639,
309,
261,
3011,
1276,
19817,
4723,
13,
288,
5411,
327,
19817,
4723,
18,
2704,
4723,
12,
588,
5576,
9334,
16097,
620,
1435,
2934,
556,
67,
1711,
12,
3011,
1769,
3639,
289,
469,
309,
261,
3011,
1276,
19817,
9902,
13,
288,
225,
1525,
619,
273,
11105,
620,
5621,
1525,
677,
273,
14015,
54,
10340,
9902,
13,
1308,
2934,
588,
3708,
620,
5621,
1525,
681,
273,
619,
738,
677,
31,
225,
309,
261,
1711,
411,
374,
597,
677,
405,
374,
747,
681,
405,
374,
597,
677,
411,
374,
13,
288,
681,
1011,
677,
31,
289,
225,
327,
18814,
7675,
2704,
8585,
2107,
12,
1711,
1769,
289,
469,
309,
261,
3011,
1276,
19817,
38,
724,
379,
13,
288,
5411,
327,
19817,
38,
724,
379,
18,
2704,
38,
724,
379,
12,
588,
5576,
9334,
11105,
620,
1435,
2934,
556,
67,
1711,
12,
3011,
1769,
3639,
289,
469,
309,
261,
3011,
1276,
19817,
9902,
13,
288,
225,
1525,
619,
273,
11105,
620,
5621,
1525,
677,
273,
14015,
54,
10340,
9902,
13,
1308,
2934,
588,
3708,
620,
5621,
1525,
681,
273,
619,
738,
677,
31,
225,
309,
261,
1711,
411,
374,
597,
677,
405,
374,
747,
681,
405,
374,
597,
677,
411,
374,
13,
288,
681,
1011,
677,
31,
289,
225,
327,
18814,
7675,
2704,
8585,
2107,
12,
1711,
1769,
289,
1850,
202,
565,
368,
5110,
342,
471,
738,
854,
486,
326,
1967,
487,
22155,
3639,
1525,
619,
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,
19817,
9902,
1061,
67,
1711,
12,
54,
10340,
9902,
1308,
13,
288,
3639,
309,
261,
3011,
1276,
19817,
4723,
13,
288,
5411,
327,
19817,
4723,
18,
2704,
4723,
12,
588,
5576,
9334,
16097,
620,
1435,
2934,
556,
67,
1711,
12,
3011,
1769,
3639,
289,
469,
309,
261,
3011,
1276,
19817,
9902,
13,
288,
225,
1525,
619,
273,
11105,
620,
5621,
1525,
677,
273,
14015,
54,
10340,
9902,
13,
1308,
2934,
588,
3708,
620,
5621,
1525,
681,
273,
619,
738,
677,
31,
225,
309,
261,
1711,
411,
374,
597,
677,
405,
374,
747,
681,
405,
374,
597,
677,
411,
374,
13,
288,
681,
1011,
677,
31,
289,
225,
327,
18814,
7675,
2704,
8585,
2107,
12,
1711,
1769,
289,
2
] |
if( mackageDesc.getType() == MackageDesc.CASING_TYPE )
|
if( mackageDesc.getType() == MackageDesc.CASING_TYPE || mackageDesc.getType() == MackageDesc.TRANSFORM_BASE_TYPE)
|
public Vector<Vector> generateRows(Object settings){ MackageDesc[] mackageDescs = (MackageDesc[]) settings; Vector<Vector> allRows = new Vector<Vector>(mackageDescs.length); Vector tempRow = null; int rowIndex = 0; for( MackageDesc mackageDesc : mackageDescs ){ if( mackageDesc.getType() == MackageDesc.CASING_TYPE ) continue; try{ rowIndex++; tempRow = new Vector(7); tempRow.add( rowIndex ); byte[] orgIcon = mackageDesc.getOrgIcon(); byte[] descIcon = mackageDesc.getDescIcon(); if( orgIcon != null) tempRow.add( new ImageIcon(orgIcon) ); else tempRow.add( new ImageIcon(getClass().getResource("/com/metavize/gui/transform/IconOrgUnknown42x42.png"))) ; if( descIcon != null) tempRow.add( new ImageIcon(descIcon) ); else tempRow.add( new ImageIcon(getClass().getResource("/com/metavize/gui/transform/IconDescUnknown42x42.png"))) ; tempRow.add( mackageDesc.getDisplayName() ); tempRow.add( mackageDesc.getAvailableVersion() ); if( mackageDesc.getType() == MackageDesc.SYSTEM_TYPE ) tempRow.add( "System Component" ); else if( mackageDesc.getType() == MackageDesc.TRANSFORM_TYPE ) tempRow.add( "Software Appliance" ); else tempRow.add( "Unknown" ); tempRow.add( Integer.toString(mackageDesc.getSize()/1000)); tempRow.add( mackageDesc.getLongDescription() ); allRows.add( tempRow ); } catch(Exception e){ e.printStackTrace(); } } return allRows; }
|
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/4d9033636d375c5e79a2bb9db2872c68ae1499a4/UpgradeJDialog.java/clean/gui/main/com/metavize/gui/upgrade/UpgradeJDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5589,
32,
5018,
34,
2103,
4300,
12,
921,
1947,
15329,
3639,
490,
1270,
4217,
8526,
312,
1270,
4217,
87,
273,
261,
49,
1270,
4217,
63,
5717,
1947,
31,
3639,
5589,
32,
5018,
34,
777,
4300,
273,
394,
5589,
32,
5018,
34,
12,
81,
1270,
4217,
87,
18,
2469,
1769,
202,
5018,
1906,
1999,
273,
446,
31,
202,
474,
15361,
273,
374,
31,
3639,
364,
12,
490,
1270,
4217,
312,
1270,
4217,
294,
312,
1270,
4217,
87,
262,
95,
5411,
309,
12,
312,
1270,
4217,
18,
588,
559,
1435,
422,
490,
1270,
4217,
18,
20221,
1360,
67,
2399,
747,
312,
1270,
4217,
18,
588,
559,
1435,
422,
490,
1270,
4217,
18,
16596,
4983,
67,
8369,
67,
2399,
13,
7734,
1324,
31,
202,
565,
775,
95,
202,
202,
492,
1016,
9904,
31,
202,
202,
5814,
1999,
273,
394,
5589,
12,
27,
1769,
202,
202,
5814,
1999,
18,
1289,
12,
15361,
11272,
9506,
202,
7229,
8526,
2358,
5554,
273,
312,
1270,
4217,
18,
588,
6001,
5554,
5621,
202,
202,
7229,
8526,
3044,
5554,
273,
312,
1270,
4217,
18,
588,
4217,
5554,
5621,
202,
202,
430,
12,
2358,
5554,
480,
446,
13,
1082,
565,
1906,
1999,
18,
1289,
12,
394,
3421,
5554,
12,
3341,
5554,
13,
11272,
202,
202,
12107,
1082,
565,
1906,
1999,
18,
1289,
12,
394,
3421,
5554,
12,
588,
797,
7675,
588,
1420,
2932,
19,
832,
19,
10578,
842,
554,
19,
20292,
19,
6547,
19,
5554,
6001,
4874,
9452,
92,
9452,
18,
6446,
6,
20349,
274,
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,
5589,
32,
5018,
34,
2103,
4300,
12,
921,
1947,
15329,
3639,
490,
1270,
4217,
8526,
312,
1270,
4217,
87,
273,
261,
49,
1270,
4217,
63,
5717,
1947,
31,
3639,
5589,
32,
5018,
34,
777,
4300,
273,
394,
5589,
32,
5018,
34,
12,
81,
1270,
4217,
87,
18,
2469,
1769,
202,
5018,
1906,
1999,
273,
446,
31,
202,
474,
15361,
273,
374,
31,
3639,
364,
12,
490,
1270,
4217,
312,
1270,
4217,
294,
312,
1270,
4217,
87,
262,
95,
5411,
309,
12,
312,
1270,
4217,
18,
588,
559,
1435,
422,
490,
1270,
4217,
18,
20221,
1360,
67,
2399,
747,
312,
1270,
4217,
18,
588,
559,
1435,
422,
490,
1270,
4217,
18,
16596,
4983,
67,
8369,
67,
2399,
13,
2
] |
} else { readFields(obj, currentObjectStreamClass);
|
public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); this.isDeserializing = true; byte marker = this.realInputStream.readByte(); depth += 2; if(dump) dumpElement("MARKER: 0x" + Integer.toHexString(marker) + " "); try { switch (marker) { case TC_ENDBLOCKDATA: { ret_val = null; is_consumed = true; break; } case TC_BLOCKDATA: case TC_BLOCKDATALONG: { if (marker == TC_BLOCKDATALONG) { if(dump) dumpElementln("BLOCKDATALONG"); } else { if(dump) dumpElementln("BLOCKDATA"); } readNextBlock(marker); throw new StreamCorruptedException("Unexpected blockData"); } case TC_NULL: { if(dump) dumpElementln("NULL"); ret_val = null; break; } case TC_REFERENCE: { if(dump) dumpElement("REFERENCE "); Integer oid = new Integer(this.realInputStream.readInt()); if(dump) dumpElementln(Integer.toHexString(oid.intValue())); ret_val = ((ObjectIdentityWrapper) this.objectLookupTable.get(oid)).object; break; } case TC_CLASS: { if(dump) dumpElementln("CLASS"); ObjectStreamClass osc = (ObjectStreamClass)readObject(); Class clazz = osc.forClass(); assignNewHandle(clazz); ret_val = clazz; break; } case TC_PROXYCLASSDESC: { if(dump) dumpElementln("PROXYCLASS"); int n_intf = this.realInputStream.readInt(); String[] intfs = new String[n_intf]; for (int i = 0; i < n_intf; i++) { intfs[i] = this.realInputStream.readUTF(); System.out.println(intfs[i]); } boolean oldmode = setBlockDataMode(true); Class cl = resolveProxyClass(intfs); setBlockDataMode(oldmode); ObjectStreamClass osc = lookupClass(cl); assignNewHandle(osc); if (!is_consumed) { byte b = this.realInputStream.readByte(); if (b != TC_ENDBLOCKDATA) throw new IOException("Data annotated to class was not consumed." + b); } else is_consumed = false; ObjectStreamClass superosc = (ObjectStreamClass)readObject(); osc.setSuperclass(superosc); ret_val = osc; break; } case TC_CLASSDESC: { ObjectStreamClass osc = readClassDescriptor(); if (!is_consumed) { byte b = this.realInputStream.readByte(); if (b != TC_ENDBLOCKDATA) throw new IOException("Data annotated to class was not consumed." + b); } else is_consumed = false; osc.setSuperclass ((ObjectStreamClass)readObject()); ret_val = osc; break; } case TC_STRING: case TC_LONGSTRING: { if(dump) dumpElement("STRING="); String s = this.realInputStream.readUTF(); if(dump) dumpElementln(s); ret_val = processResolution(null, s, assignNewHandle(s)); break; } case TC_ARRAY: { if(dump) dumpElementln("ARRAY"); ObjectStreamClass osc = (ObjectStreamClass)readObject(); Class componentType = osc.forClass().getComponentType(); if(dump) dumpElement("ARRAY LENGTH="); int length = this.realInputStream.readInt(); if(dump) dumpElementln (length + "; COMPONENT TYPE=" + componentType); Object array = Array.newInstance(componentType, length); int handle = assignNewHandle(array); readArrayElements(array, componentType); if(dump) for (int i = 0, len = Array.getLength(array); i < len; i++) dumpElementln(" ELEMENT[" + i + "]=" + Array.get(array, i)); ret_val = processResolution(null, array, handle); break; } case TC_OBJECT: { if(dump) dumpElementln("OBJECT"); ObjectStreamClass osc = (ObjectStreamClass)readObject(); Class clazz = osc.forClass(); if (!osc.realClassIsSerializable) throw new NotSerializableException (clazz + " is not Serializable, and thus cannot be deserialized."); if (osc.realClassIsExternalizable) { Externalizable obj = osc.newInstance(); int handle = assignNewHandle(obj); boolean read_from_blocks = ((osc.getFlags() & SC_BLOCK_DATA) != 0); boolean oldmode = this.readDataFromBlock; if (read_from_blocks) setBlockDataMode(true); obj.readExternal(this); if (read_from_blocks) setBlockDataMode(oldmode); ret_val = processResolution(osc, obj, handle); break; } // end if (osc.realClassIsExternalizable) Object obj = newObject(clazz, osc.firstNonSerializableParent); int handle = assignNewHandle(obj); Object prevObject = this.currentObject; ObjectStreamClass prevObjectStreamClass = this.currentObjectStreamClass; this.currentObject = obj; ObjectStreamClass[] hierarchy = inputGetObjectStreamClasses(clazz); for (int i = 0; i < hierarchy.length; i++) { this.currentObjectStreamClass = hierarchy[i]; if(dump) dumpElementln("Reading fields of " + this.currentObjectStreamClass.getName ()); // XXX: should initialize fields in classes in the hierarchy // that aren't in the stream // should skip over classes in the stream that aren't in the // real classes hierarchy Method readObjectMethod = this.currentObjectStreamClass.readObjectMethod; if (readObjectMethod != null) { fieldsAlreadyRead = false; boolean oldmode = setBlockDataMode(true); callReadMethod(readObjectMethod, this.currentObjectStreamClass.forClass(), obj); setBlockDataMode(oldmode); if(dump) dumpElement("ENDBLOCKDATA? "); try { // FIXME: XXX: This try block is to // catch EOF which is thrown for some // objects. That indicates a bug in // the logic. if (this.realInputStream.readByte() != TC_ENDBLOCKDATA) throw new IOException ("No end of block data seen for class with readObject (ObjectInputStream) method."); if(dump) dumpElementln("yes"); }// catch (EOFException e)// {// if(dump) dumpElementln("no, got EOFException");// } catch (IOException e) { if(dump) dumpElementln("no, got IOException"); } } else { readFields(obj, currentObjectStreamClass); } } this.currentObject = prevObject; this.currentObjectStreamClass = prevObjectStreamClass; ret_val = processResolution(osc, obj, handle); break; } case TC_RESET: if(dump) dumpElementln("RESET"); clearHandles(); ret_val = readObject(); break; case TC_EXCEPTION: { if(dump) dumpElement("EXCEPTION="); Exception e = (Exception)readObject(); if(dump) dumpElementln(e.toString()); clearHandles(); throw new WriteAbortedException("Exception thrown during writing of stream", e); } default: throw new IOException("Unknown marker on stream: " + marker); } } finally { setBlockDataMode(old_mode); this.isDeserializing = was_deserializing; depth -= 2; if (! was_deserializing) { if (validators.size() > 0) invokeValidators(); } } return ret_val; }
|
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/5010eb9d728b725099593398d276e914d9a1970f/ObjectInputStream.java/buggy/libraries/javalib/java/io/ObjectInputStream.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
1033,
17362,
1435,
1216,
10403,
16,
1860,
225,
288,
565,
309,
261,
2211,
18,
1202,
1676,
1106,
1305,
13,
1377,
327,
17362,
6618,
5621,
565,
1250,
1703,
67,
5489,
24662,
6894,
31,
565,
1033,
325,
67,
1125,
31,
565,
1703,
67,
5489,
24662,
6894,
273,
333,
18,
291,
20765,
6894,
31,
565,
1250,
353,
67,
24268,
273,
629,
31,
565,
1250,
1592,
67,
3188,
273,
444,
1768,
751,
2309,
12,
5743,
1769,
565,
333,
18,
291,
20765,
6894,
273,
638,
31,
565,
1160,
5373,
273,
333,
18,
7688,
4348,
18,
896,
3216,
5621,
565,
3598,
1011,
576,
31,
565,
309,
12,
8481,
13,
4657,
1046,
2932,
25989,
30,
374,
92,
6,
397,
2144,
18,
869,
14866,
12,
11145,
13,
397,
315,
315,
1769,
565,
775,
1377,
288,
202,
9610,
261,
11145,
13,
202,
225,
288,
202,
225,
648,
23718,
67,
1157,
2290,
6589,
4883,
30,
202,
565,
288,
202,
1377,
325,
67,
1125,
273,
446,
31,
202,
1377,
353,
67,
24268,
273,
638,
31,
202,
1377,
898,
31,
202,
565,
289,
202,
225,
648,
23718,
67,
11403,
4883,
30,
202,
225,
648,
23718,
67,
11403,
11102,
1013,
7390,
30,
202,
565,
288,
202,
1377,
309,
261,
11145,
422,
23718,
67,
11403,
11102,
1013,
7390,
13,
202,
202,
95,
309,
12,
8481,
13,
4657,
1046,
2370,
2932,
11403,
11102,
1013,
7390,
8863,
289,
202,
1377,
469,
202,
202,
95,
309,
12,
8481,
13,
4657,
1046,
2370,
2932,
11403,
4883,
8863,
289,
202,
1377,
855,
2134,
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,
727,
1033,
17362,
1435,
1216,
10403,
16,
1860,
225,
288,
565,
309,
261,
2211,
18,
1202,
1676,
1106,
1305,
13,
1377,
327,
17362,
6618,
5621,
565,
1250,
1703,
67,
5489,
24662,
6894,
31,
565,
1033,
325,
67,
1125,
31,
565,
1703,
67,
5489,
24662,
6894,
273,
333,
18,
291,
20765,
6894,
31,
565,
1250,
353,
67,
24268,
273,
629,
31,
565,
1250,
1592,
67,
3188,
273,
444,
1768,
751,
2309,
12,
5743,
1769,
565,
333,
18,
291,
20765,
6894,
273,
638,
31,
565,
1160,
5373,
273,
333,
18,
7688,
4348,
18,
896,
3216,
5621,
565,
3598,
1011,
576,
31,
565,
309,
12,
8481,
13,
4657,
1046,
2932,
25989,
30,
374,
92,
6,
397,
2144,
18,
869,
14866,
2
] |
|
w.endElement();
|
w.endElement();
|
private void writeBody( FileWriter writer, MojoDescriptor mojoDescriptor ) { XMLWriter w = new PrettyPrintXMLWriter( writer ); w.startElement( "document" ); // ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- w.startElement( "properties" ); w.startElement( "title" ); // TODO: need a friendly name for a plugin w.writeText( mojoDescriptor.getPluginDescriptor().getArtifactId() + " - " + mojoDescriptor.getFullGoalName() ); w.endElement(); w.endElement(); // ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- w.startElement( "body" ); w.startElement( "section" ); w.addAttribute( "name", mojoDescriptor.getFullGoalName() ); w.startElement( "p" ); if ( mojoDescriptor.getDescription() != null ) { w.writeMarkup( mojoDescriptor.getDescription() ); } else { w.writeText( "No description." ); } w.endElement(); w.startElement( "p" ); w.writeText( "Parameters for the goal: " ); w.endElement(); writeGoalParameterTable( mojoDescriptor, w ); w.endElement(); w.endElement(); }
|
1315 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1315/76d49b7d7be734d97e5e9357a6a84d8d60ef02fe/PluginXdocGenerator.java/buggy/maven-plugin-tools/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/generator/PluginXdocGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1045,
2250,
12,
24639,
2633,
16,
15931,
3187,
312,
10007,
3187,
262,
565,
288,
3639,
3167,
2289,
341,
273,
394,
22328,
5108,
4201,
2289,
12,
2633,
11272,
3639,
341,
18,
1937,
1046,
12,
315,
5457,
6,
11272,
3639,
368,
8879,
13465,
3639,
368,
3639,
368,
8879,
13465,
3639,
341,
18,
1937,
1046,
12,
315,
4738,
6,
11272,
3639,
341,
18,
1937,
1046,
12,
315,
2649,
6,
11272,
3639,
368,
2660,
30,
1608,
279,
13118,
508,
364,
279,
1909,
3639,
341,
18,
2626,
1528,
12,
312,
10007,
3187,
18,
588,
3773,
3187,
7675,
588,
7581,
548,
1435,
397,
315,
300,
315,
397,
312,
10007,
3187,
18,
588,
5080,
27716,
461,
1435,
11272,
3639,
341,
18,
409,
1046,
5621,
3639,
341,
18,
409,
1046,
5621,
3639,
368,
8879,
13465,
3639,
368,
3639,
368,
8879,
13465,
3639,
341,
18,
1937,
1046,
12,
315,
3432,
6,
11272,
3639,
341,
18,
1937,
1046,
12,
315,
3464,
6,
11272,
3639,
341,
18,
1289,
1499,
12,
315,
529,
3113,
312,
10007,
3187,
18,
588,
5080,
27716,
461,
1435,
11272,
3639,
341,
18,
1937,
1046,
12,
315,
84,
6,
11272,
3639,
309,
261,
312,
10007,
3187,
18,
588,
3291,
1435,
480,
446,
262,
3639,
288,
5411,
341,
18,
2626,
13111,
12,
312,
10007,
3187,
18,
588,
3291,
1435,
11272,
3639,
289,
3639,
469,
3639,
288,
5411,
341,
18,
2626,
1528,
12,
315,
2279,
2477,
1199,
11272,
3639,
289,
3639,
341,
18,
409,
1046,
5621,
3639,
341,
18,
1937,
1046,
12,
315,
84,
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,
1045,
2250,
12,
24639,
2633,
16,
15931,
3187,
312,
10007,
3187,
262,
565,
288,
3639,
3167,
2289,
341,
273,
394,
22328,
5108,
4201,
2289,
12,
2633,
11272,
3639,
341,
18,
1937,
1046,
12,
315,
5457,
6,
11272,
3639,
368,
8879,
13465,
3639,
368,
3639,
368,
8879,
13465,
3639,
341,
18,
1937,
1046,
12,
315,
4738,
6,
11272,
3639,
341,
18,
1937,
1046,
12,
315,
2649,
6,
11272,
3639,
368,
2660,
30,
1608,
279,
13118,
508,
364,
279,
1909,
3639,
341,
18,
2626,
1528,
12,
312,
10007,
3187,
18,
588,
3773,
3187,
7675,
588,
7581,
548,
1435,
397,
315,
300,
315,
397,
312,
10007,
3187,
18,
588,
5080,
27716,
461,
1435,
11272,
3639,
341,
18,
409,
1046,
2
] |
final boolean shouldPerform(OPT_Options options) {
|
public final boolean shouldPerform(OPT_Options options) {
|
final boolean shouldPerform(OPT_Options options) { return true; }
|
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/09f65db3d8a6f13275e2ae0e5459074215e857b6/OPT_PostDominatorsPhase.java/buggy/rvm/src/vm/compilers/optimizing/optimizations/control/dominators/OPT_PostDominatorsPhase.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
1250,
1410,
4990,
12,
15620,
67,
1320,
702,
13,
288,
565,
327,
638,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
282,
1071,
727,
1250,
1410,
4990,
12,
15620,
67,
1320,
702,
13,
288,
565,
327,
638,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Event event = null; while (true) {
|
Event event=null; while(true) {
|
public void run() { Event event = null; while (true) { try { event = (Event) m_upQueue.take(); m_upLatch.passThrough(); handleUp(event); } catch (InterruptedException ex) { //this is ok. } } }
|
47927 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47927/896f3041ac6c83d0d1b4ad10041face165c97e1d/MessageDispatcher.java/clean/src/org/jgroups/blocks/MessageDispatcher.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
1086,
1435,
288,
10792,
2587,
871,
273,
446,
31,
10792,
1323,
261,
3767,
13,
288,
13491,
775,
288,
18701,
871,
273,
261,
1133,
13,
312,
67,
416,
3183,
18,
22188,
5621,
18701,
312,
67,
416,
23463,
18,
5466,
14287,
5621,
18701,
1640,
1211,
12,
2575,
1769,
13491,
289,
1044,
261,
24485,
503,
431,
13,
288,
18701,
368,
2211,
353,
1529,
18,
13491,
289,
10792,
289,
7734,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
1086,
1435,
288,
10792,
2587,
871,
273,
446,
31,
10792,
1323,
261,
3767,
13,
288,
13491,
775,
288,
18701,
871,
273,
261,
1133,
13,
312,
67,
416,
3183,
18,
22188,
5621,
18701,
312,
67,
416,
23463,
18,
5466,
14287,
5621,
18701,
1640,
1211,
12,
2575,
1769,
13491,
289,
1044,
261,
24485,
503,
431,
13,
288,
18701,
368,
2211,
353,
1529,
18,
13491,
289,
10792,
289,
7734,
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
] |
g.setColor(java.awt.Color.cyan);
|
g.setColor(java.awt.Color.orange);
|
public void paintComponent(Graphics g) { Dimension dim = getSize(); int w = dim.width; int h = dim.height; g.setColor(java.awt.Color.cyan); g.fillRect(w / 4, 0, w / 2, h); }
|
23362 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/23362/c32d644fb1599cc6d46c14d935f57fb922d36a58/Legend.java/clean/src/org/objectweb/proactive/ic2d/gui/Legend.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
7682,
1071,
918,
12574,
1841,
12,
17558,
314,
13,
288,
18701,
13037,
2464,
273,
9950,
5621,
18701,
509,
341,
273,
2464,
18,
2819,
31,
18701,
509,
366,
273,
2464,
18,
4210,
31,
18701,
314,
18,
542,
2957,
12,
6290,
18,
2219,
88,
18,
2957,
18,
280,
726,
1769,
18701,
314,
18,
5935,
6120,
12,
91,
342,
1059,
16,
374,
16,
341,
342,
576,
16,
366,
1769,
13491,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
7682,
1071,
918,
12574,
1841,
12,
17558,
314,
13,
288,
18701,
13037,
2464,
273,
9950,
5621,
18701,
509,
341,
273,
2464,
18,
2819,
31,
18701,
509,
366,
273,
2464,
18,
4210,
31,
18701,
314,
18,
542,
2957,
12,
6290,
18,
2219,
88,
18,
2957,
18,
280,
726,
1769,
18701,
314,
18,
5935,
6120,
12,
91,
342,
1059,
16,
374,
16,
341,
342,
576,
16,
366,
1769,
13491,
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
] |
if (isInited) return (ComponentPackage)EPackage.Registry.INSTANCE.getEPackage(ComponentPackage.eNS_URI);
|
if (isInited) return (ComponentPackage) EPackage.Registry.INSTANCE.getEPackage(ComponentPackage.eNS_URI);
|
public static ComponentPackage init() { if (isInited) return (ComponentPackage)EPackage.Registry.INSTANCE.getEPackage(ComponentPackage.eNS_URI); // Obtain or create and register package ComponentPackageImpl theComponentPackage = (ComponentPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof ComponentPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new ComponentPackageImpl()); isInited = true; // Initialize simple dependencies XMLTypePackageImpl.init(); // Obtain or create and register interdependencies AttributePackageImpl theAttributePackage = (AttributePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AttributePackage.eNS_URI) instanceof AttributePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AttributePackage.eNS_URI) : AttributePackageImpl.eINSTANCE); TypePackageImpl theTypePackage = (TypePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TypePackage.eNS_URI) instanceof TypePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TypePackage.eNS_URI) : TypePackageImpl.eINSTANCE); LayoutPackageImpl theLayoutPackage = (LayoutPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(LayoutPackage.eNS_URI) instanceof LayoutPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(LayoutPackage.eNS_URI) : LayoutPackageImpl.eINSTANCE); DataPackageImpl theDataPackage = (DataPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(DataPackage.eNS_URI) instanceof DataPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(DataPackage.eNS_URI) : DataPackageImpl.eINSTANCE); ModelPackageImpl theModelPackage = (ModelPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ModelPackage.eNS_URI) instanceof ModelPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ModelPackage.eNS_URI) : ModelPackageImpl.eINSTANCE); // Create package meta-data objects theComponentPackage.createPackageContents(); theAttributePackage.createPackageContents(); theTypePackage.createPackageContents(); theLayoutPackage.createPackageContents(); theDataPackage.createPackageContents(); theModelPackage.createPackageContents(); // Initialize created meta-data theComponentPackage.initializePackageContents(); theAttributePackage.initializePackageContents(); theTypePackage.initializePackageContents(); theLayoutPackage.initializePackageContents(); theDataPackage.initializePackageContents(); theModelPackage.initializePackageContents(); // Mark meta-data to indicate it can't be changed theComponentPackage.freeze(); return theComponentPackage; }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/ComponentPackageImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/component/impl/ComponentPackageImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
5435,
2261,
1208,
1435,
565,
288,
3639,
309,
261,
291,
2570,
329,
13,
327,
261,
1841,
2261,
13,
10682,
18,
4243,
18,
13341,
18,
588,
41,
2261,
12,
1841,
2261,
18,
73,
3156,
67,
3098,
1769,
3639,
368,
24850,
578,
752,
471,
1744,
2181,
3639,
5435,
2261,
2828,
326,
1841,
2261,
273,
261,
1841,
2261,
2828,
21433,
41,
2261,
18,
4243,
18,
13341,
18,
588,
41,
2261,
12,
73,
3156,
67,
3098,
13,
1276,
5435,
2261,
2828,
692,
10682,
18,
4243,
18,
13341,
18,
588,
41,
2261,
12,
73,
3156,
67,
3098,
13,
294,
394,
5435,
2261,
2828,
10663,
3639,
353,
2570,
329,
273,
638,
31,
3639,
368,
9190,
4143,
5030,
3639,
3167,
559,
2261,
2828,
18,
2738,
5621,
3639,
368,
24850,
578,
752,
471,
1744,
1554,
11037,
3639,
3601,
2261,
2828,
326,
1499,
2261,
273,
261,
1499,
2261,
2828,
21433,
41,
2261,
18,
4243,
18,
13341,
18,
588,
41,
2261,
12,
1499,
2261,
18,
73,
3156,
67,
3098,
13,
1276,
3601,
2261,
2828,
692,
10682,
18,
4243,
18,
13341,
18,
588,
41,
2261,
12,
1499,
2261,
18,
73,
3156,
67,
3098,
13,
294,
3601,
2261,
2828,
18,
73,
13341,
1769,
3639,
1412,
2261,
2828,
326,
559,
2261,
273,
261,
559,
2261,
2828,
21433,
41,
2261,
18,
4243,
18,
13341,
18,
588,
41,
2261,
12,
559,
2261,
18,
73,
3156,
67,
3098,
13,
1276,
1412,
2261,
2828,
692,
10682,
18,
4243,
18,
13341,
18,
588,
41,
2261,
12,
559,
2261,
18,
73,
3156,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
5435,
2261,
1208,
1435,
565,
288,
3639,
309,
261,
291,
2570,
329,
13,
327,
261,
1841,
2261,
13,
10682,
18,
4243,
18,
13341,
18,
588,
41,
2261,
12,
1841,
2261,
18,
73,
3156,
67,
3098,
1769,
3639,
368,
24850,
578,
752,
471,
1744,
2181,
3639,
5435,
2261,
2828,
326,
1841,
2261,
273,
261,
1841,
2261,
2828,
21433,
41,
2261,
18,
4243,
18,
13341,
18,
588,
41,
2261,
12,
73,
3156,
67,
3098,
13,
1276,
5435,
2261,
2828,
692,
10682,
18,
4243,
18,
13341,
18,
588,
41,
2261,
12,
73,
3156,
67,
3098,
13,
294,
394,
5435,
2261,
2828,
10663,
3639,
353,
2570,
329,
273,
638,
31,
3639,
368,
9190,
4143,
5030,
3639,
3167,
559,
2261,
2828,
2
] |
super.actionPerformed(e); if (e.getSource() instanceof JRadioButton) { String cmd = e.getActionCommand(); if (cmd == null) { _selectedIndex = -1; return; } int size = _choices.size(); for (int i = 0; i < size; i++) { String s = (String) _choices.elementAt(i); if (s.equals(cmd)) _selectedIndex = i; } getWizard().doAction(); enableButtons();
|
super.actionPerformed(e); if (e.getSource() instanceof JRadioButton) { String cmd = e.getActionCommand(); if (cmd == null) { _selectedIndex = -1; return; } int size = _choices.size(); for (int i = 0; i < size; i++) { String s = (String) _choices.elementAt(i); if (s.equals(cmd)) _selectedIndex = i; } getWizard().doAction(); enableButtons(); }
|
public void actionPerformed(ActionEvent e) { super.actionPerformed(e); if (e.getSource() instanceof JRadioButton) { String cmd = e.getActionCommand(); if (cmd == null) { _selectedIndex = -1; return; } int size = _choices.size(); for (int i = 0; i < size; i++) { String s = (String) _choices.elementAt(i); if (s.equals(cmd)) _selectedIndex = i; } getWizard().doAction(); enableButtons(); } }
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/WizStepChoice.java/clean/src_new/org/argouml/cognitive/ui/WizStepChoice.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
565,
2240,
18,
1128,
13889,
12,
73,
1769,
565,
309,
261,
73,
18,
588,
1830,
1435,
1276,
804,
19984,
3616,
13,
288,
1377,
514,
1797,
273,
425,
18,
588,
1803,
2189,
5621,
1377,
309,
261,
4172,
422,
446,
13,
288,
202,
67,
8109,
1016,
273,
300,
21,
31,
202,
2463,
31,
1377,
289,
1377,
509,
963,
273,
389,
11937,
18,
1467,
5621,
1377,
364,
261,
474,
277,
273,
374,
31,
277,
411,
963,
31,
277,
27245,
288,
202,
780,
272,
273,
261,
780,
13,
389,
11937,
18,
2956,
861,
12,
77,
1769,
202,
430,
261,
87,
18,
14963,
12,
4172,
3719,
389,
8109,
1016,
273,
277,
31,
1377,
289,
1377,
13876,
13412,
7675,
2896,
1803,
5621,
1377,
4237,
14388,
5621,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
565,
2240,
18,
1128,
13889,
12,
73,
1769,
565,
309,
261,
73,
18,
588,
1830,
1435,
1276,
804,
19984,
3616,
13,
288,
1377,
514,
1797,
273,
425,
18,
588,
1803,
2189,
5621,
1377,
309,
261,
4172,
422,
446,
13,
288,
202,
67,
8109,
1016,
273,
300,
21,
31,
202,
2463,
31,
1377,
289,
1377,
509,
963,
273,
389,
11937,
18,
1467,
5621,
1377,
364,
261,
474,
277,
273,
374,
31,
277,
411,
963,
31,
277,
27245,
288,
202,
780,
272,
273,
261,
780,
13,
389,
11937,
18,
2956,
861,
12,
77,
1769,
202,
430,
261,
87,
18,
14963,
12,
4172,
3719,
389,
8109,
1016,
273,
277,
31,
1377,
289,
2
] |
public org.quickfix.field.NumDaysInterest getNumDaysInterest() throws FieldNotFound { org.quickfix.field.NumDaysInterest value = new org.quickfix.field.NumDaysInterest();
|
public quickfix.field.NumDaysInterest getNumDaysInterest() throws FieldNotFound { quickfix.field.NumDaysInterest value = new quickfix.field.NumDaysInterest();
|
public org.quickfix.field.NumDaysInterest getNumDaysInterest() throws FieldNotFound { org.quickfix.field.NumDaysInterest value = new org.quickfix.field.NumDaysInterest(); getField(value); return value; }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/ExecutionReport.java/buggy/src/java/src/quickfix/fix43/ExecutionReport.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
2578,
9384,
29281,
11187,
9384,
29281,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
2578,
9384,
29281,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
2578,
9384,
29281,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
2578,
9384,
29281,
11187,
9384,
29281,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
2578,
9384,
29281,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
2578,
9384,
29281,
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
] |
Object inputValue = convertToValue( parameterHint.getDefaultInputValue( ), parameterDefn.getType( ) );
|
Object inputValue = convertToValue( parameterHint.getDefaultInputValue( ), parameterHint.getDataType());
|
private void addParameterDefns() throws DataException { if ( this.paramDefnAndValBindings == null ) return; // nothing to add // iterate thru the collection to add parameter hints Iterator list = this.paramDefnAndValBindings.iterator( ); while ( list.hasNext( ) ) { ParamDefnAndValBinding paramDefnAndValBinding = (ParamDefnAndValBinding) list.next( ); IParameterDefinition parameterDefn = paramDefnAndValBinding.getParamDefn(); ParameterHint parameterHint = new ParameterHint( parameterDefn.getName(), parameterDefn.isInputMode(), parameterDefn.isOutputMode() ); if( isParameterPositionValid(parameterDefn.getPosition())) parameterHint.setPosition( parameterDefn.getPosition( ) ); // following data types is not supported by odaconsumer currently Class dataTypeClass = DataType.getClass( parameterDefn.getType( ) ); if ( dataTypeClass == DataType.AnyType.class || dataTypeClass == Boolean.class || dataTypeClass == Blob.class ) { dataTypeClass = null; } parameterHint.setDataType( dataTypeClass ); parameterHint.setIsInputOptional( parameterDefn.isInputOptional( ) ); parameterHint.setDefaultInputValue( paramDefnAndValBinding.getValue() ); parameterHint.setIsNullable( parameterDefn.isNullable() ); odaStatement.addParameterHint( parameterHint ); //If the parameter is input parameter then add it to input value list. if ( parameterHint.isInputMode( ) && parameterHint.getDefaultInputValue( ) != null ) { Object inputValue = convertToValue( parameterHint.getDefaultInputValue( ), parameterDefn.getType( ) ); if ( isParameterPositionValid(parameterHint.getPosition( )) ) this.setInputParamValue( parameterHint.getPosition( ), inputValue ); else this.setInputParamValue( parameterHint.getName( ), inputValue ); } } this.setInputParameterBinding(); }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/141502c7e679ba4bd9df5d279c56950a22832209/DataSourceQuery.java/buggy/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/DataSourceQuery.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
14436,
3262,
2387,
1435,
1216,
1910,
503,
202,
95,
202,
202,
430,
261,
333,
18,
891,
3262,
82,
1876,
3053,
10497,
422,
446,
262,
1082,
565,
327,
31,
202,
759,
5083,
358,
527,
202,
202,
759,
7401,
286,
8653,
326,
1849,
358,
527,
1569,
13442,
202,
202,
3198,
666,
273,
333,
18,
891,
3262,
82,
1876,
3053,
10497,
18,
9838,
12,
11272,
202,
202,
17523,
261,
666,
18,
5332,
2134,
12,
262,
262,
202,
202,
95,
1082,
202,
786,
3262,
82,
1876,
3053,
5250,
579,
3262,
82,
1876,
3053,
5250,
273,
261,
786,
3262,
82,
1876,
3053,
5250,
13,
666,
18,
4285,
12,
11272,
1082,
565,
467,
1662,
1852,
1569,
3262,
82,
273,
579,
3262,
82,
1876,
3053,
5250,
18,
588,
786,
3262,
82,
5621,
1082,
202,
1662,
7002,
1569,
7002,
273,
394,
5498,
7002,
12,
1569,
3262,
82,
18,
17994,
9334,
17322,
6862,
9506,
1569,
3262,
82,
18,
291,
1210,
2309,
9334,
6862,
6862,
6862,
9506,
1569,
3262,
82,
18,
291,
1447,
2309,
1435,
11272,
1082,
202,
430,
12,
353,
1662,
2555,
1556,
12,
6775,
3262,
82,
18,
588,
2555,
1435,
3719,
9506,
202,
6775,
7002,
18,
542,
2555,
12,
1569,
3262,
82,
18,
588,
2555,
12,
262,
11272,
1082,
202,
759,
3751,
501,
1953,
353,
486,
3260,
635,
320,
2414,
13230,
4551,
1082,
202,
797,
8891,
797,
273,
14828,
18,
588,
797,
12,
1569,
3262,
82,
18,
588,
559,
12,
262,
11272,
1082,
202,
430,
261,
8891,
797,
422,
14828,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
14436,
3262,
2387,
1435,
1216,
1910,
503,
202,
95,
202,
202,
430,
261,
333,
18,
891,
3262,
82,
1876,
3053,
10497,
422,
446,
262,
1082,
565,
327,
31,
202,
759,
5083,
358,
527,
202,
202,
759,
7401,
286,
8653,
326,
1849,
358,
527,
1569,
13442,
202,
202,
3198,
666,
273,
333,
18,
891,
3262,
82,
1876,
3053,
10497,
18,
9838,
12,
11272,
202,
202,
17523,
261,
666,
18,
5332,
2134,
12,
262,
262,
202,
202,
95,
1082,
202,
786,
3262,
82,
1876,
3053,
5250,
579,
3262,
82,
1876,
3053,
5250,
273,
261,
786,
3262,
82,
1876,
3053,
5250,
13,
666,
18,
4285,
12,
11272,
1082,
565,
467,
1662,
1852,
1569,
3262,
82,
273,
579,
3262,
2
] |
return (User)userList.get(0);
|
user = (User)userList.get(0);
|
public User login(PortletRequest req) throws AuthenticationException, AuthorizationException { String loginName = req.getParameter("username"); String loginPassword = req.getParameter("password"); String certificate = null; X509Certificate[] certs = (X509Certificate[]) req.getAttribute("javax.servlet.request.X509Certificate"); if (certs != null && certs.length > 0) { certificate = certificateTransform(certs[0].getSubjectDN().toString()); } User user = null; // if using client certificate, then don't use login modules if (certificate == null) { if ((loginName == null) || (loginPassword == null)) { throw new AuthorizationException(getLocalizedText(req, "LOGIN_AUTH_BLANK")); } // first get user user = activeLoginModule.getLoggedInUser(loginName); } else { log.debug("Using certificate for login :" + certificate); List userList = userManagerService.getUsersByAttribute("certificate", certificate); if (!userList.isEmpty()) { return (User)userList.get(0); } } if (user == null) throw new AuthorizationException(getLocalizedText(req, "LOGIN_AUTH_NOUSER")); String accountStatus = (String)user.getAttribute(User.DISABLED); if ((accountStatus != null) && ("TRUE".equalsIgnoreCase(accountStatus))) throw new AuthorizationException(getLocalizedText(req, "LOGIN_AUTH_DISABLED")); // second invoke the appropriate auth module List modules = this.getActiveAuthModules(); Collections.sort(modules); AuthenticationException authEx = null; Iterator it = modules.iterator(); log.debug("in login: Active modules are: "); boolean success = false; while (it.hasNext()) { success = false; LoginAuthModule mod = (LoginAuthModule) it.next(); log.debug(mod.getModuleName()); try { mod.checkAuthentication(user, loginPassword); success = true; } catch (AuthenticationException e) { String errMsg = mod.getModuleError(e.getMessage(), req.getLocale()); if (errMsg != null) { authEx = new AuthenticationException(errMsg); } else { authEx = e; } } if (success) break; } if (!success) throw authEx; return user; }
|
49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/5cb186c05766fc60b7d943d1abe0f0a4b22e564b/LoginServiceImpl.java/clean/src/org/gridlab/gridsphere/services/core/user/impl/LoginServiceImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2177,
3925,
12,
18566,
691,
1111,
13,
5411,
1216,
23458,
16,
10234,
503,
288,
3639,
514,
3925,
461,
273,
1111,
18,
588,
1662,
2932,
5053,
8863,
3639,
514,
3925,
3913,
273,
1111,
18,
588,
1662,
2932,
3664,
8863,
3639,
514,
4944,
273,
446,
31,
3639,
1139,
5995,
4719,
8526,
13870,
273,
261,
60,
5995,
4719,
63,
5717,
1111,
18,
588,
1499,
2932,
28384,
18,
23231,
18,
2293,
18,
60,
5995,
4719,
8863,
3639,
309,
261,
24596,
480,
446,
597,
13870,
18,
2469,
405,
374,
13,
288,
5411,
4944,
273,
4944,
4059,
12,
24596,
63,
20,
8009,
588,
6638,
8609,
7675,
10492,
10663,
3639,
289,
3639,
2177,
729,
273,
446,
31,
3639,
368,
309,
1450,
1004,
4944,
16,
1508,
2727,
1404,
999,
3925,
4381,
3639,
309,
261,
14108,
422,
446,
13,
288,
5411,
309,
14015,
5819,
461,
422,
446,
13,
747,
261,
5819,
3913,
422,
446,
3719,
288,
7734,
604,
394,
10234,
503,
12,
588,
2042,
1235,
1528,
12,
3658,
16,
315,
19022,
67,
7131,
67,
38,
24307,
7923,
1769,
5411,
289,
5411,
368,
1122,
336,
729,
5411,
729,
273,
2695,
5358,
3120,
18,
588,
29327,
1299,
12,
5819,
461,
1769,
3639,
289,
469,
288,
5411,
613,
18,
4148,
2932,
7736,
4944,
364,
3925,
20514,
397,
4944,
1769,
5411,
987,
729,
682,
273,
30833,
1179,
18,
588,
6588,
858,
1499,
2932,
14108,
3113,
4944,
1769,
5411,
309,
16051,
1355,
682,
18,
291,
1921,
10756,
288,
7734,
729,
273,
261,
1299,
13,
1355,
682,
18,
588,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2177,
3925,
12,
18566,
691,
1111,
13,
5411,
1216,
23458,
16,
10234,
503,
288,
3639,
514,
3925,
461,
273,
1111,
18,
588,
1662,
2932,
5053,
8863,
3639,
514,
3925,
3913,
273,
1111,
18,
588,
1662,
2932,
3664,
8863,
3639,
514,
4944,
273,
446,
31,
3639,
1139,
5995,
4719,
8526,
13870,
273,
261,
60,
5995,
4719,
63,
5717,
1111,
18,
588,
1499,
2932,
28384,
18,
23231,
18,
2293,
18,
60,
5995,
4719,
8863,
3639,
309,
261,
24596,
480,
446,
597,
13870,
18,
2469,
405,
374,
13,
288,
5411,
4944,
273,
4944,
4059,
12,
24596,
63,
20,
8009,
588,
6638,
8609,
7675,
10492,
10663,
3639,
289,
3639,
2177,
729,
273,
446,
31,
3639,
368,
309,
1450,
1004,
4944,
16,
2
] |
return iter.hasNext();
|
throw new UnsupportedOperationException();
|
public synchronized Iterator iterator(RubyModule rubyClass) { final List objList = new ArrayList(); WeakReferenceListNode current = top; while (current != null) { IRubyObject obj = (IRubyObject)current.get(); if (obj != null && obj.isKindOf(rubyClass)) { objList.add(current); } current = current.next; } return new Iterator() { private Iterator iter = objList.iterator(); public boolean hasNext() { return iter.hasNext(); } public Object next() { return ((WeakReferenceListNode)iter.next()).get(); } public void remove() { throw new UnsupportedOperationException(); } }; }
|
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/448643c70dc9b78a7d89a851b9202699d07cfbb3/ObjectSpace.java/clean/src/org/jruby/runtime/ObjectSpace.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
4498,
2775,
12,
54,
10340,
3120,
22155,
797,
13,
288,
377,
202,
6385,
987,
1081,
682,
273,
394,
2407,
5621,
377,
202,
3218,
581,
2404,
682,
907,
783,
273,
1760,
31,
377,
202,
17523,
261,
2972,
480,
446,
13,
288,
377,
202,
202,
7937,
10340,
921,
1081,
273,
261,
7937,
10340,
921,
13,
2972,
18,
588,
5621,
377,
202,
565,
309,
261,
2603,
480,
446,
597,
1081,
18,
291,
5677,
951,
12,
27768,
797,
3719,
288,
377,
202,
377,
202,
2603,
682,
18,
1289,
12,
2972,
1769,
377,
202,
565,
289,
377,
202,
540,
202,
565,
783,
273,
783,
18,
4285,
31,
377,
202,
97,
377,
202,
3639,
327,
394,
4498,
1435,
288,
540,
202,
1152,
4498,
1400,
273,
1081,
682,
18,
9838,
5621,
540,
9506,
202,
482,
1250,
4564,
1435,
288,
9506,
202,
2463,
1400,
18,
5332,
2134,
5621,
1082,
202,
97,
1082,
202,
482,
1033,
1024,
1435,
288,
9506,
202,
2463,
14015,
3218,
581,
2404,
682,
907,
13,
2165,
18,
4285,
1435,
2934,
588,
5621,
1082,
202,
97,
1082,
202,
482,
918,
1206,
1435,
288,
9506,
202,
12849,
394,
13172,
5621,
1082,
202,
97,
3639,
289,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1071,
3852,
4498,
2775,
12,
54,
10340,
3120,
22155,
797,
13,
288,
377,
202,
6385,
987,
1081,
682,
273,
394,
2407,
5621,
377,
202,
3218,
581,
2404,
682,
907,
783,
273,
1760,
31,
377,
202,
17523,
261,
2972,
480,
446,
13,
288,
377,
202,
202,
7937,
10340,
921,
1081,
273,
261,
7937,
10340,
921,
13,
2972,
18,
588,
5621,
377,
202,
565,
309,
261,
2603,
480,
446,
597,
1081,
18,
291,
5677,
951,
12,
27768,
797,
3719,
288,
377,
202,
377,
202,
2603,
682,
18,
1289,
12,
2972,
1769,
377,
202,
565,
289,
377,
202,
540,
202,
565,
783,
273,
783,
18,
4285,
31,
377,
202,
97,
377,
202,
3639,
327,
394,
4498,
1435,
288,
540,
202,
1152,
2
] |
return new SearchPatternData(TYPE, DECLARATIONS, true, element.getElementName(), element);
|
return new SearchPatternData(TYPE, DECLARATIONS, true, element.getElementName(), element, true);
|
private SearchPatternData determineInitValuesFrom(IJavaElement element) { try { switch (element.getElementType()) { case IJavaElement.PACKAGE_FRAGMENT: case IJavaElement.PACKAGE_DECLARATION: return new SearchPatternData(PACKAGE, REFERENCES, true, element.getElementName(), element); case IJavaElement.IMPORT_DECLARATION: { IImportDeclaration declaration= (IImportDeclaration) element; if (declaration.isOnDemand()) { String name= Signature.getQualifier(declaration.getElementName()); return new SearchPatternData(PACKAGE, DECLARATIONS, true, name, element); } return new SearchPatternData(TYPE, DECLARATIONS, true, element.getElementName(), element); } case IJavaElement.TYPE: return new SearchPatternData(TYPE, REFERENCES, true, PatternStrings.getTypeSignature((IType) element), element); case IJavaElement.COMPILATION_UNIT: { IType mainType= ((ICompilationUnit) element).findPrimaryType(); if (mainType != null) { return new SearchPatternData(TYPE, REFERENCES, true, PatternStrings.getTypeSignature(mainType), mainType); } break; } case IJavaElement.CLASS_FILE: { IType mainType= ((IClassFile) element).getType(); if (mainType.exists()) { return new SearchPatternData(TYPE, REFERENCES, true, PatternStrings.getTypeSignature(mainType), mainType); } break; } case IJavaElement.FIELD: return new SearchPatternData(FIELD, REFERENCES, true, PatternStrings.getFieldSignature((IField) element), element); case IJavaElement.METHOD: IMethod method= (IMethod) element; int searchFor= method.isConstructor() ? CONSTRUCTOR : METHOD; return new SearchPatternData(searchFor, REFERENCES, true, PatternStrings.getMethodSignature(method), element); } } catch (JavaModelException e) { if (!e.isDoesNotExist()) { ExceptionHandler.handle(e, SearchMessages.Search_Error_javaElementAccess_title, SearchMessages.Search_Error_javaElementAccess_message); } // element might not exist } return null; }
|
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/79570bdde80afc55df205a0635aee8d36c22d13b/JavaSearchPage.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/JavaSearchPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
5167,
3234,
751,
4199,
2570,
1972,
1265,
12,
45,
5852,
1046,
930,
13,
288,
202,
202,
698,
288,
1082,
202,
9610,
261,
2956,
18,
588,
17481,
10756,
288,
9506,
202,
3593,
467,
5852,
1046,
18,
19077,
67,
9981,
26903,
30,
9506,
202,
3593,
467,
5852,
1046,
18,
19077,
67,
23956,
985,
2689,
30,
6862,
202,
2463,
394,
5167,
3234,
751,
12,
19077,
16,
22898,
55,
16,
638,
16,
930,
18,
21336,
461,
9334,
930,
1769,
9506,
202,
3593,
467,
5852,
1046,
18,
20445,
67,
23956,
985,
2689,
30,
288,
6862,
202,
45,
5010,
6094,
8266,
33,
261,
45,
5010,
6094,
13,
930,
31,
6862,
202,
430,
261,
22448,
18,
291,
1398,
25461,
10756,
288,
25083,
202,
780,
508,
33,
9249,
18,
588,
16185,
12,
22448,
18,
21336,
461,
10663,
25083,
202,
2463,
394,
5167,
3234,
751,
12,
19077,
16,
2030,
5017,
985,
15297,
16,
638,
16,
508,
16,
930,
1769,
6862,
202,
97,
6862,
202,
2463,
394,
5167,
3234,
751,
12,
2399,
16,
2030,
5017,
985,
15297,
16,
638,
16,
930,
18,
21336,
461,
9334,
930,
1769,
9506,
202,
97,
9506,
202,
3593,
467,
5852,
1046,
18,
2399,
30,
6862,
202,
2463,
394,
5167,
3234,
751,
12,
2399,
16,
22898,
55,
16,
638,
16,
6830,
7957,
18,
588,
559,
5374,
12443,
45,
559,
13,
930,
3631,
930,
1769,
9506,
202,
3593,
467,
5852,
1046,
18,
31075,
48,
2689,
67,
15736,
30,
288,
6862,
202,
45,
559,
2774,
559,
33,
14015,
45,
19184,
2802,
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,
225,
202,
1152,
5167,
3234,
751,
4199,
2570,
1972,
1265,
12,
45,
5852,
1046,
930,
13,
288,
202,
202,
698,
288,
1082,
202,
9610,
261,
2956,
18,
588,
17481,
10756,
288,
9506,
202,
3593,
467,
5852,
1046,
18,
19077,
67,
9981,
26903,
30,
9506,
202,
3593,
467,
5852,
1046,
18,
19077,
67,
23956,
985,
2689,
30,
6862,
202,
2463,
394,
5167,
3234,
751,
12,
19077,
16,
22898,
55,
16,
638,
16,
930,
18,
21336,
461,
9334,
930,
1769,
9506,
202,
3593,
467,
5852,
1046,
18,
20445,
67,
23956,
985,
2689,
30,
288,
6862,
202,
45,
5010,
6094,
8266,
33,
261,
45,
5010,
6094,
13,
930,
31,
6862,
202,
430,
261,
22448,
18,
291,
1398,
25461,
10756,
288,
25083,
202,
2
] |
return ResolveFunction( items );
|
return ResolveFunction( data, items );
|
static private Declaration ResolveAmbiguities( LinkedList items ) throws ParserSymbolTableException{ Declaration decl = null; int size = items.size(); if( size == 0){ return null; } else if (size == 1) { return (Declaration) items.getFirst(); } else { Declaration first = (Declaration)items.removeFirst(); //if first one is a class-name, the next ones hide it if( first.getType() >= Declaration.t_class && first.getType() <= Declaration.t_enum ){ return ResolveAmbiguities( items ); } //else, if the first is an object (ie not a function), the rest must be the same //declaration. otherwise (ie it is a function), the rest must be functions. boolean needSame = ( first.getType() != Declaration.t_function ); Iterator iter = items.iterator(); for( int i = (size - 1); i > 0; i-- ){ decl = (Declaration) iter.next(); if( needSame ){ if( decl != first ){ throw new ParserSymbolTableException(); } } else { if( decl.getType() != Declaration.t_function ){ throw new ParserSymbolTableException(); } } } if( needSame ){ return first; } else { items.addFirst( first ); return ResolveFunction( items ); } } }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/c27351afc006a281288d8636d98a881449522b1b/ParserSymbolTable.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ParserSymbolTable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
3238,
16110,
4302,
9910,
30706,
8810,
1961,
12,
10688,
1516,
262,
1216,
6783,
5335,
1388,
503,
95,
202,
202,
6094,
3496,
273,
446,
31,
1082,
202,
474,
963,
273,
1516,
18,
1467,
5621,
1875,
202,
430,
12,
963,
422,
374,
15329,
1082,
202,
2463,
446,
31,
202,
202,
97,
469,
309,
261,
1467,
422,
404,
13,
288,
1082,
202,
2463,
261,
6094,
13,
1516,
18,
588,
3759,
5621,
202,
202,
97,
469,
202,
95,
1082,
202,
6094,
1122,
225,
273,
261,
6094,
13,
3319,
18,
4479,
3759,
5621,
9506,
202,
759,
430,
1122,
1245,
353,
279,
667,
17,
529,
16,
326,
1024,
5945,
6853,
518,
1082,
202,
430,
12,
1122,
18,
588,
559,
1435,
1545,
16110,
4302,
18,
88,
67,
1106,
597,
1122,
18,
588,
559,
1435,
1648,
16110,
4302,
18,
88,
67,
7924,
262,
95,
9506,
202,
2463,
9910,
30706,
8810,
1961,
12,
1516,
11272,
1082,
202,
97,
6862,
202,
759,
12107,
16,
309,
326,
1122,
353,
392,
733,
261,
1385,
486,
279,
445,
3631,
326,
3127,
1297,
506,
326,
1967,
1082,
202,
759,
22448,
18,
225,
3541,
261,
1385,
518,
353,
279,
445,
3631,
326,
3127,
1297,
506,
4186,
18,
1082,
202,
6494,
1608,
8650,
273,
261,
1122,
18,
588,
559,
1435,
480,
16110,
4302,
18,
88,
67,
915,
11272,
9506,
202,
3198,
1400,
273,
1516,
18,
9838,
5621,
6862,
202,
1884,
12,
509,
277,
273,
261,
1467,
300,
404,
1769,
277,
405,
374,
31,
277,
413,
262,
95,
9506,
202,
8840,
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,
3845,
3238,
16110,
4302,
9910,
30706,
8810,
1961,
12,
10688,
1516,
262,
1216,
6783,
5335,
1388,
503,
95,
202,
202,
6094,
3496,
273,
446,
31,
1082,
202,
474,
963,
273,
1516,
18,
1467,
5621,
1875,
202,
430,
12,
963,
422,
374,
15329,
1082,
202,
2463,
446,
31,
202,
202,
97,
469,
309,
261,
1467,
422,
404,
13,
288,
1082,
202,
2463,
261,
6094,
13,
1516,
18,
588,
3759,
5621,
202,
202,
97,
469,
202,
95,
1082,
202,
6094,
1122,
225,
273,
261,
6094,
13,
3319,
18,
4479,
3759,
5621,
9506,
202,
759,
430,
1122,
1245,
353,
279,
667,
17,
529,
16,
326,
1024,
5945,
6853,
518,
1082,
202,
430,
12,
1122,
18,
588,
559,
1435,
1545,
16110,
2
] |
} catch(Exception e) {
|
} catch(Exception e) {
|
public Object evaluateProperty(Object target, String property) { if(target == null) { return null; } Method m = null; Field f = null; Object o = null; try { m = target.getClass().getMethod("get" + toTitleCase(property), null); o = m.invoke(target, null); // getter methods take no args => null //System.out.println("[OCLEvaluator] Trying to get method get" + toTitleCase(property) + " = " + o); return convertCollection(o); } catch(NoSuchMethodException e) { } catch(InvocationTargetException e) { if(m != null) { System.out.println("On Class: " + target.getClass().getName()); System.out.println("error in evaluating " + "get" + toTitleCase(property) + "()"); e.getTargetException().printStackTrace(); return null; } } catch(Exception e) { } try { m = target.getClass().getMethod(property, null); o = m.invoke(target, null); //System.out.println("Trying to get method " + toTitleCase(property)); return convertCollection(o); } catch(NoSuchMethodException e) { } catch(InvocationTargetException e) { if(m != null) { System.out.println("On Class: " + target.getClass().getName()); System.out.println("error in evaluating " + property + "()"); e.getTargetException().printStackTrace(); return null; } } catch(Exception e) { } try { m = target.getClass().getMethod(toTitleCase(property), null); o = m.invoke(target, null); //System.out.println("Trying to get method" + property); return convertCollection(o); } catch(Exception e) { } try { f = target.getClass().getField(property); o = f.get(target); // access the field f or object targe return convertCollection(o); } catch(NoSuchFieldException e) { o = getExternalProperty(target, property); System.out.println("external property value = " + o); if(o != null) { return convertCollection(o); } else { System.out.println("On Class: " + target.getClass().getName()); System.out.println("Trying to get field " + property); e.printStackTrace(); return null; } } catch(Exception e) { if(f != null) { System.out.println("On Class: " + target.getClass().getName()); System.out.println("error in evaluating field " + property); e.printStackTrace(); return null; } } return null; } // end of evaluateProperty
|
1732 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1732/57c51948af9c3e593f037d7039a2e061be6f5f3f/OCLEvaluator.java/buggy/src/org/tigris/gef/ocl/OCLEvaluator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
5956,
1396,
12,
921,
1018,
16,
514,
1272,
13,
288,
3639,
309,
12,
3299,
422,
446,
13,
288,
5411,
327,
446,
31,
3639,
289,
3639,
2985,
312,
273,
446,
31,
3639,
2286,
284,
273,
446,
31,
3639,
1033,
320,
273,
446,
31,
3639,
775,
288,
5411,
312,
273,
1018,
18,
588,
797,
7675,
588,
1305,
2932,
588,
6,
397,
358,
4247,
2449,
12,
4468,
3631,
446,
1769,
5411,
320,
273,
312,
18,
14407,
12,
3299,
16,
446,
1769,
565,
368,
7060,
2590,
4862,
1158,
833,
516,
225,
446,
5411,
368,
3163,
18,
659,
18,
8222,
2932,
63,
10809,
900,
4531,
639,
65,
6161,
310,
358,
336,
707,
336,
6,
397,
358,
4247,
2449,
12,
4468,
13,
397,
315,
273,
315,
397,
320,
1769,
5411,
327,
1765,
2532,
12,
83,
1769,
3639,
289,
3639,
1044,
12,
28341,
14513,
425,
13,
288,
3639,
289,
3639,
1044,
12,
9267,
14950,
425,
13,
288,
5411,
309,
12,
81,
480,
446,
13,
288,
7734,
2332,
18,
659,
18,
8222,
2932,
1398,
1659,
30,
315,
397,
1018,
18,
588,
797,
7675,
17994,
10663,
7734,
2332,
18,
659,
18,
8222,
2932,
1636,
316,
26704,
315,
397,
315,
588,
6,
397,
358,
4247,
2449,
12,
4468,
13,
397,
25605,
8863,
7734,
425,
18,
588,
14950,
7675,
1188,
6332,
5621,
7734,
327,
446,
31,
5411,
289,
3639,
289,
3639,
1044,
12,
503,
425,
13,
288,
3639,
289,
3639,
775,
288,
5411,
312,
273,
1018,
18,
588,
797,
7675,
588,
1305,
12,
4468,
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,
377,
1071,
1033,
5956,
1396,
12,
921,
1018,
16,
514,
1272,
13,
288,
3639,
309,
12,
3299,
422,
446,
13,
288,
5411,
327,
446,
31,
3639,
289,
3639,
2985,
312,
273,
446,
31,
3639,
2286,
284,
273,
446,
31,
3639,
1033,
320,
273,
446,
31,
3639,
775,
288,
5411,
312,
273,
1018,
18,
588,
797,
7675,
588,
1305,
2932,
588,
6,
397,
358,
4247,
2449,
12,
4468,
3631,
446,
1769,
5411,
320,
273,
312,
18,
14407,
12,
3299,
16,
446,
1769,
565,
368,
7060,
2590,
4862,
1158,
833,
516,
225,
446,
5411,
368,
3163,
18,
659,
18,
8222,
2932,
63,
10809,
900,
4531,
639,
65,
6161,
310,
358,
336,
707,
336,
6,
397,
358,
4247,
2449,
12,
4468,
13,
2
] |
return (index == -1);
|
return (index != -1);
|
public boolean isSelected () { return (index == -1); }
|
27835 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27835/14511e3ad21013e92c6399b2bd2ec09a8263e33a/DefaultSingleSelectionModel.java/buggy/libjava/javax/swing/DefaultSingleSelectionModel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
20956,
1832,
225,
288,
565,
327,
261,
1615,
480,
300,
21,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
20956,
1832,
225,
288,
565,
327,
261,
1615,
480,
300,
21,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
RolapStar.Measure measure, Object[] keys, Collection pinSet) { synchronized (CachePool.instance()) { for (Iterator it = segmentRefs.iterator(); it.hasNext();) { SoftCacheableReference ref = (SoftCacheableReference)it.next(); Segment segment = (Segment) ref.getCacheable(); if (segment == null) { it.remove(); continue;
|
RolapStar.Measure measure, Object[] keys, Collection pinSet) { for (Iterator it = segmentRefs.iterator(); it.hasNext();) { SoftReference ref = (SoftReference)it.next(); Segment segment = (Segment) ref.get(); if (segment == null) { it.remove(); continue; } if (segment.measure != measure) { continue; } if (segment.isReady()) { Object o = segment.get(keys); if (o != null) { if (pinSet != null) { pinSet.add(segment); } return o;
|
public synchronized Object get( RolapStar.Measure measure, Object[] keys, Collection pinSet) { // if we dont synchronize here, the CachePool.flushIfNecessary may // remove elements from segmentRefs while we are iterating. This // would cause a ConcurrentModificationException. synchronized (CachePool.instance()) { for (Iterator it = segmentRefs.iterator(); it.hasNext();) { SoftCacheableReference ref = (SoftCacheableReference)it.next(); Segment segment = (Segment) ref.getCacheable(); if (segment == null) { it.remove(); continue; // it's being garbage-collected } if (segment.measure != measure) { continue; } if (segment.isReady()) { Object o = segment.get(keys); if (o != null) { if (pinSet != null) { CachePool.instance().pin(segment, pinSet); } return o; } } else { if (segment.wouldContain(keys)) { if (pinSet != null) { CachePool.instance().pin(segment, pinSet); } return null; } } } } return null; }
|
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/c4f321234fb770039c1d9b8397c8ac368d1ac5b1/Aggregation.java/buggy/src/main/mondrian/rolap/agg/Aggregation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
1033,
336,
12,
1082,
202,
4984,
438,
18379,
18,
7197,
6649,
16,
1033,
8526,
1311,
16,
2200,
7092,
694,
13,
288,
9506,
202,
759,
309,
732,
14046,
16978,
2674,
16,
326,
4379,
2864,
18,
11330,
26034,
2026,
202,
202,
759,
1206,
2186,
628,
3267,
9837,
1323,
732,
854,
13099,
18,
1220,
202,
202,
759,
4102,
4620,
279,
15242,
13467,
503,
18,
202,
202,
22043,
261,
1649,
2864,
18,
1336,
10756,
288,
1082,
202,
1884,
261,
3198,
518,
273,
3267,
9837,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
13,
288,
9506,
202,
12468,
1649,
429,
2404,
1278,
273,
261,
12468,
1649,
429,
2404,
13,
305,
18,
4285,
5621,
9506,
202,
4131,
3267,
273,
261,
4131,
13,
1278,
18,
588,
1649,
429,
5621,
9506,
202,
430,
261,
9273,
422,
446,
13,
288,
6862,
202,
305,
18,
4479,
5621,
6862,
202,
17143,
31,
368,
518,
1807,
3832,
15340,
17,
14676,
329,
9506,
202,
97,
9506,
202,
430,
261,
9273,
18,
10772,
480,
6649,
13,
288,
6862,
202,
17143,
31,
9506,
202,
97,
9506,
202,
430,
261,
9273,
18,
291,
8367,
10756,
288,
6862,
202,
921,
320,
273,
3267,
18,
588,
12,
2452,
1769,
6862,
202,
430,
261,
83,
480,
446,
13,
288,
25083,
202,
430,
261,
13097,
694,
480,
446,
13,
288,
6862,
1082,
202,
1649,
2864,
18,
1336,
7675,
13097,
12,
9273,
16,
7092,
694,
1769,
25083,
202,
97,
25083,
202,
2463,
320,
31,
6862,
202,
97,
9506,
202,
97,
469,
288,
6862,
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,
3852,
1033,
336,
12,
1082,
202,
4984,
438,
18379,
18,
7197,
6649,
16,
1033,
8526,
1311,
16,
2200,
7092,
694,
13,
288,
9506,
202,
759,
309,
732,
14046,
16978,
2674,
16,
326,
4379,
2864,
18,
11330,
26034,
2026,
202,
202,
759,
1206,
2186,
628,
3267,
9837,
1323,
732,
854,
13099,
18,
1220,
202,
202,
759,
4102,
4620,
279,
15242,
13467,
503,
18,
202,
202,
22043,
261,
1649,
2864,
18,
1336,
10756,
288,
1082,
202,
1884,
261,
3198,
518,
273,
3267,
9837,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
13,
288,
9506,
202,
12468,
1649,
429,
2404,
1278,
273,
261,
12468,
1649,
429,
2404,
13,
305,
18,
4285,
5621,
9506,
202,
4131,
3267,
273,
261,
4131,
2
] |
security.deleteObserver(Level2View.this);
|
security.addObserver(Level2View.this);
|
public void run() { updateInfo(); updateTable(); security.deleteObserver(Level2View.this); security.getQuoteMonitor().addObserver(Level2View.this); security.getLevel2Monitor().addObserver(Level2View.this); Level2FeedMonitor.monitor(security); }
|
12846 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12846/163eccc506c67b17c20293d6999750e385751cbc/Level2View.java/clean/net.sourceforge.eclipsetrader.trading/src/net/sourceforge/eclipsetrader/trading/views/Level2View.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
1086,
1435,
7734,
288,
10792,
1089,
966,
5621,
10792,
1089,
1388,
5621,
10792,
4373,
18,
1289,
11048,
12,
2355,
22,
1767,
18,
2211,
1769,
10792,
4373,
18,
588,
10257,
7187,
7675,
1289,
11048,
12,
2355,
22,
1767,
18,
2211,
1769,
10792,
4373,
18,
588,
2355,
22,
7187,
7675,
1289,
11048,
12,
2355,
22,
1767,
18,
2211,
1769,
10792,
4557,
22,
8141,
7187,
18,
10259,
12,
7462,
1769,
7734,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
1086,
1435,
7734,
288,
10792,
1089,
966,
5621,
10792,
1089,
1388,
5621,
10792,
4373,
18,
1289,
11048,
12,
2355,
22,
1767,
18,
2211,
1769,
10792,
4373,
18,
588,
10257,
7187,
7675,
1289,
11048,
12,
2355,
22,
1767,
18,
2211,
1769,
10792,
4373,
18,
588,
2355,
22,
7187,
7675,
1289,
11048,
12,
2355,
22,
1767,
18,
2211,
1769,
10792,
4557,
22,
8141,
7187,
18,
10259,
12,
7462,
1769,
7734,
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
] |
Logger.error(this, "Unknown option: "+key+" (value="+origConfigFileContents.get(key)+")");
|
Logger.error(this, "Unknown option: "+key+" (value="+origConfigFileContents.get(key)+ ')');
|
public synchronized void finishedInit() { finishedInit = true; if(origConfigFileContents == null) return; Iterator i = origConfigFileContents.keyIterator(); while(i.hasNext()) { String key = (String) i.next(); Logger.error(this, "Unknown option: "+key+" (value="+origConfigFileContents.get(key)+")"); } origConfigFileContents = null; }
|
45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/62fd59041864b4ed1f43adc676de6bfb5ea977f3/FilePersistentConfig.java/clean/src/freenet/config/FilePersistentConfig.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
6708,
2570,
1435,
288,
202,
202,
13527,
2570,
273,
638,
31,
202,
202,
430,
12,
4949,
13705,
6323,
422,
446,
13,
327,
31,
202,
202,
3198,
277,
273,
1647,
13705,
6323,
18,
856,
3198,
5621,
202,
202,
17523,
12,
77,
18,
5332,
2134,
10756,
288,
1082,
202,
780,
498,
273,
261,
780,
13,
277,
18,
4285,
5621,
1082,
202,
3328,
18,
1636,
12,
2211,
16,
315,
4874,
1456,
30,
13773,
856,
9078,
261,
1132,
1546,
15,
4949,
13705,
6323,
18,
588,
12,
856,
13,
9078,
2225,
1769,
202,
202,
97,
202,
202,
4949,
13705,
6323,
273,
446,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3852,
918,
6708,
2570,
1435,
288,
202,
202,
13527,
2570,
273,
638,
31,
202,
202,
430,
12,
4949,
13705,
6323,
422,
446,
13,
327,
31,
202,
202,
3198,
277,
273,
1647,
13705,
6323,
18,
856,
3198,
5621,
202,
202,
17523,
12,
77,
18,
5332,
2134,
10756,
288,
1082,
202,
780,
498,
273,
261,
780,
13,
277,
18,
4285,
5621,
1082,
202,
3328,
18,
1636,
12,
2211,
16,
315,
4874,
1456,
30,
13773,
856,
9078,
261,
1132,
1546,
15,
4949,
13705,
6323,
18,
588,
12,
856,
13,
9078,
2225,
1769,
202,
202,
97,
202,
202,
4949,
13705,
6323,
273,
446,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
assert mainElement.equals(errorElement) : descriptor;
|
assert mainElement.equals(errorElement) : "DOM problem has been created for wrong element: " + descriptor + "\nRight element:" + mainElement;
|
public final boolean calculateProblems(final DomElement mainElement) { synchronized (PsiLock.LOCK) { if (!myCachedErrors.containsKey(mainElement)) { final DomElementAnnotationHolderImpl holder = new DomElementAnnotationHolderImpl(); ((DomElementAnnotationsManagerImpl)DomElementAnnotationsManager.getInstance(mainElement.getManager().getProject())) .annotate(mainElement, holder); final List<DomElementProblemDescriptor> result = new SmartList<DomElementProblemDescriptor>(); boolean childrenHaveErrors = false; for (final DomElementProblemDescriptor descriptor : holder) { final DomElement errorElement = descriptor.getDomElement(); if (mainElement.equals(errorElement.getParent())) { if (!myCachedErrors.containsKey(errorElement)) { myCachedErrors.put(errorElement, new SmartList<DomElementProblemDescriptor>()); } myCachedErrors.get(errorElement).add(descriptor); childrenHaveErrors = true; result.clear(); } else { assert mainElement.equals(errorElement) : descriptor; if (!childrenHaveErrors) { result.add(descriptor); } } } myCachedErrors.put(mainElement, result); if (mainElement instanceof GenericDomValue) { myCachedXmlErrors.put(mainElement, getResolveProblem((GenericDomValue)mainElement)); } } return !myCachedErrors.get(mainElement).isEmpty(); } }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/e2e690d934b00494596dfcd3c42a81b3cd4297b4/DomElementsProblemsHolderImpl.java/buggy/dom/impl/src/com/intellij/util/xml/highlighting/DomElementsProblemsHolderImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
1250,
4604,
626,
19122,
12,
6385,
12965,
1046,
2774,
1046,
13,
288,
565,
3852,
261,
52,
7722,
2531,
18,
6589,
13,
288,
1377,
309,
16051,
4811,
9839,
4229,
18,
12298,
653,
12,
5254,
1046,
3719,
288,
3639,
727,
12965,
1046,
3257,
6064,
2828,
10438,
273,
394,
12965,
1046,
3257,
6064,
2828,
5621,
3639,
14015,
8832,
1046,
5655,
1318,
2828,
13,
8832,
1046,
5655,
1318,
18,
588,
1442,
12,
5254,
1046,
18,
588,
1318,
7675,
588,
4109,
1435,
3719,
1850,
263,
18338,
340,
12,
5254,
1046,
16,
10438,
1769,
3639,
727,
987,
32,
8832,
1046,
13719,
3187,
34,
563,
273,
394,
19656,
682,
32,
8832,
1046,
13719,
3187,
34,
5621,
3639,
1250,
2325,
17944,
4229,
273,
629,
31,
3639,
364,
261,
6385,
12965,
1046,
13719,
3187,
4950,
294,
10438,
13,
288,
1850,
727,
12965,
1046,
555,
1046,
273,
4950,
18,
588,
8832,
1046,
5621,
1850,
309,
261,
5254,
1046,
18,
14963,
12,
1636,
1046,
18,
588,
3054,
1435,
3719,
288,
5411,
309,
16051,
4811,
9839,
4229,
18,
12298,
653,
12,
1636,
1046,
3719,
288,
2868,
3399,
9839,
4229,
18,
458,
12,
1636,
1046,
16,
394,
19656,
682,
32,
8832,
1046,
13719,
3187,
34,
10663,
5411,
289,
5411,
3399,
9839,
4229,
18,
588,
12,
1636,
1046,
2934,
1289,
12,
12628,
1769,
5411,
2325,
17944,
4229,
273,
638,
31,
5411,
563,
18,
8507,
5621,
1850,
289,
1850,
469,
288,
5411,
1815,
2774,
1046,
18,
14963,
12,
1636,
1046,
13,
294,
315,
8168,
6199,
711,
2118,
2522,
364,
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,
727,
1250,
4604,
626,
19122,
12,
6385,
12965,
1046,
2774,
1046,
13,
288,
565,
3852,
261,
52,
7722,
2531,
18,
6589,
13,
288,
1377,
309,
16051,
4811,
9839,
4229,
18,
12298,
653,
12,
5254,
1046,
3719,
288,
3639,
727,
12965,
1046,
3257,
6064,
2828,
10438,
273,
394,
12965,
1046,
3257,
6064,
2828,
5621,
3639,
14015,
8832,
1046,
5655,
1318,
2828,
13,
8832,
1046,
5655,
1318,
18,
588,
1442,
12,
5254,
1046,
18,
588,
1318,
7675,
588,
4109,
1435,
3719,
1850,
263,
18338,
340,
12,
5254,
1046,
16,
10438,
1769,
3639,
727,
987,
32,
8832,
1046,
13719,
3187,
34,
563,
273,
394,
19656,
682,
32,
8832,
1046,
13719,
3187,
34,
5621,
3639,
1250,
2325,
17944,
4229,
273,
629,
2
] |
public String getPaneDescription() { return "Data object editor."; }
|
public String getPaneDescription() { return "Edit the selected object."; }
|
public String getPaneDescription() { return "Data object editor."; }
|
55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/ea7509babe2344eb702969105eb77096cc5b6bcf/EditorPane.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/clipboard/editor/EditorPane.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1689,
8806,
3291,
1435,
288,
327,
315,
751,
733,
4858,
1199,
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,
0,
0,
0,
0,
0,
0,
0,
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,
514,
1689,
8806,
3291,
1435,
288,
327,
315,
751,
733,
4858,
1199,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-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(pcdata != null) writeOut(outputstream, pcdata);
|
if(pcdata != null) { writeOut(outputstream, pcdata); if (!dontCloseNode) if ( nodeNameString.equals(sXDFStructureNodeName) && !XMLDeclAttribs.isEmpty() ) { writeOut(outputstream, "</"+sXDFRootNodeName+">"); } else { writeOut(outputstream, "</"+nodeNameString+">"); } if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); return ; };
|
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, String noChildObjectNodeName ) { String nodeNameString = this.classXDFNodeName; // Setup. Sometimes the name of the node we are opening is different from // that specified in the classXDFNodeName (*sigh*) if (newNodeNameString != null) nodeNameString = newNodeNameString; // 0. To be valid XML, we always start an XML block with an // XML declaration (e.g. somehting like "<?xml standalone="no"?>"). // Here we deal with printing out XML Declaration && its attributes if (!XMLDeclAttribs.isEmpty()) { indent = ""; writeXMLDeclToOutputStream(outputstream, XMLDeclAttribs); } else { Log.warn("Warning: XMLDeclAttribs NOT currently supported."); } // 1. open this node, print its simple XML attributes if (nodeNameString != null) { if (sPrettyXDFOutput) writeOut(outputstream, indent); // indent node if desired // For printing the opening statement we need to invoke a little // Voodoo to keep the DTD happy: the first structure node is always // called by the root node name instead of the usual nodeNameString // We can tell this by checking if this object is derived from class // Structure and if XMLDeclAttrib defined/populated with information // NOTE: This isnt really the way to do this. We need to check if 'this' is // is or has as a superclass xdf.Structure instead of the 'string check' below. // check is class Strucuture & XMLDeclAttribs populated? if ( nodeNameString.equals(sXDFStructureNodeName) && !XMLDeclAttribs.isEmpty() ) { writeOut(outputstream,"<" + sXDFRootNodeName); // print opening root node statement } else { writeOut(outputstream,"<" + nodeNameString); // print opening statement } } // gather info about XMLAttributes in this object/node Hashtable xmlInfo = getXMLInfo(); // 2. Print out string object XML attributes EXCEPT for the one that // matches PCDATAAttribute. ArrayList attribs = (ArrayList) xmlInfo.get("attribList"); // is synchronized here correct? synchronized(attribs) { for (int i = 0; i < attribs.size(); i++) { Hashtable item = (Hashtable) attribs.get(i); writeOut(outputstream, " "+ item.get("name") + "=\"" + item.get("value") + "\""); } } // 3. Print out Node PCData or Child Nodes as specified by object ref // XML attributes. The way this stuff occurs will also affect how we // close the node. ArrayList childObjs = (ArrayList) xmlInfo.get("childObjList"); String pcdata = (String) xmlInfo.get("PCDATA"); if ( childObjs.size() > 0 || pcdata != null || noChildObjectNodeName != null) { // close the opening tag if (nodeNameString != null) { writeOut(outputstream, ">"); if (sPrettyXDFOutput && pcdata == null) writeOut(outputstream, Constants.NEW_LINE); } // deal with object/list XML attributes, if any in our list for (int i = 0; i < childObjs.size(); i++) { Hashtable item = (Hashtable) childObjs.get(i); if (item.get("type") == Constants.LIST_TYPE) { List objectList = (List) item.get("value"); // Im not sure this synchronized wrapper is needed, we are // only accessing stuff here.. Also, should synchronzied wrapper // occur back in the getXMLInfo method instead where the orig // access occured?!? synchronized(objectList) { Iterator iter = objectList.iterator(); // Must be in synchronized block while (iter.hasNext()) { BaseObject containedObj = (BaseObject) iter.next(); if (containedObj != null) { // can happen from pre-allocation of axis values, etc (?) String newindent = indent + sPrettyXDFOutputIndentation; dealWithOpeningGroupNodes(containedObj, outputstream, indent); dealWithClosingGroupNodes(containedObj, outputstream, indent); containedObj.toXDFOutputStream(outputstream, new Hashtable(), newindent); } } } } else if (item.get("type") == Constants.OBJECT_TYPE) { BaseObject containedObj = (BaseObject) item.get("value"); if (containedObj != null) { // can happen from pre-allocation of axis values, etc (?) // shouldnt this be synchronized too?? synchronized(containedObj) { String newindent = indent + sPrettyXDFOutputIndentation; dealWithOpeningGroupNodes(containedObj, outputstream, indent); dealWithClosingGroupNodes(containedObj, outputstream, indent); containedObj.toXDFOutputStream(outputstream, new Hashtable(), newindent); } } } else { // error: weird type, actually shouldnt occur. Is this needed?? Log.error("Weird error: unknown XML attribute type for item:"+item); } } // print out PCDATA, if any if(pcdata != null) writeOut(outputstream, pcdata); // if there are no PCDATA or child objects/nodes then // we print out noChildObjectNodeName if ( childObjs.size() == 0 && pcdata == null && noChildObjectNodeName != null) { if (sPrettyXDFOutput) writeOut(outputstream, indent); writeOut(outputstream, "<" + noChildObjectNodeName + "/>"); if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); } // ok, now deal with closing the node if (nodeNameString != null) { // Needed?? //dealWithClosingGroupNodes(containedObj, outputstream, indent); //Brian: we have to fix this, no whitespace should be allowed between //PCDATA and closing node if (sPrettyXDFOutput) writeOut(outputstream, indent); if (!dontCloseNode) if ( nodeNameString.equals(sXDFStructureNodeName) && !XMLDeclAttribs.isEmpty() ) { writeOut(outputstream, "</"+sXDFRootNodeName+">"); } else { writeOut(outputstream, "</"+nodeNameString+">"); } } } else { if(dontCloseNode) { // it may not have sub-objects, but we dont want to close it // (happens for group objects) } else { // no sub-objects, just close this node writeOut(outputstream, "/>"); } } if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); }
|
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/b5f74590aa4a229b60a4749160322fc01693cd63/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
358,
60,
4577,
4632,
261,
4766,
282,
8962,
876,
3256,
16,
4766,
282,
18559,
3167,
3456,
31292,
16,
4766,
282,
514,
3504,
16,
4766,
282,
1250,
14046,
4605,
907,
16,
4766,
282,
514,
10942,
461,
780,
16,
4766,
282,
514,
1158,
1763,
921,
18948,
27573,
262,
225,
288,
565,
514,
7553,
780,
273,
333,
18,
1106,
60,
4577,
18948,
31,
565,
368,
10939,
18,
348,
25976,
326,
508,
434,
326,
756,
732,
854,
10890,
353,
3775,
628,
565,
368,
716,
1269,
316,
326,
667,
60,
4577,
18948,
261,
14,
87,
2031,
12437,
565,
309,
261,
2704,
18948,
780,
480,
446,
13,
7553,
780,
273,
10942,
461,
780,
31,
565,
368,
374,
18,
2974,
506,
923,
3167,
16,
732,
3712,
787,
392,
3167,
1203,
598,
392,
565,
368,
565,
3167,
8266,
261,
73,
18,
75,
18,
2690,
647,
310,
3007,
20410,
2902,
17676,
1546,
2135,
6,
35,
2984,
2934,
565,
368,
565,
13743,
732,
10490,
598,
225,
19171,
596,
3167,
16110,
4302,
597,
2097,
1677,
565,
309,
16051,
4201,
3456,
31292,
18,
291,
1921,
10756,
288,
3639,
3504,
273,
1408,
31,
3639,
1045,
4201,
3456,
774,
4632,
12,
2844,
3256,
16,
3167,
3456,
31292,
1769,
565,
289,
469,
288,
4202,
1827,
18,
8935,
2932,
6210,
30,
3167,
3456,
31292,
4269,
4551,
3260,
1199,
1769,
565,
289,
565,
368,
404,
18,
1696,
333,
756,
16,
1172,
2097,
4143,
3167,
1677,
565,
309,
261,
2159,
461,
780,
480,
446,
13,
288,
1377,
309,
261,
87,
20491,
60,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
358,
60,
4577,
4632,
261,
4766,
282,
8962,
876,
3256,
16,
4766,
282,
18559,
3167,
3456,
31292,
16,
4766,
282,
514,
3504,
16,
4766,
282,
1250,
14046,
4605,
907,
16,
4766,
282,
514,
10942,
461,
780,
16,
4766,
282,
514,
1158,
1763,
921,
18948,
27573,
262,
225,
288,
565,
514,
7553,
780,
273,
333,
18,
1106,
60,
4577,
18948,
31,
565,
368,
10939,
18,
348,
25976,
326,
508,
434,
326,
756,
732,
854,
10890,
353,
3775,
628,
565,
368,
716,
1269,
316,
326,
667,
60,
4577,
18948,
261,
14,
87,
2031,
12437,
565,
309,
261,
2704,
18948,
780,
480,
446,
13,
7553,
780,
273,
10942,
461,
780,
31,
565,
368,
374,
18,
2974,
506,
923,
3167,
2
] |
null, "", null);
|
null, "", null);
|
protected IASTExpression specialCastExpression(IASTScope scope, IASTExpression.Kind kind) throws EndOfFileException, BacktrackException { consume(); consume(IToken.tLT); IASTTypeId duple = typeId(scope, false); consume(IToken.tGT); consume(IToken.tLPAREN); IASTExpression lhs = expression(scope); consume(IToken.tRPAREN); try { return astFactory.createExpression( scope, kind, lhs, null, null, duple, null, "", null); } catch (ASTSemanticException e) { throw backtrack; } catch (Exception e) { throw backtrack; } }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/95f42aeb9e7f38db093795981bd7c7300a3eeeb6/ExpressionParser.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ExpressionParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
467,
9053,
2300,
4582,
9735,
2300,
12,
45,
9053,
3876,
2146,
16,
467,
9053,
2300,
18,
5677,
3846,
13,
1216,
4403,
951,
812,
503,
16,
4297,
4101,
503,
288,
202,
565,
7865,
5621,
202,
565,
7865,
12,
1285,
969,
18,
88,
12050,
1769,
202,
565,
467,
9053,
11731,
302,
2268,
273,
24361,
12,
4887,
16,
629,
1769,
202,
565,
7865,
12,
1285,
969,
18,
88,
16506,
1769,
202,
565,
7865,
12,
1285,
969,
18,
88,
48,
15111,
1769,
202,
565,
467,
9053,
2300,
8499,
273,
2652,
12,
4887,
1769,
202,
565,
7865,
12,
1285,
969,
18,
88,
54,
15111,
1769,
202,
565,
775,
202,
565,
288,
202,
3639,
327,
3364,
1733,
18,
2640,
2300,
12,
202,
5411,
2146,
16,
202,
5411,
3846,
16,
202,
5411,
8499,
16,
202,
5411,
446,
16,
202,
5411,
446,
16,
202,
5411,
302,
2268,
16,
202,
5411,
446,
16,
23453,
446,
1769,
202,
565,
289,
202,
565,
1044,
261,
9053,
13185,
9941,
503,
425,
13,
202,
565,
288,
202,
3639,
604,
1473,
4101,
31,
202,
565,
289,
1044,
261,
503,
425,
13,
202,
565,
288,
202,
3639,
604,
1473,
4101,
31,
202,
565,
289,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
1117,
467,
9053,
2300,
4582,
9735,
2300,
12,
45,
9053,
3876,
2146,
16,
467,
9053,
2300,
18,
5677,
3846,
13,
1216,
4403,
951,
812,
503,
16,
4297,
4101,
503,
288,
202,
565,
7865,
5621,
202,
565,
7865,
12,
1285,
969,
18,
88,
12050,
1769,
202,
565,
467,
9053,
11731,
302,
2268,
273,
24361,
12,
4887,
16,
629,
1769,
202,
565,
7865,
12,
1285,
969,
18,
88,
16506,
1769,
202,
565,
7865,
12,
1285,
969,
18,
88,
48,
15111,
1769,
202,
565,
467,
9053,
2300,
8499,
273,
2652,
12,
4887,
1769,
202,
565,
7865,
12,
1285,
969,
18,
88,
54,
15111,
1769,
202,
565,
775,
202,
565,
288,
202,
3639,
327,
3364,
1733,
18,
2640,
2300,
12,
202,
2
] |
out.println("Usage: unsetalias [username]"); out.flush();
|
writeLoggedFlushedResponse("Usage: unsetalias [username]");
|
private boolean doUNSETALIAS(String argument) { if ((argument == null) || (argument.equals(""))) { out.println("Usage: unsetalias [username]"); out.flush(); return true; } String username = argument; JamesUser user = (JamesUser) users.getUserByName(username); if (user == null) { out.println("No such user " + username); } else if (user.getAliasing()){ user.setAliasing(false); users.updateUser(user); StringBuffer responseBuffer = new StringBuffer(64) .append("Alias for ") .append(username) .append(" unset"); String response = responseBuffer.toString(); out.println(response); getLogger().info(response); } else { out.println("Aliasing not active for" + username); getLogger().info("Aliasing not active for" + username); } out.flush(); return true; }
|
47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/790954f301c3dc9748c5bf2f1707e9dcbf23b2a7/RemoteManagerHandler.java/buggy/src/java/org/apache/james/remotemanager/RemoteManagerHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
741,
2124,
4043,
23784,
12,
780,
1237,
13,
288,
3639,
309,
14015,
3446,
422,
446,
13,
747,
261,
3446,
18,
14963,
2932,
6,
20349,
288,
5411,
596,
18,
8222,
2932,
5357,
30,
2646,
4930,
306,
5053,
4279,
1769,
5411,
596,
18,
11330,
5621,
5411,
327,
638,
31,
3639,
289,
3639,
514,
2718,
273,
1237,
31,
3639,
804,
753,
1299,
729,
273,
261,
46,
753,
1299,
13,
3677,
18,
588,
1299,
5911,
12,
5053,
1769,
3639,
309,
261,
1355,
422,
446,
13,
288,
5411,
596,
18,
8222,
2932,
2279,
4123,
729,
315,
397,
2718,
1769,
3639,
289,
469,
309,
261,
1355,
18,
588,
2936,
310,
10756,
95,
5411,
729,
18,
542,
2936,
310,
12,
5743,
1769,
5411,
3677,
18,
2725,
1299,
12,
1355,
1769,
5411,
6674,
766,
1892,
273,
7734,
394,
6674,
12,
1105,
13,
13491,
263,
6923,
2932,
2936,
364,
9369,
13491,
263,
6923,
12,
5053,
13,
13491,
263,
6923,
2932,
2646,
8863,
5411,
514,
766,
273,
766,
1892,
18,
10492,
5621,
5411,
596,
18,
8222,
12,
2740,
1769,
5411,
7156,
7675,
1376,
12,
2740,
1769,
3639,
289,
469,
288,
5411,
596,
18,
8222,
2932,
2936,
310,
486,
2695,
364,
6,
397,
2718,
1769,
5411,
7156,
7675,
1376,
2932,
2936,
310,
486,
2695,
364,
6,
397,
2718,
1769,
3639,
289,
3639,
596,
18,
11330,
5621,
3639,
327,
638,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
741,
2124,
4043,
23784,
12,
780,
1237,
13,
288,
3639,
309,
14015,
3446,
422,
446,
13,
747,
261,
3446,
18,
14963,
2932,
6,
20349,
288,
5411,
596,
18,
8222,
2932,
5357,
30,
2646,
4930,
306,
5053,
4279,
1769,
5411,
596,
18,
11330,
5621,
5411,
327,
638,
31,
3639,
289,
3639,
514,
2718,
273,
1237,
31,
3639,
804,
753,
1299,
729,
273,
261,
46,
753,
1299,
13,
3677,
18,
588,
1299,
5911,
12,
5053,
1769,
3639,
309,
261,
1355,
422,
446,
13,
288,
5411,
596,
18,
8222,
2932,
2279,
4123,
729,
315,
397,
2718,
1769,
3639,
289,
469,
309,
261,
1355,
18,
588,
2936,
310,
10756,
95,
5411,
729,
18,
542,
2936,
310,
12,
5743,
1769,
5411,
2
] |
offset = VM_Entrypoints.threadIdField.getOffset();
|
offset = VM_Entrypoints.threadIdField.getOffsetAsInt();
|
static void emitVirtualMachineDeclarations (int bootImageAddress) { // load address for the boot image // p("static const int bootImageAddress = 0x" + Integer.toHexString(bootImageAddress) + ";\n"); // values in VM_Constants, from VM_Configuration // //-#if RVM_FOR_POWERPC if (VM.BuildForPowerPC) { p("static const int VM_Constants_JTOC_POINTER = " + VM_Constants.JTOC_POINTER + ";\n"); p("static const int VM_Constants_FRAME_POINTER = " + VM_Constants.FRAME_POINTER + ";\n"); p("static const int VM_Constants_PROCESSOR_REGISTER = " + VM_Constants.PROCESSOR_REGISTER + ";\n"); p("static const int VM_Constants_FIRST_VOLATILE_GPR = " + VM_Constants.FIRST_VOLATILE_GPR + ";\n"); p("static const int VM_Constants_DIVIDE_BY_ZERO_MASK = " + VM_Constants.DIVIDE_BY_ZERO_MASK + ";\n"); p("static const int VM_Constants_DIVIDE_BY_ZERO_TRAP = " + VM_Constants.DIVIDE_BY_ZERO_TRAP + ";\n"); p("static const int VM_Constants_MUST_IMPLEMENT_MASK = " + VM_Constants.MUST_IMPLEMENT_MASK + ";\n"); p("static const int VM_Constants_MUST_IMPLEMENT_TRAP = " + VM_Constants.MUST_IMPLEMENT_TRAP + ";\n"); p("static const int VM_Constants_STORE_CHECK_MASK = " + VM_Constants.STORE_CHECK_MASK + ";\n"); p("static const int VM_Constants_STORE_CHECK_TRAP = " + VM_Constants.STORE_CHECK_TRAP + ";\n"); p("static const int VM_Constants_ARRAY_INDEX_MASK = " + VM_Constants.ARRAY_INDEX_MASK + ";\n"); p("static const int VM_Constants_ARRAY_INDEX_TRAP = " + VM_Constants.ARRAY_INDEX_TRAP + ";\n"); p("static const int VM_Constants_ARRAY_INDEX_REG_MASK = " + VM_Constants.ARRAY_INDEX_REG_MASK + ";\n"); p("static const int VM_Constants_ARRAY_INDEX_REG_SHIFT = " + VM_Constants.ARRAY_INDEX_REG_SHIFT + ";\n"); p("static const int VM_Constants_CONSTANT_ARRAY_INDEX_MASK = " + VM_Constants.CONSTANT_ARRAY_INDEX_MASK + ";\n"); p("static const int VM_Constants_CONSTANT_ARRAY_INDEX_TRAP = " + VM_Constants.CONSTANT_ARRAY_INDEX_TRAP + ";\n"); p("static const int VM_Constants_CONSTANT_ARRAY_INDEX_INFO = " + VM_Constants.CONSTANT_ARRAY_INDEX_INFO + ";\n"); p("static const int VM_Constants_WRITE_BUFFER_OVERFLOW_MASK = " + VM_Constants.WRITE_BUFFER_OVERFLOW_MASK + ";\n"); p("static const int VM_Constants_WRITE_BUFFER_OVERFLOW_TRAP = " + VM_Constants.WRITE_BUFFER_OVERFLOW_TRAP + ";\n"); p("static const int VM_Constants_STACK_OVERFLOW_MASK = " + VM_Constants.STACK_OVERFLOW_MASK + ";\n"); p("static const int VM_Constants_STACK_OVERFLOW_HAVE_FRAME_TRAP = " + VM_Constants.STACK_OVERFLOW_HAVE_FRAME_TRAP + ";\n"); p("static const int VM_Constants_STACK_OVERFLOW_TRAP = " + VM_Constants.STACK_OVERFLOW_TRAP + ";\n"); p("static const int VM_Constants_CHECKCAST_MASK = " + VM_Constants.CHECKCAST_MASK + ";\n"); p("static const int VM_Constants_CHECKCAST_TRAP = " + VM_Constants.CHECKCAST_TRAP + ";\n"); p("static const int VM_Constants_REGENERATE_MASK = " + VM_Constants.REGENERATE_MASK + ";\n"); p("static const int VM_Constants_REGENERATE_TRAP = " + VM_Constants.REGENERATE_TRAP + ";\n"); p("static const int VM_Constants_NULLCHECK_MASK = " + VM_Constants.NULLCHECK_MASK + ";\n"); p("static const int VM_Constants_NULLCHECK_TRAP = " + VM_Constants.NULLCHECK_TRAP + ";\n"); p("static const int VM_Constants_JNI_STACK_TRAP_MASK = " + VM_Constants.JNI_STACK_TRAP_MASK + ";\n"); p("static const int VM_Constants_JNI_STACK_TRAP = " + VM_Constants.JNI_STACK_TRAP + ";\n"); p("static const int VM_Constants_STACKFRAME_NEXT_INSTRUCTION_OFFSET = " + VM_Constants.STACKFRAME_NEXT_INSTRUCTION_OFFSET + ";\n"); p("static const int VM_Constants_STACKFRAME_ALIGNMENT = " + VM_Constants.STACKFRAME_ALIGNMENT + " ;\n"); } //-#endif //-#if RVM_FOR_IA32 if (VM.BuildForIA32) { p("static const int VM_Constants_EAX = " + VM_Constants.EAX + ";\n"); p("static const int VM_Constants_ECX = " + VM_Constants.ECX + ";\n"); p("static const int VM_Constants_EDX = " + VM_Constants.EDX + ";\n"); p("static const int VM_Constants_EBX = " + VM_Constants.EBX + ";\n"); p("static const int VM_Constants_ESP = " + VM_Constants.ESP + ";\n"); p("static const int VM_Constants_EBP = " + VM_Constants.EBP + ";\n"); p("static const int VM_Constants_ESI = " + VM_Constants.ESI + ";\n"); p("static const int VM_Constants_EDI = " + VM_Constants.EDI + ";\n"); p("static const int VM_Constants_STACKFRAME_BODY_OFFSET = " + VM_Constants.STACKFRAME_BODY_OFFSET + ";\n"); p("static const int VM_Constants_STACKFRAME_RETURN_ADDRESS_OFFSET = " + VM_Constants.STACKFRAME_RETURN_ADDRESS_OFFSET + ";\n"); p("static const int VM_Constants_RVM_TRAP_BASE = " + VM_Constants.RVM_TRAP_BASE + ";\n"); } //-#endif p("static const int VM_Constants_STACK_SIZE_GUARD = " + VM_Constants.STACK_SIZE_GUARD + ";\n"); //-#if RVM_WITH_FLEXIBLE_STACK_SIZES p("static const int VM_Constants_STACK_SIZE_MIN = " + VM_Constants.STACK_SIZE_MIN + ";\n"); p("static const int VM_Constants_STACK_SIZE_NORMAL_DEFAULT = " + VM_Constants.STACK_SIZE_NORMAL_DEFAULT + ";\n"); p("static const int VM_Constants_STACK_SIZE_GROW_MIN = " + VM_Constants.STACK_SIZE_GROW_MIN + ";\n"); p("static const int VM_Constants_STACK_SIZE_GROW_DEFAULT = " + VM_Constants.STACK_SIZE_GROW_DEFAULT + ";\n"); p("static const int VM_Constants_STACK_SIZE_MAX_DEFAULT = " + VM_Constants.STACK_SIZE_MAX_DEFAULT + ";\n"); //-#endif // RVM_WITH_FLEXIBLE_STACK_SIZES p("static const int VM_Constants_INVISIBLE_METHOD_ID = " + VM_Constants.INVISIBLE_METHOD_ID + ";\n"); p("static const int VM_ThinLockConstants_TL_THREAD_ID_SHIFT= " + VM_ThinLockConstants.TL_THREAD_ID_SHIFT + ";\n"); p("static const int VM_Constants_STACKFRAME_HEADER_SIZE = " + VM_Constants.STACKFRAME_HEADER_SIZE + ";\n"); p("static const int VM_Constants_STACKFRAME_METHOD_ID_OFFSET = " + VM_Constants.STACKFRAME_METHOD_ID_OFFSET + ";\n"); p("static const int VM_Constants_STACKFRAME_FRAME_POINTER_OFFSET = " + VM_Constants.STACKFRAME_FRAME_POINTER_OFFSET + ";\n"); p("static const int VM_Constants_STACKFRAME_SENTINEL_FP = " + VM_Constants.STACKFRAME_SENTINEL_FP.toInt() + ";\n"); p("\n"); // values in VM_ObjectModel // pln("static const int VM_ObjectModel_ARRAY_LENGTH_OFFSET = " + VM_ObjectModel.getArrayLengthOffset() + "\n;"); // values in VM_Scheduler // p("static const int VM_Scheduler_PRIMORDIAL_PROCESSOR_ID = " + VM_Scheduler.PRIMORDIAL_PROCESSOR_ID + ";\n"); p("static const int VM_Scheduler_PRIMORDIAL_THREAD_INDEX = " + VM_Scheduler.PRIMORDIAL_THREAD_INDEX + ";\n"); p("\n"); // values in VM_ThreadEventConstants // p("static const double VM_ThreadEventConstants_WAIT_INFINITE = " + VM_ThreadEventConstants.WAIT_INFINITE + ";\n"); // values in VM_ThreadIOQueue // p("static const int VM_ThreadIOQueue_READ_OFFSET = " + VM_ThreadIOQueue.READ_OFFSET + ";\n"); p("static const int VM_ThreadIOQueue_WRITE_OFFSET = " + VM_ThreadIOQueue.WRITE_OFFSET + ";\n"); p("static const int VM_ThreadIOQueue_EXCEPT_OFFSET = " + VM_ThreadIOQueue.EXCEPT_OFFSET + ";\n"); p("\n"); // values in VM_ThreadIOConstants // p("static const int VM_ThreadIOConstants_FD_READY = " + VM_ThreadIOConstants.FD_READY + ";\n"); p("static const int VM_ThreadIOConstants_FD_READY_BIT = " + VM_ThreadIOConstants.FD_READY_BIT + ";\n"); p("static const int VM_ThreadIOConstants_FD_INVALID = " + VM_ThreadIOConstants.FD_INVALID + ";\n"); p("static const int VM_ThreadIOConstants_FD_INVALID_BIT = " + VM_ThreadIOConstants.FD_INVALID_BIT + ";\n"); p("static const int VM_ThreadIOConstants_FD_MASK = " + VM_ThreadIOConstants.FD_MASK + ";\n"); p("\n"); // values in VM_ThreadProcessWaitQueue // p("static const int VM_ThreadProcessWaitQueue_PROCESS_FINISHED = " + VM_ThreadProcessWaitQueue.PROCESS_FINISHED + ";\n"); // values in VM_Runtime // p("static const int VM_Runtime_TRAP_UNKNOWN = " + VM_Runtime.TRAP_UNKNOWN + ";\n"); p("static const int VM_Runtime_TRAP_NULL_POINTER = " + VM_Runtime.TRAP_NULL_POINTER + ";\n"); p("static const int VM_Runtime_TRAP_ARRAY_BOUNDS = " + VM_Runtime.TRAP_ARRAY_BOUNDS + ";\n"); p("static const int VM_Runtime_TRAP_DIVIDE_BY_ZERO = " + VM_Runtime.TRAP_DIVIDE_BY_ZERO + ";\n"); p("static const int VM_Runtime_TRAP_STACK_OVERFLOW = " + VM_Runtime.TRAP_STACK_OVERFLOW + ";\n"); p("static const int VM_Runtime_TRAP_CHECKCAST = " + VM_Runtime.TRAP_CHECKCAST + ";\n"); p("static const int VM_Runtime_TRAP_REGENERATE = " + VM_Runtime.TRAP_REGENERATE + ";\n"); p("static const int VM_Runtime_TRAP_JNI_STACK = " + VM_Runtime.TRAP_JNI_STACK + ";\n"); p("static const int VM_Runtime_TRAP_MUST_IMPLEMENT = " + VM_Runtime.TRAP_MUST_IMPLEMENT + ";\n"); p("static const int VM_Runtime_TRAP_STORE_CHECK = " + VM_Runtime.TRAP_STORE_CHECK + ";\n"); pln(); // values in VM_FileSystem // p("static const int VM_FileSystem_OPEN_READ = " + VM_FileSystem.OPEN_READ + ";\n"); p("static const int VM_FileSystem_OPEN_WRITE = " + VM_FileSystem.OPEN_WRITE + ";\n"); p("static const int VM_FileSystem_OPEN_MODIFY = " + VM_FileSystem.OPEN_MODIFY + ";\n"); p("static const int VM_FileSystem_OPEN_APPEND = " + VM_FileSystem.OPEN_APPEND + ";\n"); p("static const int VM_FileSystem_SEEK_SET = " + VM_FileSystem.SEEK_SET + ";\n"); p("static const int VM_FileSystem_SEEK_CUR = " + VM_FileSystem.SEEK_CUR + ";\n"); p("static const int VM_FileSystem_SEEK_END = " + VM_FileSystem.SEEK_END + ";\n"); p("static const int VM_FileSystem_STAT_EXISTS = " + VM_FileSystem.STAT_EXISTS + ";\n"); p("static const int VM_FileSystem_STAT_IS_FILE = " + VM_FileSystem.STAT_IS_FILE + ";\n"); p("static const int VM_FileSystem_STAT_IS_DIRECTORY = " + VM_FileSystem.STAT_IS_DIRECTORY + ";\n"); p("static const int VM_FileSystem_STAT_IS_READABLE = " + VM_FileSystem.STAT_IS_READABLE + ";\n"); p("static const int VM_FileSystem_STAT_IS_WRITABLE = " + VM_FileSystem.STAT_IS_WRITABLE + ";\n"); p("static const int VM_FileSystem_STAT_LAST_MODIFIED = " + VM_FileSystem.STAT_LAST_MODIFIED + ";\n"); p("static const int VM_FileSystem_STAT_LENGTH = " + VM_FileSystem.STAT_LENGTH + ";\n"); // Value in org.mmtk.vm.Constants: p("static const int MMTk_Constants_BYTES_IN_PAGE = " + org.mmtk.utility.Constants.BYTES_IN_PAGE + ";\n"); // fields in VM_Processor // int offset; offset = VM_Entrypoints.timeSliceExpiredField.getOffset(); p("static const int VM_Processor_timeSliceExpired_offset = " + offset + ";\n"); offset = VM_Entrypoints.takeYieldpointField.getOffset(); p("static const int VM_Processor_takeYieldpoint_offset = " + offset + ";\n"); offset = VM_Entrypoints.activeThreadStackLimitField.getOffset(); offset = VM_Entrypoints.activeThreadStackLimitField.getOffset(); p("static const int VM_Processor_activeThreadStackLimit_offset = " + offset + ";\n"); offset = VM_Entrypoints.pthreadIDField.getOffset(); p("static const int VM_Processor_pthread_id_offset = " + offset + ";\n"); offset = VM_Entrypoints.timerTicksField.getOffset(); p("static const int VM_Processor_timerTicks_offset = " + offset + ";\n"); offset = VM_Entrypoints.reportedTimerTicksField.getOffset(); p("static const int VM_Processor_reportedTimerTicks_offset = " + offset + ";\n"); offset = VM_Entrypoints.activeThreadField.getOffset(); p("static const int VM_Processor_activeThread_offset = " + offset + ";\n"); offset = VM_Entrypoints.threadIdField.getOffset(); p("static const int VM_Processor_threadId_offset = " + offset + ";\n"); //-#if RVM_FOR_IA32 offset = VM_Entrypoints.framePointerField.getOffset(); p("static const int VM_Processor_framePointer_offset = " + offset + ";\n"); offset = VM_Entrypoints.jtocField.getOffset(); p("static const int VM_Processor_jtoc_offset = " + offset + ";\n"); offset = VM_Entrypoints.arrayIndexTrapParamField.getOffset(); p("static const int VM_Processor_arrayIndexTrapParam_offset = " + offset + ";\n"); //-#endif // fields in VM_Thread // offset = VM_Entrypoints.threadStackField.getOffset(); p("static const int VM_Thread_stack_offset = " + offset + ";\n"); offset = VM_Entrypoints.stackLimitField.getOffset(); p("static const int VM_Thread_stackLimit_offset = " + offset + ";\n"); offset = VM_Entrypoints.threadHardwareExceptionRegistersField.getOffset(); p("static const int VM_Thread_hardwareExceptionRegisters_offset = " + offset + ";\n"); offset = VM_Entrypoints.jniEnvField.getOffset(); p("static const int VM_Thread_jniEnv_offset = " + offset + ";\n"); // fields in VM_Registers // offset = VM_Entrypoints.registersGPRsField.getOffset(); p("static const int VM_Registers_gprs_offset = " + offset + ";\n"); offset = VM_Entrypoints.registersFPRsField.getOffset(); p("static const int VM_Registers_fprs_offset = " + offset + ";\n"); offset = VM_Entrypoints.registersIPField.getOffset(); p("static const int VM_Registers_ip_offset = " + offset + ";\n"); //-#if RVM_FOR_IA32 offset = VM_Entrypoints.registersFPField.getOffset(); p("static const int VM_Registers_fp_offset = " + offset + ";\n"); //-#endif //-#if RVM_FOR_POWERPC offset = VM_Entrypoints.registersLRField.getOffset(); p("static const int VM_Registers_lr_offset = " + offset + ";\n"); //-#endif offset = VM_Entrypoints.registersInUseField.getOffset(); p("static const int VM_Registers_inuse_offset = " + offset + ";\n"); // fields in VM_JNIEnvironment offset = VM_Entrypoints.JNIExternalFunctionsField.getOffset(); p("static const int VM_JNIEnvironment_JNIExternalFunctions_offset = " + offset + ";\n"); // fields in java.net.InetAddress // offset = VM_Entrypoints.inetAddressAddressField.getOffset(); p("static const int java_net_InetAddress_address_offset = " + offset + ";\n"); offset = VM_Entrypoints.inetAddressFamilyField.getOffset(); p("static const int java_net_InetAddress_family_offset = " + offset + ";\n"); // fields in java.net.SocketImpl // offset = VM_Entrypoints.socketImplAddressField.getOffset(); p("static const int java_net_SocketImpl_address_offset = " + offset + ";\n"); offset = VM_Entrypoints.socketImplPortField.getOffset(); p("static const int java_net_SocketImpl_port_offset = " + offset + ";\n"); // fields in com.ibm.JikesRVM.memoryManagers.JMTk.BasePlan offset = VM_Entrypoints.gcStatusField.getOffset(); p("static const int com_ibm_JikesRVM_memoryManagers_JMTk_BasePlan_gcStatusOffset = " + offset + ";\n"); }
|
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/3a1409586ed0fc007c4120f3a96d6f7a1ae3593c/GenerateInterfaceDeclarations.java/buggy/rvm/src/tools/bootImageRunner/GenerateInterfaceDeclarations.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
918,
3626,
27454,
21408,
261,
474,
4835,
2040,
1887,
13,
288,
565,
368,
1262,
1758,
364,
326,
4835,
1316,
565,
368,
565,
293,
2932,
3845,
1866,
509,
4835,
2040,
1887,
13491,
273,
374,
92,
6,
3639,
397,
2144,
18,
869,
14866,
12,
7137,
2040,
1887,
13,
397,
30750,
82,
8863,
565,
368,
924,
316,
8251,
67,
2918,
16,
628,
8251,
67,
1750,
565,
368,
565,
368,
17,
7,
430,
534,
7397,
67,
7473,
67,
2419,
18839,
3513,
565,
309,
261,
7397,
18,
3116,
1290,
13788,
3513,
13,
288,
1377,
293,
2932,
3845,
1866,
509,
8251,
67,
2918,
67,
46,
4296,
39,
67,
2419,
9125,
9079,
273,
315,
1850,
397,
8251,
67,
2918,
18,
46,
4296,
39,
67,
2419,
9125,
397,
30750,
82,
8863,
1377,
293,
2932,
3845,
1866,
509,
8251,
67,
2918,
67,
15072,
67,
2419,
9125,
2868,
273,
315,
1850,
397,
8251,
67,
2918,
18,
15072,
67,
2419,
9125,
397,
30750,
82,
8863,
1377,
293,
2932,
3845,
1866,
509,
8251,
67,
2918,
67,
16560,
916,
67,
27511,
540,
273,
315,
1850,
397,
8251,
67,
2918,
18,
16560,
916,
67,
27511,
397,
30750,
82,
8863,
1377,
293,
2932,
3845,
1866,
509,
8251,
67,
2918,
67,
15354,
67,
29439,
67,
43,
8025,
540,
273,
315,
1850,
397,
8251,
67,
2918,
18,
15354,
67,
29439,
67,
43,
8025,
397,
30750,
82,
8863,
1377,
293,
2932,
3845,
1866,
509,
8251,
67,
2918,
67,
31901,
10385,
67,
6486,
67,
24968,
67,
11704,
3639,
273,
315,
1850,
397,
8251,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
918,
3626,
27454,
21408,
261,
474,
4835,
2040,
1887,
13,
288,
565,
368,
1262,
1758,
364,
326,
4835,
1316,
565,
368,
565,
293,
2932,
3845,
1866,
509,
4835,
2040,
1887,
13491,
273,
374,
92,
6,
3639,
397,
2144,
18,
869,
14866,
12,
7137,
2040,
1887,
13,
397,
30750,
82,
8863,
565,
368,
924,
316,
8251,
67,
2918,
16,
628,
8251,
67,
1750,
565,
368,
565,
368,
17,
7,
430,
534,
7397,
67,
7473,
67,
2419,
18839,
3513,
565,
309,
261,
7397,
18,
3116,
1290,
13788,
3513,
13,
288,
1377,
293,
2932,
3845,
1866,
509,
8251,
67,
2918,
67,
46,
4296,
39,
67,
2419,
9125,
9079,
273,
315,
1850,
397,
8251,
67,
2918,
18,
46,
4296,
39,
67,
2
] |
Logger.normal(core, "TMCI started on "+bind_ip+":"+port); System.out.println("TMCI started on "+bind_ip+":"+port);
|
Logger.normal(core, "TMCI started on "+bind_ip+ ':' +port); System.out.println("TMCI started on "+bind_ip+ ':' +port);
|
public static void maybeCreate(Node node, Config config) throws IOException { SubConfig TMCIConfig = new SubConfig("console", config); NodeClientCore core = node.clientCore; TMCIConfig.register("enabled", true, 1, true, false, "Enable TMCI", "Whether to enable the TMCI", new TMCIEnabledCallback(core)); TMCIConfig.register("bindTo", "127.0.0.1", 2, true, false, "IP address to bind to", "IP address to bind to", new TMCIBindtoCallback(core)); TMCIConfig.register("allowedHosts", "127.0.0.1,0:0:0:0:0:0:0:1", 2, true, false, "Allowed hosts", "Hostnames or IP addresses that are allowed to connect to the TMCI. May be a comma-separated list of hostnames, single IPs and even CIDR masked IPs like 192.168.0.0/24", new TMCIAllowedHostsCallback(core)); TMCIConfig.register("port", 2323, 1, true, false, "Telnet port", "Telnet port number", new TCMIPortNumberCallback(core)); TMCIConfig.register("directEnabled", false, 1, true, false, "Enable on stdout/stdin?", "Enable text mode client interface on standard input/output? (.enabled refers to providing a telnet-style server, this runs it over a socket)", new TMCIDirectEnabledCallback(core)); boolean TMCIEnabled = TMCIConfig.getBoolean("enabled"); int port = TMCIConfig.getInt("port"); String bind_ip = TMCIConfig.getString("bindTo"); String allowedHosts = TMCIConfig.getString("allowedHosts"); boolean direct = TMCIConfig.getBoolean("directEnabled"); if(TMCIEnabled){ new TextModeClientInterfaceServer(node, port, bind_ip, allowedHosts).start(); Logger.normal(core, "TMCI started on "+bind_ip+":"+port); System.out.println("TMCI started on "+bind_ip+":"+port); } else{ Logger.normal(core, "Not starting TMCI as it's disabled"); System.out.println("Not starting TMCI as it's disabled"); } if(direct) { HighLevelSimpleClient client = core.makeClient(RequestStarter.INTERACTIVE_PRIORITY_CLASS, true); TextModeClientInterface directTMCI = new TextModeClientInterface(node, client, core.downloadDir, System.in, System.out); Thread t = new Thread(directTMCI, "Direct text mode interface"); t.setDaemon(true); t.start(); core.setDirectTMCI(directTMCI); } TMCIConfig.finishedInitialization(); }
|
45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/62fd59041864b4ed1f43adc676de6bfb5ea977f3/TextModeClientInterfaceServer.java/clean/src/freenet/node/TextModeClientInterfaceServer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
6944,
1684,
12,
907,
756,
16,
1903,
642,
13,
1216,
1860,
288,
202,
202,
1676,
809,
27435,
7266,
809,
273,
394,
2592,
809,
2932,
8698,
3113,
642,
1769,
9506,
202,
907,
1227,
4670,
2922,
273,
756,
18,
2625,
4670,
31,
9506,
202,
22903,
7266,
809,
18,
4861,
2932,
5745,
3113,
638,
16,
404,
16,
638,
16,
629,
16,
315,
8317,
27435,
7266,
3113,
315,
18247,
358,
4237,
326,
27435,
7266,
3113,
9506,
202,
2704,
27435,
7266,
1526,
2428,
12,
3644,
10019,
202,
202,
22903,
7266,
809,
18,
4861,
2932,
4376,
774,
3113,
315,
14260,
18,
20,
18,
20,
18,
21,
3113,
576,
16,
638,
16,
629,
16,
315,
2579,
1758,
358,
1993,
358,
3113,
315,
2579,
1758,
358,
1993,
358,
3113,
9506,
202,
2704,
27435,
7266,
3357,
869,
2428,
12,
3644,
10019,
202,
202,
22903,
7266,
809,
18,
4861,
2932,
8151,
12172,
3113,
315,
14260,
18,
20,
18,
20,
18,
21,
16,
20,
30,
20,
30,
20,
30,
20,
30,
20,
30,
20,
30,
20,
30,
21,
3113,
576,
16,
638,
16,
629,
16,
315,
5042,
7206,
3113,
315,
2594,
1973,
578,
2971,
6138,
716,
854,
2935,
358,
3077,
358,
326,
27435,
7266,
18,
16734,
506,
279,
8716,
17,
24622,
666,
434,
1479,
1973,
16,
2202,
23842,
471,
5456,
16906,
13196,
23842,
3007,
20217,
18,
23329,
18,
20,
18,
20,
19,
3247,
3113,
9506,
202,
2704,
27435,
7266,
5042,
12172,
2428,
12,
3644,
10019,
202,
202,
22903,
7266,
809,
18,
4861,
2932,
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,
6944,
1684,
12,
907,
756,
16,
1903,
642,
13,
1216,
1860,
288,
202,
202,
1676,
809,
27435,
7266,
809,
273,
394,
2592,
809,
2932,
8698,
3113,
642,
1769,
9506,
202,
907,
1227,
4670,
2922,
273,
756,
18,
2625,
4670,
31,
9506,
202,
22903,
7266,
809,
18,
4861,
2932,
5745,
3113,
638,
16,
404,
16,
638,
16,
629,
16,
315,
8317,
27435,
7266,
3113,
315,
18247,
358,
4237,
326,
27435,
7266,
3113,
9506,
202,
2704,
27435,
7266,
1526,
2428,
12,
3644,
10019,
202,
202,
22903,
7266,
809,
18,
4861,
2932,
4376,
774,
3113,
315,
14260,
18,
20,
18,
20,
18,
21,
3113,
576,
16,
638,
16,
629,
16,
315,
2579,
1758,
358,
1993,
358,
3113,
2
] |
JumpException je = new JumpException(JumpException.JumpType.ThrowJump);
|
public static IRubyObject rbThrow(IRubyObject recv, IRubyObject[] args) { IRuby runtime = recv.getRuntime(); JumpException je = new JumpException(JumpException.JumpType.ThrowJump); String tag = args[0].asSymbol(); IRubyObject value = args.length > 1 ? args[1] : recv.getRuntime().getNil(); RubyException nameException = new RubyException(runtime, runtime.getClass("NameError"), "uncaught throw '" + tag + '\''); je.setPrimaryData(tag); je.setSecondaryData(value); je.setTertiaryData(nameException); throw je; }
|
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/43527512ed5edac73606a65971bfe9f8a7c23c7b/RubyKernel.java/clean/src/org/jruby/RubyKernel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
7138,
8282,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
15908,
10340,
3099,
273,
10665,
18,
588,
5576,
5621,
7734,
514,
1047,
273,
833,
63,
20,
8009,
345,
5335,
5621,
3639,
15908,
10340,
921,
460,
273,
833,
18,
2469,
405,
404,
692,
833,
63,
21,
65,
294,
10665,
18,
588,
5576,
7675,
588,
12616,
5621,
3639,
19817,
503,
508,
503,
273,
394,
19817,
503,
12,
9448,
16,
3099,
18,
588,
797,
2932,
461,
668,
6,
3631,
315,
551,
16510,
604,
2119,
397,
1047,
397,
15053,
1769,
7734,
30356,
18,
542,
6793,
751,
12,
2692,
1769,
3639,
30356,
18,
542,
14893,
751,
12,
1132,
1769,
3639,
30356,
18,
542,
56,
1051,
77,
814,
751,
12,
529,
503,
1769,
7734,
604,
30356,
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,
1071,
760,
15908,
10340,
921,
7138,
8282,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
15908,
10340,
3099,
273,
10665,
18,
588,
5576,
5621,
7734,
514,
1047,
273,
833,
63,
20,
8009,
345,
5335,
5621,
3639,
15908,
10340,
921,
460,
273,
833,
18,
2469,
405,
404,
692,
833,
63,
21,
65,
294,
10665,
18,
588,
5576,
7675,
588,
12616,
5621,
3639,
19817,
503,
508,
503,
273,
394,
19817,
503,
12,
9448,
16,
3099,
18,
588,
797,
2932,
461,
668,
6,
3631,
315,
551,
16510,
604,
2119,
397,
1047,
397,
15053,
1769,
7734,
30356,
18,
542,
6793,
751,
12,
2692,
1769,
3639,
30356,
18,
542,
14893,
751,
12,
1132,
1769,
3639,
30356,
18,
2
] |
|
ruby_class.setConstant((RubyId)node.nd_cname(), rubyClass); rubyClass.setClassPath((RubyClass)ruby_class, ((RubyId)node.nd_cname()).toName());
|
ruby.getRubyClass().setConstant((RubyId)node.nd_cname(), rubyClass); rubyClass.setClassPath(ruby.getRubyClass(), ((RubyId)node.nd_cname()).toName());
|
public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRuby().getOriginalMethods(); while (true) { if (node == null) { return getRuby().getNil(); } switch (node.nd_type()) { case NODE_BLOCK: while (node.nd_next() != null) { eval(self, node.nd_head()); node = node.nd_next(); } node = node.nd_head(); break; case NODE_POSTEXE: // rb_f_END(); node.nd_set_type(NODE_NIL); /* exec just once */ return getRuby().getNil(); /* begin .. end without clauses */ case NODE_BEGIN: node = node.nd_body(); break; /* nodes for speed-up(default match) */ case NODE_MATCH: //return rom.rb_reg_match2(node.nd_head().nd_lit()); return getRuby().getNil(); /* nodes for speed-up(literal match) */ case NODE_MATCH2: //return rom.rb_reg_match(eval(node.nd_recv()), eval(node.nd_value())); return getRuby().getNil(); /* nodes for speed-up(literal match) */ case NODE_MATCH3: //VALUE r = eval(node.nd_recv()); //VALUE l = eval(node.nd_value()); //if (r instanceof RubyString) { // return rom.rb_reg_match(l, r); //} else { // return rom.rb_funcall(r, match, 1, l); //} return getRuby().getNil(); /* node for speed-up(top-level loop for -n/-p) */ case NODE_OPT_N: while (true) { try { // while (!rb_gets().isNil() false) { // HACK +++ if (true) { // HACK --- try { eval(self, node.nd_body()); } catch (RedoException rExcptn) { } } break; } catch (NextException nExcptn) { } catch (BreakException bExcptn) { break; } } return getRuby().getNil(); case NODE_SELF: return self; case NODE_NIL: return getRuby().getNil(); case NODE_TRUE: return getRuby().getTrue(); case NODE_FALSE: return getRuby().getFalse(); case NODE_IF: // ruby_sourceline = node.nd_line(); cond = eval(self, node.nd_cond()); if (cond.isTrue()) { node = node.nd_body(); } else { node = node.nd_else(); } break; case NODE_WHEN: while (node != null) { NODE tag; if (node.nd_type() != NODE_WHEN) { break; } tag = node.nd_head(); while (tag != null) {/* if (trace_func) { call_trace_func("line", tag->nd_file, nd_line(tag), self, ruby_frame->last_func, ruby_frame->last_class); }*/ // ruby_sourcefile = tag.nd_file; // ruby_sourceline = tag.nd_line(); if (tag.nd_head().nd_type() == NODE_WHEN) { RubyObject obj = eval(self, tag.nd_head().nd_head()); if (!(obj instanceof RubyArray)) { obj = RubyArray.m_newArray(getRuby(), obj); } for (int i = 0; i < ((RubyArray)obj).length(); i++) { if (((RubyArray)obj).entry(i).isTrue()) { node = node.nd_body(); break; } } tag = tag.nd_next(); continue; } if (eval(self, tag.nd_head()).isTrue()) { node = node.nd_body(); break; } tag = tag.nd_next(); } node = node.nd_next(); } return getRuby().getNil(); case NODE_CASE: RubyObject obj = eval(self, node.nd_head()); node = node.nd_body(); while (node != null) { NODE tag; if (node.nd_type() != NODE_WHEN) { break; } tag = node.nd_head(); while (tag != null) {/* if (trace_func) { call_trace_func("line", tag->nd_file, nd_line(tag), self, ruby_frame->last_func, ruby_frame->last_class); } ruby_sourcefile = tag->nd_file; ruby_sourceline = nd_line(tag);*/ if (tag.nd_head().nd_type() == NODE_WHEN) { RubyObject obj2 = eval(self, tag.nd_head().nd_head()); if (!(obj2 instanceof RubyArray)) { obj2 = RubyArray.m_newArray(getRuby(), obj2); } for (int i = 0; i < ((RubyArray)obj).length(); i++) { RubyObject eqq = ((RubyArray)obj2).entry(i).funcall(getRuby().intern("==="), obj); if (eqq.isTrue()) { node = node.nd_body(); break; } } tag = tag.nd_next(); continue; } if (eval(self, tag.nd_head()).funcall(getRuby().intern("==="), obj).isTrue()) { node = node.nd_body(); break; } tag = tag.nd_next(); } node = node.nd_next(); } return getRuby().getNil(); case NODE_WHILE: while (eval(self, node.nd_cond()).isTrue()) { while (true) { try { eval(self, node.nd_body()); break; } catch (RedoException rExcptn) { } catch (NextException nExcptn) { break; } catch (BreakException bExcptn) { return getRuby().getNil(); } } } return getRuby().getNil(); case NODE_UNTIL: while (eval(self, node.nd_cond()).isFalse()) { while (true) { try { eval(self, node.nd_body()); break; } catch (RedoException rExcptn) { } catch (NextException nExcptn) { break; } catch (BreakException bExcptn) { return getRuby().getNil(); } } } return getRuby().getNil(); case NODE_BLOCK_PASS: //return block_pass(node); return null; case NODE_ITER: case NODE_FOR: rubyBlock.push(node.nd_var(), node.nd_body(), self); rubyIter.push(Iter.ITER_PRE); while (true) { try { if (node.nd_type() == NODE_ITER) { result = eval(self, node.nd_iter()); } else { // String file = // int line = rubyBlock.flags &= ~RubyBlock.BLOCK_D_SCOPE; RubyBlock tmpBlock = beginCallargs(); RubyObject recv = eval(self, node.nd_iter()); endCallArgs(tmpBlock); // = file; // = line; result = recv.getRubyClass().call(recv, ruby.intern("each"), null, 0); } break; } catch (RetryException rExcptn) { } catch (ReturnException rExcptn) { result = rExcptn.getReturnValue(); break; } catch (BreakException bExcptn) { result = ruby.getNil(); break; } } rubyIter.pop(); rubyBlock.pop(); return result; case NODE_BREAK: throw new BreakException(); case NODE_NEXT: throw new NextException(); case NODE_REDO: throw new RedoException(); case NODE_RETRY: throw new RetryException(); case NODE_RESTARGS: result = eval(self, node.nd_head()); if (!(result instanceof RubyArray)) { result = obj = RubyArray.m_newArray(getRuby(), result); } return result; case NODE_YIELD: if (node.nd_stts() != null) { result = eval(self, node.nd_stts()); if (node.nd_stts().nd_type() == NODE_RESTARGS && ((RubyArray)result).length() == 1) { result = ((RubyArray)result).entry(0); } } else { result = ruby.getNil(); } return yield0(result, null, null, false); case NODE_RESCUE:/* retry_entry: { volatile VALUE e_info = ruby_errinfo; PUSH_TAG(PROT_NONE); if ((state = EXEC_TAG()) == 0) { result = rb_eval(self, node->nd_head); } POP_TAG(); if (state == TAG_RAISE) { NODE * volatile resq = node->nd_resq; ruby_sourceline = nd_line(node); while (resq) { if (handle_rescue(self, resq)) { state = 0; PUSH_TAG(PROT_NONE); if ((state = EXEC_TAG()) == 0) { result = rb_eval(self, resq->nd_body); } POP_TAG(); if (state == TAG_RETRY) { state = 0; ruby_errinfo = Qnil; goto retry_entry; } if (state != TAG_RAISE) { ruby_errinfo = e_info; } break; } resq = resq->nd_head; /* next rescue */ /** } * } * else if (node->nd_else) { /* else clause given *//* if (!state) { /* no exception raised *//* result = rb_eval(self, node->nd_else); } } if (state) JUMP_TAG(state); } break;*/ case NODE_ENSURE:/* PUSH_TAG(PROT_NONE); if ((state = EXEC_TAG()) == 0) { result = eval(node.nd_head()); } POP_TAG(); if (node.nd_ensr()) { VALUE retval = prot_tag->retval; /* save retval *//* VALUE errinfo = ruby_errinfo; rb_eval(self, node->nd_ensr); return_value(retval); ruby_errinfo = errinfo; } if (state) JUMP_TAG(state); break;*/ case NODE_AND: cond = eval(self, node.nd_1st()); if (cond.isFalse()) { return cond; } node = node.nd_2nd(); break; case NODE_OR: cond = eval(self, node.nd_1st()); if (cond.isTrue()) { return cond; } node = node.nd_2nd(); break; case NODE_NOT: return RubyBoolean.m_newBoolean(getRuby(), eval(self, node.nd_1st()).isFalse()); case NODE_DOT2: case NODE_DOT3: result = RubyRange.m_newRange(getRuby(), eval(self, node.nd_beg()), eval(self, node.nd_end()), node.nd_type() == NODE_DOT3); if (node.nd_state() != 0) { return result; } if (node.nd_beg().nd_type() == NODE_LIT && (node.nd_beg().nd_lit() instanceof RubyFixnum) && node.nd_end().nd_type() == NODE_LIT && (node.nd_end().nd_lit() instanceof RubyFixnum)) { node.nd_set_type(NODE_LIT); node.nd_lit(result); } else { node.nd_state(1L); } return result; case NODE_FLIP2: /* like AWK */ /*if (ruby_scope->local_vars == 0) { rb_bug("unexpected local variable"); }*/ if (ruby.getRubyScope().getLocalVars(node.nd_cnt()).isFalse()) { if (eval(self, node.nd_beg()).isTrue()) { ruby.getRubyScope().setLocalVars(node.nd_cnt(), eval(self, node.nd_end()).isTrue() ? ruby.getFalse() : ruby.getTrue()); result = ruby.getTrue(); } else { result = ruby.getFalse(); } } else { if (eval(self, node.nd_end()).isTrue()) { ruby.getRubyScope().setLocalVars(node.nd_cnt(), ruby.getFalse()); } result = ruby.getTrue(); } return result; case NODE_FLIP3: /* like SED */ /*if (ruby_scope->local_vars == 0) { rb_bug("unexpected local variable"); }*/ if (ruby.getRubyScope().getLocalVars(node.nd_cnt()).isFalse()) { result = eval(self, node.nd_beg()).isTrue() ? ruby.getFalse() : ruby.getTrue(); ruby.getRubyScope().setLocalVars(node.nd_cnt(), result); } else { if (eval(self, node.nd_end()).isTrue()) { ruby.getRubyScope().setLocalVars(node.nd_cnt(), ruby.getFalse()); } result = ruby.getTrue(); } return result; case NODE_RETURN: if (node.nd_stts() != null) { result = eval(self, node.nd_stts()); } else { result = ruby.getNil(); } throw new ReturnException(result); case NODE_ARGSCAT: return ((RubyArray)eval(self, node.nd_head())).m_concat(eval(self, node.nd_body())); case NODE_ARGSPUSH: return ((RubyArray)eval(self, node.nd_head()).m_dup()).push(eval(self, node.nd_body())); case NODE_CALL: // TMP_PROTECT; RubyBlock tmpBlock = beginCallargs(); RubyObject recv = eval(self, node.nd_recv()); args = setupArgs(self, node.nd_args()); endCallArgs(tmpBlock); return recv.getRubyClass().call(recv, (RubyId)node.nd_mid(), args, 0); case NODE_FCALL: // TMP_PROTECT; tmpBlock = beginCallargs(); args = setupArgs(self, node.nd_args()); endCallArgs(tmpBlock); return self.getRubyClass().call(self, (RubyId)node.nd_mid(), args, 1); case NODE_VCALL: return self.getRubyClass().call(self, (RubyId)node.nd_mid(), null, 2); case NODE_SUPER: case NODE_ZSUPER: // TMP_PROTECT; if (getRubyFrame().getLastClass() == null) { throw new RubyNameException("superclass method '" + rubyFrame.getLastFunc().toName() + "' disabled"); } if (node.nd_type() == NODE_ZSUPER) { List argsList = getRubyFrame().getArgs(); args = (RubyObject[])argsList.toArray(new RubyObject[argsList.size()]); } else { tmpBlock = beginCallargs(); args = setupArgs(self, node.nd_args()); endCallArgs(tmpBlock); } rubyIter.push(rubyIter.getIter() != Iter.ITER_NOT ? Iter.ITER_PRE : Iter.ITER_NOT); result = getRubyFrame().getLastClass().getSuperClass().call(rubyFrame.getSelf(), rubyFrame.getLastFunc(), args, 3); rubyIter.pop(); return result; case NODE_SCOPE: NODE saved_cref = null; Frame frame = getRubyFrame(); frame.setTmp(getRubyFrame()); rubyFrame = frame; ruby.getRubyScope().push(); if (node.nd_rval() != null) { saved_cref = ruby_cref; ruby_cref = (NODE)node.nd_rval(); getRubyFrame().setCbase(node.nd_rval()); } if (node.nd_tbl() != null) { List tmp = Collections.nCopies(node.nd_tbl()[0].intValue() + 1, ruby.getNil()); ShiftableList vars = new ShiftableList(new ArrayList(tmp)); vars.set(0, (VALUE)node); vars.shift(1); getRuby().getRubyScope().setLocalVars(vars); getRuby().getRubyScope().setLocalTbl(node.nd_tbl()); } else { getRuby().getRubyScope().setLocalVars(null); getRuby().getRubyScope().setLocalTbl(null); } result = eval(self, node.nd_next()); ruby.getRubyScope().pop(); rubyFrame = frame.getTmp(); if (saved_cref != null) { ruby_cref = saved_cref; } return result; case NODE_OP_ASGN1: // TMP_PROTECT; recv = eval(self, node.nd_recv()); NODE rval = node.nd_args().nd_head(); args = setupArgs(self, node.nd_args().nd_next()); ArrayList argsList = new ArrayList(Arrays.asList(args)); argsList.remove(args.length - 1); RubyObject val = recv.funcall(getRuby().intern("[]"), (RubyObject[])argsList.toArray(new RubyObject[argsList.size()])); switch (node.nd_mid().intValue()) { case 0: /* OR */ if (val.isTrue()) { return val; } val = eval(self, rval); break; case 1: /* AND */ if (val.isFalse()) { return val; } val = eval(self, rval); break; default: val = val.funcall((RubyId)node.nd_mid(), eval(self, rval)); } args[args.length - 1] = val; return recv.funcall(getRuby().intern("[]="), args); case NODE_OP_ASGN2: ID id = node.nd_next().nd_vid(); recv = eval(self, node.nd_recv()); val = recv.funcall((RubyId)id, (RubyObject[])null); switch (node.nd_next().nd_mid().intValue()) { case 0: /* OR */ if (val.isTrue()) { return val; } val = eval(self, node.nd_value()); break; case 1: /* AND */ if (val.isFalse()) { return val; } val = eval(self, node.nd_value()); break; default: val = val.funcall((RubyId)node.nd_mid(), eval(self, node.nd_value())); } // HACK +++ val = recv.funcall((RubyId)node.nd_next().nd_aid(), val); // HACK --- return val; case NODE_OP_ASGN_AND: cond = eval(self, node.nd_head()); if (cond.isFalse()) { return cond; } node = node.nd_value(); break; case NODE_OP_ASGN_OR: cond = eval(self, node.nd_head()); if ((node.nd_aid() != null && !self.isInstanceVarDefined((RubyId)node.nd_aid())) || cond.isFalse()) { node = node.nd_value(); break; } return cond; case NODE_MASGN: return massign(self, node, eval(self, node.nd_value()), false); case NODE_LASGN: // if (ruby.ruby_scope.local_vars == null) { // rb_bug("unexpected local variable assignment"); // } result = eval(self, node.nd_value()); getRuby().getRubyScope().setLocalVars(node.nd_cnt(), result); return result; case NODE_DASGN: result = eval(self, node.nd_value()); RubyVarmap.assign(ruby, (RubyId)node.nd_vid(), result); return result; case NODE_DASGN_CURR: result = eval(self, node.nd_value()); RubyVarmap.assignCurrent(ruby, (RubyId)node.nd_vid(), result); return result; case NODE_GASGN: result = eval(self, node.nd_value()); ((RubyGlobalEntry)node.nd_entry()).set(result); return result; case NODE_IASGN: result = eval(self, node.nd_value()); self.setInstanceVar((RubyId)node.nd_vid(), result); return result; case NODE_CDECL: if (ruby_class == null) { throw new RubyTypeException("no class/module to define constant"); } result = eval(self, node.nd_value()); ruby_class.setConstant((RubyId)node.nd_vid(), result); return result; case NODE_CVDECL: if (ruby_cbase == null) { throw new RubyTypeException("no class/module to define class variable"); } result = eval(self, node.nd_value()); if (ruby_cbase.isSingleton()) { ruby_cbase.getInstanceVar("__attached__").getClassVarSingleton().declareClassVar((RubyId)node.nd_vid(), result); return result; } ruby_cbase.declareClassVar((RubyId)node.nd_vid(), result); return result; case NODE_CVASGN: result = eval(self, node.nd_value()); self.getClassVarSingleton().setClassVar((RubyId)node.nd_vid(), result); return result; case NODE_LVAR: //if (getRuby().ruby_scope.local_vars == null) { // rb_bug("unexpected local variable"); // } return (RubyObject)getRuby().getRubyScope().getLocalVars(node.nd_cnt()); case NODE_DVAR: return getDynamicVars().getRef((RubyId)node.nd_vid()); case NODE_GVAR: return ((RubyGlobalEntry)node.nd_entry()).get(); case NODE_IVAR: return self.getInstanceVar((RubyId)node.nd_vid()); case NODE_CONST: return getConstant((NODE)getRubyFrame().getCbase(), (RubyId)node.nd_vid(), self); case NODE_CVAR: /* normal method */ if (ruby_cbase == null) { return self.getRubyClass().getClassVar((RubyId)node.nd_vid()); } if (!ruby_cbase.isSingleton()) { return ruby_cbase.getClassVar((RubyId)node.nd_vid()); } return ruby_cbase.getInstanceVar("__attached__").getClassVarSingleton().getClassVar((RubyId)node.nd_vid()); case NODE_CVAR2: /* singleton method */ return self.getClassVarSingleton().getClassVar((RubyId)node.nd_vid()); case NODE_BLOCK_ARG: if (ruby.getRubyScope().getLocalVars() == null) { throw new RuntimeException("BUG: unexpected block argument"); } if (isBlockGiven()) { result = getRuby().getNil(); // Create Proc object ruby.getRubyScope().setLocalVars(node.nd_cnt(), result); return result; } else { return getRuby().getNil(); } case NODE_COLON2: value = eval(self, node.nd_head()); if (value instanceof RubyModule) { return ((RubyModule)value).getConstant((RubyId)node.nd_mid()); } else { return value.funcall((RubyId)node.nd_mid()); } case NODE_COLON3: return getRuby().getClasses().getObjectClass().getConstant((RubyId)node.nd_mid()); case NODE_NTH_REF: // return rom.rb_reg_nth_match(node.nd_nth(), MATCH_DATA); return null; case NODE_BACK_REF: /*switch ((char)node.nd_nth()) { case '&': return rom.rb_reg_last_match(MATCH_DATA); case '`': return rom.rb_reg_match_pre(MATCH_DATA); case '\'': return rom.rb_reg_match_post(MATCH_DATA); case '+': return rom.rb_reg_match_last(MATCH_DATA); default: rom.rb_bug("unexpected back-ref"); }*/ case NODE_HASH: RubyHash hash = RubyHash.m_newHash(ruby); NODE list = node.nd_head(); while(list != null) { RubyObject key = eval(self, list.nd_head()); list = list.nd_next(); if (list == null) { // HACK +++ throw new RubyArgumentException("odd number list for Hash"); // HACK --- } value = eval(self, list.nd_head()); hash.m_aset(key, value); list = list.nd_next(); } return hash; case NODE_ZARRAY: /* zero length list */ return RubyArray.m_newArray(getRuby()); case NODE_ARRAY: ArrayList ary = new ArrayList(node.nd_alen()); for (; node != null ; node = node.nd_next()) { ary.add(eval(self, node.nd_head())); } return RubyArray.m_newArray(getRuby(), ary); case NODE_STR: return ((RubyObject)node.nd_lit()).m_to_s(); case NODE_DSTR: case NODE_DXSTR: case NODE_DREGX: case NODE_DREGX_ONCE:/* NODE list = node.nd_next(); RubyString str = RubyString.m_newString(getRuby(), (RubyObject)node.nd_lit()); RubyString str2; while (list != null) { if (list.nd_head() != null) { switch (list.nd_head().nd_type()) { case NODE_STR: str2 = (RubyString)list.nd_head().nd_lit(); break; case NODE_EVSTR: result = ruby_errinfo; ruby_errinfo = Qnil; ruby_sourceline = nd_line(node); ruby_in_eval++; list.nd_head(compile(list.nd_head().nd_lit(), ruby_sourcefile,ruby_sourceline)); ruby_eval_tree = 0; ruby_in_eval--; if (ruby_nerrs > 0) { compile_error("string expansion"); } if (!NIL_P(result)) ruby_errinfo = result; /* fall through *//* default: str2 = (RubyString)rom.rb_obj_as_string(eval(list.nd_head())); break; } str.append(str2); str.infectObject(str2); } list = list.nd_next(); } switch (node.nd_type()) { case NODE_DREGX: return rom.rb_reg_new(str.getString(), str.getString().length(), node.nd_cflag()); case NODE_DREGX_ONCE: /* regexp expand once *//* VALUE result = rom.rb_reg_new(str.getString(), str.getString().length(), node.nd_cflag()); node.nd_set_type(NODE_LIT); node.nd_lit(result); return result; case NODE_DXSTR: return rom.rb_funcall(this, '`', 1, str); default: return str; }*/ return null; case NODE_XSTR: return self.funcall(getRuby().intern("`"), (RubyObject)node.nd_lit()); case NODE_LIT: return (RubyObject)node.nd_lit(); case NODE_ATTRSET: if (getRubyFrame().getArgs().size() != 1) { throw new RubyArgumentException("wrong # of arguments(" + rubyFrame.getArgs().size() + "for 1)"); } return self.setInstanceVar((RubyId)node.nd_vid(), (RubyObject)rubyFrame.getArgs().get(0)); case NODE_DEFN: if (node.nd_defn() != null) { int noex; if (ruby_class == null) { throw new RubyTypeException("no class to add method"); } //if (ruby_class == getRuby().getObjectClass() && node.nd_mid() == init) { // rom.rb_warn("redefining Object#initialize may cause infinite loop"); //} //if (node.nd_mid() == __id__ || node.nd_mid() == __send__) { // rom.rb_warn("redefining `%s' may cause serious problem", ((RubyId)node.nd_mid()).toName()); //} // ruby_class.setFrozen(true); SearchMethodResult smr = ruby_class.searchMethod((RubyId)node.nd_mid()); NODE body = smr.getBody(); RubyObject origin = smr.getOrigin(); if (body != null){ // if (ruby_verbose.isTrue() && ruby_class == origin && body.nd_cnt() == 0) { // rom.rb_warning("discarding old %s", ((RubyId)node.nd_mid()).toName()); // } // if (node.nd_noex() != 0) { /* toplevel */ /* should upgrade to rb_warn() if no super was called inside? */ // rom.rb_warning("overriding global function `%s'", ((RubyId)node.nd_mid()).toName()); // } } if (isScope(SCOPE_PRIVATE) || node.nd_mid().equals(ruby.intern("initialize"))) { noex = NOEX_PRIVATE; } else if (isScope(SCOPE_PROTECTED)) { noex = NOEX_PROTECTED; } else if (ruby_class == getRuby().getClasses().getObjectClass()) { noex = node.nd_noex(); } else { noex = NOEX_PUBLIC; } if (body != null && origin == ruby_class && (body.nd_noex() & NOEX_UNDEF) != 0) { noex |= NOEX_UNDEF; } NODE defn = node.nd_defn().copyNodeScope(ruby_cref); ruby_class.addMethod((RubyId)node.nd_mid(), defn, noex); // rb_clear_cache_by_id(node.nd_mid()); if (actMethodScope == SCOPE_MODFUNC) { ruby_class.getSingletonClass().addMethod((RubyId)node.nd_mid(), defn, NOEX_PUBLIC); ruby_class.funcall(getRuby().intern("singleton_method_added"), ((RubyId)node.nd_mid()).toSymbol()); } if (ruby_class.isSingleton()) { ruby_class.getInstanceVar("__attached__").funcall(getRuby().intern("singleton_method_added"), ((RubyId)node.nd_mid()).toSymbol()); } else { ruby_class.funcall(getRuby().intern("method_added"), ((RubyId)node.nd_mid()).toSymbol()); } } return getRuby().getNil(); case NODE_DEFS: if (node.nd_defn() != null) { recv = eval(self, node.nd_recv()); if (getRuby().getSecurityLevel() >= 4 && !recv.isTaint()) { throw new RubySecurityException("Insecure; can't define singleton method"); } /*if (FIXNUM_P(recv) || SYMBOL_P(recv)) { rb_raise(rb_eTypeError, "can't define singleton method \"%s\" for %s", rb_id2name(node.nd_mid()), rb_class2name(CLASS_OF(recv))); }*/ // not needed in jruby if (recv.isFrozen()) { throw new RubyFrozenException("object"); } rubyClass = recv.getSingletonClass(); NODE body = (NODE)rubyClass.getMethods().get((RubyId)node.nd_mid()); if (body != null) { if (getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException("redefining method prohibited"); } /*if (RTEST(ruby_verbose)) { rb_warning("redefine %s", rb_id2name(node.nd_mid())); }*/ } NODE defn = node.nd_defn().copyNodeScope(ruby_cref); defn.nd_rval(ruby_cref); rubyClass.addMethod((RubyId)node.nd_mid(), defn, NOEX_PUBLIC | (body != null ? body.nd_noex() & NOEX_UNDEF : 0)); // rb_clear_cache_by_id(node.nd_mid()); recv.funcall(getRuby().intern("singleton_method_added"), ((RubyId)node.nd_mid()).toSymbol()); } return getRuby().getNil(); case NODE_UNDEF: if (ruby_class == null) { throw new RubyTypeException("no class to undef method"); } ruby_class.undef((RubyId)node.nd_mid()); return getRuby().getNil(); case NODE_ALIAS: if (ruby_class == null) { throw new RubyTypeException("no class to make alias"); } ruby_class.aliasMethod((RubyId)node.nd_new(), (RubyId)node.nd_old()); ruby_class.funcall(getRuby().intern("method_added"), ((RubyId)node.nd_mid()).toSymbol()); return getRuby().getNil(); case NODE_VALIAS: RubyGlobalEntry.getGlobalEntry((RubyId)node.nd_old()).alias((RubyId)node.nd_new()); return getRuby().getNil(); case NODE_CLASS: RubyModule superClass; if (ruby_class == null) { throw new RubyTypeException("no outer class/module"); } if (node.nd_super() != null) { superClass = getSuperClass(self, node.nd_super()); } else { superClass = null; } rubyClass = null; // if ((ruby_class == getRuby().getObjectClass()) && rb_autoload_defined(node.nd_cname())) { // rb_autoload_load(node.nd_cname()); // } if (ruby_class.isConstantDefined((RubyId)node.nd_cname())) { rubyClass = (RubyClass)ruby_class.getConstant((RubyId)node.nd_cname()); } if (rubyClass != null) { if (!rubyClass.isClass()) { throw new RubyTypeException(((RubyId)node.nd_cname()).toName() + " is not a class"); } if (superClass != null) { RubyModule tmp = rubyClass.getSuperClass(); if (tmp.isSingleton()) { tmp = tmp.getSuperClass(); } while (tmp.isIncluded()) { tmp = tmp.getSuperClass(); } if (tmp != superClass) { superClass = tmp; //goto override_class; if (superClass == null) { superClass = getRuby().getClasses().getObjectClass(); } rubyClass = getRuby().defineClassId((RubyId)node.nd_cname(), (RubyClass)superClass); ruby_class.setConstant((RubyId)node.nd_cname(), rubyClass); rubyClass.setClassPath((RubyClass)ruby_class, ((RubyId)node.nd_cname()).toName()); // end goto } } if (getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException("extending class prohibited"); } // rb_clear_cache(); } else { //override_class: if (superClass == null) { superClass = getRuby().getClasses().getObjectClass(); } rubyClass = getRuby().defineClassId((RubyId)node.nd_cname(), (RubyClass)superClass); ruby_class.setConstant((RubyId)node.nd_cname(), rubyClass); rubyClass.setClassPath((RubyClass)ruby_class, ((RubyId)node.nd_cname()).toName()); } if (ruby_wrapper != null) { rubyClass.getSingletonClass().includeModule(ruby_wrapper); rubyClass.includeModule(ruby_wrapper); } return setupModule(rubyClass, node.nd_body()); case NODE_MODULE: if (ruby_class == null) { throw new RubyTypeException("no outer class/module"); } RubyModule module = null; if ((ruby_class == getRuby().getClasses().getObjectClass()) && getRuby().isAutoloadDefined((RubyId)node.nd_cname())) { // getRuby().rb_autoload_load(node.nd_cname()); } if (ruby_class.isConstantDefined((RubyId)node.nd_cname())) { module = (RubyModule)ruby_class.getConstant((RubyId)node.nd_cname()); } if (module != null) { if (!(module instanceof RubyModule)) { throw new RubyTypeException(((RubyId)node.nd_cname()).toName() + " is not a module"); } if (getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException("extending module prohibited"); } } else { module = getRuby().defineModuleId((RubyId)node.nd_cname()); ruby_class.setConstant((RubyId)node.nd_cname(), module); module.setClassPath(ruby_class, ((RubyId)node.nd_cname()).toName()); } if (ruby_wrapper != null) { module.getSingletonClass().includeModule(ruby_wrapper); module.includeModule(ruby_wrapper); } return setupModule(module, node.nd_body()); case NODE_SCLASS: rubyClass = (RubyClass)eval(self, node.nd_recv()); if (rubyClass.isSpecialConst()) { throw new RubyTypeException("no virtual class for " + rubyClass.getRubyClass().toName()); } if (getRuby().getSecurityLevel() >= 4 && !rubyClass.isTaint()) { throw new RubySecurityException("Insecure: can't extend object"); } if (rubyClass.getRubyClass().isSingleton()) { // rb_clear_cache(); } rubyClass = rubyClass.getSingletonClass(); if (ruby_wrapper != null) { rubyClass.getSingletonClass().includeModule(ruby_wrapper); rubyClass.includeModule(ruby_wrapper); } return setupModule(rubyClass, node.nd_body()); case NODE_DEFINED: // String buf; // String desc = is_defined(self, node.nd_head(), buf); // // if (desc) { // result = rb_str_new2(desc); // } else { // result = Qnil; // } case NODE_NEWLINE: // ruby_sourcefile = node.nd_file; // ruby_sourceline = node.nd_nth(); // if (trace_func) { // call_trace_func("line", ruby_sourcefile, ruby_sourceline, self, // ruby_frame.last_func(), // ruby_frame.last_class()); // } node = node.nd_next(); break; default: // rom.rb_bug("unknown node type %d", nd_type(node)); } } }
|
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/a2024bddc1b8e83f4e8075d2080935c221a833fe/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
5302,
12,
54,
10340,
921,
365,
16,
11922,
290,
13,
288,
3639,
11922,
756,
273,
290,
31,
7734,
19817,
921,
6941,
273,
446,
31,
3639,
19817,
921,
8526,
833,
273,
446,
31,
3639,
19817,
921,
460,
273,
446,
31,
3639,
19817,
921,
563,
273,
446,
31,
3639,
19817,
3120,
22155,
797,
273,
446,
31,
3639,
368,
509,
919,
31,
7734,
368,
19817,
8176,
4712,
24137,
273,
4170,
10340,
7675,
588,
8176,
4712,
5621,
7734,
1323,
261,
3767,
13,
288,
13491,
309,
261,
2159,
422,
446,
13,
288,
7734,
327,
4170,
10340,
7675,
588,
12616,
5621,
5411,
289,
13491,
1620,
261,
2159,
18,
4880,
67,
723,
10756,
288,
7734,
648,
11922,
67,
11403,
30,
10792,
1323,
261,
2159,
18,
4880,
67,
4285,
1435,
480,
446,
13,
288,
13491,
5302,
12,
2890,
16,
756,
18,
4880,
67,
1978,
10663,
13491,
756,
273,
756,
18,
4880,
67,
4285,
5621,
10792,
289,
10792,
756,
273,
756,
18,
4880,
67,
1978,
5621,
10792,
898,
31,
4766,
565,
648,
11922,
67,
3798,
2294,
41,
30,
10792,
368,
7138,
67,
74,
67,
4415,
5621,
10792,
756,
18,
4880,
67,
542,
67,
723,
12,
8744,
67,
50,
2627,
1769,
1748,
1196,
2537,
3647,
1195,
10792,
327,
4170,
10340,
7675,
588,
12616,
5621,
4766,
565,
1748,
2376,
6116,
679,
2887,
14093,
1195,
7734,
648,
11922,
67,
16061,
30,
10792,
756,
273,
756,
18,
4880,
67,
3432,
5621,
10792,
898,
31,
4766,
565,
1748,
2199,
364,
8632,
17,
416,
12,
1886,
845,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
5302,
12,
54,
10340,
921,
365,
16,
11922,
290,
13,
288,
3639,
11922,
756,
273,
290,
31,
7734,
19817,
921,
6941,
273,
446,
31,
3639,
19817,
921,
8526,
833,
273,
446,
31,
3639,
19817,
921,
460,
273,
446,
31,
3639,
19817,
921,
563,
273,
446,
31,
3639,
19817,
3120,
22155,
797,
273,
446,
31,
3639,
368,
509,
919,
31,
7734,
368,
19817,
8176,
4712,
24137,
273,
4170,
10340,
7675,
588,
8176,
4712,
5621,
7734,
1323,
261,
3767,
13,
288,
13491,
309,
261,
2159,
422,
446,
13,
288,
7734,
327,
4170,
10340,
7675,
588,
12616,
5621,
5411,
289,
13491,
1620,
261,
2159,
18,
4880,
67,
723,
10756,
288,
7734,
648,
11922,
67,
11403,
30,
10792,
1323,
2
] |
result[i] = new IndexedElement(qname.getLocalName(),qname.getNamespaceURI(), qname.getPrefix() == null ? "" : qname.getPrefix(), occurrences[i].getOccurrences());
|
result[i] = new IndexedElement(qname.getLocalName(),qname.getNamespaceURI(), qname.getPrefix() == null ? "" : qname.getPrefix(), occurrences[i].getOccurrences());
|
public org.exist.soap.IndexedElements getIndexedElements(java.lang.String sessionId, java.lang.String collectionName, boolean inclusive) throws java.rmi.RemoteException { DBBroker broker = null; Session session = getSession(sessionId); User user = session.getUser(); Collection collection = null; try { broker = pool.get(user); collection = broker.openCollection(collectionName, Lock.READ_LOCK); if (collection == null) throw new EXistException("collection " + collectionName + " not found"); Occurrences occurrences[] = broker.getElementIndex().scanIndexedElements(collection, inclusive); IndexedElement[] result = new IndexedElement[occurrences.length]; for (int i = 0; i < occurrences.length; i++) { QName qname = (QName)occurrences[i].getTerm(); result[i] = new IndexedElement(qname.getLocalName(),qname.getNamespaceURI(), qname.getPrefix() == null ? "" : qname.getPrefix(), occurrences[i].getOccurrences()); } return new IndexedElements(result); } catch (Exception ex) { throw new RemoteException(ex.getMessage()); } finally { if(collection != null) collection.release(); pool.release(broker); } }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/0909f8eb97be3b101ad96c593d2586e12ad0fd81/AdminSoapBindingImpl.java/clean/src/org/exist/soap/AdminSoapBindingImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2358,
18,
7398,
18,
19215,
18,
15034,
3471,
8088,
329,
3471,
12,
6290,
18,
4936,
18,
780,
10338,
16,
2252,
18,
4936,
18,
780,
17137,
16,
1250,
13562,
13,
1216,
2252,
18,
8864,
77,
18,
5169,
503,
288,
3639,
2383,
11194,
8625,
273,
446,
31,
202,
202,
2157,
1339,
273,
7183,
12,
3184,
548,
1769,
202,
202,
1299,
729,
273,
1339,
18,
588,
1299,
5621,
3639,
2200,
1849,
273,
446,
31,
3639,
775,
288,
5411,
8625,
273,
2845,
18,
588,
12,
1355,
1769,
5411,
1849,
273,
8625,
18,
3190,
2532,
12,
5548,
461,
16,
3488,
18,
6949,
67,
6589,
1769,
5411,
309,
261,
5548,
422,
446,
13,
7734,
604,
394,
5675,
376,
503,
2932,
5548,
315,
397,
17137,
13491,
397,
315,
486,
1392,
8863,
5411,
531,
2803,
12228,
15698,
8526,
273,
8625,
18,
21336,
1016,
7675,
9871,
15034,
3471,
12,
5548,
16,
10792,
13562,
1769,
5411,
22524,
1046,
8526,
563,
273,
394,
22524,
1046,
63,
26635,
12228,
18,
2469,
15533,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
15698,
18,
2469,
31,
277,
27245,
288,
7734,
16723,
12621,
273,
261,
13688,
13,
26635,
12228,
63,
77,
8009,
588,
4065,
5621,
2398,
202,
2088,
63,
77,
65,
273,
394,
22524,
1046,
12,
85,
529,
18,
588,
29583,
9334,
85,
529,
18,
588,
3402,
3098,
9334,
2398,
6862,
6862,
282,
12621,
18,
588,
2244,
1435,
422,
446,
692,
1408,
294,
12621,
18,
588,
2244,
9334,
2398,
6862,
6862,
282,
15698,
63,
77,
8009,
588,
12397,
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,
2358,
18,
7398,
18,
19215,
18,
15034,
3471,
8088,
329,
3471,
12,
6290,
18,
4936,
18,
780,
10338,
16,
2252,
18,
4936,
18,
780,
17137,
16,
1250,
13562,
13,
1216,
2252,
18,
8864,
77,
18,
5169,
503,
288,
3639,
2383,
11194,
8625,
273,
446,
31,
202,
202,
2157,
1339,
273,
7183,
12,
3184,
548,
1769,
202,
202,
1299,
729,
273,
1339,
18,
588,
1299,
5621,
3639,
2200,
1849,
273,
446,
31,
3639,
775,
288,
5411,
8625,
273,
2845,
18,
588,
12,
1355,
1769,
5411,
1849,
273,
8625,
18,
3190,
2532,
12,
5548,
461,
16,
3488,
18,
6949,
67,
6589,
1769,
5411,
309,
261,
5548,
422,
446,
13,
7734,
604,
394,
5675,
376,
503,
2932,
5548,
315,
397,
2
] |
public void extra_statement() throws RecognitionException { try { // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:439:9: ( ( import_statement | global | function ) ) // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:439:9: ( import_statement | global | function ) { // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:439:9: ( import_statement | global | function ) int alt26=3; switch ( input.LA(1) ) { case 17: alt26=1; break; case 21: alt26=2; break; case 22: alt26=3; break; default: NoViableAltException nvae = new NoViableAltException("439:9: ( import_statement | global | function )", 26, 0, input); throw nvae; } switch (alt26) { case 1 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:439:17: import_statement { following.push(FOLLOW_import_statement_in_extra_statement773); import_statement(); following.pop(); } break; case 2 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:440:17: global { following.push(FOLLOW_global_in_extra_statement778); global(); following.pop(); } break; case 3 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:441:17: function { following.push(FOLLOW_function_in_extra_statement783); function(); following.pop(); } break; } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return ; }
|
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/fb2f51ad0fb80e03d0cc7f4644cb7a7e17027618/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2870,
67,
11516,
1435,
1216,
9539,
288,
6647,
775,
288,
5411,
368,
342,
8712,
19,
81,
1354,
69,
292,
19,
13582,
19,
10649,
8464,
17,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
4683,
19,
3341,
19,
12215,
19,
4936,
19,
72,
1321,
18,
75,
30,
24,
5520,
30,
29,
30,
261,
261,
1930,
67,
11516,
571,
2552,
571,
445,
262,
262,
5411,
368,
342,
8712,
19,
81,
1354,
69,
292,
19,
13582,
19,
10649,
8464,
17,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
4683,
19,
3341,
19,
12215,
19,
4936,
19,
72,
1321,
18,
75,
30,
24,
5520,
30,
29,
30,
261,
1930,
67,
11516,
571,
2552,
571,
445,
262,
5411,
288,
5411,
368,
342,
8712,
19,
81,
1354,
69,
292,
19,
13582,
19,
10649,
8464,
17,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
4683,
19,
3341,
19,
12215,
19,
4936,
19,
72,
1321,
18,
75,
30,
24,
5520,
30,
29,
30,
261,
1930,
67,
11516,
571,
2552,
571,
445,
262,
5411,
509,
3770,
5558,
33,
23,
31,
5411,
1620,
261,
810,
18,
2534,
12,
21,
13,
262,
288,
5411,
648,
8043,
30,
7734,
3770,
5558,
33,
21,
31,
7734,
898,
31,
5411,
648,
9035,
30,
7734,
3770,
5558,
33,
22,
31,
7734,
898,
31,
5411,
648,
11201,
30,
7734,
3770,
5558,
33,
23,
31,
7734,
898,
31,
5411,
805,
30,
7734,
17114,
15077,
273,
10792,
394,
17114,
2932,
24,
5520,
30,
29,
30,
261,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2870,
67,
11516,
1435,
1216,
9539,
288,
6647,
775,
288,
5411,
368,
342,
8712,
19,
81,
1354,
69,
292,
19,
13582,
19,
10649,
8464,
17,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
4683,
19,
3341,
19,
12215,
19,
4936,
19,
72,
1321,
18,
75,
30,
24,
5520,
30,
29,
30,
261,
261,
1930,
67,
11516,
571,
2552,
571,
445,
262,
262,
5411,
368,
342,
8712,
19,
81,
1354,
69,
292,
19,
13582,
19,
10649,
8464,
17,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
4683,
19,
3341,
19,
12215,
19,
4936,
19,
72,
1321,
18,
75,
30,
24,
5520,
30,
29,
30,
261,
1930,
67,
11516,
571,
2552,
571,
445,
262,
2
] |
||
ChildNode node = (ChildNode) getNodeObject(index); if (lastNode == null) { lastNode = node;
|
ChildNode node = (ChildNode)getNodeObject(index); if (last == null) { last = node;
|
protected final void synchronizeChildren(ParentNode p, int nodeIndex) { // we don't want to generate any event for this so turn them off boolean orig = getMutationEvents(); setMutationEvents(false); // no need to sync in the future p.needsSyncChildren(false); // create children and link them as siblings ChildNode firstNode = null; ChildNode lastNode = null; for (int index = getLastChild(nodeIndex); index != -1; index = getPrevSibling(index)) { ChildNode node = (ChildNode) getNodeObject(index); if (lastNode == null) { lastNode = node; } else { firstNode.previousSibling = node; } node.ownerNode = p; node.isOwned(true); node.nextSibling = firstNode; firstNode = node; } if (lastNode != null) { p.firstChild = firstNode; firstNode.isFirstChild(true); p.lastChild(lastNode); } // set mutation events flag back to its original value setMutationEvents(orig); } // synchronizeChildren(ParentNode,int):void
|
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/03e9355e790d7a38acf7df1c786f6e96dcfcec27/DeferredDocumentImpl.java/buggy/src/org/apache/xerces/dom/DeferredDocumentImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
727,
918,
16978,
4212,
12,
3054,
907,
293,
16,
509,
756,
1016,
13,
288,
3639,
368,
732,
2727,
1404,
2545,
358,
2103,
1281,
871,
364,
333,
1427,
7005,
2182,
3397,
3639,
1250,
1647,
273,
2108,
9245,
3783,
5621,
3639,
444,
20028,
3783,
12,
5743,
1769,
3639,
368,
1158,
1608,
358,
3792,
316,
326,
3563,
3639,
293,
18,
20600,
4047,
4212,
12,
5743,
1769,
3639,
368,
752,
2325,
471,
1692,
2182,
487,
14692,
3639,
7451,
907,
1122,
907,
273,
446,
31,
3639,
7451,
907,
1142,
907,
273,
446,
31,
3639,
364,
261,
474,
770,
273,
7595,
1763,
12,
2159,
1016,
1769,
2398,
770,
480,
300,
21,
31,
2398,
770,
273,
336,
9958,
10291,
12,
1615,
3719,
288,
5411,
7451,
907,
756,
273,
261,
25550,
13,
5973,
921,
12,
1615,
1769,
5411,
309,
261,
2722,
907,
422,
446,
13,
288,
7734,
1142,
907,
273,
756,
31,
5411,
289,
5411,
469,
288,
7734,
1122,
907,
18,
11515,
10291,
273,
756,
31,
5411,
289,
5411,
756,
18,
8443,
907,
273,
293,
31,
5411,
756,
18,
291,
5460,
329,
12,
3767,
1769,
5411,
756,
18,
4285,
10291,
273,
1122,
907,
31,
5411,
1122,
907,
273,
756,
31,
3639,
289,
3639,
309,
261,
2722,
907,
480,
446,
13,
288,
5411,
293,
18,
3645,
1763,
273,
1122,
907,
31,
5411,
1122,
907,
18,
291,
3759,
1763,
12,
3767,
1769,
5411,
293,
18,
2722,
1763,
12,
2722,
907,
1769,
3639,
289,
3639,
368,
444,
11934,
2641,
2982,
1473,
358,
2097,
2282,
460,
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,
727,
918,
16978,
4212,
12,
3054,
907,
293,
16,
509,
756,
1016,
13,
288,
3639,
368,
732,
2727,
1404,
2545,
358,
2103,
1281,
871,
364,
333,
1427,
7005,
2182,
3397,
3639,
1250,
1647,
273,
2108,
9245,
3783,
5621,
3639,
444,
20028,
3783,
12,
5743,
1769,
3639,
368,
1158,
1608,
358,
3792,
316,
326,
3563,
3639,
293,
18,
20600,
4047,
4212,
12,
5743,
1769,
3639,
368,
752,
2325,
471,
1692,
2182,
487,
14692,
3639,
7451,
907,
1122,
907,
273,
446,
31,
3639,
7451,
907,
1142,
907,
273,
446,
31,
3639,
364,
261,
474,
770,
273,
7595,
1763,
12,
2159,
1016,
1769,
2398,
770,
480,
300,
21,
31,
2398,
770,
273,
336,
9958,
10291,
12,
1615,
3719,
288,
5411,
2
] |
boolean hasMoreTokens = stok.hasMoreTokens(); while (hasMoreTokens) { String token = stok.nextToken(); hasMoreTokens = stok.hasMoreTokens(); if (hasMoreTokens) { int modifier = findModifier(token); if (modifier != 0) { accelerator |= modifier; } else { return 0;
|
boolean hasMoreTokens = stok.hasMoreTokens(); while (hasMoreTokens) { String token = stok.nextToken(); hasMoreTokens = stok.hasMoreTokens(); if (hasMoreTokens) { int modifier = findModifier(token); if (modifier != 0) { accelerator |= modifier; } else { return 0; } } else { keyCode = findKeyCode(token);
|
public static int convertAccelerator(String acceleratorText) { int accelerator = 0; StringTokenizer stok = new StringTokenizer(acceleratorText, "+"); //$NON-NLS-1$ int keyCode = -1; boolean hasMoreTokens = stok.hasMoreTokens(); while (hasMoreTokens) { String token = stok.nextToken(); hasMoreTokens = stok.hasMoreTokens(); // Every token except the last must be one of the modifiers // Ctrl, Shift, Alt, or Command if (hasMoreTokens) { int modifier = findModifier(token); if (modifier != 0) { accelerator |= modifier; } else {//Leave if there are none return 0; } } else { keyCode = findKeyCode(token); } } if (keyCode != -1) { accelerator |= keyCode; } return accelerator;}
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/a803b1cab75d4557a59d39831eed86f5066a9020/Action.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/action/Action.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
760,
509,
1765,
28417,
12,
780,
15153,
7385,
1528,
13,
288,
202,
474,
15153,
7385,
273,
374,
31,
202,
780,
10524,
384,
601,
273,
394,
16370,
12,
30737,
7385,
1528,
16,
13773,
8863,
565,
4329,
3993,
17,
5106,
17,
21,
8,
202,
474,
16369,
273,
300,
21,
31,
202,
6494,
26174,
273,
384,
601,
18,
5332,
7417,
5157,
5621,
202,
17523,
261,
5332,
7417,
5157,
13,
288,
202,
202,
780,
1147,
273,
384,
601,
18,
4285,
1345,
5621,
202,
202,
5332,
7417,
5157,
273,
384,
601,
18,
5332,
7417,
5157,
5621,
202,
202,
759,
16420,
1147,
1335,
326,
1142,
1297,
506,
1245,
434,
326,
10429,
202,
202,
759,
30715,
16,
21444,
16,
27116,
16,
578,
3498,
202,
202,
430,
261,
5332,
7417,
5157,
13,
288,
1082,
202,
474,
9606,
273,
1104,
9829,
12,
2316,
1769,
1082,
202,
430,
261,
20597,
480,
374,
13,
288,
9506,
202,
30737,
7385,
5626,
9606,
31,
1082,
202,
97,
469,
288,
759,
21300,
309,
1915,
854,
6555,
9506,
202,
2463,
374,
31,
1082,
202,
97,
202,
202,
97,
469,
288,
1082,
202,
856,
1085,
273,
1104,
653,
1085,
12,
2316,
1769,
202,
202,
97,
202,
97,
202,
430,
261,
856,
1085,
480,
300,
21,
13,
288,
202,
202,
30737,
7385,
5626,
16369,
31,
202,
97,
202,
2463,
15153,
7385,
31,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
760,
509,
1765,
28417,
12,
780,
15153,
7385,
1528,
13,
288,
202,
474,
15153,
7385,
273,
374,
31,
202,
780,
10524,
384,
601,
273,
394,
16370,
12,
30737,
7385,
1528,
16,
13773,
8863,
565,
4329,
3993,
17,
5106,
17,
21,
8,
202,
474,
16369,
273,
300,
21,
31,
202,
6494,
26174,
273,
384,
601,
18,
5332,
7417,
5157,
5621,
202,
17523,
261,
5332,
7417,
5157,
13,
288,
202,
202,
780,
1147,
273,
384,
601,
18,
4285,
1345,
5621,
202,
202,
5332,
7417,
5157,
273,
384,
601,
18,
5332,
7417,
5157,
5621,
202,
202,
759,
16420,
1147,
1335,
326,
1142,
1297,
506,
1245,
434,
326,
10429,
202,
202,
759,
30715,
16,
21444,
16,
27116,
16,
578,
3498,
202,
202,
2
] |
return (EnvEntry[]) result.toArray(resultType);
|
return result;
|
public EnvEntry[] loadEnvEntries(Element parent, EnvEntry[] resultType) { NodeList nodes = parent.getElementsByTagName("env-entry"); int length = nodes.getLength(); List result = new ArrayList(length); for (int i = 0; i < length; i++) { Element e = (Element) nodes.item(i); result.add(loadEnvEntry(e)); } return (EnvEntry[]) result.toArray(resultType); }
|
12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/c5087214ca8f0e64c671620ee9fdf9258219e3e7/J2EELoader.java/clean/modules/core/src/java/org/apache/geronimo/xml/deployment/J2EELoader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5266,
1622,
8526,
1262,
3491,
5400,
12,
1046,
982,
16,
5266,
1622,
8526,
25820,
13,
288,
3639,
16781,
2199,
273,
982,
18,
588,
3471,
10401,
2932,
3074,
17,
4099,
8863,
3639,
509,
769,
273,
2199,
18,
588,
1782,
5621,
3639,
987,
563,
273,
394,
2407,
12,
2469,
1769,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
769,
31,
277,
27245,
288,
5411,
3010,
425,
273,
261,
1046,
13,
2199,
18,
1726,
12,
77,
1769,
5411,
563,
18,
1289,
12,
945,
3491,
1622,
12,
73,
10019,
3639,
289,
3639,
327,
563,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5266,
1622,
8526,
1262,
3491,
5400,
12,
1046,
982,
16,
5266,
1622,
8526,
25820,
13,
288,
3639,
16781,
2199,
273,
982,
18,
588,
3471,
10401,
2932,
3074,
17,
4099,
8863,
3639,
509,
769,
273,
2199,
18,
588,
1782,
5621,
3639,
987,
563,
273,
394,
2407,
12,
2469,
1769,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
769,
31,
277,
27245,
288,
5411,
3010,
425,
273,
261,
1046,
13,
2199,
18,
1726,
12,
77,
1769,
5411,
563,
18,
1289,
12,
945,
3491,
1622,
12,
73,
10019,
3639,
289,
3639,
327,
563,
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
] |
if (logger.isDebugEnabled()) { logger.debug(" trigger=" + event.isPopupTrigger(), ", Click count: " + event.getClickCount()); } if ((event.getModifiers() & MouseEvent.BUTTON1_MASK) != 0) {
|
if (logger.isDebugEnabled()) { logger.debug(" trigger=" + event.isPopupTrigger(), ", Click count: " + event.getClickCount()); } if ((event.getModifiers() & MouseEvent.BUTTON1_MASK) != 0) {
|
public void mouseReleased(MouseEvent event) { isUndoableChange = false; logger.debug("MouseReleased Event Props: mode=", c2dm.getDrawModeString()); if (logger.isDebugEnabled()) { logger.debug(" trigger=" + event.isPopupTrigger(), ", Click count: " + event.getClickCount()); } if ((event.getModifiers() & MouseEvent.BUTTON1_MASK) != 0) { int[] screenCoords = {event.getX(), event.getY()}; int[] mouseCoords = getWorldCoordinates(screenCoords); int mouseX = mouseCoords[0]; int mouseY = mouseCoords[1]; if (c2dm.getDrawMode() == c2dm.SYMBOL) { Atom atomInRange = r2dm.getHighlightedAtom(); if (atomInRange != null) { if(currentCommonElement.get(atomInRange)==null) currentCommonElement.put(atomInRange, new Integer(1)); int oldCommonElement=((Integer)currentCommonElement.get(atomInRange)).intValue(); String symbol = (String)commonElements.elementAt(oldCommonElement); if (!(atomInRange.getSymbol().equals(symbol))) { // only change symbol if needed atomInRange.setSymbol(symbol); // configure the atom, so that the atomic number matches the symbol try { IsotopeFactory.getInstance().configure(atomInRange); } catch (Exception exception) { logger.error("Error while configuring atom"); logger.debug(exception); } // update atom AtomContainer container = ChemModelManipulator.getRelevantAtomContainer(chemModel, atomInRange); updateAtom(container, atomInRange); /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ r2dm.fireChange(); fireChange(); } oldCommonElement++; if (oldCommonElement == commonElements.size()) oldCommonElement = 0; currentCommonElement.put(atomInRange, new Integer(oldCommonElement)); } } if (c2dm.getDrawMode() == c2dm.ELEMENT) { Atom atomInRange = r2dm.getHighlightedAtom(); if (atomInRange != null) { String symbol = c2dm.getDrawElement(); if (!(atomInRange.getSymbol().equals(symbol))) { // only change symbol if needed atomInRange.setSymbol(symbol); // configure the atom, so that the atomic number matches the symbol try { IsotopeFactory.getInstance().configure(atomInRange); } catch (Exception exception) { logger.error("Error while configuring atom"); logger.debug(exception); } // update atom AtomContainer container = ChemModelManipulator.getRelevantAtomContainer(chemModel, atomInRange); updateAtom(container, atomInRange); /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ r2dm.fireChange(); fireChange(); } } } if (c2dm.getDrawMode() == c2dm.INCCHARGE) { Atom atomInRange = r2dm.getHighlightedAtom(); if (atomInRange != null) { atomInRange.setFormalCharge(atomInRange.getFormalCharge() + 1); // update atom AtomContainer container = ChemModelManipulator.getRelevantAtomContainer(chemModel, atomInRange); updateAtom(container, atomInRange); /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom charge */ isUndoableChange = true; /* * --- */ r2dm.fireChange(); fireChange(); } } if (c2dm.getDrawMode() == c2dm.DECCHARGE) { Atom atomInRange = r2dm.getHighlightedAtom(); if (atomInRange != null) { atomInRange.setFormalCharge(atomInRange.getFormalCharge() - 1); // update atom AtomContainer container = ChemModelManipulator.getRelevantAtomContainer(chemModel, atomInRange); updateAtom(container, atomInRange); /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ r2dm.fireChange(); fireChange(); } } if (c2dm.getDrawMode() == c2dm.MAPATOMATOM) { logger.debug("Should make new mapping..."); if (wasDragged) { int endX = r2dm.getPointerVectorEnd().x; int endY = r2dm.getPointerVectorEnd().y; Atom mappedToAtom = getAtomInRange(endX, endY); if (mappedToAtom != null) { int startX = r2dm.getPointerVectorStart().x; int startY = r2dm.getPointerVectorStart().y; Atom mappedFromAtom = getAtomInRange(startX, startY); if (mappedFromAtom != null) { Mapping mapping = new Mapping(mappedFromAtom, mappedToAtom); logger.debug("Created mapping: ", mapping); logger.debug(" between ", mappedFromAtom); logger.debug(" and ", mappedToAtom); // ok, now figure out if they are in one reaction Reaction reaction1 = ChemModelManipulator.getRelevantReaction(chemModel, mappedFromAtom); Reaction reaction2 = ChemModelManipulator.getRelevantReaction(chemModel, mappedToAtom); if (reaction1 != null && reaction2 != null && reaction1 == reaction2) { logger.debug("Adding mapping to reaction: ", reaction1.getID()); reaction1.addMapping(mapping); } else { logger.warn("Reactions do not match, or one or both are reactions are null"); } } else { logger.debug("Dragging did not start in atom..."); } } else { logger.debug("Dragging did not end in atom..."); } } else { logger.debug("Not dragged in mapping mode"); } } if (c2dm.getDrawMode() == c2dm.DRAWBOND) { Atom atomInRange; Atom newAtom1; Atom newAtom2; Bond newBond; int startX = r2dm.getPointerVectorStart().x; int startY = r2dm.getPointerVectorStart().y; Bond bondInRange = r2dm.getHighlightedBond(); atomInRange = r2dm.getHighlightedAtom(); if (bondInRange != null) { // increase Bond order double order = bondInRange.getOrder(); if (order >= CDKConstants.BONDORDER_TRIPLE) { bondInRange.setOrder(CDKConstants.BONDORDER_SINGLE); } else { bondInRange.setOrder(order + 1.0); // this is tricky as it depends on the fact that the // constants are unidistant, i.e. {1.0, 2.0, 3.0}. } ; // update atoms Atom[] atoms = bondInRange.getAtoms(); AtomContainer container = ChemModelManipulator.getRelevantAtomContainer(chemModel, atoms[0]); updateAtoms(container, atoms); /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ } else { if (atomInRange != null) { newAtom1 = atomInRange; } else { // create a new molecule newAtom1 = new Atom(c2dm.getDrawElement(), new Point2d(startX, startY)); AtomContainer atomCon = ChemModelManipulator.createNewMolecule(chemModel); atomCon.addAtom(newAtom1); // update atoms updateAtom(atomCon, newAtom1); /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ } if (wasDragged) { if (dragMode == DRAG_DRAWING_PROPOSED_BOND) { int endX = r2dm.getPointerVectorEnd().x; int endY = r2dm.getPointerVectorEnd().y; atomInRange = getAtomInRange(endX, endY); AtomContainer atomCon = null; if (atomInRange != null) { newAtom2 = atomInRange; atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, newAtom2); } else { newAtom2 = new Atom(c2dm.getDrawElement(), new Point2d(endX, endY)); atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, newAtom1); atomCon.addAtom(newAtom2); } newBond = new Bond(newAtom1, newAtom2, 1); atomCon.addBond(newBond); // update atoms updateAtom(atomCon, newAtom2); /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ } } else if (atomInRange != null) { // add a new atom to the current atom in some random // direction AtomContainer atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, atomInRange); newAtom2 = new Atom(c2dm.getDrawElement(), atomInRange.getPoint2d()); // now create 2D coords for new atom double bondLength = r2dm.getBondLength(); Atom[] connectedAtoms = atomCon.getConnectedAtoms(atomInRange); AtomContainer placedAtoms = new AtomContainer(); placedAtoms.addAtom(atomInRange); for (int i = 0; i < connectedAtoms.length; i++) { placedAtoms.addAtom(connectedAtoms[i]); } AtomContainer unplacedAtoms = new AtomContainer(); unplacedAtoms.addAtom(newAtom2); AtomPlacer atomPlacer = new AtomPlacer(); atomPlacer.setMolecule(new Molecule(atomCon)); Point2d center2D = GeometryTools.get2DCenter(placedAtoms); atomPlacer.distributePartners(atomInRange, placedAtoms, center2D, unplacedAtoms, bondLength); // now add the new atom atomCon.addAtom(newAtom2); atomCon.addBond(new Bond(atomInRange, newAtom2, 1.0)); // update atoms updateAtom(atomCon, atomInRange); updateAtom(atomCon, newAtom2); } } r2dm.fireChange(); fireChange(); } if (c2dm.getDrawMode() == c2dm.UP_BOND) { Bond bondInRange = r2dm.getHighlightedBond(); if (bondInRange != null) { // toggle bond stereo double stereo = bondInRange.getStereo(); if (stereo == CDKConstants.STEREO_BOND_UP) { bondInRange.setStereo(CDKConstants.STEREO_BOND_UP_INV); } else if (stereo == CDKConstants.STEREO_BOND_UP_INV) { bondInRange.setStereo(CDKConstants.STEREO_BOND_NONE); } else { bondInRange.setStereo(CDKConstants.STEREO_BOND_UP); } ; /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ } else { logger.warn("No bond in range!"); } r2dm.fireChange(); fireChange(); } if (c2dm.getDrawMode() == c2dm.DOWN_BOND) { logger.info("Toggling stereo bond down"); Bond bondInRange = r2dm.getHighlightedBond(); if (bondInRange != null) { // toggle bond stereo double stereo = bondInRange.getStereo(); if (stereo == CDKConstants.STEREO_BOND_DOWN) { bondInRange.setStereo(CDKConstants.STEREO_BOND_DOWN_INV); } else if (stereo == CDKConstants.STEREO_BOND_DOWN_INV) { bondInRange.setStereo(CDKConstants.STEREO_BOND_NONE); } else { bondInRange.setStereo(CDKConstants.STEREO_BOND_DOWN); } ; /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ } else { logger.warn("No bond in range!"); } r2dm.fireChange(); fireChange(); } if (c2dm.getDrawMode() == c2dm.SELECT && wasDragged) { logger.info("User asks to selected atoms"); AtomContainer selectedPart = new AtomContainer(); r2dm.setSelectedPart(selectedPart); r2dm.setSelectedPart(getContainedAtoms(r2dm.getSelectRect())); r2dm.setSelectRect(null); logger.debug("selected stuff ", selectedPart); } if (c2dm.getDrawMode() == c2dm.ERASER) { Atom highlightedAtom = r2dm.getHighlightedAtom(); Bond highlightedBond = r2dm.getHighlightedBond(); if (highlightedAtom != null) { logger.info("User asks to delete an Atom"); AtomContainer container = ChemModelManipulator.getAllInOneContainer(chemModel); logger.debug("Atoms before delete: ", container.getAtomCount()); ChemModelManipulator.removeAtomAndConnectedElectronContainers(chemModel, highlightedAtom); container = ChemModelManipulator.getAllInOneContainer(chemModel); logger.debug("Atoms before delete: ", container.getAtomCount()); // update atoms Atom[] atoms = container.getConnectedAtoms(highlightedAtom); if (atoms.length > 0) { AtomContainer atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, atoms[0]); updateAtoms(atomCon, atoms); } } else if (highlightedBond != null) { logger.info("User asks to delete a Bond"); ChemModelManipulator.removeElectronContainer(chemModel, highlightedBond); // update atoms Atom[] atoms = highlightedBond.getAtoms(); AtomContainer container = ChemModelManipulator.getRelevantAtomContainer(chemModel, atoms[0]); updateAtoms(container, atoms); } else { logger.warn("Cannot deleted if nothing is highlighted"); return; } /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ r2dm.fireChange(); fireChange(); } if (c2dm.getDrawMode() == c2dm.RING || c2dm.getDrawMode() == c2dm.BENZENERING) { Ring newRing; Point2d sharedAtomsCenter; Vector2d ringCenterVector; double bondLength; int pointerMarkX; int pointerMarkY; double ringRadius; double angle; double xDiff; double yDiff; double distance1 = 0; double distance2 = 0; Atom firstAtom; Atom secondAtom; Atom spiroAtom; Point2d conAtomsCenter = null; Point2d newPoint1; Point2d newPoint2; RingPlacer ringPlacer = new RingPlacer(); int ringSize = c2dm.getRingSize(); String symbol = c2dm.getDrawElement(); AtomContainer sharedAtoms = getHighlighted(); if (sharedAtoms.getAtomCount() == 0) { sharedAtoms = new AtomContainer(); newRing = new Ring(ringSize, symbol); if (c2dm.getDrawMode() == c2dm.BENZENERING) { // make newRing a benzene ring Bond[] bonds = newRing.getBonds(); bonds[0].setOrder(2.0); bonds[2].setOrder(2.0); bonds[4].setOrder(2.0); makeRingAromatic(newRing); } bondLength = r2dm.getBondLength(); ringRadius = (bondLength / 2) / Math.sin(Math.PI / c2dm.getRingSize()); sharedAtomsCenter = new Point2d(mouseX, mouseY - ringRadius); firstAtom = newRing.getAtomAt(0); firstAtom.setPoint2d(sharedAtomsCenter); sharedAtoms.addAtom(firstAtom); ringCenterVector = new Vector2d(new Point2d(mouseX, mouseY)); ringCenterVector.sub(sharedAtomsCenter); ringPlacer.placeSpiroRing(newRing, sharedAtoms, sharedAtomsCenter, ringCenterVector, bondLength); AtomContainer atomCon = ChemModelManipulator.createNewMolecule(chemModel); atomCon.add(newRing); /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ } else if (sharedAtoms.getAtomCount() == 1) { spiroAtom = sharedAtoms.getAtomAt(0); sharedAtomsCenter = GeometryTools.get2DCenter(sharedAtoms); newRing = createAttachRing(sharedAtoms, ringSize, symbol); if (c2dm.getDrawMode() == c2dm.BENZENERING) { // make newRing a benzene ring Bond[] bonds = newRing.getBonds(); bonds[0].setOrder(2.0); bonds[2].setOrder(2.0); bonds[4].setOrder(2.0); makeRingAromatic(newRing); } bondLength = r2dm.getBondLength(); conAtomsCenter = getConnectedAtomsCenter(sharedAtoms); if (conAtomsCenter.equals(spiroAtom.getPoint2d())) { ringCenterVector = new Vector2d(0, 1); } else { ringCenterVector = new Vector2d(sharedAtomsCenter); ringCenterVector.sub(conAtomsCenter); } ringPlacer.placeSpiroRing(newRing, sharedAtoms, sharedAtomsCenter, ringCenterVector, bondLength); // removes the highlighed atom from the ring to add only the new placed // atoms to the AtomContainer. try { newRing.removeAtom(spiroAtom); } catch (Exception exc) { logger.error("Could not remove atom from ring"); logger.debug(exc); } AtomContainer atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, spiroAtom); atomCon.add(newRing); /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ } else if (sharedAtoms.getAtomCount() == 2) { sharedAtomsCenter = GeometryTools.get2DCenter(sharedAtoms); // calculate two points that are perpendicular to the highlighted bond // and have a certain distance from the bondcenter firstAtom = sharedAtoms.getAtomAt(0); secondAtom = sharedAtoms.getAtomAt(1); xDiff = secondAtom.getX2d() - firstAtom.getX2d(); yDiff = secondAtom.getY2d() - firstAtom.getY2d(); bondLength = Math.sqrt(Math.pow(xDiff, 2) + Math.pow(yDiff, 2)); angle = GeometryTools.getAngle(xDiff, yDiff); newPoint1 = new Point2d((Math.cos(angle + (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.x, (Math.sin(angle + (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.y); newPoint2 = new Point2d((Math.cos(angle - (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.x, (Math.sin(angle - (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.y); if (wasDragged) { // check which one of the two points is nearest to the endpoint of the pointer // vector that was dragged to make the ringCenterVector point into the right direction. pointerMarkX = r2dm.getPointerVectorEnd().x; pointerMarkY = r2dm.getPointerVectorEnd().y; distance1 = -1 * (Math.sqrt(Math.pow(newPoint1.x - pointerMarkX, 2) + Math.pow(newPoint1.y - pointerMarkY, 2))); distance2 = -1 * (Math.sqrt(Math.pow(newPoint2.x - pointerMarkX, 2) + Math.pow(newPoint2.y - pointerMarkY, 2))); r2dm.setPointerVectorStart(null); r2dm.setPointerVectorEnd(null); } else { // check which one of the two points is nearest to the center of the // connected atoms to make the ringCenterVector point into the right direction. conAtomsCenter = getConnectedAtomsCenter(sharedAtoms); distance1 = Math.sqrt(Math.pow(newPoint1.x - conAtomsCenter.x, 2) + Math.pow(newPoint1.y - conAtomsCenter.y, 2)); distance2 = Math.sqrt(Math.pow(newPoint2.x - conAtomsCenter.x, 2) + Math.pow(newPoint2.y - conAtomsCenter.y, 2)); } ringCenterVector = new Vector2d(sharedAtomsCenter); // no ring is attached if the two ditances are equal if (distance1 == distance2) { logger.warn("don't know where to draw the new Ring"); } else { if (distance1 < distance2) { ringCenterVector.sub(newPoint1); } else if (distance2 < distance1) { ringCenterVector.sub(newPoint2); } AtomContainer atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, firstAtom); // construct a new Ring that contains the highlighted bond an its two atoms newRing = createAttachRing(sharedAtoms, ringSize, symbol); if (c2dm.getDrawMode() == c2dm.BENZENERING) { // make newRing a benzene ring Bond existingBond = atomCon.getBond(firstAtom, secondAtom); Bond[] bonds = newRing.getBonds(); if (existingBond.getOrder() == 1.0) { if (existingBond.getFlag(CDKConstants.ISAROMATIC)) { bonds[2].setOrder(2.0); bonds[4].setOrder(2.0); } else { bonds[1].setOrder(2.0); bonds[3].setOrder(2.0); bonds[5].setOrder(2.0); } } else { bonds[2].setOrder(2.0); bonds[4].setOrder(2.0); } makeRingAromatic(newRing); } // place the new atoms of the new ring to the right position ringPlacer.placeFusedRing(newRing, sharedAtoms, sharedAtomsCenter, ringCenterVector, bondLength); // removes the highlighed bond and its atoms from the ring to add only // the new placed atoms to the AtomContainer. try { newRing.remove(sharedAtoms); } catch (Exception exc) { logger.error("Could not remove atom from ring"); logger.debug(exc); } atomCon.add(newRing); } /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ } r2dm.fireChange(); fireChange(); } if (c2dm.getDrawMode() == c2dm.LASSO) { // first deselect all atoms r2dm.setSelectedPart(new AtomContainer()); // now select new atoms if (wasDragged) { Vector lassoPoints = r2dm.getLassoPoints(); r2dm.addLassoPoint(new Point((Point) lassoPoints.elementAt(0))); int number = lassoPoints.size(); logger.debug("# lasso points: ", number); int[] screenLassoCoords = new int[number * 2]; Point currentPoint; for (int i = 0; i < number; i++) { currentPoint = (Point) lassoPoints.elementAt(i); screenLassoCoords[i * 2] = currentPoint.x; screenLassoCoords[i * 2 + 1] = currentPoint.y; logger.debug("ScreenLasso.x = ", screenLassoCoords[i * 2]); logger.debug("ScreenLasso.y = ", screenLassoCoords[i * 2 + 1]); } /* * Convert points to world coordinates as they are * in screen coordinates in the vector */ int[] worldCoords = getWorldCoordinates(screenLassoCoords); logger.debug("Returned coords: ", worldCoords.length); logger.debug(" # points: ", number); int[] xPoints = new int[number]; int[] yPoints = new int[number]; for (int i = 0; i < number; i++) { xPoints[i] = worldCoords[i * 2]; yPoints[i] = worldCoords[i * 2 + 1]; logger.debug("WorldCoords.x = ", worldCoords[i * 2]); logger.debug("WorldCoords.y = ", worldCoords[i * 2 + 1]); logger.debug("Polygon.x = ", xPoints[i]); logger.debug("Polygon.y = ", yPoints[i]); } Polygon polygon = new Polygon(xPoints, yPoints, number); r2dm.setSelectedPart(getContainedAtoms(polygon)); r2dm.getLassoPoints().removeAllElements(); r2dm.fireChange(); } else { // one atom clicked or one bond clicked ChemObject chemObj = getChemObjectInRange(mouseX, mouseY); AtomContainer container = new AtomContainer(); if (chemObj instanceof Atom) { container.addAtom((Atom) chemObj); logger.debug("selected one atom in lasso mode"); r2dm.setSelectedPart(container); } else if (chemObj instanceof Bond) { Bond bond = (Bond) chemObj; container.addBond(bond); logger.debug("selected one bond in lasso mode"); Atom[] atoms = bond.getAtoms(); for (int i = 0; i < atoms.length; i++) { container.addAtom(atoms[i]); } r2dm.setSelectedPart(container); } } fireChange(); } if (c2dm.getDrawMode() == c2dm.MOVE) { if (draggingSelected == false) { // then it was dragging nearest Bond or Atom r2dm.setSelectedPart(new AtomContainer()); } } if (wasDragged) { prevDragCoordX = 0; prevDragCoordY = 0; wasDragged = false; } dragMode = DRAG_UNSET; r2dm.setPointerVectorStart(null); r2dm.setPointerVectorEnd(null); } }
|
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/81f64c41697e064b62e064b62677261a78168623/Controller2D.java/clean/src/org/openscience/cdk/controller/Controller2D.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
7644,
26363,
12,
9186,
1133,
871,
13,
202,
95,
565,
20488,
2896,
429,
3043,
273,
629,
31,
202,
202,
4901,
18,
4148,
2932,
9186,
26363,
2587,
1186,
1121,
30,
1965,
1546,
16,
276,
22,
10956,
18,
588,
6493,
2309,
780,
10663,
3639,
309,
261,
4901,
18,
291,
2829,
1526,
10756,
288,
5411,
1194,
18,
4148,
2932,
282,
3080,
1546,
397,
871,
18,
291,
13770,
6518,
9334,
7682,
3104,
18417,
1056,
30,
315,
397,
871,
18,
588,
6563,
1380,
10663,
3639,
289,
3639,
309,
14015,
2575,
18,
588,
11948,
1435,
473,
17013,
1133,
18,
20068,
21,
67,
11704,
13,
480,
374,
13,
288,
1082,
202,
474,
8526,
5518,
13089,
273,
288,
2575,
18,
588,
60,
9334,
871,
18,
588,
61,
17767,
31,
1082,
202,
474,
8526,
7644,
13089,
273,
13876,
6245,
13431,
12,
9252,
13089,
1769,
1082,
202,
474,
7644,
60,
273,
7644,
13089,
63,
20,
15533,
1082,
202,
474,
7644,
61,
273,
7644,
13089,
63,
21,
15533,
1082,
202,
430,
261,
71,
22,
10956,
18,
588,
6493,
2309,
1435,
422,
276,
22,
10956,
18,
22093,
13,
288,
9506,
202,
3641,
3179,
25277,
273,
436,
22,
10956,
18,
588,
16205,
329,
3641,
5621,
9506,
202,
430,
261,
7466,
25277,
480,
446,
13,
288,
10792,
309,
12,
2972,
6517,
1046,
18,
588,
12,
7466,
25277,
13,
631,
2011,
13,
8227,
783,
6517,
1046,
18,
458,
12,
7466,
25277,
16,
394,
2144,
12,
21,
10019,
10792,
509,
1592,
6517,
1046,
33,
12443,
4522,
13,
2972,
6517,
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,
7644,
26363,
12,
9186,
1133,
871,
13,
202,
95,
565,
20488,
2896,
429,
3043,
273,
629,
31,
202,
202,
4901,
18,
4148,
2932,
9186,
26363,
2587,
1186,
1121,
30,
1965,
1546,
16,
276,
22,
10956,
18,
588,
6493,
2309,
780,
10663,
3639,
309,
261,
4901,
18,
291,
2829,
1526,
10756,
288,
5411,
1194,
18,
4148,
2932,
282,
3080,
1546,
397,
871,
18,
291,
13770,
6518,
9334,
7682,
3104,
18417,
1056,
30,
315,
397,
871,
18,
588,
6563,
1380,
10663,
3639,
289,
3639,
309,
14015,
2575,
18,
588,
11948,
1435,
473,
17013,
1133,
18,
20068,
21,
67,
11704,
13,
480,
374,
13,
288,
1082,
202,
474,
8526,
5518,
13089,
273,
288,
2575,
18,
588,
60,
9334,
2
] |
public void removeLease(int index) { _leases.remove(index);
|
public void removeLease(Lease lease) { _leases.remove(lease);
|
public void removeLease(int index) { _leases.remove(index); }
|
45677 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45677/63f3a9cd7b1a61949eed05a7bda5f268ec2d473e/LeaseSet.java/buggy/core/java/src/net/i2p/data/LeaseSet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
17746,
12,
474,
770,
13,
288,
3639,
389,
298,
3304,
18,
4479,
12,
1615,
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
] |
[
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
17746,
12,
474,
770,
13,
288,
3639,
389,
298,
3304,
18,
4479,
12,
1615,
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
] |
private static Options buildOptions() {
|
private static synchronized Options buildOptions() {
|
private static Options buildOptions() { Options options = new Options(); options.addOption(OptionBuilder.hasArg(false).withDescription("usage information").withLongOpt("help").create('h')); options.addOption(OptionBuilder.hasArg(false).withDescription("display the Groovy and JVM versions").withLongOpt("version").create('v')); options.addOption(OptionBuilder.withArgName("charset").hasArg().withDescription("specify the encoding of the files").withLongOpt("encoding").create('c')); options.addOption(OptionBuilder.withArgName("script").hasArg().withDescription("specify a command line script").create('e')); options.addOption(OptionBuilder.withArgName("extension").hasOptionalArg().withDescription("modify files in place").create('i')); options.addOption(OptionBuilder.hasArg(false).withDescription("process files line by line").create('n')); options.addOption(OptionBuilder.hasArg(false).withDescription("process files line by line and print result").create('p')); options.addOption(OptionBuilder.withArgName("port").hasOptionalArg().withDescription("listen on a port and process inbound lines").create('l')); return options; }
|
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/d41fcf247fa2bf2ce98e7adaaabbc92e51fa0452/GroovyMain.java/buggy/src/main/groovy/ui/GroovyMain.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
3852,
5087,
1361,
1320,
1435,
288,
3639,
5087,
702,
273,
394,
5087,
5621,
3639,
702,
18,
1289,
1895,
12,
1895,
1263,
18,
5332,
4117,
12,
5743,
2934,
1918,
3291,
2932,
9167,
1779,
20387,
1918,
3708,
6179,
2932,
5201,
20387,
2640,
2668,
76,
6134,
1769,
3639,
702,
18,
1289,
1895,
12,
1895,
1263,
18,
5332,
4117,
12,
5743,
2934,
1918,
3291,
2932,
5417,
326,
20841,
471,
14131,
5244,
20387,
1918,
3708,
6179,
2932,
1589,
20387,
2640,
2668,
90,
6134,
1769,
3639,
702,
18,
1289,
1895,
12,
1895,
1263,
18,
1918,
4117,
461,
2932,
9999,
20387,
5332,
4117,
7675,
1918,
3291,
2932,
2793,
1164,
326,
2688,
434,
326,
1390,
20387,
1918,
3708,
6179,
2932,
5999,
20387,
2640,
2668,
71,
6134,
1769,
3639,
702,
18,
1289,
1895,
12,
1895,
1263,
18,
1918,
4117,
461,
2932,
4263,
20387,
5332,
4117,
7675,
1918,
3291,
2932,
2793,
1164,
279,
1296,
980,
2728,
20387,
2640,
2668,
73,
6134,
1769,
3639,
702,
18,
1289,
1895,
12,
1895,
1263,
18,
1918,
4117,
461,
2932,
6447,
20387,
5332,
6542,
4117,
7675,
1918,
3291,
2932,
17042,
1390,
316,
3166,
20387,
2640,
2668,
77,
6134,
1769,
3639,
702,
18,
1289,
1895,
12,
1895,
1263,
18,
5332,
4117,
12,
5743,
2934,
1918,
3291,
2932,
2567,
1390,
980,
635,
980,
20387,
2640,
2668,
82,
6134,
1769,
3639,
702,
18,
1289,
1895,
12,
1895,
1263,
18,
5332,
4117,
12,
5743,
2934,
1918,
3291,
2932,
2567,
1390,
980,
635,
980,
471,
1172,
563,
20387,
2640,
2668,
84,
6134,
1769,
7734,
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,
3852,
5087,
1361,
1320,
1435,
288,
3639,
5087,
702,
273,
394,
5087,
5621,
3639,
702,
18,
1289,
1895,
12,
1895,
1263,
18,
5332,
4117,
12,
5743,
2934,
1918,
3291,
2932,
9167,
1779,
20387,
1918,
3708,
6179,
2932,
5201,
20387,
2640,
2668,
76,
6134,
1769,
3639,
702,
18,
1289,
1895,
12,
1895,
1263,
18,
5332,
4117,
12,
5743,
2934,
1918,
3291,
2932,
5417,
326,
20841,
471,
14131,
5244,
20387,
1918,
3708,
6179,
2932,
1589,
20387,
2640,
2668,
90,
6134,
1769,
3639,
702,
18,
1289,
1895,
12,
1895,
1263,
18,
1918,
4117,
461,
2932,
9999,
20387,
5332,
4117,
7675,
1918,
3291,
2932,
2793,
1164,
326,
2688,
434,
326,
1390,
20387,
1918,
3708,
6179,
2932,
5999,
20387,
2640,
2668,
2
] |
messages.append(msg + "\n");
|
messages.append(msg + Messages.getString("UploadDialog.15"));
|
public void showMessage(String msg) { messages.append(msg + "\n"); messages.setCaretPosition(messages.getDocument().getLength()); }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/dede9cd407089be1164a825045731d2cc10fbe17/UploadDialog.java/buggy/src/org/exist/client/UploadDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2405,
1079,
12,
780,
1234,
13,
288,
202,
202,
6833,
18,
6923,
12,
3576,
397,
1548,
82,
8863,
202,
202,
6833,
18,
542,
39,
20731,
2555,
12,
6833,
18,
588,
2519,
7675,
588,
1782,
10663,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
202,
482,
918,
2405,
1079,
12,
780,
1234,
13,
288,
202,
202,
6833,
18,
6923,
12,
3576,
397,
1548,
82,
8863,
202,
202,
6833,
18,
542,
39,
20731,
2555,
12,
6833,
18,
588,
2519,
7675,
588,
1782,
10663,
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
] |
t = parseEngine.parse(startSymbol);
|
if(Token.isLexerName(startSymbol)) { t = lexEngine.parse(startSymbol); } else { t = parseEngine.parse(startSymbol); }
|
protected void run_() { CharStream input = new ANTLRStringStream(textPane.getText()); org.antlr.tool.Interpreter lexEngine = new org.antlr.tool.Interpreter(lexer, input); CommonTokenStream tokens = new CommonTokenStream(lexEngine); tokens.setTokenTypeChannel(lexer.getTokenType("WS"), 99); tokens.setTokenTypeChannel(lexer.getTokenType("SL_COMMENT"), 99); tokens.setTokenTypeChannel(lexer.getTokenType("ML_COMMENT"), 99); org.antlr.tool.Interpreter parseEngine = new org.antlr.tool.Interpreter(parser, tokens); ParseTree t = null; try { t = parseEngine.parse(startSymbol); } catch (Exception e) { e.printStackTrace(); XJAlert.display(editor.getWindowContainer(), "Error while interpreting", "The interpreter has generated the following exception:\n"+e); } treeModel.setGrammar(parser); treeModel.setTree(t); tree.updateUI(); TreeUtilities.expandAll(tree); editor.console.closeGroup(); }
|
4430 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4430/73cd349bb31b15b43b1fa12d3c7fb8ceb7d58642/Interpreter.java/buggy/src/org/antlr/works/interpreter/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1086,
67,
1435,
288,
3639,
3703,
1228,
810,
273,
394,
27274,
16018,
780,
1228,
12,
955,
8485,
18,
588,
1528,
10663,
3639,
2358,
18,
970,
10826,
18,
6738,
18,
30010,
5275,
4410,
273,
394,
2358,
18,
970,
10826,
18,
6738,
18,
30010,
12,
31731,
16,
810,
1769,
3639,
5658,
1345,
1228,
2430,
273,
394,
5658,
1345,
1228,
12,
4149,
4410,
1769,
3639,
2430,
18,
542,
28675,
2909,
12,
31731,
18,
588,
28675,
2932,
2651,
6,
3631,
14605,
1769,
3639,
2430,
18,
542,
28675,
2909,
12,
31731,
18,
588,
28675,
2932,
4559,
67,
12200,
6,
3631,
14605,
1769,
3639,
2430,
18,
542,
28675,
2909,
12,
31731,
18,
588,
28675,
2932,
1495,
67,
12200,
6,
3631,
14605,
1769,
3639,
2358,
18,
970,
10826,
18,
6738,
18,
30010,
1109,
4410,
273,
394,
2358,
18,
970,
10826,
18,
6738,
18,
30010,
12,
4288,
16,
2430,
1769,
3639,
2884,
2471,
268,
273,
446,
31,
3639,
775,
288,
5411,
309,
12,
1345,
18,
291,
13356,
461,
12,
1937,
5335,
3719,
288,
268,
273,
5275,
4410,
18,
2670,
12,
1937,
5335,
1769,
289,
469,
288,
268,
273,
1109,
4410,
18,
2670,
12,
1937,
5335,
1769,
289,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
425,
18,
1188,
6332,
5621,
5411,
1139,
46,
13298,
18,
5417,
12,
9177,
18,
588,
3829,
2170,
9334,
315,
668,
1323,
10634,
310,
3113,
315,
1986,
16048,
711,
4374,
326,
3751,
1520,
5581,
82,
6,
15,
73,
1769,
3639,
289,
3639,
2151,
1488,
18,
542,
18576,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1086,
67,
1435,
288,
3639,
3703,
1228,
810,
273,
394,
27274,
16018,
780,
1228,
12,
955,
8485,
18,
588,
1528,
10663,
3639,
2358,
18,
970,
10826,
18,
6738,
18,
30010,
5275,
4410,
273,
394,
2358,
18,
970,
10826,
18,
6738,
18,
30010,
12,
31731,
16,
810,
1769,
3639,
5658,
1345,
1228,
2430,
273,
394,
5658,
1345,
1228,
12,
4149,
4410,
1769,
3639,
2430,
18,
542,
28675,
2909,
12,
31731,
18,
588,
28675,
2932,
2651,
6,
3631,
14605,
1769,
3639,
2430,
18,
542,
28675,
2909,
12,
31731,
18,
588,
28675,
2932,
4559,
67,
12200,
6,
3631,
14605,
1769,
3639,
2430,
18,
542,
28675,
2909,
12,
31731,
18,
588,
28675,
2932,
1495,
67,
12200,
6,
3631,
14605,
1769,
2
] |
int width = Math.max( 80, gc.textExtent( popupName ).x );
|
int width = Math.max( 80, gc.textExtent( text ).x );
|
protected Button createToggleButton( Composite parent, String popupName, ITaskPopupSheet popupSheet ) { Button button = new Button( parent, SWT.TOGGLE ); button.setText( popupName ); // Use GC to calculate the button width GC gc = new GC( parent ); int width = Math.max( 80, gc.textExtent( popupName ).x ); gc.dispose( ); GridData gd = new GridData( ); gd.widthHint = width; button.setLayoutData( gd ); popupButtonRegistry.put( popupName, button ); popupSheetRegistry.put( popupName, popupSheet ); return button; }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/8809bc426a3662f0ca5c28e3a367a36ddbf7e336/SubtaskSheetImpl.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/format/SubtaskSheetImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
12569,
752,
17986,
3616,
12,
14728,
982,
16,
514,
10431,
461,
16,
1082,
202,
1285,
835,
13770,
8229,
10431,
8229,
262,
202,
95,
202,
202,
3616,
3568,
273,
394,
12569,
12,
982,
16,
348,
8588,
18,
4296,
19491,
900,
11272,
202,
202,
5391,
18,
542,
1528,
12,
10431,
461,
11272,
202,
202,
759,
2672,
15085,
358,
4604,
326,
3568,
1835,
202,
202,
15396,
8859,
273,
394,
15085,
12,
982,
11272,
202,
202,
474,
1835,
273,
2361,
18,
1896,
12,
8958,
16,
8859,
18,
955,
17639,
12,
10431,
461,
262,
18,
92,
11272,
202,
202,
13241,
18,
2251,
4150,
12,
11272,
202,
202,
6313,
751,
15551,
273,
394,
7145,
751,
12,
11272,
202,
202,
19016,
18,
2819,
7002,
273,
1835,
31,
202,
202,
5391,
18,
542,
3744,
751,
12,
15551,
11272,
202,
202,
16086,
3616,
4243,
18,
458,
12,
10431,
461,
16,
3568,
11272,
202,
202,
16086,
8229,
4243,
18,
458,
12,
10431,
461,
16,
10431,
8229,
11272,
202,
202,
2463,
3568,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
12569,
752,
17986,
3616,
12,
14728,
982,
16,
514,
10431,
461,
16,
1082,
202,
1285,
835,
13770,
8229,
10431,
8229,
262,
202,
95,
202,
202,
3616,
3568,
273,
394,
12569,
12,
982,
16,
348,
8588,
18,
4296,
19491,
900,
11272,
202,
202,
5391,
18,
542,
1528,
12,
10431,
461,
11272,
202,
202,
759,
2672,
15085,
358,
4604,
326,
3568,
1835,
202,
202,
15396,
8859,
273,
394,
15085,
12,
982,
11272,
202,
202,
474,
1835,
273,
2361,
18,
1896,
12,
8958,
16,
8859,
18,
955,
17639,
12,
10431,
461,
262,
18,
92,
11272,
202,
202,
13241,
18,
2251,
4150,
12,
11272,
202,
202,
6313,
751,
15551,
273,
394,
7145,
751,
12,
11272,
202,
202,
19016,
18,
2819,
2
] |
for (i = (int)(charSet.length); i >= 0; i--)
|
for (i = charSet.length; i >= 0; i--)
|
processCharSetImpl(REGlobalData gData, RECharSet charSet) { int src = charSet.startIndex; int end = src + charSet.strlength; char rangeStart = 0, thisCh; int byteLength; char c; int n; int nDigits; int i; boolean inRange = false; charSet.sense = true; byteLength = (charSet.length / 8) + 1; charSet.bits = new byte[byteLength]; if (src == end) return; if (gData.regexp.source[src] == '^') { charSet.sense = false; ++src; } while (src != end) { nDigits = 2; switch (gData.regexp.source[src]) { case '\\': ++src; c = gData.regexp.source[src++]; switch (c) { case 'b': thisCh = 0x8; break; case 'f': thisCh = 0xC; break; case 'n': thisCh = 0xA; break; case 'r': thisCh = 0xD; break; case 't': thisCh = 0x9; break; case 'v': thisCh = 0xB; break; case 'c': if (((src + 1) < end) && isWord(gData.regexp.source[src + 1])) thisCh = (char)(gData.regexp.source[src++] & 0x1F); else { --src; thisCh = '\\'; } break; case 'u': nDigits += 2; // fall thru case 'x': n = 0; for (i = 0; (i < nDigits) && (src < end); i++) { c = gData.regexp.source[src++]; int digit = toASCIIHexDigit(c); if (digit < 0) { /* back off to accepting the original '\' * as a literal */ src -= (i + 1); n = '\\'; break; } n = (n << 4) | digit; } thisCh = (char)(n); break; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': /* * This is a non-ECMA extension - decimal escapes (in this * case, octal!) are supposed to be an error inside class * ranges, but supported here for backwards compatibility. * */ n = (c - '0'); c = gData.regexp.source[src]; if ('0' <= c && c <= '7') { src++; n = 8 * n + (c - '0'); c = gData.regexp.source[src]; if ('0' <= c && c <= '7') { src++; i = 8 * n + (c - '0'); if (i <= 0377) n = i; else src--; } } thisCh = (char)(n); break; case 'd': addCharacterRangeToCharSet(charSet, '0', '9'); continue; /* don't need range processing */ case 'D': addCharacterRangeToCharSet(charSet, (char)0, (char)('0' - 1)); addCharacterRangeToCharSet(charSet, (char)('9' + 1), (char)(charSet.length)); continue; case 's': for (i = (int)(charSet.length); i >= 0; i--) if (isREWhiteSpace(i)) addCharacterToCharSet(charSet, (char)(i)); continue; case 'S': for (i = (int)(charSet.length); i >= 0; i--) if (!isREWhiteSpace(i)) addCharacterToCharSet(charSet, (char)(i)); continue; case 'w': for (i = (int)(charSet.length); i >= 0; i--) if (isWord((char)i)) addCharacterToCharSet(charSet, (char)(i)); continue; case 'W': for (i = (int)(charSet.length); i >= 0; i--) if (!isWord((char)i)) addCharacterToCharSet(charSet, (char)(i)); continue; default: thisCh = c; break; } break; default: thisCh = gData.regexp.source[src++]; break; } if (inRange) { if ((gData.regexp.flags & JSREG_FOLD) != 0) { addCharacterRangeToCharSet(charSet, upcase(rangeStart), upcase(thisCh)); addCharacterRangeToCharSet(charSet, downcase(rangeStart), downcase(thisCh)); } else { addCharacterRangeToCharSet(charSet, rangeStart, thisCh); } inRange = false; } else { if ((gData.regexp.flags & JSREG_FOLD) != 0) { addCharacterToCharSet(charSet, upcase(thisCh)); addCharacterToCharSet(charSet, downcase(thisCh)); } else { addCharacterToCharSet(charSet, thisCh); } if (src < (end - 1)) { if (gData.regexp.source[src] == '-') { ++src; inRange = true; rangeStart = thisCh; } } } } }
|
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/b89a57f20272e030777780f6c2063bca3617100d/NativeRegExp.java/clean/js/rhino/src/org/mozilla/javascript/regexp/NativeRegExp.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1207,
2156,
694,
2828,
12,
862,
5160,
751,
314,
751,
16,
2438,
2156,
694,
1149,
694,
13,
565,
288,
3639,
509,
1705,
273,
1149,
694,
18,
1937,
1016,
31,
3639,
509,
679,
273,
1705,
397,
1149,
694,
18,
701,
2469,
31,
3639,
1149,
29513,
273,
374,
16,
333,
782,
31,
3639,
509,
27282,
31,
3639,
1149,
276,
31,
3639,
509,
290,
31,
3639,
509,
290,
9537,
31,
3639,
509,
277,
31,
3639,
1250,
316,
2655,
273,
629,
31,
3639,
1149,
694,
18,
87,
3558,
273,
638,
31,
3639,
27282,
273,
261,
3001,
694,
18,
2469,
342,
1725,
13,
397,
404,
31,
3639,
1149,
694,
18,
6789,
273,
394,
1160,
63,
7229,
1782,
15533,
3639,
309,
261,
4816,
422,
679,
13,
5411,
327,
31,
3639,
309,
261,
75,
751,
18,
17745,
18,
3168,
63,
4816,
65,
422,
10731,
6134,
288,
5411,
1149,
694,
18,
87,
3558,
273,
629,
31,
5411,
965,
4816,
31,
3639,
289,
3639,
1323,
261,
4816,
480,
679,
13,
288,
5411,
290,
9537,
273,
576,
31,
5411,
1620,
261,
75,
751,
18,
17745,
18,
3168,
63,
4816,
5717,
288,
5411,
648,
3718,
4278,
7734,
965,
4816,
31,
7734,
276,
273,
314,
751,
18,
17745,
18,
3168,
63,
4816,
9904,
15533,
7734,
1620,
261,
71,
13,
288,
7734,
648,
296,
70,
4278,
10792,
333,
782,
273,
374,
92,
28,
31,
10792,
898,
31,
7734,
648,
296,
74,
4278,
10792,
333,
782,
273,
374,
14626,
31,
10792,
898,
31,
7734,
648,
296,
82,
4278,
10792,
333,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1207,
2156,
694,
2828,
12,
862,
5160,
751,
314,
751,
16,
2438,
2156,
694,
1149,
694,
13,
565,
288,
3639,
509,
1705,
273,
1149,
694,
18,
1937,
1016,
31,
3639,
509,
679,
273,
1705,
397,
1149,
694,
18,
701,
2469,
31,
3639,
1149,
29513,
273,
374,
16,
333,
782,
31,
3639,
509,
27282,
31,
3639,
1149,
276,
31,
3639,
509,
290,
31,
3639,
509,
290,
9537,
31,
3639,
509,
277,
31,
3639,
1250,
316,
2655,
273,
629,
31,
3639,
1149,
694,
18,
87,
3558,
273,
638,
31,
3639,
27282,
273,
261,
3001,
694,
18,
2469,
342,
1725,
13,
397,
404,
31,
3639,
1149,
694,
18,
6789,
273,
394,
1160,
63,
7229,
1782,
15533,
3639,
309,
261,
4816,
422,
2
] |
case 288 : if (DEBUG) { System.out.println("SwitchBlock ::= LBRACE SwitchBlockStatements..."); }
|
case 289 : if (DEBUG) { System.out.println("SwitchBlock ::= LBRACE SwitchBlockStatements..."); }
|
protected void consumeRule(int act) { switch ( act ) { case 29 : if (DEBUG) { System.out.println("Type ::= PrimitiveType"); } //$NON-NLS-1$ consumePrimitiveType(); break; case 43 : if (DEBUG) { System.out.println("ReferenceType ::= ClassOrInterfaceType"); } //$NON-NLS-1$ consumeReferenceType(); break; case 47 : if (DEBUG) { System.out.println("ClassOrInterface ::= Name"); } //$NON-NLS-1$ consumeClassOrInterfaceName(); break; case 48 : if (DEBUG) { System.out.println("ClassOrInterface ::= GenericType DOT Name"); } //$NON-NLS-1$ consumeClassOrInterface(); break; case 49 : if (DEBUG) { System.out.println("GenericType ::= ClassOrInterface TypeArguments"); } //$NON-NLS-1$ consumeGenericType(); break; case 50 : if (DEBUG) { System.out.println("ArrayTypeWithTypeArgumentsName ::= GenericType DOT Name"); } //$NON-NLS-1$ consumeArrayTypeWithTypeArgumentsName(); break; case 51 : if (DEBUG) { System.out.println("ArrayType ::= PrimitiveType Dims"); } //$NON-NLS-1$ consumePrimitiveArrayType(); break; case 52 : if (DEBUG) { System.out.println("ArrayType ::= Name Dims"); } //$NON-NLS-1$ consumeNameArrayType(); break; case 53 : if (DEBUG) { System.out.println("ArrayType ::= ArrayTypeWithTypeArgumentsName Dims"); } //$NON-NLS-1$ consumeGenericTypeNameArrayType(); break; case 54 : if (DEBUG) { System.out.println("ArrayType ::= GenericType Dims"); } //$NON-NLS-1$ consumeGenericTypeArrayType(); break; case 59 : if (DEBUG) { System.out.println("QualifiedName ::= Name DOT SimpleName"); } //$NON-NLS-1$ consumeQualifiedName(); break; case 60 : if (DEBUG) { System.out.println("CompilationUnit ::= EnterCompilationUnit..."); } //$NON-NLS-1$ consumeCompilationUnit(); break; case 61 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration"); } //$NON-NLS-1$ consumeInternalCompilationUnit(); break; case 62 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration..."); } //$NON-NLS-1$ consumeInternalCompilationUnit(); break; case 63 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 64 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 65 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeInternalCompilationUnit(); break; case 66 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= TypeDeclarations"); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 67 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 68 : if (DEBUG) { System.out.println("InternalCompilationUnit ::="); } //$NON-NLS-1$ consumeEmptyInternalCompilationUnit(); break; case 69 : if (DEBUG) { System.out.println("ReduceImports ::="); } //$NON-NLS-1$ consumeReduceImports(); break; case 70 : if (DEBUG) { System.out.println("EnterCompilationUnit ::="); } //$NON-NLS-1$ consumeEnterCompilationUnit(); break; case 86 : if (DEBUG) { System.out.println("CatchHeader ::= catch LPAREN FormalParameter RPAREN..."); } //$NON-NLS-1$ consumeCatchHeader(); break; case 88 : if (DEBUG) { System.out.println("ImportDeclarations ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeImportDeclarations(); break; case 90 : if (DEBUG) { System.out.println("TypeDeclarations ::= TypeDeclarations TypeDeclaration"); } //$NON-NLS-1$ consumeTypeDeclarations(); break; case 91 : if (DEBUG) { System.out.println("PackageDeclaration ::= PackageDeclarationName SEMICOLON"); } //$NON-NLS-1$ consumePackageDeclaration(); break; case 92 : if (DEBUG) { System.out.println("PackageDeclarationName ::= Modifiers package..."); } //$NON-NLS-1$ consumePackageDeclarationNameWithModifiers(); break; case 93 : if (DEBUG) { System.out.println("PackageDeclarationName ::= PackageComment package Name"); } //$NON-NLS-1$ consumePackageDeclarationName(); break; case 94 : if (DEBUG) { System.out.println("PackageComment ::="); } //$NON-NLS-1$ consumePackageComment(); break; case 99 : if (DEBUG) { System.out.println("SingleTypeImportDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 100 : if (DEBUG) { System.out.println("SingleTypeImportDeclarationName ::= import Name"); } //$NON-NLS-1$ consumeSingleTypeImportDeclarationName(); break; case 101 : if (DEBUG) { System.out.println("TypeImportOnDemandDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 102 : if (DEBUG) { System.out.println("TypeImportOnDemandDeclarationName ::= import Name DOT..."); } //$NON-NLS-1$ consumeTypeImportOnDemandDeclarationName(); break; case 105 : if (DEBUG) { System.out.println("TypeDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyTypeDeclaration(); break; case 109 : if (DEBUG) { System.out.println("Modifiers ::= Modifiers Modifier"); } //$NON-NLS-1$ consumeModifiers2(); break; case 121 : if (DEBUG) { System.out.println("Modifier ::= Annotation"); } //$NON-NLS-1$ consumeAnnotationAsModifier(); break; case 122 : if (DEBUG) { System.out.println("ClassDeclaration ::= ClassHeader ClassBody"); } //$NON-NLS-1$ consumeClassDeclaration(); break; case 123 : if (DEBUG) { System.out.println("ClassHeader ::= ClassHeaderName ClassHeaderExtendsopt..."); } //$NON-NLS-1$ consumeClassHeader(); break; case 124 : if (DEBUG) { System.out.println("ClassHeaderName ::= ClassHeaderName1 TypeParameters"); } //$NON-NLS-1$ consumeTypeHeaderNameWithTypeParameters(); break; case 126 : if (DEBUG) { System.out.println("ClassHeaderName1 ::= Modifiersopt class Identifier"); } //$NON-NLS-1$ consumeClassHeaderName1(); break; case 127 : if (DEBUG) { System.out.println("ClassHeaderExtends ::= extends ClassType"); } //$NON-NLS-1$ consumeClassHeaderExtends(); break; case 128 : if (DEBUG) { System.out.println("ClassHeaderImplements ::= implements InterfaceTypeList"); } //$NON-NLS-1$ consumeClassHeaderImplements(); break; case 130 : if (DEBUG) { System.out.println("InterfaceTypeList ::= InterfaceTypeList COMMA..."); } //$NON-NLS-1$ consumeInterfaceTypeList(); break; case 131 : if (DEBUG) { System.out.println("InterfaceType ::= ClassOrInterfaceType"); } //$NON-NLS-1$ consumeInterfaceType(); break; case 134 : if (DEBUG) { System.out.println("ClassBodyDeclarations ::= ClassBodyDeclarations..."); } //$NON-NLS-1$ consumeClassBodyDeclarations(); break; case 138 : if (DEBUG) { System.out.println("ClassBodyDeclaration ::= Diet NestedMethod Block"); } //$NON-NLS-1$ consumeClassBodyDeclaration(); break; case 139 : if (DEBUG) { System.out.println("Diet ::="); } //$NON-NLS-1$ consumeDiet(); break; case 140 : if (DEBUG) { System.out.println("Initializer ::= Diet NestedMethod Block"); } //$NON-NLS-1$ consumeClassBodyDeclaration(); break; case 147 : if (DEBUG) { System.out.println("ClassMemberDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyClassMemberDeclaration(); break; case 150 : if (DEBUG) { System.out.println("FieldDeclaration ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeFieldDeclaration(); break; case 152 : if (DEBUG) { System.out.println("VariableDeclarators ::= VariableDeclarators COMMA..."); } //$NON-NLS-1$ consumeVariableDeclarators(); break; case 155 : if (DEBUG) { System.out.println("EnterVariable ::="); } //$NON-NLS-1$ consumeEnterVariable(); break; case 156 : if (DEBUG) { System.out.println("ExitVariableWithInitialization ::="); } //$NON-NLS-1$ consumeExitVariableWithInitialization(); break; case 157 : if (DEBUG) { System.out.println("ExitVariableWithoutInitialization ::="); } //$NON-NLS-1$ consumeExitVariableWithoutInitialization(); break; case 158 : if (DEBUG) { System.out.println("ForceNoDiet ::="); } //$NON-NLS-1$ consumeForceNoDiet(); break; case 159 : if (DEBUG) { System.out.println("RestoreDiet ::="); } //$NON-NLS-1$ consumeRestoreDiet(); break; case 164 : if (DEBUG) { System.out.println("MethodDeclaration ::= MethodHeader MethodBody"); } //$NON-NLS-1$ // set to true to consume a method with a body consumeMethodDeclaration(true); break; case 165 : if (DEBUG) { System.out.println("AbstractMethodDeclaration ::= MethodHeader SEMICOLON"); } //$NON-NLS-1$ // set to false to consume a method without body consumeMethodDeclaration(false); break; case 166 : if (DEBUG) { System.out.println("MethodHeader ::= MethodHeaderName FormalParameterListopt"); } //$NON-NLS-1$ consumeMethodHeader(); break; case 167 : if (DEBUG) { System.out.println("MethodHeaderName ::= Modifiersopt TypeParameters Type..."); } //$NON-NLS-1$ consumeMethodHeaderNameWithTypeParameters(false); break; case 168 : if (DEBUG) { System.out.println("MethodHeaderName ::= Modifiersopt Type Identifier LPAREN"); } //$NON-NLS-1$ consumeMethodHeaderName(false); break; case 169 : if (DEBUG) { System.out.println("MethodHeaderRightParen ::= RPAREN"); } //$NON-NLS-1$ consumeMethodHeaderRightParen(); break; case 170 : if (DEBUG) { System.out.println("MethodHeaderExtendedDims ::= Dimsopt"); } //$NON-NLS-1$ consumeMethodHeaderExtendedDims(); break; case 171 : if (DEBUG) { System.out.println("MethodHeaderThrowsClause ::= throws ClassTypeList"); } //$NON-NLS-1$ consumeMethodHeaderThrowsClause(); break; case 172 : if (DEBUG) { System.out.println("ConstructorHeader ::= ConstructorHeaderName..."); } //$NON-NLS-1$ consumeConstructorHeader(); break; case 173 : if (DEBUG) { System.out.println("ConstructorHeaderName ::= Modifiersopt TypeParameters..."); } //$NON-NLS-1$ consumeConstructorHeaderNameWithTypeParameters(); break; case 174 : if (DEBUG) { System.out.println("ConstructorHeaderName ::= Modifiersopt Identifier LPAREN"); } //$NON-NLS-1$ consumeConstructorHeaderName(); break; case 176 : if (DEBUG) { System.out.println("FormalParameterList ::= FormalParameterList COMMA..."); } //$NON-NLS-1$ consumeFormalParameterList(); break; case 177 : if (DEBUG) { System.out.println("FormalParameter ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeFormalParameter(false); break; case 178 : if (DEBUG) { System.out.println("FormalParameter ::= Modifiersopt Type ELLIPSIS..."); } //$NON-NLS-1$ consumeFormalParameter(true); break; case 180 : if (DEBUG) { System.out.println("ClassTypeList ::= ClassTypeList COMMA ClassTypeElt"); } //$NON-NLS-1$ consumeClassTypeList(); break; case 181 : if (DEBUG) { System.out.println("ClassTypeElt ::= ClassType"); } //$NON-NLS-1$ consumeClassTypeElt(); break; case 182 : if (DEBUG) { System.out.println("MethodBody ::= NestedMethod LBRACE BlockStatementsopt..."); } //$NON-NLS-1$ consumeMethodBody(); break; case 183 : if (DEBUG) { System.out.println("NestedMethod ::="); } //$NON-NLS-1$ consumeNestedMethod(); break; case 184 : if (DEBUG) { System.out.println("StaticInitializer ::= StaticOnly Block"); } //$NON-NLS-1$ consumeStaticInitializer(); break; case 185 : if (DEBUG) { System.out.println("StaticOnly ::= static"); } //$NON-NLS-1$ consumeStaticOnly(); break; case 186 : if (DEBUG) { System.out.println("ConstructorDeclaration ::= ConstructorHeader MethodBody"); } //$NON-NLS-1$ consumeConstructorDeclaration() ; break; case 187 : if (DEBUG) { System.out.println("ConstructorDeclaration ::= ConstructorHeader SEMICOLON"); } //$NON-NLS-1$ consumeInvalidConstructorDeclaration() ; break; case 188 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= this LPAREN..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(0, THIS_CALL); break; case 189 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= OnlyTypeArguments this"); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(0,THIS_CALL); break; case 190 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= super LPAREN..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(0,SUPER_CALL); break; case 191 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= OnlyTypeArguments..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(0,SUPER_CALL); break; case 192 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT super..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(1, SUPER_CALL); break; case 193 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(1, SUPER_CALL); break; case 194 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT super LPAREN"); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(2, SUPER_CALL); break; case 195 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(2, SUPER_CALL); break; case 196 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT this..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(1, THIS_CALL); break; case 197 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(1, THIS_CALL); break; case 198 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT this LPAREN"); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(2, THIS_CALL); break; case 199 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(2, THIS_CALL); break; case 200 : if (DEBUG) { System.out.println("InterfaceDeclaration ::= InterfaceHeader InterfaceBody"); } //$NON-NLS-1$ consumeInterfaceDeclaration(); break; case 201 : if (DEBUG) { System.out.println("InterfaceHeader ::= InterfaceHeaderName..."); } //$NON-NLS-1$ consumeInterfaceHeader(); break; case 202 : if (DEBUG) { System.out.println("InterfaceHeaderName ::= InterfaceHeaderName1..."); } //$NON-NLS-1$ consumeTypeHeaderNameWithTypeParameters(); break; case 204 : if (DEBUG) { System.out.println("InterfaceHeaderName1 ::= Modifiersopt interface..."); } //$NON-NLS-1$ consumeInterfaceHeaderName1(); break; case 205 : if (DEBUG) { System.out.println("InterfaceHeaderExtends ::= extends InterfaceTypeList"); } //$NON-NLS-1$ consumeInterfaceHeaderExtends(); break; case 208 : if (DEBUG) { System.out.println("InterfaceMemberDeclarations ::=..."); } //$NON-NLS-1$ consumeInterfaceMemberDeclarations(); break; case 209 : if (DEBUG) { System.out.println("InterfaceMemberDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyInterfaceMemberDeclaration(); break; case 211 : if (DEBUG) { System.out.println("InterfaceMemberDeclaration ::= MethodHeader MethodBody"); } //$NON-NLS-1$ consumeInvalidMethodDeclaration(); break; case 212 : if (DEBUG) { System.out.println("InvalidConstructorDeclaration ::= ConstructorHeader..."); } //$NON-NLS-1$ consumeInvalidConstructorDeclaration(true); break; case 213 : if (DEBUG) { System.out.println("InvalidConstructorDeclaration ::= ConstructorHeader..."); } //$NON-NLS-1$ consumeInvalidConstructorDeclaration(false); break; case 221 : if (DEBUG) { System.out.println("PushLeftBrace ::="); } //$NON-NLS-1$ consumePushLeftBrace(); break; case 222 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace ,opt RBRACE"); } //$NON-NLS-1$ consumeEmptyArrayInitializer(); break; case 223 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeArrayInitializer(); break; case 224 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeArrayInitializer(); break; case 226 : if (DEBUG) { System.out.println("VariableInitializers ::= VariableInitializers COMMA..."); } //$NON-NLS-1$ consumeVariableInitializers(); break; case 227 : if (DEBUG) { System.out.println("Block ::= OpenBlock LBRACE BlockStatementsopt RBRACE"); } //$NON-NLS-1$ consumeBlock(); break; case 228 : if (DEBUG) { System.out.println("OpenBlock ::="); } //$NON-NLS-1$ consumeOpenBlock() ; break; case 230 : if (DEBUG) { System.out.println("BlockStatements ::= BlockStatements BlockStatement"); } //$NON-NLS-1$ consumeBlockStatements() ; break; case 234 : if (DEBUG) { System.out.println("BlockStatement ::= InterfaceDeclaration"); } //$NON-NLS-1$ consumeInvalidInterfaceDeclaration(); break; case 235 : if (DEBUG) { System.out.println("BlockStatement ::= AnnotationTypeDeclaration"); } //$NON-NLS-1$ consumeInvalidAnnotationTypeDeclaration(); break; case 236 : if (DEBUG) { System.out.println("BlockStatement ::= EnumDeclaration"); } //$NON-NLS-1$ consumeInvalidEnumDeclaration(); break; case 237 : if (DEBUG) { System.out.println("LocalVariableDeclarationStatement ::=..."); } //$NON-NLS-1$ consumeLocalVariableDeclarationStatement(); break; case 238 : if (DEBUG) { System.out.println("LocalVariableDeclaration ::= Type PushModifiers..."); } //$NON-NLS-1$ consumeLocalVariableDeclaration(); break; case 239 : if (DEBUG) { System.out.println("LocalVariableDeclaration ::= Modifiers Type..."); } //$NON-NLS-1$ consumeLocalVariableDeclaration(); break; case 240 : if (DEBUG) { System.out.println("PushModifiers ::="); } //$NON-NLS-1$ consumePushModifiers(); break; case 241 : if (DEBUG) { System.out.println("PushModifiersForHeader ::="); } //$NON-NLS-1$ consumePushModifiersForHeader(); break; case 242 : if (DEBUG) { System.out.println("PushRealModifiers ::="); } //$NON-NLS-1$ consumePushRealModifiers(); break; case 268 : if (DEBUG) { System.out.println("EmptyStatement ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyStatement(); break; case 269 : if (DEBUG) { System.out.println("LabeledStatement ::= Label COLON Statement"); } //$NON-NLS-1$ consumeStatementLabel() ; break; case 270 : if (DEBUG) { System.out.println("LabeledStatementNoShortIf ::= Label COLON..."); } //$NON-NLS-1$ consumeStatementLabel() ; break; case 271 : if (DEBUG) { System.out.println("Label ::= Identifier"); } //$NON-NLS-1$ consumeLabel() ; break; case 272 : if (DEBUG) { System.out.println("ExpressionStatement ::= StatementExpression SEMICOLON"); } //$NON-NLS-1$ consumeExpressionStatement(); break; case 281 : if (DEBUG) { System.out.println("IfThenStatement ::= if LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementIfNoElse(); break; case 282 : if (DEBUG) { System.out.println("IfThenElseStatement ::= if LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementIfWithElse(); break; case 283 : if (DEBUG) { System.out.println("IfThenElseStatementNoShortIf ::= if LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementIfWithElse(); break; case 284 : if (DEBUG) { System.out.println("SwitchStatement ::= switch LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementSwitch() ; break; case 285 : if (DEBUG) { System.out.println("SwitchBlock ::= LBRACE RBRACE"); } //$NON-NLS-1$ consumeEmptySwitchBlock() ; break; case 288 : if (DEBUG) { System.out.println("SwitchBlock ::= LBRACE SwitchBlockStatements..."); } //$NON-NLS-1$ consumeSwitchBlock() ; break; case 290 : if (DEBUG) { System.out.println("SwitchBlockStatements ::= SwitchBlockStatements..."); } //$NON-NLS-1$ consumeSwitchBlockStatements() ; break; case 291 : if (DEBUG) { System.out.println("SwitchBlockStatement ::= SwitchLabels BlockStatements"); } //$NON-NLS-1$ consumeSwitchBlockStatement() ; break; case 293 : if (DEBUG) { System.out.println("SwitchLabels ::= SwitchLabels SwitchLabel"); } //$NON-NLS-1$ consumeSwitchLabels() ; break; case 294 : if (DEBUG) { System.out.println("SwitchLabel ::= case ConstantExpression COLON"); } //$NON-NLS-1$ consumeCaseLabel(); break; case 295 : if (DEBUG) { System.out.println("SwitchLabel ::= default COLON"); } //$NON-NLS-1$ consumeDefaultLabel(); break; case 296 : if (DEBUG) { System.out.println("WhileStatement ::= while LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementWhile() ; break; case 297 : if (DEBUG) { System.out.println("WhileStatementNoShortIf ::= while LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementWhile() ; break; case 298 : if (DEBUG) { System.out.println("DoStatement ::= do Statement while LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementDo() ; break; case 299 : if (DEBUG) { System.out.println("ForStatement ::= for LPAREN ForInitopt SEMICOLON..."); } //$NON-NLS-1$ consumeStatementFor() ; break; case 300 : if (DEBUG) { System.out.println("ForStatementNoShortIf ::= for LPAREN ForInitopt..."); } //$NON-NLS-1$ consumeStatementFor() ; break; case 301 : if (DEBUG) { System.out.println("ForInit ::= StatementExpressionList"); } //$NON-NLS-1$ consumeForInit() ; break; case 305 : if (DEBUG) { System.out.println("StatementExpressionList ::= StatementExpressionList..."); } //$NON-NLS-1$ consumeStatementExpressionList() ; break; case 306 : if (DEBUG) { System.out.println("AssertStatement ::= assert Expression SEMICOLON"); } //$NON-NLS-1$ consumeSimpleAssertStatement() ; break; case 307 : if (DEBUG) { System.out.println("AssertStatement ::= assert Expression COLON Expression"); } //$NON-NLS-1$ consumeAssertStatement() ; break; case 308 : if (DEBUG) { System.out.println("BreakStatement ::= break SEMICOLON"); } //$NON-NLS-1$ consumeStatementBreak() ; break; case 309 : if (DEBUG) { System.out.println("BreakStatement ::= break Identifier SEMICOLON"); } //$NON-NLS-1$ consumeStatementBreakWithLabel() ; break; case 310 : if (DEBUG) { System.out.println("ContinueStatement ::= continue SEMICOLON"); } //$NON-NLS-1$ consumeStatementContinue() ; break; case 311 : if (DEBUG) { System.out.println("ContinueStatement ::= continue Identifier SEMICOLON"); } //$NON-NLS-1$ consumeStatementContinueWithLabel() ; break; case 312 : if (DEBUG) { System.out.println("ReturnStatement ::= return Expressionopt SEMICOLON"); } //$NON-NLS-1$ consumeStatementReturn() ; break; case 313 : if (DEBUG) { System.out.println("ThrowStatement ::= throw Expression SEMICOLON"); } //$NON-NLS-1$ consumeStatementThrow(); break; case 314 : if (DEBUG) { System.out.println("SynchronizedStatement ::= OnlySynchronized LPAREN..."); } //$NON-NLS-1$ consumeStatementSynchronized(); break; case 315 : if (DEBUG) { System.out.println("OnlySynchronized ::= synchronized"); } //$NON-NLS-1$ consumeOnlySynchronized(); break; case 316 : if (DEBUG) { System.out.println("TryStatement ::= try TryBlock Catches"); } //$NON-NLS-1$ consumeStatementTry(false); break; case 317 : if (DEBUG) { System.out.println("TryStatement ::= try TryBlock Catchesopt Finally"); } //$NON-NLS-1$ consumeStatementTry(true); break; case 319 : if (DEBUG) { System.out.println("ExitTryBlock ::="); } //$NON-NLS-1$ consumeExitTryBlock(); break; case 321 : if (DEBUG) { System.out.println("Catches ::= Catches CatchClause"); } //$NON-NLS-1$ consumeCatches(); break; case 322 : if (DEBUG) { System.out.println("CatchClause ::= catch LPAREN FormalParameter RPAREN..."); } //$NON-NLS-1$ consumeStatementCatch() ; break; case 324 : if (DEBUG) { System.out.println("PushLPAREN ::= LPAREN"); } //$NON-NLS-1$ consumeLeftParen(); break; case 325 : if (DEBUG) { System.out.println("PushRPAREN ::= RPAREN"); } //$NON-NLS-1$ consumeRightParen(); break; case 330 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= this"); } //$NON-NLS-1$ consumePrimaryNoNewArrayThis(); break; case 331 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PushLPAREN Expression_NotName..."); } //$NON-NLS-1$ consumePrimaryNoNewArray(); break; case 332 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PushLPAREN Name PushRPAREN"); } //$NON-NLS-1$ consumePrimaryNoNewArrayWithName(); break; case 335 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT this"); } //$NON-NLS-1$ consumePrimaryNoNewArrayNameThis(); break; case 336 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT super"); } //$NON-NLS-1$ consumePrimaryNoNewArrayNameSuper(); break; case 337 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayName(); break; case 338 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name Dims DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayArrayType(); break; case 339 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PrimitiveType Dims DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayPrimitiveArrayType(); break; case 340 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PrimitiveType DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayPrimitiveType(); break; case 343 : if (DEBUG) { System.out.println("AllocationHeader ::= new ClassType LPAREN..."); } //$NON-NLS-1$ consumeAllocationHeader(); break; case 344 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionWithTypeArguments(); break; case 345 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= new ClassType LPAREN"); } //$NON-NLS-1$ consumeClassInstanceCreationExpression(); break; case 346 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= Primary DOT new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualifiedWithTypeArguments() ; break; case 347 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= Primary DOT new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualified() ; break; case 348 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::=..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualified() ; break; case 349 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::=..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualifiedWithTypeArguments() ; break; case 350 : if (DEBUG) { System.out.println("ClassInstanceCreationExpressionName ::= Name DOT"); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionName() ; break; case 351 : if (DEBUG) { System.out.println("ClassBodyopt ::="); } //$NON-NLS-1$ consumeClassBodyopt(); break; case 353 : if (DEBUG) { System.out.println("EnterAnonymousClassBody ::="); } //$NON-NLS-1$ consumeEnterAnonymousClassBody(); break; case 355 : if (DEBUG) { System.out.println("ArgumentList ::= ArgumentList COMMA Expression"); } //$NON-NLS-1$ consumeArgumentList(); break; case 356 : if (DEBUG) { System.out.println("ArrayCreationHeader ::= new PrimitiveType..."); } //$NON-NLS-1$ consumeArrayCreationHeader(); break; case 357 : if (DEBUG) { System.out.println("ArrayCreationHeader ::= new ClassOrInterfaceType..."); } //$NON-NLS-1$ consumeArrayCreationHeader(); break; case 358 : if (DEBUG) { System.out.println("ArrayCreationWithoutArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithoutInitializer(); break; case 359 : if (DEBUG) { System.out.println("ArrayCreationWithArrayInitializer ::= new PrimitiveType"); } //$NON-NLS-1$ consumeArrayCreationExpressionWithInitializer(); break; case 360 : if (DEBUG) { System.out.println("ArrayCreationWithoutArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithoutInitializer(); break; case 361 : if (DEBUG) { System.out.println("ArrayCreationWithArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithInitializer(); break; case 363 : if (DEBUG) { System.out.println("DimWithOrWithOutExprs ::= DimWithOrWithOutExprs..."); } //$NON-NLS-1$ consumeDimWithOrWithOutExprs(); break; case 365 : if (DEBUG) { System.out.println("DimWithOrWithOutExpr ::= LBRACKET RBRACKET"); } //$NON-NLS-1$ consumeDimWithOrWithOutExpr(); break; case 366 : if (DEBUG) { System.out.println("Dims ::= DimsLoop"); } //$NON-NLS-1$ consumeDims(); break; case 369 : if (DEBUG) { System.out.println("OneDimLoop ::= LBRACKET RBRACKET"); } //$NON-NLS-1$ consumeOneDimLoop(); break; case 370 : if (DEBUG) { System.out.println("FieldAccess ::= Primary DOT Identifier"); } //$NON-NLS-1$ consumeFieldAccess(false); break; case 371 : if (DEBUG) { System.out.println("FieldAccess ::= super DOT Identifier"); } //$NON-NLS-1$ consumeFieldAccess(true); break; case 372 : if (DEBUG) { System.out.println("MethodInvocation ::= Name LPAREN ArgumentListopt RPAREN"); } //$NON-NLS-1$ consumeMethodInvocationName(); break; case 373 : if (DEBUG) { System.out.println("MethodInvocation ::= Name DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationNameWithTypeArguments(); break; case 374 : if (DEBUG) { System.out.println("MethodInvocation ::= Primary DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationPrimaryWithTypeArguments(); break; case 375 : if (DEBUG) { System.out.println("MethodInvocation ::= Primary DOT Identifier LPAREN..."); } //$NON-NLS-1$ consumeMethodInvocationPrimary(); break; case 376 : if (DEBUG) { System.out.println("MethodInvocation ::= super DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationSuperWithTypeArguments(); break; case 377 : if (DEBUG) { System.out.println("MethodInvocation ::= super DOT Identifier LPAREN..."); } //$NON-NLS-1$ consumeMethodInvocationSuper(); break; case 378 : if (DEBUG) { System.out.println("ArrayAccess ::= Name LBRACKET Expression RBRACKET"); } //$NON-NLS-1$ consumeArrayAccess(true); break; case 379 : if (DEBUG) { System.out.println("ArrayAccess ::= PrimaryNoNewArray LBRACKET Expression..."); } //$NON-NLS-1$ consumeArrayAccess(false); break; case 380 : if (DEBUG) { System.out.println("ArrayAccess ::= ArrayCreationWithArrayInitializer..."); } //$NON-NLS-1$ consumeArrayAccess(false); break; case 382 : if (DEBUG) { System.out.println("PostfixExpression ::= Name"); } //$NON-NLS-1$ consumePostfixExpression(); break; case 385 : if (DEBUG) { System.out.println("PostIncrementExpression ::= PostfixExpression PLUS_PLUS"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS,true); break; case 386 : if (DEBUG) { System.out.println("PostDecrementExpression ::= PostfixExpression..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS,true); break; case 387 : if (DEBUG) { System.out.println("PushPosition ::="); } //$NON-NLS-1$ consumePushPosition(); break; case 390 : if (DEBUG) { System.out.println("UnaryExpression ::= PLUS PushPosition UnaryExpression"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS); break; case 391 : if (DEBUG) { System.out.println("UnaryExpression ::= MINUS PushPosition UnaryExpression"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS); break; case 393 : if (DEBUG) { System.out.println("PreIncrementExpression ::= PLUS_PLUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS,false); break; case 394 : if (DEBUG) { System.out.println("PreDecrementExpression ::= MINUS_MINUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS,false); break; case 396 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus ::= TWIDDLE PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.TWIDDLE); break; case 397 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus ::= NOT PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.NOT); break; case 399 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN PrimitiveType Dimsopt..."); } //$NON-NLS-1$ consumeCastExpressionWithPrimitiveType(); break; case 400 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name..."); } //$NON-NLS-1$ consumeCastExpressionWithGenericsArray(); break; case 401 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name..."); } //$NON-NLS-1$ consumeCastExpressionWithQualifiedGenericsArray(); break; case 402 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name PushRPAREN..."); } //$NON-NLS-1$ consumeCastExpressionLL1(); break; case 403 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name Dims PushRPAREN..."); } //$NON-NLS-1$ consumeCastExpressionWithNameArray(); break; case 404 : if (DEBUG) { System.out.println("OnlyTypeArgumentsForCastExpression ::= OnlyTypeArguments"); } //$NON-NLS-1$ consumeOnlyTypeArgumentsForCastExpression(); break; case 405 : if (DEBUG) { System.out.println("InsideCastExpression ::="); } //$NON-NLS-1$ consumeInsideCastExpression(); break; case 406 : if (DEBUG) { System.out.println("InsideCastExpressionLL1 ::="); } //$NON-NLS-1$ consumeInsideCastExpressionLL1(); break; case 407 : if (DEBUG) { System.out.println("InsideCastExpressionWithQualifiedGenerics ::="); } //$NON-NLS-1$ consumeInsideCastExpressionWithQualifiedGenerics(); break; case 409 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MULTIPLY); break; case 410 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.DIVIDE); break; case 411 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.REMAINDER); break; case 413 : if (DEBUG) { System.out.println("AdditiveExpression ::= AdditiveExpression PLUS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.PLUS); break; case 414 : if (DEBUG) { System.out.println("AdditiveExpression ::= AdditiveExpression MINUS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MINUS); break; case 416 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression LEFT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LEFT_SHIFT); break; case 417 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.RIGHT_SHIFT); break; case 418 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 420 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression LESS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS); break; case 421 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression GREATER..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER); break; case 422 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression LESS_EQUAL"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS_EQUAL); break; case 423 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER_EQUAL); break; case 425 : if (DEBUG) { System.out.println("InstanceofExpression ::= InstanceofExpression instanceof"); } //$NON-NLS-1$ consumeInstanceOfExpression(); break; case 427 : if (DEBUG) { System.out.println("EqualityExpression ::= EqualityExpression EQUAL_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.EQUAL_EQUAL); break; case 428 : if (DEBUG) { System.out.println("EqualityExpression ::= EqualityExpression NOT_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.NOT_EQUAL); break; case 430 : if (DEBUG) { System.out.println("AndExpression ::= AndExpression AND EqualityExpression"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND); break; case 432 : if (DEBUG) { System.out.println("ExclusiveOrExpression ::= ExclusiveOrExpression XOR..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.XOR); break; case 434 : if (DEBUG) { System.out.println("InclusiveOrExpression ::= InclusiveOrExpression OR..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR); break; case 436 : if (DEBUG) { System.out.println("ConditionalAndExpression ::= ConditionalAndExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND_AND); break; case 438 : if (DEBUG) { System.out.println("ConditionalOrExpression ::= ConditionalOrExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR_OR); break; case 440 : if (DEBUG) { System.out.println("ConditionalExpression ::= ConditionalOrExpression..."); } //$NON-NLS-1$ consumeConditionalExpression(OperatorIds.QUESTIONCOLON) ; break; case 443 : if (DEBUG) { System.out.println("Assignment ::= PostfixExpression AssignmentOperator..."); } //$NON-NLS-1$ consumeAssignment(); break; case 445 : if (DEBUG) { System.out.println("Assignment ::= InvalidArrayInitializerAssignement"); } //$NON-NLS-1$ ignoreExpressionAssignment(); break; case 446 : if (DEBUG) { System.out.println("AssignmentOperator ::= EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(EQUAL); break; case 447 : if (DEBUG) { System.out.println("AssignmentOperator ::= MULTIPLY_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(MULTIPLY); break; case 448 : if (DEBUG) { System.out.println("AssignmentOperator ::= DIVIDE_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(DIVIDE); break; case 449 : if (DEBUG) { System.out.println("AssignmentOperator ::= REMAINDER_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(REMAINDER); break; case 450 : if (DEBUG) { System.out.println("AssignmentOperator ::= PLUS_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(PLUS); break; case 451 : if (DEBUG) { System.out.println("AssignmentOperator ::= MINUS_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(MINUS); break; case 452 : if (DEBUG) { System.out.println("AssignmentOperator ::= LEFT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(LEFT_SHIFT); break; case 453 : if (DEBUG) { System.out.println("AssignmentOperator ::= RIGHT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(RIGHT_SHIFT); break; case 454 : if (DEBUG) { System.out.println("AssignmentOperator ::= UNSIGNED_RIGHT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(UNSIGNED_RIGHT_SHIFT); break; case 455 : if (DEBUG) { System.out.println("AssignmentOperator ::= AND_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(AND); break; case 456 : if (DEBUG) { System.out.println("AssignmentOperator ::= XOR_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(XOR); break; case 457 : if (DEBUG) { System.out.println("AssignmentOperator ::= OR_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(OR); break; case 461 : if (DEBUG) { System.out.println("Expressionopt ::="); } //$NON-NLS-1$ consumeEmptyExpression(); break; case 466 : if (DEBUG) { System.out.println("ClassBodyDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyClassBodyDeclarationsopt(); break; case 467 : if (DEBUG) { System.out.println("ClassBodyDeclarationsopt ::= NestedType..."); } //$NON-NLS-1$ consumeClassBodyDeclarationsopt(); break; case 468 : if (DEBUG) { System.out.println("Modifiersopt ::="); } //$NON-NLS-1$ consumeDefaultModifiers(); break; case 469 : if (DEBUG) { System.out.println("Modifiersopt ::= Modifiers"); } //$NON-NLS-1$ consumeModifiers(); break; case 470 : if (DEBUG) { System.out.println("BlockStatementsopt ::="); } //$NON-NLS-1$ consumeEmptyBlockStatementsopt(); break; case 472 : if (DEBUG) { System.out.println("Dimsopt ::="); } //$NON-NLS-1$ consumeEmptyDimsopt(); break; case 474 : if (DEBUG) { System.out.println("ArgumentListopt ::="); } //$NON-NLS-1$ consumeEmptyArgumentListopt(); break; case 478 : if (DEBUG) { System.out.println("FormalParameterListopt ::="); } //$NON-NLS-1$ consumeFormalParameterListopt(); break; case 482 : if (DEBUG) { System.out.println("InterfaceMemberDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyInterfaceMemberDeclarationsopt(); break; case 483 : if (DEBUG) { System.out.println("InterfaceMemberDeclarationsopt ::= NestedType..."); } //$NON-NLS-1$ consumeInterfaceMemberDeclarationsopt(); break; case 484 : if (DEBUG) { System.out.println("NestedType ::="); } //$NON-NLS-1$ consumeNestedType(); break; case 485 : if (DEBUG) { System.out.println("ForInitopt ::="); } //$NON-NLS-1$ consumeEmptyForInitopt(); break; case 487 : if (DEBUG) { System.out.println("ForUpdateopt ::="); } //$NON-NLS-1$ consumeEmptyForUpdateopt(); break; case 491 : if (DEBUG) { System.out.println("Catchesopt ::="); } //$NON-NLS-1$ consumeEmptyCatchesopt(); break; case 493 : if (DEBUG) { System.out.println("EnumDeclaration ::= EnumHeader EnumBody"); } //$NON-NLS-1$ consumeEnumDeclaration(); break; case 494 : if (DEBUG) { System.out.println("EnumHeader ::= EnumHeaderName ClassHeaderImplementsopt"); } //$NON-NLS-1$ consumeEnumHeader(); break; case 495 : if (DEBUG) { System.out.println("EnumHeaderName ::= Modifiersopt enum Identifier"); } //$NON-NLS-1$ consumeEnumHeaderName(); break; case 496 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumBodyDeclarationsopt RBRACE"); } //$NON-NLS-1$ consumeEnumBodyNoConstants(); break; case 497 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE COMMA EnumBodyDeclarationsopt..."); } //$NON-NLS-1$ consumeEnumBodyNoConstants(); break; case 498 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumConstants COMMA..."); } //$NON-NLS-1$ consumeEnumBodyWithConstants(); break; case 499 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumConstants..."); } //$NON-NLS-1$ consumeEnumBodyWithConstants(); break; case 501 : if (DEBUG) { System.out.println("EnumConstants ::= EnumConstants COMMA EnumConstant"); } //$NON-NLS-1$ consumeEnumConstants(); break; case 502 : if (DEBUG) { System.out.println("EnumConstantHeaderName ::= Modifiersopt Identifier"); } //$NON-NLS-1$ consumeEnumConstantHeaderName(); break; case 503 : if (DEBUG) { System.out.println("EnumConstantHeader ::= EnumConstantHeaderName..."); } //$NON-NLS-1$ consumeEnumConstantHeader(); break; case 504 : if (DEBUG) { System.out.println("EnumConstant ::= EnumConstantHeader ForceNoDiet..."); } //$NON-NLS-1$ consumeEnumConstantWithClassBody(); break; case 505 : if (DEBUG) { System.out.println("EnumConstant ::= EnumConstantHeader"); } //$NON-NLS-1$ consumeEnumConstantNoClassBody(); break; case 506 : if (DEBUG) { System.out.println("Arguments ::= LPAREN ArgumentListopt RPAREN"); } //$NON-NLS-1$ consumeArguments(); break; case 507 : if (DEBUG) { System.out.println("Argumentsopt ::="); } //$NON-NLS-1$ consumeEmptyArguments(); break; case 509 : if (DEBUG) { System.out.println("EnumDeclarations ::= SEMICOLON ClassBodyDeclarationsopt"); } //$NON-NLS-1$ consumeEnumDeclarations(); break; case 510 : if (DEBUG) { System.out.println("EnumBodyDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyEnumDeclarations(); break; case 512 : if (DEBUG) { System.out.println("EnhancedForStatement ::= EnhancedForStatementHeader..."); } //$NON-NLS-1$ consumeEnhancedForStatement(); break; case 513 : if (DEBUG) { System.out.println("EnhancedForStatementNoShortIf ::=..."); } //$NON-NLS-1$ consumeEnhancedForStatement(); break; case 514 : if (DEBUG) { System.out.println("EnhancedForStatementHeaderInit ::= for LPAREN Type..."); } //$NON-NLS-1$ consumeEnhancedForStatementHeaderInit(false); break; case 515 : if (DEBUG) { System.out.println("EnhancedForStatementHeaderInit ::= for LPAREN Modifiers"); } //$NON-NLS-1$ consumeEnhancedForStatementHeaderInit(true); break; case 516 : if (DEBUG) { System.out.println("EnhancedForStatementHeader ::=..."); } //$NON-NLS-1$ consumeEnhancedForStatementHeader(); break; case 517 : if (DEBUG) { System.out.println("SingleStaticImportDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 518 : if (DEBUG) { System.out.println("SingleStaticImportDeclarationName ::= import static Name"); } //$NON-NLS-1$ consumeSingleStaticImportDeclarationName(); break; case 519 : if (DEBUG) { System.out.println("StaticImportOnDemandDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 520 : if (DEBUG) { System.out.println("StaticImportOnDemandDeclarationName ::= import static..."); } //$NON-NLS-1$ consumeStaticImportOnDemandDeclarationName(); break; case 521 : if (DEBUG) { System.out.println("TypeArguments ::= LESS TypeArgumentList1"); } //$NON-NLS-1$ consumeTypeArguments(); break; case 522 : if (DEBUG) { System.out.println("OnlyTypeArguments ::= LESS TypeArgumentList1"); } //$NON-NLS-1$ consumeOnlyTypeArguments(); break; case 524 : if (DEBUG) { System.out.println("TypeArgumentList1 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList1(); break; case 526 : if (DEBUG) { System.out.println("TypeArgumentList ::= TypeArgumentList COMMA TypeArgument"); } //$NON-NLS-1$ consumeTypeArgumentList(); break; case 527 : if (DEBUG) { System.out.println("TypeArgument ::= ReferenceType"); } //$NON-NLS-1$ consumeTypeArgument(); break; case 531 : if (DEBUG) { System.out.println("ReferenceType1 ::= ReferenceType GREATER"); } //$NON-NLS-1$ consumeReferenceType1(); break; case 532 : if (DEBUG) { System.out.println("ReferenceType1 ::= ClassOrInterface LESS..."); } //$NON-NLS-1$ consumeTypeArgumentReferenceType1(); break; case 534 : if (DEBUG) { System.out.println("TypeArgumentList2 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList2(); break; case 537 : if (DEBUG) { System.out.println("ReferenceType2 ::= ReferenceType RIGHT_SHIFT"); } //$NON-NLS-1$ consumeReferenceType2(); break; case 538 : if (DEBUG) { System.out.println("ReferenceType2 ::= ClassOrInterface LESS..."); } //$NON-NLS-1$ consumeTypeArgumentReferenceType2(); break; case 540 : if (DEBUG) { System.out.println("TypeArgumentList3 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList3(); break; case 543 : if (DEBUG) { System.out.println("ReferenceType3 ::= ReferenceType UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeReferenceType3(); break; case 544 : if (DEBUG) { System.out.println("Wildcard ::= QUESTION"); } //$NON-NLS-1$ consumeWildcard(); break; case 545 : if (DEBUG) { System.out.println("Wildcard ::= QUESTION WildcardBounds"); } //$NON-NLS-1$ consumeWildcardWithBounds(); break; case 546 : if (DEBUG) { System.out.println("WildcardBounds ::= extends ReferenceType"); } //$NON-NLS-1$ consumeWildcardBoundsExtends(); break; case 547 : if (DEBUG) { System.out.println("WildcardBounds ::= super ReferenceType"); } //$NON-NLS-1$ consumeWildcardBoundsSuper(); break; case 548 : if (DEBUG) { System.out.println("Wildcard1 ::= QUESTION GREATER"); } //$NON-NLS-1$ consumeWildcard1(); break; case 549 : if (DEBUG) { System.out.println("Wildcard1 ::= QUESTION WildcardBounds1"); } //$NON-NLS-1$ consumeWildcard1WithBounds(); break; case 550 : if (DEBUG) { System.out.println("WildcardBounds1 ::= extends ReferenceType1"); } //$NON-NLS-1$ consumeWildcardBounds1Extends(); break; case 551 : if (DEBUG) { System.out.println("WildcardBounds1 ::= super ReferenceType1"); } //$NON-NLS-1$ consumeWildcardBounds1Super(); break; case 552 : if (DEBUG) { System.out.println("Wildcard2 ::= QUESTION RIGHT_SHIFT"); } //$NON-NLS-1$ consumeWildcard2(); break; case 553 : if (DEBUG) { System.out.println("Wildcard2 ::= QUESTION WildcardBounds2"); } //$NON-NLS-1$ consumeWildcard2WithBounds(); break; case 554 : if (DEBUG) { System.out.println("WildcardBounds2 ::= extends ReferenceType2"); } //$NON-NLS-1$ consumeWildcardBounds2Extends(); break; case 555 : if (DEBUG) { System.out.println("WildcardBounds2 ::= super ReferenceType2"); } //$NON-NLS-1$ consumeWildcardBounds2Super(); break; case 556 : if (DEBUG) { System.out.println("Wildcard3 ::= QUESTION UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeWildcard3(); break; case 557 : if (DEBUG) { System.out.println("Wildcard3 ::= QUESTION WildcardBounds3"); } //$NON-NLS-1$ consumeWildcard3WithBounds(); break; case 558 : if (DEBUG) { System.out.println("WildcardBounds3 ::= extends ReferenceType3"); } //$NON-NLS-1$ consumeWildcardBounds3Extends(); break; case 559 : if (DEBUG) { System.out.println("WildcardBounds3 ::= super ReferenceType3"); } //$NON-NLS-1$ consumeWildcardBounds3Super(); break; case 560 : if (DEBUG) { System.out.println("TypeParameterHeader ::= Identifier"); } //$NON-NLS-1$ consumeTypeParameterHeader(); break; case 561 : if (DEBUG) { System.out.println("TypeParameters ::= LESS TypeParameterList1"); } //$NON-NLS-1$ consumeTypeParameters(); break; case 563 : if (DEBUG) { System.out.println("TypeParameterList ::= TypeParameterList COMMA..."); } //$NON-NLS-1$ consumeTypeParameterList(); break; case 565 : if (DEBUG) { System.out.println("TypeParameter ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameterWithExtends(); break; case 566 : if (DEBUG) { System.out.println("TypeParameter ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameterWithExtendsAndBounds(); break; case 568 : if (DEBUG) { System.out.println("AdditionalBoundList ::= AdditionalBoundList..."); } //$NON-NLS-1$ consumeAdditionalBoundList(); break; case 569 : if (DEBUG) { System.out.println("AdditionalBound ::= AND ReferenceType"); } //$NON-NLS-1$ consumeAdditionalBound(); break; case 571 : if (DEBUG) { System.out.println("TypeParameterList1 ::= TypeParameterList COMMA..."); } //$NON-NLS-1$ consumeTypeParameterList1(); break; case 572 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader GREATER"); } //$NON-NLS-1$ consumeTypeParameter1(); break; case 573 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameter1WithExtends(); break; case 574 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameter1WithExtendsAndBounds(); break; case 576 : if (DEBUG) { System.out.println("AdditionalBoundList1 ::= AdditionalBoundList..."); } //$NON-NLS-1$ consumeAdditionalBoundList1(); break; case 577 : if (DEBUG) { System.out.println("AdditionalBound1 ::= AND ReferenceType1"); } //$NON-NLS-1$ consumeAdditionalBound1(); break; case 583 : if (DEBUG) { System.out.println("UnaryExpression_NotName ::= PLUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS); break; case 584 : if (DEBUG) { System.out.println("UnaryExpression_NotName ::= MINUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS); break; case 587 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus_NotName ::= TWIDDLE..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.TWIDDLE); break; case 588 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus_NotName ::= NOT PushPosition"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.NOT); break; case 591 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MULTIPLY); break; case 592 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name MULTIPLY..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.MULTIPLY); break; case 593 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.DIVIDE); break; case 594 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name DIVIDE..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.DIVIDE); break; case 595 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.REMAINDER); break; case 596 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name REMAINDER..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.REMAINDER); break; case 598 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.PLUS); break; case 599 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::= Name PLUS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.PLUS); break; case 600 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MINUS); break; case 601 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::= Name MINUS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.MINUS); break; case 603 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LEFT_SHIFT); break; case 604 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name LEFT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LEFT_SHIFT); break; case 605 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.RIGHT_SHIFT); break; case 606 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.RIGHT_SHIFT); break; case 607 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 608 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name UNSIGNED_RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 610 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= ShiftExpression_NotName"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS); break; case 611 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name LESS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LESS); break; case 612 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= ShiftExpression_NotName"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER); break; case 613 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name GREATER..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.GREATER); break; case 614 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS_EQUAL); break; case 615 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name LESS_EQUAL..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LESS_EQUAL); break; case 616 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER_EQUAL); break; case 617 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name GREATER_EQUAL..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.GREATER_EQUAL); break; case 619 : if (DEBUG) { System.out.println("InstanceofExpression_NotName ::= Name instanceof..."); } //$NON-NLS-1$ consumeInstanceOfExpressionWithName(); break; case 620 : if (DEBUG) { System.out.println("InstanceofExpression_NotName ::=..."); } //$NON-NLS-1$ consumeInstanceOfExpression(); break; case 622 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::=..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.EQUAL_EQUAL); break; case 623 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::= Name EQUAL_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpressionWithName(OperatorIds.EQUAL_EQUAL); break; case 624 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::=..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.NOT_EQUAL); break; case 625 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::= Name NOT_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpressionWithName(OperatorIds.NOT_EQUAL); break; case 627 : if (DEBUG) { System.out.println("AndExpression_NotName ::= AndExpression_NotName AND..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND); break; case 628 : if (DEBUG) { System.out.println("AndExpression_NotName ::= Name AND EqualityExpression"); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.AND); break; case 630 : if (DEBUG) { System.out.println("ExclusiveOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.XOR); break; case 631 : if (DEBUG) { System.out.println("ExclusiveOrExpression_NotName ::= Name XOR AndExpression"); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.XOR); break; case 633 : if (DEBUG) { System.out.println("InclusiveOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR); break; case 634 : if (DEBUG) { System.out.println("InclusiveOrExpression_NotName ::= Name OR..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.OR); break; case 636 : if (DEBUG) { System.out.println("ConditionalAndExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND_AND); break; case 637 : if (DEBUG) { System.out.println("ConditionalAndExpression_NotName ::= Name AND_AND..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.AND_AND); break; case 639 : if (DEBUG) { System.out.println("ConditionalOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR_OR); break; case 640 : if (DEBUG) { System.out.println("ConditionalOrExpression_NotName ::= Name OR_OR..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.OR_OR); break; case 642 : if (DEBUG) { System.out.println("ConditionalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeConditionalExpression(OperatorIds.QUESTIONCOLON) ; break; case 643 : if (DEBUG) { System.out.println("ConditionalExpression_NotName ::= Name QUESTION..."); } //$NON-NLS-1$ consumeConditionalExpressionWithName(OperatorIds.QUESTIONCOLON) ; break; case 647 : if (DEBUG) { System.out.println("AnnotationTypeDeclarationHeaderName ::= Modifiers AT..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclarationHeaderName() ; break; case 648 : if (DEBUG) { System.out.println("AnnotationTypeDeclarationHeaderName ::= AT..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclarationHeaderName() ; break; case 649 : if (DEBUG) { System.out.println("AnnotationTypeDeclarationHeader ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclarationHeader() ; break; case 650 : if (DEBUG) { System.out.println("AnnotationTypeDeclaration ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclaration() ; break; case 652 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyAnnotationTypeMemberDeclarationsopt() ; break; case 653 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclarationsopt ::= NestedType..."); } //$NON-NLS-1$ consumeAnnotationTypeMemberDeclarationsopt() ; break; case 655 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclarations ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeMemberDeclarations() ; break; case 656 : if (DEBUG) { System.out.println("AnnotationMethodHeaderName ::= Modifiersopt..."); } //$NON-NLS-1$ consumeMethodHeaderNameWithTypeParameters(true); break; case 657 : if (DEBUG) { System.out.println("AnnotationMethodHeaderName ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeMethodHeaderName(true); break; case 658 : if (DEBUG) { System.out.println("AnnotationMethodHeaderDefaultValueopt ::="); } //$NON-NLS-1$ consumeEmptyMethodHeaderDefaultValue() ; break; case 659 : if (DEBUG) { System.out.println("AnnotationMethodHeaderDefaultValueopt ::= DefaultValue"); } //$NON-NLS-1$ consumeMethodHeaderDefaultValue(); break; case 660 : if (DEBUG) { System.out.println("AnnotationMethodHeader ::= AnnotationMethodHeaderName..."); } //$NON-NLS-1$ consumeMethodHeader(); break; case 661 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclaration ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeMemberDeclaration() ; break; case 669 : if (DEBUG) { System.out.println("AnnotationName ::= AT Name"); } //$NON-NLS-1$ consumeAnnotationName() ; break; case 670 : if (DEBUG) { System.out.println("NormalAnnotation ::= AnnotationName LPAREN..."); } //$NON-NLS-1$ consumeNormalAnnotation() ; break; case 671 : if (DEBUG) { System.out.println("MemberValuePairsopt ::="); } //$NON-NLS-1$ consumeEmptyMemberValuePairsopt() ; break; case 674 : if (DEBUG) { System.out.println("MemberValuePairs ::= MemberValuePairs COMMA..."); } //$NON-NLS-1$ consumeMemberValuePairs() ; break; case 675 : if (DEBUG) { System.out.println("MemberValuePair ::= SimpleName EQUAL EnterMemberValue..."); } //$NON-NLS-1$ consumeMemberValuePair() ; break; case 676 : if (DEBUG) { System.out.println("EnterMemberValue ::="); } //$NON-NLS-1$ consumeEnterMemberValue() ; break; case 677 : if (DEBUG) { System.out.println("ExitMemberValue ::="); } //$NON-NLS-1$ consumeExitMemberValue() ; break; case 679 : if (DEBUG) { System.out.println("MemberValue ::= Name"); } //$NON-NLS-1$ consumeMemberValueAsName() ; break; case 682 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeMemberValueArrayInitializer() ; break; case 683 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeMemberValueArrayInitializer() ; break; case 684 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeEmptyMemberValueArrayInitializer() ; break; case 685 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeEmptyMemberValueArrayInitializer() ; break; case 687 : if (DEBUG) { System.out.println("MemberValues ::= MemberValues COMMA MemberValue"); } //$NON-NLS-1$ consumeMemberValues() ; break; case 688 : if (DEBUG) { System.out.println("MarkerAnnotation ::= AnnotationName"); } //$NON-NLS-1$ consumeMarkerAnnotation() ; break; case 689 : if (DEBUG) { System.out.println("SingleMemberAnnotation ::= AnnotationName LPAREN..."); } //$NON-NLS-1$ consumeSingleMemberAnnotation() ; break; case 690 : if (DEBUG) { System.out.println("RecoveryMethodHeaderName ::= Modifiersopt TypeParameters"); } //$NON-NLS-1$ consumeRecoveryMethodHeaderNameWithTypeParameters(); break; case 691 : if (DEBUG) { System.out.println("RecoveryMethodHeaderName ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeRecoveryMethodHeaderName(); break; case 692 : if (DEBUG) { System.out.println("RecoveryMethodHeader ::= RecoveryMethodHeaderName..."); } //$NON-NLS-1$ consumeMethodHeader(); break; case 693 : if (DEBUG) { System.out.println("RecoveryMethodHeader ::= RecoveryMethodHeaderName..."); } //$NON-NLS-1$ consumeMethodHeader(); break; }}
|
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/530677eaedb480550fa104a8b4977fa836eba025/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,
2175,
12,
474,
1328,
13,
288,
225,
1620,
261,
1328,
262,
288,
565,
648,
12899,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
559,
493,
33,
14488,
559,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
9840,
559,
5621,
26924,
202,
8820,
31,
377,
648,
21193,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
2404,
559,
493,
33,
1659,
1162,
1358,
559,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
2404,
559,
5621,
565,
1082,
202,
8820,
31,
377,
648,
17495,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
797,
1162,
1358,
493,
33,
1770,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
797,
1162,
24730,
5621,
565,
1082,
202,
8820,
31,
377,
648,
9934,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
797,
1162,
1358,
493,
33,
7928,
559,
15772,
1770,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
797,
1162,
1358,
5621,
565,
1082,
202,
8820,
31,
377,
648,
17160,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
30982,
493,
33,
1659,
1162,
1358,
1412,
4628,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
30982,
5621,
565,
1082,
202,
8820,
31,
377,
648,
6437,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
27182,
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,
4750,
918,
7865,
2175,
12,
474,
1328,
13,
288,
225,
1620,
261,
1328,
262,
288,
565,
648,
12899,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
559,
493,
33,
14488,
559,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
9840,
559,
5621,
26924,
202,
8820,
31,
377,
648,
21193,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
2404,
559,
493,
33,
1659,
1162,
1358,
559,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
2404,
559,
5621,
565,
1082,
202,
8820,
31,
377,
648,
17495,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
797,
1162,
1358,
493,
33,
2
] |
if (log.isDebugEnabled()) log.debug("error: old parent = "+child.getParent()+" new parent="+parent+", ignoring...");
|
protected Collection processRelationshipChanges(Frame frame, Iterator changes) { String slotName; Object value; ShapeGraphic child, parent; Frame ff[]; ArrayList transitions = new ArrayList(); while (changes.hasNext()) { Frame.Change change = (Frame.Change) changes.next(); // Handle change to existing frame slotName = change.getSlotName(); value = change.getValue(); if (log.isDebugEnabled()) log.debug("frame "+frame+" changed slot="+slotName+" value="+value+" child="+frame.getValue("child-value")); ff = helper.getParentAndChild(frame); if (log.isDebugEnabled()) log.debug("processRelationshipChanges parentFrame="+ff[0]+" childFrame="+ff[1]); parent = pluginDisplay.findShape(ff[0]); child = pluginDisplay.findShape(ff[1]); if (parent == null || child == null) { if (log.isDebugEnabled()) log.debug("did not find shapes"); continue; } if (child.getParent() == null || child.getParent().getId().equals(parent.getId())) { if (log.isDebugEnabled()) log.debug("error: old parent = "+child.getParent()+" new parent="+parent+", ignoring..."); continue; } transitions.add(new Transition(child, child.getParent(), (ShapeContainer)parent)); } return transitions; }
|
7173 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7173/adb58660030433c355c9681b49657258475c4a88/FrameVisualizerPlugin.java/buggy/qos/src/org/cougaar/core/qos/frame/visualizer/FrameVisualizerPlugin.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
2200,
1207,
8180,
7173,
12,
3219,
2623,
16,
4498,
3478,
13,
288,
202,
780,
4694,
461,
31,
202,
921,
460,
31,
202,
8500,
29459,
1151,
16,
982,
31,
202,
3219,
6875,
8526,
31,
202,
19558,
13136,
273,
394,
2407,
5621,
202,
17523,
261,
6329,
18,
5332,
2134,
10756,
288,
202,
565,
8058,
18,
3043,
2549,
273,
261,
3219,
18,
3043,
13,
3478,
18,
4285,
5621,
202,
565,
368,
5004,
2549,
358,
2062,
2623,
202,
565,
4694,
461,
273,
2549,
18,
588,
8764,
461,
5621,
202,
565,
460,
565,
273,
2549,
18,
24805,
5621,
202,
565,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
3196,
202,
1330,
18,
4148,
2932,
3789,
13773,
3789,
9078,
225,
3550,
282,
4694,
1546,
15,
14194,
461,
9078,
225,
460,
1546,
15,
1132,
9078,
1151,
1546,
15,
3789,
18,
24805,
2932,
3624,
17,
1132,
7923,
1769,
202,
565,
6875,
273,
4222,
18,
588,
3054,
1876,
1763,
12,
3789,
1769,
202,
565,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
3196,
202,
1330,
18,
4148,
2932,
2567,
8180,
7173,
982,
3219,
1546,
15,
1403,
63,
20,
3737,
6,
225,
1151,
3219,
1546,
15,
1403,
63,
21,
19226,
3196,
565,
982,
273,
1909,
4236,
18,
4720,
8500,
12,
1403,
63,
20,
19226,
202,
565,
1151,
225,
273,
1909,
4236,
18,
4720,
8500,
12,
1403,
63,
21,
19226,
202,
565,
309,
261,
2938,
422,
446,
747,
1151,
422,
446,
13,
288,
202,
202,
430,
261,
1330,
18,
291,
2829,
1526,
10756,
1875,
565,
613,
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,
2200,
1207,
8180,
7173,
12,
3219,
2623,
16,
4498,
3478,
13,
288,
202,
780,
4694,
461,
31,
202,
921,
460,
31,
202,
8500,
29459,
1151,
16,
982,
31,
202,
3219,
6875,
8526,
31,
202,
19558,
13136,
273,
394,
2407,
5621,
202,
17523,
261,
6329,
18,
5332,
2134,
10756,
288,
202,
565,
8058,
18,
3043,
2549,
273,
261,
3219,
18,
3043,
13,
3478,
18,
4285,
5621,
202,
565,
368,
5004,
2549,
358,
2062,
2623,
202,
565,
4694,
461,
273,
2549,
18,
588,
8764,
461,
5621,
202,
565,
460,
565,
273,
2549,
18,
24805,
5621,
202,
565,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
3196,
202,
1330,
18,
4148,
2932,
3789,
13773,
3789,
9078,
225,
3550,
282,
4694,
2
] |
|
asm.emitPUSH_RegDisp (PR, VM_Entrypoints.framePointerField.getOffsetAsInt());
|
asm.emitPUSH_RegDisp (PR, VM_Entrypoints.framePointerField.getOffset());
|
private static VM_CodeArray generateThreadSwitchInstructions() { if (VM.VerifyAssertions) VM._assert(NUM_NONVOLATILE_FPRS == 0); // assuming no NV FPRs (otherwise would have to save them here) VM_Assembler asm = new VM_Assembler(0); int ipOffset = VM_Entrypoints.registersIPField.getOffsetAsInt(); int fpOffset = VM_Entrypoints.registersFPField.getOffsetAsInt(); int gprsOffset = VM_Entrypoints.registersGPRsField.getOffsetAsInt(); int regsOffset = VM_Entrypoints.threadContextRegistersField.getOffsetAsInt(); // (1) Save hardware state of thread we are switching off of. asm.emitMOV_Reg_RegDisp (S0, T0, regsOffset); // S0 = T0.contextRegisters asm.emitPOP_RegDisp (S0, ipOffset); // T0.contextRegisters.ip = returnAddress asm.emitPUSH_RegDisp (PR, VM_Entrypoints.framePointerField.getOffsetAsInt()); // push PR.framePointer asm.emitPOP_RegDisp (S0, fpOffset); // T0.contextRegisters.fp = pushed framepointer asm.emitADD_Reg_Imm (SP, 8); // discard 2 words of parameters (T0, T1) asm.emitMOV_Reg_RegDisp (S0, S0, gprsOffset); // S0 = T0.contextRegisters.gprs; asm.emitMOV_RegDisp_Reg (S0, SP<<LG_WORDSIZE, SP); // T0.contextRegisters.gprs[#SP] := SP for (int i=0; i<NUM_NONVOLATILE_GPRS; i++) { asm.emitMOV_RegDisp_Reg(S0, NONVOLATILE_GPRS[i]<<LG_WORDSIZE, NONVOLATILE_GPRS[i]); // T0.contextRegisters.gprs[i] := i'th register } // (2) Set currentThread.beingDispatched to false asm.emitMOV_RegDisp_Imm(T0, VM_Entrypoints.beingDispatchedField.getOffsetAsInt(), 0); // previous thread's stack is nolonger in use, so it can now be dispatched on any virtual processor // (3) Restore hardware state of thread we are switching to. asm.emitMOV_Reg_RegDisp(S0, T1, fpOffset); // S0 := restoreRegs.fp VM_ProcessorLocalState.emitMoveRegToField(asm, VM_Entrypoints.framePointerField.getOffsetAsInt(), S0); // PR.framePointer = restoreRegs.fp asm.emitMOV_Reg_RegDisp(S0, T1, gprsOffset); // S0 := restoreRegs.gprs[] asm.emitMOV_Reg_RegDisp(SP, S0, SP<<LG_WORDSIZE); // SP := restoreRegs.gprs[#SP] for (int i=0; i<NUM_NONVOLATILE_GPRS; i++) { asm.emitMOV_Reg_RegDisp(NONVOLATILE_GPRS[i], S0, NONVOLATILE_GPRS[i]<<LG_WORDSIZE); // i'th register := restoreRegs.gprs[i] } asm.emitJMP_RegDisp (T1, ipOffset); // return to (save) return address return asm.getMachineCodes(); }
|
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/c19269673fcdd14e39a92c30e8ccef4cb7ce0402/VM_OutOfLineMachineCode.java/buggy/rvm/src/vm/arch/intel/runtime/VM_OutOfLineMachineCode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
8251,
67,
1085,
1076,
2103,
3830,
10200,
26712,
1435,
288,
565,
309,
261,
7397,
18,
8097,
8213,
1115,
13,
8251,
6315,
11231,
12,
6069,
67,
3993,
29439,
67,
42,
8025,
55,
422,
374,
1769,
368,
15144,
1158,
423,
58,
478,
8025,
87,
261,
29778,
4102,
1240,
358,
1923,
2182,
2674,
13,
565,
8251,
67,
1463,
5747,
749,
20415,
273,
394,
8251,
67,
1463,
5747,
749,
12,
20,
1769,
565,
509,
282,
2359,
2335,
273,
8251,
67,
1622,
4139,
18,
22559,
2579,
974,
18,
588,
2335,
31720,
5621,
565,
509,
282,
4253,
2335,
273,
8251,
67,
1622,
4139,
18,
22559,
30246,
974,
18,
588,
2335,
31720,
5621,
565,
509,
314,
683,
87,
2335,
273,
8251,
67,
1622,
4139,
18,
22559,
43,
8025,
87,
974,
18,
588,
2335,
31720,
5621,
565,
509,
17518,
2335,
273,
8251,
67,
1622,
4139,
18,
5930,
1042,
10277,
974,
18,
588,
2335,
31720,
5621,
565,
368,
261,
21,
13,
7074,
16251,
919,
434,
2650,
732,
854,
30882,
3397,
434,
18,
565,
20415,
18,
18356,
5980,
58,
67,
1617,
67,
1617,
1669,
84,
225,
261,
55,
20,
16,
399,
20,
16,
17518,
2335,
1769,
1377,
368,
348,
20,
273,
399,
20,
18,
2472,
10277,
565,
20415,
18,
18356,
30374,
67,
1617,
1669,
84,
1377,
261,
55,
20,
16,
2359,
2335,
1769,
5411,
368,
399,
20,
18,
2472,
10277,
18,
625,
273,
327,
1887,
565,
20415,
18,
18356,
30348,
67,
1617,
1669,
84,
377,
261,
8025,
16,
8251,
67,
1622,
4139,
18,
3789,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
8251,
67,
1085,
1076,
2103,
3830,
10200,
26712,
1435,
288,
565,
309,
261,
7397,
18,
8097,
8213,
1115,
13,
8251,
6315,
11231,
12,
6069,
67,
3993,
29439,
67,
42,
8025,
55,
422,
374,
1769,
368,
15144,
1158,
423,
58,
478,
8025,
87,
261,
29778,
4102,
1240,
358,
1923,
2182,
2674,
13,
565,
8251,
67,
1463,
5747,
749,
20415,
273,
394,
8251,
67,
1463,
5747,
749,
12,
20,
1769,
565,
509,
282,
2359,
2335,
273,
8251,
67,
1622,
4139,
18,
22559,
2579,
974,
18,
588,
2335,
31720,
5621,
565,
509,
282,
4253,
2335,
273,
8251,
67,
1622,
4139,
18,
22559,
30246,
974,
18,
588,
2335,
31720,
5621,
565,
509,
314,
683,
87,
2335,
273,
8251,
67,
1622,
2
] |
if (view == null) return null; return ((PlainView) view).modelToView(position, a, bias).getBounds();
|
return ((View) view).modelToView(position, a, bias);
|
public Shape modelToView(int position, Shape a, Position.Bias bias) throws BadLocationException { if (view == null) return null; return ((PlainView) view).modelToView(position, a, bias).getBounds(); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
12383,
938,
774,
1767,
12,
474,
1754,
16,
12383,
279,
16,
11010,
18,
31645,
12005,
13,
1377,
1216,
6107,
2735,
503,
565,
288,
1377,
309,
261,
1945,
422,
446,
13,
202,
2463,
446,
31,
5411,
327,
14015,
13360,
1767,
13,
1476,
2934,
2284,
774,
1767,
12,
3276,
16,
279,
16,
12005,
2934,
588,
5694,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
12383,
938,
774,
1767,
12,
474,
1754,
16,
12383,
279,
16,
11010,
18,
31645,
12005,
13,
1377,
1216,
6107,
2735,
503,
565,
288,
1377,
309,
261,
1945,
422,
446,
13,
202,
2463,
446,
31,
5411,
327,
14015,
13360,
1767,
13,
1476,
2934,
2284,
774,
1767,
12,
3276,
16,
279,
16,
12005,
2934,
588,
5694,
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
] |
appender.setSMTPHost("mail.qos.ch");
|
appender.setSMTPHost("mail2.qos.ch");
|
public void setUp() throws Exception { super.setUp(); LoggerContext lc = new LoggerContext(); appender = new SMTPAppender(); appender.setContext(lc); appender.setName("smtp"); appender.setFrom("user@host.dom"); appender.setLayout(buildLayout(lc)); appender.setSMTPHost("mail.qos.ch"); appender.setSubject("logging report"); appender.setTo("sebastien.nospam@qos.ch"); appender.start(); }
|
51675 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51675/2c3744eb46ea0dac51524354b91519f92d0803fd/SMTPAppenderTest.java/clean/logback-classic/src/test/java/ch/qos/logback/classic/net/SMTPAppenderTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
24292,
1435,
1216,
1185,
288,
202,
202,
9565,
18,
542,
1211,
5621,
202,
202,
3328,
1042,
9109,
273,
394,
4242,
1042,
5621,
202,
202,
6923,
264,
273,
394,
18102,
17302,
5621,
202,
202,
6923,
264,
18,
542,
1042,
12,
17704,
1769,
202,
202,
6923,
264,
18,
542,
461,
2932,
20278,
8863,
202,
202,
6923,
264,
18,
542,
1265,
2932,
1355,
36,
2564,
18,
9859,
8863,
202,
202,
6923,
264,
18,
542,
3744,
12,
3510,
3744,
12,
17704,
10019,
202,
202,
6923,
264,
18,
542,
55,
14636,
2594,
2932,
4408,
18,
23557,
18,
343,
8863,
202,
202,
6923,
264,
18,
542,
6638,
2932,
11167,
2605,
8863,
202,
202,
6923,
264,
18,
542,
774,
2932,
307,
70,
689,
77,
275,
18,
18050,
84,
301,
36,
23557,
18,
343,
8863,
202,
202,
6923,
264,
18,
1937,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
24292,
1435,
1216,
1185,
288,
202,
202,
9565,
18,
542,
1211,
5621,
202,
202,
3328,
1042,
9109,
273,
394,
4242,
1042,
5621,
202,
202,
6923,
264,
273,
394,
18102,
17302,
5621,
202,
202,
6923,
264,
18,
542,
1042,
12,
17704,
1769,
202,
202,
6923,
264,
18,
542,
461,
2932,
20278,
8863,
202,
202,
6923,
264,
18,
542,
1265,
2932,
1355,
36,
2564,
18,
9859,
8863,
202,
202,
6923,
264,
18,
542,
3744,
12,
3510,
3744,
12,
17704,
10019,
202,
202,
6923,
264,
18,
542,
55,
14636,
2594,
2932,
4408,
18,
23557,
18,
343,
8863,
202,
202,
6923,
264,
18,
542,
6638,
2932,
11167,
2605,
8863,
202,
202,
6923,
264,
18,
542,
774,
2932,
307,
70,
2
] |
e = e.getExtendsElement( ); }
|
protected Object getPropertyFromParent( Module module, ElementPropertyDefn prop ) { Object value = null; DesignElement e = getExtendsElement( ); while ( e != null ) { Module currentRoot = e.getRoot( ); assert currentRoot != null; // If we can find the value here, return it. value = e.getPropertyFromSelf( currentRoot, prop ); if ( value != null ) return value; e = e.getExtendsElement( ); } return value; }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/7b53f443be7bd25a8e257bd783c10b1aecb8b963/DesignElement.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/core/DesignElement.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
11815,
386,
73,
323,
273,
425,
18,
588,
19581,
1046,
12,
11272,
289,
1033,
73,
273,
425,
18,
588,
19581,
1046,
12,
11272,
289,
3911,
1265,
3054,
12,
73,
273,
425,
18,
588,
19581,
1046,
12,
11272,
289,
5924,
73,
273,
425,
18,
588,
19581,
1046,
12,
11272,
289,
1605,
16,
1082,
202,
1046,
1396,
3262,
4644,
273,
425,
18,
588,
19581,
1046,
12,
11272,
289,
450,
347,
273,
425,
18,
588,
19581,
1046,
12,
11272,
289,
262,
202,
95,
202,
202,
921,
73,
273,
425,
18,
588,
19581,
1046,
12,
11272,
289,
460,
73,
273,
425,
18,
588,
19581,
1046,
12,
11272,
289,
273,
73,
273,
425,
18,
588,
19581,
1046,
12,
11272,
289,
446,
31,
202,
202,
15478,
1046,
73,
273,
425,
18,
588,
19581,
1046,
12,
11272,
289,
14657,
273,
425,
18,
588,
19581,
1046,
12,
11272,
289,
273,
73,
273,
425,
18,
588,
19581,
1046,
12,
11272,
289,
336,
19581,
1046,
12,
73,
273,
425,
18,
588,
19581,
1046,
12,
11272,
289,
11272,
202,
202,
17523,
73,
273,
425,
18,
588,
19581,
1046,
12,
11272,
289,
261,
73,
273,
425,
18,
588,
19581,
1046,
12,
11272,
289,
14657,
273,
425,
18,
588,
19581,
1046,
12,
11272,
289,
480,
73,
273,
425,
18,
588,
19581,
1046,
12,
11272,
289,
290,
332,
298,
273,
425,
18,
588,
19581,
1046,
12,
11272,
289,
262,
202,
202,
95,
1082,
202,
3120,
73,
273,
425,
18,
588,
19581,
1046,
12,
11272,
289,
783,
22869,
1168,
273,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
11815,
386,
73,
323,
273,
425,
18,
588,
19581,
1046,
12,
11272,
289,
1033,
73,
273,
425,
18,
588,
19581,
1046,
12,
11272,
289,
3911,
1265,
3054,
12,
73,
273,
425,
18,
588,
19581,
1046,
12,
11272,
289,
5924,
73,
273,
425,
18,
588,
19581,
1046,
12,
11272,
289,
1605,
16,
1082,
202,
1046,
1396,
3262,
4644,
273,
425,
18,
588,
19581,
1046,
12,
11272,
289,
450,
347,
273,
425,
18,
588,
19581,
1046,
12,
11272,
289,
262,
202,
95,
202,
202,
921,
73,
273,
425,
18,
588,
19581,
1046,
12,
11272,
289,
460,
73,
273,
425,
18,
588,
19581,
1046,
12,
11272,
289,
273,
73,
273,
425,
18,
588,
19581,
1046,
12,
11272,
289,
446,
31,
2
] |
|
_postBodyBuffer.append(sanitizeString(a.getName()));
|
_postBodyBuffer.append(sanitizeString(a.getName(), 30));
|
public void receiveEnd() { _postBodyBuffer.append("<tr class=\"postDetails\">\n"); _postBodyBuffer.append(" <form action=\"viewattachment.jsp\" method=\"GET\">\n"); _postBodyBuffer.append(" <td colspan=\"3\" valign=\"top\" align=\"left\">\n"); _postBodyBuffer.append("<input type=\"hidden\" name=\"").append(ArchiveViewerBean.PARAM_BLOG); _postBodyBuffer.append("\" value=\""); if (_entry != null) _postBodyBuffer.append(Base64.encode(_entry.getURI().getKeyHash().getData())); else _postBodyBuffer.append("unknown"); _postBodyBuffer.append("\" />\n"); _postBodyBuffer.append("<input type=\"hidden\" name=\"").append(ArchiveViewerBean.PARAM_ENTRY); _postBodyBuffer.append("\" value=\""); if (_entry != null) _postBodyBuffer.append(_entry.getURI().getEntryId()); else _postBodyBuffer.append("unknown"); _postBodyBuffer.append("\" />\n"); //_postBodyBuffer.append("<td colspan=\"2\" valign=\"top\" align=\"left\" ").append(getClass("summDetail")).append(" >\n"); if ( (_entry != null) && (_entry.getAttachments() != null) && (_entry.getAttachments().length > 0) ) { _postBodyBuffer.append(getSpan("summDetailAttachment")).append("Attachments:</span> "); _postBodyBuffer.append("<select ").append(getClass("summDetailAttachmentId")).append(" name=\"").append(ArchiveViewerBean.PARAM_ATTACHMENT).append("\">\n"); for (int i = 0; i < _entry.getAttachments().length; i++) { _postBodyBuffer.append("<option value=\"").append(i).append("\">"); Attachment a = _entry.getAttachments()[i]; _postBodyBuffer.append(sanitizeString(a.getName())); if ( (a.getDescription() != null) && (a.getDescription().trim().length() > 0) ) { _postBodyBuffer.append(": "); _postBodyBuffer.append(sanitizeString(a.getDescription())); } _postBodyBuffer.append(" (").append(a.getDataLength()/1024).append("KB"); _postBodyBuffer.append(", type ").append(sanitizeString(a.getMimeType())).append(")</option>\n"); } _postBodyBuffer.append("</select>\n"); _postBodyBuffer.append("<input ").append(getClass("summDetailAttachmentDl")).append(" type=\"submit\" value=\"Download\" name=\"Download\" /><br />\n"); } if (_blogs.size() > 0) { _postBodyBuffer.append(getSpan("summDetailBlog")).append("Blog references:</span>"); for (int i = 0; i < _blogs.size(); i++) { Blog b = (Blog)_blogs.get(i); _postBodyBuffer.append("<a ").append(getClass("summDetailBlogLink")).append(" href=\""); boolean expanded = (_user != null ? _user.getShowExpanded() : false); boolean images = (_user != null ? _user.getShowImages() : false); _postBodyBuffer.append(getPageURL(new Hash(Base64.decode(b.hash)), b.tag, b.entryId, -1, -1, expanded, images)); _postBodyBuffer.append("\">").append(sanitizeString(b.name)).append("</a> "); } _postBodyBuffer.append("<br />\n"); } if (_links.size() > 0) { _postBodyBuffer.append(getSpan("summDetailExternal")).append("External links:</span> "); for (int i = 0; i < _links.size(); i++) { Link l = (Link)_links.get(i); String schema = l.schema; _postBodyBuffer.append("<a "); _postBodyBuffer.append(getClass("summDetailExternalLink")).append(" href=\"externallink.jsp?"); if (l.schema != null) _postBodyBuffer.append("schema=").append(sanitizeURL(l.schema)).append('&'); if (l.location != null) _postBodyBuffer.append("location=").append(sanitizeURL(l.location)).append('&'); _postBodyBuffer.append("\">").append(sanitizeString(l.location)); _postBodyBuffer.append(getSpan("summDetailExternalNet")).append(" (").append(sanitizeString(l.schema)).append(")</span></a> "); } _postBodyBuffer.append("<br />\n"); } if (_addresses.size() > 0) { _postBodyBuffer.append(getSpan("summDetailAddr")).append("Addresses:</span>"); for (int i = 0; i < _addresses.size(); i++) { Address a = (Address)_addresses.get(i); importAddress(a); PetName pn = null; if (_user != null) pn = _user.getPetNameDB().getByLocation(a.location); if (pn != null) { _postBodyBuffer.append(' ').append(getSpan("summDetailAddrKnown")); _postBodyBuffer.append(sanitizeString(pn.getName())).append("</span>"); } else { _postBodyBuffer.append(" <a ").append(getClass("summDetailAddrLink")).append(" href=\"addresses.jsp?"); if (a.schema != null) _postBodyBuffer.append(AddressesServlet.PARAM_NET).append("=").append(sanitizeTagParam(a.schema)).append('&'); if (a.location != null) _postBodyBuffer.append(AddressesServlet.PARAM_LOC).append("=").append(sanitizeTagParam(a.location)).append('&'); if (a.name != null) _postBodyBuffer.append(AddressesServlet.PARAM_NAME).append("=").append(sanitizeTagParam(a.name)).append('&'); if (a.protocol != null) _postBodyBuffer.append(AddressesServlet.PARAM_PROTO).append("=").append(sanitizeTagParam(a.protocol)).append('&'); _postBodyBuffer.append("\">").append(sanitizeString(a.name)).append("</a>"); } } _postBodyBuffer.append("<br />\n"); } if (_archives.size() > 0) { _postBodyBuffer.append(getSpan("summDetailArchive")).append("Archives:</span>"); for (int i = 0; i < _archives.size(); i++) { ArchiveRef a = (ArchiveRef)_archives.get(i); _postBodyBuffer.append(" <a ").append(getClass("summDetailArchiveLink")).append(" href=\"").append(getArchiveURL(null, new SafeURL(a.locationSchema + "://" + a.location))); _postBodyBuffer.append("\">").append(sanitizeString(a.name)).append("</a>"); if (a.description != null) _postBodyBuffer.append(": ").append(getSpan("summDetailArchiveDesc")).append(sanitizeString(a.description)).append("</span>"); if (null == _user.getPetNameDB().getByLocation(a.location)) { _postBodyBuffer.append(" <a ").append(getClass("summDetailArchiveBookmark")).append(" href=\""); _postBodyBuffer.append(getBookmarkURL(sanitizeTagParam(a.name), sanitizeTagParam(a.location), sanitizeTagParam(a.locationSchema), AddressesServlet.PROTO_ARCHIVE)); _postBodyBuffer.append("\">bookmark it</a>"); } } _postBodyBuffer.append("<br />\n"); } if (_entry != null) { List replies = _archive.getIndex().getReplies(_entry.getURI()); if ( (replies != null) && (replies.size() > 0) ) { _postBodyBuffer.append(getSpan("summDetailReplies")).append("Replies:</span> "); for (int i = 0; i < replies.size(); i++) { BlogURI reply = (BlogURI)replies.get(i); _postBodyBuffer.append("<a ").append(getClass("summDetailReplyLink")).append(" href=\""); _postBodyBuffer.append(getPageURL(reply.getKeyHash(), null, reply.getEntryId(), -1, -1, true, _user.getShowImages())); _postBodyBuffer.append("\">"); _postBodyBuffer.append(getSpan("summDetailReplyAuthor")); BlogInfo replyAuthor = _archive.getBlogInfo(reply); if (replyAuthor != null) { _postBodyBuffer.append(sanitizeString(replyAuthor.getProperty(BlogInfo.NAME))); } else { _postBodyBuffer.append(reply.getKeyHash().toBase64().substring(0,16)); } _postBodyBuffer.append("</span> on "); _postBodyBuffer.append(getSpan("summDetailReplyDate")); _postBodyBuffer.append(getEntryDate(reply.getEntryId())); _postBodyBuffer.append("</a></span> "); } _postBodyBuffer.append("<br />"); } } String inReplyTo = (String)_headers.get(HEADER_IN_REPLY_TO); if ( (inReplyTo != null) && (inReplyTo.trim().length() > 0) ) { BlogURI replyURI = new BlogURI(inReplyTo); if (replyURI.getEntryId() > 0) { _postBodyBuffer.append(" <a ").append(getClass("summDetailParent")); _postBodyBuffer.append(" href=\""); _postBodyBuffer.append(getPageURL(replyURI.getKeyHash(), null, replyURI.getEntryId(), 0, 0, true, true)); _postBodyBuffer.append("\">(view parent)</a><br />\n"); } } _postBodyBuffer.append(" </td>\n"); _postBodyBuffer.append(" </form>\n"); _postBodyBuffer.append("</tr>\n"); }
|
3808 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3808/952bcc696a06cd02073496e94eb387def2264bed/ThreadedHTMLRenderer.java/clean/apps/syndie/java/src/net/i2p/syndie/sml/ThreadedHTMLRenderer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
6798,
1638,
1435,
288,
540,
389,
18031,
1892,
18,
6923,
2932,
32,
313,
667,
5189,
2767,
3790,
28219,
82,
8863,
3639,
389,
18031,
1892,
18,
6923,
2932,
411,
687,
1301,
5189,
1945,
11461,
18,
24926,
2412,
707,
5189,
3264,
28219,
82,
8863,
3639,
389,
18031,
1892,
18,
6923,
2932,
411,
4465,
20856,
5189,
23,
2412,
1244,
724,
5189,
3669,
2412,
5689,
5189,
4482,
28219,
82,
8863,
7734,
389,
18031,
1892,
18,
6923,
2932,
32,
2630,
618,
5189,
6345,
2412,
508,
13186,
2934,
6923,
12,
7465,
18415,
3381,
18,
8388,
67,
38,
4842,
1769,
3639,
389,
18031,
1892,
18,
6923,
2932,
2412,
460,
5189,
8863,
3639,
309,
261,
67,
4099,
480,
446,
13,
5411,
389,
18031,
1892,
18,
6923,
12,
2171,
1105,
18,
3015,
24899,
4099,
18,
588,
3098,
7675,
588,
653,
2310,
7675,
588,
751,
1435,
10019,
3639,
469,
5411,
389,
18031,
1892,
18,
6923,
2932,
8172,
8863,
3639,
389,
18031,
1892,
18,
6923,
2932,
2412,
342,
5333,
82,
8863,
3639,
389,
18031,
1892,
18,
6923,
2932,
32,
2630,
618,
5189,
6345,
2412,
508,
13186,
2934,
6923,
12,
7465,
18415,
3381,
18,
8388,
67,
19083,
1769,
3639,
389,
18031,
1892,
18,
6923,
2932,
2412,
460,
5189,
8863,
3639,
309,
261,
67,
4099,
480,
446,
13,
2398,
389,
18031,
1892,
18,
6923,
24899,
4099,
18,
588,
3098,
7675,
588,
1622,
548,
10663,
3639,
469,
5411,
389,
18031,
1892,
18,
6923,
2932,
8172,
8863,
3639,
389,
18031,
1892,
18,
6923,
2932,
2412,
342,
5333,
82,
8863,
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,
6798,
1638,
1435,
288,
540,
389,
18031,
1892,
18,
6923,
2932,
32,
313,
667,
5189,
2767,
3790,
28219,
82,
8863,
3639,
389,
18031,
1892,
18,
6923,
2932,
411,
687,
1301,
5189,
1945,
11461,
18,
24926,
2412,
707,
5189,
3264,
28219,
82,
8863,
3639,
389,
18031,
1892,
18,
6923,
2932,
411,
4465,
20856,
5189,
23,
2412,
1244,
724,
5189,
3669,
2412,
5689,
5189,
4482,
28219,
82,
8863,
7734,
389,
18031,
1892,
18,
6923,
2932,
32,
2630,
618,
5189,
6345,
2412,
508,
13186,
2934,
6923,
12,
7465,
18415,
3381,
18,
8388,
67,
38,
4842,
1769,
3639,
389,
18031,
1892,
18,
6923,
2932,
2412,
460,
5189,
8863,
3639,
309,
261,
67,
4099,
480,
446,
13,
5411,
389,
18031,
1892,
2
] |
public void next() { this.iCurrentSubtaskIndex++; }
|
public void next( ) { this.iCurrentSubtaskIndex++; }
|
public void next() { // TODO: Switch to next subtask this.iCurrentSubtaskIndex++; }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/ae8909f5c697c610266e491d0af9a02eed14e2e4/SequencedTask.java/buggy/core/org.eclipse.birt.core.ui/src/org/eclipse/birt/core/ui/frameworks/taskwizard/SequencedTask.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1024,
1435,
565,
288,
3639,
368,
2660,
30,
13967,
358,
1024,
720,
4146,
3639,
333,
18,
77,
3935,
1676,
4146,
1016,
9904,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1024,
1435,
565,
288,
3639,
368,
2660,
30,
13967,
358,
1024,
720,
4146,
3639,
333,
18,
77,
3935,
1676,
4146,
1016,
9904,
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
] |
if (seen == ALOAD_1) { count_aload_1++; } else if (seen == GETFIELD) { FieldAnnotation f = FieldAnnotation.fromReferencedField(this); if (DEBUG) System.out.println("get: " + f); readFields.add(f); if (getClassConstantOperand().equals(getClassName()) && !myFields.contains(f)) { superReadFields.add(getNameConstantOperand());
|
if (seen == ALOAD_1) { count_aload_1++; } else if (seen == GETFIELD) { FieldAnnotation f = FieldAnnotation.fromReferencedField(this); if (DEBUG) System.out.println("get: " + f); readFields.add(f); if (getClassConstantOperand().equals(getClassName()) && !myFields.contains(f)) { superReadFields.add(getNameConstantOperand());
|
public void sawOpcode(int seen) { if (seen == ALOAD_1) { count_aload_1++; } else if (seen == GETFIELD) { FieldAnnotation f = FieldAnnotation.fromReferencedField(this); if (DEBUG) System.out.println("get: " + f); readFields.add(f); if (getClassConstantOperand().equals(getClassName()) && !myFields.contains(f)) { superReadFields.add(getNameConstantOperand()); } } else if (seen == PUTFIELD) { FieldAnnotation f = FieldAnnotation.fromReferencedField(this); if (DEBUG) System.out.println("put: " + f); writtenFields.add(f); if (getClassConstantOperand().equals(getClassName()) && !myFields.contains(f)) { superWrittenFields.add(getNameConstantOperand()); } } }
|
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/1d541964940eaa91b52b21469dc5b763fef1d8d1/UnreadFields.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/detect/UnreadFields.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
19821,
22808,
12,
474,
5881,
13,
288,
202,
430,
261,
15156,
422,
432,
7783,
67,
21,
13,
288,
202,
202,
1883,
67,
287,
6189,
67,
21,
9904,
31,
202,
202,
97,
202,
12107,
309,
261,
15156,
422,
4978,
6776,
13,
288,
202,
202,
974,
3257,
284,
273,
2286,
3257,
18,
2080,
22344,
974,
12,
2211,
1769,
202,
202,
430,
261,
9394,
13,
2332,
18,
659,
18,
8222,
2932,
588,
30,
315,
397,
284,
1769,
202,
202,
896,
2314,
18,
1289,
12,
74,
1769,
202,
202,
430,
261,
588,
797,
6902,
10265,
7675,
14963,
12,
588,
3834,
10756,
597,
1082,
202,
5,
4811,
2314,
18,
12298,
12,
74,
3719,
288,
1082,
202,
9565,
1994,
2314,
18,
1289,
12,
17994,
6902,
10265,
10663,
1082,
202,
97,
202,
202,
97,
202,
12107,
309,
261,
15156,
422,
11443,
6776,
13,
288,
202,
202,
974,
3257,
284,
273,
2286,
3257,
18,
2080,
22344,
974,
12,
2211,
1769,
202,
202,
430,
261,
9394,
13,
2332,
18,
659,
18,
8222,
2932,
458,
30,
315,
397,
284,
1769,
202,
202,
9748,
2314,
18,
1289,
12,
74,
1769,
202,
202,
430,
261,
588,
797,
6902,
10265,
7675,
14963,
12,
588,
3834,
10756,
597,
1082,
202,
5,
4811,
2314,
18,
12298,
12,
74,
3719,
288,
1082,
202,
9565,
12643,
2314,
18,
1289,
12,
17994,
6902,
10265,
10663,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
19821,
22808,
12,
474,
5881,
13,
288,
202,
430,
261,
15156,
422,
432,
7783,
67,
21,
13,
288,
202,
202,
1883,
67,
287,
6189,
67,
21,
9904,
31,
202,
202,
97,
202,
12107,
309,
261,
15156,
422,
4978,
6776,
13,
288,
202,
202,
974,
3257,
284,
273,
2286,
3257,
18,
2080,
22344,
974,
12,
2211,
1769,
202,
202,
430,
261,
9394,
13,
2332,
18,
659,
18,
8222,
2932,
588,
30,
315,
397,
284,
1769,
202,
202,
896,
2314,
18,
1289,
12,
74,
1769,
202,
202,
430,
261,
588,
797,
6902,
10265,
7675,
14963,
12,
588,
3834,
10756,
597,
1082,
202,
5,
4811,
2314,
18,
12298,
12,
74,
3719,
288,
1082,
202,
9565,
1994,
2314,
18,
1289,
2
] |
c.anchor = GridBagConstraints.WEST;
|
c.anchor = GridBagConstraints.WEST;
|
public JPanel config() { JPanel panel= new JPanel(); GridBagLayout gridbag = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); panel.setLayout(gridbag); c.anchor = GridBagConstraints.WEST; c.gridx=0;c.gridy=0;c.gridwidth=9;c.gridheight=1;c.weightx=1;c.anchor=c.WEST;c.fill=c.HORIZONTAL; panel.add(new JLabel(" "),c); c.gridx=0;c.gridy=1;c.gridwidth=3;c.gridheight=2; panel.add(new JLabel("Change Device ID and MIDI Channel to:"),c); String[] deviceNumbers = {"1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16" }; JComboBox synthList = new JComboBox(deviceNumbers); synthList.setSelectedItem(java.lang.Integer.toString(getChannel())); synthList.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { JComboBox cb = (JComboBox)e.getSource(); String index = (String)cb.getSelectedItem(); setChannel(java.lang.Integer.parseInt(index)); } }); c.gridx=3;c.gridy=1;c.gridwidth=3;c.gridheight=2; panel.add(synthList,c); JButton send_button = new JButton("<< SEND >>"); send_button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { reconfigureDeviceID(); } }); c.gridx=3;c.gridy=7;c.gridwidth=3;c.gridheight=2; panel.add(send_button,c); return panel; }
|
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/165ffcd01f56d7b9e9866275ef5b0ae4853e9778/MIDIboxSIDDevice.java/buggy/JSynthLib/synthdrivers/MIDIboxSID/MIDIboxSIDDevice.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
24048,
642,
1435,
565,
288,
202,
46,
5537,
6594,
33,
394,
24048,
5621,
202,
6313,
5013,
3744,
3068,
22551,
273,
394,
7145,
5013,
3744,
5621,
202,
6313,
6852,
276,
273,
394,
13075,
5621,
202,
13916,
18,
542,
3744,
12,
5222,
22551,
1769,
202,
71,
18,
16215,
273,
13075,
18,
31285,
31,
225,
202,
71,
18,
5222,
92,
33,
20,
31,
71,
18,
5222,
93,
33,
20,
31,
71,
18,
5222,
2819,
33,
29,
31,
71,
18,
5222,
4210,
33,
21,
31,
71,
18,
4865,
92,
33,
21,
31,
71,
18,
16215,
33,
71,
18,
31285,
31,
71,
18,
5935,
33,
71,
18,
44,
20344,
31,
202,
13916,
18,
1289,
12,
2704,
21403,
2932,
4766,
5375,
315,
3631,
71,
1769,
202,
71,
18,
5222,
92,
33,
20,
31,
71,
18,
5222,
93,
33,
21,
31,
71,
18,
5222,
2819,
33,
23,
31,
71,
18,
5222,
4210,
33,
22,
31,
202,
13916,
18,
1289,
12,
2704,
21403,
2932,
3043,
6077,
1599,
471,
490,
30218,
5307,
358,
2773,
3631,
71,
1769,
202,
780,
8526,
2346,
10072,
273,
12528,
21,
3113,
315,
22,
3113,
315,
23,
3113,
315,
24,
3113,
315,
25,
3113,
315,
26,
3113,
315,
27,
3113,
315,
28,
3113,
315,
29,
3113,
315,
2163,
3113,
315,
2499,
3113,
315,
2138,
3113,
315,
3437,
3113,
315,
3461,
3113,
315,
3600,
3113,
315,
2313,
6,
289,
31,
202,
46,
22199,
6194,
451,
682,
273,
394,
804,
22199,
12,
5964,
10072,
1769,
202,
11982,
451,
682,
18,
542,
7416,
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,
24048,
642,
1435,
565,
288,
202,
46,
5537,
6594,
33,
394,
24048,
5621,
202,
6313,
5013,
3744,
3068,
22551,
273,
394,
7145,
5013,
3744,
5621,
202,
6313,
6852,
276,
273,
394,
13075,
5621,
202,
13916,
18,
542,
3744,
12,
5222,
22551,
1769,
202,
71,
18,
16215,
273,
13075,
18,
31285,
31,
225,
202,
71,
18,
5222,
92,
33,
20,
31,
71,
18,
5222,
93,
33,
20,
31,
71,
18,
5222,
2819,
33,
29,
31,
71,
18,
5222,
4210,
33,
21,
31,
71,
18,
4865,
92,
33,
21,
31,
71,
18,
16215,
33,
71,
18,
31285,
31,
71,
18,
5935,
33,
71,
18,
44,
20344,
31,
202,
13916,
18,
1289,
12,
2704,
21403,
2932,
4766,
5375,
315,
3631,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.