rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
throw new MessageInvalidException(ProtocolErrorMessage.INTERNAL_ERROR, e.toString(), getIdentifier());
throw new MessageInvalidException(ProtocolErrorMessage.INTERNAL_ERROR, e.toString(), getIdentifier(), isGlobal());
public void readFrom(InputStream is, BucketFactory bf, FCPServer server) throws IOException, MessageInvalidException { long len = dataLength(); if(len < 0) throw new IllegalArgumentException("Invalid length: "+len); if(len == 0) return; Bucket tempBucket; try { tempBucket = createBucket(bf, len, server); } catch (IOException e) { Logger.error(this, "Bucket error: "+e, e); throw new MessageInvalidException(ProtocolErrorMessage.INTERNAL_ERROR, e.toString(), getIdentifier()); } BucketTools.copyFrom(tempBucket, is, len); this.bucket = tempBucket; }
51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/bbb3c23ec38ea1c7abb48040a17f5fc7932248bc/DataCarryingMessage.java/clean/src/freenet/node/fcp/DataCarryingMessage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 20876, 12, 4348, 353, 16, 7408, 1733, 16222, 16, 478, 4258, 2081, 1438, 13, 1216, 1860, 16, 2350, 1941, 503, 288, 202, 202, 5748, 562, 273, 27972, 5621, 202, 202, 430, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 20876, 12, 4348, 353, 16, 7408, 1733, 16222, 16, 478, 4258, 2081, 1438, 13, 1216, 1860, 16, 2350, 1941, 503, 288, 202, 202, 5748, 562, 273, 27972, 5621, 202, 202, 430, 12...
NotImplemented(); return false;
return columnsInfo.isCaseSensitive(column).booleanValue();
public boolean isCaseSensitive(int column) throws SQLException { NotImplemented(); return false; }
439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/9b2a5e448e4b05755a66c49a23171af56a29bb2c/TdsResultSetMetaData.java/clean/trunk/jtds/src.old/main/com/internetcds/jdbc/tds/TdsResultSetMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 1250, 353, 2449, 14220, 12, 474, 1057, 13, 1216, 6483, 282, 288, 1377, 327, 2168, 966, 18, 291, 2449, 14220, 12, 2827, 2934, 6494, 620, 5621, 282, 289, 2, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 1250, 353, 2449, 14220, 12, 474, 1057, 13, 1216, 6483, 282, 288, 1377, 327, 2168, 966, 18, 291, 2449, 14220, 12, 2827, 2934, 6494, 620, 5621, 282, 289, 2, -100, -100, -100, -100, ...
bogusNoderef = false; try { processNewNoderef(data, offset, length); } catch (FSParseException e1) { bogusNoderef = true; Logger.error(this, "Failed to parse new noderef for "+this+": "+e1, e1); } if(reverseInvalidVersion()) { try { node.setNewestPeerLastGoodVersion(Version.getArbitraryBuildNumber(lastGoodVersion)); } catch (NumberFormatException e) { } Logger.normal(this, "Not connecting to "+this+" - reverse invalid version "+Version.getVersionString()+" for peer's lastGoodversion: "+lastGoodVersion); verifiedIncompatibleNewerVersion = true; isConnected = false; setPeerNodeStatus(now); node.peers.disconnected(this); return false; } else { verifiedIncompatibleNewerVersion = false; setPeerNodeStatus(now); } if(invalidVersion()) { Logger.normal(this, "Not connecting to "+this+" - invalid version "+version); verifiedIncompatibleOlderVersion = true; isConnected = false; setPeerNodeStatus(now); node.peers.disconnected(this); return false; } else { verifiedIncompatibleOlderVersion = false; setPeerNodeStatus(now); } KeyTracker newTracker = new KeyTracker(this, encCipher, encKey); changedIP(replyTo); if(thisBootID != this.bootID) { connectedTime = System.currentTimeMillis(); Logger.minor(this, "Changed boot ID from "+bootID+" to "+thisBootID+" for "+getPeer()); isConnected = false; setPeerNodeStatus(now); if(previousTracker != null) { KeyTracker old = previousTracker; previousTracker = null; old.completelyDeprecated(newTracker); } previousTracker = null; if(currentTracker != null) { KeyTracker old = currentTracker; currentTracker = null; old.completelyDeprecated(newTracker); } this.bootID = thisBootID; node.lm.lostOrRestartedNode(this); } if(unverified) { unverifiedTracker = newTracker; ctx = null; Logger.minor(this, "sentHandshake() being called for unverifiedTracker: "+getPeer()); sentHandshake(); } else { previousTracker = currentTracker; currentTracker = newTracker; unverifiedTracker = null; if(previousTracker != null) previousTracker.deprecated(); isConnected = true; neverConnected = false; peerAddedTime = 0; setPeerNodeStatus(now); ctx = null; } if(!isConnected) node.peers.disconnected(this); Logger.normal(this, "Completed handshake with "+this+" on "+replyTo+" - current: "+currentTracker+" old: "+previousTracker+" unverified: "+unverifiedTracker+" bootID: "+thisBootID+" myName: "+myName); try { receivedPacket(unverified); } catch (NotConnectedException e) { Logger.error(this, "Disconnected in completedHandshake with "+this); return true; } if(isConnected) node.peers.addConnectedPeer(this); sentInitialMessages = false; return true;
synchronized(this) { completedHandshake = true; handshakeCount = 0; bogusNoderef = false; try { processNewNoderef(data, offset, length); } catch (FSParseException e1) { bogusNoderef = true; Logger.error(this, "Failed to parse new noderef for "+this+": "+e1, e1); } if(reverseInvalidVersion()) { try { node.setNewestPeerLastGoodVersion(Version.getArbitraryBuildNumber(lastGoodVersion)); } catch (NumberFormatException e) { } Logger.normal(this, "Not connecting to "+this+" - reverse invalid version "+Version.getVersionString()+" for peer's lastGoodversion: "+lastGoodVersion); verifiedIncompatibleNewerVersion = true; isConnected = false; setPeerNodeStatus(now); node.peers.disconnected(this); return false; } else { verifiedIncompatibleNewerVersion = false; setPeerNodeStatus(now); } if(invalidVersion()) { Logger.normal(this, "Not connecting to "+this+" - invalid version "+version); verifiedIncompatibleOlderVersion = true; isConnected = false; setPeerNodeStatus(now); node.peers.disconnected(this); return false; } else { verifiedIncompatibleOlderVersion = false; setPeerNodeStatus(now); } KeyTracker newTracker = new KeyTracker(this, encCipher, encKey); changedIP(replyTo); if(thisBootID != this.bootID) { connectedTime = System.currentTimeMillis(); Logger.minor(this, "Changed boot ID from "+bootID+" to "+thisBootID+" for "+getPeer()); isConnected = false; setPeerNodeStatus(now); if(previousTracker != null) { KeyTracker old = previousTracker; previousTracker = null; old.completelyDeprecated(newTracker); } previousTracker = null; if(currentTracker != null) { KeyTracker old = currentTracker; currentTracker = null; old.completelyDeprecated(newTracker); } this.bootID = thisBootID; node.lm.lostOrRestartedNode(this); } if(unverified) { unverifiedTracker = newTracker; ctx = null; Logger.minor(this, "sentHandshake() being called for unverifiedTracker: "+getPeer()); sentHandshake(); } else { previousTracker = currentTracker; currentTracker = newTracker; unverifiedTracker = null; if(previousTracker != null) previousTracker.deprecated(); isConnected = true; neverConnected = false; peerAddedTime = 0; setPeerNodeStatus(now); ctx = null; } if(!isConnected) node.peers.disconnected(this); Logger.normal(this, "Completed handshake with "+this+" on "+replyTo+" - current: "+currentTracker+" old: "+previousTracker+" unverified: "+unverifiedTracker+" bootID: "+thisBootID+" myName: "+myName); try { receivedPacket(unverified); } catch (NotConnectedException e) { Logger.error(this, "Disconnected in completedHandshake with "+this); return true; } if(isConnected) node.peers.addConnectedPeer(this); sentInitialMessages = false; return true; }
public synchronized boolean completedHandshake(long thisBootID, byte[] data, int offset, int length, BlockCipher encCipher, byte[] encKey, Peer replyTo, boolean unverified) { long now = System.currentTimeMillis(); completedHandshake = true; handshakeCount = 0; arkFetcher.stop(); bogusNoderef = false; try { // First, the new noderef processNewNoderef(data, offset, length); } catch (FSParseException e1) { bogusNoderef = true; Logger.error(this, "Failed to parse new noderef for "+this+": "+e1, e1); // Treat as invalid version } if(reverseInvalidVersion()) { try { node.setNewestPeerLastGoodVersion(Version.getArbitraryBuildNumber(lastGoodVersion)); } catch (NumberFormatException e) { // ignore } Logger.normal(this, "Not connecting to "+this+" - reverse invalid version "+Version.getVersionString()+" for peer's lastGoodversion: "+lastGoodVersion); verifiedIncompatibleNewerVersion = true; isConnected = false; setPeerNodeStatus(now); node.peers.disconnected(this); return false; } else { verifiedIncompatibleNewerVersion = false; setPeerNodeStatus(now); } if(invalidVersion()) { Logger.normal(this, "Not connecting to "+this+" - invalid version "+version); verifiedIncompatibleOlderVersion = true; isConnected = false; setPeerNodeStatus(now); node.peers.disconnected(this); return false; } else { verifiedIncompatibleOlderVersion = false; setPeerNodeStatus(now); } KeyTracker newTracker = new KeyTracker(this, encCipher, encKey); changedIP(replyTo); if(thisBootID != this.bootID) { connectedTime = System.currentTimeMillis(); Logger.minor(this, "Changed boot ID from "+bootID+" to "+thisBootID+" for "+getPeer()); isConnected = false; // Will be reset below setPeerNodeStatus(now); if(previousTracker != null) { KeyTracker old = previousTracker; previousTracker = null; old.completelyDeprecated(newTracker); } previousTracker = null; if(currentTracker != null) { KeyTracker old = currentTracker; currentTracker = null; old.completelyDeprecated(newTracker); } this.bootID = thisBootID; node.lm.lostOrRestartedNode(this); } // else it's a rekey if(unverified) { unverifiedTracker = newTracker; ctx = null; Logger.minor(this, "sentHandshake() being called for unverifiedTracker: "+getPeer()); sentHandshake(); } else { previousTracker = currentTracker; currentTracker = newTracker; unverifiedTracker = null; if(previousTracker != null) previousTracker.deprecated(); isConnected = true; neverConnected = false; peerAddedTime = 0; // don't store anymore setPeerNodeStatus(now); ctx = null; } if(!isConnected) node.peers.disconnected(this); Logger.normal(this, "Completed handshake with "+this+" on "+replyTo+" - current: "+currentTracker+" old: "+previousTracker+" unverified: "+unverifiedTracker+" bootID: "+thisBootID+" myName: "+myName); try { receivedPacket(unverified); } catch (NotConnectedException e) { Logger.error(this, "Disconnected in completedHandshake with "+this); return true; // i suppose } if(isConnected) node.peers.addConnectedPeer(this); sentInitialMessages = false; return true; }
46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/debb3a9d6c32f4a630e5b6dbf8d32bd12f1ffdaf/PeerNode.java/buggy/src/freenet/node/PeerNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 1250, 5951, 14545, 12, 5748, 333, 15817, 734, 16, 1160, 8526, 501, 16, 509, 1384, 16, 509, 769, 16, 3914, 13896, 2446, 13896, 16, 1160, 8526, 2446, 653, 16, 10669, 30934, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 1250, 5951, 14545, 12, 5748, 333, 15817, 734, 16, 1160, 8526, 501, 16, 509, 1384, 16, 509, 769, 16, 3914, 13896, 2446, 13896, 16, 1160, 8526, 2446, 653, 16, 10669, 30934, 16, ...
this.list = l; }
this.list = l; }
public void setList(Object l[][]) { this.list = l; }
13091 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13091/caf78c044779e1d4ef30b4b591959849994182b0/GraphikPanel.java/buggy/celltraffic/src/gui/GraphikPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 682, 12, 921, 328, 63, 6362, 5717, 288, 202, 202, 2211, 18, 1098, 273, 328, 31, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 444, 682, 12, 921, 328, 63, 6362, 5717, 288, 202, 202, 2211, 18, 1098, 273, 328, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
"PropertyOnDelete was not set.", table.containsKey("propertyOnDelete"));
"PropertyOnDelete was not set.", table.containsKey("propertyOnDelete"));
public void testGetProperties() throws IOException, ParseException { CVS cvs = new CVS(); cvs.setMailAliases(new Hashtable()); cvs.setProperty("property"); cvs.setPropertyOnDelete("propertyOnDelete"); File testLog = new File("test/net/sourceforge/cruisecontrol/sourcecontrols/cvslog1-11.txt"); BufferedInputStream input = new BufferedInputStream(new FileInputStream(testLog)); cvs.parseStream(input); input.close(); Hashtable table = cvs.getProperties(); assertNotNull("Table of properties shouldn't be null.", table); assertEquals("Should be two properties.", 2, table.size()); assertTrue("Property was not set.", table.containsKey("property")); assertTrue( "PropertyOnDelete was not set.", table.containsKey("propertyOnDelete")); //negative test CVS cvs2 = new CVS(); cvs2.setMailAliases(new Hashtable()); input = new BufferedInputStream(new FileInputStream(testLog)); cvs2.parseStream(input); input.close(); table = cvs2.getProperties(); assertNotNull("Table of properties shouldn't be null.", table); assertEquals("Shouldn't be any properties.", 0, table.size()); }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/cc8d12515d217c4869991501dda487dca6f6add8/CVSTest.java/clean/main/test/net/sourceforge/cruisecontrol/sourcecontrols/CVSTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 967, 2297, 1435, 1216, 1860, 16, 10616, 288, 3639, 385, 14640, 276, 6904, 273, 394, 385, 14640, 5621, 3639, 276, 6904, 18, 542, 6759, 9667, 12, 2704, 18559, 10663, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 967, 2297, 1435, 1216, 1860, 16, 10616, 288, 3639, 385, 14640, 276, 6904, 273, 394, 385, 14640, 5621, 3639, 276, 6904, 18, 542, 6759, 9667, 12, 2704, 18559, 10663, 3639, ...
Konto k = (Konto) event.data;
BaseKonto k = (BaseKonto) event.data;
public DialogInput getKontoAuswahl() throws RemoteException { if (kontoAuswahl != null) return kontoAuswahl; DBIterator list = Settings.getDBService().createList(Konto.class); KontoAuswahlDialog d = new KontoAuswahlDialog(list,KontoAuswahlDialog.POSITION_MOUSE); d.addCloseListener(new Listener() { public void handleEvent(Event event) { Konto k = (Konto) event.data; if (k == null) return; try { kontoAuswahl.setComment(i18n.tr("Saldo: {0} {1}",new String[]{Fibu.DECIMALFORMAT.format(k.getSaldo()), Settings.getActiveMandant().getWaehrung()})); kontoAuswahl.setValue(k.getKontonummer()); kontoAuswahl.setText(k.getKontonummer()); if (k.getSteuer() == null) { getSteuer().disable(); } else { getSteuer().enable(); getSteuer().setValue(Fibu.DECIMALFORMAT.format(k.getSteuer().getSatz())); } } catch (RemoteException e) { Logger.error("unable to load konto",e); } } }); Konto k = getBuchung().getKonto(); kontoAuswahl = new DialogInput(k == null ? null : k.getKontonummer(),d); kontoAuswahl.setComment(k == null ? "" : i18n.tr("Saldo: {0} {1}",new String[]{Fibu.DECIMALFORMAT.format(k.getSaldo()), Settings.getActiveMandant().getWaehrung()})); if (k == null || k.getSteuer() == null) { getSteuer().disable(); } else { getSteuer().enable(); getSteuer().setValue(Fibu.DECIMALFORMAT.format(k.getSteuer().getSatz())); } return kontoAuswahl; }
47584 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47584/5be46f337965e08dfa80c210ca2a97dbb334da07/BuchungControl.java/buggy/src/de/willuhn/jameica/fibu/gui/controller/BuchungControl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 17242, 1210, 16566, 265, 869, 37, 407, 91, 9795, 80, 1435, 1216, 18361, 202, 95, 202, 202, 430, 261, 79, 265, 869, 37, 407, 91, 9795, 80, 480, 446, 13, 1082, 202, 2463, 417, 265...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17242, 1210, 16566, 265, 869, 37, 407, 91, 9795, 80, 1435, 1216, 18361, 202, 95, 202, 202, 430, 261, 79, 265, 869, 37, 407, 91, 9795, 80, 480, 446, 13, 1082, 202, 2463, 417, 265...
public void addInternalError(File file, String message) { addInternalError(new FileLocation(file), message);
public void addInternalError(FileLocation location, String message) { add(new LogEntry(LogEntry.INTERNAL_ERROR, location, message));
public void addInternalError(File file, String message) { addInternalError(new FileLocation(file), message); }
48557 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48557/149ec2ad8538c817093d93da4449031152b91e27/MibLoaderLog.java/buggy/src/java/net/percederberg/mibble/MibLoaderLog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 20980, 12, 812, 585, 16, 514, 883, 13, 288, 3639, 527, 20980, 12, 2704, 1387, 2735, 12, 768, 3631, 883, 1769, 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, 0, 0, 0, 0, 0, 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, 527, 20980, 12, 812, 585, 16, 514, 883, 13, 288, 3639, 527, 20980, 12, 2704, 1387, 2735, 12, 768, 3631, 883, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100...
super(position);
super(position, NodeTypes.REGEXPNODE);
public RegexpNode(ISourcePosition position, String value, int options) { super(position); this.value = value; this.options = options; }
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/6e15491217631472c05c6928672f9c7064a978b3/RegexpNode.java/clean/src/org/jruby/ast/RegexpNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 17011, 907, 12, 45, 1830, 2555, 1754, 16, 514, 460, 16, 509, 702, 13, 288, 3639, 2240, 12, 3276, 16, 2029, 2016, 18, 28225, 8744, 1769, 7734, 333, 18, 1132, 273, 460, 31, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 17011, 907, 12, 45, 1830, 2555, 1754, 16, 514, 460, 16, 509, 702, 13, 288, 3639, 2240, 12, 3276, 16, 2029, 2016, 18, 28225, 8744, 1769, 7734, 333, 18, 1132, 273, 460, 31, 3639, ...
if (element instanceof TaskCategory) { TaskCategory category = (TaskCategory) element; if (category.isArchive()) { return TaskListImages.getImage(TaskListImages.CATEGORY_ARCHIVE); } else { return TaskListImages.getImage(TaskListImages.CATEGORY); }
if (element instanceof TaskArchive) { return TaskListImages.getImage(TaskListImages.CATEGORY_ARCHIVE); } else if (element instanceof TaskCategory) { return TaskListImages.getImage(TaskListImages.CATEGORY);
public Image getImage(Object element) { if (element instanceof TaskCategory) { TaskCategory category = (TaskCategory) element; if (category.isArchive()) { return TaskListImages.getImage(TaskListImages.CATEGORY_ARCHIVE); } else { return TaskListImages.getImage(TaskListImages.CATEGORY); } } else if (element instanceof AbstractRepositoryQuery) { return TaskListImages.getImage(TaskListImages.QUERY); } else if (element instanceof AbstractQueryHit) { AbstractQueryHit hit = (AbstractQueryHit)element; if (hit.getCorrespondingTask() != null) { return getImage(hit.getCorrespondingTask()); } else { return TaskListImages.getImage(TaskListImages.TASK_REMOTE); }// } else if (element instanceof AbstractRepositoryTask) {// return TaskListImages.getImage(TaskListImages.TASK_REPOSITORY); } else if (element instanceof ITask) { ITask task = (ITask)element; if (task.getNotes() != null && !task.getNotes().trim().equals("")) { return TaskListImages.getImage(TaskListImages.TASK_NOTES); } else { return TaskListImages.getImage(TaskListImages.TASK); } } return null; }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/94c21edbc39556b8dc174332efba8474912627bb/TaskElementLabelProvider.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/views/TaskElementLabelProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3421, 10567, 12, 921, 930, 13, 288, 202, 202, 430, 261, 2956, 1276, 3837, 4457, 13, 288, 1082, 202, 2174, 4457, 3150, 273, 261, 2174, 4457, 13, 930, 31, 1082, 202, 430, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3421, 10567, 12, 921, 930, 13, 288, 202, 202, 430, 261, 2956, 1276, 3837, 4457, 13, 288, 1082, 202, 2174, 4457, 3150, 273, 261, 2174, 4457, 13, 930, 31, 1082, 202, 430, 261, ...
final PropertiesComponent propertiesComponent = PropertiesComponent.getInstance(); final String history = propertiesComponent.getValue(SANDBOX_HISTORY); if (history != null) { final String[] items = history.split("\n"); ArrayList<String> result = new ArrayList<String>(); for (String item : items) { if (item != null && item.length() > 0) { result.add(item); } } mySandboxHome.setHistory(result); }
public void reset() { if (myIdeaJdk != null && myIdeaJdk.getSdkAdditionalData() instanceof Sandbox) { final PropertiesComponent propertiesComponent = PropertiesComponent.getInstance(); final String history = propertiesComponent.getValue(SANDBOX_HISTORY); if (history != null) { final String[] items = history.split("\n"); ArrayList<String> result = new ArrayList<String>(); for (String item : items) { if (item != null && item.length() > 0) { result.add(item); } } mySandboxHome.setHistory(result); } final String sandboxHome = ((Sandbox)myIdeaJdk.getSdkAdditionalData()).getSandboxHome(); mySandboxHome.setText(sandboxHome); mySandboxHome.setSelectedItem(sandboxHome); } else { mySandboxHome.setText(""); } myModified = false; }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/e0de11f92d79765f11eca922667f3df991481b43/IdeaJdkConfigurable.java/clean/plugins/devkit/src/projectRoots/IdeaJdkConfigurable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2715, 1435, 288, 565, 309, 261, 4811, 45, 323, 69, 46, 2883, 480, 446, 597, 3399, 45, 323, 69, 46, 2883, 18, 588, 23951, 10552, 751, 1435, 1276, 348, 9069, 13, 288, 1377, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2715, 1435, 288, 565, 309, 261, 4811, 45, 323, 69, 46, 2883, 480, 446, 597, 3399, 45, 323, 69, 46, 2883, 18, 588, 23951, 10552, 751, 1435, 1276, 348, 9069, 13, 288, 1377, 7...
* 1GF82PL: ITPJUI:ALL - Need to be able to add bookmark to classfile
* 1GF82PL: ITPJUI:ALL - Need to be able to add bookmark to class file
protected void createActions() { super.createActions(); setAction(ITextEditorActionConstants.SAVE, null); setAction(ITextEditorActionConstants.REVERT_TO_SAVED, null); fSourceCopyAction= getAction(ITextEditorActionConstants.COPY); final ActionGroup group= new RefactorActionGroup(this, ITextEditorActionConstants.GROUP_EDIT, true); fActionGroups.addGroup(group); fContextMenuGroup= new CompositeActionGroup(new ActionGroup[] {group}); /* * 1GF82PL: ITPJUI:ALL - Need to be able to add bookmark to classfile * * // replace default action with class file specific ones * * setAction(ITextEditorActionConstants.BOOKMARK, new AddClassFileMarkerAction("AddBookmark.", this, IMarker.BOOKMARK, true)); //$NON-NLS-1$ * setAction(ITextEditorActionConstants.ADD_TASK, new AddClassFileMarkerAction("AddTask.", this, IMarker.TASK, false)); //$NON-NLS-1$ * setAction(ITextEditorActionConstants.RULER_MANAGE_BOOKMARKS, new ClassFileMarkerRulerAction("ManageBookmarks.", getVerticalRuler(), this, IMarker.BOOKMARK, true)); //$NON-NLS-1$ * setAction(ITextEditorActionConstants.RULER_MANAGE_TASKS, new ClassFileMarkerRulerAction("ManageTasks.", getVerticalRuler(), this, IMarker.TASK, true)); //$NON-NLS-1$ */ }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/d93aee5ffc270c3384308a7690dce78baaf043f6/ClassFileEditor.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/ClassFileEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 752, 6100, 1435, 288, 202, 202, 9565, 18, 2640, 6100, 5621, 202, 202, 542, 1803, 12, 1285, 408, 6946, 1803, 2918, 18, 25242, 16, 446, 1769, 202, 202, 542, 1803, 12, 1285...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 752, 6100, 1435, 288, 202, 202, 9565, 18, 2640, 6100, 5621, 202, 202, 542, 1803, 12, 1285, 408, 6946, 1803, 2918, 18, 25242, 16, 446, 1769, 202, 202, 542, 1803, 12, 1285...
for (Iterator e = imagesToDispose.iterator(); e.hasNext();) { ((Image) e.next()).dispose(); } imagesToDispose.clear();
imageCache.dispose();
public void dispose() { super.dispose(); for (Iterator e = imagesToDispose.iterator(); e.hasNext();) { ((Image) e.next()).dispose(); } imagesToDispose.clear(); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/1d4f9729552a610c32dd4e00177653b4dd61c79e/FileEditorMappingLabelProvider.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/FileEditorMappingLabelProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 15825, 1435, 288, 3639, 2240, 18, 2251, 4150, 5621, 3639, 364, 261, 3198, 425, 273, 4602, 774, 1669, 4150, 18, 9838, 5621, 425, 18, 5332, 2134, 5621, 13, 288, 5411, 14015, 2040...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15825, 1435, 288, 3639, 2240, 18, 2251, 4150, 5621, 3639, 364, 261, 3198, 425, 273, 4602, 774, 1669, 4150, 18, 9838, 5621, 425, 18, 5332, 2134, 5621, 13, 288, 5411, 14015, 2040...
initTableCellColor( );
protected Control createDialogArea( Composite parent ) { Composite parentComposite = (Composite) super.createDialogArea( parent ); /** * Label & button */ Composite composite = new Composite( parentComposite, SWT.NONE ); composite.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); composite.setLayout( UIUtil.createGridLayoutWithoutMargin( 2, false ) ); CLabel warnLabel = new CLabel( composite, SWT.NONE ); warnLabel.setImage( PlatformUI.getWorkbench( ) .getSharedImages( ) .getImage( ISharedImages.IMG_OBJS_WARN_TSK ) ); warnLabel.setText( WARN_COLUMN_BINDINGS ); GridData gd = new GridData( GridData.FILL_HORIZONTAL ); gd.horizontalSpan = 2; warnLabel.setLayoutData( gd ); Label label = new Label( composite, SWT.NONE ); label.setText( LABEL_COLUMN_BINDINGS ); label.setLayoutData( new GridData( GridData.BEGINNING ) ); // add data set combo selection. combo = new CCombo( composite, SWT.READ_ONLY | SWT.BORDER ); combo.setBackground( PlatformUI.getWorkbench( ) .getDisplay( ) .getSystemColor( SWT.COLOR_LIST_BACKGROUND ) ); String[] dataSets = ChoiceSetFactory.getDataSets( ); String[] newList = new String[dataSets.length + 1]; newList[0] = NONE; System.arraycopy( dataSets, 0, newList, 1, dataSets.length ); combo.setItems( newList ); String dataSetName = getDataSetName( ); combo.deselectAll( ); combo.setText( dataSetName ); combo.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); gd = new GridData( ); gd.widthHint = 250; combo.setLayoutData( gd ); combo.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent event ) { String value = combo.getText( ); if ( value.equals( NONE ) ) { value = null; } if ( canChangeDataSet( value ) ) { try { startTrans( "" ); //$NON-NLS-1$ DataSetHandle dataSet = null; if ( value != null ) { dataSet = SessionHandleAdapter.getInstance( ) .getReportDesignHandle( ) .findDataSet( value ); } inputElement.setDataSet( dataSet ); generateBindingColumns( ); getPropertyHandle( ).setStringValue( null ); commit( ); } catch ( SemanticException e ) { rollback( ); ExceptionHandler.handle( e ); } } else { combo.setText( getDataSetName( ) ); } } } ); /* * generateButton = new Button( composite, SWT.PUSH ); * generateButton.setText( BUTTON_GENERATE ); * generateButton.setLayoutData( new GridData( ) ); * generateButton.addSelectionListener( new SelectionAdapter( ) { * * public void widgetSelected( SelectionEvent e ) { try { * generateBindingColumns( ); } catch ( SemanticException e1 ) { * ExceptionHandler.handle( e1 ); } } } ); */ /** * Binding table */ Table table = new Table( parentComposite, SWT.SINGLE | SWT.FULL_SELECTION | SWT.BORDER | ( canSelect ? SWT.CHECK : 0 ) ); gd = new GridData( GridData.FILL_BOTH ); gd.heightHint = 200; table.setLayoutData( gd ); table.setLinesVisible( true ); table.setHeaderVisible( true ); table.addKeyListener( new KeyAdapter( ) { /** * @see org.eclipse.swt.events.KeyAdapter#keyReleased(org.eclipse.swt.events.KeyEvent) */ public void keyReleased( KeyEvent e ) { // If Delete pressed, delete the selected row if ( e.keyCode == SWT.DEL ) { IStructuredSelection selection = (IStructuredSelection) bindingTable.getSelection( ); if ( selection.getFirstElement( ) instanceof ComputedColumnHandle ) { deleteRow( (ComputedColumnHandle) selection.getFirstElement( ) ); } } } } ); String[] columns = null; int[] columnWidth = null; CellEditor[] cellEditors; expressionCellEditor = new ExpressionCellEditor( table ); columns = new String[]{ null, COLUMN_NAME, COLUMN_DATATYPE, COLUMN_EXPRESSION, COLUMN_AGGREGATEON }; columnWidth = new int[]{ canSelect ? 25 : 20, 150, 70, 150, 150, }; groupList = DEUtil.getGroups( inputElement ); groups = new String[groupList.size( ) + 1]; groups[0] = NONE; for ( int i = 0; i < groupList.size( ); i++ ) { groups[i + 1] = ( (GroupHandle) groupList.get( i ) ).getName( ); } cellEditors = new CellEditor[]{ null, new TextCellEditor( table ), new ComboBoxCellEditor( table, dataTypeDisplayNames ), expressionCellEditor, new ComboBoxCellEditor( table, groups, SWT.READ_ONLY ), }; for ( int i = 0; i < columns.length; i++ ) { TableColumn column = new TableColumn( table, SWT.LEFT ); column.setResizable( columns[i] != null ); if ( columns[i] != null ) { column.setText( columns[i] ); } column.setWidth( columnWidth[i] ); } if ( canSelect ) { bindingTable = new CheckboxTableViewer( table ); ( (CheckboxTableViewer) bindingTable ).addCheckStateListener( new ICheckStateListener( ) { public void checkStateChanged( CheckStateChangedEvent event ) { if ( event.getElement( ) instanceof ComputedColumnHandle ) { ComputedColumnHandle handle = (ComputedColumnHandle) event.getElement( ); if ( handle.getName( ).equals( selectedColumnName ) ) { selectedColumnName = null; } else { selectedColumnName = handle.getName( ); } updateSelection( ); updateButtons( ); } else { ( (CheckboxTableViewer) bindingTable ).setChecked( dummyChoice, false ); } } } ); } else { bindingTable = new TableViewer( table ); } bindingTable.setCellEditors( cellEditors ); bindingTable.setColumnProperties( columns ); bindingTable.setContentProvider( contentProvider ); bindingTable.setLabelProvider( labelProvider ); bindingTable.setCellModifier( cellModifier ); bindingTable.setInput( inputElement ); bindingTable.addSelectionChangedListener( new ISelectionChangedListener( ) { public void selectionChanged( SelectionChangedEvent event ) { // updateTableButtons( ); if ( !bindingTable.getSelection( ).isEmpty( ) ) { Object obj = ( (IStructuredSelection) bindingTable.getSelection( ) ).getFirstElement( ); if ( obj == dummyChoice && !existDefaultColumn( ) ) { bindingTable.refresh( ); bindingTable.getTable( ) .getItem( bindingTable.getTable( ) .getSelectionIndex( ) - 1 ) .setForeground( 1, Display.getDefault( ) .getSystemColor( SWT.COLOR_BLUE ) ); bindingTable.getTable( ) .setSelection( bindingTable.getTable( ) .getSelectionIndex( ) - 1 ); } else if ( obj instanceof ComputedColumnHandle ) { ComputedColumnHandle column = (ComputedColumnHandle) obj; BindingExpressionProvider provider = new BindingExpressionProvider( column.getElementHandle( ) ); provider.addFilter( new ComputedColumnExpressionFilter( bindingTable ) ); expressionCellEditor.setExpressionProvider( provider ); } } } } ); initTableCellColor( ); return parentComposite; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/37de1bbec6d7acdebec256cfb4b7fae9de7f599f/ColumnBindingDialog.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ColumnBindingDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 8888, 752, 6353, 5484, 12, 14728, 982, 262, 202, 95, 202, 202, 9400, 982, 9400, 273, 261, 9400, 13, 2240, 18, 2640, 6353, 5484, 12, 982, 11272, 202, 202, 26873, 1082, 380, 52...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6353, 5484, 12, 14728, 982, 262, 202, 95, 202, 202, 9400, 982, 9400, 273, 261, 9400, 13, 2240, 18, 2640, 6353, 5484, 12, 982, 11272, 202, 202, 26873, 1082, 380, 52...
public org.quickfix.field.LeavesQty getLeavesQty() throws FieldNotFound { org.quickfix.field.LeavesQty value = new org.quickfix.field.LeavesQty();
public quickfix.field.LeavesQty getLeavesQty() throws FieldNotFound { quickfix.field.LeavesQty value = new quickfix.field.LeavesQty();
public org.quickfix.field.LeavesQty getLeavesQty() throws FieldNotFound { org.quickfix.field.LeavesQty value = new org.quickfix.field.LeavesQty(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/ListStatus.java/buggy/src/java/src/quickfix/fix42/ListStatus.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 1682, 6606, 53, 4098, 336, 1682, 6606, 53, 4098, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 1682, 6606, 53, 4098, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 1682, 6606, 53, 4098, 336, 1682, 6606, 53, 4098, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 1682, 6606, 53, 4098, 46...
this.value = value;
public MutableFloat(float value) { super(); this.value = value; }
4554 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4554/a5a4f9067a0b22e629463b1ef059818ccda6f37e/MutableFloat.java/buggy/src/java/org/apache/commons/lang/mutable/MutableFloat.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10960, 4723, 12, 5659, 460, 13, 288, 3639, 2240, 5621, 6647, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10960, 4723, 12, 5659, 460, 13, 288, 3639, 2240, 5621, 6647, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
public void testFromWithParams() throws Exception {
public void testFromWithParams() throws Exception {
public void testFromWithParams() throws Exception { final PackageBuilder builder = new PackageBuilder(); builder.addPackageFromDrl( new InputStreamReader( getClass().getResourceAsStream( "test_FromWithParams.drl" ) ) ); final Package pkg = builder.getPackage(); final RuleBase ruleBase = getRuleBase(); ruleBase.addPackage( pkg ); WorkingMemory workingMemory = ruleBase.newWorkingMemory(); List list = new ArrayList(); workingMemory.setGlobal( "list", list ); workingMemory.setGlobal( "testObject", new FromTestClass() ); Person bob = new Person( "bob" ); workingMemory.assertObject( bob ); workingMemory.fireAllRules(); assertEquals( new Integer( 42 ), list.get( 0 ) ); assertEquals( "literal", list.get( 1 ) ); assertSame( bob, list.get( 2 ) ); assertSame( list, list.get( 3 ) ); }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/e99510606f3a44e575e219c913f7cc1d6169006f/IntegrationCases.java/clean/drools-compiler/src/test/java/org/drools/integrationtests/IntegrationCases.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1265, 19591, 1435, 1216, 1185, 288, 3639, 727, 7508, 1263, 2089, 273, 394, 7508, 1263, 5621, 3639, 2089, 18, 1289, 2261, 1265, 40, 1321, 12, 394, 15322, 12, 2900, 7675, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1265, 19591, 1435, 1216, 1185, 288, 3639, 727, 7508, 1263, 2089, 273, 394, 7508, 1263, 5621, 3639, 2089, 18, 1289, 2261, 1265, 40, 1321, 12, 394, 15322, 12, 2900, 7675, 5...
final TraversableCachingSource child =
final TraversableCachingSource source =
private TraversableCachingSource createSource(TraversableSource wrappedSource, String sourceURI) throws SourceException { final TraversableCachingSource child = new TraversableCachingSource(super.protocol, sourceURI, wrappedSource, super.cacheName, super.expires, super.parameters, super.async); child.cache = super.cache; child.resolver = super.resolver; ContainerUtil.enableLogging(child,getLogger()); try { ContainerUtil.service(child,super.manager); ContainerUtil.initialize(child); } catch (Exception e) { throw new SourceException("Unable to initialize source.", e); } return child; }
46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/f3bdb62a05bd9536a72d5f1be9329da9ab863d88/TraversableCachingSource.java/buggy/src/blocks/scratchpad/java/org/apache/cocoon/components/source/impl/TraversableCachingSource.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 17713, 17712, 1830, 752, 1830, 12, 15844, 429, 1830, 5805, 1830, 16, 514, 1084, 3098, 13, 565, 1216, 4998, 503, 288, 3639, 727, 17713, 17712, 1830, 1084, 273, 2398, 394, 17713, 17712,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17713, 17712, 1830, 752, 1830, 12, 15844, 429, 1830, 5805, 1830, 16, 514, 1084, 3098, 13, 565, 1216, 4998, 503, 288, 3639, 727, 17713, 17712, 1830, 1084, 273, 2398, 394, 17713, 17712,...
} else if (lhs == DBL_MRK) {
} else if (lhs == UniqueTag.DOUBLE_MARK) {
private static void do_cmp(CallFrame frame, int i, int op) { Object rhs = frame.stack[i + 1]; Object lhs = frame.stack[i]; boolean result; object_compare: { number_compare: { double rDbl, lDbl; if (rhs == DBL_MRK) { rDbl = frame.sDbl[i + 1]; lDbl = stack_double(frame, i); } else if (lhs == DBL_MRK) { rDbl = ScriptRuntime.toNumber(rhs); lDbl = frame.sDbl[i]; } else { break number_compare; } switch (op) { case Token.GE: result = (lDbl >= rDbl); break object_compare; case Token.LE: result = (lDbl <= rDbl); break object_compare; case Token.GT: result = (lDbl > rDbl); break object_compare; case Token.LT: result = (lDbl < rDbl); break object_compare; default: throw Kit.codeBug(); } } switch (op) { case Token.GE: result = ScriptRuntime.cmp_LE(rhs, lhs); break; case Token.LE: result = ScriptRuntime.cmp_LE(lhs, rhs); break; case Token.GT: result = ScriptRuntime.cmp_LT(rhs, lhs); break; case Token.LT: result = ScriptRuntime.cmp_LT(lhs, rhs); break; default: throw Kit.codeBug(); } } frame.stack[i] = ScriptRuntime.wrapBoolean(result); }
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/bef182034b96d54a2938fe141217e83b8644cf25/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 741, 67, 9625, 12, 1477, 3219, 2623, 16, 509, 277, 16, 509, 1061, 13, 565, 288, 3639, 1033, 7711, 273, 2623, 18, 3772, 63, 77, 397, 404, 15533, 3639, 1033, 8499, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 741, 67, 9625, 12, 1477, 3219, 2623, 16, 509, 277, 16, 509, 1061, 13, 565, 288, 3639, 1033, 7711, 273, 2623, 18, 3772, 63, 77, 397, 404, 15533, 3639, 1033, 8499, 273, ...
UI.printInfo("[API] Compiling: %s", code);
UI.printDetailed("[API] Compiling: %s", code);
private boolean parseShader(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("name"); String name = p.getNextToken(); UI.printInfo("[API] Reading shader: %s ...", name); p.checkNextToken("type"); if (p.peekNextToken("diffuse")) { if (p.peekNextToken("diff")) { api.parameter("diffuse", parseColor()); api.shader(name, new DiffuseShader()); } else if (p.peekNextToken("texture")) { api.parameter("texture", p.getNextToken()); api.shader(name, new TexturedDiffuseShader()); } else UI.printWarning("[API] Unrecognized option in diffuse shader block: %s", p.getNextToken()); } else if (p.peekNextToken("phong")) { String tex = null; if (p.peekNextToken("texture")) api.parameter("texture", tex = p.getNextToken()); else { p.checkNextToken("diff"); api.parameter("diffuse", parseColor()); } p.checkNextToken("spec"); api.parameter("specular", parseColor()); api.parameter("power", p.getNextFloat()); if (p.peekNextToken("samples")) api.parameter("samples", p.getNextInt()); if (tex != null) api.shader(name, new TexturedPhongShader()); else api.shader(name, new PhongShader()); } else if (p.peekNextToken("amb-occ") || p.peekNextToken("amb-occ2")) { String tex = null; if (p.peekNextToken("diff") || p.peekNextToken("bright")) api.parameter("bright", parseColor()); else if (p.peekNextToken("texture")) api.parameter("texture", tex = p.getNextToken()); if (p.peekNextToken("dark")) { api.parameter("dark", parseColor()); p.checkNextToken("samples"); api.parameter("samples", p.getNextInt()); p.checkNextToken("dist"); api.parameter("maxdist", p.getNextFloat()); } if (tex == null) api.shader(name, new AmbientOcclusionShader()); else api.shader(name, new TexturedAmbientOcclusionShader()); } else if (p.peekNextToken("mirror")) { p.checkNextToken("refl"); api.parameter("color", parseColor()); api.shader(name, new MirrorShader()); } else if (p.peekNextToken("glass")) { p.checkNextToken("eta"); api.parameter("eta", p.getNextFloat()); p.checkNextToken("color"); api.parameter("color", parseColor()); api.shader(name, new GlassShader()); } else if (p.peekNextToken("shiny")) { String tex = null; if (p.peekNextToken("texture")) api.parameter("texture", tex = p.getNextToken()); else { p.checkNextToken("diff"); api.parameter("diffuse", parseColor()); } p.checkNextToken("refl"); api.parameter("shiny", p.getNextFloat()); if (tex == null) api.shader(name, new ShinyDiffuseShader()); else api.shader(name, new TexturedShinyDiffuseShader()); } else if (p.peekNextToken("ward")) { String tex = null; if (p.peekNextToken("texture")) api.parameter("texture", tex = p.getNextToken()); else { p.checkNextToken("diff"); api.parameter("diffuse", parseColor()); } p.checkNextToken("spec"); api.parameter("specular", parseColor()); p.checkNextToken("rough"); api.parameter("roughnessX", p.getNextFloat()); api.parameter("roughnessY", p.getNextFloat()); if (p.peekNextToken("samples")) api.parameter("samples", p.getNextInt()); if (tex != null) api.shader(name, new TexturedWardShader()); else api.shader(name, new AnisotropicWardShader()); } else if (p.peekNextToken("view-caustics")) { api.shader(name, new ViewCausticsShader()); } else if (p.peekNextToken("view-irradiance")) { api.shader(name, new ViewIrradianceShader()); } else if (p.peekNextToken("view-global")) { api.shader(name, new ViewGlobalPhotonsShader()); } else if (p.peekNextToken("constant")) { // backwards compatibility -- peek only p.peekNextToken("color"); api.parameter("color", parseColor()); api.shader(name, new ConstantShader()); } else if (p.peekNextToken("janino")) { String code = p.getNextCodeBlock(); try { Shader shader = (Shader) ClassBodyEvaluator.createFastClassBodyEvaluator(new Scanner(null, new StringReader(code)), Shader.class, ClassLoader.getSystemClassLoader()); api.shader(name, shader); } catch (CompileException e) { UI.printInfo("[API] Compiling: %s", code); UI.printError("[API] %s", e.getMessage()); e.printStackTrace(); return false; } catch (ParseException e) { UI.printInfo("[API] Compiling: %s", code); UI.printError("[API] %s", e.getMessage()); e.printStackTrace(); return false; } catch (ScanException e) { UI.printInfo("[API] Compiling: %s", code); UI.printError("[API] %s", e.getMessage()); e.printStackTrace(); return false; } catch (IOException e) { UI.printInfo("[API] Compiling: %s", code); UI.printError("[API] %s", e.getMessage()); e.printStackTrace(); return false; } } else if (p.peekNextToken("id")) { api.shader(name, new IDShader()); } else if (p.peekNextToken("uber")) { p.checkNextToken("diff"); api.parameter("diffuse", parseColor()); p.checkNextToken("refl"); api.parameter("reflection", parseColor()); if (p.peekNextToken("texture")) { api.parameter("texture", p.getNextToken()); api.parameter("blend", p.getNextFloat()); } api.shader(name, new UberShader()); } else UI.printWarning("[API] Unrecognized shader type: %s", p.getNextToken()); p.checkNextToken("}"); return true; }
51147 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51147/40dc5fa422f28ac2fe58db99f67c29da1e3d4e11/SCParser.java/buggy/src/org/sunflow/core/parser/SCParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 1109, 19396, 12, 29636, 2426, 2557, 1536, 13, 1216, 27990, 16, 1860, 288, 3639, 293, 18, 1893, 9399, 2932, 95, 8863, 3639, 293, 18, 1893, 9399, 2932, 529, 8863, 3639, 514, 508...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 1109, 19396, 12, 29636, 2426, 2557, 1536, 13, 1216, 27990, 16, 1860, 288, 3639, 293, 18, 1893, 9399, 2932, 95, 8863, 3639, 293, 18, 1893, 9399, 2932, 529, 8863, 3639, 514, 508...
return new SQLException("This method is not yet implemented.");
return new PSQLException("postgresql.unimplemented");
public static SQLException notImplemented() { //return new PSQLException("postgresql.unimplemented"); return new SQLException("This method is not yet implemented."); }
2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/9a59e0c40ea4a58ed942b954422ad27ef33c174a/Driver.java/clean/postgresql/Driver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 6483, 486, 8644, 1435, 565, 288, 202, 759, 2463, 394, 453, 23116, 2932, 2767, 24330, 18, 318, 21099, 8863, 202, 2463, 394, 6483, 2932, 2503, 707, 353, 486, 4671, 8249, 1199, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 6483, 486, 8644, 1435, 565, 288, 202, 759, 2463, 394, 453, 23116, 2932, 2767, 24330, 18, 318, 21099, 8863, 202, 2463, 394, 6483, 2932, 2503, 707, 353, 486, 4671, 8249, 1199, 17...
FileUtils.copyFileToDirectory( bootstrapper.getArtifactFile( dep ), coreDirectory );
FileUtils.copyFileToDirectory( artifactFile, coreDirectory );
private void createInstallation( File dir, ModelReader mavenCoreModel ) throws IOException, CommandLineException, InterruptedException { FileUtils.deleteDirectory( dir ); dir.mkdirs(); File libDirectory = new File( dir, "lib" ); libDirectory.mkdir(); File binDirectory = new File( dir, "bin" ); File coreDirectory = new File( dir, "core" ); coreDirectory.mkdir(); File bootDirectory = new File( coreDirectory, "boot" ); bootDirectory.mkdir(); for ( Iterator i = mavenCoreModel.getDependencies().iterator(); i.hasNext(); ) { Dependency dep = (Dependency) i.next(); if ( dep.getArtifactId().equals( "classworlds" ) ) { FileUtils.copyFileToDirectory( bootstrapper.getArtifactFile( dep ), bootDirectory ); } else if ( dep.getArtifactId().equals( "plexus-container-default" ) || dep.getArtifactId().equals( "plexus-utils" ) ) { FileUtils.copyFileToDirectory( bootstrapper.getArtifactFile( dep ), coreDirectory ); } else { FileUtils.copyFileToDirectory( bootstrapper.getArtifactFile( dep ), libDirectory ); } } Dependency coreAsDep = new Dependency( mavenCoreModel.getGroupId(), mavenCoreModel.getArtifactId(), mavenCoreModel.getVersion(), mavenCoreModel.getPackaging(), Collections.EMPTY_LIST ); FileUtils.copyFileToDirectory( bootstrapper.getArtifactFile( coreAsDep ), libDirectory ); File srcBinDirectory = new File( mavenCoreModel.getProjectFile().getParentFile(), "src/bin" ); FileUtils.copyDirectory( srcBinDirectory, binDirectory, null, "**/.svn/**" ); fixScriptPermissions( binDirectory ); }
1315 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1315/e30e6ca949684a05fe5488ae1bbb63454ed914a7/BootstrapInstaller.java/buggy/bootstrap/bootstrap-installer/src/main/java/org/apache/maven/bootstrap/installer/BootstrapInstaller.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 752, 21790, 12, 1387, 1577, 16, 3164, 2514, 20499, 4670, 1488, 262, 3639, 1216, 1860, 16, 15893, 503, 16, 7558, 565, 288, 3639, 13779, 18, 3733, 2853, 12, 1577, 11272, 3639, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21790, 12, 1387, 1577, 16, 3164, 2514, 20499, 4670, 1488, 262, 3639, 1216, 1860, 16, 15893, 503, 16, 7558, 565, 288, 3639, 13779, 18, 3733, 2853, 12, 1577, 11272, 3639, 15...
for (int i = 0; i < unitTypesLength; i++) { ClusterUnitType unitType = new ClusterUnitType(bb, this);
for (int i = 0; i < unitTypesLength; i++) { ClusterUnitType unitType = new ClusterUnitType(bb, this);
private void loadMBB(MappedByteBuffer bb) throws IOException{ if (bb.getInt() != MAGIC) { throw new Error("Bad magic in db"); } if (!(bb.getInt() == VERSION)) { throw new Error("Wrong version of database file");} continuityWeight = bb.getInt(); optimalCoupling = bb.getInt(); extendSelections = bb.getInt(); joinMethod = bb.getInt(); joinWeightShift = bb.getInt(); int weightLength = bb.getInt(); joinWeights = new int[weightLength]; for (int i = 0; i < joinWeights.length; i++) { joinWeights[i] = bb.getInt(); } int unitsLength = bb.getInt(); units = new ClusterUnit[unitsLength]; int unitsBlockStart = bb.position(); int unitEntryLength = 24; // 6 int = 24 byte // Fast forward to unit types block first: bb.position(unitsBlockStart+unitsLength*unitEntryLength); int unitTypesLength = bb.getInt(); unitTypesMap = new HashMap(unitTypesLength); for (int i = 0; i < unitTypesLength; i++) { ClusterUnitType unitType = new ClusterUnitType(bb, this); unitTypesMap.put(unitType.getName(), unitType); int currentUnitTypePos = bb.position(); // Read in the units of this type: int firstUnitIdx = unitType.getStart(); int lastUnitIdx = firstUnitIdx + unitType.getCount(); bb.position(unitsBlockStart+firstUnitIdx*unitEntryLength); for (int unitIdx=firstUnitIdx; unitIdx<lastUnitIdx; unitIdx++) { units[unitIdx] = new ClusterUnit(bb, this, unitType.getName()); units[unitIdx].setInstanceNumber(unitIdx-firstUnitIdx); } // back to position in list of unit types: bb.position(currentUnitTypePos); } audioFrames = new BufferedFrameSet(bb); joinCostFeatureVectors = new BufferedFrameSet(bb); int numCarts = bb.getInt(); cartMap = new HashMap(); for (int i = 0; i < numCarts; i++) { String name = Utilities.getString(bb); CART cart = CARTImpl.loadBinary(bb); ((CARTImpl) cart).setFeatureProcessors(featureProcessors); cartMap.put(name, cart); if (defaultCart == null) { defaultCart = cart; } } }
18648 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/18648/c70ecd73f5018e3d7cc80fb899a4989c02d6c85c/ClusterUnitDatabase.java/buggy/java/de/dfki/lt/mary/unitselection/clunits/ClusterUnitDatabase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1262, 7969, 38, 12, 12868, 12242, 7129, 13, 1216, 1860, 95, 3639, 309, 261, 9897, 18, 588, 1702, 1435, 480, 490, 22247, 13, 225, 288, 377, 202, 202, 12849, 394, 1068, 2932, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1262, 7969, 38, 12, 12868, 12242, 7129, 13, 1216, 1860, 95, 3639, 309, 261, 9897, 18, 588, 1702, 1435, 480, 490, 22247, 13, 225, 288, 377, 202, 202, 12849, 394, 1068, 2932, 6...
HashSet<Edge> deletedEdgeSet = new HashSet<Edge>();
Set<Edge> deletedEdgeSet = new HashSet<Edge>();
public void execute() throws ClassNotFoundException { HashSet<Edge> deletedEdgeSet = new HashSet<Edge>(); List<MarkedEdge> markedEdgeList = new LinkedList<MarkedEdge>(); // Mark edges to delete, // mark edges to set properties of for (Iterator<Edge> i = cfg.edgeIterator(); i.hasNext();) { Edge edge = i.next(); if (!edge.isExceptionEdge()) continue; ExceptionSet exceptionSet = typeDataflow.getEdgeExceptionSet(edge); if (exceptionSet.isEmpty()) { // No exceptions are actually thrown on this edge, // so we can delete the edge. deletedEdgeSet.add(edge); } else { // Some exceptions appear to be thrown on the edge. // Mark to indicate if any of the exceptions are checked, // and if any are explicit (checked or explicitly declared // or thrown unchecked). boolean someChecked = exceptionSet.containsCheckedExceptions(); boolean someExplicit = exceptionSet.containsExplicitExceptions(); int flags = 0; if (someChecked) flags |= CHECKED_EXCEPTIONS_FLAG; if (someExplicit) flags |= EXPLICIT_EXCEPTIONS_FLAG; markedEdgeList.add(new MarkedEdge(edge, flags)); } } // Remove deleted edges for (Iterator<Edge> j = deletedEdgeSet.iterator(); j.hasNext();) { Edge edge = j.next(); cfg.removeEdge(edge); if (STATS) ++numEdgesPruned; } // Mark edges for (Iterator<MarkedEdge> j = markedEdgeList.iterator(); j.hasNext();) { j.next().apply(); } }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/610be98f387bc39159c79aa869594dcac09e4256/PruneInfeasibleExceptionEdges.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/PruneInfeasibleExceptionEdges.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1836, 1435, 1216, 10403, 288, 202, 202, 13482, 32, 6098, 34, 4282, 6098, 694, 273, 394, 6847, 32, 6098, 34, 5621, 202, 202, 682, 32, 21486, 6098, 34, 9350, 6098, 682, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1836, 1435, 1216, 10403, 288, 202, 202, 13482, 32, 6098, 34, 4282, 6098, 694, 273, 394, 6847, 32, 6098, 34, 5621, 202, 202, 682, 32, 21486, 6098, 34, 9350, 6098, 682, 273...
if ( gsmNumberB != null ) newSet.add( gsmNumberB );
if ( gsmNumberB != null ) { newSet.add( gsmNumberB ); }
public void addCorrespondence( String gsmNumberA, String gsmNumberB ) { if ( StringUtils.isBlank( gsmNumberA ) ) throw new IllegalArgumentException( "Must pass at least one GSM accession" ); // the following is to make sets that each contain just the samples that group together. boolean found = false; for ( Set<String> set : sets ) { if ( set.contains( gsmNumberA ) && gsmNumberB != null ) { set.add( gsmNumberB ); found = true; break; // gsmNumberB will be null if there is just one data set - that is, no correspondence. } else if ( gsmNumberB != null && set.contains( gsmNumberB ) ) { set.add( gsmNumberA ); found = true; break; } } if ( !found ) { Set<String> newSet = new LinkedHashSet<String>(); newSet.add( gsmNumberA ); if ( gsmNumberB != null ) newSet.add( gsmNumberB ); sets.add( newSet ); } }
4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/9a3d781de6f0679371df630218f4f6cd87d06917/GeoSampleCorrespondence.java/buggy/gemma-core/src/main/java/ubic/gemma/loader/expression/geo/GeoSampleCorrespondence.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 6217, 17863, 802, 12, 514, 314, 4808, 1854, 37, 16, 514, 314, 4808, 1854, 38, 262, 288, 3639, 309, 261, 5778, 18, 291, 7796, 12, 314, 4808, 1854, 37, 262, 262, 5411, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 6217, 17863, 802, 12, 514, 314, 4808, 1854, 37, 16, 514, 314, 4808, 1854, 38, 262, 288, 3639, 309, 261, 5778, 18, 291, 7796, 12, 314, 4808, 1854, 37, 262, 262, 5411, 6...
RollbackPackageDialog rpd = new RollbackPackageDialog(jacmanFrame, i18n.getString("RollbackDialogTitle"), false, jacmanProperties.getProperties());
RollbackPackageDialog rpd = new RollbackPackageDialog(jacmanFrame, i18n.getString("RollbackDialogTitle"), false, jacmanProperties);
public void actionPerformed(ActionEvent evt) { SwingUtilities.invokeLater(new Runnable() { public void run() { RollbackPackageDialog rpd = new RollbackPackageDialog(jacmanFrame, i18n.getString("RollbackDialogTitle"), false, jacmanProperties.getProperties()); } }); }
9763 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9763/cb7ba9ff684669555063e44d1ac9afb4f5610835/Jacman.java/buggy/jacman/src/andyr/jacman/Jacman.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 918, 26100, 12, 1803, 1133, 6324, 13, 288, 10792, 26145, 11864, 18, 14407, 20607, 12, 2704, 10254, 1435, 288, 13491, 1071, 918, 1086, 1435, 288, 18701, 17724, 2261, 6353, 8715, 72, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 918, 26100, 12, 1803, 1133, 6324, 13, 288, 10792, 26145, 11864, 18, 14407, 20607, 12, 2704, 10254, 1435, 288, 13491, 1071, 918, 1086, 1435, 288, 18701, 17724, 2261, 6353, 8715, 72, 2...
if (index == -1) return -1;
int matchRENodes(MatchState state, RENode ren, RENode stop, int index) { int num; char[] input = state.input; while ((ren != stop) && (ren != null)) { switch (ren.op) { case REOP_EMPTY: break; case REOP_ALT: { if (ren.next.op != REOP_ALT) { ren = (RENode)ren.kid; continue; } else { num = state.parenCount; int kidMatch = matchRENodes(state, (RENode)ren.kid, stop, index); if (kidMatch != -1) return kidMatch; for (int i = num; i < state.parenCount; i++) state.parens[i] = null; state.parenCount = num; } } break; case REOP_QUANT: { int lastKid = -1; for (num = 0; num < ren.min; num++) { int kidMatch = matchRENodes(state, (RENode)ren.kid, ren.next, index); if (kidMatch == -1) return -1; else { lastKid = index; index = kidMatch; } } if (num == ren.max) // Have matched the exact count required, // need to match the rest of the regexp. break; if ((ren.flags & RENode.MINIMAL) == 0) { int kidMatch = matchGreedyKid(state, ren, stop, num, index, lastKid); if (kidMatch == -1) index = matchRENodes(state, (RENode)ren.kid, ren.next, index); else index = kidMatch; } else { index = matchNonGreedyKid(state, ren, num, ren.max, index); } if (index == -1) return -1; } break; case REOP_PLUS: { int kidMatch = matchRENodes(state, (RENode)ren.kid, ren.next, index); if (kidMatch == -1) return -1; if ((ren.flags & RENode.MINIMAL) == 0) { kidMatch = matchGreedyKid(state, ren, stop, 1, kidMatch, index); if (kidMatch == -1) index = matchRENodes(state,(RENode)ren.kid, ren.next, index); else index = kidMatch; } else index = matchNonGreedyKid(state, ren, 1, 0, kidMatch); if (index == -1) return -1; } break; case REOP_STAR: if ((ren.flags & RENode.MINIMAL) == 0) { int kidMatch = matchGreedyKid(state, ren, stop, 0, index, -1); if (kidMatch != -1) index = kidMatch; } else { index = matchNonGreedyKid(state, ren, 0, 0, index); if (index == -1) return -1; } break; case REOP_OPT: { int saveNum = state.parenCount; if (((ren.flags & RENode.MINIMAL) != 0)) { int restMatch = matchRENodes(state, ren.next, stop, index); if (restMatch != -1) return restMatch; } int kidMatch = matchRENodes(state, (RENode)ren.kid, ren.next, index); if (kidMatch == -1) { state.parenCount = saveNum; break; } else { int restMatch = matchRENodes(state, ren.next, stop, kidMatch); if (restMatch == -1) { // need to undo the result of running the kid state.parenCount = saveNum; break; } else return restMatch; } } case REOP_LPARENNON: ren = (RENode)ren.kid; continue; case REOP_RPARENNON: break; case REOP_LPAREN: { num = ren.num; ren = (RENode)ren.kid; SubString parsub = state.parens[num]; if (parsub == null) { parsub = state.parens[num] = new SubString(); parsub.charArray = input; } parsub.index = index; parsub.length = 0; if (num >= state.parenCount) state.parenCount = num + 1; continue; } case REOP_RPAREN: { num = ren.num; SubString parsub = state.parens[num]; if (parsub == null) throw new RuntimeException("Paren problem"); parsub.length = index - parsub.index; break; } case REOP_ASSERT: { int kidMatch = matchRENodes(state, (RENode)ren.kid, ren.next, index); if (kidMatch == -1) return -1; break; } case REOP_ASSERT_NOT: { int kidMatch = matchRENodes(state, (RENode)ren.kid, ren.next, index); if (kidMatch != -1) return -1; break; } case REOP_BACKREF: { num = ren.num; if (num >= state.parens.length) { Context.reportError( ScriptRuntime.getMessage( "msg.bad.backref", null)); return -1; } SubString parsub = state.parens[num]; if (parsub == null) parsub = state.parens[num] = new SubString(); int length = parsub.length; for (int i = 0; i < length; i++, index++) { if (index >= input.length) { return state.noMoreInput(); } if (!matchChar(state.flags, input[index], parsub.charArray[parsub.index + i])) return -1; } } break; case REOP_CCLASS: if (index >= input.length) { return state.noMoreInput(); } if (ren.bitmap == null) { char[] source = (ren.s != null) ? ren.s : this.source.toCharArray(); ren.buildBitmap(state, source, ((state.flags & FOLD) != 0)); } char c = input[index]; int b = (c >>> 3); if (b >= ren.bmsize) { if (ren.kid2 == -1) // a ^ class index++; else return -1; } else { int bit = c & 7; bit = 1 << bit; if ((ren.bitmap[b] & bit) != 0) index++; else return -1; } break; case REOP_DOT: if (index >= input.length) { return state.noMoreInput(); } if (input[index] != '\n') index++; else return -1; break; case REOP_DOTSTARMIN: { int cp2; for (cp2 = index; cp2 < input.length; cp2++) { int cp3 = matchRENodes(state, ren.next, stop, cp2); if (cp3 != -1) return cp3; if (input[cp2] == '\n') return -1; } return state.noMoreInput(); } case REOP_DOTSTAR: { int cp2; for (cp2 = index; cp2 < input.length; cp2++) if (input[cp2] == '\n') break; while (cp2 >= index) { int cp3 = matchRENodes(state, ren.next, stop, cp2); if (cp3 != -1) { index = cp2; break; } cp2--; } break; } case REOP_WBDRY: if (index == 0 || !isWord(input[index-1])) { if (index >= input.length) return state.noMoreInput(); if (!isWord(input[index])) return -1; } else { if (index < input.length && isWord(input[index])) return -1; } break; case REOP_WNONBDRY: if (index == 0 || !isWord(input[index-1])) { if (index < input.length && isWord(input[index])) return -1; } else { if (index >= input.length) return state.noMoreInput(); if (!isWord(input[index])) return -1; } break; case REOP_EOLONLY: case REOP_EOL: { if (index == input.length) ; // leave index; else { Context cx = Context.getCurrentContext(); RegExpImpl reImpl = getImpl(cx); if ((reImpl.multiline) || ((state.flags & MULTILINE) != 0)) if (input[index] == '\n') ;// leave index else return -1; else return -1; } } break; case REOP_BOL: { Context cx = Context.getCurrentContext(); RegExpImpl reImpl = getImpl(cx); if (index != 0) { if (reImpl.multiline || ((state.flags & MULTILINE) != 0)) { if (index >= input.length) { return state.noMoreInput(); } if (input[index - 1] == '\n') { break; } } return -1; } // leave index } break; case REOP_DIGIT: if (index >= input.length) { return state.noMoreInput(); } if (!isDigit(input[index])) return -1; index++; break; case REOP_NONDIGIT: if (index >= input.length) { return state.noMoreInput(); } if (isDigit(input[index])) return -1; index++; break; case REOP_ALNUM: if (index >= input.length) { return state.noMoreInput(); } if (!isWord(input[index])) return -1; index++; break; case REOP_NONALNUM: if (index >= input.length) { return state.noMoreInput(); } if (isWord(input[index])) return -1; index++; break; case REOP_SPACE: if (index >= input.length) { return state.noMoreInput(); } if (!(TokenStream.isJSSpace(input[index]) || TokenStream.isJSLineTerminator(input[index]))) return -1; index++; break; case REOP_NONSPACE: if (index >= input.length) { return state.noMoreInput(); } if (TokenStream.isJSSpace(input[index]) || TokenStream.isJSLineTerminator(input[index])) return -1; index++; break; case REOP_FLAT1: if (index >= input.length) { return state.noMoreInput(); } if (!matchChar(state.flags, ren.chr, input[index])) return -1; index++; break; case REOP_FLAT: { char[] source = (ren.s != null) ? ren.s : this.source.toCharArray(); int start = ((Integer)ren.kid).intValue(); int length = ren.kid2 - start; for (int i = 0; i < length; i++, index++) { if (index >= input.length) { return state.noMoreInput(); } if (!matchChar(state.flags, input[index], source[start + i])) return -1; } } break; case REOP_JUMP: break; case REOP_END: break; default : throw new RuntimeException("Unsupported by node matcher"); } ren = ren.next; } return index; }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/b16d847568c4b6033672534e58b050c4923f9c31/NativeRegExp.java/clean/js/rhino/src/org/mozilla/javascript/regexp/NativeRegExp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 509, 845, 862, 3205, 12, 2060, 1119, 919, 16, 2438, 907, 1654, 16, 2438, 907, 2132, 16, 509, 770, 13, 288, 3639, 509, 818, 31, 3639, 1149, 8526, 810, 273, 919, 18, 2630, 31, 3639, 132...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 845, 862, 3205, 12, 2060, 1119, 919, 16, 2438, 907, 1654, 16, 2438, 907, 2132, 16, 509, 770, 13, 288, 3639, 509, 818, 31, 3639, 1149, 8526, 810, 273, 919, 18, 2630, 31, 3639, 132...
int lastLine = (scrollPosition + getHeight() - TOP - BOTTOM) / height - 3;
int lines = (getHeight() - TOP - BOTTOM) / height;
public void paintComponent(Graphics g) { g.setColor(new Color(96,96,96)); image.paintIcon(this,g,1,1); FontMetrics fm = g.getFontMetrics(); int height = fm.getHeight(); int firstLine = scrollPosition / height; int firstLineOffset = height - scrollPosition % height; int lastLine = (scrollPosition + getHeight() - TOP - BOTTOM) / height - 3; int y = TOP + firstLineOffset + fm.getHeight(); for(int i = firstLine; i <= lastLine; i++) { if(i >= 0 && i < (text.size() / 2)) { String line2 = " "; if(2 * i + 1 != text.size()) { line2 = (String)text.elementAt(2 * i + 1); if (!line2.equals(" ")) { int width2 = fm.stringWidth(line2); g.drawString(line2,(getWidth() / 2 + 10),y); } } if (line2.equals(" ")) { String line1 = (String)text.elementAt(2 * i); g.drawString(line1,(getWidth() - fm.stringWidth(line1))/2,y); } else { String line1 = (String)text.elementAt(2 * i); int width1 = fm.stringWidth(line1); g.drawString(line1,(getWidth() / 2 - width1 - 10),y); } } y += fm.getHeight(); } String[] args = { jEdit.getVersion() }; String version = jEdit.getProperty("about.version",args); g.drawString(version,(getWidth() - fm.stringWidth(version)) / 2, getHeight() - 10); }
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/d7b6063093dd5706168d5865aecd759f29a0f8ee/AboutDialog.java/clean/org/gjt/sp/jedit/gui/AboutDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 12574, 1841, 12, 17558, 314, 13, 202, 202, 95, 1082, 202, 75, 18, 542, 2957, 12, 2704, 5563, 12, 10525, 16, 10525, 16, 10525, 10019, 1082, 202, 2730, 18, 84, 1598, 5554,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 12574, 1841, 12, 17558, 314, 13, 202, 202, 95, 1082, 202, 75, 18, 542, 2957, 12, 2704, 5563, 12, 10525, 16, 10525, 16, 10525, 10019, 1082, 202, 2730, 18, 84, 1598, 5554,...
sb.append(":");
sb.append(':');
public String toString() { StringBuffer sb = new StringBuffer(200); sb.append("FetchException:"); sb.append(getShortMessage(mode)); sb.append(":"); sb.append(newURI); sb.append(":"); sb.append(expectedSize); sb.append(":"); sb.append(expectedMimeType); sb.append(":"); sb.append(finalizedSizeAndMimeType); sb.append(":"); sb.append(errorCodes); sb.append(":"); sb.append(extraMessage); return sb.toString(); }
50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/62fd59041864b4ed1f43adc676de6bfb5ea977f3/FetchException.java/buggy/src/freenet/client/FetchException.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1762, 1435, 288, 202, 202, 780, 1892, 2393, 273, 394, 6674, 12, 6976, 1769, 202, 202, 18366, 18, 6923, 2932, 5005, 503, 2773, 1769, 202, 202, 18366, 18, 6923, 12, 588, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1762, 1435, 288, 202, 202, 780, 1892, 2393, 273, 394, 6674, 12, 6976, 1769, 202, 202, 18366, 18, 6923, 2932, 5005, 503, 2773, 1769, 202, 202, 18366, 18, 6923, 12, 588, 48...
leftIndent = leftIndent + 5; Map groupNameToId = ExperimentDB.getOrganizationGroups(experimentId); Set groups = groupNameToId.keySet(); groupNames = (String[])groups.toArray(new String[groups.size()]); int nGroupNames = groupNames.length; for (int i = 0; i < nGroupNames; i++) { String groupName = (String)groupNames[i]; JCheckBox groupCB = new JCheckBox(groupName); boolean sel = ExperimentDB.isGroupSelected(trialId, groupName); groupCheckBoxes.add(groupCB); originalGroupSelected.add(new Boolean(sel)); groupCB.setSelected(sel); groupCB.setEnabled(false); add(groupCB, new GridBagConstraints(x++, y, 1, 1, 0.0, 0.0,
leftIndent = leftIndent + 5; for (int i = 0; i < nGroupNames; i++) { String groupName = (String)groupNames[i]; JCheckBox groupCB = new JCheckBox(groupName); boolean sel = ExperimentDB.isGroupSelected(trialId, groupName); groupCheckBoxes.add(groupCB); originalGroupSelected.add(new Boolean(sel)); groupCB.setSelected(sel); groupCB.setEnabled(false); add(groupCB, new GridBagConstraints(x++, y, 1, 1, 0.0, 0.0,
private void updateDisplay() { removeAll(); // remove previous components if (experiment == null || !DBUtils.dbMode || !ExperimentDB.isExperimentNameInDatabase(experiment.getExperimentName())) { setLayout(new BorderLayout()); add(new JLabel("Experiment is not in database or otherwise has no thread information available.", SwingConstants.CENTER), BorderLayout.CENTER); return; } String experimentId = experiment.getExperimentID(); String trialId = experiment.getTrialID(); setLayout(new GridBagLayout()); int x = 0; int y = 0; int leftIndent = 0; add(new JLabel("Threads:"), new GridBagConstraints(x, y++, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, leftIndent, 5, 0), 0, 0)); leftIndent = leftIndent + 5; for (int i = 0; i < ULThreads.length; i++) { JCheckBox cb = new JCheckBox(ULThreads[i]); boolean sel = ExperimentDB.isULThreadSelected(trialId, CMT.ULDBThreads[i]); ULThreadCheckBoxes.add(cb); cb.setSelected(sel); originalThreadSelected.add(new Boolean(sel)); cb.setEnabled(false); add(cb, new GridBagConstraints(x, y++, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, leftIndent, 5, 0), 0, 0)); } leftIndent = leftIndent - 5; add(new JLabel("Organization Groups:"), new GridBagConstraints(x, y++, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, leftIndent, 0, 0), 0, 0)); leftIndent = leftIndent + 5; Map groupNameToId = ExperimentDB.getOrganizationGroups(experimentId); Set groups = groupNameToId.keySet(); groupNames = (String[])groups.toArray(new String[groups.size()]); int nGroupNames = groupNames.length; for (int i = 0; i < nGroupNames; i++) { String groupName = (String)groupNames[i]; JCheckBox groupCB = new JCheckBox(groupName); boolean sel = ExperimentDB.isGroupSelected(trialId, groupName); groupCheckBoxes.add(groupCB); originalGroupSelected.add(new Boolean(sel)); groupCB.setSelected(sel); groupCB.setEnabled(false); add(groupCB, new GridBagConstraints(x++, y, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, leftIndent, 5, 0), 0, 0)); add(new JLabel("Number of Copies:"), new GridBagConstraints(x++, y, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 5, 5), 0, 0)); JTextField multiplierField = new JTextField(4); multiplierFields.add(multiplierField); int multiplier = ExperimentDB.getMultiplier(trialId, groupName); multiplierField.setText(String.valueOf(multiplier)); multiplierField.setEnabled(false); originalGroupMultiplier.add(new Integer(multiplier)); add(multiplierField, new GridBagConstraints(x++, y, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 5, 5), 0, 0)); add(new JLabel("Members:"), new GridBagConstraints(x++, y, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 5, 5), 0, 0)); Set members = ExperimentDB.getOrganizationsInGroup(experimentId, (String)groupNameToId.get(groupName)); JList membersList = new JList(members.toArray()); membersList.setVisibleRowCount(4); membersList.setEnabled(false); add(new JScrollPane(membersList), new GridBagConstraints(x++, y++, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 5, 5), 0, 0)); } }
9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/e74aa288b2164c410db9a6a71585a81d4665510b/ThreadBuilder.java/buggy/csmart/src/org/cougaar/tools/csmart/ui/experiment/ThreadBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1089, 4236, 1435, 288, 565, 12787, 5621, 368, 1206, 2416, 4085, 565, 309, 261, 18142, 422, 446, 747, 401, 2290, 1989, 18, 1966, 2309, 747, 3639, 401, 22338, 2290, 18, 291, 2233...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1089, 4236, 1435, 288, 565, 12787, 5621, 368, 1206, 2416, 4085, 565, 309, 261, 18142, 422, 446, 747, 401, 2290, 1989, 18, 1966, 2309, 747, 3639, 401, 22338, 2290, 18, 291, 2233...
statuses = new ArrayList();
statuses = new ArrayList<FileStatus>();
public void work() { if (statusesTableModel != null) { updateSavedState(); } commitButton.setEnabled(false); try { statuses = backEnd.getStatuses(getWaitCursor()); } catch (Exception ex) { statuses = new ArrayList(); failure = ex; } statuses = removeScmDotFiles(statuses); Collections.sort(statuses); statusesTableModel = new StatusesTableModel(statuses); }
10883 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10883/f411b42ba4b57cdb26ef8b9350f88c2390902e52/CheckInWindow.java/clean/trunk/src/e/scm/CheckInWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 1440, 1435, 288, 7734, 309, 261, 21655, 1388, 1488, 480, 446, 13, 288, 10792, 1089, 16776, 1119, 5621, 7734, 289, 7734, 3294, 3616, 18, 542, 1526, 12, 5743, 1769, 7734, 775, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 1440, 1435, 288, 7734, 309, 261, 21655, 1388, 1488, 480, 446, 13, 288, 10792, 1089, 16776, 1119, 5621, 7734, 289, 7734, 3294, 3616, 18, 542, 1526, 12, 5743, 1769, 7734, 775, 2...
Realm.setDefault(SWTObservables.getRealm(Display.getDefault())); ctx = new DataBindingContext();
super.setUp();
public void setUp() { Realm.setDefault(SWTObservables.getRealm(Display.getDefault())); ctx = new DataBindingContext(); dataObject = new TestDataObject(); dataObject.setStringVal("0"); dataObject.setBooleanPrimitiveVal(false); dataObject.setBooleanVal(new Boolean(false)); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/646de6c1228ca0820a97e225df84d75e3993e272/DefaultBindSupportFactoryBooleanPrimitiveTest.java/clean/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/internal/databinding/provisional/factories/DefaultBindSupportFactoryBooleanPrimitiveTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 24292, 1435, 288, 3639, 15987, 81, 18, 542, 1868, 12, 18746, 4296, 3147, 1538, 18, 588, 22545, 12, 4236, 18, 588, 1868, 1435, 10019, 3639, 1103, 273, 394, 1910, 5250, 1042, 562...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 24292, 1435, 288, 3639, 15987, 81, 18, 542, 1868, 12, 18746, 4296, 3147, 1538, 18, 588, 22545, 12, 4236, 18, 588, 1868, 1435, 10019, 3639, 1103, 273, 394, 1910, 5250, 1042, 562...
throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing DataLength field: "+e.getMessage(), identifier);
throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing DataLength field: "+e.getMessage(), identifier, global);
public ClientPutMessage(SimpleFieldSet fs) throws MessageInvalidException { String fnam = null; identifier = fs.get("Identifier"); if(identifier == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "No Identifier", null); try { String u = fs.get("URI"); if(u == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "No URI", identifier); FreenetURI uu = new FreenetURI(fs.get("URI")); String[] metas = uu.getAllMetaStrings(); if(metas != null && metas.length == 1) { fnam = metas[0]; uu = uu.setMetaString(null); } // if >1, will fail later uri = uu; } catch (MalformedURLException e) { throw new MessageInvalidException(ProtocolErrorMessage.URI_PARSE_ERROR, e.getMessage(), identifier); } global = Fields.stringToBool(fs.get("Global"), false); String verbosityString = fs.get("Verbosity"); if(verbosityString == null) verbosity = 0; else { try { verbosity = Integer.parseInt(verbosityString, 10); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing Verbosity field: "+e.getMessage(), identifier); } } contentType = fs.get("Metadata.ContentType"); String maxRetriesString = fs.get("MaxRetries"); if(maxRetriesString == null) // default to 0 maxRetries = 0; else { try { maxRetries = Integer.parseInt(maxRetriesString, 10); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing MaxSize field: "+e.getMessage(), identifier); } } getCHKOnly = Fields.stringToBool(fs.get("GetCHKOnly"), false); String priorityString = fs.get("PriorityClass"); if(priorityString == null) { // defaults to the one just below FProxy priorityClass = RequestStarter.IMMEDIATE_SPLITFILE_PRIORITY_CLASS; } else { try { priorityClass = Short.parseShort(priorityString, 10); if((priorityClass < RequestStarter.MAXIMUM_PRIORITY_CLASS) || (priorityClass > RequestStarter.MINIMUM_PRIORITY_CLASS)) throw new MessageInvalidException(ProtocolErrorMessage.INVALID_FIELD, "Valid priorities are from "+RequestStarter.MAXIMUM_PRIORITY_CLASS+" to "+RequestStarter.MINIMUM_PRIORITY_CLASS, identifier); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing PriorityClass field: "+e.getMessage(), identifier); } } String uploadFrom = fs.get("UploadFrom"); if((uploadFrom == null) || uploadFrom.equalsIgnoreCase("direct")) { uploadFromType = UPLOAD_FROM_DIRECT; String dataLengthString = fs.get("DataLength"); if(dataLengthString == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "Need DataLength on a ClientPut", identifier); try { dataLength = Long.parseLong(dataLengthString, 10); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing DataLength field: "+e.getMessage(), identifier); } this.origFilename = null; redirectTarget = null; } else if(uploadFrom.equalsIgnoreCase("disk")) { uploadFromType = UPLOAD_FROM_DISK; String filename = fs.get("Filename"); if(filename == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "Missing field Filename", identifier); File f = new File(filename); if(!(f.exists() && f.isFile() && f.canRead())) throw new MessageInvalidException(ProtocolErrorMessage.FILE_NOT_FOUND, null, identifier); dataLength = f.length(); FileBucket fileBucket = new FileBucket(f, true, false, false, false); this.bucket = fileBucket; this.origFilename = f; redirectTarget = null; if(fnam == null) fnam = origFilename.getName(); } else if(uploadFrom.equalsIgnoreCase("redirect")) { uploadFromType = UPLOAD_FROM_REDIRECT; String target = fs.get("TargetURI"); if(target == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "TargetURI missing but UploadFrom=redirect", identifier); try { redirectTarget = new FreenetURI(target); } catch (MalformedURLException e) { throw new MessageInvalidException(ProtocolErrorMessage.INVALID_FIELD, "Invalid TargetURI: "+e, identifier); } dataLength = 0; origFilename = null; bucket = null; } else throw new MessageInvalidException(ProtocolErrorMessage.INVALID_FIELD, "UploadFrom invalid or unrecognized: "+uploadFrom, identifier); dontCompress = Fields.stringToBool(fs.get("DontCompress"), false); String persistenceString = fs.get("Persistence"); if((persistenceString == null) || persistenceString.equalsIgnoreCase("connection")) { // Default: persists until connection loss. persistenceType = ClientRequest.PERSIST_CONNECTION; } else if(persistenceString.equalsIgnoreCase("reboot")) { // Reports to client by name; persists over connection loss. // Not saved to disk, so dies on reboot. persistenceType = ClientRequest.PERSIST_REBOOT; } else if(persistenceString.equalsIgnoreCase("forever")) { // Same as reboot but saved to disk, persists forever. persistenceType = ClientRequest.PERSIST_FOREVER; } else { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing Persistence field: "+persistenceString, identifier); } clientToken = fs.get("ClientToken"); String f = fs.get("TargetFilename"); if(f != null) fnam = f; if(fnam != null && fnam.indexOf('/') > -1) { throw new MessageInvalidException(ProtocolErrorMessage.INVALID_FIELD, "TargetFilename must not contain slashes", identifier); } if(fnam != null && fnam.length() == 0) { fnam = null; // Deliberate override to tell us not to create one. } if(uri.getKeyType().equals("CHK")) targetFilename = fnam; else targetFilename = null; earlyEncode = Fields.stringToBool(fs.get("EarlyEncode"), false); }
56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/bbb3c23ec38ea1c7abb48040a17f5fc7932248bc/ClientPutMessage.java/clean/src/freenet/node/fcp/ClientPutMessage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2445, 6426, 1079, 12, 5784, 974, 694, 2662, 13, 1216, 2350, 1941, 503, 288, 202, 202, 780, 2295, 301, 273, 446, 31, 202, 202, 5644, 273, 2662, 18, 588, 2932, 3004, 8863, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2445, 6426, 1079, 12, 5784, 974, 694, 2662, 13, 1216, 2350, 1941, 503, 288, 202, 202, 780, 2295, 301, 273, 446, 31, 202, 202, 5644, 273, 2662, 18, 588, 2932, 3004, 8863, 202, ...
} else
} else {
private Object[] getRoots(Object[] elements, boolean subWithParent) { if (elements.length == 0) return elements; HashSet roots = new HashSet(); for (int i = 0; i < elements.length; i++) { JobTreeElement element = (JobTreeElement) elements[i]; if (element.isJobInfo()) { GroupInfo group = ((JobInfo) element).getGroupInfo(); if (group == null) roots.add(element); else { if (subWithParent) roots.add(group); } } else roots.add(element); } return roots.toArray(); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/ProgressViewerContentProvider.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressViewerContentProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1033, 8526, 7656, 87, 12, 921, 8526, 2186, 16, 1250, 720, 1190, 3054, 13, 288, 202, 202, 430, 261, 6274, 18, 2469, 422, 374, 13, 1082, 202, 2463, 2186, 31, 202, 202, 13482, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 8526, 7656, 87, 12, 921, 8526, 2186, 16, 1250, 720, 1190, 3054, 13, 288, 202, 202, 430, 261, 6274, 18, 2469, 422, 374, 13, 1082, 202, 2463, 2186, 31, 202, 202, 13482, ...
public void eSet( EStructuralFeature eFeature, Object newValue )
public void eSet( int featureID, Object newValue )
public void eSet( EStructuralFeature eFeature, Object newValue ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case DataPackage.QUERY__DEFINITION : setDefinition( (String) newValue ); return; case DataPackage.QUERY__RULES : getRules( ).clear( ); getRules( ).addAll( (Collection) newValue ); return; } eDynamicSet( eFeature, newValue ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/036e8c78765730b146e5854b9d6c397a296fed86/QueryImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/data/impl/QueryImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 20199, 12, 512, 14372, 4595, 425, 4595, 16, 1033, 6129, 262, 202, 95, 202, 202, 9610, 261, 425, 21007, 14372, 4595, 734, 12, 425, 4595, 262, 262, 202, 202, 95, 1082, 202,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 20199, 12, 512, 14372, 4595, 425, 4595, 16, 1033, 6129, 262, 202, 95, 202, 202, 9610, 261, 425, 21007, 14372, 4595, 734, 12, 425, 4595, 262, 262, 202, 202, 95, 1082, 202,...
updateFor(event); if (event.getJob().isUser()) { boolean noDialog = shouldRunInBackground(); if (!noDialog) { final IJobChangeEvent finalEvent = event; WorkbenchJob showJob = new WorkbenchJob( ProgressMessages.ProgressManager_showInDialogName) { /* * (non-Javadoc) * * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus runInUIThread( IProgressMonitor monitor) { showInDialog(null, finalEvent.getJob()); return Status.OK_STATUS; } }; showJob.setSystem(true); showJob.schedule(); return; } } }
updateFor(event); if (event.getJob().isUser()) { boolean noDialog = shouldRunInBackground(); if (!noDialog) { final IJobChangeEvent finalEvent = event; WorkbenchJob showJob = new WorkbenchJob( ProgressMessages.ProgressManager_showInDialogName) { /* * (non-Javadoc) * * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus runInUIThread( IProgressMonitor monitor) { showInDialog(null, finalEvent.getJob()); return Status.OK_STATUS; } }; showJob.setSystem(true); showJob.schedule(); return; } } }
public void scheduled(IJobChangeEvent event) { updateFor(event); if (event.getJob().isUser()) { boolean noDialog = shouldRunInBackground(); if (!noDialog) { final IJobChangeEvent finalEvent = event; WorkbenchJob showJob = new WorkbenchJob( ProgressMessages.ProgressManager_showInDialogName) { /* * (non-Javadoc) * * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus runInUIThread( IProgressMonitor monitor) { showInDialog(null, finalEvent.getJob()); return Status.OK_STATUS; } }; showJob.setSystem(true); showJob.schedule(); return; } } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/0e7fbc26f7d1b7769a0721c71fd17572c8432fd5/ProgressManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 9755, 12, 45, 2278, 20930, 871, 13, 288, 7734, 1089, 1290, 12, 2575, 1769, 7734, 309, 261, 2575, 18, 588, 2278, 7675, 291, 1299, 10756, 288, 10792, 1250, 1158, 6353, 273, 1410...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 9755, 12, 45, 2278, 20930, 871, 13, 288, 7734, 1089, 1290, 12, 2575, 1769, 7734, 309, 261, 2575, 18, 588, 2278, 7675, 291, 1299, 10756, 288, 10792, 1250, 1158, 6353, 273, 1410...
private static boolean runQueryOnRS( DataEngineImpl dataEngine, IQueryDefinition queryDefn ) throws DataException { String queryResultID = queryDefn.getQueryResultsID( ); String rootQueryResultID = QueryResultIDUtil.get1PartID( queryResultID ); String parentQueryResultID = null; if ( rootQueryResultID != null ) parentQueryResultID = QueryResultIDUtil.get2PartID( queryResultID ); else rootQueryResultID = queryResultID; QueryResultInfo queryResultInfo = new QueryResultInfo( rootQueryResultID, parentQueryResultID, null, null, -1 ); RDLoad rdLoad = RDUtil.newLoad( dataEngine.getContext( ), queryResultInfo ); boolean runningOnRS = GroupDefnUtil.isEqualGroups( queryDefn.getGroups( ), rdLoad.loadGroupDefn( StreamManager.ROOT_STREAM, StreamManager.BASE_SCOPE ) ); if ( runningOnRS == false ) return false; runningOnRS = !hasTopBottomNInFilter( queryDefn.getFilters( ) ); if ( runningOnRS == false) return false; runningOnRS = isCompatibleRSMap( rdLoad.loadQueryDefn( StreamManager.ROOT_STREAM, StreamManager.BASE_SCOPE ) .getResultSetExpressions( ), queryDefn.getResultSetExpressions( ) ); if ( runningOnRS == false ) return false; runningOnRS = isCompatibleSubQuery( rdLoad.loadQueryDefn( StreamManager.ROOT_STREAM, StreamManager.BASE_SCOPE ), queryDefn ); if ( runningOnRS == false ) return false; IBaseQueryDefinition qd = rdLoad.loadQueryDefn( StreamManager.ROOT_STREAM, StreamManager.BASE_SCOPE ); List filters = qd.getFilters( ); if ( FilterDefnUtil.isConflictFilter( filters, queryDefn.getFilters( ) ) ) { runningOnRS = false; filters = rdLoad.loadOriginalQueryDefn( StreamManager.ROOT_STREAM, StreamManager.BASE_SCOPE ).getFilters( ); FilterDefnUtil.getRealFilterList( filters, queryDefn.getFilters( ) ); } if ( runningOnRS == false ) return false; if ( queryDefn.getFilters( ) != null && queryDefn.getFilters( ).size( ) > 0 ) runningOnRS = queryDefn.getResultSetExpressions( ).values( ) == null || !hasAggregationOnRowObjects( queryDefn.getResultSetExpressions( ) .values( ) .iterator( ) ); return runningOnRS; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/4746038389738bbad5cbc962e9a125864f464ad2/PreparedQueryUtil.java/buggy/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/PreparedQueryUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 1250, 1086, 1138, 1398, 13225, 12, 1910, 4410, 2828, 501, 4410, 16, 1082, 202, 45, 1138, 1852, 843, 3262, 82, 262, 1216, 1910, 503, 202, 95, 202, 202, 780, 26992, 734, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 1250, 1086, 1138, 1398, 13225, 12, 1910, 4410, 2828, 501, 4410, 16, 1082, 202, 45, 1138, 1852, 843, 3262, 82, 262, 1216, 1910, 503, 202, 95, 202, 202, 780, 26992, 734, 2...
n.setNumBitsPerCard (32); n.setTransmissionDelay (2000); n.setCardTypeByAddress (0,SerialNode.INPUT_CARD); n.setCardTypeByAddress (1,SerialNode.OUTPUT_CARD); n.setCardTypeByAddress (2,SerialNode.OUTPUT_CARD); n.setCardTypeByAddress (3,SerialNode.OUTPUT_CARD); n.setCardTypeByAddress (4,SerialNode.INPUT_CARD); n.setCardTypeByAddress (5,SerialNode.OUTPUT_CARD); Assert.assertEquals("check ctor type", SerialNode.USIC_SUSIC, n.getNodeType());
Assert.assertEquals("check ctor type", SerialNode.IO24, n.getNodeType());
public void testAccessors() { SerialNode n = new SerialNode(2,SerialNode.USIC_SUSIC); n.setNodeAddress (7); n.setNumBitsPerCard (32); n.setTransmissionDelay (2000); n.setCardTypeByAddress (0,SerialNode.INPUT_CARD); n.setCardTypeByAddress (1,SerialNode.OUTPUT_CARD); n.setCardTypeByAddress (2,SerialNode.OUTPUT_CARD); n.setCardTypeByAddress (3,SerialNode.OUTPUT_CARD); n.setCardTypeByAddress (4,SerialNode.INPUT_CARD); n.setCardTypeByAddress (5,SerialNode.OUTPUT_CARD); Assert.assertEquals("check ctor type", SerialNode.USIC_SUSIC, n.getNodeType()); Assert.assertEquals("check address", 7, n.getNodeAddress()); Assert.assertEquals("check bitsPerCard", 32, n.getNumBitsPerCard()); Assert.assertEquals("check delay", 2000, n.getTransmissionDelay()); Assert.assertEquals("check numOutputCards", 4, n.numOutputCards()); Assert.assertEquals("check numInputCards", 2, n.numInputCards()); Assert.assertEquals("check outputLocation", 3, n.getOutputCardIndex(5)); Assert.assertEquals("check inputLocation", 1, n.getInputCardIndex(4)); Assert.assertTrue("check output card type", n.isOutputCard(2)); Assert.assertTrue("check input card type", n.isInputCard(0)); }
2652 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2652/9110953c6936e23542c9b3b9de77388299774425/SerialNodeTest.java/clean/test/jmri/jmrix/oaktree/SerialNodeTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1862, 1383, 1435, 288, 3639, 7366, 907, 290, 273, 394, 7366, 907, 12, 22, 16, 6342, 907, 18, 57, 18118, 67, 6639, 18118, 1769, 3639, 290, 18, 542, 907, 1887, 261, 27, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1862, 1383, 1435, 288, 3639, 7366, 907, 290, 273, 394, 7366, 907, 12, 22, 16, 6342, 907, 18, 57, 18118, 67, 6639, 18118, 1769, 3639, 290, 18, 542, 907, 1887, 261, 27, ...
args.add("../runtime/bin" + File.pathSeparator + System.getProperty("aspectjrt.path"));
args.add(AjcTests.aspectjrtClasspath());
public void testJar1() throws IOException { List args = new ArrayList(); args.add("-outjar"); args.add("out/lib.jar"); args.add("-classpath"); args.add("../runtime/bin" + File.pathSeparator + System.getProperty("aspectjrt.path")); args.add("-d"); args.add("out"); args.add(AjdtAjcTests.TESTDATA_PATH + "/src1/binary/lib/ConcreteA.aj"); args.add(AjdtAjcTests.TESTDATA_PATH + "/src1/binary/lib/AbstractA.aj"); CommandTestCase.runCompiler(args, CommandTestCase.NO_ERRORS); args = new ArrayList(); args.add("-aspectpath"); args.add("out/lib.jar"); args.add("-classpath"); args.add("../runtime/bin" + File.pathSeparator + System.getProperty("aspectjrt.path")); args.add("-d"); args.add("out"); args.add(AjdtAjcTests.TESTDATA_PATH + "/src1/binary/client/Client.java"); args.add(AjdtAjcTests.TESTDATA_PATH + "/src1/binary/client/Client1.java"); CommandTestCase.runCompiler(args, CommandTestCase.NO_ERRORS); TestUtil.runMain("out" + File.pathSeparator + "out/lib.jar", "client.Client"); TestUtil.runMain("out" + File.pathSeparator + "out/lib.jar", "client.Client1"); args = new ArrayList(); args.add("-aspectpath"); args.add("out/lib.jar"); args.add("-classpath"); args.add("../runtime/bin" + File.pathSeparator + System.getProperty("aspectjrt.path")); args.add("-d"); args.add("out"); args.add(AjdtAjcTests.TESTDATA_PATH + "/src1/binary/client/MyAspect.aj"); args.add(AjdtAjcTests.TESTDATA_PATH + "/src1/binary/client/Client1.java"); CommandTestCase.runCompiler(args, CommandTestCase.NO_ERRORS); TestUtil.runMain("out" + File.pathSeparator + "out/lib.jar", "client.Client1"); args = new ArrayList(); args.add("-aspectpath"); args.add("out/lib.jar"); args.add("-classpath"); args.add("../runtime/bin" + File.pathSeparator + System.getProperty("aspectjrt.path")); args.add("-d"); args.add("out"); args.add(AjdtAjcTests.TESTDATA_PATH + "/src1/binary/client/MyAspect1.aj"); args.add(AjdtAjcTests.TESTDATA_PATH + "/src1/binary/client/Client1.java"); CommandTestCase.runCompiler(args, new int[] {24, 30}); args = new ArrayList(); args.add("-classpath"); args.add("../runtime/bin" + File.pathSeparator + "out/lib.jar" + File.pathSeparator + System.getProperty("aspectjrt.path")); args.add("-d"); args.add("out"); args.add(AjdtAjcTests.TESTDATA_PATH + "/src1/binary/client/Client1.java"); CommandTestCase.runCompiler(args, new int[] {15, 17, 22}); args = new ArrayList(); args.add("-classpath"); args.add("../runtime/bin" + File.pathSeparator + "out/lib.jar" + File.pathSeparator + System.getProperty("aspectjrt.path")); args.add("-Xlint:error"); args.add("-d"); args.add("out"); args.add(AjdtAjcTests.TESTDATA_PATH + "/src1/binary/client/MyAspect.aj"); args.add(AjdtAjcTests.TESTDATA_PATH + "/src1/binary/client/Client1.java"); CommandTestCase.runCompiler(args, CommandTestCase.NO_ERRORS); }
53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/28f118f040835aa0fb274e0fd28e3bbfe447c415/BinaryFormsTestCase.java/buggy/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/BinaryFormsTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 10813, 21, 1435, 1216, 1860, 288, 202, 202, 682, 833, 273, 394, 2407, 5621, 202, 202, 1968, 18, 1289, 2932, 17, 659, 11930, 8863, 202, 202, 1968, 18, 1289, 2932, 65...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10813, 21, 1435, 1216, 1860, 288, 202, 202, 682, 833, 273, 394, 2407, 5621, 202, 202, 1968, 18, 1289, 2932, 17, 659, 11930, 8863, 202, 202, 1968, 18, 1289, 2932, 65...
layout.verticalSpacing = 9;
layout.verticalSpacing = 12;
public void createControl(Composite parent) { Composite container = new Composite(parent, SWT.NULL); GridLayout layout = new GridLayout(); layout.numColumns = 2; layout.verticalSpacing = 9; layout.horizontalSpacing = 9; container.setLayout(layout); ModifyListener listener = new ModifyListener() { public void modifyText(ModifyEvent e) { verifyComplete(); } }; if (isPatch()) { Label label = new Label(container, SWT.NULL); label.setText(PDEPlugin.getResourceString(PATCH_ID)); patchIdText = new Text(container, SWT.BORDER); GridData gd = new GridData(GridData.FILL_HORIZONTAL); patchIdText.setLayoutData(gd); if (initialId != null) patchIdText.setText(initialId); patchIdText.addModifyListener(listener); label = new Label(container, SWT.NULL); label.setText(PDEPlugin.getResourceString(PATCH_NAME)); patchNameText = new Text(container, SWT.BORDER); gd = new GridData(GridData.FILL_HORIZONTAL); patchNameText.setLayoutData(gd); if (initialName != null) patchNameText.setText(initialName); patchNameText.addModifyListener(listener); label = new Label(container, SWT.NULL); label.setText(PDEPlugin.getResourceString(PATCH_PROVIDER)); patchProviderText = new Text(container, SWT.BORDER); gd = new GridData(GridData.FILL_HORIZONTAL); patchProviderText.setLayoutData(gd); patchProviderText.addModifyListener(listener); Group patchGroup = new Group(container, SWT.NULL); layout = new GridLayout(2, false); layout.marginHeight = layout.marginWidth = 10; patchGroup.setLayout(layout); gd = new GridData(GridData.FILL_HORIZONTAL); gd.horizontalSpan = 2; patchGroup.setLayoutData(gd); patchGroup.setText(PDEPlugin.getResourceString("BaseFeatureSpecPage.patchGroup.title")); //$NON-NLS-1$ addFeatureProperties(patchGroup, listener); } else { addFeatureProperties(container, listener); } setControl(container); Dialog.applyDialogFont(container); WorkbenchHelp.setHelp(container, IHelpContextIds.NEW_FEATURE_DATA); }
14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/9e2be0720da771829ea1c3ada35811a3cf66494d/BaseFeatureSpecPage.java/clean/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/wizards/feature/BaseFeatureSpecPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 3367, 12, 9400, 982, 13, 288, 202, 202, 9400, 1478, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 8560, 1769, 202, 202, 6313, 3744, 3511, 273, 394, 7145, 3744, 5621,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 3367, 12, 9400, 982, 13, 288, 202, 202, 9400, 1478, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 8560, 1769, 202, 202, 6313, 3744, 3511, 273, 394, 7145, 3744, 5621,...
IActivityManager activityManager = ((Workbench) PlatformUI.getWorkbench()).getActivityManager();
IActivityManager activityManager = PlatformUI.getWorkbench().getActivityManager();
private void saveEnabledStates() { IPreferenceStore store = WorkbenchPlugin.getDefault().getPreferenceStore(); // store.setValue(PREFIX + FILTERING_ENABLED, isFiltering()); IActivityManager activityManager = ((Workbench) PlatformUI.getWorkbench()).getActivityManager(); Iterator values = activityManager.getDefinedActivityIds().iterator(); while (values.hasNext()) { IActivity activity = activityManager.getActivity((String) values.next()); store.setValue(createPreferenceKey(activity), activity.isEnabled()); } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/d50382bc1e513f67f8664aa2574d1a998661a971/WorkbenchActivityHelper.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchActivityHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1923, 1526, 7629, 1435, 288, 3639, 467, 9624, 2257, 1707, 273, 4147, 22144, 3773, 18, 588, 1868, 7675, 588, 9624, 2257, 5621, 3639, 368, 3639, 1707, 18, 542, 620, 12, 6307, 397...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1923, 1526, 7629, 1435, 288, 3639, 467, 9624, 2257, 1707, 273, 4147, 22144, 3773, 18, 588, 1868, 7675, 588, 9624, 2257, 5621, 3639, 368, 3639, 1707, 18, 542, 620, 12, 6307, 397...
if (toBeRemoved != null) { for (int i = 0; i < toBeRemoved.length; i++) { remove(toBeRemoved[i]); } }
if (toBeRemoved != null) { for (int i = 0; i < toBeRemoved.length; i++) { remove(toBeRemoved[i]); } }
private void checkTasks(JobInfo info) { if (keep(info)) { TaskInfo tinfo = info.getTaskInfo(); if (tinfo != null) { JobTreeElement[] toBeRemoved = null; boolean fire = false; JobTreeElement element = (JobTreeElement) tinfo.getParent(); synchronized (keptjobinfos) { if (element == info && !keptjobinfos.contains(tinfo)) { toBeRemoved = findJobsToRemove(element); keptjobinfos.add(tinfo); finishedTime.put(tinfo, new Long(System .currentTimeMillis())); } } if (toBeRemoved != null) { for (int i = 0; i < toBeRemoved.length; i++) { remove(toBeRemoved[i]); } } if (fire) { Object l[] = getListeners(); for (int i = 0; i < l.length; i++) { KeptJobsListener jv = (KeptJobsListener) l[i]; jv.finished(info); } } } } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/61a3852dd97cae660315c88e82302cd4c0301d5d/FinishedJobs.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/FinishedJobs.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 866, 6685, 12, 2278, 966, 1123, 13, 288, 3639, 309, 261, 10102, 12, 1376, 3719, 288, 5411, 3837, 966, 268, 1376, 273, 1123, 18, 588, 2174, 966, 5621, 5411, 309, 261, 88, 1376...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 866, 6685, 12, 2278, 966, 1123, 13, 288, 3639, 309, 261, 10102, 12, 1376, 3719, 288, 5411, 3837, 966, 268, 1376, 273, 1123, 18, 588, 2174, 966, 5621, 5411, 309, 261, 88, 1376...
infoButton = new Button(parent, SWT.CHECK); infoButton.setFont(parent.getFont()); infoButton .setText(Messages.getString("filtersDialog.severityInfo")); infoButton.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); infoButton.addSelectionListener(selectionListener); }
infoButton = new Button(parent, SWT.CHECK); infoButton.setFont(parent.getFont()); infoButton .setText(Messages.getString("filtersDialog.severityInfo")); infoButton.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); infoButton.addSelectionListener(selectionListener); }
public SeverityGroup(Composite parent) { SelectionListener listener = new SelectionAdapter() { /* (non-Javadoc) * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ public void widgetSelected(SelectionEvent e) { updateEnablement(); DialogProblemFilter.this.markDirty(); } }; enablementButton = new Button(parent, SWT.CHECK); GridData data = new GridData(GridData.FILL_HORIZONTAL); data.horizontalSpan = 2; enablementButton.setLayoutData(data); enablementButton.setFont(parent.getFont()); enablementButton.setText(Messages .getString("filtersDialog.severityLabel")); //$NON-NLS-1$ enablementButton.addSelectionListener(listener); errorButton = new Button(parent, SWT.CHECK); errorButton.setFont(parent.getFont()); errorButton.setText(Messages.getString("filtersDialog.severityError")); //$NON-NLS-1$ errorButton.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); errorButton.addSelectionListener(selectionListener); warningButton = new Button(parent, SWT.CHECK); warningButton.setFont(parent.getFont()); warningButton.setText(Messages.getString("filtersDialog.severityWarning")); //$NON-NLS-1$ warningButton.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); warningButton.addSelectionListener(selectionListener); infoButton = new Button(parent, SWT.CHECK); infoButton.setFont(parent.getFont()); infoButton .setText(Messages.getString("filtersDialog.severityInfo")); //$NON-NLS-1$ infoButton.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); infoButton.addSelectionListener(selectionListener); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/1ceb585b9b16047c6c580984b0c9962c41a22ba6/DialogProblemFilter.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogProblemFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 23760, 1114, 12, 9400, 982, 13, 288, 5411, 12977, 2223, 2991, 273, 394, 12977, 4216, 1435, 288, 7734, 1748, 261, 5836, 17, 24060, 13, 1171, 380, 632, 5946, 2358, 18, 20416, 18, 5328...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 23760, 1114, 12, 9400, 982, 13, 288, 5411, 12977, 2223, 2991, 273, 394, 12977, 4216, 1435, 288, 7734, 1748, 261, 5836, 17, 24060, 13, 1171, 380, 632, 5946, 2358, 18, 20416, 18, 5328...
assertTextComponentBinding(textArea, "stringProperty", testBean.getStringProperty(), "new text", true); }
assertTextComponentBinding(textArea, "stringProperty", testBean.getStringProperty(), "new text", true); }
public void testBindTextComponentWithTextArea() { JTextArea textArea = new JTextArea(); formModel.bind(textArea, "stringProperty"); assertTextComponentBinding(textArea, "stringProperty", testBean.getStringProperty(), "new text", true); }
55916 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55916/1ca92818155f3e0a4aed29e15c396b3c749e2b10/SwingFormModelTests.java/clean/test/org/springframework/richclient/forms/SwingFormModelTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 3357, 1528, 1841, 1190, 1528, 5484, 1435, 288, 3639, 804, 1528, 5484, 977, 5484, 273, 394, 804, 1528, 5484, 5621, 3639, 646, 1488, 18, 4376, 12, 955, 5484, 16, 315, 1080,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 3357, 1528, 1841, 1190, 1528, 5484, 1435, 288, 3639, 804, 1528, 5484, 977, 5484, 273, 394, 804, 1528, 5484, 5621, 3639, 646, 1488, 18, 4376, 12, 955, 5484, 16, 315, 1080,...
e.printStackTrace();
re.initCause(e);
void setToNull(Object obj, Method setter){ RuntimeException re = new RuntimeException("Error trying to set to null"); try { setter.invoke(obj,new Object[]{null}); } catch (IllegalArgumentException e) { // TODO Auto-generated catch block e.printStackTrace(); throw re; } catch (IllegalAccessException e) { // TODO Auto-generated catch block e.printStackTrace(); throw re; } catch (InvocationTargetException e) { // TODO Auto-generated catch block e.printStackTrace(); throw re; } }
55636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55636/2bc67970abd041b6cb8e0252d02a6e27f304bec4/HierarchyBrowsingImpl.java/buggy/components/server/src/org/openmicroscopy/omero/logic/HierarchyBrowsingImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 19892, 2041, 12, 921, 1081, 16, 2985, 7794, 15329, 3639, 3235, 283, 273, 394, 3235, 2932, 668, 8374, 358, 444, 358, 446, 8863, 540, 775, 288, 5411, 7794, 18, 14407, 12, 2603, 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, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 19892, 2041, 12, 921, 1081, 16, 2985, 7794, 15329, 3639, 3235, 283, 273, 394, 3235, 2932, 668, 8374, 358, 444, 358, 446, 8863, 540, 775, 288, 5411, 7794, 18, 14407, 12, 2603, 16, 2...
}
}
public Compiler(String filename, String basedir, String kind, String output) { // Default initialisation this.filename = filename; this.basedir = basedir; this.kind = kind; this.output = output; // Creates a temporary temp file for keeping empty directories try { keepDirFile = File.createTempFile("izpack-keepme", ".tmp"); keepDirFile.deleteOnExit(); } catch (Exception err) { err.printStackTrace(); } }
58440 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58440/146e237258c294c2c8aab00a2a07e9337f87c3e7/Compiler.java/clean/izpack-src/trunk/src/lib/com/izforge/izpack/compiler/Compiler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 12972, 12, 780, 1544, 16, 514, 15573, 16, 514, 3846, 16, 514, 876, 13, 225, 288, 565, 368, 2989, 2172, 10742, 565, 333, 18, 3459, 273, 1544, 31, 565, 333, 18, 31722, 273, 15573, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12972, 12, 780, 1544, 16, 514, 15573, 16, 514, 3846, 16, 514, 876, 13, 225, 288, 565, 368, 2989, 2172, 10742, 565, 333, 18, 3459, 273, 1544, 31, 565, 333, 18, 31722, 273, 15573, ...
throw new MessageInvalidException(ProtocolErrorMessage.INVALID_FIELD, "Unsupported or unknown UploadFrom: "+type, identifier);
throw new MessageInvalidException(ProtocolErrorMessage.INVALID_FIELD, "Unsupported or unknown UploadFrom: "+type, identifier, global);
public static DirPutFile create(SimpleFieldSet subset, String identifier, BucketFactory bf) throws MessageInvalidException { String type = subset.get("UploadFrom"); if((type == null) || type.equalsIgnoreCase("direct")) { return new DirectDirPutFile(subset, identifier, bf); } else if(type.equalsIgnoreCase("disk")) { return new DiskDirPutFile(subset, identifier); } else if(type.equalsIgnoreCase("redirect")) { return new RedirectDirPutFile(subset, identifier); } else { throw new MessageInvalidException(ProtocolErrorMessage.INVALID_FIELD, "Unsupported or unknown UploadFrom: "+type, identifier); } }
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/bbb3c23ec38ea1c7abb48040a17f5fc7932248bc/DirPutFile.java/clean/src/freenet/node/fcp/DirPutFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 8446, 6426, 812, 752, 12, 5784, 974, 694, 7931, 16, 514, 2756, 16, 7408, 1733, 16222, 13, 1216, 2350, 1941, 503, 288, 202, 202, 780, 618, 273, 7931, 18, 588, 2932, 4777, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8446, 6426, 812, 752, 12, 5784, 974, 694, 7931, 16, 514, 2756, 16, 7408, 1733, 16222, 13, 1216, 2350, 1941, 503, 288, 202, 202, 780, 618, 273, 7931, 18, 588, 2932, 4777, ...
return (getWSDLFileName() == null);
return (getWsdLUrl() == null);
public boolean needWSDLGeneration() { return (getWSDLFileName() == null); }
9667 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9667/57b943f32c0b7336fd96040f3ff511250e6d55c3/RuntimeEndpointInfo.java/buggy/jaxws-ri/rt/src/com/sun/xml/ws/server/RuntimeEndpointInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1608, 2651, 8914, 13842, 1435, 288, 3639, 327, 261, 588, 59, 6427, 48, 1489, 1435, 422, 446, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1608, 2651, 8914, 13842, 1435, 288, 3639, 327, 261, 588, 59, 6427, 48, 1489, 1435, 422, 446, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
history.replaceOperation(this, (IUndoableOperation[])children.toArray(new IUndoableOperation[children.size()]));
history.replaceOperation(this, (IUndoableOperation[]) children .toArray(new IUndoableOperation[children.size()]));
public void remove(IUndoableOperation operation) { if (operation == triggeringOperation) { triggeringOperation = null; history.replaceOperation(this, (IUndoableOperation[])children.toArray(new IUndoableOperation[children.size()])); } else { children.remove(operation); operation.dispose(); recomputeContexts(); } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3bad50e6f68ff26b260565b7df8938cfe4826b83/TriggeredOperations.java/clean/bundles/org.eclipse.core.commands/src/org/eclipse/core/commands/operations/TriggeredOperations.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1206, 12, 45, 31224, 429, 2988, 1674, 13, 288, 202, 202, 430, 261, 7624, 422, 27411, 2988, 13, 288, 1082, 202, 10668, 310, 2988, 273, 446, 31, 1082, 202, 8189, 18, 2079, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1206, 12, 45, 31224, 429, 2988, 1674, 13, 288, 202, 202, 430, 261, 7624, 422, 27411, 2988, 13, 288, 1082, 202, 10668, 310, 2988, 273, 446, 31, 1082, 202, 8189, 18, 2079, ...
public void testEscape(String sql, String expected) throws Exception { String tmp = EscapeProcessor.nativeSQL(sql);
public void testEscape(String sql, String expected) throws Exception { String tmp = con.nativeSQL(sql);
public void testEscape(String sql, String expected) throws Exception { String tmp = EscapeProcessor.nativeSQL(sql); assertEquals(tmp, expected); }
5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/662fbbf0e5f04956f22a56e58dae82d6c816a2c6/TimestampTest.java/clean/src/test/net/sourceforge/jtds/test/TimestampTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 8448, 12, 780, 1847, 16, 514, 2665, 13, 1216, 1185, 565, 288, 3639, 514, 1853, 273, 18025, 5164, 18, 13635, 3997, 12, 4669, 1769, 3639, 1815, 8867, 12, 5645, 16, 2665, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 8448, 12, 780, 1847, 16, 514, 2665, 13, 1216, 1185, 565, 288, 3639, 514, 1853, 273, 18025, 5164, 18, 13635, 3997, 12, 4669, 1769, 3639, 1815, 8867, 12, 5645, 16, 2665, ...
AST __t1899 = _t;
AST __t1905 = _t;
public final void dynamiccurrentvaluefunc(AST _t) throws RecognitionException { AST dynamiccurrentvaluefunc_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1899 = _t; AST tmp316_AST_in = (AST)_t; match(_t,DYNAMICCURRENTVALUE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1899; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 5976, 2972, 1132, 644, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 5976, 2972, 1132, 644, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 69...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 5976, 2972, 1132, 644, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 5976, 2972, 1132, 644, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 69...
Role userRole = manager.createRole( "Personal Role - " + principal ); userRole.addPermission( editUser ); userRole = manager.saveRole( userRole );
Permission editUser = manager.createPermission( "Edit Myself - " + principal, "edit-user", principal ); editUser = manager.savePermission( editUser );
public void addUser( String principal ) throws RbacStoreException { try { // make the resource Resource usernameResource = manager.createResource( principal ); manager.saveResource( usernameResource ); Permission editUser = manager.createPermission( "Edit Myself" ); editUser.setOperation( manager.getOperation( "edit-user" ) ); editUser.setResource( manager.getResource( principal ) ); editUser = manager.savePermission( editUser ); // todo this one role a user will go away when we have expressions in the resources Role userRole = manager.createRole( "Personal Role - " + principal ); userRole.addPermission( editUser ); userRole = manager.saveRole( userRole ); UserAssignment assignment = manager.createUserAssignment( principal ); assignment.addRole( userRole ); manager.saveUserAssignment( assignment ); } catch ( RbacObjectNotFoundException ne ) { throw new RbacStoreException( "rbac object not found in repo role creation", ne ); } }
28441 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28441/e5610b93576fad6b90e73275ff2b0a606540cc1b/DefaultRoleManager.java/clean/archiva-webapp/src/main/java/org/apache/maven/archiva/web/util/DefaultRoleManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 1299, 12, 514, 8897, 262, 3639, 1216, 31800, 1077, 21151, 565, 288, 3639, 775, 3639, 288, 5411, 368, 1221, 326, 1058, 5411, 2591, 2718, 1420, 273, 3301, 18, 2640, 1420, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 1299, 12, 514, 8897, 262, 3639, 1216, 31800, 1077, 21151, 565, 288, 3639, 775, 3639, 288, 5411, 368, 1221, 326, 1058, 5411, 2591, 2718, 1420, 273, 3301, 18, 2640, 1420, 12...
if (inputState.guessing==0) { astFactory.addASTChild(currentAST, returnAST); }
astFactory.addASTChild(currentAST, returnAST);
public final void typeParameterBounds() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST typeParameterBounds_AST = null; match(LITERAL_extends); nls(); classOrInterfaceType(false); if (inputState.guessing==0) { astFactory.addASTChild(currentAST, returnAST); } { _loop102: do { if ((LA(1)==BAND)) { match(BAND); nls(); classOrInterfaceType(false); if (inputState.guessing==0) { astFactory.addASTChild(currentAST, returnAST); } } else { break _loop102; } } while (true); } if ( inputState.guessing==0 ) { typeParameterBounds_AST = (AST)currentAST.root; typeParameterBounds_AST = (AST)astFactory.make( (new ASTArray(2)).add(astFactory.create(TYPE_UPPER_BOUNDS,"TYPE_UPPER_BOUNDS")).add(typeParameterBounds_AST)); currentAST.root = typeParameterBounds_AST; currentAST.child = typeParameterBounds_AST!=null &&typeParameterBounds_AST.getFirstChild()!=null ? typeParameterBounds_AST.getFirstChild() : typeParameterBounds_AST; currentAST.advanceChildToEnd(); } if ( inputState.guessing==0 ) { typeParameterBounds_AST = (AST)currentAST.root; } returnAST = typeParameterBounds_AST; }
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/5c53aea8416ae7d318cf0157b4690ba71badb0f9/GroovyRecognizer.java/clean/src/main/org/codehaus/groovy/antlr/parser/GroovyRecognizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 618, 1662, 5694, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394, 9183, 4154, 5621, 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, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 618, 1662, 5694, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394, 9183, 4154, 5621, 202, 2...
if (runWidth + width > max) { runWidth = tabAreaInsets.left + insets.left + getTabRunIndent(tabPlacement, ++runs); rects[i] = new Rectangle(runWidth, insets.top + tabAreaInsets.top, width, maxHeight); runWidth += width; if (runs > tabRuns.length - 1) expandTabRunsArray(); tabRuns[runs] = i; } else { rects[i] = new Rectangle(runWidth, insets.top + tabAreaInsets.top, width, maxHeight); runWidth += width; } } runs++; tabAreaRect.width = tabPane.getWidth() - insets.left - insets.right; tabAreaRect.height = runs * maxTabHeight - (runs - 1) * tabRunOverlay + tabAreaInsets.top + tabAreaInsets.bottom; contentRect.width = tabAreaRect.width; contentRect.height = tabPane.getHeight() - insets.top - insets.bottom - tabAreaRect.height; contentRect.x = insets.left; tabAreaRect.x = insets.left; if (tabPlacement == SwingConstants.BOTTOM) { contentRect.y = insets.top; tabAreaRect.y = contentRect.y + contentRect.height; } else { tabAreaRect.y = insets.top; contentRect.y = tabAreaRect.y + tabAreaRect.height; }
if (runWidth + width > max) { runWidth = tabAreaInsets.left + insets.left + getTabRunIndent(tabPlacement, ++runs); rects[i] = new Rectangle(runWidth, insets.top + tabAreaInsets.top, width, maxHeight); runWidth += width; if (runs > tabRuns.length - 1) expandTabRunsArray(); tabRuns[runs] = i; } else { rects[i] = new Rectangle(runWidth, insets.top + tabAreaInsets.top, width, maxHeight); runWidth += width; } } runs++; tabAreaRect.width = tabPane.getWidth() - insets.left - insets.right; tabAreaRect.height = runs * maxTabHeight - (runs - 1) * tabRunOverlay + tabAreaInsets.top + tabAreaInsets.bottom; contentRect.width = tabAreaRect.width; contentRect.height = tabPane.getHeight() - insets.top - insets.bottom - tabAreaRect.height; contentRect.x = insets.left; tabAreaRect.x = insets.left; if (tabPlacement == SwingConstants.BOTTOM) { contentRect.y = insets.top; tabAreaRect.y = contentRect.y + contentRect.height; } else { tabAreaRect.y = insets.top; contentRect.y = tabAreaRect.y + tabAreaRect.height; }
protected void calculateTabRects(int tabPlacement, int tabCount) { if (tabCount == 0) return; assureRectsCreated(tabCount); FontMetrics fm = getFontMetrics(); SwingUtilities.calculateInnerArea(tabPane, calcRect); Insets tabAreaInsets = getTabAreaInsets(tabPlacement); Insets insets = tabPane.getInsets(); int max = 0; int runs = 0; int start = getTabRunIndent(tabPlacement, 1); if (tabPlacement == SwingConstants.TOP || tabPlacement == SwingConstants.BOTTOM) { int maxHeight = calculateMaxTabHeight(tabPlacement); calcRect.width -= tabAreaInsets.left + tabAreaInsets.right; max = calcRect.width + tabAreaInsets.left + insets.left; start += tabAreaInsets.left + insets.left; int width = 0; int runWidth = start; for (int i = 0; i < tabCount; i++) { width = calculateTabWidth(tabPlacement, i, fm); if (runWidth + width > max) { runWidth = tabAreaInsets.left + insets.left + getTabRunIndent(tabPlacement, ++runs); rects[i] = new Rectangle(runWidth, insets.top + tabAreaInsets.top, width, maxHeight); runWidth += width; if (runs > tabRuns.length - 1) expandTabRunsArray(); tabRuns[runs] = i; } else { rects[i] = new Rectangle(runWidth, insets.top + tabAreaInsets.top, width, maxHeight); runWidth += width; } } runs++; tabAreaRect.width = tabPane.getWidth() - insets.left - insets.right; tabAreaRect.height = runs * maxTabHeight - (runs - 1) * tabRunOverlay + tabAreaInsets.top + tabAreaInsets.bottom; contentRect.width = tabAreaRect.width; contentRect.height = tabPane.getHeight() - insets.top - insets.bottom - tabAreaRect.height; contentRect.x = insets.left; tabAreaRect.x = insets.left; if (tabPlacement == SwingConstants.BOTTOM) { contentRect.y = insets.top; tabAreaRect.y = contentRect.y + contentRect.height; } else { tabAreaRect.y = insets.top; contentRect.y = tabAreaRect.y + tabAreaRect.height; } } else { int maxWidth = calculateMaxTabWidth(tabPlacement); calcRect.height -= tabAreaInsets.top + tabAreaInsets.bottom; max = calcRect.height + tabAreaInsets.top + insets.top; int height = 0; start += tabAreaInsets.top + insets.top; int runHeight = start; int fontHeight = fm.getHeight(); for (int i = 0; i < tabCount; i++) { height = calculateTabHeight(tabPlacement, i, fontHeight); if (runHeight + height > max) { runHeight = tabAreaInsets.top + insets.top + getTabRunIndent(tabPlacement, ++runs); rects[i] = new Rectangle(insets.left + tabAreaInsets.left, runHeight, maxWidth, height); runHeight += height; if (runs > tabRuns.length - 1) expandTabRunsArray(); tabRuns[runs] = i; } else { rects[i] = new Rectangle(insets.left + tabAreaInsets.left, runHeight, maxWidth, height); runHeight += height; } } runs++; tabAreaRect.width = runs * maxTabWidth - (runs - 1) * tabRunOverlay + tabAreaInsets.left + tabAreaInsets.right; tabAreaRect.height = tabPane.getHeight() - insets.top - insets.bottom; tabAreaRect.y = insets.top; contentRect.width = tabPane.getWidth() - insets.left - insets.right - tabAreaRect.width; contentRect.height = tabAreaRect.height; contentRect.y = insets.top; if (tabPlacement == SwingConstants.LEFT) { tabAreaRect.x = insets.left; contentRect.x = tabAreaRect.x + tabAreaRect.width; } else { contentRect.x = insets.left; tabAreaRect.x = contentRect.x + contentRect.width; } } runCount = runs; tabRuns[0] = 0; normalizeTabRuns(tabPlacement, tabCount, start, max); selectedRun = getRunForTab(tabCount, tabPane.getSelectedIndex()); if (shouldRotateTabRuns(tabPlacement)) rotateTabRuns(tabPlacement, selectedRun); // Need to pad the runs and move them to the correct location. for (int i = 0; i < runCount; i++) { int first = lastTabInRun(tabCount, getPreviousTabRun(i)) + 1; if (first == tabCount) first = 0; int last = lastTabInRun(tabCount, i); if (shouldPadTabRun(tabPlacement, i)) padTabRun(tabPlacement, first, last, max); // Done padding, now need to move it. if (tabPlacement == SwingConstants.TOP && i > 0) { for (int j = first; j <= last; j++) rects[j].y += (runCount - i) * maxTabHeight - (runCount - i) * tabRunOverlay; } if (tabPlacement == SwingConstants.BOTTOM) { int height = tabPane.getBounds().height - insets.bottom - tabAreaInsets.bottom; int adjustment; if (i == 0) adjustment = height - maxTabHeight; else adjustment = height - (runCount - i + 1) * maxTabHeight - (runCount - i) * tabRunOverlay; for (int j = first; j <= last; j++) rects[j].y = adjustment; } if (tabPlacement == SwingConstants.LEFT && i > 0) { for (int j = first; j <= last; j++) rects[j].x += (runCount - i) * maxTabWidth - (runCount - i) * tabRunOverlay; } if (tabPlacement == SwingConstants.RIGHT) { int width = tabPane.getBounds().width - insets.right - tabAreaInsets.right; int adjustment; if (i == 0) adjustment = width - maxTabWidth; else adjustment = width - (runCount - i + 1) * maxTabWidth + (runCount - i) * tabRunOverlay; for (int j = first; j <= last; j++) rects[j].x = adjustment; } } padSelectedTab(tabPlacement, tabPane.getSelectedIndex()); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 4604, 5661, 6120, 87, 12, 474, 3246, 12420, 16, 509, 3246, 1380, 13, 565, 288, 1377, 309, 261, 7032, 1380, 422, 374, 13, 202, 2463, 31, 1377, 1551, 594, 6120, 87, 6119, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 4604, 5661, 6120, 87, 12, 474, 3246, 12420, 16, 509, 3246, 1380, 13, 565, 288, 1377, 309, 261, 7032, 1380, 422, 374, 13, 202, 2463, 31, 1377, 1551, 594, 6120, 87, 6119, 12, ...
if (_replacedObjects.objectForKey("_nsTextView1") == null) { _connect(_owner(), _nsTextView1, "noteTextView");
if (_replacedObjects.objectForKey("_eoFrame1") == null) { _connect(_owner(), _eoFrame1, "noteWindow");
protected void _awaken() { super._awaken(); if (_replacedObjects.objectForKey("_eoFrame0") == null) { _connect(_owner(), _eoFrame0, "reportsWindow"); } if (_replacedObjects.objectForKey("_eoFrame4") == null) { _connect(_owner(), _eoFrame4, "noteWindow"); } if (_replacedObjects.objectForKey("_nsTextView1") == null) { _connect(_owner(), _nsTextView1, "noteTextView"); } if (_replacedObjects.objectForKey("_eoFrame3") == null) { _connect(_owner(), _eoFrame3, "familyEditWindow"); } _nsComboBox2.setModel(new javax.swing.DefaultComboBoxModel()); _nsComboBox2.addItem(""); _nsComboBox2.addItem("Jr."); _nsComboBox2.addItem("Sr."); _nsComboBox2.addItem("III"); _nsComboBox2.setSelectedIndex(0); _nsComboBox1.setModel(new javax.swing.DefaultComboBoxModel()); _nsComboBox1.addItem(""); _nsComboBox1.addItem("Dr."); _nsComboBox1.addItem("Mr."); _nsComboBox1.addItem("Mrs."); _nsComboBox1.addItem("Ms."); _nsComboBox1.addItem("Sir"); _nsComboBox1.setSelectedIndex(0); _popup0.setModel(new javax.swing.DefaultComboBoxModel()); _popup0.addItem("Female"); _popup0.addItem("Male"); _popup0.addItem("Unknown"); if (_replacedObjects.objectForKey("_eoFrame2") == null) { _connect(_owner(), _eoFrame2, "individualEditWindow"); } if (_replacedObjects.objectForKey("_eoFrame1") == null) { _connect(_eoFrame1, _owner(), "delegate"); } if (_replacedObjects.objectForKey("_nsTableView4") == null) { _connect(_owner(), _nsTableView4, "individualListTableView"); } if (_replacedObjects.objectForKey("_individualList0") == null) { _connect(_owner(), _individualList0, "individualList"); } if (_replacedObjects.objectForKey("_individualList0") == null) { _connect(_individualList0, _owner(), "document"); } if (_replacedObjects.objectForKey("_nsTableView3") == null) { _connect(_owner(), _nsTableView3, "familyListTableView"); } if (_replacedObjects.objectForKey("_familyList0") == null) { _connect(_owner(), _familyList0, "familyList"); } if (_replacedObjects.objectForKey("_familyList0") == null) { _connect(_familyList0, _owner(), "document"); } if (_replacedObjects.objectForKey("_individualDetailController0") == null) { _connect(_owner(), _individualDetailController0, "individualDetailController"); } if (_replacedObjects.objectForKey("_nsButton9") == null) { _connect(_owner(), _nsButton9, "individualFamilyButton"); } _nsButton9.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "openFamilyEditSheet", _nsButton9), "")); if (_replacedObjects.objectForKey("_nsButton8") == null) { _connect(_owner(), _nsButton8, "maternalGrandmotherButton"); } _nsButton8.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "setIndividual", _nsButton8), "")); if (_replacedObjects.objectForKey("_nsButton7") == null) { _connect(_owner(), _nsButton7, "maternalGrandfatherButton"); } _nsButton7.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "setIndividual", _nsButton7), "")); if (_replacedObjects.objectForKey("_nsButton6") == null) { _connect(_owner(), _nsButton6, "paternalGrandmotherButton"); } _nsButton6.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "setIndividual", _nsButton6), "")); if (_replacedObjects.objectForKey("_nsButton5") == null) { _connect(_owner(), _nsButton5, "motherButton"); } _nsButton5.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "setIndividual", _nsButton5), "")); if (_replacedObjects.objectForKey("_nsButton4") == null) { _connect(_owner(), _nsButton4, "spouseButton"); } _nsButton4.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "setIndividual", _nsButton4), "")); if (_replacedObjects.objectForKey("_nsButton3") == null) { _connect(_owner(), _nsButton3, "individualButton"); } _nsButton3.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "openIndividualEditSheet", _nsButton3), "")); if (_replacedObjects.objectForKey("_nsButton2") == null) { _connect(_owner(), _nsButton2, "fatherButton"); } _nsButton2.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "setIndividual", _nsButton2), "")); if (_replacedObjects.objectForKey("_nsButton1") == null) { _connect(_owner(), _nsButton1, "paternalGrandfatherButton"); } _nsButton1.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "setIndividual", _nsButton1), "")); if (_replacedObjects.objectForKey("_nsButton0") == null) { _connect(_owner(), _nsButton0, "parentFamilyButton"); } _nsButton0.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "openFamilyEditSheet", _nsButton0), "")); if (_replacedObjects.objectForKey("_nsTableView1") == null) { _connect(_owner(), _nsTableView1, "spouseTable"); } _nsTableView1.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "setIndividual", _nsTableView1), "")); if (_replacedObjects.objectForKey("_nsTableView1") == null) { _connect(_nsTableView1, _owner(), "dataSource"); } if (_replacedObjects.objectForKey("_nsTableView0") == null) { _connect(_owner(), _nsTableView0, "childrenTable"); } _nsTableView0.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "setIndividual", _nsTableView0), "")); if (_replacedObjects.objectForKey("_nsTableView0") == null) { _connect(_nsTableView0, _owner(), "dataSource"); } if (_replacedObjects.objectForKey("_eoFrame1") == null) { _connect(_owner(), _eoFrame1, "window"); } if (_replacedObjects.objectForKey("_nsMatrix0") == null) { _connect(_owner(), _nsMatrix0, "reportsRadio"); } }
6190 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6190/8eddaccf733983953b58b7aac94fb132390d0f92/_MyDocument_EOArchive_English.java/clean/MacPAF/English.lproj/MyDocument.nib/_MyDocument_EOArchive_English.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 389, 2219, 7940, 1435, 288, 3639, 2240, 6315, 2219, 7940, 5621, 3639, 309, 261, 67, 2079, 72, 4710, 18, 1612, 19759, 2932, 67, 4361, 3219, 20, 7923, 422, 446, 13, 288, 5411, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 389, 2219, 7940, 1435, 288, 3639, 2240, 6315, 2219, 7940, 5621, 3639, 309, 261, 67, 2079, 72, 4710, 18, 1612, 19759, 2932, 67, 4361, 3219, 20, 7923, 422, 446, 13, 288, 5411, ...
applyFacets(facets, presentFacet, fixedFacet, (short)0);
applyFacets(facets, presentFacet, fixedFacet, (short)0, null);
void applyFacets1(XSFacets facets, short presentFacet, short fixedFacet) { try { applyFacets(facets, presentFacet, fixedFacet, (short)0); } catch (InvalidDatatypeFacetException e) { // should never gets here, internel error throw new RuntimeException("internal error"); } }
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/cd43c5d49f27add7a5270164e99eddf0ac1a0ed9/XSSimpleTypeDecl.java/buggy/src/org/apache/xerces/impl/dv/xs_new/XSSimpleTypeDecl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 2230, 6645, 2413, 21, 12, 60, 55, 6645, 2413, 21681, 16, 3025, 3430, 11137, 16, 3025, 5499, 11137, 13, 288, 3639, 775, 288, 5411, 2230, 6645, 2413, 12, 11639, 2413, 16, 3430, 11137, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 2230, 6645, 2413, 21, 12, 60, 55, 6645, 2413, 21681, 16, 3025, 3430, 11137, 16, 3025, 5499, 11137, 13, 288, 3639, 775, 288, 5411, 2230, 6645, 2413, 12, 11639, 2413, 16, 3430, 11137, ...
throw new IllegalArgumentException("alpha mask in source should be 0xff000000");
throw new IllegalArgumentException ("alpha mask in source should be 0xff000000");
private void checkCompatible(ColorModel colorModel){ ColorSpace cs = colorModel.getColorSpace(); // Check that model is sRGB or linear RGB if((cs != sRGB) || (cs != lRGB)) throw new IllegalArgumentException("Expected CS_sRGB or CS_LINEAR_RGB color model"); // Check ColorModel is of type DirectColorModel if(!(colorModel instanceof DirectColorModel)) throw new IllegalArgumentException("colorModel should be an instance of DirectColorModel"); // Check transfer type if(colorModel.getTransferType() != DataBuffer.TYPE_INT) throw new IllegalArgumentException("colorModel's transferType should be DataBuffer.TYPE_INT"); // Check red, green, blue and alpha mask DirectColorModel dcm = (DirectColorModel)colorModel; if(dcm.getRedMask() != 0x00ff0000) throw new IllegalArgumentException("red mask in source should be 0xff000000"); if(dcm.getGreenMask() != 0x0000ff00) throw new IllegalArgumentException("green mask in source should be 0xff000000"); if(dcm.getBlueMask() != 0x000000ff) throw new IllegalArgumentException("blue mask in source should be 0xff000000"); if(dcm.getAlphaMask() != 0xff000000) throw new IllegalArgumentException("alpha mask in source should be 0xff000000"); }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/4e88cc6932746ce6cbcfb95ada80744144fdee64/DisplacementMapOp.java/buggy/sources/org/apache/batik/refimpl/gvt/filter/DisplacementMapOp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 866, 14599, 12, 2957, 1488, 2036, 1488, 15329, 3639, 5563, 3819, 2873, 273, 2036, 1488, 18, 588, 2957, 3819, 5621, 3639, 368, 2073, 716, 938, 353, 272, 11343, 578, 9103, 11510, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 866, 14599, 12, 2957, 1488, 2036, 1488, 15329, 3639, 5563, 3819, 2873, 273, 2036, 1488, 18, 588, 2957, 3819, 5621, 3639, 368, 2073, 716, 938, 353, 272, 11343, 578, 9103, 11510, ...
baseTds.executeSQL(cleanupSql.toString(), null, null, true, 0, -1, -1, true); baseTds.clearResponseQueue();
synchronized void removeStatement(JtdsStatement statement) throws SQLException { // Remove the JtdsStatement for (int i = 0; i < statements.size(); i++) { WeakReference wr = (WeakReference) statements.get(i); if (wr != null) { Statement stmt = (Statement) wr.get(); if (stmt != null && stmt == statement) { statements.set(i, null); } } } if (statement instanceof JtdsPreparedStatement) { // Clean up the prepared statement cache Collection handles = statementCache.getObsoleteHandles( ((JtdsPreparedStatement) statement).handles); if (handles != null) { StringBuffer cleanupSql = new StringBuffer(handles.size() * 32); for (Iterator iterator = handles.iterator(); iterator.hasNext(); ) { String handle = iterator.next().toString(); // FIXME - Add support for sp_cursorunprepare if (TdsCore.isPreparedProcedureName(handle)) { cleanupSql.append("EXEC sp_unprepare "); } else { cleanupSql.append("DROP PROC "); } cleanupSql.append(handle); cleanupSql.append('\n'); } baseTds.executeSQL(cleanupSql.toString(), null, null, true, 0, -1, -1, true); baseTds.clearResponseQueue(); } } }
5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/a7013967f309892a96bc9dc9726faf4f4708f077/ConnectionJDBC2.java/buggy/src/main/net/sourceforge/jtds/jdbc/ConnectionJDBC2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3852, 918, 1206, 3406, 12, 46, 88, 2377, 3406, 3021, 13, 5411, 1216, 6483, 288, 3639, 368, 3581, 326, 804, 88, 2377, 3406, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 6317, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3852, 918, 1206, 3406, 12, 46, 88, 2377, 3406, 3021, 13, 5411, 1216, 6483, 288, 3639, 368, 3581, 326, 804, 88, 2377, 3406, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 6317, 18, ...
} else {
} else if (debug) {
private void verifyNamePositions(int nameStart, Name name, char[] source) { if (name.isQualifiedName()) { QualifiedName qualified = (QualifiedName) name; int start = qualified.getName().getStartPosition(); String str = new String(source, start, qualified.getName().getLength()); assumeEquals(prefix+"Misplaced or wrong name for qualified name: "+name, str, qualified.getName().toString()); verifyNamePositions(nameStart, ((QualifiedName) name).getQualifier(), source); } String str = new String(source, nameStart, name.getLength()); if (str.indexOf('\n') < 0) { // cannot compare if text contains new line assumeEquals(prefix+"Misplaced name for qualified name: ", str, name.toString()); } else { System.out.println(prefix+"Name contains new line for qualified name: "+name); } }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/7084f835caef5ab2adb5e4c9c4444ab0bb70c40d/ASTConverterJavadocTest.java/buggy/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTConverterJavadocTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3929, 461, 11024, 12, 474, 508, 1685, 16, 1770, 508, 16, 1149, 8526, 1084, 13, 288, 202, 202, 430, 261, 529, 18, 291, 12345, 10756, 288, 1082, 202, 12345, 9348, 273, 261...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3929, 461, 11024, 12, 474, 508, 1685, 16, 1770, 508, 16, 1149, 8526, 1084, 13, 288, 202, 202, 430, 261, 529, 18, 291, 12345, 10756, 288, 1082, 202, 12345, 9348, 273, 261...
Log.logln(SHOW_ALL, "warning: " + showSAX(exception));
Log.logln(LOG_PROGRESS, "warning: " + showSAX(exception));
public void warning(SAXParseException exception) throws SAXException { Log.logln(SHOW_ALL, "warning: " + showSAX(exception)); throw exception; }
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/2de7a3aa226ade8a236bedbedb9d88137ed9cba0/CLDRFile.java/clean/tools/java/org/unicode/cldr/util/CLDRFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 3436, 12, 55, 2501, 13047, 1520, 13, 1216, 14366, 288, 1082, 202, 1343, 18, 1330, 2370, 12, 16677, 67, 4685, 16, 315, 8551, 30, 315, 397, 2405, 55, 2501, 12, 4064, 10019...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 3436, 12, 55, 2501, 13047, 1520, 13, 1216, 14366, 288, 1082, 202, 1343, 18, 1330, 2370, 12, 16677, 67, 4685, 16, 315, 8551, 30, 315, 397, 2405, 55, 2501, 12, 4064, 10019...
public static String getProgramFileName(Date date, String country, String channel, String level) { return getProgramFileName(date, country, channel, level, -1);
public String getProgramFileName() { if (mChannel==null || mDate==null) return null; return getProgramFileName(mDate,mChannel);
public static String getProgramFileName(Date date, String country, String channel, String level) { return getProgramFileName(date, country, channel, level, -1); }
9266 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9266/6bfc0d2fb22d1aa9907992d583508e9ae38e77af/DayProgramFile.java/buggy/tvbrowser/src/tvbrowserdataservice/file/DayProgramFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 514, 3570, 3295, 4771, 12, 1626, 1509, 16, 514, 5251, 16, 565, 514, 1904, 16, 514, 1801, 13, 225, 288, 565, 327, 3570, 3295, 4771, 12, 712, 16, 5251, 16, 1904, 16, 1801, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 514, 3570, 3295, 4771, 12, 1626, 1509, 16, 514, 5251, 16, 565, 514, 1904, 16, 514, 1801, 13, 225, 288, 565, 327, 3570, 3295, 4771, 12, 712, 16, 5251, 16, 1904, 16, 1801, 16...
processAthrow(VM_ExceptionHandlerMap exceptions, int athrowIndex, VM_BasicBlock basicBlocks[], short b2BBMap[]) { boolean notfound = true; if (exceptions != null) { int[] tryStartPC = exceptions.getStartPC(); int[] tryEndPC = exceptions.getEndPC(); int tryLength = tryStartPC.length; // Check if this athrow index is within any of the try blocks for (int i=0; i<tryLength; i++) { if (tryStartPC[i] <= athrowIndex && athrowIndex < tryEndPC[i]) { notfound = false; break; } } } if (notfound) { VM_BasicBlock athrowBB = basicBlocks[b2BBMap[athrowIndex]]; basicBlocks[VM_BasicBlock.EXITBLOCK].addPredecessor(athrowBB); } }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/d7cfcb64537faa0366b817e55869c098c3721fa5/VM_BuildBB.java/clean/rvm/src/vm/compilers/baseline/GCMap/VM_BuildBB.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1207, 37, 12849, 12, 7397, 67, 18894, 863, 11855, 16, 474, 421, 492, 1016, 16, 202, 202, 7397, 67, 8252, 1768, 13240, 6450, 63, 6487, 6620, 70, 22, 9676, 863, 63, 5717, 95, 6494, 902, 7015, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1207, 37, 12849, 12, 7397, 67, 18894, 863, 11855, 16, 474, 421, 492, 1016, 16, 202, 202, 7397, 67, 8252, 1768, 13240, 6450, 63, 6487, 6620, 70, 22, 9676, 863, 63, 5717, 95, 6494, 902, 7015, ...
compositeMarkerLimitExceeded = new Composite(parent, SWT.NONE); compositeMarkerLimitExceeded.setLayout(new GridLayout()); Label labelMarkerLimitExceeded = new Label(compositeMarkerLimitExceeded, SWT.WRAP); labelMarkerLimitExceeded.setText(Messages.getString("markerLimitExceeded.title")); parent.setLayout(stackLayout); checkMarkerLimit(); updateTitle();
getSite().getPage().addSelectionListener(focusListener); focusSelectionChanged(getSite().getPage().getActivePart(), getSite().getPage().getSelection()); ResourcesPlugin.getWorkspace().addResourceChangeListener(resourceListener); refresh();
public void createPartControl(Composite parent) { getSite().getPage().addSelectionListener(focusListener); getRegistry().addItemsChangedListener(itemsListener); clipboard = new Clipboard(parent.getDisplay()); super.createPartControl(parent); initDragAndDrop(); compositeMarkerLimitExceeded = new Composite(parent, SWT.NONE); compositeMarkerLimitExceeded.setLayout(new GridLayout()); Label labelMarkerLimitExceeded = new Label(compositeMarkerLimitExceeded, SWT.WRAP); labelMarkerLimitExceeded.setText(Messages.getString("markerLimitExceeded.title")); //$NON-NLS-1$ parent.setLayout(stackLayout); checkMarkerLimit(); updateTitle(); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/ea57ee1b804071939d5791d4c2986826074efe0c/MarkerView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 1988, 3367, 12, 9400, 982, 13, 288, 202, 202, 588, 4956, 7675, 588, 1964, 7675, 1289, 6233, 2223, 12, 13923, 2223, 1769, 202, 202, 588, 4243, 7675, 1289, 3126, 5033, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 1988, 3367, 12, 9400, 982, 13, 288, 202, 202, 588, 4956, 7675, 588, 1964, 7675, 1289, 6233, 2223, 12, 13923, 2223, 1769, 202, 202, 588, 4243, 7675, 1289, 3126, 5033, ...
} else { IPath location = root.getLocation().append(path); if (resourceType == IResource.PROJECT || resourceType == IResource.FOLDER) { res = root.getContainerForLocation(location); } else if (resourceType == IResource.FILE) { res = root.getFileForLocation(location); } }
else if (resourceType == IResource.PROJECT) res = root.getProject(fileName); else if (resourceType == IResource.FOLDER) res = root.getFolder(new Path(fileName)); else if (resourceType == IResource.FILE) res = root.getFile(new Path(fileName));
public IAdaptable createElement(IMemento memento) { // Get the file name. String fileName = memento.getString(TAG_PATH); if (fileName == null) return null; IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot(); IPath path = new Path(fileName); String type = memento.getString(TAG_TYPE); if (type == null) { // Old format memento. Create an IResource using findMember. // Will return null for resources in closed projects. res = root.findMember(path); } else { int resourceType = Integer.parseInt(type); if (resourceType == IResource.ROOT) { res = root; } else { IPath location = root.getLocation().append(path); if (resourceType == IResource.PROJECT || resourceType == IResource.FOLDER) { res = root.getContainerForLocation(location); } else if (resourceType == IResource.FILE) { res = root.getFileForLocation(location); } } } return res; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/23def400473dca9f9fb5cf07d1a07f265b111b0a/ResourceFactory.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/model/ResourceFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 467, 13716, 429, 6310, 12, 3445, 820, 83, 312, 820, 83, 13, 288, 202, 759, 968, 326, 585, 508, 18, 202, 780, 3968, 273, 312, 820, 83, 18, 588, 780, 12, 7927, 67, 4211, 1769, 202, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 467, 13716, 429, 6310, 12, 3445, 820, 83, 312, 820, 83, 13, 288, 202, 759, 968, 326, 585, 508, 18, 202, 780, 3968, 273, 312, 820, 83, 18, 588, 780, 12, 7927, 67, 4211, 1769, 202, 4...
return standardError; }
return standardError; }
public RubyClass getStandardError() { return standardError; }
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyExceptions.java/clean/org/jruby/runtime/RubyExceptions.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 797, 336, 8336, 668, 1435, 288, 202, 202, 2463, 4529, 668, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 797, 336, 8336, 668, 1435, 288, 202, 202, 2463, 4529, 668, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
case Token.ARRAYLIT : { int count = getInt(iCode, pc); pc += 4; int skipOffset = getInt(iCode, pc); pc += 4; out.println(tname+" : "+count+" "+skipOffset);
case Token.OBJECTLIT : case Icode_SPARE_ARRAYLIT : out.println( tname+" "+idata.literalIds[indexReg]);
private static void dumpICode(InterpreterData idata) { if (Token.printICode) { int iCodeLength = idata.itsICodeTop; byte iCode[] = idata.itsICode; String[] strings = idata.itsStringTable; PrintStream out = System.out; out.println("ICode dump, for " + idata.itsName + ", length = " + iCodeLength); out.println("MaxStack = " + idata.itsMaxStack); int indexReg = 0; for (int pc = 0; pc < iCodeLength; ) { out.flush(); out.print(" [" + pc + "] "); int token = iCode[pc] & 0xFF; int icodeLength = icodeTokenLength(token); String tname = icodeToName(token); int old_pc = pc; ++pc; switch (token) { default: if (icodeLength != 1) Kit.codeBug(); out.println(tname); break; case Icode_GOSUB : case Token.GOTO : case Token.IFEQ : case Token.IFNE : case Icode_IFEQ_POP : { int newPC = getTarget(iCode, pc); out.println(tname + " " + newPC); pc += 2; break; } case Icode_RETSUB : case Token.ENUM_INIT : case Token.ENUM_NEXT : case Token.ENUM_ID : case Icode_VARINC : case Icode_VARDEC : case Token.GETVAR : case Token.SETVAR : case Token.LOCAL_SAVE : case Token.LOCAL_LOAD : { int slot = (iCode[pc] & 0xFF); out.println(tname + " " + slot); pc++; break; } case Icode_CALLSPECIAL : { int callType = iCode[pc] & 0xFF; boolean isNew = (iCode[pc + 1] != 0); int line = getShort(iCode, pc+2); out.println(tname+" "+callType+" "+isNew +" "+indexReg+" "+line); pc += 4; break; } case Token.REGEXP : out.println( tname+" "+idata.itsRegExpLiterals[indexReg]); break; case Token.ARRAYLIT : { int count = getInt(iCode, pc); pc += 4; int skipOffset = getInt(iCode, pc); pc += 4; out.println(tname+" : "+count+" "+skipOffset); break; } case Token.OBJECTLIT : { int idsOffset = getInt(iCode, pc); pc += 4; out.println(tname+" : "+idsOffset); break; } case Icode_CLOSURE : out.println( tname+" "+idata.itsNestedFunctions[indexReg]); break; case Token.NEW : case Token.CALL : out.println(tname+' '+indexReg); break; case Token.THROW : { int line = getShort(iCode, pc); out.println(tname + " : " + line); pc += 2; break; } case Icode_SHORTNUMBER : { int value = getShort(iCode, pc); out.println(tname + " " + value); pc += 2; break; } case Icode_INTNUMBER : { int value = getInt(iCode, pc); out.println(tname + " " + value); pc += 4; break; } case Token.NUMBER : { double value = idata.itsDoubleTable[indexReg]; out.println(tname + " " + value); pc += 2; break; } case Icode_NAME_AND_THIS : { boolean skipGetThis = (0 != iCode[pc]); out.println(tname+" "+skipGetThis); ++pc; break; } case Icode_LINE : { int line = getShort(iCode, pc); out.println(tname + " : " + line); pc += 2; break; } case Icode_LITERAL_NEW: { int numberOfValues = indexReg; out.println(tname + " : " + numberOfValues); break; } case Icode_LOAD_STR1: { String str = strings[0xFF & iCode[pc]]; out.println(tname + " \"" + str + '"'); ++pc; } case Icode_LOAD_STR2: { String str = strings[getIndex(iCode, pc)]; out.println(tname + " \"" + str + '"'); pc += 2; } case Icode_LOAD_STR4: { String str = strings[getInt(iCode, pc)]; out.println(tname + " \"" + str + '"'); pc += 4; } case Icode_LOAD_IND1: { indexReg = 0xFF & iCode[pc]; out.println(tname+" "+indexReg); ++pc; } case Icode_LOAD_IND2: { indexReg = getIndex(iCode, pc); out.println(tname+" "+indexReg); pc += 2; } case Icode_LOAD_IND4: { indexReg = getInt(iCode, pc); out.println(tname+" "+indexReg); pc += 4; } } if (old_pc + icodeLength != pc) Kit.codeBug(); } int[] table = idata.itsExceptionTable; if (table != null) { out.println("Exception handlers: " +table.length / EXCEPTION_SLOT_SIZE); for (int i = 0; i != table.length; i += EXCEPTION_SLOT_SIZE) { int tryStart = table[i + EXCEPTION_TRY_START_SLOT]; int tryEnd = table[i + EXCEPTION_TRY_END_SLOT]; int catchStart = table[i + EXCEPTION_CATCH_SLOT]; int finallyStart = table[i + EXCEPTION_FINALLY_SLOT]; int withDepth = table[i + EXCEPTION_WITH_DEPTH_SLOT]; int exceptionLocal = table[i + EXCEPTION_LOCAL_SLOT]; out.println(" tryStart="+tryStart+" tryEnd="+tryEnd +" catchStart="+catchStart +" finallyStart="+finallyStart +" withDepth="+withDepth +" exceptionLocal="+exceptionLocal); } } out.flush(); } }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/62fe93941df3fc9b6064259a1b9c2635062e7efc/Interpreter.java/clean/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 4657, 45, 1085, 12, 30010, 751, 612, 396, 13, 565, 288, 3639, 309, 261, 1345, 18, 1188, 45, 1085, 13, 288, 5411, 509, 277, 1085, 1782, 273, 612, 396, 18, 1282, 45, 108...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 4657, 45, 1085, 12, 30010, 751, 612, 396, 13, 565, 288, 3639, 309, 261, 1345, 18, 1188, 45, 1085, 13, 288, 5411, 509, 277, 1085, 1782, 273, 612, 396, 18, 1282, 45, 108...
throws DOMException
throws DOMException
public void setNodeValue (String value) throws DOMException { no_mods(); }
47110 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47110/9d0f816af79cfb799742ca4bd5fc7f9d27e4ae0e/NamespaceNode.java/buggy/jaxen/src/java/main/org/jaxen/dom/NamespaceNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26250, 620, 261, 780, 460, 13, 202, 15069, 4703, 503, 565, 288, 202, 2135, 67, 22760, 5621, 565, 289, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 26250, 620, 261, 780, 460, 13, 202, 15069, 4703, 503, 565, 288, 202, 2135, 67, 22760, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
public static StopWatch makeSynchronized(final StopWatch watch) { return new Wrapper(watch) { public synchronized void start(final boolean reset) { this.watch.start(reset); } public synchronized void start() { this.watch.start(); } public synchronized long stop() { return this.watch.stop(); } public synchronized void reset() { this.watch.reset(); } public synchronized long getLapTime() { return this.watch.getLapTime(); } public synchronized long getAverageLapTime() { return this.watch.getAverageLapTime(); } public synchronized int getLapCount() { return this.watch.getLapCount(); } public synchronized long getTime() { return this.watch.getTime(); } public synchronized boolean isRunning() { return this.watch.isRunning(); } public synchronized Duration toDuration() { return this.watch.toDuration(); } public synchronized String toString() { return this.watch.toString(); } }; }
12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/fd9a0ff7cc5963d421ed93357cdda7f535add4dc/StopWatch.java/clean/modules/common/src/java/org/apache/geronimo/common/StopWatch.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 5131, 5234, 1221, 55, 15666, 12, 6385, 5131, 5234, 4267, 13, 565, 288, 3639, 327, 394, 18735, 12, 7585, 13, 288, 5411, 1071, 3852, 918, 787, 12, 6385, 1250, 2715, 13, 288, 77...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 5131, 5234, 1221, 55, 15666, 12, 6385, 5131, 5234, 4267, 13, 565, 288, 3639, 327, 394, 18735, 12, 7585, 13, 288, 5411, 1071, 3852, 918, 787, 12, 6385, 1250, 2715, 13, 288, 77...
n.putProp(Node.ISNUMBER_PROP, new Integer(Node.RIGHT));
n.putIntProp(Node.ISNUMBER_PROP, Node.RIGHT);
int rewriteForNumberVariables(Node n) { switch (n.getType()) { case TokenStream.POP : { Node child = n.getFirstChild(); int type = rewriteForNumberVariables(child); if (type == TypeEvent.NumberType) n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); return TypeEvent.NoType; } case TokenStream.NUMBER : n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); return TypeEvent.NumberType; case TokenStream.GETVAR : { OptLocalVariable theVar = (OptLocalVariable)(n.getProp(Node.VARIABLE_PROP)); if (theVar != null) { if (inDirectCallFunction && theVar.isParameter()) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); return TypeEvent.NumberType; } else if (theVar.isNumber()) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); return TypeEvent.NumberType; } } return TypeEvent.NoType; } case TokenStream.INC : case TokenStream.DEC : { Node child = n.getFirstChild(); // will be a GETVAR or GETPROP if (child.getType() == TokenStream.GETVAR) { OptLocalVariable theVar = (OptLocalVariable)(child.getProp(Node.VARIABLE_PROP)); if ((theVar != null) && theVar.isNumber()) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); markDCPNumberContext(child); return TypeEvent.NumberType; } else return TypeEvent.NoType; } else return TypeEvent.NoType; } case TokenStream.SETVAR : { Node lChild = n.getFirstChild(); Node rChild = lChild.getNextSibling(); int rType = rewriteForNumberVariables(rChild); OptLocalVariable theVar = (OptLocalVariable)(n.getProp(Node.VARIABLE_PROP)); if (inDirectCallFunction && theVar.isParameter()) { if (rType == TypeEvent.NumberType) { if (!convertParameter(rChild)) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); return TypeEvent.NumberType; } markDCPNumberContext(rChild); return TypeEvent.NoType; } else return rType; } else { if ((theVar != null) && theVar.isNumber()) { if (rType != TypeEvent.NumberType) { n.removeChild(rChild); Node newRChild = new Node(TokenStream.CONVERT, rChild); newRChild.putProp(Node.TYPE_PROP, Double.class); n.addChildToBack(newRChild); } n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); markDCPNumberContext(rChild); return TypeEvent.NumberType; } else { if (rType == TypeEvent.NumberType) { if (!convertParameter(rChild)) { n.removeChild(rChild); Node newRChild = new Node(TokenStream.CONVERT, rChild); newRChild.putProp(Node.TYPE_PROP, Object.class); n.addChildToBack(newRChild); } } return TypeEvent.NoType; } } } case TokenStream.RELOP : { Node lChild = n.getFirstChild(); Node rChild = lChild.getNextSibling(); int lType = rewriteForNumberVariables(lChild); int rType = rewriteForNumberVariables(rChild); markDCPNumberContext(lChild); markDCPNumberContext(rChild); if ((n.getInt() == TokenStream.INSTANCEOF) || (n.getInt() == TokenStream.IN)) { if (lType == TypeEvent.NumberType) { if (!convertParameter(lChild)) { n.removeChild(lChild); Node nuChild = new Node(TokenStream.CONVERT, lChild); nuChild.putProp(Node.TYPE_PROP, Object.class); n.addChildToFront(nuChild); } } if (rType == TypeEvent.NumberType) { if (!convertParameter(rChild)) { n.removeChild(rChild); Node nuChild = new Node(TokenStream.CONVERT, rChild); nuChild.putProp(Node.TYPE_PROP, Object.class); n.addChildToBack(nuChild); } } } else { if (convertParameter(lChild)) { if (convertParameter(rChild)) { return TypeEvent.NoType; } else { if (rType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.RIGHT)); } } } else { if (convertParameter(rChild)) { if (lType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.LEFT)); } } else { if (lType == TypeEvent.NumberType) { if (rType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); } else { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.LEFT)); } } else { if (rType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.RIGHT)); } } } } } // we actually build a boolean value return TypeEvent.NoType; } case TokenStream.ADD : { Node lChild = n.getFirstChild(); Node rChild = lChild.getNextSibling(); int lType = rewriteForNumberVariables(lChild); int rType = rewriteForNumberVariables(rChild); if (convertParameter(lChild)) { if (convertParameter(rChild)) { return TypeEvent.NoType; } else { if (rType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP,new Integer(Node.RIGHT)); } } } else { if (convertParameter(rChild)) { if (lType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP,new Integer(Node.LEFT)); } } else { if (lType == TypeEvent.NumberType) { if (rType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP,new Integer(Node.BOTH)); return TypeEvent.NumberType; } else { n.putProp(Node.ISNUMBER_PROP,new Integer(Node.LEFT)); } } else { if (rType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP,new Integer(Node.RIGHT)); } } } } return TypeEvent.NoType; } case TokenStream.BITXOR : case TokenStream.BITOR : case TokenStream.BITAND : case TokenStream.RSH : case TokenStream.LSH : case TokenStream.SUB : case TokenStream.MUL : case TokenStream.DIV : case TokenStream.MOD : { Node lChild = n.getFirstChild(); Node rChild = lChild.getNextSibling(); int lType = rewriteForNumberVariables(lChild); int rType = rewriteForNumberVariables(rChild); markDCPNumberContext(lChild); markDCPNumberContext(rChild); if (lType == TypeEvent.NumberType) { if (rType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); return TypeEvent.NumberType; } else { if (!convertParameter(rChild)) { n.removeChild(rChild); Node newRChild = new Node(TokenStream.CONVERT, rChild); newRChild.putProp(Node.TYPE_PROP, Double.class); n.addChildToBack(newRChild); n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); } return TypeEvent.NumberType; } } else { if (rType == TypeEvent.NumberType) { if (!convertParameter(lChild)) { n.removeChild(lChild); Node newLChild = new Node(TokenStream.CONVERT, lChild); newLChild.putProp(Node.TYPE_PROP, Double.class); n.addChildToFront(newLChild); n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); } return TypeEvent.NumberType; } else { if (!convertParameter(lChild)) { n.removeChild(lChild); Node newLChild = new Node(TokenStream.CONVERT, lChild); newLChild.putProp(Node.TYPE_PROP, Double.class); n.addChildToFront(newLChild); } if (!convertParameter(rChild)) { n.removeChild(rChild); Node newRChild = new Node(TokenStream.CONVERT, rChild); newRChild.putProp(Node.TYPE_PROP, Double.class); n.addChildToBack(newRChild); } n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); return TypeEvent.NumberType; } } } case TokenStream.SETELEM : { Node arrayBase = n.getFirstChild(); Node arrayIndex = arrayBase.getNextSibling(); Node rValue = arrayIndex.getNextSibling(); int baseType = rewriteForNumberVariables(arrayBase); if (baseType == TypeEvent.NumberType) {// can never happen ??? if (!convertParameter(arrayBase)) { n.removeChild(arrayBase); Node nuChild = new Node(TokenStream.CONVERT, arrayBase); nuChild.putProp(Node.TYPE_PROP, Object.class); n.addChildToFront(nuChild); } } int indexType = rewriteForNumberVariables(arrayIndex); if (indexType == TypeEvent.NumberType) { // setting the ISNUMBER_PROP signals the codegen // to use the scriptRuntime.setElem that takes // a double index n.putProp(Node.ISNUMBER_PROP, new Integer(Node.LEFT)); markDCPNumberContext(arrayIndex); } int rValueType = rewriteForNumberVariables(rValue); if (rValueType == TypeEvent.NumberType) { if (!convertParameter(rValue)) { n.removeChild(rValue); Node nuChild = new Node(TokenStream.CONVERT, rValue); nuChild.putProp(Node.TYPE_PROP, Object.class); n.addChildToBack(nuChild); } } return TypeEvent.NoType; } case TokenStream.GETELEM : { Node arrayBase = n.getFirstChild(); Node arrayIndex = arrayBase.getNextSibling(); int baseType = rewriteForNumberVariables(arrayBase); if (baseType == TypeEvent.NumberType) {// can never happen ??? if (!convertParameter(arrayBase)) { n.removeChild(arrayBase); Node nuChild = new Node(TokenStream.CONVERT, arrayBase); nuChild.putProp(Node.TYPE_PROP, Object.class); n.addChildToFront(nuChild); } } int indexType = rewriteForNumberVariables(arrayIndex); if (indexType == TypeEvent.NumberType) { // setting the ISNUMBER_PROP signals the codegen // to use the scriptRuntime.getElem that takes // a double index n.putProp(Node.ISNUMBER_PROP, new Integer(Node.RIGHT)); markDCPNumberContext(arrayIndex); } return TypeEvent.NoType; } case TokenStream.CALL : { FunctionNode target = (FunctionNode)n.getProp(Node.DIRECTCALL_PROP); if (target != null) {/* we leave each child as a Number if it can be. The codegen will handle moving the pairs of parameters.*/ Node child = n.getFirstChild(); // the function rewriteForNumberVariables(child); child = child.getNextSibling(); // the 'this' object rewriteForNumberVariables(child); child = child.getNextSibling(); // the first arg while (child != null) { int type = rewriteForNumberVariables(child); if (type == TypeEvent.NumberType) { markDCPNumberContext(child); } child = child.getNextSibling(); } return TypeEvent.NoType; } // else fall thru... } default : { Node child = n.getFirstChild(); while (child != null) { Node nextChild = child.getNextSibling(); int type = rewriteForNumberVariables(child); if (type == TypeEvent.NumberType) { if (!convertParameter(child)) { n.removeChild(child); Node nuChild = new Node(TokenStream.CONVERT, child); nuChild.putProp(Node.TYPE_PROP, Object.class); if (nextChild == null) n.addChildToBack(nuChild); else n.addChildBefore(nuChild, nextChild); } } child = nextChild; } return TypeEvent.NoType; } } }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/f6c346cc7699c007b0b9b27d9c3cdb5446052c64/Optimizer.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/Optimizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 509, 10738, 1290, 1854, 6158, 12, 907, 290, 13, 565, 288, 3639, 1620, 261, 82, 18, 588, 559, 10756, 288, 5411, 648, 3155, 1228, 18, 30374, 294, 288, 10792, 2029, 1151, 273, 290, 18, 588...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 509, 10738, 1290, 1854, 6158, 12, 907, 290, 13, 565, 288, 3639, 1620, 261, 82, 18, 588, 559, 10756, 288, 5411, 648, 3155, 1228, 18, 30374, 294, 288, 10792, 2029, 1151, 273, 290, 18, 588...
return jjMoveStringLiteralDfa1_5(0x4000000L);
return jjMoveStringLiteralDfa1_5(0x20000000L);
private final int jjMoveStringLiteralDfa0_5(){ switch(curChar) { case 35: jjmatchedKind = 15; return jjMoveStringLiteralDfa1_5(0x5000L); case 102: return jjMoveStringLiteralDfa1_5(0x4000000L); case 116: return jjMoveStringLiteralDfa1_5(0x2000000L); case 123: return jjStopAtPos(0, 58); case 125: return jjStopAtPos(0, 59); default : return jjMoveNfa_5(3, 0); }}
9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/e128e4125429834f73621c8aa67036ca877e731e/ParserTokenManager.java/clean/src/java/org/apache/velocity/runtime/parser/ParserTokenManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 727, 509, 10684, 7607, 28565, 40, 507, 20, 67, 25, 1435, 95, 282, 1620, 12, 1397, 2156, 13, 282, 288, 1377, 648, 13191, 30, 540, 10684, 11073, 5677, 273, 4711, 31, 540, 327, 10684, 760...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 727, 509, 10684, 7607, 28565, 40, 507, 20, 67, 25, 1435, 95, 282, 1620, 12, 1397, 2156, 13, 282, 288, 1377, 648, 13191, 30, 540, 10684, 11073, 5677, 273, 4711, 31, 540, 327, 10684, 760...
declareWorkbenchImage(IDE.SharedImages.IMG_OBJS_TASK_TSK, PATH_OBJECT+"taskmrk_tsk.gif", true); declareWorkbenchImage(IDE.SharedImages.IMG_OBJS_BKMRK_TSK, PATH_OBJECT+"bkmrk_tsk.gif", true);
declareWorkbenchImage(ideBundle, IDE.SharedImages.IMG_OBJS_TASK_TSK, PATH_OBJECT+"taskmrk_tsk.gif", true); declareWorkbenchImage(ideBundle, IDE.SharedImages.IMG_OBJS_BKMRK_TSK, PATH_OBJECT+"bkmrk_tsk.gif", true);
private void declareWorkbenchImages() { final String ICONS_PATH = "icons/full/";//$NON-NLS-1$ final String PATH_ELOCALTOOL = ICONS_PATH+"elcl16/"; //Enabled toolbar icons.//$NON-NLS-1$ final String PATH_ETOOL = ICONS_PATH+"etool16/"; //Enabled toolbar icons.//$NON-NLS-1$ final String PATH_DTOOL = ICONS_PATH+"dtool16/"; //Disabled toolbar icons.//$NON-NLS-1$ final String PATH_OBJECT = ICONS_PATH+"obj16/"; //Model object icons//$NON-NLS-1$ final String PATH_WIZBAN = ICONS_PATH+"wizban/"; //Wizard icons//$NON-NLS-1$ declareWorkbenchImage(ISharedImages.IMG_TOOL_NEW_WIZARD, PATH_ETOOL+"new_wiz.gif", true); //$NON-NLS-1$ declareWorkbenchImage(ISharedImages.IMG_TOOL_NEW_WIZARD_HOVER, PATH_ETOOL+"new_wiz.gif", true); //$NON-NLS-1$ declareWorkbenchImage(ISharedImages.IMG_TOOL_NEW_WIZARD_DISABLED, PATH_DTOOL+"new_wiz.gif", true); //$NON-NLS-1$ declareWorkbenchImage(IWorkbenchGraphicConstants.IMG_ETOOL_IMPORT_WIZ, PATH_ETOOL+"import_wiz.gif", false); //$NON-NLS-1$ declareWorkbenchImage(IWorkbenchGraphicConstants.IMG_ETOOL_EXPORT_WIZ, PATH_ETOOL+"export_wiz.gif", false); //$NON-NLS-1$ declareWorkbenchImage(IDEInternalWorkbenchImages.IMG_ETOOL_BUILD_EXEC, PATH_ETOOL+"build_exec.gif", false); //$NON-NLS-1$ declareWorkbenchImage(IDEInternalWorkbenchImages.IMG_ETOOL_BUILD_EXEC_HOVER, PATH_ETOOL+"build_exec.gif", false); //$NON-NLS-1$ declareWorkbenchImage(IDEInternalWorkbenchImages.IMG_ETOOL_BUILD_EXEC_DISABLED, PATH_DTOOL+"build_exec.gif", false); //$NON-NLS-1$ declareWorkbenchImage(IDEInternalWorkbenchImages.IMG_ETOOL_SEARCH_SRC, PATH_ETOOL+"search_src.gif", false); //$NON-NLS-1$ declareWorkbenchImage(IDEInternalWorkbenchImages.IMG_ETOOL_SEARCH_SRC_HOVER, PATH_ETOOL+"search_src.gif", false); //$NON-NLS-1$ declareWorkbenchImage(IDEInternalWorkbenchImages.IMG_ETOOL_SEARCH_SRC_DISABLED, PATH_DTOOL+"search_src.gif", false); //$NON-NLS-1$ declareWorkbenchImage(IDEInternalWorkbenchImages.IMG_ETOOL_NEXT_NAV, PATH_ETOOL+"next_nav.gif", false); //$NON-NLS-1$ declareWorkbenchImage(IDEInternalWorkbenchImages.IMG_ETOOL_PREVIOUS_NAV, PATH_ETOOL+"prev_nav.gif", false); //$NON-NLS-1$ declareWorkbenchImage(IWorkbenchGraphicConstants.IMG_WIZBAN_NEW_WIZ, PATH_WIZBAN+"new_wiz.gif", false); //$NON-NLS-1$ declareWorkbenchImage(IDEInternalWorkbenchImages.IMG_WIZBAN_NEWPRJ_WIZ, PATH_WIZBAN+"newprj_wiz.gif", false); //$NON-NLS-1$ declareWorkbenchImage(IDEInternalWorkbenchImages.IMG_WIZBAN_NEWFOLDER_WIZ, PATH_WIZBAN+"newfolder_wiz.gif", false); //$NON-NLS-1$ declareWorkbenchImage(IDEInternalWorkbenchImages.IMG_WIZBAN_NEWFILE_WIZ, PATH_WIZBAN+"newfile_wiz.gif", false); //$NON-NLS-1$ declareWorkbenchImage(IWorkbenchGraphicConstants.IMG_WIZBAN_IMPORT_WIZ, PATH_WIZBAN+"import_wiz.gif", false); //$NON-NLS-1$ declareWorkbenchImage(IDEInternalWorkbenchImages.IMG_WIZBAN_IMPORTDIR_WIZ, PATH_WIZBAN+"importdir_wiz.gif", false); //$NON-NLS-1$ declareWorkbenchImage(IDEInternalWorkbenchImages.IMG_WIZBAN_IMPORTZIP_WIZ, PATH_WIZBAN+"importzip_wiz.gif", false); //$NON-NLS-1$ declareWorkbenchImage(IWorkbenchGraphicConstants.IMG_WIZBAN_EXPORT_WIZ, PATH_WIZBAN+"export_wiz.gif", false); //$NON-NLS-1$ declareWorkbenchImage(IDEInternalWorkbenchImages.IMG_WIZBAN_EXPORTDIR_WIZ, PATH_WIZBAN+"exportdir_wiz.gif", false); //$NON-NLS-1$ declareWorkbenchImage(IDEInternalWorkbenchImages.IMG_WIZBAN_EXPORTZIP_WIZ, PATH_WIZBAN+"exportzip_wiz.gif", false); //$NON-NLS-1$ declareWorkbenchImage(IDEInternalWorkbenchImages.IMG_WIZBAN_RESOURCEWORKINGSET_WIZ, PATH_WIZBAN+"workset_wiz.gif", false); //$NON-NLS-1$ declareWorkbenchImage(IDE.SharedImages.IMG_OBJ_PROJECT, PATH_OBJECT+"prj_obj.gif", true); //$NON-NLS-1$ declareWorkbenchImage(IDE.SharedImages.IMG_OBJ_PROJECT_CLOSED, PATH_OBJECT+"cprj_obj.gif", true); //$NON-NLS-1$ declareWorkbenchImage(IDE.SharedImages.IMG_OPEN_MARKER, PATH_ELOCALTOOL+"gotoobj_tsk.gif", true); //$NON-NLS-1$ // task objects //declareRegistryImage(IDEInternalWorkbenchImages.IMG_OBJS_HPRIO_TSK, PATH_OBJECT+"hprio_tsk.gif"); //declareRegistryImage(IDEInternalWorkbenchImages.IMG_OBJS_MPRIO_TSK, PATH_OBJECT+"mprio_tsk.gif"); //declareRegistryImage(IDEInternalWorkbenchImages.IMG_OBJS_LPRIO_TSK, PATH_OBJECT+"lprio_tsk.gif"); declareWorkbenchImage(IDE.SharedImages.IMG_OBJS_TASK_TSK, PATH_OBJECT+"taskmrk_tsk.gif", true); //$NON-NLS-1$ declareWorkbenchImage(IDE.SharedImages.IMG_OBJS_BKMRK_TSK, PATH_OBJECT+"bkmrk_tsk.gif", true); //$NON-NLS-1$ declareWorkbenchImage(IDEInternalWorkbenchImages.IMG_OBJS_COMPLETE_TSK, PATH_OBJECT+"complete_tsk.gif", true); //$NON-NLS-1$ declareWorkbenchImage(IDEInternalWorkbenchImages.IMG_OBJS_INCOMPLETE_TSK, PATH_OBJECT+"incomplete_tsk.gif", true); //$NON-NLS-1$ declareWorkbenchImage(IDEInternalWorkbenchImages.IMG_OBJS_WELCOME_ITEM, PATH_OBJECT+"welcome_item.gif", true); //$NON-NLS-1$ declareWorkbenchImage(IDEInternalWorkbenchImages.IMG_OBJS_WELCOME_BANNER, PATH_OBJECT+"welcome_banner.gif", true); //$NON-NLS-1$ // synchronization indicator objects //declareRegistryImage(IDEInternalWorkbenchImages.IMG_OBJS_WBET_STAT, PATH_OVERLAY+"wbet_stat.gif"); //declareRegistryImage(IDEInternalWorkbenchImages.IMG_OBJS_SBET_STAT, PATH_OVERLAY+"sbet_stat.gif"); //declareRegistryImage(IDEInternalWorkbenchImages.IMG_OBJS_CONFLICT_STAT, PATH_OVERLAY+"conflict_stat.gif"); // content locality indicator objects //declareRegistryImage(IDEInternalWorkbenchImages.IMG_OBJS_NOTLOCAL_STAT, PATH_STAT+"notlocal_stat.gif"); //declareRegistryImage(IDEInternalWorkbenchImages.IMG_OBJS_LOCAL_STAT, PATH_STAT+"local_stat.gif"); //declareRegistryImage(IDEInternalWorkbenchImages.IMG_OBJS_FILLLOCAL_STAT, PATH_STAT+"filllocal_stat.gif"); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/3ecaa8aeb909776b860e97cfa087b5c65c8fc4a4/IDEWorkbenchAdvisor.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchAdvisor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 14196, 2421, 22144, 8946, 1435, 288, 202, 202, 6385, 514, 467, 2248, 55, 67, 4211, 273, 315, 14516, 19, 2854, 4898, 31, 759, 8, 3993, 17, 5106, 17, 21, 8, 202, 202, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 14196, 2421, 22144, 8946, 1435, 288, 202, 202, 6385, 514, 467, 2248, 55, 67, 4211, 273, 315, 14516, 19, 2854, 4898, 31, 759, 8, 3993, 17, 5106, 17, 21, 8, 202, 202, 63...
&& (currentLocation == TOP_LEFT || currentLocation == TOP_RIGHT))
&& (currentLocation == TOP_LEFT || currentLocation == TOP_RIGHT)) {
private void createControlForLocation(int newLocation) { // if there is a control, then perhaps it can be reused if (perspectiveBar != null && perspectiveBar.getControl() != null && !perspectiveBar.getControl().isDisposed()) { if (newLocation == LEFT && currentLocation == LEFT) return; if ((newLocation == TOP_LEFT || newLocation == TOP_RIGHT) && (currentLocation == TOP_LEFT || currentLocation == TOP_RIGHT)) return; } if (perspectiveBar != null) { perspectiveBar.getControl().removeDisposeListener(toolBarListener); unhookDragSupport(); } // otherwise dispose the current controls and make new ones // First, make sure that the existing verion is removed from the trim layout window.getTrimManager().removeTrim(this); disposeChildControls(); if (newLocation == LEFT) createControlForLeft(); else createControlForTop(); hookDragSupport(); perspectiveBar.getControl().addDisposeListener(toolBarListener); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/PerspectiveSwitcher.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PerspectiveSwitcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 3367, 1290, 2735, 12, 474, 394, 2735, 13, 288, 202, 202, 759, 309, 1915, 353, 279, 3325, 16, 1508, 26282, 518, 848, 506, 23312, 202, 202, 430, 261, 10422, 16772, 51...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 3367, 1290, 2735, 12, 474, 394, 2735, 13, 288, 202, 202, 759, 309, 1915, 353, 279, 3325, 16, 1508, 26282, 518, 848, 506, 23312, 202, 202, 430, 261, 10422, 16772, 51...
this.maxStateSizeText = addLabelAndText(MAX_FILE_STATE_SIZE_TITLE,
this.maxStateSizeText = addLabelAndText(IDEWorkbenchMessages.FileHistory_diskSpace,
protected Control createContents(Composite parent) { PlatformUI.getWorkbench().getHelpSystem().setHelp(parent, IIDEHelpContextIds.FILE_STATES_PREFERENCE_PAGE); // button group Composite composite = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(); layout.numColumns = 2; composite.setLayout(layout); IWorkspaceDescription description = getWorkspaceDescription(); //Get the current value and make sure we get at least one day out of it. long days = description.getFileStateLongevity() / DAY_LENGTH; if (days < 1) days = 1; long megabytes = description.getMaxFileStateSize() / MEGABYTES; if (megabytes < 1) megabytes = 1; this.longevityText = addLabelAndText(LONGEVITY_TITLE, String .valueOf(days), composite); this.maxStatesText = addLabelAndText(MAX_FILE_STATES_TITLE, String .valueOf(description.getMaxFileStates()), composite); this.maxStateSizeText = addLabelAndText(MAX_FILE_STATE_SIZE_TITLE, String.valueOf(megabytes), composite); checkState(); //Create a spacing label to breakup the note from the fields Label spacer = new Label(composite, SWT.NONE); GridData spacerData = new GridData(); spacerData.horizontalSpan = 2; spacer.setLayoutData(spacerData); Composite noteComposite = createNoteComposite(parent.getFont(), composite, NOTE_LABEL, NOTE_MESSAGE); GridData noteData = new GridData(); noteData.horizontalSpan = 2; noteComposite.setLayoutData(noteData); applyDialogFont(composite); return composite; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/17cc64bd41c510877d13ea27b8d1035937402c83/FileStatesPage.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/FileStatesPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 8888, 752, 6323, 12, 9400, 982, 13, 288, 377, 202, 8201, 5370, 18, 588, 2421, 22144, 7675, 588, 6696, 3163, 7675, 542, 6696, 12, 2938, 16, 7734, 467, 10385, 6696, 1042, 2673, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 8888, 752, 6323, 12, 9400, 982, 13, 288, 377, 202, 8201, 5370, 18, 588, 2421, 22144, 7675, 588, 6696, 3163, 7675, 542, 6696, 12, 2938, 16, 7734, 467, 10385, 6696, 1042, 2673, 18, ...
_t = __t2462;
_t = __t2463;
public final void sql_col_def(AST _t) throws RecognitionException { AST sql_col_def_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t2457 = _t; AST tmp1615_AST_in = (AST)_t; match(_t,ID); _t = _t.getFirstChild(); AST tmp1616_AST_in = (AST)_t; if ( _t==null ) throw new MismatchedTokenException(); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PRECISION: { AST tmp1617_AST_in = (AST)_t; match(_t,PRECISION); _t = _t.getNextSibling(); break; } case 3: case CASESENSITIVE: case COLUMNLABEL: case DEFAULT: case FORMAT: case LABEL: case LEFTPAREN: case Not_casesens: case Not_null: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LEFTPAREN: { AST tmp1618_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); AST tmp1619_AST_in = (AST)_t; match(_t,NUMBER); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COMMA: { AST tmp1620_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); AST tmp1621_AST_in = (AST)_t; match(_t,NUMBER); _t = _t.getNextSibling(); break; } case RIGHTPAREN: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp1622_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); break; } case 3: case CASESENSITIVE: case COLUMNLABEL: case DEFAULT: case FORMAT: case LABEL: case Not_casesens: case Not_null: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Not_null: { AST __t2462 = _t; AST tmp1623_AST_in = (AST)_t; match(_t,Not_null); _t = _t.getFirstChild(); AST tmp1624_AST_in = (AST)_t; match(_t,NOT); _t = _t.getNextSibling(); AST tmp1625_AST_in = (AST)_t; match(_t,NULL_KW); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case UNIQUE: { AST tmp1626_AST_in = (AST)_t; match(_t,UNIQUE); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t2462; _t = _t.getNextSibling(); break; } case 3: case CASESENSITIVE: case COLUMNLABEL: case DEFAULT: case FORMAT: case LABEL: case Not_casesens: { break; } default: { throw new NoViableAltException(_t); } } } { _loop2467: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case DEFAULT: { AST __t2465 = _t; AST tmp1627_AST_in = (AST)_t; match(_t,DEFAULT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2465; _t = _t.getNextSibling(); break; } case FORMAT: { AST __t2466 = _t; AST tmp1628_AST_in = (AST)_t; match(_t,FORMAT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2466; _t = _t.getNextSibling(); break; } case CASESENSITIVE: case Not_casesens: { casesens_or_not(_t); _t = _retTree; break; } default: { break _loop2467; } } } while (true); } _t = __t2457; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1847, 67, 1293, 67, 536, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1847, 67, 1293, 67, 536, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1847, 67, 1293, 67, 536, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1847, 67, 1293, 67, 536, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, ...
if(getCHKOnly) { ClientKeyBlock block = encode(); cb.onEncode(block.getClientKey(), this); cb.onSuccess(this); finished = true; }
this.getCHKOnly = getCHKOnly;
public SingleBlockInserter(BaseClientPutter parent, Bucket data, short compressionCodec, FreenetURI uri, InserterContext ctx, PutCompletionCallback cb, boolean isMetadata, int sourceLength, int token, boolean getCHKOnly, boolean addToParent) throws InserterException { this.consecutiveRNFs = 0; this.token = token; this.parent = parent; this.retries = 0; this.finished = false; this.ctx = ctx; errors = new FailureCodeTracker(true); this.cb = cb; this.uri = uri; this.compressionCodec = compressionCodec; this.sourceData = data; this.isMetadata = isMetadata; this.sourceLength = sourceLength; if(getCHKOnly) { ClientKeyBlock block = encode(); cb.onEncode(block.getClientKey(), this); cb.onSuccess(this); finished = true; } if(addToParent) { parent.addBlock(); parent.addMustSucceedBlocks(1); parent.notifyClients(); } }
52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/21208e342489c2a0c49f6715dd86892930851371/SingleBlockInserter.java/clean/src/freenet/client/async/SingleBlockInserter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 10326, 1768, 382, 550, 387, 12, 2171, 1227, 6426, 387, 982, 16, 7408, 501, 16, 3025, 9154, 11008, 16, 478, 2842, 278, 3098, 2003, 16, 657, 550, 387, 1042, 1103, 16, 4399, 1123...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10326, 1768, 382, 550, 387, 12, 2171, 1227, 6426, 387, 982, 16, 7408, 501, 16, 3025, 9154, 11008, 16, 478, 2842, 278, 3098, 2003, 16, 657, 550, 387, 1042, 1103, 16, 4399, 1123...
products.setDimension(prod); DimensionStepManager steps = products.createDimensionStepManager(); AttributeFilter nameFilter = (AttributeFilter) steps.createDimensionStep(DimensionStepTypeEnum.ATTRIBUTE_FILTER); Attribute nameAttr = (Attribute)prod.getFeature().get(0); nameFilter.setAttribute(nameAttr); nameFilter.setSetAction(SetActionTypeEnum.INITIAL); nameFilter.setOp(OperatorTypeEnum.EQ); nameFilter.setRhs( "Fred" ); }
products.setDimension(prod); DimensionStepManager steps = products.createDimensionStepManager(); AttributeFilter nameFilter = (AttributeFilter) steps.createDimensionStep(DimensionStepTypeEnum.ATTRIBUTE_FILTER); Attribute nameAttr = (Attribute)prod.getFeature().get(0); nameFilter.setAttribute(nameAttr); nameFilter.setSetAction(SetActionTypeEnum.INITIAL); nameFilter.setOp(OperatorTypeEnum.EQ); nameFilter.setRhs( "Fred" ); }
public void _testSimpleDimensionView() throws OLAPException { Connection someConnection = getConnection(); Dimension prod = getDimension(someConnection, "Product"); DimensionView products = someConnection.createDimensionView(prod); products.setDimension(prod); DimensionStepManager steps = products.createDimensionStepManager(); AttributeFilter nameFilter = (AttributeFilter) steps.createDimensionStep(DimensionStepTypeEnum.ATTRIBUTE_FILTER); Attribute nameAttr = (Attribute)prod.getFeature().get(0); nameFilter.setAttribute(nameAttr); nameFilter.setSetAction(SetActionTypeEnum.INITIAL); nameFilter.setOp(OperatorTypeEnum.EQ); nameFilter.setRhs( "Fred" ); }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/b5b5168edc3af09cb74945a80b0c36e6630ed502/JolapTest.java/clean/testsrc/main/mondrian/test/JolapTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 389, 3813, 5784, 8611, 1767, 1435, 1216, 531, 48, 2203, 503, 288, 202, 202, 1952, 2690, 1952, 273, 6742, 5621, 202, 202, 8611, 10791, 273, 20283, 12, 19068, 1952, 16, 315, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 3813, 5784, 8611, 1767, 1435, 1216, 531, 48, 2203, 503, 288, 202, 202, 1952, 2690, 1952, 273, 6742, 5621, 202, 202, 8611, 10791, 273, 20283, 12, 19068, 1952, 16, 315, ...
if ((lastOperation != PREV) && (lastOperation != NEXT)) {
if ((lastOperation == ADD) || (lastOperation == REMOVE)) { throw new IllegalStateException("cannot call set() after " + "add() or remove()"); } if (last < 0) {
public void set(Object obj) { checkConcurrentModification(); if ((lastOperation != PREV) && (lastOperation != NEXT)) { throw new IllegalStateException("no preceeding call to " + "prev() or next()"); } if (filter.canAdd(obj)) { Object old = ContentList.this.get(last); if (!filter.canRemove(old)) { throw new IllegalAddException("Filter won't allow " + (old.getClass()).getName() + " (index " + last + ") to be removed"); } ContentList.this.set(last, obj); } else { throw new IllegalAddException("Filter won't allow index " + last + " to be set to " + (obj.getClass()).getName()); } expected = ContentList.this.getModCount(); lastOperation = REMOVE; }
49530 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49530/6bf5fc45d0b53a4e2abcb5cfc3e8e21295768e4d/ContentList.java/buggy/core/src/java/org/jdom/ContentList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 444, 12, 921, 1081, 13, 288, 5411, 866, 18521, 13467, 5621, 5411, 309, 14015, 2722, 2988, 422, 11689, 13, 747, 261, 2722, 2988, 422, 26056, 3719, 288, 604, 394, 5477, 2932, 128...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 444, 12, 921, 1081, 13, 288, 5411, 866, 18521, 13467, 5621, 5411, 309, 14015, 2722, 2988, 422, 11689, 13, 747, 261, 2722, 2988, 422, 26056, 3719, 288, 604, 394, 5477, 2932, 128...
if(parent != null) { if(parent != finalP1) { while(!(parent instanceof JFrame)) {
if (parent != null) { if (parent != finalP1) { while (!(parent instanceof JFrame)) {
ContextWindow(Main db) { super(); this.db = db; enabled = false; JPanel left = new JPanel(); JToolBar t1 = new JToolBar(); t1.setName("Variables"); t1.setLayout(new GridLayout()); t1.add(left); JPanel p1 = new JPanel(); p1.setLayout(new GridLayout()); JPanel p2 = new JPanel(); p2.setLayout(new GridLayout()); p1.add(t1); JLabel label = new JLabel("Context:"); context = new JComboBox(); context.setLightWeightPopupEnabled(false); toolTips = new java.util.Vector(); label.setBorder(context.getBorder()); context.addActionListener(this); context.setActionCommand("ContextSwitch"); GridBagLayout layout = new GridBagLayout(); left.setLayout(layout); GridBagConstraints lc = new GridBagConstraints(); lc.insets.left = 5; lc.anchor = GridBagConstraints.WEST; lc.ipadx = 5; layout.setConstraints(label, lc); left.add(label); GridBagConstraints c = new GridBagConstraints(); c.gridwidth = GridBagConstraints.REMAINDER; c.fill = GridBagConstraints.HORIZONTAL; c.anchor = GridBagConstraints.WEST; layout.setConstraints(context, c); left.add(context); tabs = new JTabbedPane(SwingConstants.BOTTOM); tabs.setPreferredSize(new Dimension(500,300)); thisTable = new MyTreeTable(new AbstractTreeTableModel(new DefaultMutableTreeNode()) { public Object getChild(Object parent, int index) { return null; } public int getChildCount(Object parent) { return 0; } public int getColumnCount() { //return 3; return 2; } public String getColumnName(int column) { switch(column) { case 0: return " Name"; case 1: //return "Type"; //case 2: return " Value"; } return null; } public Object getValueAt(Object node, int column) { return null; } }); JScrollPane jsp = new JScrollPane(thisTable); jsp.getViewport().setViewSize(new Dimension(5,2)); tabs.add("this", jsp); localsTable = new MyTreeTable(new AbstractTreeTableModel(new DefaultMutableTreeNode()) { public Object getChild(Object parent, int index) { return null; } public int getChildCount(Object parent) { return 0; } public int getColumnCount() { return 2; } public String getColumnName(int column) { switch(column) { case 0: return " Name"; case 1: return " Value"; } return null; } public Object getValueAt(Object node, int column) { return null; } }); localsTable.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS); localsTable.setPreferredSize(null); jsp = new JScrollPane(localsTable); tabs.add("Locals", jsp); c.weightx = c.weighty = 1; c.gridheight = GridBagConstraints.REMAINDER; c.fill = GridBagConstraints.BOTH; c.anchor = GridBagConstraints.WEST; layout.setConstraints(tabs, c); left.add(tabs); evaluator = new Evaluator(db); cmdLine = new EvalTextArea(db); //cmdLine.requestFocus(); tableModel = evaluator.tableModel; jsp = new JScrollPane(evaluator); JToolBar t2 = new JToolBar(); t2.setName("Evaluate"); tabs2 = new JTabbedPane(SwingConstants.BOTTOM); tabs2.add("Watch", jsp); tabs2.add("Evaluate", new JScrollPane(cmdLine)); tabs2.setPreferredSize(new Dimension(500,300)); t2.setLayout(new GridLayout()); t2.add(tabs2); p2.add(t2); evaluator.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS); split = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, p1, p2); split.setOneTouchExpandable(true); Main.setResizeWeight(split, 0.5); setLayout(new BorderLayout()); add(split, BorderLayout.CENTER); final JToolBar finalT1 = t1; final JToolBar finalT2 = t2; final JPanel finalP1 = p1; final JPanel finalP2 = p2; final JSplitPane finalSplit = split; final JPanel finalThis = this; final Main finalDb = db; ComponentListener clistener = new ComponentListener() { boolean t1Docked = true; boolean t2Docked = true; void check(Component comp) { Component thisParent = finalThis.getParent(); if(thisParent == null) { return; } Component parent = finalT1.getParent(); boolean leftDocked = true; boolean rightDocked = true; boolean adjustVerticalSplit = false; if(parent != null) { if(parent != finalP1) { while(!(parent instanceof JFrame)) { parent = parent.getParent(); } JFrame frame = (JFrame)parent; finalDb.addTopLevel("Variables", frame); // We need the following hacks because: // - We want an undocked toolbar to be // resizable. // - We are using JToolbar as a container of a // JComboBox. Without this JComboBox's popup // can get left floating when the toolbar is // re-docked. // // We make the frame resizable and then // remove JToolbar's window listener // and insert one of our own that first ensures // the JComboBox's popup window is closed // and then calls JToolbar's window listener. if(!frame.isResizable()) { frame.setResizable(true); frame.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); final EventListener[] l = frame.getListeners(WindowListener.class); frame.removeWindowListener((WindowListener)l[0]); frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { context.hidePopup(); ((WindowListener)l[0]).windowClosing(e); } }); //adjustVerticalSplit = true; } leftDocked = false; } else { leftDocked = true; } } parent = finalT2.getParent(); if(parent != null) { if(parent != finalP2) { while(!(parent instanceof JFrame)) { parent = parent.getParent(); } JFrame frame = (JFrame)parent; finalDb.addTopLevel("Evaluate", frame); frame.setResizable(true); rightDocked = false; } else { rightDocked = true; } } if(leftDocked && t2Docked && rightDocked && t2Docked) { // no change return; } t1Docked = leftDocked; t2Docked = rightDocked; JSplitPane split = (JSplitPane)thisParent; if(leftDocked) { if(rightDocked) { finalSplit.setDividerLocation(0.5); } else { finalSplit.setDividerLocation(1.0); } if(adjustVerticalSplit) { split.setDividerLocation(0.66); } } else if(rightDocked) { finalSplit.setDividerLocation(0.0); split.setDividerLocation(0.66); } else { // both undocked split.setDividerLocation(1.0); } } public void componentHidden(ComponentEvent e) { check(e.getComponent()); } public void componentMoved(ComponentEvent e) { check(e.getComponent()); } public void componentResized(ComponentEvent e) { check(e.getComponent()); } public void componentShown(ComponentEvent e) { check(e.getComponent()); } }; p1.addContainerListener(new ContainerListener() { public void componentAdded(ContainerEvent e) { Component thisParent = finalThis.getParent(); JSplitPane split = (JSplitPane)thisParent; if(e.getChild() == finalT1) { if(finalT2.getParent() == finalP2) { // both docked finalSplit.setDividerLocation(0.5); } else { // left docked only finalSplit.setDividerLocation(1.0); } split.setDividerLocation(0.66); } } public void componentRemoved(ContainerEvent e) { Component thisParent = finalThis.getParent(); JSplitPane split = (JSplitPane)thisParent; if(e.getChild() == finalT1) { if(finalT2.getParent() == finalP2) { // right docked only finalSplit.setDividerLocation(0.0); split.setDividerLocation(0.66); } else { // both undocked split.setDividerLocation(1.0); } } } }); t1.addComponentListener(clistener); t2.addComponentListener(clistener); disable(); }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/b9766e81693411fa600b26b9a0763dcf621b2770/Main.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1772, 3829, 12, 6376, 1319, 13, 288, 3639, 2240, 5621, 3639, 333, 18, 1966, 273, 1319, 31, 3639, 3696, 273, 629, 31, 3639, 24048, 2002, 273, 394, 24048, 5621, 3639, 804, 6364, 5190, 268, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1772, 3829, 12, 6376, 1319, 13, 288, 3639, 2240, 5621, 3639, 333, 18, 1966, 273, 1319, 31, 3639, 3696, 273, 629, 31, 3639, 24048, 2002, 273, 394, 24048, 5621, 3639, 804, 6364, 5190, 268, ...
super(undoTag); this.setEnabled(true); }
super(undoTag); this.setEnabled(true); }
Undo() { super(undoTag); this.setEnabled(true); }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/b0fa2f56cd2dcc90452b768e6b38187cfb8c30eb/AddressBook.java/clean/grendel/addressbook/AddressBook.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1351, 2896, 1435, 288, 5411, 2240, 12, 31226, 1805, 1769, 5411, 333, 18, 542, 1526, 12, 3767, 1769, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1351, 2896, 1435, 288, 5411, 2240, 12, 31226, 1805, 1769, 5411, 333, 18, 542, 1526, 12, 3767, 1769, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
return readImpl(target);
readCount = readImpl(readArray);
public int read(ByteBuffer target) throws IOException { if (null == target) { throw new NullPointerException(); } checkOpenConnected(); synchronized (readLock) { return readImpl(target); } }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/e9bb2c88e1a6dea01db83a44ea8418e0e072356c/SocketChannelImpl.java/buggy/modules/nio/src/main/java/org/apache/harmony/nio/internal/SocketChannelImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 855, 12, 12242, 1018, 13, 1216, 1860, 288, 3639, 309, 261, 2011, 422, 1018, 13, 288, 5411, 604, 394, 10108, 5621, 3639, 289, 3639, 866, 3678, 8932, 5621, 3639, 3852, 261, 896, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 855, 12, 12242, 1018, 13, 1216, 1860, 288, 3639, 309, 261, 2011, 422, 1018, 13, 288, 5411, 604, 394, 10108, 5621, 3639, 289, 3639, 866, 3678, 8932, 5621, 3639, 3852, 261, 896, ...
private void parseNotationDecl ()
private void parseNotationDecl()
private void parseNotationDecl () throws Exception { String nname, ids[]; requireWhitespace (); nname = readNmtoken (true); //NE08 if (nname.indexOf(':') >= 0) error ("Illegal character(':') in notation name ", nname, null); requireWhitespace (); // Read the external identifiers. ids = readExternalIds (true, false); // Register the notation. setNotation (nname, ids); skipWhitespace (); require ('>'); }
13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/7fb7568e63c3fe14af521de4699cb37898923ca7/XmlParser.java/clean/libjava/gnu/xml/aelfred2/XmlParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1109, 14818, 3456, 1435, 565, 1216, 1185, 565, 288, 202, 780, 290, 529, 16, 3258, 8526, 31, 202, 6528, 9431, 261, 1769, 202, 82, 529, 273, 855, 50, 1010, 969, 261, 3767, 1769...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1109, 14818, 3456, 1435, 565, 1216, 1185, 565, 288, 202, 780, 290, 529, 16, 3258, 8526, 31, 202, 6528, 9431, 261, 1769, 202, 82, 529, 273, 855, 50, 1010, 969, 261, 3767, 1769...
if (e.getStateChange() == ItemEvent.SELECTED && (JCheckBoxMenuItem) e.getItem() == advView)
if (e.getStateChange() == ItemEvent.SELECTED && (JCheckBoxMenuItem) e.getItem() == advView)
public void itemStateChanged(ItemEvent e) { if (e.getStateChange() == ItemEvent.SELECTED && (JCheckBoxMenuItem) e.getItem() == advView) { noteView.setState(false); normView.setState(false); scanView.setState(false); metadata.setVisible(false); noteP.setVisible(false); scanP.setVisible(false); tabsMenu.setEnabled(false); fileNew.setEnabled(false); mdp.setOMEXML(metadata.getRoot()); mdp.setVisible(true); } else if (e.getStateChange() == ItemEvent.SELECTED && (JCheckBoxMenuItem) e.getItem() == noteView) { advView.setState(false); normView.setState(false); scanView.setState(false); metadata.setVisible(false); mdp.setVisible(false); scanP.setVisible(false); tabsMenu.setEnabled(false); fileNew.setEnabled(false); noteP.setPanels(metadata.panelList); noteP.setVisible(true); } else if (e.getStateChange() == ItemEvent.SELECTED && (JCheckBoxMenuItem) e.getItem() == scanView) { noteView.setState(false); advView.setState(false); normView.setState(false); metadata.setVisible(false); mdp.setVisible(false); tabsMenu.setEnabled(false); fileNew.setEnabled(false); scanP.setOMEXML(metadata.getRoot()); scanP.setVisible(true); } else if (e.getStateChange() == ItemEvent.SELECTED && (JCheckBoxMenuItem) e.getItem() == normView) { advView.setState(false); noteView.setState(false); scanView.setState(false); noteP.setVisible(false); scanP.setVisible(false); mdp.setVisible(false); tabsMenu.setEnabled(true); fileNew.setEnabled(true); metadata.reRender(); metadata.setVisible(true); } else if (e.getStateChange() == ItemEvent.SELECTED && (JCheckBoxMenuItem) e.getItem() == showID) { metadata.showIDs = true; metadata.reRender(); } else if (e.getStateChange() == ItemEvent.DESELECTED && (JCheckBoxMenuItem) e.getItem() == showID) { metadata.showIDs = false; metadata.reRender(); } else { if(!advView.getState() && !noteView.getState() && !scanView.getState()) normView.setState(true); else { noteP.setVisible(false); mdp.setVisible(false); scanP.setVisible(false); tabsMenu.setEnabled(true); fileNew.setEnabled(true); metadata.reRender(); metadata.setVisible(true); } } }
49800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49800/557a93a201e2f0530cb2de2bc8c33b83b9b8b97f/MetadataNotebook.java/buggy/loci/ome/notebook/MetadataNotebook.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 761, 1119, 5033, 12, 1180, 1133, 425, 13, 288, 565, 309, 261, 73, 18, 588, 22505, 1435, 422, 4342, 1133, 18, 4803, 2056, 597, 4202, 261, 46, 19174, 12958, 13, 425, 18, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 761, 1119, 5033, 12, 1180, 1133, 425, 13, 288, 565, 309, 261, 73, 18, 588, 22505, 1435, 422, 4342, 1133, 18, 4803, 2056, 597, 4202, 261, 46, 19174, 12958, 13, 425, 18, 588, ...
public void mouseUp(MouseEvent e) { final Tree tree = fTreeViewer.getTree(); if (tree.getSelectionCount() < 1) { return; } if (e.button != 1) { return; }
public void mouseUp(MouseEvent e) {
private MouseListener createMouseListenerForTreeViewer() { final MouseListener mouseListener = new MouseAdapter() { public void mouseUp(MouseEvent e) { final Tree tree = fTreeViewer.getTree(); if (tree.getSelectionCount() < 1) { return; } if (e.button != 1) { return; } if (tree.equals(e.getSource())) { Object o = tree.getItem(new Point(e.x, e.y)); final TreeItem selection = tree.getSelection()[0]; if (selection.equals(o)) { CElement selectedElement = (CElement) selection .getData(); fEditor.setSelection(selectedElement); dispose(); } if (fComposite != null && !fComposite.isDisposed()) { fBounds = fComposite.getBounds(); } } } }; return mouseListener; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/0482b3954404fd528d629e737114a70d018a10db/COutlineInformationControl.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/COutlineInformationControl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 17013, 2223, 752, 9186, 2223, 1290, 2471, 18415, 1435, 288, 3639, 727, 17013, 2223, 7644, 2223, 273, 394, 17013, 4216, 1435, 288, 5411, 1071, 918, 7644, 1211, 12, 9186, 1133, 425, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 17013, 2223, 752, 9186, 2223, 1290, 2471, 18415, 1435, 288, 3639, 727, 17013, 2223, 7644, 2223, 273, 394, 17013, 4216, 1435, 288, 5411, 1071, 918, 7644, 1211, 12, 9186, 1133, 425, 13,...
private static boolean isSimpleFieldAccess(PsiExpression expression) {
private boolean isSimpleFieldAccess(PsiExpression expression) { expression = PsiUtil.deparenthesizeExpression(expression);
private static boolean isSimpleFieldAccess(PsiExpression expression) { if (expression == null) { return false; } if (expression instanceof PsiParenthesizedExpression) { final PsiExpression operand = ((PsiParenthesizedExpression)expression).getExpression(); return isSimpleFieldAccess(operand); } if (!(expression instanceof PsiReferenceExpression)) { return false; } final PsiElement referent = ((PsiReference)expression).resolve(); if (!(referent instanceof PsiField)) { return false; } final PsiField field = (PsiField)referent; return !field.hasModifierProperty(PsiModifier.VOLATILE); }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/12e3c2ef8d713515104d66f375124085f3915b5a/WhileLoopSpinsOnFieldInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/threading/WhileLoopSpinsOnFieldInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 1250, 353, 5784, 974, 1862, 12, 52, 7722, 2300, 2652, 13, 288, 2652, 273, 453, 7722, 1304, 18, 323, 13012, 7915, 554, 2300, 12, 8692, 1769, 5411, 309, 261, 8692, 422, 446, 13, 288...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 1250, 353, 5784, 974, 1862, 12, 52, 7722, 2300, 2652, 13, 288, 2652, 273, 453, 7722, 1304, 18, 323, 13012, 7915, 554, 2300, 12, 8692, 1769, 5411, 309, 261, 8692, 422, 446, 13, 288...
191, 191, 191, 0, 0, 191, 191, 191, 0, 191, 0, 0, 185, 185, 0, 0, 0, 0, 0, 191, 191, 0, 0, 0, 0, 0, 0, 0, 191, 191, 0, 191, 191, 191, 191, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 0, 0, 191, 191, 184, 184, 184, 191, 0, 184, 184, 184, 191, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 184, 184, 0, 0, 0, 0, 0, 0, 0, 184, 184, 0, 184, 184, 184, 184, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 0, 0, 184, 184, 0, 0, 0, 184, 185, 185, 185, 0, 184, 185, 185, 185, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185, 185, 0, 0, 0, 0, 0, 0, 0, 185, 185, 0, 185, 185, 185, 185, 185, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 0, 0, 185, 185, 0, 209, 0, 185, 209, 0, 0, 209, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 209, 209, 209, 0, 209, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 0, 0, 0, 0, 0, 0, 334, 329, 0, 209, 209, 332, 330, 0, 331, 0, 333, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 0, 326, 210, 325, 324, 210, 0, 0, 0, 0, 0, 0, 209, 209, 0, 0, 0, 0, 0, 210, 210, 210,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, 191, 191, 0, 0, 191, 191, 191, 0, 191, 0, 0, 185, 185, 0, 0, 0, 0, 0, 191, 191, 0, 0, 0, 0, 0, 0, 0, 191, 191, 0, 191, 191, 191, 191, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 0, 0, 191, 191, 184, 184, 184, 191, 0, 184, 184, 184, 191, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 184, 184, 0, 0, 0, 0, 0, 0, 0, 184, 184, 0, 184, 184, 184, 184, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 0, 0, 184, 184, 0, 0, 0, 184, 185, 185, 185, 0, 184, 185, 185, 185, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185, 185, 0, 0, 0, 0, 0, 0, 0, 185, 185, 0, 185, 185, 185, 185, 185, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 0, 0, 185, 185, 0, 209, 0, 185, 209, 0, 0, 209, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 209, 209, 209, 0, 209, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 0, 0, 0, 0, 0, 0, 334, 329, 0, 209, 209, 332, 330, 0, 331, 0, 333, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 0, 326, 210, 325, 324, 210, 0, 0, 0, 0, 0, 0, 209, 209, 0, 0, 0, 0, 0, 210, 210, 210, 0, 210, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 328, 0, 0, 196, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 0, 0, 0, 0, 0, 210, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 327, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 0, 0, 196, 0, 0, 196, 0, 0, 210, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 196, 196, 0, 196, 196, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 334, 329, 0, 0, 0, 332, 330, 0, 331, 0, 333, 0, 0, 0, 0, 196, 196, 0, 0, 0, 0, 0, 0, 326, 0, 325, 0, 0, 0, 0, 0, 0, 0, 0, 209, 209, 209, 0, 0, 209, 209, 209, 0, 209, 0, 0, 196, 196, 0, 0, 0, 0, 0, 209, 209, 0, 0, 328, 0, 0, 0, 0, 209, 209, 0, 209, 209, 209, 209, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 327, 0, 0, 0, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 0, 0, 209, 209, 210, 210, 210, 209, 0, 210, 210, 210, 209, 210, 0, 0, 0, 0, 0, 0, 0, 0,
private static final short[] yyTable3() { return new short[] { 0, 0, 188, 0, 186, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 187, 187, 188, 188, 0, 0, 188, 188, 188, 188, 188, 0, 188, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 188, 188, 188, 0, 188, 188, 0, 0, 0, 0, 0, 0, 0, 0, 0, 190, 0, 0, 0, 0, 0, 0, 0, 0, 0, 190, 0, 0, 0, 0, 0, 0, 0, 0, 0, 188, 188, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 190, 190, 0, 0, 190, 190, 190, 190, 190, 0, 190, 0, 0, 0, 188, 188, 0, 0, 0, 0, 0, 190, 190, 190, 0, 190, 190, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 190, 190, 0, 0, 0, 0, 0, 187, 187, 187, 0, 0, 187, 187, 187, 0, 187, 0, 212, 0, 0, 0, 0, 0, 0, 0, 187, 187, 212, 0, 0, 190, 190, 0, 0, 187, 187, 0, 187, 187, 187, 187, 187, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 212, 0, 0, 212, 0, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 212, 212, 187, 187, 0, 212, 0, 187, 0, 0, 0, 0, 187, 0, 0, 0, 0, 0, 0, 0, 188, 188, 188, 0, 0, 188, 188, 188, 0, 188, 0, 0, 0, 0, 0, 212, 0, 0, 0, 188, 188, 0, 0, 0, 0, 0, 0, 0, 188, 188, 0, 188, 188, 188, 188, 188, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 212, 0, 0, 0, 0, 0, 0, 0, 0, 0, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 0, 0, 188, 188, 190, 190, 190, 188, 0, 190, 190, 190, 188, 190, 0, 0, 0, 0, 0, 0, 0, 0, 0, 190, 190, 0, 0, 0, 0, 0, 0, 0, 190, 190, 0, 190, 190, 190, 190, 190, 0, 0, 0, 0, 0, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, 0, 0, 0, 0, 0, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 0, 0, 190, 190, 0, 0, 0, 190, 0, 191, 191, 0, 190, 191, 191, 191, 191, 191, 0, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, 191, 191, 0, 191, 191, 0, 0, 0, 0, 0, 0, 212, 212, 212, 184, 0, 212, 212, 212, 0, 212, 0, 0, 0, 184, 0, 0, 0, 0, 0, 212, 212, 0, 0, 191, 191, 0, 0, 0, 212, 212, 0, 212, 212, 212, 212, 212, 0, 0, 0, 0, 0, 184, 0, 0, 184, 0, 184, 184, 184, 0, 0, 0, 0, 0, 191, 191, 0, 0, 0, 0, 0, 184, 184, 184, 212, 184, 184, 212, 212, 0, 0, 0, 0, 0, 0, 0, 212, 0, 0, 0, 185, 212, 0, 0, 0, 0, 0, 0, 0, 0, 185, 0, 0, 0, 0, 0, 184, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185, 0, 0, 185, 0, 185, 185, 185, 0, 184, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185, 185, 185, 0, 185, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, 191, 191, 0, 0, 191, 191, 191, 0, 191, 0, 0, 185, 185, 0, 0, 0, 0, 0, 191, 191, 0, 0, 0, 0, 0, 0, 0, 191, 191, 0, 191, 191, 191, 191, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 0, 0, 191, 191, 184, 184, 184, 191, 0, 184, 184, 184, 191, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 184, 184, 0, 0, 0, 0, 0, 0, 0, 184, 184, 0, 184, 184, 184, 184, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 0, 0, 184, 184, 0, 0, 0, 184, 185, 185, 185, 0, 184, 185, 185, 185, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185, 185, 0, 0, 0, 0, 0, 0, 0, 185, 185, 0, 185, 185, 185, 185, 185, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 0, 0, 185, 185, 0, 209, 0, 185, 209, 0, 0, 209, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 209, 209, 209, 0, 209, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 0, 0, 0, 0, 0, 0, 334, 329, 0, 209, 209, 332, 330, 0, 331, 0, 333, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 0, 326, 210, 325, 324, 210, 0, 0, 0, 0, 0, 0, 209, 209, 0, 0, 0, 0, 0, 210, 210, 210, 0, 210, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 328, 0, 0, 196, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 0, 0, 0, 0, 0, 210, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 327, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 0, 0, 196, 0, 0, 196, 0, 0, 210, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 196, 196, 0, 196, 196, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 334, 329, 0, 0, 0, 332, 330, 0, 331, 0, 333, 0, 0, 0, 0, 196, 196, 0, 0, 0, 0, 0, 0, 326, 0, 325, 0, 0, 0, 0, 0, 0, 0, 0, 209, 209, 209, 0, 0, 209, 209, 209, 0, 209, 0, 0, 196, 196, 0, 0, 0, 0, 0, 209, 209, 0, 0, 328, 0, 0, 0, 0, 209, 209, 0, 209, 209, 209, 209, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 327, 0, 0, 0, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 0, 0, 209, 209, 210, 210, 210, 209, 0, 210, 210, 210, 209, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 210, 0, 0, 0, 0, 0, 0, 0, 210, 210, 0, 210, 210, 210, 210, 210, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 0, 0, 210, 210, 0, 0, 0, 210, 196, 196, 196, 0, 210, 196, 196, 196, 0, 196, 0, 194, 0, 0, 0, 0, 0, 0, 0, 196, 196, 194, 0, 0, 0, 0, 0, 0, 196, 196, 0, 196, 196, 196, 196, 196, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 194, 0, 0, 194, 0, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 194, 194, 194, 0, 194, 194, 0, 196, 0, 0, 0, 0, 196, 0, 0, 195, 0, 0, 0, 0, 0, 0, 0, 0, 0, 195, 0, 0, 309, 310, 311, 312, 313, 314, 315, 194, 194, 318, 319, 0, 0, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 195, 0, 0, 195, 0, 0, 0, 0, 0, 0, 194, 194, 0, 0, 0, 0, 0, 195, 195, 195, 0, 195, 195, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 199, 0, 0, 0, 0, 0, 0, 0, 0, 0, 199, 0, 0, 0, 0, 0, 195, 195, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 199, 0, 0, 199, 0, 0, 195, 195, 0, 0, 0, 0, 0, 0, 0, 0, 0, 199, 199, 199, 0, 199, 199, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 199, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 194, 194, 194, 0, 0, 194, 194, 194, 0, 194, 0, 0, 0, 199, 0, 0, 0, 0, 0, 194, 194, 0, 177, 0, 185, 0, 0, 0, 194, 194, 0, 194, 194, 194, 194, 194, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 0, 0, 0, 0, 195, 195, 195, 194, 0, 195, 195, 195, 194, 195, 0, 0, 0, 0, 0, 0, 0, 0, 0, 195, 195, 0, 0, 0, 0, 0, 0, 0, 195, 195, 201, 195, 195, 195, 195, 195, 0, 0, 0, 0, 201, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 0, 0, 201, 0, 0, 201, 0, 195, 199, 199, 199, 0, 195, 199, 199, 199, 0, 199, 0, 201, 201, 201, 0, 201, 201, 0, 0, 199, 199, 0, 0, 0, 0, 0, 0, 0, 199, 199, 198, 199, 199, 199, 199, 199, 0, 0, 0, 0, 198, 0, 0, 0, 0, 0, 201, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 0, 0, 198, 0, 0, 198, 0, 199, 0, 201, 0, 0, 199, 515, 516, 0, 0, 517, 0, 198, 198, 198, 0, 198, 198, 160, 161, 162, 163, 164, 165, 0, 166, 167, 200, 0, 168, 0, 0, 0, 169, 170, 171, 172, 200, 0, 0, 0, 0, 0, 0, 0, 0, 173, 198, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 200, 0, 0, 200, 0, 0, 0, 0, 0, 0, 0, 198, 0, 0, 0, 0, 0, 200, 200, 200, 0, 200, 200, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 200, 203, 0, 0, 0, 0, 0, 0, 0, 0, 0, 203, 0, 0, 0, 0, 0, 0, 0, 201, 201, 201, 0, 0, 201, 201, 201, 0, 201, 0, 0, 0, 200, 0, 0, 0, 0, 0, 201, 201, 0, 0, 203, 0, 0, 203, 0, 201, 201, 0, 201, 201, 201, 201, 201, 0, 0, 0, 0, 203, 203, 0, 0, 0, 203, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 0, 0, 0, 0, 0, 0, 203, 201, 198, 198, 198, 0, 201, 198, 198, 198, 0, 198, 0, 0, 0, 0, 0, 0, 0, 0, 0, 198, 198, 0, 0, 0, 0, 0, 0, 0, 198, 198, 203, 198, 198, 198, 198, 198, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 0, 0, 0, 0, 200, 200, 200, 198, 0, 200, 200, 200, 198, 200, 0, 204, 0, 0, 0, 0, 0, 0, 0, 200, 200, 204, 0, 0, 0, 0, 0, 0, 200, 200, 0, 200, 200, 200, 200, 200, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 204, 0, 0, 204, 0, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 204, 204, 0, 0, 0, 204, 0, 200, 0, 0, 0, 0, 200, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 203, 203, 203, 211, 0, 203, 203, 203, 0, 203, 204, 0, 0, 211, 0, 0, 0, 0, 0, 203, 203, 0, 0, 0, 0, 0, 0, 0, 203, 203, 0, 203, 203, 203, 203, 203, 0, 0, 0, 0, 0, 263, 204, 0, 211, 0, 0, 211, 0, 0, 0, 263, 0, 0, 0, 0, 0, 0, 0, 0, 0, 211, 211, 203, 203, 0, 211, 203, 203, 0, 0, 0, 0, 0, 0, 0, 203, 0, 0, 0, 205, 203, 263, 0, 0, 262, 0, 0, 0, 0, 205, 0, 0, 0, 0, 0, 211, 0, 0, 263, 263, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 205, 0, 0, 205, 0, 0, 0, 211, 0, 0, 206, 0, 0, 0, 0, 0, 0, 205, 205, 0, 206, 0, 205, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 263, 0, 0, 0, 0, 0, 206, 205, 0, 206, 0, 0, 0, 204, 204, 204, 182, 0, 204, 204, 204, 0, 204, 206, 206, 0, 182, 0, 206, 0, 0, 0, 204, 204, 0, 0, 0, 0, 0, 205, 0, 204, 204, 0, 204, 204, 204, 204, 204, 0, 0, 0, 0, 0, 183, 0, 0, 182, 206, 0, 182, 0, 0, 0, 183, 0, 0, 0, 0, 0, 0, 0, 0, 0, 182, 182, 204, 204, 0, 182, 204, 204, 0, 0, 0, 0, 0, 0, 0, 204, 206, 0, 0, 0, 204, 183, 0, 0, 183, 211, 211, 211, 0, 0, 211, 211, 211, 0, 211, 182, 0, 0, 183, 183, 0, 0, 0, 183, 211, 211, 0, 0, 0, 0, 0, 0, 0, 211, 211, 0, 211, 211, 211, 211, 211, 0, 0, 263, 263, 263, 0, 182, 263, 263, 263, 0, 263, 183, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 211, 211, 0, 0, 211, 211, 263, 263, 263, 263, 263, 0, 0, 211, 205, 205, 205, 183, 211, 205, 205, 205, 0, 205, 0, 0, 0, 0, 0, 0, 0, 0, 0, 205, 205, 0, 0, 0, 0, 0, 0, 0, 205, 205, 0, 205, 205, 205, 205, 205, 0, 263, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 206, 206, 206, 0, 0, 206, 206, 206, 0, 206, 0, 0, 205, 205, 0, 0, 205, 205, 0, 206, 206, 0, 0, 0, 0, 205, 0, 0, 206, 206, 205, 206, 206, 206, 206, 206, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 182, 182, 182, 0, 0, 182, 182, 182, 0, 182, 0, 0, 206, 206, 0, 0, 206, 206, 0, 182, 182, 0, 0, 0, 0, 206, 0, 0, 182, 182, 206, 182, 182, 182, 182, 182, 217, 0, 183, 183, 183, 0, 0, 183, 183, 183, 217, 183, 0, 0, 0, 0, 0, 0, 0, 0, 0, 183, 183, 0, 0, 0, 0, 0, 0, 0, 183, 183, 0, 183, 183, 183, 183, 183, 181, 0, 182, 217, 0, 0, 217, 182, 0, 0, 181, 0, 0, 0, 0, 0, 0, 0, 0, 0, 217, 217, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 174, 183, 181, 0, 0, 181, 183, 0, 0, 0, 174, 0, 0, 0, 0, 0, 217, 0, 0, 181, 181, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 214, 0, 174, 0, 0, 174, 0, 0, 0, 217, 214, 0, 0, 0, 0, 181, 0, 0, 0, 174, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 180, 0, 0, 214, 0, 0, 214, 0, 0, 181, 180, 0, 0, 0, 0, 0, 174, 0, 0, 0, 214, 214, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 215, 0, 180, 0, 0, 180, 0, 0, 0, 174, 215, 0, 0, 0, 0, 0, 214, 0, 0, 180, 180, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 215, 0, 0, 215, 0, 0, 0, 214, 0, 0, 0, 0, 0, 180, 0, 0, 0, 215, 215, 0, 0, 0, 0, 0, 0, 0, 0, 0, 217, 217, 217, 0, 0, 217, 217, 217, 0, 217, 0, 0, 0, 0, 0, 0, 0, 180, 0, 217, 217, 0, 0, 0, 215, 0, 0, 0, 217, 217, 0, 217, 217, 217, 217, 217, 0, 0, 181, 181, 181, 0, 0, 181, 181, 181, 0, 181, 0, 0, 0, 0, 0, 0, 0, 0, 215, 181, 181, 0, 0, 0, 0, 0, 0, 0, 181, 181, 0, 181, 181, 181, 181, 181, 0, 0, 217, 174, 174, 174, 0, 217, 174, 174, 174, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 174, 174, 0, 0, 0, 0, 0, 0, 0, 174, 174, 0, 174, 174, 174, 174, 174, 0, 181, 0, 214, 214, 214, 181, 0, 214, 214, 214, 0, 214, 0, 0, 0, 0, 0, 0, 0, 0, 0, 214, 214, 0, 0, 0, 0, 0, 0, 0, 214, 214, 0, 214, 214, 214, 214, 214, 0, 174, 180, 180, 180, 0, 174, 180, 180, 180, 0, 180, 0, 0, 0, 0, 0, 0, 0, 0, 0, 180, 180, 0, 0, 0, 0, 0, 0, 0, 180, 180, 0, 180, 180, 180, 180, 180, 0, 0, 214, 215, 215, 215, 178, 214, 215, 215, 215, 0, 215, 0, 0, 0, 178, 0, 0, 0, 0, 0, 215, 215, 0, 0, 0, 0, 0, 0, 0, 215, 215, 0, 215, 215, 215, 215, 215, 0, 180, 0, 179, 0, 0, 180, 0, 178, 0, 0, 178, 0, 179, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 178, 178, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 215, 0, 0, 0, 179, 215, 0, 179, 0, 0, 0, 0, 0, 0, 176, 0, 0, 0, 0, 0, 178, 179, 179, 0, 176, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0, 178, 0, 0, 176, 179, 0, 176, 0, 177, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 176, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 173, 179, 0, 0, 177, 0, 0, 177, 0, 0, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 177, 177, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 0, 0, 0, 173, 0, 0, 173, 0, 175, 0, 0, 0, 0, 0, 176, 0, 0, 0, 177, 0, 173, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 0, 175, 0, 0, 0, 0, 0, 0, 0, 177, 0, 0, 0, 0, 173, 175, 175, 0, 0, 0, 0, 0, 0, 178, 178, 178, 0, 0, 178, 178, 178, 0, 178, 0, 0, 0, 0, 0, 0, 261, 0, 0, 178, 178, 0, 0, 173, 0, 0, 261, 175, 178, 178, 0, 178, 178, 178, 178, 178, 179, 179, 179, 0, 0, 179, 179, 179, 0, 179, 0, 0, 0, 0, 0, 0, 0, 0, 0, 179, 179, 261, 0, 175, 261, 0, 0, 0, 179, 179, 0, 179, 179, 179, 179, 179, 0, 0, 261, 261, 178, 0, 0, 0, 0, 178, 0, 0, 0, 0, 0, 176, 176, 176, 0, 0, 176, 176, 176, 0, 176, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 176, 0, 261, 0, 0, 179, 0, 0, 176, 176, 179, 176, 176, 176, 176, 176, 177, 177, 177, 0, 0, 177, 177, 177, 0, 177, 0, 0, 0, 0, 0, 0, 0, 0, 261, 177, 177, 0, 0, 0, 0, 0, 0, 0, 177, 177, 0, 177, 177, 177, 177, 177, 0, 173, 173, 173, 176, 0, 173, 173, 173, 176, 173, 0, 0, 0, 0, 0, 0, 172, 0, 0, 173, 173, 0, 0, 0, 0, 0, 172, 0, 173, 173, 0, 173, 173, 173, 173, 173, 175, 175, 175, 177, 0, 175, 175, 175, 177, 175, 0, 0, 0, 0, 0, 0, 262, 0, 0, 175, 175, 172, 0, 0, 172, 0, 262, 0, 175, 175, 0, 175, 175, 175, 175, 175, 0, 0, 172, 172, 173, 0, 0, 0, 0, 173, 334, 329, 0, 0, 0, 332, 330, 0, 331, 0, 333, 262, 0, 0, 262, 0, 0, 0, 0, 0, 0, 0, 0, 326, 0, 325, 0, 172, 262, 262, 175, 0, 0, 0, 0, 175, 261, 261, 261, 318, 0, 261, 261, 261, 0, 261, 0, 0, 0, 318, 0, 0, 0, 0, 0, 261, 261, 328, 0, 172, 0, 0, 0, 262, 261, 261, 0, 261, 261, 261, 261, 261, 0, 0, 0, 0, 318, 318, 0, 0, 318, 318, 318, 318, 318, 318, 318, 327, 0, 0, 0, 0, 0, 0, 0, 262, 0, 318, 318, 318, 0, 318, 318, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 261, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 172, 319, 318, 0, 0, 318, 0, 0, 0, 0, 0, 319, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 172, 0, 0, 217, 318, 318, 0, 319, 319, 0, 0, 319, 319, 319, 319, 319, 319, 319, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 319, 319, 319, 0, 319, 319, 0, 0, 0, 172, 172, 172, 0, 0, 172, 172, 172, 0, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 172, 172, 0, 0, 0, 319, 0, 0, 319, 172, 172, 0, 172, 172, 172, 172, 0, 262, 262, 262, 0, 0, 262, 262, 262, 0, 262, 0, 172, 0, 0, 0, 0, 0, 0, 0, 262, 262, 319, 319, 0, 0, 0, 0, 0, 262, 262, 0, 262, 262, 262, 262, 262, 0, 0, 0, 0, 172, 0, 0, 0, 0, 172, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 0, 0, 0, 322, 323, 0, 0, 0, 318, 318, 318, 0, 0, 318, 318, 318, 0, 318, 0, 0, 262, 0, 0, 0, 0, 0, 0, 318, 0, 0, 0, 0, 0, 0, 0, 0, 318, 318, 0, 318, 318, 318, 318, 318, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 0, 0, 318, 318, 318, 0, 0, 318, 0, 0, 172, 172, 172, 0, 0, 0, 172, 172, 0, 172, 0, 319, 319, 319, 0, 0, 319, 319, 319, 0, 319, 0, 0, 0, 0, 0, 0, 0, 172, 172, 319, 172, 172, 172, 172, 0, 0, 0, 0, 319, 319, 0, 319, 319, 319, 319, 319, 0, 283, 0, 0, 0, 0, 0, 0, 0, 0, 0, 283, 0, 0, 0, 0, 0, 0, 0, 0, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 0, 0, 319, 319, 319, 283, 283, 319, 0, 283, 283, 283, 283, 283, 283, 283, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 283, 283, 283, 0, 283, 283, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 334, 329, 0, 0, 0, 332, 330, 0, 331, 423, 333, 0, 0, 0, 0, 283, 0, 0, 283, 423, 0, 0, 0, 326, 0, 325, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 423, 423, 283, 283, 423, 423, 423, 74, 423, 423, 423, 328, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 423, 423, 82, 423, 423, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 273, 0, 327, 0, 0, 0, 0, 0, 0, 0, 273, 0, 0, 0, 0, 423, 0, 40, 423, 0, 0, 0, 0, 0, 0, 0, 0, 40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 273, 273, 0, 0, 273, 273, 273, 81, 273, 273, 273, 423, 423, 0, 0, 0, 0, 0, 0, 0, 0, 40, 273, 273, 89, 273, 273, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 40, 40, 0, 0, 0, 0, 0, 0, 0, 0, 54, 0, 0, 0, 0, 0, 273, 0, 0, 273, 54, 0, 0, 0, 0, 0, 283, 283, 283, 0, 0, 283, 283, 283, 0, 283, 0, 0, 0, 0, 0, 0, 0, 0, 0, 283, 0, 0, 0, 273, 273, 54, 0, 0, 283, 283, 0, 283, 283, 283, 283, 283, 0, 0, 0, 0, 0, 40, 54, 54, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 0, 0, 283, 283, 283, 42, 0, 283, 54, 0, 0, 0, 0, 0, 0, 42, 423, 423, 423, 0, 0, 0, 423, 423, 0, 423, 309, 310, 311, 312, 313, 314, 315, 316, 0, 318, 319, 0, 0, 0, 54, 322, 323, 0, 423, 423, 42, 423, 423, 423, 423, 423, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42, 42, 0, 0, 0, 0, 0, 0, 0, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 0, 0, 423, 423, 423, 0, 424, 273, 273, 273, 0, 0, 0, 273, 273, 0, 273, 0, 0, 0, 0, 0, 0, 0, 40, 40, 40, 0, 0, 40, 40, 40, 0, 40, 0, 273, 273, 0, 273, 273, 273, 273, 273, 40, 279, 42, 0, 0, 0, 0, 0, 0, 40, 40, 279, 40, 40, 40, 40, 40, 0, 0, 0, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 0, 0, 273, 273, 273, 279, 279, 0, 0, 279, 279, 279, 80, 279, 279, 279, 54, 54, 54, 0, 0, 54, 54, 54, 0, 54, 0, 279, 279, 88, 279, 279, 0, 0, 0, 54, 54, 0, 0, 0, 0, 0, 280, 0, 54, 54, 0, 54, 54, 54, 54, 54, 280, 0, 0, 0, 0, 0, 0, 279, 0, 0, 279, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 280, 280, 0, 0, 280, 280, 280, 75, 280, 280, 280, 0, 0, 279, 279, 0, 0, 0, 0, 0, 0, 0, 280, 280, 83, 280, 280, 42, 42, 42, 0, 0, 42, 42, 42, 0, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0, 0, 0, 0, 0, 0, 280, 42, 42, 280, 42, 42, 42, 42, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 58, 0, 0, 0, 0, 0, 4, 5, 6, 0, 8, 280, 280, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 102, 34, 35, 36, 103, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 279, 279, 279, 0, 0, 0, 279, 279, 0, 279, 105, 0, 0, 106, 47, 48, 49, 0, 59, 0, 51, 52, 53, 54, 55, 56, 58, 0, 279, 279, 107, 279, 279, 279, 279, 279, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 0, 0, 279, 279, 279, 280, 280, 280, 0, 0, 0, 280, 280, 0, 280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 280, 280, 0, 280, 280, 280, 280, 280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 0, 0, 58, 0, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 0, 0, 280, 280, 280, 3, 4, 5, 6, 7, 8, 396, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, }; }
49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/f5c9a1ebd775712f2dc086acfce1a14a123ec632/YyTables.java/buggy/src/org/jruby/parser/YyTables.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1388, 23, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 5411, 374, 16, 565, 374, 16, 225, 404, 5482, 16, 565, 374, 16, 225, 404, 5292, 16, 565, 374, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1388, 23, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 5411, 374, 16, 565, 374, 16, 225, 404, 5482, 16, 565, 374, 16, 225, 404, 5292, 16, 565, 374, 16...
private void openConnectionV3(String p_host, int p_port, Properties p_info, String p_database, String p_url, Driver p_d, String p_password) throws SQLException { PGProtocolVersionMajor = 3; if (Driver.logDebug) Driver.debug("Using Protocol Version3"); // Now we need to construct and send an ssl startup packet try { if (useSSL) { if (Driver.logDebug) Driver.debug("Asking server if it supports ssl"); pgStream.SendInteger(8,4); pgStream.SendInteger(80877103,4); // now flush the ssl packets to the backend pgStream.flush(); // Now get the response from the backend, either an error message // or an authentication request int beresp = pgStream.ReceiveChar(); if (Driver.logDebug) Driver.debug("Server response was (S=Yes,N=No): "+(char)beresp); switch (beresp) { case 'E': // An error occured, so pass the error message to the // user. // // The most common one to be thrown here is: // "User authentication failed" // throw new PSQLException("postgresql.con.misc", PSQLState.CONNECTION_REJECTED, pgStream.ReceiveString(encoding)); case 'N': // Server does not support ssl throw new PSQLException("postgresql.con.sslnotsupported", PSQLState.CONNECTION_FAILURE); case 'S': // Server supports ssl if (Driver.logDebug) Driver.debug("server does support ssl"); Driver.makeSSL(pgStream); break; default: throw new PSQLException("postgresql.con.sslfail", PSQLState.CONNECTION_FAILURE); } } } catch (IOException e) { throw new PSQLException("postgresql.con.failed", PSQLState.CONNECTION_UNABLE_TO_CONNECT, e); } // Now we need to construct and send a startup packet try { new StartupPacket(PGProtocolVersionMajor, PGProtocolVersionMinor, PG_USER, p_database).writeTo(pgStream); // now flush the startup packets to the backend pgStream.flush(); // Now get the response from the backend, either an error message // or an authentication request int areq = -1; // must have a value here do { int beresp = pgStream.ReceiveChar(); String salt = null; byte [] md5Salt = new byte[4]; switch (beresp) { case 'E': // An error occured, so pass the error message to the // user. // // The most common one to be thrown here is: // "User authentication failed" // int l_elen = pgStream.ReceiveIntegerR(4); if (l_elen > 30000) { //if the error length is > than 30000 we assume this is really a v2 protocol //server so try again with a v2 connection //need to create a new connection and try again try { pgStream = new PGStream(p_host, p_port); } catch (ConnectException cex) { // Added by Peter Mount <peter@retep.org.uk> // ConnectException is thrown when the connection cannot be made. // we trap this an return a more meaningful message for the end user throw new PSQLException ("postgresql.con.refused", PSQLState.CONNECTION_REJECTED); } catch (IOException e) { throw new PSQLException ("postgresql.con.failed", PSQLState.CONNECTION_UNABLE_TO_CONNECT, e); } openConnectionV2(p_host, p_port, p_info, p_database, p_url, p_d, p_password); return; } throw new PSQLException("postgresql.con.misc", PSQLState.CONNECTION_REJECTED, PSQLException.parseServerError(encoding.decode(pgStream.Receive(l_elen-4)))); case 'R': // Get the message length int l_msgLen = pgStream.ReceiveIntegerR(4); // Get the type of request areq = pgStream.ReceiveIntegerR(4); // Get the crypt password salt if there is one if (areq == AUTH_REQ_CRYPT) { byte[] rst = new byte[2]; rst[0] = (byte)pgStream.ReceiveChar(); rst[1] = (byte)pgStream.ReceiveChar(); salt = new String(rst, 0, 2); if (Driver.logDebug) Driver.debug("Crypt salt=" + salt); } // Or get the md5 password salt if there is one if (areq == AUTH_REQ_MD5) { md5Salt[0] = (byte)pgStream.ReceiveChar(); md5Salt[1] = (byte)pgStream.ReceiveChar(); md5Salt[2] = (byte)pgStream.ReceiveChar(); md5Salt[3] = (byte)pgStream.ReceiveChar(); if (Driver.logDebug) { String md5SaltString = ""; for (int i=0; i<md5Salt.length; i++) { md5SaltString += " " + md5Salt[i]; } Driver.debug("MD5 salt=" + md5SaltString); } } // now send the auth packet switch (areq) { case AUTH_REQ_OK: break; case AUTH_REQ_KRB4: if (Driver.logDebug) Driver.debug("postgresql: KRB4"); throw new PSQLException("postgresql.con.kerb4", PSQLState.CONNECTION_REJECTED); case AUTH_REQ_KRB5: if (Driver.logDebug) Driver.debug("postgresql: KRB5"); throw new PSQLException("postgresql.con.kerb5", PSQLState.CONNECTION_REJECTED); case AUTH_REQ_SCM: if (Driver.logDebug) Driver.debug("postgresql: SCM"); throw new PSQLException("postgresql.con.scm", PSQLState.CONNECTION_REJECTED); case AUTH_REQ_PASSWORD: if (Driver.logDebug) Driver.debug("postgresql: PASSWORD"); pgStream.SendChar('p'); pgStream.SendInteger(5 + p_password.length(), 4); pgStream.Send(p_password.getBytes()); pgStream.SendChar(0); pgStream.flush(); break; case AUTH_REQ_CRYPT: if (Driver.logDebug) Driver.debug("postgresql: CRYPT"); String crypted = UnixCrypt.crypt(salt, p_password); pgStream.SendChar('p'); pgStream.SendInteger(5 + crypted.length(), 4); pgStream.Send(crypted.getBytes()); pgStream.SendChar(0); pgStream.flush(); break; case AUTH_REQ_MD5: if (Driver.logDebug) Driver.debug("postgresql: MD5"); byte[] digest = MD5Digest.encode(PG_USER, p_password, md5Salt); pgStream.SendChar('p'); pgStream.SendInteger(5 + digest.length, 4); pgStream.Send(digest); pgStream.SendChar(0); pgStream.flush(); break; default: throw new PSQLException("postgresql.con.auth", PSQLState.CONNECTION_REJECTED, new Integer(areq)); } break; default: throw new PSQLException("postgresql.con.authfail", PSQLState.CONNECTION_REJECTED); } } while (areq != AUTH_REQ_OK); } catch (IOException e) { throw new PSQLException("postgresql.con.failed", PSQLState.CONNECTION_UNABLE_TO_CONNECT, e); } int beresp; do { beresp = pgStream.ReceiveChar(); switch (beresp) { case 'Z': //ready for query break; case 'K': int l_msgLen = pgStream.ReceiveIntegerR(4); if (l_msgLen != 12) throw new PSQLException("postgresql.con.setup", PSQLState.CONNECTION_UNABLE_TO_CONNECT); pid = pgStream.ReceiveIntegerR(4); ckey = pgStream.ReceiveIntegerR(4); break; case 'E': int l_elen = pgStream.ReceiveIntegerR(4); throw new PSQLException("postgresql.con.backend", PSQLState.CONNECTION_UNABLE_TO_CONNECT, PSQLException.parseServerError(encoding.decode(pgStream.Receive(l_elen-4)))); case 'N': int l_nlen = pgStream.ReceiveIntegerR(4); addWarning(encoding.decode(pgStream.Receive(l_nlen-4))); break; case 'S': //TODO: handle parameter status messages int l_len = pgStream.ReceiveIntegerR(4); String l_pStatus = encoding.decode(pgStream.Receive(l_len-4)); if (Driver.logDebug) Driver.debug("ParameterStatus="+ l_pStatus); break; default: if (Driver.logDebug) Driver.debug("invalid state="+ (char)beresp); throw new PSQLException("postgresql.con.setup", PSQLState.CONNECTION_UNABLE_TO_CONNECT); } } while (beresp != 'Z'); // read ReadyForQuery if (pgStream.ReceiveIntegerR(4) != 5) throw new PSQLException("postgresql.con.setup", PSQLState.CONNECTION_UNABLE_TO_CONNECT); //TODO: handle transaction status char l_tStatus = (char)pgStream.ReceiveChar(); // "pg_encoding_to_char(1)" will return 'EUC_JP' for a backend compiled with multibyte, // otherwise it's hardcoded to 'SQL_ASCII'. // If the backend doesn't know about multibyte we can't assume anything about the encoding // used, so we denote this with 'UNKNOWN'. //Note: begining with 7.2 we should be using pg_client_encoding() which //is new in 7.2. However it isn't easy to conditionally call this new //function, since we don't yet have the information as to what server //version we are talking to. Thus we will continue to call //getdatabaseencoding() until we drop support for 7.1 and older versions //or until someone comes up with a conditional way to run one or //the other function depending on server version that doesn't require //two round trips to the server per connection final String encodingQuery = "case when pg_encoding_to_char(1) = 'SQL_ASCII' then 'UNKNOWN' else getdatabaseencoding() end"; // Set datestyle and fetch db encoding in a single call, to avoid making // more than one round trip to the backend during connection startup. BaseResultSet resultSet = execSQL("set datestyle to 'ISO'; select version(), " + encodingQuery + ";"); if (! resultSet.next()) { throw new PSQLException("postgresql.con.failed.bad.encoding", PSQLState.CONNECTION_UNABLE_TO_CONNECT); } String version = resultSet.getString(1); dbVersionNumber = extractVersionNumber(version); String dbEncoding = resultSet.getString(2); encoding = Encoding.getEncoding(dbEncoding, p_info.getProperty("charSet")); //In 7.3 we are forced to do a second roundtrip to handle the case //where a database may not be running in autocommit mode //jdbc by default assumes autocommit is on until setAutoCommit(false) //is called. Therefore we need to ensure a new connection is //initialized to autocommit on. //We also set the client encoding so that the driver only needs //to deal with utf8. We can only do this in 7.3 because multibyte //support is now always included if (haveMinimumServerVersion("7.3")) { BaseResultSet acRset = //TODO: if protocol V3 we can set the client encoding in startup execSQL("set client_encoding = 'UNICODE'"); //set encoding to be unicode encoding = Encoding.getEncoding("UNICODE", null); } // Initialise object handling initObjectTypes(); // Mark the connection as ok, and cleanup PG_STATUS = CONNECTION_OK; }
2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/26e28f926638b528656e609215ae3480ebca9783/AbstractJdbc1Connection.java/clean/org/postgresql/jdbc1/AbstractJdbc1Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 24982, 58, 23, 12, 780, 293, 67, 2564, 16, 509, 293, 67, 655, 16, 6183, 293, 67, 1376, 16, 514, 293, 67, 6231, 16, 514, 293, 67, 718, 16, 9396, 293, 67, 72, 16, 51...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24982, 58, 23, 12, 780, 293, 67, 2564, 16, 509, 293, 67, 655, 16, 6183, 293, 67, 1376, 16, 514, 293, 67, 6231, 16, 514, 293, 67, 718, 16, 9396, 293, 67, 72, 16, 51...
items= viewer.getTree().getItems();
items = viewer.getTree().getItems();
public void testNavigatorExtensionEnablement() throws Exception { EditorTestHelper.showView(COMMON_NAVIGATOR_INSTANCE_ID, true); IWorkbenchWindow activeWindow= PlatformUI.getWorkbench().getActiveWorkbenchWindow(); IWorkbenchPage activePage= activeWindow.getActivePage(); IViewPart commonNavigator= activePage.findView(COMMON_NAVIGATOR_INSTANCE_ID); CommonViewer viewer= (CommonViewer) commonNavigator.getAdapter(CommonViewer.class); INavigatorContentService contentService = viewer.getNavigatorContentService(); contentService.activateExtensions(new String[] { }, true); viewer.expandAll(); viewer.refresh(); TreeItem[] items= viewer.getTree().getItems(); assertTrue("There should be NO items.", items.length == 0); //$NON-NLS-1$ contentService.deactivateExtensions(new String[] { }, true); viewer.expandToLevel(2); viewer.refresh(); items= viewer.getTree().getItems(); assertTrue("There should be some items.", items.length > 0); //$NON-NLS-1$ }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/29acf4eb645f3ecd317c8b9efae2fa767f4c51bb/OpenTest.java/buggy/tests/org.eclipse.ui.tests.navigator/src/org/eclipse/ui/tests/navigator/OpenTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 22817, 3625, 8317, 475, 1435, 1216, 1185, 288, 202, 202, 6946, 4709, 2276, 18, 4500, 1767, 12, 4208, 17667, 67, 50, 5856, 3047, 3575, 67, 13341, 67, 734, 16, 638, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22817, 3625, 8317, 475, 1435, 1216, 1185, 288, 202, 202, 6946, 4709, 2276, 18, 4500, 1767, 12, 4208, 17667, 67, 50, 5856, 3047, 3575, 67, 13341, 67, 734, 16, 638, 1...
genicClass = inGenicClass;
genicClass = inGenicClass;
public void setGenicClass(final String inGenicClass) { genicClass = inGenicClass; }
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/c7b5b643b25b20f5c96097b2c54e2e26a054f212/JonasDeploymentTool.java/clean/src/main/org/apache/tools/ant/taskdefs/optional/ejb/JonasDeploymentTool.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 7642, 335, 797, 12, 6385, 514, 316, 7642, 335, 797, 13, 288, 4202, 3157, 335, 797, 273, 316, 7642, 335, 797, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 7642, 335, 797, 12, 6385, 514, 316, 7642, 335, 797, 13, 288, 4202, 3157, 335, 797, 273, 316, 7642, 335, 797, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, ...
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JLabel(parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 2, 1, 1.0, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(infoLabel, gbConstraints); add(infoLabel); textArea = new JTextArea(licence); textArea.setCaretPosition(0); textArea.setEditable(false); textArea.setLineWrap(true); textArea.setWrapStyleWord(true); scroller = new JScrollPane(textArea); parent.buildConstraints(gbConstraints, 0, 1, 2, 1, 1.0, 1.0); gbConstraints.anchor = GridBagConstraints.CENTER; gbConstraints.fill = GridBagConstraints.BOTH; layout.addLayoutComponent(scroller, gbConstraints); add(scroller); agreeLabel = new JLabel(parent.langpack.getString("LicencePanel.agree"), parent.icons.getImageIcon("help"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 2, 2, 1, 1.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(agreeLabel, gbConstraints); add(agreeLabel); ButtonGroup group = new ButtonGroup(); yesRadio = new JRadioButton(parent.langpack.getString("LicencePanel.yes"), false); group.add(yesRadio); parent.buildConstraints(gbConstraints, 0, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHWEST; layout.addLayoutComponent(yesRadio, gbConstraints); add(yesRadio); yesRadio.addActionListener(this); noRadio = new JRadioButton(parent.langpack.getString("LicencePanel.no"), false); group.add(noRadio); parent.buildConstraints(gbConstraints, 1, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHEAST; layout.addLayoutComponent(noRadio, gbConstraints); add(noRadio); noRadio.addActionListener(this); }
46579 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46579/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 48, 335, 802, 5537, 12, 18678, 3219, 2938, 16, 6410, 751, 350, 396, 15329, 9565, 12, 2938, 16, 350, 396, 1769, 759, 3218, 11160, 477, 6741, 6741, 33, 2704, 6313, 5013, 3744, 5621, 4490, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 48, 335, 802, 5537, 12, 18678, 3219, 2938, 16, 6410, 751, 350, 396, 15329, 9565, 12, 2938, 16, 350, 396, 1769, 759, 3218, 11160, 477, 6741, 6741, 33, 2704, 6313, 5013, 3744, 5621, 4490, ...
private PsiElement2UsageTargetAdapter[] convertToUsageTargets(final PsiElement[] primaryElementsToSearch, final PsiElement[] secondaryElementsToSearch) {
private PsiElement2UsageTargetAdapter[] convertToUsageTargets(final PsiElement[] elementsToSearch) {
private PsiElement2UsageTargetAdapter[] convertToUsageTargets(final PsiElement[] primaryElementsToSearch, final PsiElement[] secondaryElementsToSearch) { final ArrayList<PsiElement2UsageTargetAdapter> targets = new ArrayList<PsiElement2UsageTargetAdapter>(); if (primaryElementsToSearch != null) { for (PsiElement element : primaryElementsToSearch) { convertToUsageTarget(targets, element); } } if (secondaryElementsToSearch != null) { for (PsiElement element : secondaryElementsToSearch) { convertToUsageTarget(targets, element); } } return targets.toArray(new PsiElement2UsageTargetAdapter[targets.size()]); }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/89d5c2936316b89d142eb5c483ee507148ad6c73/FindUsagesManager.java/buggy/source/com/intellij/find/findUsages/FindUsagesManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 453, 7722, 1046, 22, 5357, 2326, 4216, 8526, 8137, 5357, 9432, 12, 6385, 453, 7722, 1046, 8526, 2186, 774, 2979, 13, 288, 565, 727, 2407, 32, 52, 7722, 1046, 22, 5357, 2326, 4216, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 453, 7722, 1046, 22, 5357, 2326, 4216, 8526, 8137, 5357, 9432, 12, 6385, 453, 7722, 1046, 8526, 2186, 774, 2979, 13, 288, 565, 727, 2407, 32, 52, 7722, 1046, 22, 5357, 2326, 4216, ...
jobId.readFields(in);
public void readFields(DataInput in) throws IOException { super.readFields(in); jobId.readFields(in); numMaps = in.readInt(); this.partition = in.readInt(); // read partition }
53958 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53958/dd12a4a249a7c446be8f98ca117eae616f798abd/ReduceTask.java/clean/src/java/org/apache/hadoop/mapred/ReduceTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 855, 2314, 12, 751, 1210, 316, 13, 1216, 1860, 288, 565, 2240, 18, 896, 2314, 12, 267, 1769, 4202, 818, 8903, 273, 316, 18, 896, 1702, 5621, 565, 333, 18, 10534, 273, 316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 855, 2314, 12, 751, 1210, 316, 13, 1216, 1860, 288, 565, 2240, 18, 896, 2314, 12, 267, 1769, 4202, 818, 8903, 273, 316, 18, 896, 1702, 5621, 565, 333, 18, 10534, 273, 316, ...
tmp = pos[j]; while (ll_i != tmp) {
tmp = pos[ j ]; while ( ll_i != tmp ) {
private void sendMTFValues() throws IOException { char len[][] = new char[N_GROUPS][MAX_ALPHA_SIZE]; int v, t, i, j, gs, ge, totc, bt, bc, iter; int nSelectors = 0, alphaSize, minLen, maxLen, selCtr; int nGroups, nBytes; alphaSize = nInUse + 2; for (t = 0; t < N_GROUPS; t++) { for (v = 0; v < alphaSize; v++) { len[t][v] = (char) GREATER_ICOST; } } /* Decide how many coding tables to use */ if (nMTF <= 0) { panic(); } if (nMTF < 200) { nGroups = 2; } else if (nMTF < 600) { nGroups = 3; } else if (nMTF < 1200) { nGroups = 4; } else if (nMTF < 2400) { nGroups = 5; } else { nGroups = 6; } /* Generate an initial set of coding tables */ { int nPart, remF, tFreq, aFreq; nPart = nGroups; remF = nMTF; gs = 0; while (nPart > 0) { tFreq = remF / nPart; ge = gs - 1; aFreq = 0; while (aFreq < tFreq && ge < alphaSize - 1) { ge++; aFreq += mtfFreq[ge]; } if (ge > gs && nPart != nGroups && nPart != 1 && ((nGroups - nPart) % 2 == 1)) { aFreq -= mtfFreq[ge]; ge--; } for (v = 0; v < alphaSize; v++) { if (v >= gs && v <= ge) { len[nPart - 1][v] = (char) LESSER_ICOST; } else { len[nPart - 1][v] = (char) GREATER_ICOST; } } nPart--; gs = ge + 1; remF -= aFreq; } } int[][] rfreq = new int[N_GROUPS][MAX_ALPHA_SIZE]; int[] fave = new int[N_GROUPS]; short[] cost = new short[N_GROUPS]; /* Iterate up to N_ITERS times to improve the tables. */ for (iter = 0; iter < N_ITERS; iter++) { for (t = 0; t < nGroups; t++) { fave[t] = 0; } for (t = 0; t < nGroups; t++) { for (v = 0; v < alphaSize; v++) { rfreq[t][v] = 0; } } nSelectors = 0; totc = 0; gs = 0; while (true) { /* Set group start & end marks. */ if (gs >= nMTF) { break; } ge = gs + G_SIZE - 1; if (ge >= nMTF) { ge = nMTF - 1; } /* Calculate the cost of this group as coded by each of the coding tables. */ for (t = 0; t < nGroups; t++) { cost[t] = 0; } if (nGroups == 6) { short cost0, cost1, cost2, cost3, cost4, cost5; cost0 = cost1 = cost2 = cost3 = cost4 = cost5 = 0; for (i = gs; i <= ge; i++) { short icv = szptr[i]; cost0 += len[0][icv]; cost1 += len[1][icv]; cost2 += len[2][icv]; cost3 += len[3][icv]; cost4 += len[4][icv]; cost5 += len[5][icv]; } cost[0] = cost0; cost[1] = cost1; cost[2] = cost2; cost[3] = cost3; cost[4] = cost4; cost[5] = cost5; } else { for (i = gs; i <= ge; i++) { short icv = szptr[i]; for (t = 0; t < nGroups; t++) { cost[t] += len[t][icv]; } } } /* Find the coding table which is best for this group, and record its identity in the selector table. */ bc = 999999999; bt = -1; for (t = 0; t < nGroups; t++) { if (cost[t] < bc) { bc = cost[t]; bt = t; } }; totc += bc; fave[bt]++; selector[nSelectors] = (char) bt; nSelectors++; /* Increment the symbol frequencies for the selected table. */ for (i = gs; i <= ge; i++) { rfreq[bt][szptr[i]]++; } gs = ge + 1; } /* Recompute the tables based on the accumulated frequencies. */ for (t = 0; t < nGroups; t++) { hbMakeCodeLengths(len[t], rfreq[t], alphaSize, 20); } } rfreq = null; fave = null; cost = null; if (!(nGroups < 8)) { panic(); } if (!(nSelectors < 32768 && nSelectors <= (2 + (900000 / G_SIZE)))) { panic(); } /* Compute MTF values for the selectors. */ { char[] pos = new char[N_GROUPS]; char ll_i, tmp2, tmp; for (i = 0; i < nGroups; i++) { pos[i] = (char) i; } for (i = 0; i < nSelectors; i++) { ll_i = selector[i]; j = 0; tmp = pos[j]; while (ll_i != tmp) { j++; tmp2 = tmp; tmp = pos[j]; pos[j] = tmp2; } pos[0] = tmp; selectorMtf[i] = (char) j; } } int[][] code = new int[N_GROUPS][MAX_ALPHA_SIZE]; /* Assign actual codes for the tables. */ for (t = 0; t < nGroups; t++) { minLen = 32; maxLen = 0; for (i = 0; i < alphaSize; i++) { if (len[t][i] > maxLen) { maxLen = len[t][i]; } if (len[t][i] < minLen) { minLen = len[t][i]; } } if (maxLen > 20) { panic(); } if (minLen < 1) { panic(); } hbAssignCodes(code[t], len[t], minLen, maxLen, alphaSize); } /* Transmit the mapping table. */ { boolean[] inUse16 = new boolean[16]; for (i = 0; i < 16; i++) { inUse16[i] = false; for (j = 0; j < 16; j++) { if (inUse[i * 16 + j]) { inUse16[i] = true; } } } nBytes = bytesOut; for (i = 0; i < 16; i++) { if (inUse16[i]) { bsW(1, 1); } else { bsW(1, 0); } } for (i = 0; i < 16; i++) { if (inUse16[i]) { for (j = 0; j < 16; j++) { if (inUse[i * 16 + j]) { bsW(1, 1); } else { bsW(1, 0); } } } } } /* Now the selectors. */ nBytes = bytesOut; bsW (3, nGroups); bsW (15, nSelectors); for (i = 0; i < nSelectors; i++) { for (j = 0; j < selectorMtf[i]; j++) { bsW(1, 1); } bsW(1, 0); } /* Now the coding tables. */ nBytes = bytesOut; for (t = 0; t < nGroups; t++) { int curr = len[t][0]; bsW(5, curr); for (i = 0; i < alphaSize; i++) { while (curr < len[t][i]) { bsW(2, 2); curr++; /* 10 */ } while (curr > len[t][i]) { bsW(2, 3); curr--; /* 11 */ } bsW (1, 0); } } /* And finally, the block data proper */ nBytes = bytesOut; selCtr = 0; gs = 0; while (true) { if (gs >= nMTF) { break; } ge = gs + G_SIZE - 1; if (ge >= nMTF) { ge = nMTF - 1; } for (i = gs; i <= ge; i++) { bsW(len[selector[selCtr]][szptr[i]], code[selector[selCtr]][szptr[i]]); } gs = ge + 1; selCtr++; } if (!(selCtr == nSelectors)) { panic(); } }
10884 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10884/8348e0b29d34f62b8f140a99598373fb0cbf7fcb/CBZip2OutputStream.java/clean/src/main/java/org/codehaus/plexus/archiver/bzip2/CBZip2OutputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1366, 6152, 42, 1972, 1435, 1216, 1860, 288, 3639, 1149, 562, 63, 6362, 65, 273, 394, 1149, 63, 50, 67, 28977, 6362, 6694, 67, 26313, 67, 4574, 15533, 3639, 509, 331, 16, 268...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1366, 6152, 42, 1972, 1435, 1216, 1860, 288, 3639, 1149, 562, 63, 6362, 65, 273, 394, 1149, 63, 50, 67, 28977, 6362, 6694, 67, 26313, 67, 4574, 15533, 3639, 509, 331, 16, 268...
public static double jsFunction_setUTCDate(Context cx, Scriptable thisObj, Object[] args, Function funObj) { return makeDate(thisObj, args, 1, false, funObj);
private double jsFunction_setUTCDate(Object[] args) { return makeDate(args, 1, false);
public static double jsFunction_setUTCDate(Context cx, Scriptable thisObj, Object[] args, Function funObj) { return makeDate(thisObj, args, 1, false, funObj); }
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/1f40b84b6c54487dd6f26829d1ebda36a7567a38/NativeDate.java/clean/js/rhino/org/mozilla/javascript/NativeDate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1645, 3828, 2083, 67, 542, 11471, 1626, 12, 1042, 9494, 16, 4766, 9079, 22780, 15261, 16, 4766, 9079, 1033, 8526, 833, 16, 4766, 9079, 4284, 9831, 2675, 13, 565, 288, 3639, 327...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1645, 3828, 2083, 67, 542, 11471, 1626, 12, 1042, 9494, 16, 4766, 9079, 22780, 15261, 16, 4766, 9079, 1033, 8526, 833, 16, 4766, 9079, 4284, 9831, 2675, 13, 565, 288, 3639, 327...
OptionGroup ruleBreakers = addGroup("Optional Rules (unofficial)"); addOption(ruleBreakers, "no_tac", "No through-armor criticals", "If checked, rolls of '2' on hit location will only result in a torso hit, and no critical roll. Only applies to mechs. Supercedes the floating criticals option.\n\nUnchecked by default.", false); addOption(ruleBreakers, "no_immobile_vehicles", "Vehicles not immobilized by crits", "If checked, vehicles with a drive or engine hit will not be counted as 'immobile' for purposes of determining to-hit numbers.\n\nUnchecked by default.", false); addOption(ruleBreakers, "vehicles_can_eject", "Vehicles can be abandoned", "If checked, vehicle crews can leave their unit (effectively removing it from the game).\n\nUnchecked by default.", false); addOption(ruleBreakers, "inf_move_even", "Infantry don't count for movement initiative", "If checked, Infantry units no longer count towards the initiative for the player's team in the movement phase, unless that team has no other units. Instead, their moves are distributed 'evenly' throughout the turn. The move order of Meks and Vehicles ignores the presence of Infantry. The order of the fire phase is unaffected.\n\nMutually exclusive with \"multiple Infantry for every Mek or Vehicle\".\n\nUnchecked by default.", false); addOption(ruleBreakers, "inf_deploy_even", "Infantry don't count for deployment initiative", "If checked, Infantry units no longer count towards the initiative for the player's team in the deployment phase, unless that team has no other units. Instead, their deployments are distributed 'evenly' throughout the turn. The deployment order of Meks and Vehicles ignores the presence of Infantry.\n\nThe above option, \"Infantry move after Meks and Vehicles\" must also be checked to use this option.\n\nUnchecked by default.", false); addOption(ruleBreakers, "inf_move_later", "Infantry moves after that players other units", "If checked, each player must move all their other units before they move their Infantry. If \"Protomechs move after that team's other units\" is also checked, then Infantry and Protomechs are lumped together into the same category.\n\nMutually exclusive with \"multiple Infantry for every Mek or Vehicle\" and \"Infantry don't count for movement initiative\".\n\nUnchecked by default.", false); addOption(ruleBreakers, "inf_move_multi", "move multiple Infantry for every Mek or Vehicle", "If checked, multiple infantry units will have to move in place of a single Mek or Vehicle. Set the number per mech in the appropriate Game Option. If there are less than above units remaining, they all must move. The move order includes the presence of Infantry.\n\nMutually exclusive with \"Infantry move after Meks and Vehicles\".\n\nUnchecked by default.", false); addOption(ruleBreakers, "protos_move_even", "Protomechs don't count for movement initiative", "If checked, Protomech units no longer count towards the initiative for the player's team in the movement phase, unless that team has no other units. Instead, their moves are distributed 'evenly' throughout the turn. The move order of Meks and Vehicles ignores the presence of Protomechs. The order of the fire phase is unaffected.\n\nMutually exclusive with \"multiple Protomechs for every Mek or Vehicle\".\n\nUnchecked by default.", false); addOption(ruleBreakers, "protos_deploy_even", "Protomechs don't count for deployment initiative", "If checked, Protomech units no longer count towards the initiative for the player's team in the deployment phase, unless that team has no other units. Instead, their deployments are distributed 'evenly' throughout the turn. The deployment order of Meks and Vehicles ignores the presence of Protomechs.\n\nThe above option, \"Protomechs move after Meks and Vehicles\" must also be checked to use this option.\n\nUnchecked by default.", false); addOption(ruleBreakers, "protos_move_later", "Protomechs move after that players other units", "If checked, each player must move all their other units before they move their Protomechs. If \"Protomechs moves after that team's other units\" is also checked, then Infantry and Protomechs are lumped together into the same category.\n\nMutually exclusive with \"multiple Protomechs for every Mek or Vehicle\" and \"Protomechs don't count for movement initiative\".\n\nUnchecked by default.", false); addOption(ruleBreakers, "protos_move_multi", "move multiple Protomechs for every Mek or Vehicle", "If checked, multiple protomechs will have to move in place of a single Mek or Vehicle. Set the number per mech in the appropriate Game Option. If there are less than above specified protos remaining, they all must move. The move order includes the presence of Protomechs.\n\nMutually exclusive with \"Protomechs move after Meks and Vehicles\".\n\nUnchecked by default.", false); addOption(ruleBreakers, "inf_proto_move_multi", "number of Infantry/Protomech to move per Mek", "The number of Infantry units/Protomechs that have to move for every Mek or Vehicle, if the inf_move_multi or the protos_move_multi option is selected.\n\nDefault of 3.", 3); addOption(ruleBreakers, "blind_drop", "Blind Drop", "If checked, the configuration of a Mech won't be shown in the Chatroom to your opponents.", false); addOption(ruleBreakers, "real_blind_drop", "Real Blind Drop", "If checked, only own units are displayed. Defaults to false.", false); addOption(ruleBreakers, "clan_ignore_eq_limits", "Ignore Clan Ammo Limitations", "If checked, Clan units can use ammo normally limited to IS units only; for example, Thunder-Augmented, Thunder-Inferno, and Thunder-Active LRM rounds.", false); addOption(ruleBreakers, "no_clan_physical", "No physical attacks for the clans", "If checked, clan Meks may not make physical attacks.\n\nUnchecked by default.", false); addOption(ruleBreakers, "no_hover_charge", "No charge attacks for Hover vehicles", "If checked, Hover vehicles may not make rams/charges.\n\nUnchecked by default.", false); addOption(ruleBreakers, "woods_burn_down", "Woods have a chance to burn down", "If checked, woods will burn down as if cleared on a roll of 11+.\n\nUnchecked by default.", false); addOption(ruleBreakers, "vehicles_safe_from_infernos", "Vehicles may not be the target of an Inferno missile attack.", "If checked, Vehicles cannot be the target of an Inferno SRM attack.\n\nUnchecked by default.", false); addOption(ruleBreakers, "protos_safe_from_infernos", "Protomechs may not be the target of an Inferno missile attack.", "If checked, Protomechs cannot be the target of an Inferno SRM attack.\n\nUnchecked by default.", false); addOption(ruleBreakers, "lobby_ammo_dump", "Allow Ammo Dumping in the Lobby", "If checked, Players may dump their Mech's ammo before the game starts.\n\nUnchecked by default.", false); addOption(ruleBreakers, "set_arty_player_homeedge", "Automatically set artillery home edge", "If checked, all of the players' artillery units will have their homeedge set to the deployment edge of the player,\nNW and NE are North, SW and SE are South.\n\nUnchecked by default.", false); addOption(ruleBreakers, "no_premove_vibra", "Do not damage Mek by Vibrabomb if it has not yet moved.", "If checked, vibrabombs that explode will not damage Meks that have not yet finished their move.\n\nUnchecked by default.", false); addOption(ruleBreakers, "auto_spot", "Any unit that does not do anything special is a spotter.", "If checked, units that don't fire weapons/search for clubs/etc automatically spot for indirect LRMs.\n\nUnchecked by default.", false);
OptionGroup ruleBreakers = addGroup("ruleBreakers"); addOption(ruleBreakers,"no_tac", false); addOption(ruleBreakers,"no_immobile_vehicles", false); addOption(ruleBreakers,"vehicles_can_eject", false); addOption(ruleBreakers,"inf_move_even", false); addOption(ruleBreakers,"inf_deploy_even", false); addOption(ruleBreakers,"inf_move_later", false); addOption(ruleBreakers,"inf_move_multi", false); addOption(ruleBreakers,"protos_move_even", false); addOption(ruleBreakers,"protos_deploy_even", false); addOption(ruleBreakers,"protos_move_later", false); addOption(ruleBreakers,"protos_move_multi", false); addOption(ruleBreakers,"inf_proto_move_multi", 3); addOption(ruleBreakers,"blind_drop", false); addOption(ruleBreakers,"real_blind_drop", false); addOption(ruleBreakers,"clan_ignore_eq_limits", false); addOption(ruleBreakers,"no_clan_physical", false); addOption(ruleBreakers,"no_hover_charge", false); addOption(ruleBreakers,"woods_burn_down", false); addOption(ruleBreakers,"vehicles_safe_from_infernos", false); addOption(ruleBreakers,"protos_safe_from_infernos", false); addOption(ruleBreakers,"lobby_ammo_dump", false); addOption(ruleBreakers,"set_arty_player_homeedge", false); addOption(ruleBreakers,"no_premove_vibra", false); addOption(ruleBreakers,"auto_spot", false);
public void initialize() { OptionGroup base = addGroup("Base Options"); addOption(base, "friendly_fire", "Friendly fire", "If checked, the game considers mechs owned by a player, or on the same team as a player, as valid targets.\n\nDefaults to checked, but unchecks when a second player joins the server.", true); addOption(base, "skip_ineligable_movement", "Skip ineligable during movement", "If checked, the game will skip a unit during the movement phase if it is immobile or otherwise inactive.\n\nUnchecked by default.", false); addOption(base, "skip_ineligable_firing", "Skip ineligable during firing", "If checked, the game will skip a unit during the firing phase if it is inactive.\n\nUnchecked by default.", false); addOption(base, "skip_ineligable_physical", "Skip ineligable during physical", "If checked, the game will skip a unit during the physical phase if no attacks are possible or there are no valid targets.\n\nChecked by default.", true); addOption(base, "push_off_board", "Allow pushing off the map", "This options allows a mech to be pushed off the map and out of the game by push, charge or DFA attacks.\n\nChecked by default.", true); addOption(base, "check_victory", "Check for victory", "If checked, the server will enter the victory phase at the end of any turn where victory conditions are met. Even if unchecked or conditions are not met, server admins can force victory with the /victory command.\n\nDefaults to checked.", true); addOption(base, "rng_type", "RNG Type", "Note: any type other than 0 or 1 is completely unofficial.\n\nValid types:\n0 - SunRandom: Sun regular RNG\n1 - CryptoRandom: Java crypto-strength RNG\n2 - Pool36Random: Pool of 36 values, randomly shuffled\n\nDefaults to 1.", 1); addOption(base, "team_initiative", "Teams roll initiative", "When checked, teams roll initiative as one group. This team initative is used to order the units according to the normal method. Player order on a team is determined by their own initiative.\n\nChecked by default", true); addOption(base, "is_eq_limits", "Ammo & Equipment Limits", "If checked, Inner Sphere units will be limited to ammo & equipment available at their build year. Turning this option off will not remove invalid equipment.\n\nChecked by default", true); addOption(base, "autosave_msg", "Remind on Autosave", "If checked, the server will send a message each time an auto-save is performed.\n\nChecked by default", true); addOption(base, "paranoid_autosave", "Paranoid Autosave", "If checked, the game will auto-save every phase.\n\nUnchecked by default", false); OptionGroup level2 = addGroup("Optional Rules (Level 2)"); addOption(level2, "flamer_heat", "Flamers can deal heat instead of damage", "If checked, flamers can increase the heat of their target by 2 instead of dealing 2 damage.\n\nChecked by default.", true); addOption(level2, "fire", "Fire and smoke", "If checked, fires may be set accidentally or intentionally.\n\nChecked by default.", true); addOption(level2, "indirect_fire", "Indirect fire", "If checked, LRMs may be fire indirectly, and players may choose to spot for indirect fire instead of attacking.\n\nChecked by default.", true); addOption(level2, "minefields", "Minefields", "If checked, minefields can be used.\n\nChecked by default.", true); addOption(level2, "temperature", "Temperature", "The temperature the game takes place at, for use with the Extreme Temperatures rule.\n\nDefaults to 25 degrees Celsius, thus having no effect.", 25); addOption(level2, "gravity", "Gravity", "The gravity of the world the game takes place at, for use with the High/Low Gravity rule.\n\nDefaults to 1 G, thus having no effect.", (float)1.0); addOption(level2, "vacuum", "Vacuum", "If checked, the game takes place in Vacuum.\n\nUnchecked by default.", false); addOption(level2, "night_battle", "Night Battle", "If checked, the game takes place at night (+2 to-hit-modifier to all attacks unless attacker or attacked unit are using spotlights. Defaults to off.", false); OptionGroup level3 = addGroup("Optional Rules (Level 3)"); addOption(level3, "double_blind", "Double blind", "If checked, enemy units will only be visible if they are in line of sight of one or more of your units.\n\nUnchecked by default.", false); addOption(level3, "team_vision", "Teams share vision", "If checked, teams will share vision in double-blind mode. Only valid in double-blind mode.\n\nChecked by default.", true); addOption(level3, "floating_crits", "Through-armor criticals will 'float'", "If checked, rolls of '2' on hit location will result in a new location being rolled for a critical hit, instead of just hitting the local torso.\n\nUnchecked by default.", false); addOption(level3, "engine_explosions", "MaxTech engine explosions", "If checked, any time a mech takes 2 or more engine crits in one round, a roll of '12' will cause a cascading engine explosion.", false); addOption(level3, "pilot_advantages", "MaxTech pilot advantages", "If checked, players can add additional advantages to their pilots through the 'configure mech' window.", false); addOption(level3, "maxtech_physical_BTH", "MaxTech physical BTHs", "If checked, BTHs for physical attacks will use MaxTech levels. These levels take into account the piloting skill of the attacking unit.", false); addOption(level3, "maxtech_physical_psr", "MaxTech physical PSR weight difference", "If checked, after being kicked or pushed the PSR is modified by the weight classes of the two mechs. The PSR is modified by 1 point per weight class difference. The difference is added to the PSR if the attacker is heavier or subtracted if the attacker is lighter.", false); addOption(level3, "maxtech_round_damage", "MaxTech damage per round", "If checked, units will have +1 to their piloting skill roll for every 20 damage taken, not just the first damage. Also, BTH is altered by weight class. Lights get +1 to BTH where as assaults get -2. Mediums and heavies are in between.", false); addOption(level3, "maxtech_prone_fire", "MaxTech firing while prone", "If checked, mechs that are prone can fire if they are missing one arm. Standard rules disallow firing when prone and missing an arm. All weapons are +1 BTH and weapons mounted in propping arm can not be fired.", false); addOption(level3, "maxtech_target_modifiers", "MaxTech target movement modifiers", "If checked, the target movement modifiers table is enhanced by 3 additional steps (14-18 hexes => +5, 19-24 hexes => +6 25+ hexes => +7.", false); addOption(level3, "maxtech_leg_damage", "MaxTech Leg Damage Rule", "If checked, hip criticals are cummulative with other damage to legs, but reduce movement by 2 instead of halving. Destroying both hips does not reduce MPs to zero.", false); addOption(level3, "maxtech_fire", "MaxTech Fire/Smoke Rules", "If checked, fires create smoke that drifts and dissipates, instead of remaining static. In addition, smoke is split into light and heavy varieties.", false); addOption(level3, "maxtech_range", "MaxTech Extreme Range Rules", "If checked, Weapons have an extreme range bracket past their long range distance.", false); addOption(level3, "maxtech_LOS1", "MaxTech Diagramming Line of Sight Rules", "If checked, LOS will be calculated using the Diagramming LOS rules from MaxTech revised, page 22", false); addOption(level3, "maxtech_altdmg", "MaxTech Altered Energy Weapons Damage", "If checked, the damage inflicted by energy weapons (Laser, Flamer, PPC) is altered as follows: Half damage (rounded up) at extreme range, -1 damage at long range, +1 damage at range <= 1. Defaults to false.", false); addOption(level3, "maxtech_mslhitpen", "MaxTech Missile Hit Penalties", "If checked, apply the following penalties to the roll to determine number of missiles hit: +1 (Range <= 1 hex); 0 (Short range); -1 (Medium range); -2 (Long and Extreme range). Does not apply to Streak SRMs. If the roll is increased above 12, all missiles hit. If the roll is reduced below 2, only 1 missile hits.", false); addOption(level3, "maxtech_ppc_inhibitors", "MaxTech PPC Field Inhibitor Disengage", "If checked, the field inhibitor of a PPC can be disengaged to disregard the minimum range modifiers. However, after each shot, there is a chance that the PPC is destroyed in the process and the IS of the PPC's location takes 10 points of damage. The chance for this depends on range, roll 2d6 to avoid on: 3+ for >=3 hex range; 6+ for 2 hex range and 10+ for 1 hex range. Defaults to off.", false); addOption(level3, "maxtech_charge_damage", "MaxTech Charge Damage", "If checked, the attacker in a charge will receive damage proportional to the distance of the charge. Defaults to off.", false); addOption(level3, "maxtech_glancing_blows", "MaxTech Glancing Blows", "If checked, attacks that roll for to-hit and roll exactly the target number required deal only reduced damage: Normal attacks deal only half damage, while missile attacks get a -2 for the roll on the # of missiles roll. If the roll is reduced below 2, only 1 missile hits. Additionally, if a glancing blow deals a critical hit, apply a -2 modifier to the check. Attacks that do not roll for attack (Falling damage, ...), attacks that deal no damage (TAG), and Streak SRMs are unaffected. Defaults to false.", false); addOption(level3, "maxtech_burst", "MaxTech Burst Fire MGs", "If checked, MGs may use burst fire rules: They inflict 1D6 of damage, create an equal amount of heat and use triple the amount of ammunition. Click the 'Configure Unit' button to configure MGs. Defaults to false.", false); OptionGroup ruleBreakers = addGroup("Optional Rules (unofficial)"); addOption(ruleBreakers, "no_tac", "No through-armor criticals", "If checked, rolls of '2' on hit location will only result in a torso hit, and no critical roll. Only applies to mechs. Supercedes the floating criticals option.\n\nUnchecked by default.", false); addOption(ruleBreakers, "no_immobile_vehicles", "Vehicles not immobilized by crits", "If checked, vehicles with a drive or engine hit will not be counted as 'immobile' for purposes of determining to-hit numbers.\n\nUnchecked by default.", false); addOption(ruleBreakers, "vehicles_can_eject", "Vehicles can be abandoned", "If checked, vehicle crews can leave their unit (effectively removing it from the game).\n\nUnchecked by default.", false); addOption(ruleBreakers, "inf_move_even", "Infantry don't count for movement initiative", "If checked, Infantry units no longer count towards the initiative for the player's team in the movement phase, unless that team has no other units. Instead, their moves are distributed 'evenly' throughout the turn. The move order of Meks and Vehicles ignores the presence of Infantry. The order of the fire phase is unaffected.\n\nMutually exclusive with \"multiple Infantry for every Mek or Vehicle\".\n\nUnchecked by default.", false); addOption(ruleBreakers, "inf_deploy_even", "Infantry don't count for deployment initiative", "If checked, Infantry units no longer count towards the initiative for the player's team in the deployment phase, unless that team has no other units. Instead, their deployments are distributed 'evenly' throughout the turn. The deployment order of Meks and Vehicles ignores the presence of Infantry.\n\nThe above option, \"Infantry move after Meks and Vehicles\" must also be checked to use this option.\n\nUnchecked by default.", false); addOption(ruleBreakers, "inf_move_later", "Infantry moves after that players other units", "If checked, each player must move all their other units before they move their Infantry. If \"Protomechs move after that team's other units\" is also checked, then Infantry and Protomechs are lumped together into the same category.\n\nMutually exclusive with \"multiple Infantry for every Mek or Vehicle\" and \"Infantry don't count for movement initiative\".\n\nUnchecked by default.", false); addOption(ruleBreakers, "inf_move_multi", "move multiple Infantry for every Mek or Vehicle", "If checked, multiple infantry units will have to move in place of a single Mek or Vehicle. Set the number per mech in the appropriate Game Option. If there are less than above units remaining, they all must move. The move order includes the presence of Infantry.\n\nMutually exclusive with \"Infantry move after Meks and Vehicles\".\n\nUnchecked by default.", false); addOption(ruleBreakers, "protos_move_even", "Protomechs don't count for movement initiative", "If checked, Protomech units no longer count towards the initiative for the player's team in the movement phase, unless that team has no other units. Instead, their moves are distributed 'evenly' throughout the turn. The move order of Meks and Vehicles ignores the presence of Protomechs. The order of the fire phase is unaffected.\n\nMutually exclusive with \"multiple Protomechs for every Mek or Vehicle\".\n\nUnchecked by default.", false); addOption(ruleBreakers, "protos_deploy_even", "Protomechs don't count for deployment initiative", "If checked, Protomech units no longer count towards the initiative for the player's team in the deployment phase, unless that team has no other units. Instead, their deployments are distributed 'evenly' throughout the turn. The deployment order of Meks and Vehicles ignores the presence of Protomechs.\n\nThe above option, \"Protomechs move after Meks and Vehicles\" must also be checked to use this option.\n\nUnchecked by default.", false); addOption(ruleBreakers, "protos_move_later", "Protomechs move after that players other units", "If checked, each player must move all their other units before they move their Protomechs. If \"Protomechs moves after that team's other units\" is also checked, then Infantry and Protomechs are lumped together into the same category.\n\nMutually exclusive with \"multiple Protomechs for every Mek or Vehicle\" and \"Protomechs don't count for movement initiative\".\n\nUnchecked by default.", false); addOption(ruleBreakers, "protos_move_multi", "move multiple Protomechs for every Mek or Vehicle", "If checked, multiple protomechs will have to move in place of a single Mek or Vehicle. Set the number per mech in the appropriate Game Option. If there are less than above specified protos remaining, they all must move. The move order includes the presence of Protomechs.\n\nMutually exclusive with \"Protomechs move after Meks and Vehicles\".\n\nUnchecked by default.", false); addOption(ruleBreakers, "inf_proto_move_multi", "number of Infantry/Protomech to move per Mek", "The number of Infantry units/Protomechs that have to move for every Mek or Vehicle, if the inf_move_multi or the protos_move_multi option is selected.\n\nDefault of 3.", 3); addOption(ruleBreakers, "blind_drop", "Blind Drop", "If checked, the configuration of a Mech won't be shown in the Chatroom to your opponents.", false); addOption(ruleBreakers, "real_blind_drop", "Real Blind Drop", "If checked, only own units are displayed. Defaults to false.", false); addOption(ruleBreakers, "clan_ignore_eq_limits", "Ignore Clan Ammo Limitations", "If checked, Clan units can use ammo normally limited to IS units only; for example, Thunder-Augmented, Thunder-Inferno, and Thunder-Active LRM rounds.", false); addOption(ruleBreakers, "no_clan_physical", "No physical attacks for the clans", "If checked, clan Meks may not make physical attacks.\n\nUnchecked by default.", false); addOption(ruleBreakers, "no_hover_charge", "No charge attacks for Hover vehicles", "If checked, Hover vehicles may not make rams/charges.\n\nUnchecked by default.", false); addOption(ruleBreakers, "woods_burn_down", "Woods have a chance to burn down", "If checked, woods will burn down as if cleared on a roll of 11+.\n\nUnchecked by default.", false); addOption(ruleBreakers, "vehicles_safe_from_infernos", "Vehicles may not be the target of an Inferno missile attack.", "If checked, Vehicles cannot be the target of an Inferno SRM attack.\n\nUnchecked by default.", false); addOption(ruleBreakers, "protos_safe_from_infernos", "Protomechs may not be the target of an Inferno missile attack.", "If checked, Protomechs cannot be the target of an Inferno SRM attack.\n\nUnchecked by default.", false); addOption(ruleBreakers, "lobby_ammo_dump", "Allow Ammo Dumping in the Lobby", "If checked, Players may dump their Mech's ammo before the game starts.\n\nUnchecked by default.", false); addOption(ruleBreakers, "set_arty_player_homeedge", "Automatically set artillery home edge", "If checked, all of the players' artillery units will have their homeedge set to the deployment edge of the player,\nNW and NE are North, SW and SE are South.\n\nUnchecked by default.", false); addOption(ruleBreakers, "no_premove_vibra", "Do not damage Mek by Vibrabomb if it has not yet moved.", "If checked, vibrabombs that explode will not damage Meks that have not yet finished their move.\n\nUnchecked by default.", false); addOption(ruleBreakers, "auto_spot", "Any unit that does not do anything special is a spotter.", "If checked, units that don't fire weapons/search for clubs/etc automatically spot for indirect LRMs.\n\nUnchecked by default.", false); }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/3ac451afb2ad7e3127197067a51a4ac49f3be07c/GameOptions.java/buggy/megamek/src/megamek/common/options/GameOptions.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4046, 1435, 288, 3639, 2698, 1114, 1026, 273, 18899, 2932, 2171, 5087, 8863, 3639, 12966, 12, 1969, 16, 315, 29111, 67, 12179, 3113, 315, 19730, 4452, 3113, 315, 2047, 5950, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4046, 1435, 288, 3639, 2698, 1114, 1026, 273, 18899, 2932, 2171, 5087, 8863, 3639, 12966, 12, 1969, 16, 315, 29111, 67, 12179, 3113, 315, 19730, 4452, 3113, 315, 2047, 5950, 16, ...
m_configuration = CmsTemplateBean.getConfigurationFile(configFileName, getCmsObject());
m_configuration = CmsTemplateBean.getConfigurationFile(configFileName, getCmsObject());
public void init(PageContext context, HttpServletRequest req, HttpServletResponse res) { // call initialization of super class super.init(context, req, res); // set site root String siteRoot = req.getParameter(CmsTemplateBean.C_PARAM_SITE); if (CmsStringUtil.isNotEmpty(siteRoot)) { getRequestContext().setSiteRoot(siteRoot); } // set uri to file that opened the imprint window String oldUri = getRequestContext().getUri(); String uri = req.getParameter(CmsTemplateBean.C_PARAM_URI); if (uri == null) { uri = oldUri; } getRequestContext().setUri(uri); // get configuration file path String configFileName = property(C_PROPERTY_CONFIGFILE, "search", ""); if ("".equals(configFileName)) { configFileName = getConfigPath() + C_FILENAME_CONFIGFILE; } // collect the configuration data m_configuration = CmsTemplateBean.getConfigurationFile(configFileName, getCmsObject()); }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/41dcaa9d1a1b8f8fa6c1dd9a04fc8532eb83ebb7/CmsTemplateImprint.java/buggy/src-modules/org/opencms/frontend/templateone/CmsTemplateImprint.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1208, 12, 1964, 1042, 819, 16, 9984, 1111, 16, 12446, 400, 13, 288, 3639, 368, 745, 10313, 434, 2240, 667, 3639, 2240, 18, 2738, 12, 2472, 16, 1111, 16, 400, 1769, 3639, 368,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1208, 12, 1964, 1042, 819, 16, 9984, 1111, 16, 12446, 400, 13, 288, 3639, 368, 745, 10313, 434, 2240, 667, 3639, 2240, 18, 2738, 12, 2472, 16, 1111, 16, 400, 1769, 3639, 368,...
stringBuffer.append(TEXT_395);
stringBuffer.append(TEXT_397);
public String generate(Object argument) { final StringBuffer stringBuffer = new StringBuffer(); final GenDiagram genDiagram = (GenDiagram) ((Object[]) argument)[0];final ImportAssistant importManager = (ImportAssistant) ((Object[]) argument)[1];final GenEditorGenerator editorGen = genDiagram.getEditorGen();final GenModel genModel = editorGen.getDomainGenModel();final String pluginActivatorClass = importManager.getImportedName(editorGen.getPlugin().getActivatorQualifiedClassName());final boolean isRichClientPlatform = genDiagram.getEditorGen().getDomainGenModel().isRichClientPlatform(); stringBuffer.append(TEXT_1); String copyrightText = genDiagram.getEditorGen().getCopyrightText();if (copyrightText != null && copyrightText.trim().length() > 0) { stringBuffer.append(TEXT_2); stringBuffer.append(copyrightText.replaceAll("\n", "\n * ")); stringBuffer.append(TEXT_3); } importManager.emitPackageStatement(stringBuffer);importManager.markImportLocation(stringBuffer);importManager.registerInnerClass("RootElementSelectorPage");if (isRichClientPlatform) { importManager.registerInnerClass("URISelectorPage"); importManager.registerInnerClass("SourceURISelectorPage"); importManager.registerInnerClass("DiagramURISelectorPage");} stringBuffer.append(TEXT_4); class FeatureGetAccessorHelper { /** * @param containerName the name of the container * @param feature the feature whose value is in interest * @param containerMetaClass the <code>GenClass</code> of the container, or <code>null</code>, if the container is declared as an <code>EObject</code>. * @param needsCastToResultType whether the cast to the result type is required (this parameter is only used if the <code>EClass</code> this feature belongs to is an external interface). */ public void appendFeatureValueGetter(String containerName, GenFeature feature, GenClass containerMetaClass, boolean needsCastToResultType) { if (feature.getGenClass().isExternalInterface()) { boolean needsCastToEObject = containerMetaClass != null && containerMetaClass.isExternalInterface(); if (needsCastToResultType) { stringBuffer.append(TEXT_5); stringBuffer.append(importManager.getImportedName(feature.isListType() ? "java.util.Collection" : feature.getTypeGenClass().getQualifiedInterfaceName())); stringBuffer.append(TEXT_6); } if (needsCastToEObject) { stringBuffer.append(TEXT_7); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_8); } stringBuffer.append(containerName); if (needsCastToEObject) { stringBuffer.append(TEXT_9); } stringBuffer.append(TEXT_10); stringBuffer.append(importManager.getImportedName(feature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_11); stringBuffer.append(feature.getFeatureAccessorName()); stringBuffer.append(TEXT_12); if (needsCastToResultType) { stringBuffer.append(TEXT_13); } } else { boolean needsCastToFeatureGenType = containerMetaClass == null || containerMetaClass.isExternalInterface(); if (needsCastToFeatureGenType) { stringBuffer.append(TEXT_14); stringBuffer.append(importManager.getImportedName(feature.getGenClass().getQualifiedInterfaceName())); stringBuffer.append(TEXT_15); } stringBuffer.append(containerName); if (needsCastToFeatureGenType) { stringBuffer.append(TEXT_16); } stringBuffer.append(TEXT_17); stringBuffer.append(feature.getGetAccessor()); stringBuffer.append(TEXT_18); } }}final FeatureGetAccessorHelper myFeatureGetAccessorHelper = new FeatureGetAccessorHelper(); stringBuffer.append(TEXT_19); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_20); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.wizard.Wizard")); stringBuffer.append(TEXT_21); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_22); if (isRichClientPlatform) { stringBuffer.append(TEXT_23); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_24); } else { stringBuffer.append(TEXT_25); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile")); stringBuffer.append(TEXT_26); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.dialogs.WizardNewFileCreationPage")); stringBuffer.append(TEXT_27); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPage")); stringBuffer.append(TEXT_28); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.IStructuredSelection")); stringBuffer.append(TEXT_29); } stringBuffer.append(TEXT_30); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_31); if (isRichClientPlatform) { stringBuffer.append(TEXT_32); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_33); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_34); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_35); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_36); } else { stringBuffer.append(TEXT_37); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_38); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile")); stringBuffer.append(TEXT_39); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPage")); stringBuffer.append(TEXT_40); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.IStructuredSelection")); stringBuffer.append(TEXT_41); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_42); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_43); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_44); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_45); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_46); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_47); } stringBuffer.append(TEXT_48); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_49); if (isRichClientPlatform) { stringBuffer.append(TEXT_50); } else { stringBuffer.append(TEXT_51); } stringBuffer.append(TEXT_52); if (isRichClientPlatform) { stringBuffer.append(TEXT_53); } else { stringBuffer.append(TEXT_54); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.dialogs.WizardNewFileCreationPage")); stringBuffer.append(TEXT_55); stringBuffer.append(genModel.getModelName()); stringBuffer.append(TEXT_56); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_57); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IContainer")); stringBuffer.append(TEXT_58); stringBuffer.append(editorGen.getDiagramFileExtension()); stringBuffer.append(TEXT_59); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Path")); stringBuffer.append(TEXT_60); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Path")); stringBuffer.append(TEXT_61); stringBuffer.append(genModel.getModelName()); stringBuffer.append(TEXT_62); } stringBuffer.append(TEXT_63); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.resource.ResourceSet")); stringBuffer.append(TEXT_64); if (isRichClientPlatform) { stringBuffer.append(TEXT_65); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_66); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.resource.Resource")); stringBuffer.append(TEXT_67); } else { stringBuffer.append(TEXT_68); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile")); stringBuffer.append(TEXT_69); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.NullProgressMonitor")); stringBuffer.append(TEXT_70); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.CoreException")); stringBuffer.append(TEXT_71); stringBuffer.append(pluginActivatorClass); stringBuffer.append(TEXT_72); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.resource.Resource")); stringBuffer.append(TEXT_73); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_74); } stringBuffer.append(TEXT_75); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); stringBuffer.append(TEXT_76); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); stringBuffer.append(TEXT_77); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Diagram")); stringBuffer.append(TEXT_78); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_79); stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_80); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationFactory")); stringBuffer.append(TEXT_81); stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoryQualifiedClassName())); stringBuffer.append(TEXT_82); if (editorGen.isSameFileForDiagramAndModel()) { stringBuffer.append(TEXT_83); } stringBuffer.append(TEXT_84); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); stringBuffer.append(TEXT_85); stringBuffer.append(importManager.getImportedName("java.util.Collections")); stringBuffer.append(TEXT_86); if (isRichClientPlatform) { stringBuffer.append(TEXT_87); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IEditorPart")); stringBuffer.append(TEXT_88); stringBuffer.append(importManager.getImportedName(genDiagram.getDiagramEditorUtilQualifiedClassName())); stringBuffer.append(TEXT_89); } else { stringBuffer.append(TEXT_90); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IEditorPart")); stringBuffer.append(TEXT_91); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.ide.IDE")); stringBuffer.append(TEXT_92); } stringBuffer.append(TEXT_93); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.IDiagramLayouter")); stringBuffer.append(TEXT_94); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.IDiagramLayouter")); stringBuffer.append(TEXT_95); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.IDiagramLayouter")); stringBuffer.append(TEXT_96); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalViewer")); stringBuffer.append(TEXT_97); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalViewer")); stringBuffer.append(TEXT_98); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalViewer")); stringBuffer.append(TEXT_99); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); stringBuffer.append(TEXT_100); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); stringBuffer.append(TEXT_101); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); stringBuffer.append(TEXT_102); stringBuffer.append(importManager.getImportedName("java.io.IOException")); stringBuffer.append(TEXT_103); if (isRichClientPlatform) { stringBuffer.append(TEXT_104); stringBuffer.append(pluginActivatorClass); stringBuffer.append(TEXT_105); } else { stringBuffer.append(TEXT_106); stringBuffer.append(pluginActivatorClass); stringBuffer.append(TEXT_107); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.PartInitException")); stringBuffer.append(TEXT_108); stringBuffer.append(pluginActivatorClass); stringBuffer.append(TEXT_109); } stringBuffer.append(TEXT_110); stringBuffer.append(TEXT_111); stringBuffer.append(TEXT_112); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Diagram")); stringBuffer.append(TEXT_113); stringBuffer.append(genDiagram.getUniqueIdentifier()); stringBuffer.append(TEXT_114); if(!genDiagram.getLinks().isEmpty()) { stringBuffer.append(TEXT_115); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.NaiveViewService")); stringBuffer.append(TEXT_116); stringBuffer.append(genDiagram.getUniqueIdentifier()); stringBuffer.append(TEXT_117); } stringBuffer.append(TEXT_118); final Comparator<GenContainerBase> comparator = new Comparator<GenContainerBase>() { public int compare(GenContainerBase o1, GenContainerBase o2) { return o1.getVisualID() - o2.getVisualID(); }};TreeSet<GenContainerBase> containers2Generate = new TreeSet<GenContainerBase>(comparator);for (Iterator containers = genDiagram.getAllContainers().iterator(); containers.hasNext();) { GenContainerBase nextContainer = (GenContainerBase) containers.next(); if (!nextContainer.getContainedNodes().isEmpty()) { containers2Generate.add(nextContainer); continue; } if (nextContainer instanceof GenDiagram) { containers2Generate.add(nextContainer); continue; } if (nextContainer instanceof GenNode) { //May need to generate if contains compartments with children for(Iterator compartments = ((GenNode) nextContainer).getCompartments().iterator(); compartments.hasNext(); ) { GenCompartment nextCompartment = (GenCompartment) compartments.next(); if (!nextCompartment.getContainedNodes().isEmpty()) { containers2Generate.add(nextContainer); break; } } }}for (Iterator<GenContainerBase> containers = containers2Generate.iterator(); containers.hasNext();) { GenContainerBase nextContainer = containers.next(); stringBuffer.append(TEXT_119); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_120); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_121); if (nextContainer instanceof GenNode) { boolean shouldIterateOverCompartments = false; for(Iterator compartments = ((GenNode) nextContainer).getCompartments().iterator(); compartments.hasNext(); ) { GenCompartment nextCompartment = (GenCompartment) compartments.next(); if (!nextCompartment.getContainedNodes().isEmpty()) { shouldIterateOverCompartments = true; break; } } if (shouldIterateOverCompartments) { stringBuffer.append(TEXT_122); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_123); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_124); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_125); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_126); for(Iterator compartments = ((GenNode) nextContainer).getCompartments().iterator(); compartments.hasNext(); ) { GenCompartment nextCompartment = (GenCompartment) compartments.next(); if (nextCompartment.getContainedNodes().isEmpty()) { continue; } stringBuffer.append(TEXT_127); stringBuffer.append(importManager.getImportedName(nextCompartment.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_128); stringBuffer.append(nextCompartment.getUniqueIdentifier()); stringBuffer.append(TEXT_129); } stringBuffer.append(TEXT_130); } } stringBuffer.append(TEXT_131); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_132); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_133); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_134); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor")); stringBuffer.append(TEXT_135); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor")); stringBuffer.append(TEXT_136); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalElementCommand")); stringBuffer.append(TEXT_137); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_138); boolean shouldIterateToGenerate = false; for(Iterator containedNodes = nextContainer.getContainedNodes().iterator(); containedNodes.hasNext(); ) { GenNode nextNode = (GenNode) containedNodes.next(); if (containers2Generate.contains(nextNode)) { shouldIterateToGenerate = true; break; } } if (shouldIterateToGenerate) { stringBuffer.append(TEXT_139); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_140); for(Iterator containedNodes = nextContainer.getContainedNodes().iterator(); containedNodes.hasNext(); ) { GenNode nextNode = (GenNode) containedNodes.next(); if (containers2Generate.contains(nextNode)) { stringBuffer.append(TEXT_141); stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_142); stringBuffer.append(nextNode.getUniqueIdentifier()); stringBuffer.append(TEXT_143); } } stringBuffer.append(TEXT_144); } stringBuffer.append(TEXT_145); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_146); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_147); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_148); { String _getViewCode = "parentView"; List childNodes = nextContainer.getContainedNodes(); stringBuffer.append(TEXT_149); if (childNodes.size() == 0) { stringBuffer.append(TEXT_150); stringBuffer.append(importManager.getImportedName("java.util.Collections")); stringBuffer.append(TEXT_151); } else { stringBuffer.append(TEXT_152); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_153); stringBuffer.append(importManager.getImportedName("java.util.LinkedList")); stringBuffer.append(TEXT_154); Map genFeature2genNodeMap = new LinkedHashMap(); for (int nodeIndex = 0; nodeIndex < childNodes.size(); nodeIndex++) { GenNode nextNode = (GenNode) childNodes.get(nodeIndex); TypeModelFacet typeModelFacet = nextNode.getModelFacet(); if (typeModelFacet == null) { continue; } GenFeature childMetaFeature = typeModelFacet.getChildMetaFeature(); if (!genFeature2genNodeMap.containsKey(childMetaFeature)) { genFeature2genNodeMap.put(childMetaFeature, new ArrayList()); } ((Collection) genFeature2genNodeMap.get(childMetaFeature)).add(nextNode); } Set entrySet = genFeature2genNodeMap.entrySet(); if (entrySet.size() > 0) { stringBuffer.append(TEXT_155); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_156); stringBuffer.append(_getViewCode); stringBuffer.append(TEXT_157); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_158); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_159); } for (Iterator entries = entrySet.iterator(); entries.hasNext();) { Map.Entry nextEntry = (Map.Entry) entries.next(); GenFeature childMetaFeature = (GenFeature) nextEntry.getKey(); Collection genNodesCollection = (Collection) nextEntry.getValue(); if (childMetaFeature.isListType()) { stringBuffer.append(TEXT_160); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_161); myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", childMetaFeature, null, true); stringBuffer.append(TEXT_162); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_163); } else { stringBuffer.append(TEXT_164); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_165); myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", childMetaFeature, null, false); stringBuffer.append(TEXT_166); } stringBuffer.append(TEXT_167); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_168); boolean generateSwitch = genNodesCollection.size() != 1; if (generateSwitch) { stringBuffer.append(TEXT_169); } for (Iterator genNodesIterator = genNodesCollection.iterator(); genNodesIterator.hasNext();) { GenNode nextNode = (GenNode) genNodesIterator.next(); if (generateSwitch) { stringBuffer.append(TEXT_170); stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_171); } else { stringBuffer.append(TEXT_172); stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_173); } stringBuffer.append(TEXT_174); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor")); stringBuffer.append(TEXT_175); if (generateSwitch) { stringBuffer.append(TEXT_176); } else { stringBuffer.append(TEXT_177); } } if (generateSwitch) { stringBuffer.append(TEXT_178); } if (childMetaFeature.isListType()) { stringBuffer.append(TEXT_179); }} stringBuffer.append(TEXT_180); } } stringBuffer.append(TEXT_181); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalElementCommand")); stringBuffer.append(TEXT_182); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_183); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_184); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor")); stringBuffer.append(TEXT_185); { String _parentNode = "parentView"; List childNodes = nextContainer.getContainedNodes(); boolean isListLayout; if (nextContainer instanceof GenNode) { isListLayout = !org.eclipse.gmf.codegen.gmfgen.util.ViewmapLayoutTypeHelper.getSharedInstance().isStoringChildPositions((GenNode) nextContainer); } else if (nextContainer instanceof GenCompartment) { isListLayout = ((GenCompartment) nextContainer).isListLayout(); } else if (nextContainer instanceof GenDiagram) { isListLayout = false; } else { throw new RuntimeException("Unexpected container"); } stringBuffer.append(TEXT_186); stringBuffer.append(TEXT_187); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_188); for (Iterator it = childNodes.iterator(); it.hasNext(); ) { GenNode nextNode = (GenNode) it.next(); TypeModelFacet typeModelFacet = nextNode.getModelFacet(); if (typeModelFacet == null) { continue; } String childNodeInterfaceName = importManager.getImportedName(nextNode.getDomainMetaClass().getQualifiedInterfaceName()); stringBuffer.append(TEXT_189); stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_190); stringBuffer.append(childNodeInterfaceName); stringBuffer.append(TEXT_191); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalNodeCommand")); stringBuffer.append(TEXT_192); stringBuffer.append(_parentNode); stringBuffer.append(TEXT_193); if (!isListLayout) { int defaultWidth = 40; int defaultHeight = 40; DefaultSizeAttributes defSizeAttrs = (DefaultSizeAttributes) nextNode.getViewmap().find(DefaultSizeAttributes.class); if (defSizeAttrs != null) { defaultWidth = defSizeAttrs.getWidth(); defaultHeight = defSizeAttrs.getHeight(); } stringBuffer.append(TEXT_194); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); stringBuffer.append(TEXT_195); stringBuffer.append(defaultWidth); stringBuffer.append(TEXT_196); stringBuffer.append(defaultHeight); stringBuffer.append(TEXT_197); } else { stringBuffer.append(TEXT_198); } stringBuffer.append(TEXT_199); stringBuffer.append(importManager.getImportedName(nextNode.getNotationViewFactoryQualifiedClassName())); stringBuffer.append(TEXT_200); } stringBuffer.append(TEXT_201); } stringBuffer.append(TEXT_202); }class LinksCollection { private Collection<GenLink> myTypeModelFacetLinks = new LinkedList<GenLink>(); private Collection<GenLink> myFeatureModelFacetLinks = new LinkedList<GenLink>(); public void add(GenLink link) { if (link.getModelFacet() instanceof TypeLinkModelFacet) { myTypeModelFacetLinks.add(link); } else if (link.getModelFacet() instanceof FeatureLinkModelFacet) { myFeatureModelFacetLinks.add(link); } } public Iterator<GenLink> getContainedTypeModelFacetLinks() { return myTypeModelFacetLinks.iterator(); } public Iterator<GenLink> getContainedFeatureModelFacetLinks() { return myFeatureModelFacetLinks.iterator(); }}class CreateChildLinkElements { private TreeMap<GenContainerBase, LinksCollection> myElements; public CreateChildLinkElements() { myElements = new TreeMap<GenContainerBase, LinksCollection>(comparator); } public void add(GenContainerBase o, GenLink link) { buildAncestors(o); myElements.get(o).add(link); } private void buildAncestors(GenContainerBase o) { if (!myElements.containsKey(o)) { LinksCollection elements = new LinksCollection(); myElements.put(o, elements); addAncestors(o); } } private void addAncestors(GenContainerBase o) { if (o instanceof GenCompartment) { GenCompartment compartment = (GenCompartment) o; buildAncestors(compartment.getNode()); } else if (o instanceof GenTopLevelNode) { GenTopLevelNode node = (GenTopLevelNode) o; buildAncestors(node.getDiagram()); } else if (o instanceof GenChildNode) { GenChildNode node = (GenChildNode) o; for(Iterator it = node.getContainers().iterator(); it.hasNext(); ) { GenContainerBase next = (GenContainerBase) it.next(); buildAncestors(next); } } } public boolean contains(GenContainerBase o) { return myElements.containsKey(o); } public Iterator<Map.Entry<GenContainerBase, LinksCollection>> iterator() { return myElements.entrySet().iterator(); }}if (!genDiagram.getLinks().isEmpty()) { CreateChildLinkElements linkContainers2Generate = new CreateChildLinkElements(); //No need to explicitly add diagram, since we build the whole hierarchy up. for(Iterator links = genDiagram.getLinks().iterator(); links.hasNext(); ) { GenLink next = (GenLink) links.next(); GenClass containerClass; LinkModelFacet nextModelFacet = next.getModelFacet(); if (nextModelFacet instanceof TypeLinkModelFacet) { TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) next.getModelFacet(); if (modelFacet.getSourceMetaFeature() == null && modelFacet.getTargetMetaFeature() == null) { //if one link feature is null, the element is treated as this end of the link. If both are null, we cannot do anything about such a link. containerClass = null; } else { containerClass = modelFacet.getContainmentMetaFeature().getGenClass(); } } else if (nextModelFacet instanceof FeatureLinkModelFacet) { GenFeature metaFeature = ((FeatureModelFacet) next.getModelFacet()).getMetaFeature(); containerClass = metaFeature.getGenClass(); } else { continue; } for (Iterator nodes = genDiagram.getAllNodes().iterator(); nodes.hasNext(); ) { GenNode nextNode = (GenNode) nodes.next(); if (containerClass.getEcoreClass().isSuperTypeOf(nextNode.getDomainMetaClass().getEcoreClass())) { linkContainers2Generate.add(nextNode, next); } } } for(Iterator<Map.Entry<GenContainerBase, LinksCollection>> entryIt = linkContainers2Generate.iterator(); entryIt.hasNext(); ) { Map.Entry<GenContainerBase, LinksCollection> next = entryIt.next(); GenContainerBase nextContainer = next.getKey(); LinksCollection linksCollection = next.getValue(); Iterator<GenLink> typeModelFacetLinks = linksCollection.getContainedTypeModelFacetLinks(); Iterator<GenLink> featureModelFacetLinks = linksCollection.getContainedFeatureModelFacetLinks(); stringBuffer.append(TEXT_203); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_204); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_205); if (typeModelFacetLinks.hasNext() || featureModelFacetLinks.hasNext()) { stringBuffer.append(TEXT_206); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_207); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_208); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_209); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor")); stringBuffer.append(TEXT_210); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor")); stringBuffer.append(TEXT_211); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalElementCommand")); stringBuffer.append(TEXT_212); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_213); } boolean shouldIterateToGenerate = false; Collection childElements = new ArrayList(nextContainer.getContainedNodes()); if (nextContainer instanceof GenNode) { childElements.addAll(((GenNode) nextContainer).getCompartments()); } for(Iterator childrenIterator = childElements.iterator(); childrenIterator.hasNext(); ) { GenContainerBase nextChild = (GenContainerBase) childrenIterator.next(); if (linkContainers2Generate.contains(nextChild)) { shouldIterateToGenerate = true; break; } } if (shouldIterateToGenerate) { stringBuffer.append(TEXT_214); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_215); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_216); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_217); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_218); for(Iterator childrenIterator = childElements.iterator(); childrenIterator.hasNext(); ) { GenContainerBase nextChild = (GenContainerBase) childrenIterator.next(); if (!linkContainers2Generate.contains(nextChild)) { continue; } stringBuffer.append(TEXT_219); stringBuffer.append(importManager.getImportedName(nextChild.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_220); stringBuffer.append(nextChild.getUniqueIdentifier()); stringBuffer.append(TEXT_221); } stringBuffer.append(TEXT_222); } stringBuffer.append(TEXT_223); if (typeModelFacetLinks.hasNext() || featureModelFacetLinks.hasNext()) { stringBuffer.append(TEXT_224); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_225); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_226); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_227); { String _getViewCode = "parentView"; List childNodes = nextContainer.getContainedNodes(); Iterator<GenLink> _containedTypeModelFacetLinks = linksCollection.getContainedTypeModelFacetLinks();; Iterator<GenLink> _containedFeatureModelFacetLinks = linksCollection.getContainedFeatureModelFacetLinks();; stringBuffer.append(TEXT_228); stringBuffer.append(TEXT_229); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_230); stringBuffer.append(importManager.getImportedName("java.util.LinkedList")); stringBuffer.append(TEXT_231); Map genFeature2genLinkMap = new LinkedHashMap();for(Iterator it = _containedTypeModelFacetLinks; it.hasNext(); ) { GenLink genLink = (GenLink)it.next(); TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); GenFeature metaFeature = modelFacet.getChildMetaFeature(); if (!genFeature2genLinkMap.containsKey(metaFeature)) { genFeature2genLinkMap.put(metaFeature, new ArrayList()); } ((Collection) genFeature2genLinkMap.get(metaFeature)).add(genLink);}Map genFeature2featureGenLinkMap = new LinkedHashMap();for(Iterator it = _containedFeatureModelFacetLinks; it.hasNext(); ) { GenLink genLink = (GenLink)it.next(); GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); if (!genFeature2featureGenLinkMap.containsKey(metaFeature)) { genFeature2featureGenLinkMap.put(metaFeature, new ArrayList()); } ((Collection) genFeature2featureGenLinkMap.get(metaFeature)).add(genLink);}if (!genFeature2genLinkMap.isEmpty() || !genFeature2featureGenLinkMap.isEmpty()) { stringBuffer.append(TEXT_232); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_233); stringBuffer.append(_getViewCode); stringBuffer.append(TEXT_234); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_235); }if (!genFeature2genLinkMap.isEmpty()) { stringBuffer.append(TEXT_236); }for (Iterator entries = genFeature2genLinkMap.entrySet().iterator(); entries.hasNext();) { Map.Entry nextEntry = (Map.Entry) entries.next(); GenFeature metaFeature = (GenFeature) nextEntry.getKey(); Collection genLinksCollection = (Collection) nextEntry.getValue(); if (metaFeature.isListType()) { stringBuffer.append(TEXT_237); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_238); myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", metaFeature, null, true); stringBuffer.append(TEXT_239); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_240); } else { stringBuffer.append(TEXT_241); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_242); myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", metaFeature, null, false); stringBuffer.append(TEXT_243); } stringBuffer.append(TEXT_244); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_245); boolean generateSwitch = genLinksCollection.size() != 1; if (generateSwitch) { stringBuffer.append(TEXT_246); } for (Iterator genLinksIterator = genLinksCollection.iterator(); genLinksIterator.hasNext(); ) { GenLink nextLink = (GenLink) genLinksIterator.next(); TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) nextLink.getModelFacet(); if (generateSwitch) { stringBuffer.append(TEXT_247); stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_248); } else { stringBuffer.append(TEXT_249); stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_250); } if (modelFacet.getSourceMetaFeature() != null) { stringBuffer.append(TEXT_251); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_252); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_253); myFeatureGetAccessorHelper.appendFeatureValueGetter("nextValue", modelFacet.getSourceMetaFeature(), null, false); stringBuffer.append(TEXT_254); } else { stringBuffer.append(TEXT_255); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_256); stringBuffer.append(_getViewCode); stringBuffer.append(TEXT_257); } if (modelFacet.getTargetMetaFeature() != null) { stringBuffer.append(TEXT_258); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_259); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_260); myFeatureGetAccessorHelper.appendFeatureValueGetter("nextValue", modelFacet.getTargetMetaFeature(), null, false); stringBuffer.append(TEXT_261); } else { stringBuffer.append(TEXT_262); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_263); stringBuffer.append(_getViewCode); stringBuffer.append(TEXT_264); } stringBuffer.append(TEXT_265); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor")); stringBuffer.append(TEXT_266); if (generateSwitch) { stringBuffer.append(TEXT_267); } else { stringBuffer.append(TEXT_268); } } //iterate over genLinksCollection if (generateSwitch) { stringBuffer.append(TEXT_269); } if (metaFeature.isListType()) { stringBuffer.append(TEXT_270); }}for (Iterator entries = genFeature2featureGenLinkMap.entrySet().iterator(); entries.hasNext();) { Map.Entry nextEntry = (Map.Entry) entries.next(); GenFeature metaFeature = (GenFeature) nextEntry.getKey(); Collection genLinksCollection = (Collection) nextEntry.getValue(); if (metaFeature.isListType()) { stringBuffer.append(TEXT_271); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_272); myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", metaFeature, null, true); stringBuffer.append(TEXT_273); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_274); } else { stringBuffer.append(TEXT_275); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_276); myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", metaFeature, null, false); stringBuffer.append(TEXT_277); } stringBuffer.append(TEXT_278); for (Iterator genLinksIterator = genLinksCollection.iterator(); genLinksIterator.hasNext(); ) { GenLink nextLink = (GenLink) genLinksIterator.next(); stringBuffer.append(TEXT_279); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor")); stringBuffer.append(TEXT_280); stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_281); } stringBuffer.append(TEXT_282); if (metaFeature.isListType()) { stringBuffer.append(TEXT_283); }} stringBuffer.append(TEXT_284); } stringBuffer.append(TEXT_285); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalElementCommand")); stringBuffer.append(TEXT_286); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_287); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_288); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor")); stringBuffer.append(TEXT_289); { String _diagramCode = "parentView.getDiagram()"; Iterator<GenLink> _containedTypeModelFacetLinks = linksCollection.getContainedTypeModelFacetLinks();; Iterator<GenLink> _containedFeatureModelFacetLinks = linksCollection.getContainedFeatureModelFacetLinks();; stringBuffer.append(TEXT_290); stringBuffer.append(TEXT_291); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_292); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_293); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.IViewDecorator")); stringBuffer.append(TEXT_294); for(Iterator it = _containedTypeModelFacetLinks; it.hasNext(); ) { GenLink nextLink = (GenLink) it.next(); TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) nextLink.getModelFacet(); if (modelFacet == null) { continue; } stringBuffer.append(TEXT_295); stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_296); stringBuffer.append(importManager.getImportedName(modelFacet.getMetaClass().getQualifiedInterfaceName())); stringBuffer.append(TEXT_297); stringBuffer.append(importManager.getImportedName(nextLink.getNotationViewFactoryQualifiedClassName())); stringBuffer.append(TEXT_298); } for(Iterator it = _containedFeatureModelFacetLinks; it.hasNext(); ) { GenLink nextLink = (GenLink) it.next(); stringBuffer.append(TEXT_299); stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_300); stringBuffer.append(importManager.getImportedName(nextLink.getNotationViewFactoryQualifiedClassName())); stringBuffer.append(TEXT_301); } stringBuffer.append(TEXT_302); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalEdgeCommand")); stringBuffer.append(TEXT_303); stringBuffer.append(_diagramCode); stringBuffer.append(TEXT_304); } stringBuffer.append(TEXT_305); } }}if(!genDiagram.getLinks().isEmpty()) { stringBuffer.append(TEXT_306); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.IViewService")); stringBuffer.append(TEXT_307); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.IViewService")); stringBuffer.append(TEXT_308); } stringBuffer.append(TEXT_309); if (isRichClientPlatform) { stringBuffer.append(TEXT_310); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.wizard.WizardPage")); stringBuffer.append(TEXT_311); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Text")); stringBuffer.append(TEXT_312); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_313); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_314); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_315); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_316); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridLayout")); stringBuffer.append(TEXT_317); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridLayout")); stringBuffer.append(TEXT_318); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_319); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_320); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_321); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_322); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Label")); stringBuffer.append(TEXT_323); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Label")); stringBuffer.append(TEXT_324); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_325); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_326); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_327); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_328); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_329); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_330); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_331); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_332); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_333); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_334); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridLayout")); stringBuffer.append(TEXT_335); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridLayout")); stringBuffer.append(TEXT_336); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Text")); stringBuffer.append(TEXT_337); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_338); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_339); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_340); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_341); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Button")); stringBuffer.append(TEXT_342); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Button")); stringBuffer.append(TEXT_343); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_344); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.events.SelectionAdapter")); stringBuffer.append(TEXT_345); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.events.SelectionEvent")); stringBuffer.append(TEXT_346); stringBuffer.append(importManager.getImportedName(genDiagram.getDiagramEditorUtilQualifiedClassName())); stringBuffer.append(TEXT_347); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_348); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.events.ModifyListener")); stringBuffer.append(TEXT_349); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.events.ModifyListener")); stringBuffer.append(TEXT_350); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.events.ModifyEvent")); stringBuffer.append(TEXT_351); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_352); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_353); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_354); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_355); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_356); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_357); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_358); stringBuffer.append(editorGen.getDomainFileExtension()); stringBuffer.append(TEXT_359); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_360); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_361); stringBuffer.append(editorGen.getDiagramFileExtension()); stringBuffer.append(TEXT_362); stringBuffer.append(editorGen.getDomainGenModel().getModelName()); stringBuffer.append(TEXT_363); stringBuffer.append(editorGen.getDiagramFileExtension()); stringBuffer.append(TEXT_364); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_365); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_366); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_367); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_368); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_369); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_370); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_371); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_372); } stringBuffer.append(TEXT_373); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.wizard.WizardPage")); stringBuffer.append(TEXT_374); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.ISelectionChangedListener")); stringBuffer.append(TEXT_375); if (isRichClientPlatform) { stringBuffer.append(TEXT_376); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.TreeViewer")); stringBuffer.append(TEXT_377); } stringBuffer.append(TEXT_378); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_379); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_380); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_381); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_382); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridLayout")); stringBuffer.append(TEXT_383); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_384); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_385); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_386); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_387); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_388); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_389); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_390); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_391); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_392); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridLayout")); stringBuffer.append(TEXT_393); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridLayout")); stringBuffer.append(TEXT_394); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Label")); stringBuffer.append(TEXT_395); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Label")); stringBuffer.append(TEXT_396); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_397); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_398); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_399); final String treeViewer = isRichClientPlatform ? "myTreeViewer" : "treeViewer"; stringBuffer.append(TEXT_400); if (!isRichClientPlatform){ stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.TreeViewer")); stringBuffer.append(TEXT_401); } stringBuffer.append(treeViewer); stringBuffer.append(TEXT_402); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.TreeViewer")); stringBuffer.append(TEXT_403); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_404); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_405); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_406); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_407); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_408); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_409); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_410); stringBuffer.append(treeViewer); stringBuffer.append(TEXT_411); stringBuffer.append(treeViewer); stringBuffer.append(TEXT_412); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider")); stringBuffer.append(TEXT_413); stringBuffer.append(pluginActivatorClass); stringBuffer.append(TEXT_414); stringBuffer.append(treeViewer); stringBuffer.append(TEXT_415); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider")); stringBuffer.append(TEXT_416); stringBuffer.append(pluginActivatorClass); stringBuffer.append(TEXT_417); if (!isRichClientPlatform) { stringBuffer.append(TEXT_418); stringBuffer.append(treeViewer); stringBuffer.append(TEXT_419); stringBuffer.append(treeViewer); stringBuffer.append(TEXT_420); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.StructuredSelection")); stringBuffer.append(TEXT_421); } stringBuffer.append(TEXT_422); stringBuffer.append(treeViewer); stringBuffer.append(TEXT_423); if (isRichClientPlatform) { stringBuffer.append(TEXT_424); stringBuffer.append(treeViewer); stringBuffer.append(TEXT_425); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.StructuredSelection")); stringBuffer.append(TEXT_426); } stringBuffer.append(TEXT_427); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.SelectionChangedEvent")); stringBuffer.append(TEXT_428); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.IStructuredSelection")); stringBuffer.append(TEXT_429); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.IStructuredSelection")); stringBuffer.append(TEXT_430); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.IStructuredSelection")); stringBuffer.append(TEXT_431); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.provider.IWrapperItemProvider")); stringBuffer.append(TEXT_432); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.provider.IWrapperItemProvider")); stringBuffer.append(TEXT_433); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.util.FeatureMap")); stringBuffer.append(TEXT_434); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.util.FeatureMap")); stringBuffer.append(TEXT_435); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_436); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_437); stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_438); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_439); importManager.emitSortedImports(); stringBuffer.append(TEXT_440); return stringBuffer.toString(); }
7409 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7409/88670058e3792eb12387f6a2bac58d878ca8f3f6/NewDiagramFileWizardGenerator.java/clean/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/editor/NewDiagramFileWizardGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 2103, 12, 921, 1237, 13, 225, 288, 565, 727, 6674, 533, 1892, 273, 394, 6674, 5621, 565, 727, 10938, 14058, 1940, 3157, 14058, 1940, 273, 261, 7642, 14058, 1940, 13, 14015, 921...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 2103, 12, 921, 1237, 13, 225, 288, 565, 727, 6674, 533, 1892, 273, 394, 6674, 5621, 565, 727, 10938, 14058, 1940, 3157, 14058, 1940, 273, 261, 7642, 14058, 1940, 13, 14015, 921...
else if (parser.getName().equals("priority")) {
else if (elementName.equals("priority")) {
private Packet parsePresence(XmlPullParser parser) throws Exception { Presence.Type type = Presence.Type.fromString(parser.getAttributeValue("", "type")); Presence presence = new Presence(type); presence.setTo(parser.getAttributeValue("", "to")); presence.setFrom(parser.getAttributeValue("", "from")); presence.setPacketID(parser.getAttributeValue("", "id")); // Parse sub-elements boolean done = false; while (!done) { int eventType = parser.next(); if (eventType == XmlPullParser.START_TAG) { if (parser.getName().equals("status")) { presence.setStatus(parser.nextText()); } else if (parser.getName().equals("priority")) { try { int priority = Integer.parseInt(parser.nextText()); presence.setPriority(priority); } catch (NumberFormatException nfe) { } } else if (parser.getName().equals("show")) { presence.setMode(Presence.Mode.fromString(parser.nextText())); } else if (parser.getName().equals("error")) { presence.setError(parseError(parser)); } else if (parser.getName().equals("properties") && parser.getNamespace().equals(PROPERTIES_NAMESPACE)) { Map properties = parseProperties(parser); // Set packet properties. for (Iterator i=properties.keySet().iterator(); i.hasNext(); ) { String name = (String)i.next(); presence.setProperty(name, properties.get(name)); } } } else if (eventType == XmlPullParser.END_TAG) { if (parser.getName().equals("presence")) { done = true; } } } return presence; }
1538 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1538/d3bd50a1e4cedf89e8507df5fe2f5721ed9de918/PacketReader.java/clean/source/org/jivesoftware/smack/PacketReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 11114, 1109, 22590, 12, 4432, 9629, 2678, 2082, 13, 1216, 1185, 288, 3639, 31517, 18, 559, 618, 273, 31517, 18, 559, 18, 2080, 780, 12, 4288, 18, 588, 14942, 2932, 3113, 315, 723, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11114, 1109, 22590, 12, 4432, 9629, 2678, 2082, 13, 1216, 1185, 288, 3639, 31517, 18, 559, 618, 273, 31517, 18, 559, 18, 2080, 780, 12, 4288, 18, 588, 14942, 2932, 3113, 315, 723, ...
} } finally {
} }finally{
synchronized public void acknowledge(final ConnectionContext context, final MessageAck ack) throws Throwable { // Handle the standard acknowledgment case. boolean wasFull = isFull(); if( ack.isStandardAck() ) { // Acknowledge all dispatched messages up till the message id of the acknowledgment. int index=0; boolean inAckRange=false; for (Iterator iter = dispatched.iterator(); iter.hasNext();) { final MessageReference node = (MessageReference)iter.next(); MessageId messageId = node.getMessageId(); if( ack.getFirstMessageId()==null || ack.getFirstMessageId().equals(messageId)) { inAckRange = true; } if( inAckRange ) { // Don't remove the nodes until we are committed. if ( !context.isInTransaction() ) { iter.remove(); } else { // setup a Synchronization to remove nodes from the dispatched list. context.getTransaction().addSynchronization(new Synchronization(){ public void afterCommit() throws Throwable { synchronized(PrefetchSubscription.this) { // Now that we are committed, we can remove the nodes. boolean inAckRange=false; int index=0; for (Iterator iter = dispatched.iterator(); iter.hasNext();) { final MessageReference node = (MessageReference)iter.next(); MessageId messageId = node.getMessageId(); if( ack.getFirstMessageId()==null || ack.getFirstMessageId().equals(messageId)) { inAckRange = true; } if( inAckRange ) { index++; iter.remove(); if( ack.getLastMessageId().equals(messageId)) { delivered = Math.max(0, delivered - (index+1)); return; } } } } } }); } index++; acknowledge(context, ack, node); if( ack.getLastMessageId().equals(messageId)) { if ( context.isInTransaction() ) delivered = Math.max(delivered,index+1); else delivered = Math.max(0, delivered - (index+1)); if( wasFull && !isFull() ) { dispatchMatched(); } return; } else {// System.out.println("no match: "+ack.getLastMessageId()+","+messageId); } } } log.info("Could not correlate acknowledgment with dispatched message: "+ack); } else if( ack.isDeliveredAck() ) { // Message was delivered but not acknowledged: update pre-fetch counters. // Acknowledge all dispatched messages up till the message id of the acknowledgment. int index=0; for (Iterator iter = dispatched.iterator(); iter.hasNext();index++) { final MessageReference node = (MessageReference)iter.next(); if( ack.getLastMessageId().equals(node.getMessageId()) ) { delivered = Math.max(delivered,index+1); if( wasFull && !isFull() ) { dispatchMatched(); } return; } } throw new JMSException("Could not correlate acknowledgment with dispatched message: "+ack); } else if( ack.isPoisonAck() ) { // TODO: what if the message is already in a DLQ??? // Handle the poison ACK case: we need to send the message to a DLQ if( ack.isInTransaction() ) throw new JMSException("Poison ack cannot be transacted: "+ack); // Acknowledge all dispatched messages up till the message id of the acknowledgment. int index=0; boolean inAckRange=false; for (Iterator iter = dispatched.iterator(); iter.hasNext();) { final MessageReference node = (MessageReference)iter.next(); MessageId messageId = node.getMessageId(); if( ack.getFirstMessageId()==null || ack.getFirstMessageId().equals(messageId)) { inAckRange = true; } if( inAckRange ) { // Send the message to the DLQ node.incrementReferenceCount(); try { Message message = node.getMessage(); if( message !=null ) { // The original destination and transaction id do not get filled when the message is first sent, // it is only populated if the message is routed to another destination like the DLQ if( message.getOriginalDestination()!=null ) message.setOriginalDestination(message.getDestination()); if( message.getOriginalTransactionId()!=null ) message.setOriginalTransactionId(message.getTransactionId()); DeadLetterStrategy deadLetterStrategy = node.getRegionDestination().getDeadLetterStrategy(); ActiveMQDestination deadLetterDestination = deadLetterStrategy.getDeadLetterQueueFor(message.getDestination()); message.setDestination(deadLetterDestination); message.setTransactionId(null); message.evictMarshlledForm(); boolean originalFlowControl = context.isProducerFlowControl(); try { context.setProducerFlowControl(false); context.getBroker().send(context, message); } finally { context.setProducerFlowControl(originalFlowControl); } } } finally { node.decrementReferenceCount(); } iter.remove(); index++; acknowledge(context, ack, node); if( ack.getLastMessageId().equals(messageId)) { delivered = Math.max(0, delivered - (index+1)); if( wasFull && !isFull() ) { dispatchMatched(); } return; } } } throw new JMSException("Could not correlate acknowledgment with dispatched message: "+ack); } throw new JMSException("Invalid acknowledgment: "+ack); }
17032 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17032/8b04e15826a50bbe5d37a09c4898e8a41af7a565/PrefetchSubscription.java/buggy/activemq-core/src/main/java/org/apache/activemq/broker/region/PrefetchSubscription.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3852, 1071, 918, 28922, 12, 6385, 4050, 1042, 819, 16, 727, 2350, 11931, 8479, 13, 1216, 4206, 288, 7734, 368, 5004, 326, 4529, 23262, 75, 475, 648, 18, 3639, 1250, 1703, 5080, 273, 29232...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3852, 1071, 918, 28922, 12, 6385, 4050, 1042, 819, 16, 727, 2350, 11931, 8479, 13, 1216, 4206, 288, 7734, 368, 5004, 326, 4529, 23262, 75, 475, 648, 18, 3639, 1250, 1703, 5080, 273, 29232...
ExecutableFile file = (ExecutableFile)iter.next();
ExecutableFile file = (ExecutableFile) iter.next();
private void writeUninstallData() { try { // We get the data UninstallData udata = UninstallData.getInstance(); List files = udata.getFilesList(); ZipOutputStream outJar = installdata.uninstallOutJar; if (outJar == null) return; // We write the files log outJar.putNextEntry(new ZipEntry("install.log")); BufferedWriter logWriter = new BufferedWriter(new OutputStreamWriter(outJar)); logWriter.write(installdata.getInstallPath()); logWriter.newLine(); Iterator iter = files.iterator(); while (iter.hasNext()) { logWriter.write((String) iter.next()); if (iter.hasNext()) logWriter.newLine(); } logWriter.flush(); outJar.closeEntry(); // We write the uninstaller jar file log outJar.putNextEntry(new ZipEntry("jarlocation.log")); logWriter = new BufferedWriter(new OutputStreamWriter(outJar)); logWriter.write(udata.getUninstallerJarFilename()); logWriter.newLine(); logWriter.write(udata.getUninstallerPath()); logWriter.flush(); outJar.closeEntry(); // Write out executables to execute on uninstall outJar.putNextEntry(new ZipEntry("executables")); ObjectOutputStream execStream = new ObjectOutputStream(outJar); iter = udata.getExecutablesList().iterator(); execStream.writeInt(udata.getExecutablesList().size()); while (iter.hasNext()) { ExecutableFile file = (ExecutableFile)iter.next(); execStream.writeObject(file); } execStream.flush(); outJar.closeEntry(); // Cleanup outJar.flush(); outJar.close(); } catch (Exception err) { err.printStackTrace(); } }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1045, 31103, 751, 1435, 225, 288, 565, 775, 565, 288, 1377, 368, 1660, 336, 326, 501, 1377, 1351, 5425, 751, 582, 892, 273, 1351, 5425, 751, 18, 588, 1442, 5621, 1377, 987, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1045, 31103, 751, 1435, 225, 288, 565, 775, 565, 288, 1377, 368, 1660, 336, 326, 501, 1377, 1351, 5425, 751, 582, 892, 273, 1351, 5425, 751, 18, 588, 1442, 5621, 1377, 987, 1...
public TA_RetCode CDLSTALLEDPATTERN( int startIdx, int endIdx, double inOpen[], double inHigh[], double inLow[], double inClose[], MInteger outBegIdx, MInteger outNbElement, int outInteger[] ){ double []BodyLongPeriodTotal = new double[3]; ; double []NearPeriodTotal = new double[3]; ; double BodyShortPeriodTotal, ShadowVeryShortPeriodTotal; int i, outIdx, totIdx, BodyLongTrailingIdx, BodyShortTrailingIdx, ShadowVeryShortTrailingIdx, NearTrailingIdx, lookbackTotal; if( startIdx < 0 ) return TA_RetCode. TA_OUT_OF_RANGE_START_INDEX; if( (endIdx < 0) || (endIdx < startIdx)) return TA_RetCode. TA_OUT_OF_RANGE_END_INDEX; lookbackTotal = CDLSTALLEDPATTERN_Lookback (); if( startIdx < lookbackTotal ) startIdx = lookbackTotal; if( startIdx > endIdx ) { outBegIdx.value = 0 ; outNbElement.value = 0 ; return TA_RetCode. TA_SUCCESS; } BodyLongPeriodTotal[2] = 0; BodyLongPeriodTotal[1] = 0; BodyLongPeriodTotal[0] = 0; BodyLongTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].avgPeriod) ; BodyShortPeriodTotal = 0; BodyShortTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].avgPeriod) ; ShadowVeryShortPeriodTotal = 0; ShadowVeryShortTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].avgPeriod) ; NearPeriodTotal[2] = 0; NearPeriodTotal[1] = 0; NearPeriodTotal[0] = 0; NearTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_Near.ordinal()].avgPeriod) ; i = BodyLongTrailingIdx; while( i < startIdx ) { BodyLongPeriodTotal[2] += ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-2] - inOpen[i-2] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-2] - inLow[i-2] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-2] - ( inClose[i-2] >= inOpen[i-2] ? inClose[i-2] : inOpen[i-2] ) ) + ( ( inClose[i-2] >= inOpen[i-2] ? inOpen[i-2] : inClose[i-2] ) - inLow[i-2] ) : 0 ) ) ) ; BodyLongPeriodTotal[1] += ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-1] - inLow[i-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-1] - ( inClose[i-1] >= inOpen[i-1] ? inClose[i-1] : inOpen[i-1] ) ) + ( ( inClose[i-1] >= inOpen[i-1] ? inOpen[i-1] : inClose[i-1] ) - inLow[i-1] ) : 0 ) ) ) ; i++; } i = BodyShortTrailingIdx; while( i < startIdx ) { BodyShortPeriodTotal += ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i] - inOpen[i] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i] - inLow[i] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i] - ( inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i] ) ) + ( ( inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i] ) - inLow[i] ) : 0 ) ) ) ; i++; } i = ShadowVeryShortTrailingIdx; while( i < startIdx ) { ShadowVeryShortPeriodTotal += ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-1] - inLow[i-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-1] - ( inClose[i-1] >= inOpen[i-1] ? inClose[i-1] : inOpen[i-1] ) ) + ( ( inClose[i-1] >= inOpen[i-1] ? inOpen[i-1] : inClose[i-1] ) - inLow[i-1] ) : 0 ) ) ) ; i++; } i = NearTrailingIdx; while( i < startIdx ) { NearPeriodTotal[2] += ( (this.candleSettings[TA_CandleSettingType.TA_Near.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-2] - inOpen[i-2] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_Near.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-2] - inLow[i-2] ) : ( (this.candleSettings[TA_CandleSettingType.TA_Near.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-2] - ( inClose[i-2] >= inOpen[i-2] ? inClose[i-2] : inOpen[i-2] ) ) + ( ( inClose[i-2] >= inOpen[i-2] ? inOpen[i-2] : inClose[i-2] ) - inLow[i-2] ) : 0 ) ) ) ; NearPeriodTotal[1] += ( (this.candleSettings[TA_CandleSettingType.TA_Near.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_Near.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-1] - inLow[i-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_Near.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-1] - ( inClose[i-1] >= inOpen[i-1] ? inClose[i-1] : inOpen[i-1] ) ) + ( ( inClose[i-1] >= inOpen[i-1] ? inOpen[i-1] : inClose[i-1] ) - inLow[i-1] ) : 0 ) ) ) ; i++; } i = startIdx; outIdx = 0; do { if( ( inClose[i-2] >= inOpen[i-2] ? 1 : -1 ) == 1 && ( inClose[i-1] >= inOpen[i-1] ? 1 : -1 ) == 1 && ( inClose[i] >= inOpen[i] ? 1 : -1 ) == 1 && inClose[i] > inClose[i-1] && inClose[i-1] > inClose[i-2] && ( Math.abs ( inClose[i-2] - inOpen[i-2] ) ) > ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].factor) * ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].avgPeriod) != 0.0? BodyLongPeriodTotal[2] / (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].avgPeriod) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-2] - inOpen[i-2] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-2] - inLow[i-2] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-2] - ( inClose[i-2] >= inOpen[i-2] ? inClose[i-2] : inOpen[i-2] ) ) + ( ( inClose[i-2] >= inOpen[i-2] ? inOpen[i-2] : inClose[i-2] ) - inLow[i-2] ) : 0 ) ) ) ) / ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? 2.0 : 1.0 ) ) && ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) > ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].factor) * ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].avgPeriod) != 0.0? BodyLongPeriodTotal[1] / (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].avgPeriod) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-1] - inLow[i-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-1] - ( inClose[i-1] >= inOpen[i-1] ? inClose[i-1] : inOpen[i-1] ) ) + ( ( inClose[i-1] >= inOpen[i-1] ? inOpen[i-1] : inClose[i-1] ) - inLow[i-1] ) : 0 ) ) ) ) / ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? 2.0 : 1.0 ) ) && ( inHigh[i-1] - ( inClose[i-1] >= inOpen[i-1] ? inClose[i-1] : inOpen[i-1] ) ) < ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].factor) * ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].avgPeriod) != 0.0? ShadowVeryShortPeriodTotal / (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].avgPeriod) : ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-1] - inLow[i-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-1] - ( inClose[i-1] >= inOpen[i-1] ? inClose[i-1] : inOpen[i-1] ) ) + ( ( inClose[i-1] >= inOpen[i-1] ? inOpen[i-1] : inClose[i-1] ) - inLow[i-1] ) : 0 ) ) ) ) / ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? 2.0 : 1.0 ) ) && inOpen[i-1] > inOpen[i-2] && inOpen[i-1] <= inClose[i-2] + ( (this.candleSettings[TA_CandleSettingType.TA_Near.ordinal()].factor) * ( (this.candleSettings[TA_CandleSettingType.TA_Near.ordinal()].avgPeriod) != 0.0? NearPeriodTotal[2] / (this.candleSettings[TA_CandleSettingType.TA_Near.ordinal()].avgPeriod) : ( (this.candleSettings[TA_CandleSettingType.TA_Near.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-2] - inOpen[i-2] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_Near.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-2] - inLow[i-2] ) : ( (this.candleSettings[TA_CandleSettingType.TA_Near.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-2] - ( inClose[i-2] >= inOpen[i-2] ? inClose[i-2] : inOpen[i-2] ) ) + ( ( inClose[i-2] >= inOpen[i-2] ? inOpen[i-2] : inClose[i-2] ) - inLow[i-2] ) : 0 ) ) ) ) / ( (this.candleSettings[TA_CandleSettingType.TA_Near.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? 2.0 : 1.0 ) ) && ( Math.abs ( inClose[i] - inOpen[i] ) ) < ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].factor) * ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].avgPeriod) != 0.0? BodyShortPeriodTotal / (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].avgPeriod) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i] - inOpen[i] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i] - inLow[i] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i] - ( inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i] ) ) + ( ( inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i] ) - inLow[i] ) : 0 ) ) ) ) / ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? 2.0 : 1.0 ) ) && inOpen[i] >= inClose[i-1] - ( Math.abs ( inClose[i] - inOpen[i] ) ) - ( (this.candleSettings[TA_CandleSettingType.TA_Near.ordinal()].factor) * ( (this.candleSettings[TA_CandleSettingType.TA_Near.ordinal()].avgPeriod) != 0.0? NearPeriodTotal[1] / (this.candleSettings[TA_CandleSettingType.TA_Near.ordinal()].avgPeriod) : ( (this.candleSettings[TA_CandleSettingType.TA_Near.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_Near.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-1] - inLow[i-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_Near.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-1] - ( inClose[i-1] >= inOpen[i-1] ? inClose[i-1] : inOpen[i-1] ) ) + ( ( inClose[i-1] >= inOpen[i-1] ? inOpen[i-1] : inClose[i-1] ) - inLow[i-1] ) : 0 ) ) ) ) / ( (this.candleSettings[TA_CandleSettingType.TA_Near.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? 2.0 : 1.0 ) ) ) outInteger[outIdx++] = -100; else outInteger[outIdx++] = 0; for (totIdx = 2; totIdx >= 1; --totIdx) { BodyLongPeriodTotal[totIdx] += ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-totIdx] - inOpen[i-totIdx] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-totIdx] - inLow[i-totIdx] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-totIdx] - ( inClose[i-totIdx] >= inOpen[i-totIdx] ? inClose[i-totIdx] : inOpen[i-totIdx] ) ) + ( ( inClose[i-totIdx] >= inOpen[i-totIdx] ? inOpen[i-totIdx] : inClose[i-totIdx] ) - inLow[i-totIdx] ) : 0 ) ) ) - ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[BodyLongTrailingIdx-totIdx] - inOpen[BodyLongTrailingIdx-totIdx] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[BodyLongTrailingIdx-totIdx] - inLow[BodyLongTrailingIdx-totIdx] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[BodyLongTrailingIdx-totIdx] - ( inClose[BodyLongTrailingIdx-totIdx] >= inOpen[BodyLongTrailingIdx-totIdx] ? inClose[BodyLongTrailingIdx-totIdx] : inOpen[BodyLongTrailingIdx-totIdx] ) ) + ( ( inClose[BodyLongTrailingIdx-totIdx] >= inOpen[BodyLongTrailingIdx-totIdx] ? inOpen[BodyLongTrailingIdx-totIdx] : inClose[BodyLongTrailingIdx-totIdx] ) - inLow[BodyLongTrailingIdx-totIdx] ) : 0 ) ) ) ; NearPeriodTotal[totIdx] += ( (this.candleSettings[TA_CandleSettingType.TA_Near.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-totIdx] - inOpen[i-totIdx] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_Near.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-totIdx] - inLow[i-totIdx] ) : ( (this.candleSettings[TA_CandleSettingType.TA_Near.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-totIdx] - ( inClose[i-totIdx] >= inOpen[i-totIdx] ? inClose[i-totIdx] : inOpen[i-totIdx] ) ) + ( ( inClose[i-totIdx] >= inOpen[i-totIdx] ? inOpen[i-totIdx] : inClose[i-totIdx] ) - inLow[i-totIdx] ) : 0 ) ) ) - ( (this.candleSettings[TA_CandleSettingType.TA_Near.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[NearTrailingIdx-totIdx] - inOpen[NearTrailingIdx-totIdx] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_Near.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[NearTrailingIdx-totIdx] - inLow[NearTrailingIdx-totIdx] ) : ( (this.candleSettings[TA_CandleSettingType.TA_Near.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[NearTrailingIdx-totIdx] - ( inClose[NearTrailingIdx-totIdx] >= inOpen[NearTrailingIdx-totIdx] ? inClose[NearTrailingIdx-totIdx] : inOpen[NearTrailingIdx-totIdx] ) ) + ( ( inClose[NearTrailingIdx-totIdx] >= inOpen[NearTrailingIdx-totIdx] ? inOpen[NearTrailingIdx-totIdx] : inClose[NearTrailingIdx-totIdx] ) - inLow[NearTrailingIdx-totIdx] ) : 0 ) ) ) ; } BodyShortPeriodTotal += ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i] - inOpen[i] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i] - inLow[i] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i] - ( inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i] ) ) + ( ( inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i] ) - inLow[i] ) : 0 ) ) ) - ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[BodyShortTrailingIdx] - inOpen[BodyShortTrailingIdx] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[BodyShortTrailingIdx] - inLow[BodyShortTrailingIdx] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[BodyShortTrailingIdx] - ( inClose[BodyShortTrailingIdx] >= inOpen[BodyShortTrailingIdx] ? inClose[BodyShortTrailingIdx] : inOpen[BodyShortTrailingIdx] ) ) + ( ( inClose[BodyShortTrailingIdx] >= inOpen[BodyShortTrailingIdx] ? inOpen[BodyShortTrailingIdx] : inClose[BodyShortTrailingIdx] ) - inLow[BodyShortTrailingIdx] ) : 0 ) ) ) ; ShadowVeryShortPeriodTotal += ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-1] - inLow[i-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-1] - ( inClose[i-1] >= inOpen[i-1] ? inClose[i-1] : inOpen[i-1] ) ) + ( ( inClose[i-1] >= inOpen[i-1] ? inOpen[i-1] : inClose[i-1] ) - inLow[i-1] ) : 0 ) ) ) - ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[ShadowVeryShortTrailingIdx-1] - inOpen[ShadowVeryShortTrailingIdx-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[ShadowVeryShortTrailingIdx-1] - inLow[ShadowVeryShortTrailingIdx-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[ShadowVeryShortTrailingIdx-1] - ( inClose[ShadowVeryShortTrailingIdx-1] >= inOpen[ShadowVeryShortTrailingIdx-1] ? inClose[ShadowVeryShortTrailingIdx-1] : inOpen[ShadowVeryShortTrailingIdx-1] ) ) + ( ( inClose[ShadowVeryShortTrailingIdx-1] >= inOpen[ShadowVeryShortTrailingIdx-1] ? inOpen[ShadowVeryShortTrailingIdx-1] : inClose[ShadowVeryShortTrailingIdx-1] ) - inLow[ShadowVeryShortTrailingIdx-1] ) : 0 ) ) ) ; i++; BodyLongTrailingIdx++; BodyShortTrailingIdx++; ShadowVeryShortTrailingIdx++; NearTrailingIdx++; } while( i <= endIdx ); outNbElement.value = outIdx; outBegIdx.value = startIdx; return TA_RetCode. TA_SUCCESS;}
2365 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2365/69e0567047ad75d101e30d35826ecbb51165ba43/Core.java/buggy/ta-lib/java/src/TA/Lib/Core.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 9833, 67, 7055, 1085, 39, 8914, 882, 27751, 10831, 12, 474, 1937, 4223, 16, 474, 409, 4223, 16, 9056, 267, 3678, 63, 6487, 9056, 267, 8573, 63, 6487, 9056, 267, 10520, 63, 6487, 9056, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 9833, 67, 7055, 1085, 39, 8914, 882, 27751, 10831, 12, 474, 1937, 4223, 16, 474, 409, 4223, 16, 9056, 267, 3678, 63, 6487, 9056, 267, 8573, 63, 6487, 9056, 267, 10520, 63, 6487, 9056, ...
myProgressIndicator.setText2(SvnBundle.message("progress.text2.conflicted", displayPath));
text2 = SvnBundle.message("progress.text2.conflicted", displayPath);
public void handleEvent(SVNEvent event, double progress) { if (event == null || event.getFile() == null) { return; } String path = event.getFile().getAbsolutePath(); String displayPath = event.getFile().getName(); if (event.getAction() == SVNEventAction.UPDATE_ADD || event.getAction() == SVNEventAction.ADD) { myProgressIndicator.setText2(SvnBundle.message("progress.text2.added", displayPath)); myUpdatedFiles.getGroupById(FileGroup.CREATED_ID).add(path); } else if (event.getAction() == SVNEventAction.UPDATE_DELETE) { myProgressIndicator.setText2(SvnBundle.message("progress.text2.deleted", displayPath)); myUpdatedFiles.getGroupById(FileGroup.REMOVED_FROM_REPOSITORY_ID).add(path); } else if (event.getAction() == SVNEventAction.UPDATE_UPDATE) { if (event.getContentsStatus() == SVNStatusType.CONFLICTED || event.getPropertiesStatus() == SVNStatusType.CONFLICTED) { myUpdatedFiles.getGroupById(FileGroup.MERGED_WITH_CONFLICT_ID).add(path); myProgressIndicator.setText2(SvnBundle.message("progress.text2.conflicted", displayPath)); } else if (event.getContentsStatus() == SVNStatusType.MERGED || event.getPropertiesStatus() == SVNStatusType.MERGED) { myProgressIndicator.setText2(SvnBundle.message("progres.text2.merged", displayPath)); myUpdatedFiles.getGroupById(FileGroup.MERGED_ID).add(path); } else if (event.getContentsStatus() == SVNStatusType.CHANGED || event.getPropertiesStatus() == SVNStatusType.CHANGED) { myProgressIndicator.setText2(SvnBundle.message("progres.text2.updated", displayPath)); myUpdatedFiles.getGroupById(FileGroup.UPDATED_ID).add(path); } else if (event.getContentsStatus() == SVNStatusType.UNCHANGED && event.getPropertiesStatus() == SVNStatusType.UNCHANGED) { myProgressIndicator.setText2(SvnBundle.message("progres.text2.updated", displayPath)); } else { myProgressIndicator.setText2(""); myUpdatedFiles.getGroupById(FileGroup.UNKNOWN_ID).add(path); } } else if (event.getAction() == SVNEventAction.UPDATE_EXTERNAL) { myExternalsCount++; if (myUpdatedFiles.getGroupById(SvnStatusEnvironment.EXTERNAL_ID) == null) { myUpdatedFiles.registerGroup(new FileGroup(SvnBundle.message("status.group.name.externals"), SvnBundle.message("status.group.name.externals"), false, SvnStatusEnvironment.EXTERNAL_ID, true)); } myUpdatedFiles.getGroupById(SvnStatusEnvironment.EXTERNAL_ID).add(path); myProgressIndicator.setText(SvnBundle.message("progress.text.updating.external.location", event.getFile().getAbsolutePath())); } else if (event.getAction() == SVNEventAction.RESTORE) { myProgressIndicator.setText2(SvnBundle.message("progress.text2.restored.file", displayPath)); myUpdatedFiles.getGroupById(FileGroup.RESTORED_ID).add(path); } else if (event.getAction() == SVNEventAction.UPDATE_COMPLETED && event.getRevision() >= 0) { myExternalsCount--; myProgressIndicator.setText2(SvnBundle.message("progres.text2.updated.to.revision", event.getRevision())); if (myExternalsCount == 0) { myExternalsCount = 1; WindowManager.getInstance().getStatusBar(myVCS.getProject()).setInfo( SvnBundle.message("status.text.updated.to.revision", event.getRevision())); } } else if (event.getAction() == SVNEventAction.SKIP) { myProgressIndicator.setText2(SvnBundle.message("progress.text2.skipped.file", displayPath)); if (myUpdatedFiles.getGroupById(SKIP_ID) == null) { myUpdatedFiles.registerGroup(new FileGroup(SvnBundle.message("update.group.name.skipped"), SvnBundle.message("update.group.name.skipped"), false, SKIP_ID, true)); } myUpdatedFiles.getGroupById(SKIP_ID).add(path); } }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/6981bc6c2a3864cebebfbe92932457a0d4c63c4e/AbstractSvnUpdateIntegrateEnvironment.java/clean/plugins/svn4idea/src/org/jetbrains/idea/svn/update/AbstractSvnUpdateIntegrateEnvironment.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1640, 1133, 12, 23927, 50, 1133, 871, 16, 1645, 4007, 13, 288, 1377, 309, 261, 2575, 422, 446, 747, 871, 18, 29925, 1435, 422, 446, 13, 288, 3639, 327, 31, 1377, 289, 1377, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1640, 1133, 12, 23927, 50, 1133, 871, 16, 1645, 4007, 13, 288, 1377, 309, 261, 2575, 422, 446, 747, 871, 18, 29925, 1435, 422, 446, 13, 288, 3639, 327, 31, 1377, 289, 1377, ...